/* ==========================================================================
   com_gmstudio v1.0.1 — 3+1 Mode Studio, Mobile Bottom-Sheets, alphaTab & A4 Print
   Réécriture complète de zéro (zéro couche de rustines empilées).
   ========================================================================== */

.gm-st-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mode Pupitre : Plein écran centré haute lisibilité */
.gm-st-shell.is-pupitre {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: var(--gm-bg);
    padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(12px, 3vw, 24px) calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}
.gm-st-shell.is-pupitre .gm-st-topbar,
.gm-st-shell.is-pupitre .gm-st-workspace,
.gm-st-shell.is-pupitre #gm-st-canvas {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}
.gm-st-shell.is-pupitre .gm-st-workspace { display: block; }
.gm-st-shell.is-pupitre #gm-st-left,
.gm-st-shell.is-pupitre #gm-st-right { display: none; }
.gm-st-shell.is-pupitre #gm-st-canvas { padding: 22px; }
.gm-st-shell.is-pupitre .gm-st-chords { font-size: 1.9rem; }
.gm-st-shell.is-pupitre .gm-st-bar { min-height: 104px; }

/* Topbar collante (toujours accessible pour faire Stop) */
/* Bandeau titre 3 colonnes : Titre/sous-titre à gauche, Modes CENTRÉS au milieu, Badges à droite */
.gm-hero.gm-hero-chart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 18px;
    padding: 14px 20px;
    margin-bottom: 12px;
}
.gm-hero-chart-left { min-width: 0; }
.gm-hero-sub-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
}
.gm-hero-composer {
    font-size: 0.84rem;
    opacity: 0.82;
}
.gm-hero-modebar {
    display: flex;
    align-items: center;
    justify-self: center;
    flex-shrink: 0;
}
.gm-hero-center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.gm-hero-pupitre-slot {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-hero-pupitre-slot.is-placeholder {
    visibility: hidden;
    pointer-events: none;
}
.gm-btn-pupitre-hero {
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 999px;
    background: var(--gm-accent-soft);
    border: 1.5px solid var(--gm-accent);
    color: var(--gm-accent);
    letter-spacing: 0.02em;
}
.gm-btn-pupitre-hero:hover {
    background: var(--gm-accent);
    border-color: var(--gm-accent);
    color: var(--gm-accent-ink);
}
.gm-hero-chart-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 6px;
}
@media (max-width: 1120px) {
    .gm-hero.gm-hero-chart {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .gm-hero-modebar { justify-self: center; width: 100%; justify-content: center; }
    .gm-hero-chart-right { justify-self: start; justify-content: flex-start; }
}
.gm-st-modes-hero {
    padding: 4px;
    gap: 4px;
}
.gm-st-modes-hero .gm-mode-btn {
    font-size: 0.92rem;
    padding: 9px 16px;
    border-radius: 7px;
}
.gm-st-modes-hero .gm-tab-ico {
    width: 16px;
    height: 16px;
}

.gm-st-topbar {
    position: sticky;
    top: 8px;
    z-index: 45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--gm-surface);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.gm-tb-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
    border-right: 1px solid var(--gm-border);
}
.gm-tb-group:last-child {
    padding-right: 0;
    border-right: none;
}
.gm-tb-left-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
}
.gm-tb-right-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.gm-btn-icon {
    width: 32px;
    height: 30px;
    padding: 0;
    justify-content: center;
}
.gm-util-ico {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gm-info-wrap {
    position: relative;
    display: inline-flex;
}
.gm-info-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1200;
    width: 270px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--gm-surface);
    border: 1.5px solid var(--gm-accent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58);
    font-size: 0.8rem;
    color: var(--gm-text);
}
.gm-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid var(--gm-border);
}
.gm-info-row:last-of-type { border-bottom: none; }
.gm-info-row > span:first-child { color: var(--gm-text-muted); font-size: 0.76rem; }
.gm-info-ok { color: var(--gm-green); font-size: 0.78rem; }
.gm-info-shortcuts {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gm-border-strong);
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    line-height: 1.55;
}
.gm-info-shortcuts code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    color: var(--gm-text);
    font-size: 0.7rem;
}
.gm-info-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--gm-border);
}
.gm-info-actions .gm-btn { flex: 1; justify-content: center; font-size: 0.74rem; padding: 4px 6px; }
.gm-btn-play-scale {
    padding: 2px 8px;
    font-size: 0.74rem;
    border-color: rgba(229, 154, 60, 0.5);
    color: var(--gm-accent);
}
.gm-btn-play-scale:hover {
    background: var(--gm-accent);
    color: var(--gm-accent-ink);
    border-color: var(--gm-accent);
}
.gm-shortcuts-card { max-width: 520px; width: 92vw; }
.gm-shortcuts-tbl { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.gm-shortcuts-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--gm-border); vertical-align: top; }
.gm-shortcuts-tbl tr:last-child td { border-bottom: none; }
.gm-shortcuts-tbl td:first-child { white-space: nowrap; width: 38%; }
.gm-shortcuts-tbl code {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border-strong);
    color: var(--gm-accent);
    font-size: 0.76rem;
    font-weight: 700;
}
.gm-train-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--gm-border);
}
.gm-train-extras .gm-btn { justify-content: center; }
.gm-pup-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
}
.gm-pup-row .gm-tb-group {
    flex-wrap: nowrap;
    gap: 5px;
    padding-right: 8px;
}
.gm-pup-row .gm-btn-sm {
    padding: 4px 8px;
    font-size: 0.78rem;
}
.gm-pup-row .gm-st-bpm {
    font-size: 0.78rem;
    min-width: 58px;
}
.gm-pup-sel {
    padding: 4px 6px;
    font-size: 0.78rem;
    max-width: 132px;
}
.gm-pup-end {
    flex-shrink: 0;
}
.gm-pup-title {
    font-family: Georgia, serif;
    font-size: 0.98rem;
    color: var(--gm-accent);
    margin-right: 4px;
    white-space: nowrap;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 1120px) {
    .gm-pup-row { flex-wrap: wrap; }
    .gm-pup-row .gm-tb-group { flex-wrap: wrap; }
}

/* 3-zone Modifier Topbar: Aperçu (left) | Enregistrer + Exporter (center) | Utils + Layout (right) */
.gm-tb-edit-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
}
.gm-tb-edit-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gm-tb-edit-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gm-pop-anchor {
    position: relative;
    display: inline-flex;
}
.gm-tb-popover {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 1250;
    min-width: 270px;
    max-width: 310px;
    padding: 8px;
    border-radius: 11px;
    background: var(--gm-surface);
    border: 1.5px solid var(--gm-accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.62);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gm-pop-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--gm-text);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.gm-pop-item strong { font-size: 0.84rem; color: var(--gm-text); }
.gm-pop-item small { font-size: 0.72rem; color: var(--gm-text-muted); line-height: 1.3; }
.gm-pop-item:hover {
    background: var(--gm-surface-hover);
    border-color: var(--gm-border-strong);
}
.gm-pop-item-primary {
    background: var(--gm-accent-soft);
    border-color: rgba(229, 154, 60, 0.45);
}
.gm-pop-item-primary strong { color: var(--gm-accent); }
.gm-pop-sep {
    height: 1px;
    background: var(--gm-border);
    margin: 4px 2px;
}
.gm-pop-sec {
    padding: 6px 4px 2px;
}
@media (max-width: 960px) {
    .gm-tb-edit-grid {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    .gm-tb-edit-center { justify-content: flex-start; flex-wrap: wrap; }
    .gm-tb-popover { left: 0; transform: none; }
}
.gm-btn-muted {
    opacity: 0.72;
    border-style: dashed;
}
.gm-solo-spd-val {
    border: none;
    background: transparent;
    color: var(--gm-text);
    font-weight: 800;
    font-size: 0.82rem;
    min-width: 48px;
    text-align: center;
    cursor: pointer;
    padding: 2px 4px;
}
.gm-solo-spd-val:hover { color: var(--gm-accent); }

/* Mode Pupitre adapté à la hauteur de l'écran (zéro défilement) */
.gm-st-shell.is-pupitre.is-pupitre-fit {
    padding: 10px 16px 24px;
    overflow-y: auto;
}
.gm-pup-struct-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--gm-border-strong);
}
.gm-st-shell.is-pupitre.is-pupitre-fit #gm-st-canvas {
    padding: 10px 14px;
}
.gm-st-shell.is-pupitre.is-pupitre-fit .gm-st-section {
    margin-bottom: 8px;
}
.gm-st-shell.is-pupitre.is-pupitre-fit .gm-st-sec-head {
    margin-bottom: 4px;
}
.gm-st-shell.is-pupitre.is-pupitre-fit .gm-st-bar {
    padding: 3px 6px 4px;
}
.gm-st-modes {
    display: inline-flex;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border-strong);
    border-radius: 9px;
    padding: 3px;
    gap: 3px;
}
.gm-mode-btn {
    border: none;
    background: transparent;
    color: var(--gm-text-muted);
    font-weight: 700;
    font-size: 0.84rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, color 0.14s ease;
}
.gm-mode-btn:hover { color: var(--gm-text); }
.gm-mode-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.gm-mode-btn.is-active { background: var(--gm-accent); color: var(--gm-accent-ink); }
.gm-tab-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Distinct Audio Play / Stop transport buttons — crisp contrast in Dark & Light, idle AND hover! */
.gm-btn.gm-btn-play {
    background: #23864d;
    border-color: #2ea45f;
    color: #ffffff;
    font-weight: 800;
}
.gm-btn.gm-btn-play:hover {
    background: #2ea45f;
    border-color: #46c279;
    color: #ffffff;
}
.gm-btn.gm-btn-stop {
    background: #c93326;
    border-color: #e04638;
    color: #ffffff;
    font-weight: 800;
}
.gm-btn.gm-btn-stop:hover {
    background: #df3f31;
    border-color: #f05a4d;
    color: #ffffff;
}

.gm-st-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; }
.gm-st-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    padding: 2px 5px;
    border-radius: 7px;
}
.gm-st-bpm { font-weight: 800; font-size: 0.82rem; min-width: 62px; text-align: center; }
.gm-st-sel { width: auto; padding: 5px 9px; font-size: 0.82rem; }
.gm-st-layout-btns { display: inline-flex; gap: 4px; }

/* Espace de travail 3 colonnes façon Figma */
.gm-st-workspace {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr) 316px;
    gap: 12px;
    align-items: start;
    width: 100%;
}
.gm-st-shell.is-left-closed .gm-st-workspace { grid-template-columns: minmax(0, 1fr) 316px; }
.gm-st-shell.is-right-closed .gm-st-workspace { grid-template-columns: 275px minmax(0, 1fr); }
.gm-st-shell.is-left-closed.is-right-closed .gm-st-workspace { grid-template-columns: minmax(0, 1fr); }
.gm-st-shell:not([data-studio-mode="solo"]).is-left-closed.is-right-closed:not(.is-pupitre) #gm-st-canvas {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
.gm-st-shell:not([data-studio-mode="solo"])[data-bpl="8"].is-left-closed.is-right-closed:not(.is-pupitre) #gm-st-canvas {
    max-width: 1180px;
}
.gm-st-shell.is-left-closed #gm-st-left,
.gm-st-shell.is-right-closed #gm-st-right { display: none; }

.gm-st-workspace > * { min-width: 0; }
.gm-st-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 154, 60, 0.28) transparent;
}
.gm-st-side::-webkit-scrollbar { width: 5px; }
.gm-st-side::-webkit-scrollbar-track { background: transparent; }
.gm-st-side::-webkit-scrollbar-thumb { background: rgba(229, 154, 60, 0.28); border-radius: 999px; }
.gm-st-side::-webkit-scrollbar-thumb:hover { background: rgba(229, 154, 60, 0.55); }
/* Empêche l'écrasement vertical des accordéons ouverts dans la colonne sticky */
.gm-st-side > * { flex-shrink: 0; }
.gm-artist-credits-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.gm-artist-credit-badge {
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 4px 8px;
}
.gm-drawer-head { display: none; }

/* Accordéons repliables */
.gm-acc {
    background: var(--gm-surface);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    overflow: hidden;
}
.gm-acc-head {
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gm-text-muted);
    background: var(--gm-surface-2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.gm-acc-head::after { content: '▸'; color: var(--gm-accent); }
.gm-acc.is-open .gm-acc-head::after { content: '▾'; }
.gm-acc-body { display: none; padding: 12px 14px; }
.gm-acc.is-open .gm-acc-body { display: block; }
.gm-st-seg { display: flex; gap: 5px; }
.gm-st-seg button {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 7px;
    border: 1px solid var(--gm-border-strong);
    background: var(--gm-bg);
    color: var(--gm-text);
    cursor: pointer;
}
.gm-st-seg button:hover { border-color: var(--gm-accent); }
.gm-st-seg button.is-on {
    background: var(--gm-accent);
    color: var(--gm-accent-ink);
    border-color: var(--gm-accent);
}
.gm-help { font-size: 0.8rem; color: var(--gm-text-muted); margin: 0 0 6px; }
.gm-lbl { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gm-text-muted); margin-bottom: 4px; }

/* Mixeur & Vidéos 3 onglets */
.gm-mix-row { display: grid; grid-template-columns: 98px 1fr 48px; gap: 8px; align-items: center; font-size: 0.82rem; margin-bottom: 8px; }
.gm-mix-row input[type="range"] { width: 100%; accent-color: var(--gm-accent); }

.gm-media-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 10px 0 8px;
}
.gm-media-tabs button {
    border: 1px solid var(--gm-border);
    background: var(--gm-bg);
    color: var(--gm-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 4px;
    border-radius: 6px;
    cursor: pointer;
}
.gm-media-tabs button.is-on { background: var(--gm-accent); color: var(--gm-accent-ink); border-color: var(--gm-accent); }
.gm-st-yt-card { margin-bottom: 8px; }
.gm-st-yt-title { font-size: 0.78rem; font-weight: 700; margin-bottom: 4px; color: var(--gm-text); }

/* Canevas central & Bandeau Accords au-dessus / dessous */
.gm-st-canvas {
    background: var(--gm-surface);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    padding: 16px;
    min-width: 0;
    width: 100%;
}
.gm-st-canvas-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gm-border);
}
.gm-st-canvas-bar-3col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
}
.gm-cb-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.gm-cb-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.gm-cb-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.gm-st-canvas-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--gm-border);
}

/* Socle commun 3 colonnes : Histoire & contexte | Vidéos | Infos & Artistes */
.gm-about-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.gm-about-col {
    min-width: 0;
}
.gm-about-col:not(:last-child) {
    padding-right: 18px;
    border-right: 1px solid var(--gm-border);
}
.gm-about-title {
    margin: 2px 0 10px;
    font-family: Georgia, serif;
    font-size: 1.08rem;
    color: var(--gm-text);
}
.gm-about-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gm-text);
}
.gm-about-muted {
    margin: 0;
    font-size: 0.84rem;
    color: var(--gm-text-muted);
}
.gm-about-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.84rem;
}
.gm-about-dl > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--gm-border);
}
.gm-about-dl > div:last-child { border-bottom: none; }
.gm-about-dl dt {
    color: var(--gm-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.gm-about-dl dd {
    margin: 0;
    color: var(--gm-text);
    font-weight: 600;
    text-align: right;
}
@media (max-width: 960px) {
    .gm-st-canvas-bar-3col {
        grid-template-columns: 1fr auto;
    }
    .gm-cb-center {
        grid-column: 1 / -1;
        order: 3;
        justify-content: flex-start;
    }
    .gm-about-grid3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gm-about-col:not(:last-child) {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid var(--gm-border);
    }
    .gm-tb-right-cluster {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    .gm-hero-pupitre-slot.is-placeholder { display: none; }
}
.gm-beat-dots { display: flex; gap: 6px; }
.gm-beat-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gm-border-strong); transition: background 0.06s ease, transform 0.06s ease; }
.gm-beat-dot.is-lit { background: var(--gm-accent); transform: scale(1.25); }

/* Structure Bar visible in Jouer */
.gm-struct-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: -6px 0 12px;
    padding: 6px 10px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 8px;
}
.gm-struct-lbl { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gm-text-muted); margin-right: 4px; }
.gm-struct-pill {
    border: 1px solid var(--gm-border-strong);
    background: var(--gm-surface);
    color: var(--gm-text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    cursor: pointer;
}
.gm-struct-pill:hover { border-color: var(--gm-accent); color: var(--gm-accent); }
.gm-struct-sep { color: var(--gm-text-muted); font-size: 0.75rem; opacity: 0.6; }

/* Multi-chord bar switcher at top of Right Inspector */
.gm-bar-chord-switcher {
    background: var(--gm-surface);
    border: 1px solid var(--gm-border);
    border-radius: 10px;
    padding: 8px 10px;
}
.gm-bcs-row { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-bcs-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 7px;
    border: 1px solid var(--gm-border-strong);
    background: var(--gm-bg);
    color: var(--gm-text);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}
.gm-bcs-pill small { font-size: 0.66rem; font-weight: 600; opacity: 0.72; }
.gm-bcs-pill:hover { border-color: var(--gm-accent); }
.gm-bcs-pill.is-on { background: var(--gm-accent); border-color: var(--gm-accent); color: var(--gm-accent-ink); }

.gm-chord-strip {
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 14px;
}
.gm-strip-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.gm-chord-strip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.gm-strip-card {
    background: var(--gm-surface);
    border: 1px solid var(--gm-border);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
}
.gm-strip-card:hover { border-color: var(--gm-accent); }
.gm-strip-card.is-strip-active {
    border-color: var(--gm-accent);
    background: var(--gm-accent-soft);
    box-shadow: 0 0 0 1px var(--gm-accent);
}
.gm-inline-chord-edit {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 2px solid var(--gm-accent);
    background: var(--gm-surface);
    color: var(--gm-text);
    font-size: 0.96rem;
    font-weight: 800;
    text-align: center;
}

/* Grille d'accords — Structure 3 zones (En-tête / Rail Cadence / Corps) sans chevauchement */
.gm-st-section { margin-bottom: 18px; }
.gm-st-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gm-section-badge {
    display: inline-block;
    background: var(--gm-accent);
    color: var(--gm-accent-ink);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 2px 10px;
    border-radius: 6px;
}
.gm-st-grid {
    display: grid;
    border-top: 2px solid var(--gm-border-strong);
    border-left: 2px solid var(--gm-border-strong);
    border-radius: 6px;
    overflow: hidden;
    background: var(--gm-bg);
}
.gm-st-grid.is-accessible .gm-st-bar {
    min-height: 70px;
    padding: 10px 16px;
}
.gm-st-bar {
    min-width: 0;
    overflow: hidden;
    border-right: 2px solid var(--gm-border-strong);
    border-bottom: 2px solid var(--gm-border-strong);
    min-height: 84px;
    padding: 6px 8px 10px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background 0.1s ease, box-shadow 0.1s ease;
}
.gm-st-bar:hover { background: var(--gm-surface-hover); }
.gm-st-bar.is-selected { background: var(--gm-accent-soft); box-shadow: inset 0 0 0 2px var(--gm-accent); }
.gm-st-bar.is-playing { background: rgba(229, 154, 60, 0.28); box-shadow: inset 0 0 0 2px var(--gm-accent-hover); }
.gm-st-bar.is-loop { border-top: 3px solid var(--gm-green); }
.gm-st-bar.is-multi-selected {
    background: rgba(106, 167, 232, 0.16);
    box-shadow: inset 0 0 0 2px var(--gm-blue);
}

/* Per-section & bar-range groove rules */
.gm-sec-groove-list { display: flex; flex-direction: column; gap: 6px; }
.gm-sec-groove-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gm-sec-groove-row .gm-badge { min-width: 54px; justify-content: center; flex-shrink: 0; }
.gm-sec-groove-row select { min-width: 0; }
.gm-gr-range-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}
.gm-gr-range-nums {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gm-text-muted);
}
.gm-gr-range-nums .gm-input {
    width: 60px;
    padding: 4px 6px;
    font-size: 0.8rem;
    text-align: center;
}
.gm-gr-range-act {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.gm-gr-range-act .gm-select {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 6px;
    font-size: 0.78rem;
}
.gm-gr-range-act .gm-btn {
    flex-shrink: 0;
}
.gm-groove-rule-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px;
    margin-top: 4px;
    border-radius: 6px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    font-size: 0.76rem;
}

/* Prevent accidental text selection while drag-selecting bars in Modifier */
.gm-st-shell[data-studio-mode="edit"] .gm-st-bar {
    user-select: none;
    -webkit-user-select: none;
}

/* Floating Figma / Photoshop-style bottom Edit Dock — High Contrast & Distinct Elevation */
.gm-edit-dock-wrap {
    position: sticky;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    pointer-events: none;
}
.gm-edit-dock {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: #2f2821;
    border: 2px solid var(--gm-accent);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.78), 0 0 0 4px rgba(14, 12, 10, 0.72), inset 0 1px 0 rgba(255, 240, 210, 0.14);
}
.gm-app[data-gm-theme="light"] .gm-edit-dock {
    background: #ffffff;
    border: 2px solid var(--gm-accent);
    box-shadow: 0 14px 34px rgba(34, 27, 20, 0.24), 0 0 0 4px rgba(246, 241, 231, 0.88);
}
.gm-dock-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gm-text);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.gm-dock-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gm-dock-btn:not(.is-on):hover:not(:disabled) {
    background: rgba(229, 154, 60, 0.24);
    color: #ffffff;
    border-color: var(--gm-accent);
}
.gm-app[data-gm-theme="light"] .gm-dock-btn:not(.is-on):hover:not(:disabled) {
    background: rgba(184, 98, 20, 0.14);
    color: #17120c;
    border-color: var(--gm-accent);
}
.gm-dock-btn.is-on,
.gm-dock-btn.is-on:hover:not(:disabled) {
    background: var(--gm-accent);
    color: var(--gm-accent-ink);
    border-color: var(--gm-accent-hover);
}
.gm-dock-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gm-dock-btn.gm-dock-play.is-play,
.gm-dock-btn.gm-dock-play.is-play:hover:not(:disabled) {
    background: #23864d;
    border-color: #2ea45f;
    color: #ffffff;
}
.gm-dock-btn.gm-dock-play.is-play:hover:not(:disabled) {
    background: #2ea45f;
}
.gm-dock-btn.gm-dock-play.is-stop,
.gm-dock-btn.gm-dock-play.is-stop:hover:not(:disabled) {
    background: #c93326;
    border-color: #e04638;
    color: #ffffff;
}
.gm-dock-btn.gm-dock-play.is-stop:hover:not(:disabled) {
    background: #df3f31;
}
.gm-dock-play-cnt {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gm-accent);
    color: var(--gm-accent-ink);
    font-size: 0.66rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.gm-dock-caret { font-size: 0.68rem; opacity: 0.82; }
.gm-dock-sep { width: 1px; height: 24px; background: rgba(229, 154, 60, 0.35); margin: 0 4px; }
.gm-dock-cnt {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gm-blue);
    color: #0b1420;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.gm-edit-pop {
    pointer-events: auto;
    background: #28221c;
    border: 2px solid var(--gm-accent);
    border-radius: 13px;
    padding: 11px 13px;
    max-width: min(540px, 92vw);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}
.gm-app[data-gm-theme="light"] .gm-edit-pop {
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(34, 27, 20, 0.22);
}
.gm-edit-pop-wide { max-width: min(700px, 95vw); }
.gm-edit-pop-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.gm-edit-pop .gm-pill {
    min-width: 42px;
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.gm-edit-pop .gm-btn-sm {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 0.85rem;
}
.gm-studio-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483640;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 560px);
    animation: gmToastIn 0.2s ease-out;
}
.gm-studio-toast.is-ok {
    background: #1d4d32;
    color: #f3ede4;
    border: 1.5px solid #4fb87a;
}
.gm-studio-toast.is-warn {
    background: #3d2a12;
    color: #fff6e6;
    border: 1.5px solid #e59a3c;
}
@keyframes gmToastIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 960px) {
    .gm-edit-dock-wrap { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .gm-edit-dock { max-width: 96vw; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Reprises |: :| */
.gm-st-bar.is-rep-start { border-left: 5px double var(--gm-accent); }
.gm-st-bar.is-rep-start::before { content: ':'; position: absolute; left: 2px; top: 55%; transform: translateY(-50%); font-weight: 900; color: var(--gm-accent); font-size: 1.05rem; }
.gm-st-bar.is-rep-end { border-right: 5px double var(--gm-accent); }
.gm-st-bar.is-rep-end::after { content: ':'; position: absolute; right: 2px; top: 55%; transform: translateY(-50%); font-weight: 900; color: var(--gm-accent); font-size: 1.05rem; }

.gm-bar-top-row { display: flex; align-items: center; justify-content: space-between; min-height: 18px; margin-bottom: 4px; gap: 6px; }
.gm-st-bnum { font-size: 0.68rem; font-weight: 700; color: var(--gm-text-muted); opacity: 0.75; line-height: 1; }
.gm-bar-top-right { display: inline-flex; align-items: center; gap: 4px; }
.gm-volta-box {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gm-accent);
    border-top: 2px solid var(--gm-accent);
    border-left: 2px solid var(--gm-accent);
    padding: 1px 5px 0;
    line-height: 1.2;
}
.gm-ts-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: var(--gm-accent);
    border-radius: 4px;
    padding: 1px 4px;
    line-height: 1.2;
}
.gm-road-sign { font-size: 0.92rem; color: var(--gm-accent); font-weight: 800; line-height: 1; }

/* Rail Cadences multi-mesures (hauteur alignée au pixel) */
.gm-harm-slot { min-height: 24px; margin: 0 -8px 6px; display: flex; align-items: stretch; }
.gm-harm-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-height: 22px;
    padding: 3px 7px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--gm-accent-soft);
    color: var(--gm-accent);
    border-top: 2px solid var(--gm-accent);
    border-bottom: 1px solid rgba(229, 154, 60, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-hb-pos-start { margin-left: 4px; border-left: 3px solid currentColor; border-radius: 4px 0 0 4px; }
.gm-hb-pos-mid { border-radius: 0; opacity: 0.95; }
.gm-hb-pos-end { margin-right: 4px; border-right: 3px solid currentColor; border-radius: 0 4px 4px 0; }
.gm-hb-pos-single { margin-left: 4px; margin-right: 4px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; border-radius: 4px; }
.gm-hb-role { font-size: 0.62rem; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, 0.22); flex-shrink: 0; }
.gm-hb-modal { background: var(--gm-blue-soft); color: var(--gm-blue); border-top-color: var(--gm-blue); border-bottom-color: rgba(106, 167, 232, 0.35); }
.gm-hb-tritone, .gm-hb-dim { background: var(--gm-green-soft); color: var(--gm-green); border-top-color: var(--gm-green); border-bottom-color: rgba(79, 184, 122, 0.35); }
.gm-hb-christophe { background: rgba(186, 114, 214, 0.16); color: #d396ef; border-top-color: #c27be3; border-bottom-color: rgba(194, 123, 227, 0.35); }
.gm-app[data-gm-theme="light"] .gm-hb-christophe { background: rgba(138, 63, 173, 0.11); color: #7a2d9e; border-top-color: #8a3fad; }
.gm-hb-marche { background: rgba(235, 134, 62, 0.17); color: #f49b56; border-top-color: #eb863e; border-bottom-color: rgba(235, 134, 62, 0.38); }
.gm-app[data-gm-theme="light"] .gm-hb-marche { background: rgba(194, 88, 18, 0.11); color: #9c4308; border-top-color: #b85210; }
.gm-hb-sec { background: rgba(217, 130, 43, 0.16); color: var(--gm-accent-hover); border-top-color: var(--gm-accent-hover); }

.gm-bar-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.gm-st-chords {
    position: relative;
    width: 100%;
    min-height: 46px;
    font-weight: 800;
    color: var(--gm-text);
}
.gm-chords-1 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-chord-slot {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border-radius: 5px;
    line-height: 1.1;
    transition: background 0.1s ease, color 0.1s ease;
}
.gm-chord-name {
    display: block;
    max-width: 100%;
    white-space: nowrap;
}
.gm-chord-slot:hover { background: rgba(229, 154, 60, 0.16); }
.gm-chord-slot.is-chord-selected {
    background: rgba(229, 154, 60, 0.24);
    box-shadow: inset 0 0 0 1px var(--gm-accent);
}
.gm-chord-slot.is-chord-playing {
    background: var(--gm-accent);
    color: var(--gm-accent-ink);
}
.gm-chord-slot.is-chord-playing .gm-beat-tag { color: var(--gm-accent-ink); opacity: 0.85; }
.gm-beat-tag {
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--gm-text-muted);
    letter-spacing: 0.02em;
    margin-top: 1px;
    line-height: 1;
}

/* Diagonal slash divider for 2-chord and 3-chord split bars */
.gm-bar-diag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.gm-bar-diag line {
    stroke: var(--gm-border-strong);
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

/* 2 chords: classic Gypsy Jazz / Real Book diagonal split */
.gm-chords-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 54px;
}
.gm-chords-2 .gm-pos-tl { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; }
.gm-chords-2 .gm-pos-br { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; }

/* 3 chords (2+1+1 or 1+1+2): diagonal half + sub-divided half with beat indicators */
.gm-chords-3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 62px;
    gap: 4px;
}
.gm-split-half-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    position: relative;
    z-index: 2;
}
.gm-split-half-bot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    position: relative;
    z-index: 2;
}
.gm-split-vbar {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: var(--gm-border-strong);
}

/* 3 chords proportional (1+2+1 or 3/4) */
.gm-chords-3-prop {
    display: grid;
    align-items: center;
    gap: 2px;
    min-height: 50px;
}
.gm-chords-3-prop .gm-chord-slot:not(:last-child) {
    border-right: 1px dashed var(--gm-border-strong);
    border-radius: 0;
}

/* 4 chords: 2x2 quadrant beat grid (1, 2 / 3, 4) */
.gm-chords-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 62px;
}
.gm-chords-4 .gm-chord-slot {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.gm-chords-4 .gm-chord-slot:nth-child(odd) { border-right: 1px dashed var(--gm-border-strong); }
.gm-chords-4 .gm-chord-slot:nth-child(1),
.gm-chords-4 .gm-chord-slot:nth-child(2) { border-bottom: 1px dashed var(--gm-border-strong); }

.gm-bnote-sym { font-style: normal; opacity: 0.9; }
.gm-st-chords.gm-font-serif { font-family: Georgia, "Times New Roman", serif; }
.gm-st-chords.gm-font-cond { font-stretch: condensed; letter-spacing: -0.04em; }
.gm-st-bar.is-mem-hidden .gm-st-chords { opacity: 0.05; transition: opacity 0.15s ease; }
.gm-st-bar.is-mem-hidden:hover .gm-st-chords { opacity: 1; }
.gm-st-bnote { font-size: 0.72rem; color: var(--gm-accent); text-align: center; margin-top: 3px; font-weight: 600; }

.gm-roman-row { font-size: 0.72rem; font-weight: 700; color: var(--gm-accent); text-align: center; margin-top: 3px; }
.gm-guide-row { font-size: 0.68rem; color: var(--gm-text-muted); text-align: center; }
.is-quiz { filter: blur(4px); user-select: none; transition: filter 0.15s ease; }
.is-quiz:hover { filter: none; }

/* Parcours linéaire */
.gm-roadmap-panel { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--gm-border-strong); }
.gm-roadmap-strip { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-rm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--gm-border);
    background: var(--gm-bg);
    color: var(--gm-text);
    font-size: 0.76rem;
    cursor: pointer;
}
.gm-rm-chip:hover { border-color: var(--gm-accent); }
.gm-rm-chip.is-playing { background: var(--gm-accent); color: var(--gm-accent-ink); border-color: var(--gm-accent); }

/* Analyseur, Voice Leading & Mélodie */
.gm-harm-item {
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--gm-border);
    border-left: 3px solid transparent;
    background: var(--gm-bg);
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.gm-harm-item:hover { border-color: var(--gm-accent); background: var(--gm-surface-hover); }
.gm-harm-item.is-active {
    background: var(--gm-accent-soft);
    border-color: var(--gm-accent);
    border-left: 4px solid var(--gm-accent);
    box-shadow: 0 0 0 1px rgba(229, 154, 60, 0.35);
}
.gm-harm-item.is-active strong { color: var(--gm-accent); }
.gm-tones-tbl { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.gm-tones-tbl th, .gm-tones-tbl td { padding: 5px 5px; border-bottom: 1px solid var(--gm-border); text-align: left; }
.gm-target-line { font-size: 0.82rem; padding: 4px 0; color: var(--gm-green); font-weight: 600; }
.gm-mel-cat { font-weight: 700; }
.gm-mc-chord { color: var(--gm-green); }
.gm-mc-tension { color: var(--gm-accent); }
.gm-mc-passage { color: var(--gm-text-muted); }

.gm-vl-box {
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-left: 3px solid var(--gm-green);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.gm-vl-line { font-size: 0.76rem; color: var(--gm-text); line-height: 1.45; }
.gm-voicing-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--gm-text-muted);
    margin-top: 3px;
}

/* Portée & Tablature SVG sous mesure */
.gm-bar-notation { margin-top: 6px; }
.gm-staff-line, .gm-tab-line { stroke: var(--gm-text-muted); stroke-width: 0.7; opacity: 0.55; }
.gm-clef-glyph { fill: var(--gm-text-muted); font-size: 24px; }
.gm-note-head { fill: var(--gm-accent); cursor: pointer; }
.gm-note-head:hover { fill: var(--gm-red); }
.gm-note-stem { stroke: var(--gm-text); stroke-width: 1.2; }
.gm-note-acc { fill: var(--gm-text); font-size: 10px; font-weight: 700; }
.gm-tab-lbl { fill: var(--gm-text-muted); font-size: 8px; font-weight: 800; }
.gm-tab-bg { fill: var(--gm-bg); }
.gm-tab-num { fill: var(--gm-accent); font-size: 9.5px; font-weight: 800; cursor: pointer; }

/* Inspecteur droit (Guitare / Piano / Constructeur) */
.gm-st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--gm-surface); padding: 4px; border: 1px solid var(--gm-border); border-radius: 10px; }
.gm-st-tabs button { border: none; background: transparent; color: var(--gm-text-muted); font-weight: 700; font-size: 0.8rem; padding: 7px 6px; border-radius: 7px; cursor: pointer; }
.gm-st-tabs button.is-on { background: var(--gm-accent); color: var(--gm-accent-ink); }

.gm-insp-voicings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.gm-insp-vcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 7px 6px 8px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.gm-vcard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 3px;
    margin-bottom: 3px;
}
.gm-vcard-sym {
    color: var(--gm-accent);
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-vcard-badges {
    display: inline-flex;
    gap: 2px;
    flex-shrink: 0;
}
.gm-vcard-badges .gm-badge {
    font-size: 0.62rem;
    padding: 1px 4px;
}
.gm-insp-vcard svg { max-width: 100%; height: auto; display: block; }
.gm-insp-vcard .gm-voicing-tones { font-size: 0.71rem; margin-top: 3px; text-align: center; line-height: 1.25; }
.gm-insp-vcard .gm-voicing-meta-row { font-size: 0.65rem; gap: 4px; margin-top: 2px; justify-content: center; flex-wrap: wrap; text-align: center; }
.gm-insp-vcard .gm-voicing-notes { font-size: 0.65rem; line-height: 1.25; margin-top: 3px; text-align: center; }
.gm-insp-vcard:hover, .gm-insp-vcard.is-picked { border-color: var(--gm-accent); background: var(--gm-accent-soft); }

.gm-pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.gm-pill { padding: 6px 4px; border-radius: 6px; border: 1px solid var(--gm-border-strong); background: var(--gm-bg); color: var(--gm-text); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.gm-pill.is-on { background: var(--gm-accent); color: var(--gm-accent-ink); border-color: var(--gm-accent); }

.gm-piano { display: flex; height: 92px; position: relative; background: #111; border-radius: 6px; overflow: hidden; border: 1px solid var(--gm-border-strong); }
.gm-pkey.is-white { flex: 1; background: #f5f2eb; border: none; border-right: 1px solid #bbb; cursor: pointer; height: 100%; padding: 0; }
.gm-pkey.is-black { width: 11px; margin: 0 -5.5px; height: 58%; background: #1c1916; border: 1px solid #000; z-index: 2; cursor: pointer; padding: 0; border-radius: 0 0 3px 3px; }
.gm-pkey.is-chord { background: var(--gm-accent); }
.gm-pkey.is-root { background: var(--gm-red); }

/* Solo / alphaTab Viewport (marge droite généreuse pour voir la double barre de fin) */
.gm-solo-wrap { display: flex; flex-direction: column; gap: 10px; }
.gm-solo-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--gm-border); }
.gm-solo-viewport {
    position: relative;
    min-height: 360px;
    max-height: 74vh;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-gutter: stable;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 8px;
    padding: 12px 14px 16px 12px;
}
.gm-solo-inner {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.gm-solo-viewport.is-horizontal { overflow-x: auto; overflow-y: hidden; }
/* Never CSS-shrink alphaTab SVGs (breaks cursor coordinate alignment!) */
.gm-solo-viewport .at-surface,
.gm-solo-viewport svg { max-width: none; display: block; }
.gm-solo-viewport .at-cursor-bar { background: rgba(229, 154, 60, 0.06); border-radius: 3px; pointer-events: none; }
.gm-solo-viewport .at-cursor-beat { background: var(--gm-accent); opacity: 0.92; width: 2.5px; pointer-events: none; }

/* Unified Solo Mixer (Partition tracks + Accompagnement grille) */
.gm-solo-mix-sec { display: flex; flex-direction: column; gap: 8px; }
.gm-solo-mix-sec-accomp { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gm-border-strong); }
.gm-solo-mix-kicker { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gm-accent); margin-bottom: 2px; }
.gm-solo-mix-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.gm-solo-track-card {
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 8px;
    padding: 8px 9px;
}
.gm-solo-track-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.gm-solo-track-name { font-size: 0.78rem; color: var(--gm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gm-solo-track-btns { display: inline-flex; gap: 4px; flex-shrink: 0; }
.gm-solo-track-vol { display: grid; grid-template-columns: 28px 1fr 34px; gap: 6px; align-items: center; font-size: 0.74rem; color: var(--gm-text-muted); }
.gm-solo-track-vol input[type="range"] { width: 100%; accent-color: var(--gm-accent); }
.gm-accomp-dimmed { opacity: 0.52; transition: opacity 0.15s ease; }
.gm-solo-viewport .at-selection div {
    background: rgba(106, 167, 232, 0.24);
    border-top: 2px solid var(--gm-blue);
    border-bottom: 2px solid var(--gm-blue);
    pointer-events: none;
}
.gm-solo-range-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(106, 167, 232, 0.18);
    border: 1px solid var(--gm-blue);
    color: var(--gm-blue);
    font-size: 0.78rem;
    font-weight: 700;
}
.gm-solo-range-x {
    border: none;
    background: rgba(106, 167, 232, 0.22);
    color: inherit;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
}
.gm-solo-range-x:hover {
    background: var(--gm-blue);
    color: #0b1420;
}
.gm-solo-foot { font-size: 0.76rem; color: var(--gm-text-muted); text-align: right; }

/* Setlist Stage Bar & +Setlist Popover */
.gm-sl-stagebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--gm-surface-2); border: 1px solid var(--gm-accent); border-radius: var(--gm-radius); }
.gm-sl-popover { position: relative; }
.gm-sl-popover summary { list-style: none; }
.gm-sl-popover summary::-webkit-details-marker { display: none; }
.gm-sl-pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1200; width: 260px; background: var(--gm-surface); border: 1px solid var(--gm-border-strong); border-radius: 10px; padding: 12px; box-shadow: var(--gm-shadow); }

/* Club Pro Modal */
.gm-pro-modal { display: none; position: fixed; inset: 0; z-index: 10500; background: rgba(0, 0, 0, 0.65); align-items: center; justify-content: center; padding: 16px; }
.gm-pro-modal.is-open { display: flex; }
.gm-pro-card { max-width: 440px; width: 100%; background: var(--gm-surface); color: var(--gm-text); border: 1px solid var(--gm-accent); border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }

/* ==========================================================================
   SMARTPHONE & TABLETTE (< 960px) — Tiroirs Bottom-Sheet propres & Solo sans bug
   ========================================================================== */
.gm-mob-dock, .gm-mob-backdrop { display: none; }

@media (max-width: 960px) {
    .gm-st-shell { padding-bottom: 76px; }
    .gm-st-shell[data-studio-mode="solo"] { padding-bottom: 76px; }

    .gm-hero-modebar { width: 100%; }
    .gm-st-modes-hero { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
    .gm-st-modes-hero.has-3-modes { grid-template-columns: repeat(3, 1fr); }
    .gm-st-modes-hero .gm-mode-btn { padding: 8px 4px; font-size: 0.78rem; }
    .gm-tb-group { border-right: none; padding-right: 0; width: 100%; }
    .gm-st-topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
        box-shadow: none;
    }
    .gm-st-modes { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
    .gm-mode-btn { text-align: center; padding: 8px 4px; font-size: 0.76rem; }
    .gm-st-controls { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px solid var(--gm-border); }
    .gm-st-controls > .gm-btn,
    .gm-st-controls > .gm-st-sel,
    .gm-st-controls > .gm-st-group { flex: 1 1 auto; justify-content: center; min-height: 36px; font-size: 0.78rem; padding: 6px 8px; }

    .gm-st-workspace { display: block; }
    .gm-st-canvas { padding: 12px; }

    /* Mode Solo sur mobile : zéro double ascenseur, dock inférieur masqué */
    .gm-st-shell[data-studio-mode="solo"] .gm-solo-viewport {
        max-height: none;
        overflow-y: visible;
        padding: 8px 14px 12px 6px;
    }
    .gm-st-shell[data-studio-mode="solo"] .gm-mob-dock { grid-template-columns: repeat(2, 1fr); }
    .gm-st-shell[data-studio-mode="solo"] .gm-mob-dock [data-mob-tab="right"] { display: none; }

    /* Tiroirs Outils & Inspecteur : vraie bottom-sheet au-dessus du dock fixe (jamais superposée) */
    .gm-mob-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.62);
        backdrop-filter: blur(2px);
        z-index: 9400;
    }
    .gm-st-shell.mob-left-open .gm-mob-backdrop,
    .gm-st-shell.mob-right-open .gm-mob-backdrop { display: block; }

    #gm-st-left, #gm-st-right {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        top: auto;
        max-height: 68dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 9500;
        background: var(--gm-bg);
        padding: 10px 12px 18px;
        border-top: 2px solid var(--gm-accent);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.65);
    }
    .gm-st-shell.mob-left-open #gm-st-left.gm-st-side,
    .gm-st-shell.mob-right-open #gm-st-right.gm-st-side { display: flex; }

    .gm-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 2px 10px;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--gm-border);
        font-size: 0.9rem;
        color: var(--gm-text);
    }

    /* Dock tactile fixe tout en bas (z-index > tiroirs) */
    .gm-mob-dock {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9600;
        background: var(--gm-surface);
        border-top: 1px solid var(--gm-border-strong);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
    .gm-mob-dock button {
        min-height: 46px;
        border-radius: 8px;
        border: 1px solid var(--gm-border);
        background: var(--gm-bg);
        color: var(--gm-text);
        font-weight: 700;
        font-size: 0.84rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        transition: transform 0.08s ease, background-color 0.12s ease;
    }
    .gm-mob-dock button:active { transform: scale(0.97); }
    .gm-mob-dock button.is-active { background: var(--gm-accent); color: var(--gm-accent-ink); border-color: var(--gm-accent); }
}

@media (max-width: 720px) and (orientation: portrait) {
    .gm-st-canvas { padding: 8px 6px; }
    .gm-st-bar {
        min-height: 66px;
        padding: 4px 3px 6px;
    }
    .gm-st-bnum { font-size: 0.60rem; }
    .gm-st-bnote { font-size: 0.62rem; }
    .gm-beat-tag { font-size: 0.50rem; }
}

/* ==========================================================================
   APERÇU AVANT IMPRESSION A4 (MODALE COMPLETE)
   ========================================================================== */
.gm-print-modal { display: none; position: fixed; inset: 0; z-index: 10000; background: #dfe3e8; color: #1f2428; flex-direction: column; font-family: system-ui, -apple-system, sans-serif; }
.gm-print-modal.is-open { display: flex; }
.gm-pm-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: #ffffff; border-bottom: 1px solid #d0d7de; padding: 10px 18px; }
.gm-pm-meta { color: #656d76; font-size: 0.84rem; margin-left: 10px; }
.gm-pm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-pm-mob-tabs { display: none; }
.gm-pm-body { flex: 1; display: grid; grid-template-columns: 270px 1fr 290px; overflow: hidden; min-height: 0; }
.gm-pm-body.is-settings-hidden { grid-template-columns: 1fr; }
.gm-pm-body.is-settings-hidden .gm-pm-panel { display: none; }
@media (max-width: 960px) {
    .gm-print-modal {
        height: 100vh;
        height: 100dvh;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }
    .gm-pm-topbar {
        padding: 8px 10px;
        gap: 6px;
    }
    .gm-pm-head-info {
        display: flex;
        align-items: baseline;
        gap: 6px;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }
    .gm-pm-meta {
        margin-left: 0;
        font-size: 0.74rem;
    }
    .gm-pm-actions {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
    }
    .gm-pm-actions .gm-btn {
        min-height: 36px;
        padding: 4px 10px;
        font-size: 0.82rem;
    }
    .gm-pm-desk-only { display: none !important; }
    .gm-pm-mob-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 7px 10px;
        background: #eef1f5;
        border-bottom: 1px solid #d0d7de;
        flex-shrink: 0;
    }
    .gm-pm-mob-tabs button {
        min-height: 38px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #334155;
        font-weight: 800;
        font-size: 0.82rem;
        cursor: pointer;
        touch-action: manipulation;
    }
    .gm-pm-mob-tabs button.is-on {
        background: #234752;
        border-color: #234752;
        color: #ffffff;
    }
    .gm-pm-body {
        display: flex !important;
        flex-direction: column;
        flex: 1 1 0%;
        min-height: 0;
        overflow: hidden;
    }
    .gm-pm-body > .gm-pm-panel,
    .gm-pm-body > .gm-pm-stage {
        display: none !important;
        width: 100%;
        flex: 1 1 0%;
        min-height: 0;
        border: none;
        box-sizing: border-box;
    }
    .gm-pm-body[data-pm-active-tab="preview"] > .gm-pm-stage {
        display: flex !important;
        justify-content: center;
        align-items: flex-start;
        padding: 10px 8px 28px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gm-pm-body[data-pm-active-tab="layout"] > .gm-pm-left {
        display: block !important;
        padding: 12px 12px 28px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gm-pm-body[data-pm-active-tab="content"] > .gm-pm-right {
        display: block !important;
        padding: 12px 12px 28px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.gm-pm-panel { background: #f6f8fa; border-right: 1px solid #d0d7de; border-left: 1px solid #d0d7de; padding: 14px; overflow-y: auto; }
.gm-pm-sec { background: #ffffff; border: 1px solid #d8dee4; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.gm-pm-sec h4 { margin: 0 0 10px; font-size: 0.9rem; color: #1f2428; }
.gm-pm-sec label { display: block; font-size: 0.78rem; font-weight: 600; color: #4a5568; margin-bottom: 4px; }
.gm-pm-panel .gm-input, .gm-pm-panel .gm-select { background: #ffffff; color: #1f2428; border-color: #cbd5e1; padding: 6px 8px; font-size: 0.82rem; }
.gm-pm-seg { display: flex; gap: 4px; margin-bottom: 10px; }
.gm-pm-seg button { flex: 1; padding: 6px 4px; font-size: 0.78rem; font-weight: 700; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; border-radius: 6px; cursor: pointer; }
.gm-pm-seg button.is-on { background: #234752; color: #ffffff; border-color: #234752; }
.gm-pm-chk { display: flex; align-items: center; gap: 6px; margin-top: 8px; cursor: pointer; }

.gm-pm-stage { overflow: auto; padding: 24px 24px 64px; display: flex; justify-content: center; align-items: flex-start; min-height: 0; }
.gm-pm-sheets-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.gm-a4-sheet {
    position: relative;
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    background: #ffffff;
    color: #16181a;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
    padding: 9mm 13mm 9mm;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.gm-a4-sheet.is-landscape {
    width: 297mm;
    height: 210mm;
    min-height: 210mm;
    max-height: 210mm;
    padding: 10mm 13mm 9mm;
}
.gm-a4-subhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    color: #555;
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.gm-a4-subhead strong {
    font-size: 13px;
    text-transform: uppercase;
    color: #1c3a44;
}
.gm-a4-sheet.is-bw * { color: #111111 !important; border-color: #222222 !important; }
.gm-a4-layer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gm-a4-head { text-align: center; margin-bottom: 8px; }
.gm-a4-head h1 { margin: 0; font-size: 21px; line-height: 1.12; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #1c3a44; text-align: center; }
.gm-a4-subline { font-size: 11px; color: #4a4a4a; margin-top: 2px; line-height: 1.25; text-align: center; }
.gm-a4-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 4px;
    line-height: 1.2;
}
.gm-a4-meta { font-size: 10.5px; color: #555; font-weight: 700; }
.gm-a4-meta-sep { color: #bbb; font-size: 10px; }
.gm-a4-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.gm-a4-form-pill { display: inline-block; border: 1.3px solid #1c3a44; padding: 0 5px; font-size: 9.5px; font-weight: 800; border-radius: 3px; line-height: 1.35; }
.gm-a4-section { margin-bottom: 9px; }
.gm-a4-sec-lbl { font-size: 10px; font-weight: 800; color: #b85d19; text-transform: uppercase; margin-bottom: 2px; }
/* Borders belong on individual .gm-a4-bar cells (NEVER on .gm-a4-grid) so partial last rows NEVER draw a stray black line across empty columns! */
.gm-a4-grid { display: grid; background: transparent; }
.gm-a4-bar {
    min-width: 0;
    overflow: hidden;
    border-top: 1.8px solid #222;
    border-right: 1.8px solid #222;
    border-bottom: 1.8px solid #222;
    min-height: 62px;
    padding: 4px 4px 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    box-sizing: border-box;
}
.gm-a4-bar:first-child { border-left: 1.8px solid #222; }
.gm-a4-bar.is-rep-start { border-left: 3.5px double #b85d19; }
.gm-a4-bar.is-rep-end { border-right: 3.5px double #b85d19; }
.gm-a4-bpl-8 .gm-a4-bar { min-height: 54px; padding: 3px 3px 4px; }
.gm-a4-sheet.is-compact .gm-a4-bar { min-height: 38px; padding: 2px 3px; }
.gm-a4-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 10px;
    line-height: 1;
}
.gm-a4-bnum { font-size: 7.5px; color: #777; font-weight: 600; }
.gm-a4-volta {
    font-size: 7.5px;
    font-weight: 800;
    color: #b85d19;
    border-top: 1.4px solid #b85d19;
    border-left: 1.4px solid #b85d19;
    padding: 0 3px 0 2px;
    line-height: 1.1;
}
.gm-a4-chords {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
    color: #111;
    line-height: 1.1;
}
.gm-a4-c1 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gm-a4-c2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 36px;
}
.gm-a4-bpl-8 .gm-a4-c2 { min-height: 32px; }
.gm-a4-diag-line {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    pointer-events: none;
    z-index: 0;
}
.gm-a4-diag-line line {
    stroke: #999;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}
.gm-a4-slot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    line-height: 1.05;
}
.gm-a4-tl { align-self: flex-start; padding-right: 4px; }
.gm-a4-br { align-self: flex-end; padding-left: 4px; }
.gm-a4-cname {
    display: block;
    white-space: nowrap;
    max-width: 100%;
}
.gm-a4-btag {
    display: block;
    font-size: 6.5px;
    font-weight: 600;
    color: #666;
    line-height: 1;
    margin-top: 1px;
}
.gm-a4-c3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 38px;
}
.gm-a4-half-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}
.gm-a4-half-bot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}
.gm-a4-vbar {
    width: 1px;
    height: 11px;
    background: #aaa;
    flex-shrink: 0;
}
.gm-a4-c3-prop {
    display: grid;
    align-items: center;
    gap: 2px;
    text-align: center;
}
.gm-a4-c4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 2px;
    align-items: center;
    justify-items: center;
}
.gm-a4-bnote { font-size: 7.5px; text-align: center; color: #8c4814; font-weight: 700; margin-top: 1px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Discreet, crisp horizontal copyright strip repeated every 2-3 rows (100% readable, zero chord overlap!) */
.gm-a4-row-unit.is-sec-first { margin-top: 8px; }
.gm-a4-row-unit.is-sec-first:first-child { margin-top: 0; }
.gm-a4-row-unit.is-sec-last { margin-bottom: 4px; }
.gm-a4-grid.is-cont-row .gm-a4-bar { border-top: none; }
.gm-a4-body-content > .gm-a4-row-unit:first-child .gm-a4-grid.is-cont-row .gm-a4-bar { border-top: 1.8px solid #222; }
.gm-a4-wm-strip + .gm-a4-row-unit .gm-a4-grid.is-cont-row .gm-a4-bar { border-top: 1.8px solid #222; }
.gm-a4-wm-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px 6px 4px;
    font-family: Georgia, serif;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(120, 82, 36, 0.36);
    user-select: none;
    pointer-events: none;
}
.gm-a4-sheet.is-bw .gm-a4-wm-strip {
    color: rgba(0, 0, 0, 0.28) !important;
}
.gm-a4-harm-tag { font-size: 7.5px; font-weight: 800; color: #9a4510; background: #fdf3e7; border-top: 1.5px solid #b85d19; text-align: center; padding: 1px 3px; margin: -3px -5px 3px; }
.gm-a4-ht-start { margin-left: 0; border-left: 2px solid #b85d19; }
.gm-a4-ht-end { margin-right: 0; border-right: 2px solid #b85d19; }
.gm-a4-harm-notes { font-size: 9.5px; color: #333; margin: 8px 0; padding: 6px 8px; background: #f8f6f2; border-left: 3px solid #b85d19; }
.gm-a4-positions { margin-top: 12px; padding-top: 8px; border-top: 1px solid #ddd; }
.gm-a4-pos-title { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: #b85d19; margin-bottom: 8px; }
.gm-a4-pos-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.gm-a4-diag { text-align: center; }
.gm-a4-diag .gm-svg-board { fill: #faf6f0; stroke: #ccc; }
.gm-a4-diag .gm-svg-fret { stroke: #aaa; }
.gm-a4-diag .gm-svg-string { stroke: #666; }
.gm-a4-diag .gm-svg-nut { stroke: #111; }
.gm-a4-diag .gm-svg-dot { fill: #1c1b19; }
.gm-a4-sheet:not(.is-bw) .gm-a4-diag .gm-svg-dot-root { fill: #d93829 !important; stroke: #ffffff !important; stroke-width: 1.4; }
.gm-a4-sheet:not(.is-bw) .gm-a4-diag .gm-svg-open-root { stroke: #d93829 !important; stroke-width: 2.3; }
.gm-a4-diag .gm-svg-notelbl { fill: #333; }
.gm-a4-sheet:not(.is-bw) .gm-a4-diag .gm-svg-notelbl-root { fill: #d93829 !important; font-weight: 800; }
.gm-a4-diag-name { font-size: 11px; font-weight: 800; color: #111; margin-top: 2px; }
.gm-a4-handwritten { margin-top: 12px; }
.gm-a4-rule { height: 22px; border-bottom: 1px dashed #bbb; }
.gm-a4-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #e2e2e2; display: flex; justify-content: space-between; font-size: 9px; color: #777; }

@media print {
    body.gm-print-open > *:not(#gm-print-modal) { display: none !important; }
    .no-print { display: none !important; }
    #gm-print-modal { position: static !important; background: #ffffff !important; display: block !important; }
    .gm-pm-body, .gm-pm-stage { display: block !important; padding: 0 !important; overflow: visible !important; }
    .gm-pm-sheets-stack { display: block !important; zoom: 1 !important; }
    .gm-a4-sheet {
        box-shadow: none !important;
        margin: 0 !important;
        height: 296mm !important;
        min-height: 296mm !important;
        max-height: 296mm !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .gm-a4-sheet.is-landscape {
        height: 209mm !important;
        min-height: 209mm !important;
        max-height: 209mm !important;
    }
    .gm-a4-sheet:not(:last-child) {
        page-break-after: always;
        break-after: page;
    }
}

/* ==========================================================================
   v1.4.2 — Mode Pupitre Tactile Smartphone & Tablette (Plein écran de scène)
   ========================================================================== */
html.gm-tp-lock-scroll,
html.gm-tp-lock-scroll body {
    overflow: hidden !important;
    overscroll-behavior: none;
}
.gm-st-shell.is-touch-pupitre {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 9995 !important;
    background: var(--gm-bg) !important;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    overscroll-behavior: contain;
}
.gm-st-shell.is-touch-pupitre #gm-st-setlist-bar,
.gm-st-shell.is-touch-pupitre #gm-st-left,
.gm-st-shell.is-touch-pupitre #gm-st-right,
.gm-st-shell.is-touch-pupitre .gm-mob-dock,
.gm-st-shell.is-touch-pupitre .gm-st-canvas-bar,
.gm-st-shell.is-touch-pupitre .gm-st-canvas-foot,
.gm-st-shell.is-touch-pupitre .gm-roadmap-panel {
    display: none !important;
}
.gm-st-shell.is-touch-pupitre #gm-st-topbar {
    position: relative !important;
    top: 0 !important;
    z-index: 30 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.gm-st-shell.is-touch-pupitre .gm-st-workspace {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden !important;
}
.gm-st-shell.is-touch-pupitre #gm-st-canvas {
    display: block !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 6px 24px !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--gm-bg) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    box-sizing: border-box !important;
}
.gm-st-shell.is-touch-pupitre[data-studio-mode="edit"] #gm-st-canvas {
    padding-bottom: 92px !important;
}
.gm-st-shell.is-touch-pupitre .gm-st-section {
    margin-bottom: 5px;
}
.gm-st-shell.is-touch-pupitre .gm-st-sec-head {
    margin-bottom: 2px;
}
.gm-st-shell.is-touch-pupitre .gm-section-badge {
    font-size: 0.68rem;
    padding: 1px 6px;
}
.gm-st-shell.is-touch-pupitre .gm-bar-top-row {
    min-height: 12px;
    margin-bottom: 1px;
    gap: 3px;
}
.gm-st-shell.is-touch-pupitre .gm-st-chords {
    font-size: inherit !important;
}
.gm-st-shell.is-touch-pupitre .gm-st-bar {
    min-height: 44px;
    padding: 3px 4px 4px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
}
.gm-st-shell.is-touch-pupitre .gm-st-bnum {
    font-size: 0.58rem;
    opacity: 0.52;
}
.gm-st-shell.is-touch-pupitre .gm-st-bnote {
    font-size: 0.60rem;
    margin-top: 1px;
}
.gm-tp-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1.5px solid var(--gm-border-strong);
    background: var(--gm-bg);
    color: var(--gm-text);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.gm-tp-fs-btn.is-on {
    border-color: var(--gm-accent);
    color: var(--gm-accent);
    background: var(--gm-accent-soft);
}
@media (orientation: landscape) and (max-height: 520px) {
    .gm-st-shell.is-touch-pupitre .gm-tp-microbar {
        min-height: 30px;
        padding: 2px 8px;
        font-size: 0.72rem;
    }
    .gm-st-shell.is-touch-pupitre #gm-st-canvas {
        padding: 3px 6px 20px !important;
    }
    .gm-st-shell.is-touch-pupitre .gm-st-section {
        margin-bottom: 3px;
    }
    .gm-st-shell.is-touch-pupitre .gm-st-sec-head {
        margin-bottom: 1px;
    }
    .gm-st-shell.is-touch-pupitre .gm-section-badge {
        font-size: 0.62rem;
        padding: 0 5px;
    }
    .gm-st-shell.is-touch-pupitre .gm-bar-top-row {
        min-height: 10px;
        margin-bottom: 0;
    }
    .gm-st-shell.is-touch-pupitre .gm-st-bar {
        padding: 2px 3px 3px;
    }
}
.gm-st-shell.is-touch-pupitre .gm-edit-dock-wrap {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 60 !important;
}

/* 1-Line Ultra-Clean Top Microbar */
.gm-tp-microbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 4px 8px;
    background: var(--gm-surface);
    border-bottom: 1px solid var(--gm-border);
    font-size: 0.76rem;
    line-height: 1.2;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}
.gm-tp-counter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--gm-accent);
    background: var(--gm-accent-soft);
    color: var(--gm-accent);
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.gm-tp-counter-btn:active { transform: scale(0.95); }
.gm-tp-meta-line {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gm-text-muted);
}
.gm-tp-meta-title {
    font-weight: 800;
    color: var(--gm-text);
    font-size: 0.82rem;
}
.gm-tp-meta-sep {
    margin: 0 4px;
    opacity: 0.5;
}
.gm-tp-meta-key {
    font-weight: 800;
    color: var(--gm-accent);
}
.gm-tp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gm-green);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--gm-green);
}

/* Top Edit Bar (Long-press safe exit: Terminer / Annuler) */
.gm-tp-editbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    background: #2b1d0d;
    color: #fff6e6;
    border-bottom: 2px solid var(--gm-accent);
}
.gm-app[data-gm-theme="light"] .gm-tp-editbar {
    background: #f5e6cf;
    color: #221b14;
}
.gm-tp-editbar-lbl {
    font-weight: 800;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-tp-editbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Floating Translucent HUD (Tap to toggle) */
.gm-tp-hud-top,
.gm-tp-hud-bot {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10010;
    background: rgba(22, 19, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gm-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.gm-app[data-gm-theme="light"] .gm-tp-hud-top,
.gm-app[data-gm-theme="light"] .gm-tp-hud-bot {
    background: rgba(255, 252, 245, 0.97);
    box-shadow: 0 4px 20px rgba(34, 27, 20, 0.14);
}
.gm-tp-hud-top {
    top: env(safe-area-inset-top, 0px);
    padding: 8px 12px;
    border-bottom: 1px solid var(--gm-border-strong);
    transform: translateY(-10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gm-tp-hud-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.gm-tp-hud-row-tools {
    justify-content: center;
    gap: 10px;
}
.gm-tp-hud-bot {
    bottom: 0;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--gm-border-strong);
    transform: translateY(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}
.gm-tp-hud-bot-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.gm-tp-hud-top.is-open,
.gm-tp-hud-bot.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.gm-tp-btn {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 9px;
    touch-action: manipulation;
}
.gm-tp-ico-btn {
    min-width: 44px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}
.gm-tp-step-grp {
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
}
.gm-tp-step-btn {
    min-width: 34px;
    min-height: 38px;
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: 800;
    touch-action: manipulation;
}
.gm-tp-step-val {
    min-width: 32px;
    padding: 0 4px;
    text-align: center;
    font-weight: 800;
    font-size: 0.82rem;
}
@media (orientation: landscape) and (max-height: 520px) {
    .gm-tp-hud-top {
        flex-direction: row;
        justify-content: space-between;
        padding: 6px 10px;
    }
    .gm-tp-hud-row { width: auto; }
    .gm-tp-btn { min-height: 34px; padding: 4px 10px; font-size: 0.8rem; }
    .gm-tp-ico-btn { min-width: 40px; min-height: 36px; font-size: 1.15rem; }
    .gm-tp-step-btn { min-width: 32px; min-height: 34px; }
}

/* Live Horizontal Song Swipe Preview Pill */
.gm-tp-swipe-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10015;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(22, 19, 16, 0.92);
    border: 1.5px solid var(--gm-accent);
    color: #f3ede4;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    white-space: nowrap;
    max-width: 88vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2D Cross-Swipe Chord Position Card Overlay */
.gm-tp-chord-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10030;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    touch-action: none;
}
.gm-tp-chord-card {
    width: min(370px, 92vw);
    background: var(--gm-surface);
    border: 2px solid var(--gm-accent);
    border-radius: 18px;
    padding: 14px 16px 14px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    position: relative;
}
.gm-tp-chord-strip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gm-border);
}
.gm-tp-strip-ctx {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    overflow: hidden;
}
.gm-tp-strip-cur {
    font-weight: 800;
    color: var(--gm-accent);
    background: var(--gm-accent-soft);
    border: 1px solid var(--gm-accent);
    border-radius: 8px;
    padding: 2px 9px;
    font-size: 0.92rem;
}
.gm-tp-chord-head {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.gm-tp-chord-name {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--gm-text);
    line-height: 1.1;
}
.gm-tp-chord-meta {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    font-weight: 600;
}
.gm-tp-chord-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}
.gm-tp-diag-tap {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 12px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.12s ease, border-color 0.15s ease;
}
.gm-tp-diag-tap:active {
    transform: scale(0.97);
    border-color: var(--gm-accent);
}
.gm-tp-vrail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.gm-tp-vdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gm-border-strong);
    transition: background 0.15s ease, transform 0.15s ease;
}
.gm-tp-vdot.is-on {
    background: var(--gm-accent);
    transform: scale(1.35);
}
.gm-tp-chord-foot {
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    text-align: center;
    line-height: 1.35;
}

/* Left Slide-In Playlist Drawer (opened by tapping counter 3/12) */
.gm-tp-pl-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10035;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    justify-content: flex-start;
}
.gm-tp-pl-drawer {
    width: min(86vw, 350px);
    height: 100%;
    background: var(--gm-surface);
    border-right: 1px solid var(--gm-border-strong);
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.55);
}
.gm-tp-pl-head {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--gm-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gm-tp-pl-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.gm-tp-pl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.gm-tp-pl-list {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gm-tp-pl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 10px 11px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: var(--gm-bg);
    color: var(--gm-text);
    cursor: pointer;
    touch-action: manipulation;
}
.gm-tp-pl-item.is-cur {
    border-color: var(--gm-accent);
    background: var(--gm-accent-soft);
}
.gm-tp-pl-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
}
.gm-tp-pl-item-sub {
    font-size: 0.72rem;
    color: var(--gm-text-muted);
}

/* One-Time Gesture Memo Overlay (? in HUD) */
.gm-tp-help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.gm-tp-help-card {
    width: min(390px, 92vw);
    background: var(--gm-surface);
    border: 2px solid var(--gm-accent);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    color: var(--gm-text);
}
.gm-tp-help-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 0.85rem;
    line-height: 1.35;
}
.gm-tp-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.gm-tp-help-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gm-accent-soft);
    color: var(--gm-accent);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
