:root{color-scheme:dark;font-family:'Segoe UI',sans-serif;font-size:14px;--bg:#0b1520;--panel:#132331;--line:#2b4354;--cyan:#17c5df;--yellow:#ffe16a;--muted:#a9becd;--text:#eef5f9;--ok:#77d4ac;--error:#ff9999}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}body.colorblind{--ok:var(--cyan);--error:var(--yellow)}button,input,select{font:inherit;color:var(--text);background:#0e1d29;border:1px solid var(--line);border-radius:7px;padding:8px 11px}button{cursor:pointer;font-weight:600}button:hover{border-color:var(--cyan)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--cyan);color:#08202a}.yellow{color:var(--yellow);border-color:var(--yellow)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}aside{position:fixed;inset:0 auto 0 0;width:210px;padding:26px 16px;border-right:1px solid var(--line);background:#0d1a26;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font-size:19px;font-weight:650}.brand img{width:43px}.brand small{display:block;font-size:8px;letter-spacing:1px;margin-top:8px;color:var(--muted)}nav{display:grid;gap:9px;margin-top:40px}nav button{text-align:left;background:none;border-color:transparent;color:var(--muted);display:flex;gap:13px;padding:13px}nav button.active{color:var(--cyan);background:#163341;border-color:#245869}.brand-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;padding-top:20px;border-top:1px solid var(--line);font-size:11px;letter-spacing:1px}.brand-bottom img{width:42px}.brand-bottom small{display:block;line-height:1.7;margin-top:5px;font-size:10px;letter-spacing:0;color:var(--muted)}.workspace{margin-left:210px;height:100vh;display:flex;flex-direction:column}header{display:flex;align-items:center;gap:20px;padding:15px 22px;border-bottom:1px solid var(--line);flex-shrink:0}header>div:first-child{min-width:80px;flex:1}header small{font-size:9px;letter-spacing:1px;color:var(--cyan)}header strong{display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px}.actions,.row{display:flex;gap:8px;align-items:center}.actions{flex-wrap:wrap;justify-content:flex-end}#subnav{display:flex;gap:7px;padding:10px 22px;background:#10212d;border-bottom:1px solid var(--line);flex-shrink:0}#subnav:empty{display:none}#subnav .selected{color:var(--yellow);border-color:var(--yellow)}#subnav .push{margin-left:auto}#context:empty{display:none}#context{padding:10px 22px;border-bottom:1px solid var(--line);background:#172c37;font-size:12px}.context-line{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.context-line strong{color:var(--yellow)}.context-chords{display:flex;gap:8px;margin-top:7px;flex-wrap:wrap}.context-chords span{padding:5px 10px;border:1px solid var(--line);border-radius:5px}.context-chords .current{border-color:var(--yellow);color:var(--yellow)}iframe{border:0;width:100%;flex:1;min-height:0;background:var(--bg)}[hidden]{display:none!important}main{padding:28px;overflow:auto;flex:1}h1{font-size:30px;margin:8px 0 12px}h2{font-size:18px;margin:0 0 15px}h3{font-size:15px;margin:0 0 10px}p{color:var(--muted);line-height:1.6}.eyebrow{color:var(--cyan);font-size:10px;letter-spacing:1.8px}.panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:25px}.panel{padding:22px;border:1px solid var(--line);border-radius:11px;background:var(--panel);min-width:0}.panel button{margin:8px 6px 0 0}.hero{padding:26px;border:1px solid #286170;border-radius:12px;background:linear-gradient(120deg,#163441,#10202e)}.fields{display:flex;gap:15px;flex-wrap:wrap;align-items:end}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}input[type=number]{width:90px}input[type=range]{width:150px;accent-color:var(--cyan)}.check{flex-direction:row;align-items:center}.check input{accent-color:var(--cyan)}.notes{font-size:24px;color:var(--cyan);letter-spacing:1px;margin:18px 0}.hint{font-size:12px;color:var(--muted);line-height:1.6}.positions{display:grid;grid-template-columns:repeat(8,minmax(55px,1fr));gap:15px;margin-top:20px}.positions label{align-items:center}.positions input{width:100%}.positions output{color:var(--cyan);font-size:11px}.wide{grid-column:1/-1}footer{display:flex;justify-content:space-between;padding:10px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);flex-shrink:0}#status{color:var(--ok);max-width:85%}#status.error{color:var(--error)}dialog{max-width:600px;width:90vw;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:24px}dialog::backdrop{background:#030b11ca}dialog .row{justify-content:space-between}#destinations{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}#tooltip{position:fixed;z-index:1000;max-width:340px;padding:12px 15px;background:#203647;color:var(--text);border:1px solid var(--cyan);box-shadow:0 5px 24px #0008;border-radius:7px;font-size:12px;line-height:1.5;pointer-events:none}.path{overflow-wrap:anywhere}.tool-result{font-size:20px;color:var(--yellow);margin-top:18px}@media(max-width:1200px){aside{width:185px;padding:20px 12px}.workspace{margin-left:185px}.actions{gap:5px}.actions button{padding:7px 9px}header{gap:10px}header strong{max-width:180px}.positions{grid-template-columns:repeat(6,1fr)}}

#subnav{flex-wrap:wrap;padding:8px 22px;gap:5px}#subnav button{padding:7px 10px}#song-section{max-width:240px}.context-chords button{font-size:12px;padding:4px 8px}

/* Alpha 3 density: chrome first, no page scaling. */
aside{width:178px;padding:16px 12px}.workspace{margin-left:178px}header{padding:10px 16px;gap:10px}button{padding:6px 10px;min-height:30px}input,select{padding:6px 8px;min-height:30px}h1{font-size:24px;margin:4px 0 12px}h2{font-size:17px;margin:0 0 10px}p{line-height:1.45}.panel{padding:14px}.panels{gap:12px}.fields{gap:10px;margin-bottom:10px}.row{gap:8px}#local{padding:16px 18px}#subnav{padding:6px 14px;gap:5px}#context:not(:empty){padding:8px 16px}.context-line{gap:8px}.context-chords{gap:5px;margin-top:6px}.context-chords button{padding:4px 7px}.context-line+.hint,#context .hint{font-size:11px;line-height:1.35}.hero{padding:18px}.brand{font-size:17px}.brand-bottom{padding-top:12px}.brand-bottom img{width:34px}nav{gap:5px}nav button{padding:9px 8px}.positions{gap:8px}.workspace>*{min-width:0}@media(max-width:1200px){aside{width:158px}.workspace{margin-left:158px}header{padding:8px 12px}.actions{gap:5px}.brand{font-size:15px}}

.theory-learning{display:grid;grid-template-columns:minmax(420px,1.15fr) minmax(300px,1fr);gap:12px;margin:12px 0}.circle-layout{display:flex;align-items:center;gap:10px}.fifths-circle{width:300px;flex:none;max-width:65%;overflow:visible}.circle-node{fill:#143344;stroke:#335368;stroke-width:1.5}.circle-node.selected{stroke:var(--yellow);stroke-width:3}.fifths-circle text{text-anchor:middle;fill:var(--text);font:14px 'Segoe UI';cursor:pointer}.fifths-circle .circle-minor{font-size:11px;fill:var(--cyan)}.fifths-circle .circle-center{font-size:16px;fill:var(--muted);cursor:default}.fifths-circle [role=button]:focus{outline:2px solid var(--yellow)}.circle-guide{font-size:12px;line-height:1.45;min-width:0}.circle-guide summary{cursor:pointer}.challenge-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.challenge h3{font-size:15px;min-height:40px}.challenge-score{font-size:12px;color:var(--cyan)}#challenge-feedback{min-height:65px;font-size:13px}.theory-reference h2{font-size:16px}@media(max-width:1200px){.theory-learning{grid-template-columns:minmax(400px,1.1fr) minmax(300px,1fr)}.fifths-circle{width:260px}.circle-layout{gap:5px}}

.workspace>header{padding:7px 14px}.workspace>header>div:first-child{display:flex;gap:10px;align-items:baseline}.workspace>header strong{margin:0}.workspace>footer{padding:6px 14px}#subnav{padding:4px 14px}#context:not(:empty){padding:5px 14px}.context-line{gap:6px}.context-chords{margin-top:4px}.context-chords button{min-height:25px;padding:3px 6px}#context .hint{margin-top:3px}
.hub-heading p{margin:0 0 14px}.hub-actions{margin-bottom:14px}.hub-current{margin-bottom:14px}.hub-current>.row{margin-top:10px;flex-wrap:wrap}.hub-current strong{font-size:18px;overflow-wrap:anywhere}.recent-song{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.recent-song>div{display:grid;gap:4px;min-width:0}.recent-song span,.recent-song small{font-size:12px;color:var(--muted)}.recent-open{text-align:left;background:transparent;border-color:transparent;padding:0;max-width:100%;overflow-wrap:anywhere}.recent-song>button{flex:none;font-size:12px}.recent-songs h2{margin:0}.recent-songs>.row{margin-bottom:10px}.hub-library{display:grid;gap:8px}.hub-library button{text-align:left;white-space:normal;overflow-wrap:anywhere}.hub-library small{display:block;margin-top:4px}.help-tour{margin-top:8px}#project-dialog{width:min(640px,calc(100vw - 60px));max-height:85vh;overflow:auto}#project-dialog form{display:grid;gap:12px}#project-dialog .fields{display:flex;flex-wrap:wrap;gap:12px}#project-dialog label{display:grid;gap:6px}#project-dialog input,#project-dialog select{width:100%}.setup-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setup-choices button{text-align:left;padding:12px}.setup-choices small{display:block;color:inherit;font-weight:400;margin-top:4px}#project-dialog-error{color:var(--error);margin:0}#guided-tour{position:fixed;inset:auto 24px 44px auto;margin:0;width:min(420px,calc(100vw - 48px));padding:20px;max-height:70vh;overflow:auto;border:2px solid var(--cyan);box-shadow:0 16px 60px #0009}#guided-tour::backdrop{background:#020a1290}#guided-tour h2{margin:10px 0}#guided-tour .row{margin-top:16px}.tour-highlight{outline:3px solid var(--yellow)!important;outline-offset:-3px}.tour-highlight iframe{outline:none}
.hub-heading h1{font-size:22px;margin:2px 0 6px}.hub-heading p{margin-bottom:10px}.hub-actions{margin-bottom:10px}.hub-current{padding:12px;margin-bottom:10px}.hub-current>.row{margin-top:6px}.recent-song{padding:8px 0}.recent-open{min-height:0;line-height:1.25}.recent-song>div{gap:3px}.recent-song small{font-size:11px;line-height:1.25}.recent-song span{line-height:1.25}

/* A nonmodal spotlight leaves the highlighted control available to mouse and keyboard. */
#tour-spotlight{position:fixed;z-index:10000;pointer-events:none;border:3px solid var(--yellow);outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 9999px #020a12b8,0 0 22px #fff8;border-radius:5px;box-sizing:border-box}#guided-tour{z-index:10001;box-sizing:border-box;max-height:calc(100vh - 20px);background:var(--panel,#102330);color:var(--text);width:min(390px,calc(100vw - 20px));padding:16px}#guided-tour .row{flex-wrap:wrap;gap:8px}#guided-tour:focus-visible,#guided-tour button:focus-visible{outline:3px solid #fff;outline-offset:3px}.tour-highlight{outline:3px solid var(--yellow)!important;outline-offset:-3px}

/* Long section context stays browsable without displacing the instrument. */
.context-chords{max-height:112px;overflow-y:auto;align-content:start}

/* Range inputs must use the full available track; inherited control padding made 100% stop short. */
input[type=range]{padding:0;border:0}
 .website-alpha-info { margin-top: 1rem; } .website-alpha-info textarea { display: block; width: 100%; margin: .4rem 0; resize: vertical; }

.brand-bottom{gap:7px}
.brand-bottom img{width:32px}
.brand-bottom small{margin-top:2px;line-height:1.35}
.workspace-save{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
#browser-save-status[data-state="saved"]{color:var(--ok)}
#browser-save-status[data-state="failed"]{color:var(--error)}
#browser-retry-save[hidden]{display:none}
.song-context{display:grid;gap:8px}
.song-context-main,.song-context-section,.song-context-actions,.song-context-progression{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.song-context-section strong{color:var(--cyan)}
.song-context-section label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%}
.song-context-section select{max-width:min(30ch,100%)}
.song-context-musical{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:4px 9px;border:1px solid var(--line);border-radius:6px}
.song-context-musical div{display:grid;gap:1px}
.song-context-musical dt{color:var(--muted);font-size:10px}
.song-context-musical dd{margin:0;font-weight:600}
.song-context-status{font-size:11px;color:var(--muted);white-space:nowrap}
.song-context-status[data-exploring="true"]{color:var(--yellow)}
.song-context-progression{border-top:1px solid var(--line);padding-top:6px}
.song-context-progression>strong{font-size:11px;color:var(--muted)}
.song-context-progression .context-chords{margin:0}
.song-context-progression .context-chords button span{padding:0;border:0;background:none;color:var(--muted);font-weight:400}
#song-context-help{color:var(--muted);font-size:11px}
#song-context-help p{margin:4px 0}
#song-context-help summary,.troubleshooting summary{cursor:pointer}
summary:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

.alpha-sidebar{margin:10px 0 14px;padding:9px 0 0;border-top:1px solid var(--line);display:grid;gap:6px}
.alpha-sidebar h2{margin:0;font-size:13px;color:var(--cyan)}
.alpha-sidebar p{margin:0;font-size:11px}
.alpha-sidebar button{width:100%;font-size:12px;text-align:left}
body:has(.alpha-sidebar)>aside{overflow-y:auto}
body:has(.alpha-sidebar)>aside>*{flex-shrink:0}
.alpha-report-dialog{max-height:calc(100dvh - 28px);overflow:auto}
.alpha-report-dialog h2{margin:0}
.alpha-report-dialog form{display:grid;gap:10px}
.alpha-report-dialog textarea{width:100%;padding:8px;resize:vertical;font:inherit;color:var(--text);border:1px solid var(--line);border-radius:7px;background:#0e1d29}
.alpha-report-dialog textarea:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.alpha-report-actions{display:flex;gap:7px;flex-wrap:wrap}
.alpha-report-status{margin-bottom:0;min-height:1em}
.alpha-report-status[data-state=error]{color:var(--error)}
.alpha-report-status[data-state=success]{color:var(--cyan)}
.recent-more{padding-top:6px}
.recent-more summary{width:fit-content;color:var(--cyan);cursor:pointer}
.recent-more:not([open]) .recent-collapse,.recent-more[open] .recent-expand{display:none}
.about-link{color:var(--cyan,#77dfec);text-underline-offset:3px}.about-link:focus-visible{outline:2px solid #ffda5d;outline-offset:3px}

/* Browser status occupies header space only for work in progress or a message. */
.workspace>header:has(.workspace-feedback){flex-wrap:wrap}
.workspace-feedback{flex:1 1 100%;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;font-size:11px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.workspace-feedback .workspace-save{flex-wrap:wrap;justify-content:flex-end;max-width:100%;margin-inline-start:0}
.workspace-feedback:not(:has(#status:not([data-quiet]):not(:empty),#browser-save-status:is([data-state="saving"],[data-state="unsaved"],[data-state="failed"]))),
.workspace-feedback #status[data-quiet],.workspace-feedback #browser-save-status[data-state="saved"]{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.workspace-feedback .workspace-save:has(#browser-save-status[data-state="saved"]):not(:has(#browser-retry-save:not([hidden]))){display:contents}
.workspace-feedback #browser-retry-save{min-height:26px;padding:2px 8px}
