@font-face{font-family:Inter;src:url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('../assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');font-weight:100 800;font-display:swap}
:root{color-scheme:dark;--bg:#0d0d12;--panel:#171720;--fg:#f1f1f8;--muted:#a0a5b8;--accent:#00b9c1;--line:#30303f;--mono:'JetBrains Mono',Consolas,monospace}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;margin:0;overflow:hidden}body{background:radial-gradient(ellipse at 60% 0,#00adb509,transparent 60%),var(--bg);color:var(--fg);font:13px/1.4 Inter,'Segoe UI',sans-serif}button,select,input{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;background:var(--accent);color:#042226;border:1px solid transparent;border-radius:9px;padding:9px 14px;font-weight:650}button:hover:not(:disabled){filter:brightness(1.15)}button:disabled{opacity:.4;cursor:default}button.ghost{background:#ffffff04;border-color:var(--line);color:var(--fg)}button.off{background:#383845;color:#d5d9e5}select,input[type=text]{background:#22222f;color:var(--fg);padding:10px;border:1px solid var(--line);border-radius:8px;min-width:0;max-width:100%}input[type=range]{accent-color:var(--accent);min-width:0;width:100%;cursor:pointer}input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}input[type=text]{width:100%;font-family:var(--mono)}label{display:flex;align-items:center;gap:8px;color:var(--muted)}output{font:12px var(--mono);color:var(--fg)}h2,h3{margin:0;font-size:12px;letter-spacing:.6px}h3{color:var(--muted);font-size:11px}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #71f0e9;outline-offset:3px}
#app{height:100%;display:grid;grid-template-columns:86px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr) 116px;gap:12px;padding:0 18px 14px;max-width:2200px;margin:auto}.app-header{grid-column:1/-1;display:flex;align-items:center;gap:18px;min-width:0;border-bottom:1px solid var(--line)}.brand{display:flex;gap:9px;align-items:center;text-decoration:none;font-size:18px;font-weight:750;white-space:nowrap}.brand img{border-radius:10px}.brand small{display:block;font-size:8px;font-weight:500;color:var(--muted);letter-spacing:1.5px}.session-info{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:330px}.session-info strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-info span{font-size:9px;color:var(--accent)}#status{font-size:10px;color:var(--muted);margin-inline-start:auto;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#lang{font-size:11px;max-width:130px;padding:7px}#fullscreenBtn{font-size:11px;padding:7px}#loadBar{height:3px;width:65px;background:var(--line)}#loadFill{display:block;height:100%;background:var(--accent)}
.tool-rail{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:10px;min-height:0}.tool-rail button{flex:1;max-height:94px;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid var(--line);background:var(--panel);color:var(--fg);padding:7px 4px}.tool-rail button>span{font-size:25px;color:var(--accent);line-height:1}.tool-rail b{font-size:11px}.tool-rail small{font-size:8px;color:var(--muted)}
.practice-workspace{grid-column:2;grid-row:2;min-height:0;min-width:0;display:grid;grid-template-rows:130px minmax(0,1fr);gap:12px}.chord-strip{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:9px 13px;display:flex;gap:16px;align-items:center;min-width:0;min-height:0}.strip-heading{display:flex;flex-direction:column;gap:8px;align-items:start;flex:0 0 72px}.strip-heading h2{font-size:10px}.edit-song{font-size:9px;padding:5px 10px}.badge{font-size:10px;background:#263740;border-radius:99px;padding:2px 7px}.badge.chorus{color:var(--accent)}#chordCards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(75px,1fr);gap:8px;flex:1;min-width:0;height:100%;overflow:auto;padding:2px;direction:ltr}.chord{position:relative;display:flex;align-items:center;justify-content:space-evenly;gap:4px;padding:5px;background:#22222d;border:1px solid #373747;color:var(--fg);min-width:0}.chord>strong{font:600 19px var(--mono)}.chord.active,.chord.inspected{border-color:var(--accent);background:#00adb51a;box-shadow:inset 0 -3px var(--accent)}.chord-diagram{display:block;width:100%;height:auto;max-width:150px;margin:auto}.chord>.chord-diagram{width:58px;max-height:96px;margin:0}.diagram-string,.diagram-fret{stroke:#666980;stroke-width:1}.diagram-nut{stroke:#dfe2ee;stroke-width:4}.diagram-dot{fill:var(--accent)}.diagram-root{fill:#f8b33f}.diagram-open{fill:#bdc4d6;font:18px var(--mono);text-anchor:middle}.diagram-string-name{fill:#9ca7c0;font:10px var(--mono);text-anchor:middle}.diagram-position{fill:#c6cddd;font:10px var(--mono);text-anchor:middle}
.guitar-panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:12px 14px;min-height:0;min-width:0;display:flex;flex-direction:column;gap:10px}.guitar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.guitar-heading>div:first-child{display:flex;align-items:center;gap:12px}.guitar-heading h2{font-size:10px}.guitar-heading strong{font:10px var(--mono);color:var(--accent)}.guitar-heading>button{font-size:10px;padding:5px 9px}.shape-tabs{display:flex;gap:5px}.shape-tabs button{font:10px var(--mono);padding:5px 8px;background:#262634;color:var(--muted);border:1px solid var(--line)}.shape-tabs button[aria-pressed=true]{background:#00adb52a;color:#72f2ef;border-color:var(--accent)}
.scale-shapes{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.scale-shapes.focused{grid-template-columns:1fr}.scale-box{border:1px solid #343444;border-radius:12px;min-width:0;min-height:0;display:flex;flex-direction:column;background:#111118;padding:10px 8px;position:relative}.box-heading{display:flex;align-items:center;gap:7px;flex-shrink:0;min-height:32px}.box-number{background:var(--shape-color);color:white;border-radius:50%;height:27px;width:27px;display:grid;place-items:center;font:700 15px var(--mono);flex-shrink:0}.box-heading strong{font-size:10px;display:block}.box-heading small{font:8px var(--mono);color:var(--muted);display:block}.box-svg{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;direction:ltr}.box-svg svg{display:block;width:100%;height:100%;max-height:440px}.box-footer{font:9px var(--mono);color:var(--muted);text-align:center;flex-shrink:0}.scale-note{cursor:pointer;outline:none}.scale-note circle{fill:#00b6bc;stroke:#111118;stroke-width:1.5}.scale-note.scale-root circle{fill:#f8b33f}.scale-note text{fill:#041d22;font:700 10px var(--mono);text-anchor:middle;pointer-events:none}.scale-note.in-chord circle{stroke:#baf7ba;stroke-width:3}.scale-note:hover circle,.scale-note:focus-visible circle,.scale-note[aria-pressed=true] circle{stroke:white;stroke-width:3}.box-string{stroke:#55566b}.box-fret{stroke:#303246}.box-nut{stroke:#c3cada;stroke-width:3}.fret-label,.tuning-label{fill:#a1aac2;font:10px var(--mono);text-anchor:middle}.guitar-footer{display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:18px;font-size:9px;flex-shrink:0}.legend{display:flex;align-items:center;gap:6px;margin:0;color:var(--muted);font-size:9px}.dot{height:8px;width:8px;display:inline-block;border-radius:50%;background:var(--accent)}.dot.root{background:#f8b33f}.guitar-footer output{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.current-chord-tag{white-space:nowrap;color:var(--muted)}.current-chord-tag b{color:var(--accent);font:600 13px var(--mono)}
.transport-panel{grid-column:1/-1;grid-row:3;background:var(--panel);border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 20px;min-width:0}.transport-actions{display:flex;gap:8px}.transport-actions button{padding:15px 20px;white-space:nowrap}.tempo-control{display:grid;grid-template-columns:auto minmax(80px,150px) 32px;gap:7px;font-size:11px}.tempo-control small{grid-column:3;grid-row:2;font-size:8px;color:var(--muted);text-align:center}.master-control{display:flex;gap:10px;font-size:11px;max-width:210px}.profile-badge{font-size:9px;color:var(--muted);border:1px solid var(--line);padding:7px 10px;border-radius:30px;white-space:nowrap}
dialog{width:min(600px,calc(100vw - 30px));max-height:calc(100dvh - 36px);border:1px solid #45465c;border-radius:16px;padding:0;color:var(--fg);background:#191923;box-shadow:0 25px 120px #0009;overflow:hidden}dialog::backdrop{background:#06080bbb;backdrop-filter:blur(6px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:16px 20px}.dialog-heading button{padding:0;width:30px;height:30px;border-radius:50%;background:#30303f;color:var(--fg);font-size:20px}.dialog-content{padding:20px;max-height:calc(100dvh - 115px);overflow:auto}.fields{display:flex;flex-direction:column;gap:18px}.fields>label{display:flex;gap:10px;flex-wrap:wrap}.fields>label>select{flex:1}.fields>label>input[type=range]{flex:1}.field-pair{display:grid;grid-template-columns:1fr 1.6fr;gap:14px}.field-pair>label{display:flex;flex-direction:column;align-items:stretch}.row{display:flex;gap:8px}.row select{flex:1}.hint{font-size:11px;color:var(--muted);margin:0;line-height:1.7}#diatonic{display:flex;flex-wrap:wrap;gap:7px}#diatonic button{background:#292a38;color:var(--fg);padding:6px 10px;font:11px var(--mono)}#mixer,#drumMixer{display:grid;gap:17px}.mix{display:grid;grid-template-columns:minmax(100px,1fr) minmax(80px,1fr) 60px;gap:12px;align-items:center;font-size:11px}.mix small{display:block;color:var(--muted);font-size:10px}.mix button{padding:7px 5px;font-size:10px}.shape-nav{display:flex;align-items:center;justify-content:center;gap:14px;font-size:11px}#currentDiagram .chord-diagram{max-width:150px}.urls{font-size:10px;word-break:break-all;color:var(--muted)}details summary{cursor:pointer}details>.fields{margin-top:16px}#updateBar{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#252b34;padding:12px 18px;border:1px solid var(--accent);border-radius:12px;z-index:50;display:flex;gap:14px;align-items:center;font-size:11px}
body.locked #app{visibility:hidden}#gate{position:fixed;inset:0;display:grid;place-items:center;background:var(--bg);z-index:100;padding:16px}#gate .card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:30px;width:min(360px,100%);display:flex;flex-direction:column;gap:16px;text-align:center}#gate h1{margin:0;font-size:25px}#gate label{justify-content:center}#gate input{font:24px var(--mono);text-align:center;padding:12px;letter-spacing:.3em;width:100%;border:1px solid var(--line);border-radius:8px;background:#0d0d12;color:white}#gate .err{min-height:1.4em;margin:0;color:#ff8989;font-size:12px}
@media(max-width:1150px){#app{grid-template-columns:70px minmax(0,1fr);gap:9px;padding:0 12px 10px;grid-template-rows:56px minmax(0,1fr) 106px}.practice-workspace{grid-template-rows:112px minmax(0,1fr);gap:9px}.scale-shapes{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.scale-shapes.focused{grid-template-columns:1fr;grid-template-rows:1fr}.scale-box:nth-child(4){grid-column:1/2}.box-heading{min-height:25px}.box-number{width:22px;height:22px;font-size:12px}.transport-panel{gap:12px;padding:8px 12px}.transport-actions button{padding:12px 15px}.profile-badge{display:none}.session-info{max-width:235px}.guitar-heading>div:first-child{flex-direction:column;align-items:start;gap:3px}.guitar-panel{padding:10px}.box-heading strong{font-size:9px}.box-heading small{font-size:7px}.scale-box{padding:6px}}
@media(max-width:760px){#app{grid-template-columns:1fr;grid-template-rows:48px 52px minmax(0,1fr) 104px;padding:0 8px 8px;gap:7px}.app-header{grid-row:1;gap:8px}.brand{font-size:14px}.brand small{display:none}.brand img{width:26px;height:26px}.session-info{margin-inline-start:auto;max-width:180px}.session-info strong{font-size:10px}.session-info span{font-size:8px}#status,#fullscreenBtn{display:none}#lang{max-width:85px;font-size:10px;padding:5px}.tool-rail{grid-column:1;grid-row:2;flex-direction:row;gap:6px}.tool-rail button{flex-direction:row;flex:1;gap:4px;padding:4px;max-height:none}.tool-rail small{display:none}.tool-rail button>span{font-size:17px}.tool-rail b{font-size:9px}.practice-workspace{grid-column:1;grid-row:3;grid-template-rows:80px minmax(0,1fr);gap:7px}.chord-strip{padding:5px 7px;gap:6px}.strip-heading{flex-basis:45px;gap:5px}.strip-heading h2{font-size:8px}.chord{flex-direction:column;padding:3px;gap:1px}.chord>strong{font-size:12px}.chord>.chord-diagram{width:40px;max-height:44px}#chordCards{gap:5px;grid-auto-columns:minmax(55px,1fr)}.guitar-panel{padding:8px;gap:6px}.guitar-heading{gap:6px}.guitar-heading h2{display:none}.guitar-heading strong{font-size:8px}.guitar-heading>button{font-size:8px;padding:4px 6px}.shape-tabs{gap:3px}.shape-tabs button{padding:4px 5px;font-size:9px}.scale-shapes{gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.scale-shapes.focused{grid-template-columns:1fr;grid-template-rows:1fr}.box-heading{min-height:20px;gap:4px}.box-number{width:18px;height:18px;font-size:10px}.box-heading strong{font-size:8px}.box-heading small{display:none}.box-footer{font-size:7px}.guitar-footer{font-size:7px;gap:5px}.legend{font-size:7px;gap:4px}.guitar-footer output{font-size:7px;max-width:140px}.current-chord-tag>span{display:none}.transport-panel{grid-row:4;grid-column:1;padding:7px;gap:8px;flex-wrap:wrap;justify-content:center}.transport-actions{gap:4px}.transport-actions button{padding:10px 9px;font-size:10px}.tempo-control{font-size:8px;grid-template-columns:1fr 25px;gap:3px;width:95px}.tempo-control>span{grid-column:1/-1}.tempo-control>small{display:none}.tempo-control input{width:65px}.master-control{display:none}.guitar-footer{min-height:12px}.scale-box:nth-child(4){grid-column:auto}}
@media(max-height:650px) and (min-width:761px){#app{grid-template-rows:48px minmax(0,1fr) 90px;gap:7px}.practice-workspace{grid-template-rows:80px minmax(0,1fr);gap:7px}.chord>.chord-diagram{max-height:65px}.tool-rail button{gap:2px}.tool-rail button>span{font-size:19px}.tool-rail small{display:none}.guitar-panel{gap:5px}.scale-shapes{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr}.scale-box:nth-child(4){grid-column:auto}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Fixed-page navigation: long progressions are paged, never scrolled. */
#chordCards{grid-auto-columns:minmax(0,1fr);overflow:hidden}.chord-pages{display:flex;gap:4px;direction:ltr}.chord-pages button{padding:1px 9px;font-size:15px}.box-heading strong{font-size:12px}.box-heading small{font-size:9px}.box-footer{font-size:10px;direction:ltr}.guitar-heading strong{font-size:12px}.box-heading>div{min-width:0}.box-heading small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#drumMixer{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#drumMixer .mix{grid-template-columns:minmax(0,1fr) 48px;gap:5px}#drumMixer .mix input{grid-column:1/-1;grid-row:2}#drumMixer .mix button{grid-column:2;grid-row:1}.box-heading small{direction:ltr}
@media(max-width:760px){.box-heading strong{font-size:9px}.box-footer{font-size:8px}.guitar-heading strong{font-size:9px}.chord-pages button{padding:0 6px;font-size:13px}}
.chord-content{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;gap:6px}.chord-content #chordCards{width:100%;height:auto;min-height:0}.chord>strong{font-size:clamp(16px,2.2vw,30px)}.chord-hint{text-align:center;font-size:10px;line-height:1.25}.chord{justify-content:center}.current-chord-tag button{color:var(--accent);font:600 14px var(--mono);padding:3px 9px}.mix-instrument{grid-column:1/-1;width:100%;min-width:0}.mix{padding:12px;border:1px solid var(--line);border-radius:10px;background:#20202c}.mix small{margin-top:4px}
@media(max-width:760px){.chord-hint{font-size:8px}.chord-content{gap:3px}.chord>strong{font-size:17px}.mix{gap:8px}.current-chord-tag button{font-size:12px}}

/* Readable neck order and compact instrument console. */
.scale-shapes,.shape-tabs{direction:ltr}.box-heading,.guitar-footer{direction:inherit}.box-heading strong{font-size:16px}.box-heading small,.box-footer{font-size:13px}.guitar-heading strong{font-size:16px}.fret-label,.tuning-label{font-size:12px}.scale-note text{font-size:12px}.legend,.guitar-footer output,.current-chord-tag{font-size:12px}.tool-rail b{font-size:13px}.tool-rail small{font-size:12px}.hint{font-size:13px}.song-chord-buttons{display:flex;flex-wrap:wrap;gap:8px}.song-chord-buttons button{font:600 17px var(--mono);padding:8px 14px}.song-chord-buttons button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
#chordNeck{width:100%;overflow-x:auto;min-height:190px}#chordNeck svg{display:block;width:100%;min-width:650px;height:auto}.neck-title{font:600 20px var(--mono);fill:var(--fg)}
#guitarDialog{width:min(1100px,calc(100vw - 30px))}#guitarDialog .dialog-content{gap:12px}#guitarDialog .dialog-content>label{display:inline-flex}#currentDiagram .chord-diagram{max-width:120px}
#instrumentsDialog{width:min(1040px,calc(100vw - 28px))}#instrumentsDialog .dialog-heading{position:relative;justify-content:center;padding:10px 20px;min-height:49px}#instrumentsDialog .dialog-heading button{position:absolute;inset-inline-end:14px}#instrumentsDialog .dialog-content{gap:10px;padding:14px 18px;max-height:calc(100dvh - 100px)}#instrumentsDialog .hint{font-size:12px;line-height:1.45}#mixer{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mix{grid-template-columns:minmax(90px,1fr) minmax(70px,1fr) 52px;padding:9px;gap:7px;font-size:13px}.mix small{font-size:11px;margin-top:2px}.mix-instrument{padding:6px 9px;font-size:12px}.mix button{font-size:11px;padding:6px}.background-toggle{font-size:13px}#instrumentsDialog select{font-size:13px;padding:7px 9px}#instrumentsDialog .fields>label{font-size:13px}
@media(min-width:1100px){#mixer{grid-template-columns:repeat(3,minmax(0,1fr))}#instrumentsDialog{width:min(1220px,calc(100vw - 44px))}.mix{grid-template-columns:minmax(80px,1fr) minmax(60px,1fr) 49px}}
@media(max-width:760px){.box-heading strong{font-size:12px}.box-heading small{display:block;font-size:10px}.box-footer{font-size:11px}.guitar-heading strong{font-size:11px}.shape-tabs button{font-size:10px;padding:5px}.guitar-footer .legend{font-size:10px}.tool-rail b{font-size:10px}#instrumentsDialog .dialog-content{padding:10px;gap:8px}.mix{grid-template-columns:1fr 45px;font-size:12px;padding:7px;gap:6px}.mix>input{grid-column:1;grid-row:2;width:100%}.mix>button{grid-column:2;grid-row:2}.mix>div{grid-column:1/-1}.mix small{font-size:10px}.mix-instrument{font-size:11px}.box-number{display:none}.song-chord-buttons button{font-size:15px}.chord-hint{font-size:10px}}
@media(max-width:760px){
#instrumentsDialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
#instrumentsDialog .dialog-heading{min-height:40px;padding:6px 14px}
#instrumentsDialog .dialog-content{padding:8px;gap:6px;max-height:calc(100dvh - 64px)}
#instrumentsDialog .hint{display:none}
#instrumentsDialog .fields>label{font-size:11px;gap:5px}
#instrumentsDialog .fields>label:not(.background-toggle){flex-wrap:nowrap}
#instrumentsDialog select{font-size:11px;padding:4px 5px}
#mixer{gap:5px}
#mixer .mix{padding:5px;gap:3px;grid-template-rows:14px 17px 22px;min-height:66px}
#mixer .mix>div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:14px}
#mixer .mix small{display:none}
#mixer .mix button{padding:2px;font-size:10px}
#mixer .mix input[type=range]{height:16px;margin:0}
#mixer .mix-instrument{font-size:10px;line-height:16px;padding:2px 4px}
}

/* Combined settings and centred labels. */
.dialog-heading{position:relative;justify-content:center;min-height:50px}.dialog-heading h2{text-align:center}.dialog-heading>button{position:absolute;inset-inline-end:14px}.tool-rail button,.tool-rail b,.tool-rail small{text-align:center}.box-heading{justify-content:center;text-align:center}.box-heading>div{flex:1}.box-number{position:absolute;inset-inline-start:9px}.box-heading>div{padding-inline:24px}.box-footer,.guitar-heading strong,.guitar-footer,.hint{text-align:center}.guitar-heading>div{text-align:center}.song-chord-buttons,#diatonic{justify-content:center}.song-chord-buttons .accompaniment-chord{display:flex;flex-direction:column;align-items:center;justify-content:start;gap:8px;min-width:115px;flex:0 1 145px;font:600 22px var(--mono);padding:12px}.accompaniment-chord .chord-diagram{width:110px;max-width:100%;height:135px}.merged-sound{padding-bottom:18px;border-bottom:1px solid var(--line)}.merged-sound>h3{text-align:center;font-size:15px}
@media(max-width:760px){.tool-rail button{justify-content:center}.box-heading>div{padding-inline:0}.song-chord-buttons .accompaniment-chord{min-width:100px;flex-basis:115px;font-size:19px;padding:9px}.accompaniment-chord .chord-diagram{height:120px}}

/* Session title. */
.app-header{position:relative}.session-info{position:absolute;left:50%;transform:translateX(-50%);align-items:center;text-align:center;width:min(46%,640px);max-width:none;pointer-events:none}.session-info strong{font-size:clamp(17px,1.8vw,27px);line-height:1.25;max-width:100%}.session-info span{font-size:clamp(13px,1.15vw,18px);line-height:1.4}
@media(max-width:760px){.session-info{position:static;left:auto;transform:none;flex:1;width:auto;max-width:none;margin:0;align-items:center}.session-info strong{font-size:14px}.session-info span{font-size:12px}.brand{font-size:12px}.brand img{width:22px;height:22px}.app-header{gap:5px}#lang{max-width:65px;font-size:9px}}

/* Fill available space, and keep the chord inspector within the screen. */
.tool-rail{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:10px}.tool-rail button{height:100%;max-height:none;justify-content:center}
#mixer,#drumMixer{display:flex;flex-wrap:wrap;gap:9px}#mixer>.mix,#drumMixer>.mix{flex:1 1 28%;min-width:0;align-content:center}#drumMixer>.mix{flex-basis:40%}
#guitarDialog{height:min(780px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);width:min(1240px,calc(100vw - 24px));overflow:hidden}#guitarDialog .dialog-heading{height:50px;min-height:50px}#guitarDialog .fret-dialog-content{display:flex;flex-direction:column;gap:10px;height:calc(100% - 50px);max-height:none;padding:12px 18px;overflow:hidden;min-height:0}.fret-options{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;flex-shrink:0;font-size:13px}.live-chord-cards{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;flex-shrink:0}.live-chord-cards button{font:600 18px var(--mono);padding:7px 15px}.live-chord-cards button.active{color:#092222;background:var(--accent);border-color:#72ffff;box-shadow:0 0 10px #00b9c155}#chordNeck{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;width:100%}#chordNeck svg{width:100%;min-width:0;height:100%;min-height:0;flex:1}.chord-shape-area{display:flex;align-items:center;justify-content:center;gap:24px;flex:0 1 175px;min-height:100px;text-align:center}.chord-shape-area>div{min-width:0}.chord-shape-area #currentDiagram svg{height:min(140px,20dvh);width:auto;max-width:130px}.chord-shape-area h3{font-size:12px}.chord-shape-area .shape-nav{margin-top:10px}.shape-nav{flex-wrap:wrap}.shape-nav button{padding:6px 10px}#inspectChordButtons button{font-size:15px;padding:5px 12px}
@media(max-width:760px){.tool-rail{grid-template-rows:1fr;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#mixer>.mix,#drumMixer>.mix{flex-basis:44%}#guitarDialog .fret-dialog-content{padding:8px;gap:7px}.fret-options{font-size:10px;gap:5px 9px}.fret-options input{width:13px;height:13px}.live-chord-cards button{font-size:13px;padding:5px 10px}.chord-shape-area{gap:8px;flex-basis:105px;min-height:90px}.chord-shape-area #currentDiagram svg{height:95px;max-width:75px}.chord-shape-area h3{font-size:9px}.chord-shape-area .shape-nav{font-size:9px;gap:4px;margin-top:5px}.shape-nav button{padding:3px 7px}#inspectChordButtons{gap:4px}#inspectChordButtons button{font-size:12px;padding:4px 8px}#guitarDialog .dialog-heading{height:42px;min-height:42px}#guitarDialog .fret-dialog-content{height:calc(100% - 42px)}.session-info strong{white-space:normal;font-size:12px;line-height:1.1}.session-info span{font-size:10px}}
@media(max-width:760px){#instrumentsDialog .dialog-content{gap:4px;padding:6px}#mixer{gap:5px}#mixer .mix{grid-template-rows:14px 16px 20px;gap:2px;padding:4px;min-height:60px}#instrumentsDialog .fields>label{line-height:1.2}#instrumentsDialog .background-toggle{font-size:10px}}

#instrumentsDialog .dialog-heading h2{font-size:25px;font-weight:750;letter-spacing:.3px}.fret-playback-bar{display:flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0;min-height:60px}.fret-playback-bar .live-chord-cards{flex:0 1 auto}
#styleDialog details>.fields{gap:10px;margin-top:10px}#styleDialog details summary{text-align:center}#styleDialog .fields>details{border-block:1px solid var(--line);padding:10px 0}
@media(max-width:760px){#instrumentsDialog .dialog-heading h2{font-size:21px}.fret-playback-bar{gap:7px;min-height:45px}.fret-playback-bar .live-chord-cards{gap:4px}.fret-playback-bar .live-chord-cards button{padding:5px 8px}}

/* A full 24-fret scale, side navigation and a bottom legend. */
.scale-stage{display:flex;gap:8px;flex:1;min-height:0;min-width:0;direction:ltr}#shapeTabsSide{width:74px;flex:0 0 74px;min-height:0}#shapeTabsSide .shape-tabs{height:100%;display:flex;flex-direction:column;gap:4px;justify-content:space-evenly}#shapeTabsSide button{flex:1;min-height:0;padding:3px;font-size:12px;max-height:38px}.scale-stage .scale-shapes{flex:1;min-width:0;grid-template-rows:repeat(2,minmax(0,1fr))}.scale-stage .scale-shapes.focused{grid-template-rows:1fr}.scale-stage .full-neck{display:flex;flex-direction:column;gap:5px}.full-neck>svg{display:block;width:100%;height:100%;min-height:0;flex:1}.guitar-heading{min-height:25px}.guitar-heading h2{display:none}.guitar-panel{gap:4px;padding:8px 10px}.guitar-footer:has(#noteInfo:empty){display:none}.guitar-footer>#fretLegend{display:none}.scale-box{padding:5px}.box-heading{min-height:24px}.box-heading small,.box-footer{display:none}.box-svg svg{max-height:none}.practice-workspace{grid-template-rows:105px minmax(0,1fr)}.bottom-legend{display:flex;flex-direction:column;gap:5px;min-width:0;align-items:center}.bottom-legend>span{font-size:14px;color:var(--accent)}.bottom-legend .legend{font-size:12px;flex-wrap:wrap;justify-content:center}.personal-styles{padding-bottom:14px;border-bottom:1px solid var(--line)}.personal-styles h3{font-size:17px;text-align:center}.personal-styles input,.personal-styles select{flex:1;min-width:0}.personal-styles .row{flex-wrap:wrap}.personal-styles output{white-space:normal}.personal-styles button{white-space:nowrap}
@media(max-width:760px){#shapeTabsSide{width:46px;flex-basis:46px}#shapeTabsSide button{font-size:9px;padding:2px;max-height:26px}.scale-stage{gap:4px}.guitar-panel{padding:5px}.practice-workspace{grid-template-rows:75px minmax(0,1fr)}.bottom-legend{flex-basis:100%;gap:1px}.bottom-legend>span{font-size:9px}.bottom-legend .legend{font-size:8px;gap:4px}.transport-panel{row-gap:2px}.profile-badge{display:none}.tempo-control>span{font-size:9px}.guitar-heading{min-height:20px}.box-heading strong{font-size:10px}.box-number{display:none}}
@media(max-width:760px){#app{grid-template-rows:48px 52px minmax(0,1fr) 150px}.transport-panel{align-content:center;gap:4px 8px}.bottom-legend{gap:1px}.bottom-legend .legend{line-height:1.3}}

/* Five large shapes per octave, never ten shrunken cards. */
.scale-stage .scale-shapes{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}.scale-stage .scale-shapes.focused{grid-template-columns:1fr;grid-template-rows:1fr}.scale-stage .scale-box{height:100%;min-height:0;padding:8px}.scale-stage .box-heading{min-height:30px}.scale-stage .box-svg{flex:1;min-height:0}.scale-stage .box-svg svg{width:100%;height:100%;max-height:none}.legend .dot.chord{background:var(--accent);border:2px solid #baf7ba;box-sizing:content-box;width:8px;height:8px;padding:0;min-width:0;display:inline-block;box-shadow:0 0 3px #baf7ba44}.octave-toggle{border-color:var(--accent);font-size:11px!important}#shapeTabsSide{width:82px;flex-basis:82px}
@media(max-width:760px){#shapeTabsSide{width:53px;flex-basis:53px}.scale-stage .scale-shapes:not(.focused){grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.scale-stage .scale-box{padding:4px}.scale-stage .box-heading{min-height:20px}.octave-toggle{font-size:9px!important}}
/* Larger playback indicators inside the chord inspector. */
#guitarDialog .fret-playback-bar{gap:24px;min-height:106px;padding:5px 0}
#guitarDialog .fret-playback-bar .live-chord-cards{gap:10px}
#guitarDialog .fret-playback-bar .live-chord-cards button{font-size:27px;min-width:78px;min-height:64px;padding:12px 18px;border-radius:12px}
@media(max-height:650px) and (min-width:761px){#guitarDialog .fret-playback-bar{min-height:82px}#guitarDialog .fret-playback-bar .live-chord-cards button{font-size:23px;min-height:54px}}
@media(max-width:760px){#guitarDialog .fret-playback-bar{gap:8px;min-height:62px;padding:0}#guitarDialog .fret-playback-bar .live-chord-cards{gap:5px}#guitarDialog .fret-playback-bar .live-chord-cards button{font-size:16px;min-width:38px;min-height:40px;padding:6px 8px;border-radius:8px}}
#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{max-width:240px;width:220px;height:150px}@media(max-width:760px){#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{max-width:125px;width:125px;height:100px}}
.chord-search{display:flex;flex-direction:column;gap:10px;padding-bottom:15px;border-bottom:1px solid var(--line)}.chord-search h3{text-align:center;font-size:17px}.chord-search input[type=search]{flex:1;min-width:0;background:#22222f;color:var(--fg);border:1px solid var(--line);padding:10px 12px;border-radius:8px;font:14px var(--mono)}.chord-search .row{flex-wrap:wrap}.chord-search-picker select{flex:1;min-width:65px}.chord-search button{white-space:nowrap}#chordSearchResults{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}#chordSearchResults:empty,#chordSearchStatus:empty{display:none}#chordSearchResults button{font:600 16px var(--mono);padding:8px 5px}@media(max-width:760px){.chord-search{gap:8px}.chord-search input[type=search]{font-size:12px}.chord-search .row{gap:6px}.chord-search button{font-size:11px;padding:8px}#chordSearchResults{grid-template-columns:repeat(3,minmax(0,1fr))}}

.chord-search-preview{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}.search-large-diagram{width:100%;display:flex;justify-content:center}.search-large-diagram .horizontal-chord{width:min(100%,480px);max-width:480px;height:min(42dvh,380px)}.chord-search-preview .shape-nav{gap:20px}.chord-search-preview .shape-nav output{font-size:15px}.chord-search-preview>button{font-size:13px}.is-inspecting .dialog-content{gap:12px}.is-inspecting .chord-search{gap:7px;padding-bottom:10px}@media(max-width:760px){.is-inspecting .dialog-content{padding:12px;gap:8px}.is-inspecting .chord-search{gap:6px}.chord-search-preview{gap:7px}.search-large-diagram .horizontal-chord{height:min(30dvh,180px);width:min(100%,270px)}.chord-search-preview .shape-nav{gap:12px}.chord-search-preview .shape-nav output{font-size:12px}.chord-search-preview>button{font-size:11px;padding:6px 10px}}

.instrument-effects{border:1px solid var(--line);border-radius:9px;padding:8px 12px}.instrument-effects summary{text-align:center;font-size:14px;cursor:pointer}.effects-fields{display:flex;flex-direction:column;gap:10px;padding-top:12px}.effects-fields label{display:flex;align-items:center;gap:10px;font-size:13px}.effects-fields label>span{min-width:66px}.effects-fields input[type=range]{flex:1;min-width:60px}.effects-fields output{width:35px;text-align:center}.effects-fields .hint{font-size:12px;line-height:1.5}@media(max-width:760px){.instrument-effects{padding:5px 8px}.instrument-effects summary{font-size:12px}.effects-fields label{font-size:12px}.effects-fields .hint{font-size:11px}}

.volume-bank{display:grid;grid-template-columns:repeat(3,minmax(75px,1fr));gap:12px;flex:0 1 365px;min-width:250px;padding:8px 12px;border:1px solid var(--line);border-radius:11px}.volume-bank>label,.volume-bank>.master-control{display:grid;grid-template-columns:1fr auto;gap:3px 7px;max-width:none;font-size:12px;min-width:0}.volume-bank input{grid-column:1/-1;margin:0;width:100%}.volume-bank output{font-size:10px;color:var(--muted)}
@media(min-width:761px) and (max-width:1150px){#app{grid-template-rows:64px minmax(0,1fr) 160px}.transport-panel{flex-wrap:wrap;justify-content:center;gap:8px 16px}.volume-bank{flex-basis:320px}}
@media(max-width:760px){#app{grid-template-rows:48px 52px minmax(0,1fr) 160px}.transport-panel{display:grid;grid-template-columns:auto minmax(0,1fr) 85px;grid-template-areas:'actions meter tempo' 'volumes volumes volumes' 'legend legend legend';gap:3px 6px;padding:5px 7px}.transport-panel>.beat-meter{grid-area:meter;min-width:0}.transport-actions{grid-area:actions;display:flex;flex-direction:column;gap:3px}.transport-actions button{font-size:10px;padding:5px}.tempo-control{grid-area:tempo;width:auto;font-size:9px;grid-template-columns:1fr 22px}.tempo-control input{width:55px}.volume-bank{grid-area:volumes;min-width:0;padding:4px 7px;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.volume-bank>label,.volume-bank>.master-control{font-size:10px;gap:1px 3px}.volume-bank output{font-size:8px}.bottom-legend{grid-area:legend;min-width:0}.bottom-legend>span{font-size:9px}.bottom-legend .legend{font-size:8px;line-height:1.1}}
#vol{accent-color:#00d3d9}#drumsVolume{accent-color:#ffb84d}#bandVolume{accent-color:#b990ff}#masterVolumeLabel{color:#00d3d9}#drumsVolumeLabel{color:#ffb84d}#bandVolumeLabel{color:#b990ff}
#instrumentsDialog .effects-fields .hint{display:block}
/* Direct session selection above the practice area. */
#app{grid-template-rows:116px minmax(0,1fr) 116px}
.app-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:42px 64px;gap:4px 14px;align-content:center}
.app-header .session-info{display:none}
.app-header #status{grid-column:2;grid-row:1;max-width:none;margin:0}
.app-header #lang{grid-column:3;grid-row:1}.app-header #fullscreenBtn{grid-column:4;grid-row:1}
.app-header #loadBar{position:absolute;top:0;inset-inline:0;width:100%}
.session-controls{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(200px,1.7fr) minmax(180px,1fr);gap:18px;width:min(100%,1100px);justify-self:center}
.session-controls>label,.session-controls .field-pair>label{display:flex;flex-direction:column;align-items:stretch;gap:3px;font-size:12px}
.session-controls select{width:100%;font-size:16px;padding:8px 12px;min-width:0;border-radius:10px;background:#20212d}
.session-controls .field-pair{grid-template-columns:minmax(65px,.5fr) minmax(100px,1fr);gap:12px}
#styleDialog #drumMixer{gap:12px}#styleDialog .dialog-content{padding:20px}
@media(min-width:761px) and (max-width:1150px){#app{grid-template-rows:116px minmax(0,1fr) 160px}}
@media(max-width:760px){#app{grid-template-rows:112px 48px minmax(0,1fr) 160px;gap:5px}.app-header{grid-template-rows:32px 70px;gap:2px 5px}.app-header .brand{font-size:11px}.app-header #status{font-size:8px}.app-header #fullscreenBtn{font-size:9px;padding:5px}.session-controls{gap:6px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.session-controls>label,.session-controls .field-pair>label{font-size:10px;gap:3px}.session-controls .field-pair{gap:4px;grid-template-columns:45px minmax(0,1fr)}.session-controls select{font-size:11px;padding:7px 3px;border-radius:7px}.tool-rail b{font-size:10px}.tool-rail small{font-size:9px}.tool-rail button{gap:1px}.tool-rail button>span{font-size:18px}}
.style-select-row{display:flex;gap:6px;min-width:0}.style-select-row #style{flex:1;min-width:0}.style-search-trigger{flex:0 0 42px;font-size:26px;line-height:1;padding:3px;border-color:var(--accent)!important;color:#71f0e9!important}.style-search-body{display:flex;flex-direction:column;padding:16px;gap:12px;max-height:calc(100dvh - 110px)}.style-search-filters{display:flex;gap:8px;flex-shrink:0}.style-search-filters input{flex:1;min-width:0;background:#22222f;border:1px solid var(--line);border-radius:8px;padding:10px;color:var(--fg);font:inherit}.style-search-filters select{max-width:180px}.style-search-results{overflow:auto;min-height:0;display:flex;flex-direction:column;gap:16px}.style-search-results h3{font-size:15px;color:var(--accent);margin-bottom:8px}.style-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.style-result-grid button{text-align:center;min-height:44px;font-size:13px}.style-result-grid button[aria-pressed=true]{border-color:var(--accent);background:#00b9c122}#styleSearchDialog .dialog-heading h2{font-size:19px}#styleSearchDialog{width:min(760px,calc(100vw - 24px))}@media(max-width:760px){.style-search-trigger{flex-basis:28px;font-size:23px}.style-select-row{gap:3px}.style-search-body{padding:10px;gap:8px}.style-search-filters{flex-direction:column}.style-search-filters select{max-width:none;width:100%}.style-result-grid{grid-template-columns:1fr}.style-result-grid button{min-height:40px}.style-search-results{gap:12px}}
#scaleShapes.scale-shapes:not(.full-neck){grid-template-columns:repeat(var(--shape-columns,5),minmax(0,1fr));grid-template-rows:repeat(var(--shape-rows,1),minmax(0,1fr))}.scale-stage .box-heading{min-height:45px}.box-heading strong{line-height:1.5;white-space:normal}.box-heading bdi{display:inline-block;white-space:nowrap}.box-heading .current-position{color:var(--fg);font-weight:750}.box-heading .alternate-position{color:var(--muted);font-weight:500}#shapeTabsSide .shape-tabs button{max-height:90px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:normal}#shapeTabsSide button small{font-size:10px;color:var(--muted)}#shapeTabsSide button bdi{font-size:13px}@media(max-width:760px){#shapeTabsSide{width:62px;flex-basis:62px}#shapeTabsSide .shape-tabs button{min-height:42px;padding:3px;font-size:10px;gap:1px}#shapeTabsSide button bdi{font-size:10px}#shapeTabsSide button small{font-size:8px}.scale-stage .box-heading{min-height:36px}.box-heading strong{font-size:9px;line-height:1.3}}
.scale-stage .scale-box:nth-child(n){grid-column:auto;grid-row:auto}@media(max-width:760px){#shapeTabsSide .shape-tabs button{min-height:0}#shapeTabsSide button small{display:none}}
.box-heading .position-ranges{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 18px;direction:ltr}.box-heading .position-ranges bdi{font-weight:650}.box-heading .position-ranges .range-color-0,.box-heading .position-ranges .range-color-2{color:#00d3d9}.box-heading .position-ranges .range-color-1{color:#ffb84d}.box-heading .position-ranges .current-position{text-decoration:underline;text-underline-offset:4px}#scaleShapes.full-neck{display:flex;flex-direction:column;min-height:0}#shapeTabsSide button bdi{white-space:normal}@media(max-width:760px){.box-heading .position-ranges{gap:4px 10px}}
.chord-strip .chord-hint{color:#35ebe5;font-weight:600}
/* ARITONIC studio signature. */
#app{grid-template-rows:138px minmax(0,1fr) 116px}.app-header{grid-template-rows:64px 64px}.app-header .brand{gap:12px;line-height:1.15}.app-header .brand img{width:60px;height:60px;border-radius:16px;box-shadow:0 0 18px #00d3d91c;flex-shrink:0}.brand-copy{display:flex;flex-direction:column;align-items:center;gap:4px}.brand-name{font-size:21px;font-weight:750}.brand-copy small{font-size:8px;letter-spacing:1.6px}.brand-signature{display:block;font-size:12px;font-weight:800;letter-spacing:.28em;padding-inline-start:.28em;background:linear-gradient(100deg,#67fff1,#00cdd5 60%,#a6f8ff);background-clip:text;-webkit-background-clip:text;color:transparent;text-shadow:0 0 16px #00d3d933}@media(min-width:761px) and (max-width:1150px){#app{grid-template-rows:138px minmax(0,1fr) 160px}}@media(max-width:760px){#app{grid-template-rows:126px 48px minmax(0,1fr) 160px}.app-header{grid-template-rows:46px 70px}.app-header .brand{gap:6px}.app-header .brand img{width:40px;height:40px;border-radius:11px}.brand-copy{gap:2px}.brand-name{font-size:12px}.brand-copy small{display:block;font-size:5px;letter-spacing:.9px}.brand-signature{font-size:9px;letter-spacing:.18em}}
.session-controls>label>span[data-i18n="style"]{display:block;width:100%;text-align:center;color:#35ebe5;font-size:17px;font-weight:750;line-height:1.2}.brand-signature .brand-by{font-size:.72em;font-weight:500;letter-spacing:.03em;color:#b1d9dd;text-shadow:none}@media(max-width:760px){.session-controls>label>span[data-i18n="style"]{font-size:13px}}
#status{display:inline-flex;align-items:center;gap:7px;justify-self:start;width:fit-content;max-width:100%;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#20232c;color:#c6d1df;font-size:12px;font-weight:650;line-height:1.2}#status:empty{display:none}#status[data-ready="true"]{color:#96f7c5;border-color:#41d99166;background:linear-gradient(120deg,#143d32,#14302d);box-shadow:0 0 14px #39d99318}#status[data-ready="true"]::before{content:"";display:block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#4ce5a0;box-shadow:0 0 8px #4ce5a077}@media(max-width:760px){.app-header #status{font-size:9px;padding:5px 7px;gap:4px}#status[data-ready="true"]::before{width:5px;height:5px;flex-basis:5px}}
.scale-focus-controls{display:flex;align-items:center;gap:10px;direction:ltr;margin-inline:auto}.scale-focus-controls span{font-size:14px;color:var(--accent);white-space:nowrap}.scale-focus-controls button{padding:2px 12px;font-size:23px}.scale-shapes.focused .box-svg svg{max-width:650px;margin:auto}@media(max-width:760px){.scale-focus-controls{gap:5px}.scale-focus-controls span{font-size:10px}.scale-focus-controls button{font-size:18px;padding:1px 7px}}
#scaleShapes.enlarged .scale-box{flex-direction:row;align-items:stretch;gap:12px;padding:4px}#scaleShapes.enlarged .box-heading{width:116px;flex:0 0 116px;flex-direction:column;justify-content:center;gap:18px;min-height:0}#scaleShapes.enlarged .box-heading>div{width:100%}#scaleShapes.enlarged .box-number{display:grid;width:44px;height:44px;font-size:24px}#scaleShapes.enlarged .position-ranges{flex-direction:column;gap:18px;font-size:19px}#scaleShapes.enlarged .box-svg{height:100%;flex:1;min-width:0}#scaleShapes.enlarged .box-svg svg{width:100%;height:100%;max-width:none;max-height:none;margin:0}#scaleShapes.enlarged .box-footer{display:none}@media(max-width:760px){#scaleShapes.enlarged .scale-box{gap:5px;padding:3px}#scaleShapes.enlarged .box-heading{width:64px;flex-basis:64px;gap:14px}#scaleShapes.enlarged .box-number{width:30px;height:30px;font-size:18px}#scaleShapes.enlarged .position-ranges{font-size:12px;gap:15px}}

#scaleShapes{touch-action:manipulation}
#chordStage{position:fixed;inset:0;z-index:200;background:var(--bg);display:flex;flex-direction:column;justify-content:flex-start;padding:8px 12px;direction:ltr}
.chord-stage-bar{display:flex;align-items:center;justify-content:space-between;height:48px;flex:none}.chord-stage-bar strong{font:700 34px var(--mono);color:var(--accent)}.chord-stage-bar button{font-size:28px;width:48px;height:44px}
.chord-stage-neck{flex:1;min-height:0;gap:10px}.chord-stage-neck .scale-box{max-height:100%}
.chord-stage-neck{margin-block:auto}
.chord-stage-neck .scale-note.in-chord circle{stroke:#fff;stroke-width:3.5}
#chordStage{overflow:hidden}.chord-stage-neck{width:100%;min-width:0}
#chordStage .chord-stage-bar{gap:18px;height:84px}#chordStage .chord-stage-bar strong{min-width:120px}
#chordStage .live-chord-cards{flex:1;justify-content:center;flex-wrap:nowrap;overflow:hidden}#chordStage .live-chord-cards button{font-size:26px;padding:8px 20px;opacity:1}#chordStage .live-chord-cards button:disabled{opacity:1;cursor:default}
#chordStage #stageChordCards{gap:12px}#chordStage #stageChordCards button{font:700 28px var(--mono);padding:8px 22px;min-width:96px;border-radius:12px}#chordStage #stageChordCards button.active{transform:scale(1.08)}
#chordStage .chord-stage-bar{height:130px}#chordStage .chord-stage-bar strong{font-size:44px}
#chordStage .chord-stage-bar>*{min-width:0}#chordStage .chord-stage-bar strong{min-width:150px}
#chordStage .chord-stage-bar{height:84px;justify-content:center;position:relative}#chordStage .chord-stage-bar #stageClose{position:absolute;right:0;top:20px}#chordStage .live-chord-cards{flex:0 1 auto}
#chordStage .scale-box:nth-child(n){grid-column:auto;grid-row:auto}
@media(max-width:760px){#chordStage #stageChordCards{gap:6px}#chordStage #stageChordCards button{font-size:18px;padding:6px 8px;min-width:48px}#chordStage .chord-stage-bar #stageClose{width:40px;height:40px;font-size:22px;top:22px}}

/* Shared Android/Web catalog and drum density controls. */
#styleCatalogCount{display:block;color:var(--muted,#a7b5bd);font-size:.8rem;margin-top:.3rem}.drum-density-control{min-width:170px}.drum-density-control select{width:100%;min-height:44px}

/* A chord held on the fretboard while the music keeps playing (js/ui/ChordHold.js): gold ring + "follow the music" button. */
.chord.held,.live-chord-cards button.held{outline:2px solid #ffd166;outline-offset:-2px}
.follow-chords{display:inline-flex;align-items:center;justify-content:center;max-width:100%;margin-inline:auto;padding:3px 14px;border:1px solid var(--accent);border-radius:999px;background:#00b9c126;color:var(--fg);font-size:12px;font-weight:650;line-height:1.25;text-align:center;box-shadow:0 0 10px #00b9c140}
.follow-chords[hidden]{display:none}
#guitarDialog .follow-chords{align-self:center;flex-shrink:0;font-size:15px;padding:8px 18px}
@media(max-width:760px){.follow-chords{font-size:10px;padding:2px 9px}#guitarDialog .follow-chords{font-size:12px;padding:5px 12px}}

/* Put the chord fingering first, at twice its previous size. */
#guitarDialog .fret-dialog-content{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
#guitarDialog .fret-options{order:0}
#guitarDialog .chord-shape-area{order:1;flex:0 0 auto;min-height:320px;gap:32px;padding:4px 12px 12px;border-bottom:1px solid var(--line);align-items:center}
#guitarDialog .chord-shape-area>div:first-child{flex:0 0 auto}
#guitarDialog .chord-shape-area>div:last-child{flex:0 1 460px}
#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{width:440px;height:300px;max-width:none}
#guitarDialog .chord-shape-area h3{font-size:15px;margin:0}
#guitarDialog .chord-shape-area .shape-nav{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:18px}
#guitarDialog #inspectChordButtons{justify-content:center;flex-wrap:wrap;gap:8px}
#guitarDialog #inspectChordButtons button{font-size:17px;padding:8px 14px}
#guitarDialog .fret-playback-bar{order:2;flex-shrink:0;min-height:82px;gap:16px}
#guitarDialog .fret-playback-bar .live-chord-cards button{font-size:22px;min-height:52px;padding:8px 14px}
#guitarDialog .follow-chords{order:3}
#guitarDialog #chordNeck{order:4;flex:1 0 210px;min-height:210px}
@media(max-width:760px){
#guitarDialog .chord-shape-area{flex-direction:column;min-height:0;gap:8px;padding:4px 0 12px}
#guitarDialog .chord-shape-area>div:last-child{flex:0 0 auto;width:100%}
#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{width:250px;height:200px;max-width:none}
#guitarDialog .chord-shape-area h3{font-size:13px}
#guitarDialog #inspectChordButtons button{font-size:14px;padding:6px 10px}
#guitarDialog .chord-shape-area .shape-nav{font-size:12px;margin-top:8px;gap:10px}
#guitarDialog .shape-nav button{padding:7px 12px}
#guitarDialog .fret-playback-bar{min-height:58px;gap:8px}
#guitarDialog .fret-playback-bar .live-chord-cards button{font-size:16px;min-width:38px;min-height:40px;padding:6px 8px}
#guitarDialog #chordNeck{flex-basis:180px;min-height:180px}
}

/* Explain the two independent chord-inspection controls where they are used. */
#guitarDialog .chord-inspect-controls{text-align:start;line-height:1.5}
#guitarDialog .chord-inspect-controls h3{font-size:16px;line-height:1.4;color:var(--fg)}
#guitarDialog .chord-control-help{font-size:13px;line-height:1.65;color:var(--muted);margin:6px 0 12px;overflow-wrap:anywhere}
#guitarDialog .chord-inspect-controls .shape-switch-title{margin-top:18px}
#guitarDialog .chord-inspect-controls .shape-nav{margin-top:8px}
#guitarDialog .chord-inspect-controls .shape-switch-help{margin-bottom:0}
@media(max-width:760px){#guitarDialog .chord-inspect-controls h3{font-size:14px}#guitarDialog .chord-control-help{font-size:12px;margin:5px 0 10px}#guitarDialog .chord-inspect-controls .shape-switch-title{margin-top:14px}#guitarDialog .chord-inspect-controls{text-align:center;padding-inline:6px}}

/* Portable saves. */
.practice-file-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.practice-file-actions button{font-size:12px;min-height:44px}#scaleScopeHint{margin:0;padding:8px 12px;background:#00b9c10c;border-radius:8px;font-size:12px}
@media(max-width:760px){.practice-file-actions{grid-template-columns:1fr}}
@media(max-width:760px){.app-header #status{min-width:0;max-width:64px;overflow:hidden;white-space:nowrap;font-size:8px;padding:4px}.app-header #lang{max-width:58px}}

/* ---- Beat meter: one pip per beat of the bar -------------------------------------------------------
   The lit pip is the beat you are on (beat 1 amber, the rest teal) and it flashes on every hit.
   --pulse (0..1) is set from js/ui/Transport.js, timed to the sound that is actually coming out. */
.beat-meter{--pip:38px;--pulse:0;display:flex;align-items:center;justify-content:center;gap:calc(var(--pip)*.2);direction:ltr;flex:0 0 auto;min-width:0}
.beat-pip{--hue:var(--accent);position:relative;isolation:isolate;display:grid;place-items:center;width:var(--pip);flex:0 1 auto;min-width:14px;aspect-ratio:1;border:1px solid #3a3b4d;border-radius:calc(var(--pip)*.28);background:#1a1b26;color:#707790;font-family:var(--mono);font-weight:600;font-size:calc(var(--pip)*.42);line-height:1}
.beat-pip::before{content:'';position:absolute;inset:-1px;z-index:-1;border-radius:inherit;background:var(--hue);opacity:0}
.beat-pip::after{content:attr(data-n)}
.beat-pip.down{--hue:#f8b33f;border-color:#f8b33f66;color:#d9a24d}
.beat-pip.on{color:#04191b;border-color:var(--hue);transform:scale(calc(1 + var(--pulse)*.14));box-shadow:0 0 calc(var(--pulse)*20px) calc(var(--pulse)*2px) var(--hue)}
.beat-pip.on::before{opacity:calc(.78 + var(--pulse)*.22)}
@media(prefers-reduced-motion:reduce){.beat-pip.on{transform:none}}
.transport-panel .beat-meter{--pip:40px}
.fret-playback-bar .beat-meter{--pip:38px}
#chordStage .beat-meter{--pip:clamp(36px,3.4vw,56px)}
@media(max-width:1150px){.transport-panel .beat-meter{--pip:34px}}
@media(max-width:760px){.transport-panel .beat-meter{--pip:26px}.fret-playback-bar .beat-meter{--pip:26px}#chordStage .beat-meter{--pip:22px}}

/* Full-screen chords: meter on one side, chords centred, close on the other. On phones the meter sits under the chords. */
#chordStage .chord-stage-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;height:auto;min-height:84px;justify-content:stretch}
#chordStage .chord-stage-bar .beat-meter{grid-column:1;justify-self:start}
#chordStage .chord-stage-bar #stageChordCards{grid-column:2}
#chordStage .chord-stage-bar #stageClose{grid-column:3;justify-self:end;position:static}
@media(max-width:760px){
#chordStage .chord-stage-bar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:6px 8px;min-height:0}
#chordStage .chord-stage-bar #stageChordCards{grid-column:1;grid-row:1}
#chordStage .chord-stage-bar #stageClose{grid-column:2;grid-row:1}
#chordStage .chord-stage-bar .beat-meter{grid-column:1/-1;grid-row:2;justify-self:center}
}

/* ---- Quieter chrome ---------------------------------------------------------------------------------- */
#styleCatalogCount{display:none}
.session-controls>label>span[data-i18n="style"]{width:auto;text-align:start;color:inherit;font-size:inherit;font-weight:inherit}
.chord-strip .chord-hint{color:var(--muted);font-weight:500}

/* Wide screens: one header row (brand, style / key / scale, status and language) instead of two. */
@media(min-width:1151px){
#app{grid-template-rows:88px minmax(0,1fr) 116px}
.app-header{grid-template-columns:auto minmax(0,1fr) auto auto auto;grid-template-rows:76px;gap:0 14px}
.app-header .brand{grid-column:1;grid-row:1}
.app-header .session-controls{grid-column:2;grid-row:1;width:min(100%,860px);gap:14px}
.app-header #status{grid-column:3;grid-row:1;justify-self:end}
.app-header #lang{grid-column:4;grid-row:1}
.app-header #fullscreenBtn{grid-column:5;grid-row:1}
}

/* Display menu: the scale-shape options sit next to the shapes they change. The chord dialog keeps only its own option. */
.guitar-heading{position:relative}
.display-panel{position:absolute;top:calc(100% + 6px);inset-inline-end:0;z-index:30;display:flex;flex-direction:column;gap:12px;min-width:230px;max-width:min(320px,calc(100vw - 32px));padding:14px 16px;background:#1d1e29;border:1px solid #45465c;border-radius:12px;box-shadow:0 18px 50px #000a;text-align:start}
.display-panel label{font-size:14px;color:var(--fg)}
.display-panel .hint{font-size:12px;line-height:1.55;text-align:start;padding:10px 0 0;border-top:1px solid var(--line);background:none;border-radius:0}
#guitarDialog .fret-options{order:4;justify-content:flex-start}

/* Chord dialog: everything fits the window height, no scrolling. The diagram and the neck shrink with the window; the explanations get tighter. */
@media(min-width:761px){
#guitarDialog .fret-dialog-content{gap:8px;padding:10px 18px 12px}
#guitarDialog .chord-shape-area{flex:0 0 auto;min-height:0;gap:40px;padding:0 12px 8px}
#guitarDialog .chord-shape-area>div:last-child{flex:0 1 640px}
#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{width:auto;max-width:none;height:clamp(140px,calc(100dvh - 520px),300px)}
#guitarDialog .chord-shape-area h3{font-size:14px}
#guitarDialog .chord-inspect-controls h3{font-size:15px}
#guitarDialog .chord-control-help{font-size:12.5px;line-height:1.5;margin:3px 0 8px}
#guitarDialog .chord-inspect-controls .shape-switch-title{margin-top:10px}
#guitarDialog .chord-inspect-controls .shape-nav{margin-top:4px}
#guitarDialog #inspectChordButtons button{font-size:16px;padding:5px 12px}
#guitarDialog .fret-playback-bar{min-height:58px;padding:0;gap:16px}
#guitarDialog .fret-playback-bar .live-chord-cards button{min-height:48px;font-size:21px;padding:6px 14px}
#guitarDialog .follow-chords{padding:5px 16px;font-size:14px}
#guitarDialog #chordNeck{flex:1 1 150px;min-height:150px}
}
@media(min-width:761px) and (max-height:690px){#guitarDialog .shape-switch-help{display:none}}
@media(max-width:760px){#guitarDialog .shape-switch-help{display:none}}

/* The Display button is the way to the scale-shape options, so it should be easy to spot: accent outline, tinted fill, a caret for the menu. */
#displayBtn{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;padding:8px 16px;border:1px solid var(--accent);border-radius:10px;background:#00b9c124;color:#71f0e9;box-shadow:0 0 12px #00b9c133}
#displayBtn::after{content:'▾';font-size:12px;line-height:1}
#displayBtn:hover:not(:disabled){background:#00b9c13d}
#displayBtn[aria-expanded=true]{background:var(--accent);color:#042226}
@media(max-width:760px){#displayBtn{font-size:12px;padding:6px 11px;gap:6px}}

/* "Scale notes" off: only the chord tones stay on the shapes (every note is drawn, so this follows the chord bar by bar). */
.scale-hidden .scale-note:not(.in-chord){display:none}
/* A chord tone that is not in the scale (for example the F of Dm in A minor pentatonic) is drawn, dashed, only while it is a chord tone. */
.scale-note.off-scale{display:none}
.scale-note.off-scale.in-chord{display:inline}
.scale-note.off-scale circle{fill:#16262b;stroke:#baf7ba;stroke-width:2.5;stroke-dasharray:4 3}
.scale-note.off-scale text{fill:#baf7ba}
.legend .dot.offscale{background:#16262b;border:2px dashed #baf7ba;box-sizing:content-box;width:8px;height:8px;padding:0;min-width:0;display:inline-block}

/* The two lines that explain the chord picker (title + purpose) are the important text here, so they are larger and bright; the symbols line was removed. */
#guitarDialog .chord-inspect-controls #inspectChordTitle{font-size:18px;font-weight:700;line-height:1.35;color:var(--fg)}
#guitarDialog .chord-inspect-controls #inspectChordTitle+.chord-control-help{font-size:14.5px;line-height:1.5;color:var(--fg);margin:4px 0 12px}
@media(max-width:760px){#guitarDialog .chord-inspect-controls #inspectChordTitle{font-size:16px}#guitarDialog .chord-inspect-controls #inspectChordTitle+.chord-control-help{font-size:12.5px;line-height:1.4;margin:3px 0 8px}#guitarDialog .chord-inspect-controls .shape-switch-title{margin-top:10px}#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{width:230px;height:184px}}
/* On short phones there is no room for the purpose line without scrolling, so it is hidden there (the title stays). */
@media(max-width:760px) and (max-height:799px){#guitarDialog .chord-inspect-controls #inspectChordTitle+.chord-control-help{display:none}}

/* Legend: every symbol and its label form one unit that wraps together, with clear space between units (before, a wrapped line could leave a symbol alone at the end of a line, away from its label). */
.legend{column-gap:22px;row-gap:4px}
.legend .legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.legend .legend-item .dot{flex:0 0 auto}
.legend bdi{unicode-bidi:isolate}
@media(max-width:760px){.legend{column-gap:12px;row-gap:2px}.legend .legend-item{gap:4px}}

/* Chord dialog on short screens: landscape phones and small phones. Same content, smaller, no scrolling.
   Landscape (any width, height <= 560px): diagram and controls side by side, compact bars, smaller neck. */
@media(max-height:560px){
#guitarDialog .dialog-heading{height:38px;min-height:38px}
#guitarDialog .fret-dialog-content{gap:4px;padding:6px 12px 8px}
#guitarDialog .fret-playback-bar{min-height:36px;gap:10px;padding:0}
#guitarDialog .fret-playback-bar .beat-meter{height:20px}
#guitarDialog .fret-playback-bar .live-chord-cards button{min-height:32px;font-size:16px;padding:2px 10px}
#guitarDialog .follow-chords{padding:3px 12px;font-size:12px}
#guitarDialog .chord-shape-area{flex-direction:row;align-items:center;justify-content:center;gap:18px;padding:0 6px 2px;min-height:0}
#guitarDialog .chord-shape-area>div:first-child{flex:0 0 auto}
#guitarDialog .chord-shape-area>div:last-child{flex:0 1 auto;width:auto}
#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{height:clamp(64px,calc(100dvh - 300px),130px);width:calc(clamp(64px,calc(100dvh - 300px),130px)*1.3);max-width:none}
#guitarDialog .chord-shape-area h3{font-size:12px;line-height:1.2}
#guitarDialog .chord-inspect-controls #inspectChordTitle{font-size:14px;line-height:1.25}
#guitarDialog .chord-inspect-controls #inspectChordTitle+.chord-control-help,#guitarDialog .shape-switch-help,#guitarDialog .chord-inspect-controls .shape-switch-title{display:none}
#guitarDialog #inspectChordButtons{gap:5px}
#guitarDialog #inspectChordButtons button{font-size:14px;padding:3px 9px}
#guitarDialog .chord-inspect-controls .shape-nav{margin-top:4px}
#guitarDialog #chordNeck{flex:1 1 80px;min-height:80px}
#guitarDialog #chordNeck svg{min-width:0;width:100%;height:100%;max-height:100%}
}
/* Small portrait phones (stacked layout): the diagram shrinks with the window height and the bars get tighter. */
@media(max-width:760px) and (min-height:561px) and (max-height:860px){
#guitarDialog .fret-playback-bar{min-height:46px}
#guitarDialog .chord-shape-area #currentDiagram .horizontal-chord{height:clamp(96px,calc(100dvh - 590px),184px);width:calc(clamp(96px,calc(100dvh - 590px),184px)*1.25)}
}
@media(max-width:760px) and (min-height:561px) and (max-height:700px){
#guitarDialog .chord-inspect-controls .shape-switch-title{display:none}
#guitarDialog .chord-inspect-controls .shape-nav{margin-top:2px}
#guitarDialog .chord-shape-area{gap:4px;padding-bottom:6px}
}

/* Band screen on phones (narrow, or held sideways). There was no room for all of it: the shapes shrank to nothing
   and on a phone held sideways the parts lay on top of each other. Now every part keeps a usable height and the
   screen scrolls when it is too short, and the five shapes sit in one row that is swiped sideways. */
@media(max-width:760px){#app:not(.song-mode){overflow-y:auto;grid-template-rows:126px 48px minmax(320px,1fr) 160px}}
@media(max-height:500px) and (min-width:761px){#app:not(.song-mode){overflow-y:auto;grid-template-rows:132px minmax(340px,1fr) 160px}#app:not(.song-mode) .practice-workspace{grid-template-rows:80px minmax(0,1fr)}}
@media(max-width:760px),(max-height:500px){
#app:not(.song-mode) .scale-stage .scale-shapes:not(.focused){grid-auto-flow:column;grid-template-columns:none;grid-template-rows:minmax(0,1fr);grid-auto-columns:clamp(150px,60%,230px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
#app:not(.song-mode) .scale-stage .scale-shapes:not(.focused) .scale-box{scroll-snap-align:start}
#app:not(.song-mode) .scale-stage .scale-shapes:not(.focused) .box-heading{min-height:26px}
}
/* Song file: the player and the song's scale take the chord strip's place; the band controls step aside. */
.tool-rail{grid-template-rows:repeat(5,minmax(0,1fr))}
@media(max-width:760px){.tool-rail{grid-template-rows:1fr;grid-template-columns:repeat(5,minmax(0,1fr))}}
#songBtn[aria-pressed="true"]{border-color:var(--accent);background:#00b9c124;color:#71f0e9}
#app{--song-height:clamp(220px,31dvh,340px)}
#app.song-mode .practice-workspace{grid-row-end:-1;grid-template-rows:var(--song-height) minmax(0,1fr)}
#app.song-mode .chord-strip,#app.song-mode .transport-panel{display:none}
#app.song-mode .session-controls{visibility:hidden}
#app.song-mode .guitar-footer,#app.song-mode .guitar-footer:has(#noteInfo:empty){display:flex;justify-content:center;flex-wrap:wrap}
#app.song-mode .guitar-footer>#fretLegend{display:flex;flex-wrap:wrap;justify-content:center}
#app.song-mode #displayPanel label:has(#showScale),#app.song-mode #displayPanel label:has(#showChordTones),#app.song-mode #scaleScopeHint{display:none}
.song-panel{display:grid;grid-template-columns:clamp(240px,31vw,520px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:14px;min-height:0;min-width:0;padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:13px}
.song-media{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;background:#08080c;border-radius:10px;overflow:hidden}
.song-media video{width:100%;height:100%;object-fit:contain;background:#000}
.song-media.audio-only video{height:54px;background:transparent}
.song-pick{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;text-align:center;border:2px dashed #3d3f52;border-radius:10px;background:transparent;color:var(--fg);cursor:pointer}
.song-pick strong{font-size:17px;color:#71f0e9}
.song-pick small{font-size:12px;line-height:1.5;color:var(--muted)}
.song-panel.dragging .song-media,.song-panel.dragging .song-pick{outline:2px solid var(--accent);outline-offset:-2px}
.song-info{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:0;overflow-y:auto}
.song-heading{display:flex;align-items:center;gap:10px;min-width:0}
.song-heading h2{margin:0;font-size:16px;white-space:nowrap}
.song-heading bdi{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;color:var(--muted)}
.song-heading button{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:5px 11px}
.song-status{margin:0;font-size:13px;line-height:1.45;color:#c6d1df;text-align:center}
.song-status:empty{display:none}
#songProgress{width:100%;height:6px;flex-shrink:0;accent-color:var(--accent)}
.song-result{display:flex;flex-direction:column;gap:8px}
.song-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.song-suggestions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:1 1 130px;max-width:260px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:#20212d;color:var(--fg);cursor:pointer}
.song-suggestions button[aria-pressed="true"]{border-color:var(--accent);background:#00b9c124;box-shadow:0 0 12px #00b9c133}
.song-suggestions strong{font-size:16px;line-height:1.3}
.song-suggestions small{font-size:11px;color:var(--muted)}
.song-manual{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font-size:12px}
.song-manual label{display:flex;flex-direction:row;align-items:center;gap:6px}
.song-manual select{width:auto;min-width:0;padding:4px 8px;font-size:13px}
.song-manual .follow-chords{margin-inline:0}
.song-manual .song-half{cursor:pointer;padding:3px 10px;border:1px solid var(--line);border-radius:8px}
.song-manual .song-half:has(input:checked){border-color:#ffb84d;color:#ffd08a}
.song-manual .song-half input{width:15px;height:15px;margin:0;accent-color:#ffb84d}
#scaleTitle .title-note{display:block;margin-top:2px;font-size:.85em;color:#ffb84d}
.song-timeline{display:flex;gap:3px;flex-shrink:0;overflow-x:auto}
.song-timeline button{flex:1 1 0;min-width:84px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:6px 4px;font-size:11px;border:1px solid var(--line);border-radius:6px;background:#1c1d28;color:var(--muted);cursor:pointer}
.song-timeline button[aria-current]{border-color:var(--accent);background:#00b9c11f;color:#71f0e9}
.song-privacy{margin:auto 0 0;font-size:11px}
@media(max-height:650px) and (min-width:761px){#app{--song-height:clamp(170px,36dvh,240px)}.song-info{gap:4px}.song-privacy{display:none}.song-suggestions button{padding:3px 8px}.song-suggestions strong{font-size:14px}}
@media(max-width:760px){
/* Phones: the song panel is as tall as what it holds; the shapes get all the rest. */
#app{--song-height:auto}
#app.song-mode{grid-template-rows:42px 52px minmax(0,1fr) 0}
#app.song-mode .app-header{grid-template-rows:38px}
#app.song-mode .session-controls{display:none}
.song-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:7px;padding:7px}
.song-media{height:clamp(110px,20dvh,200px)}
.song-media.audio-only{height:56px}
.song-info{max-height:42dvh}
.song-result:not([hidden])~.song-privacy{display:none}
.song-heading{flex-wrap:wrap;justify-content:center;gap:5px}
.song-heading h2{font-size:14px}
.song-heading bdi{flex:1 0 100%;order:3;text-align:center;font-size:11px}
.song-suggestions button{flex-basis:30%;padding:5px 4px}
.song-suggestions strong{font-size:12px}
.song-status{font-size:12px}
.song-privacy{font-size:10px}
}
/* Phones, upright or sideways: the player and its results leave no room for the shapes, so the song view scrolls
   and the shapes keep a height they can be read at. */
@media(max-width:760px){#app.song-mode:not(.song-big) .practice-workspace{overflow-y:auto;grid-template-rows:max-content minmax(600px,1fr)}#app.song-mode:not(.song-big) .song-info{max-height:none;overflow:visible}}
/* On its side the header would take a third of the height: the song view has its own way back, so it goes. */
@media(max-height:500px) and (min-width:761px){
#app.song-mode:not(.song-big){grid-template-rows:0 minmax(0,1fr) 0;row-gap:0;padding-block:6px}
#app.song-mode:not(.song-big) .app-header{display:none}
#app.song-mode:not(.song-big) .tool-rail{grid-row:2/-1}
#app.song-mode:not(.song-big) .practice-workspace{grid-row:2/-1;overflow-y:auto;grid-template-rows:max-content minmax(280px,1fr)}
#app.song-mode:not(.song-big) .song-panel{grid-template-rows:auto}
#app.song-mode:not(.song-big) .song-media{align-self:start;height:200px}
#app.song-mode:not(.song-big) .song-media.audio-only{height:56px}
#app.song-mode:not(.song-big) .song-info{overflow:visible}
#app.song-mode:not(.song-big) .song-heading{flex-wrap:wrap;justify-content:center}
}
/* Large view: the video on top (half the height or more), the shapes under it, and nothing else. */
.song-heading .song-big-btn{border-color:var(--accent);background:#00b9c12e;color:#71f0e9;font-weight:700}
#app.song-mode.song-big{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0;padding:0;max-width:none}
#app.song-big .app-header,#app.song-big .tool-rail,#app.song-big .song-info{display:none}
#app.song-mode.song-big .practice-workspace{grid-column:1;grid-row:1/-1;grid-template-rows:var(--big-video,72%) 12px minmax(0,1fr);gap:0}
#app.song-big .song-panel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:0;border:0;border-radius:0;background:#000}
#app.song-big .song-media{height:auto;border-radius:0;background:#000}
#app.song-big .song-media video:focus-visible{outline:none}
#app.song-big .song-split:not([hidden]){display:flex;align-items:center;justify-content:center;cursor:ns-resize;touch-action:none;background:var(--panel);border-block:1px solid var(--line)}
.song-split::before{content:"";width:64px;height:4px;border-radius:99px;background:#5b5f7a}
.song-split:hover::before,.song-split:focus-visible::before,.song-split.dragging::before{background:var(--accent)}
#app.song-big .guitar-panel{border:0;border-radius:0;padding:0 8px 4px;gap:2px}
#app.song-big .scale-stage .box-heading{min-height:22px}
#app.song-big .scale-stage .scale-box{padding:3px 5px}
#app.song-big #shapeTabsSide,#app.song-big #displayBtn,#app.song-big #displayPanel{display:none}
#app.song-mode.song-big .guitar-footer.guitar-footer,#app.song-mode.song-big .guitar-footer:has(#noteInfo:empty){display:none}
#app.song-big .guitar-heading{justify-content:center;min-height:28px}
#app.song-big .guitar-heading>div:first-child{flex-direction:row;justify-content:center}
#app.song-big #scaleTitle{font-size:clamp(15px,1.4vw,20px);line-height:1.3}
#app.song-big #scaleTitle .title-note{display:inline;margin-left:14px}
#app.song-big .song-big-exit{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);font-size:12px;line-height:1.3;padding:3px 12px}
@media(max-width:760px){#app.song-big .guitar-heading{flex-wrap:wrap}#app.song-big .song-big-exit{position:static;transform:none;font-size:11px}#app.song-big #scaleTitle{font-size:13px}}
/* Short screens (a phone on its side): the fret numbers stay on one small line, so the drawings keep their height. */
@media(max-height:500px){#app.song-big .box-number{display:none}#app.song-big .box-heading .position-ranges{flex-wrap:nowrap;gap:0 7px;font-size:11px}#app.song-big .box-heading strong{font-size:11px}}
/* Upright screens: the width limits the video, so it takes its own height and there is nothing to drag. */
@media(orientation:portrait){#app.song-mode.song-big .practice-workspace{grid-template-rows:min(56.25vw,55%) minmax(0,1fr)}#app.song-big .song-split:not([hidden]){display:none}}
