/* Labeled destinations, stable placement, and a clear next action on every page. */
body > header{height:auto;min-height:88px;flex-basis:auto;gap:0;padding-block:12px;z-index:10}
body > header nav{display:flex;align-items:stretch;gap:6px;min-width:0}
header nav > button{display:flex;flex-direction:row;justify-content:center;gap:9px;width:auto;min-height:52px;height:auto;padding:10px 12px;font-size:14px;text-align:left;flex-shrink:0}
header nav svg{width:24px;height:24px;flex-shrink:0}
header nav > button[aria-current="page"]{background:var(--lime);color:var(--page)}
header .nav-label{display:block;white-space:nowrap;font-weight:600;line-height:1.3}
header .nav-label small{display:block;font-size:12px;font-weight:400;margin-top:3px;opacity:.85}
header #journey{margin-left:auto}header #account{margin-left:0}
.account-avatar{width:32px;height:32px;object-fit:cover;border-radius:50%;flex-shrink:0}
#practice-page{padding-top:24px}
#journey-strip{margin:0 0 0 auto;gap:8px;flex-shrink:0}
#journey-strip .journey-quiet{background:var(--button);margin:0;padding:10px 12px}
.toolbar{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding-bottom:18px}
.toolbar .metrics{margin-left:0;min-height:22px;justify-content:space-between}
.options{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}
.option-group{padding:0;gap:5px}
.options button{font-size:14px;padding:10px 12px;min-height:40px}
#quote-length-note{font-size:14px;max-width:270px;margin:0;padding:8px 0}
.extras-block button[aria-pressed="true"]::after{content:' ✓'}
.controls{justify-content:space-between;gap:20px;padding-top:20px;align-items:center;min-height:72px}
.controls #status{position:static;width:auto;height:auto;max-width:none;overflow:visible;clip-path:none;display:block;font-size:14px;line-height:1.5}
.practice-help{display:grid;gap:6px;min-width:0}.keyboard-hint{font-size:13px;line-height:1.6;color:var(--muted)}
#restart{flex-shrink:0;padding:12px 18px}
.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:start;margin-bottom:18px}
.page-heading h1,#board-title{font-size:clamp(30px,4vw,46px);line-height:1.15;letter-spacing:-.04em;margin:0 0 10px}
.page-heading p{margin:0}.page-heading>button{flex-shrink:0}
.page-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.page-shortcuts button{color:var(--ink)}.primary-action{background:var(--lime);color:var(--page)}
.save-note{font-size:14px;color:var(--muted);margin:0 0 18px}
.settings-bar{position:sticky;top:var(--header-height,88px);background:var(--page);z-index:5;padding:12px 0;width:100%;gap:8px}
.settings-bar button{min-height:44px;color:var(--ink)}
.settings-section{scroll-margin-top:var(--settings-offset,180px);padding:24px;margin-top:22px}
.settings-section h2:focus{outline:none}.settings-section h2{line-height:1.3}
.custom-palette-panel{background:var(--page);padding:20px;border-radius:12px}
.custom-palette-panel h3{margin:0 0 16px}
#interface-type .cursor-choices{margin:20px 0}
.audio-row{gap:20px}.audio-row .sound-options{max-width:78%;justify-content:flex-end}
#following-panel,#typing-stats,#account-details{scroll-margin-top:calc(var(--header-height,88px) + 20px)}
.account-profile-actions{margin:16px 0}
#inline-profile{margin-top:22px;background:var(--page);padding:22px;border-radius:14px}
#inline-profile .cursor-choices{margin-top:14px}
#profile-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:12px 28px}
#account-title{margin-bottom:10px}
#typing-stats>button{margin:14px 0}
#settings-page,#account-page,#leaderboard-page,#racing-page,#journey-page,#test-results-page{padding-top:24px}
.journey-persistence button{margin-left:8px}.journey-persistence p{margin:0}
#journey-page .journey-eyebrow{font-size:13px}
#test-results-page .cursor-choices{gap:10px}
#test-results-page #results-retry{padding:13px 22px}
.moon-share{background:var(--surface);border-radius:14px;padding:18px;margin:20px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.moon-share p{flex:1;min-width:200px;margin:0}.moon-share input{font:inherit;color:var(--ink);background:var(--page);border:0;padding:12px;border-radius:8px;max-width:100%;width:300px}
@media(max-width:1180px){
 header nav > button{flex-direction:column;gap:5px;font-size:13px;padding:8px 12px;min-height:64px}
 header .nav-label small{display:none}
 .options{column-gap:18px}
}
@media(max-width:740px){
 body > header{align-items:start;padding-top:10px;min-height:100px}
 header .brand{width:42px;flex-basis:42px;height:52px;margin-right:8px}
 header .brand img{width:42px;height:42px}
 body > header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 header nav > button{font-size:12px;min-height:58px;padding:7px 4px;gap:4px;min-width:0}
 header .nav-label{white-space:normal;text-align:center}
 header #journey{margin-left:0}
 header nav svg{width:21px;height:21px}.account-avatar{width:24px;height:24px}
 #journey-strip{flex-shrink:1}#journey-strip button{font-size:13px;white-space:nowrap}
 .options{gap:12px}.mode-block,.length-block{flex-basis:100%}
 .option-group{flex-wrap:wrap}.option-group button{flex:1;text-align:center}
 .extras-block .option-group button{flex:none}
 .page-heading{flex-direction:column;gap:14px}
 .settings-bar{position:static;padding:8px 0}
 .settings-section{scroll-margin-top:calc(var(--header-height,145px) + 12px);padding:20px}
 .audio-row .sound-options{max-width:100%;justify-content:flex-start}
 .controls{align-items:center;gap:14px;flex-direction:row;flex-wrap:wrap}.keyboard-hint{font-size:12px}
 .practice-help{order:3}.set-progress{margin-right:auto}
 .practice-help{width:100%}
 .journey-persistence button{margin:10px 0 0}
}
.race-resume{width:min(1440px,calc(100% - clamp(32px,9vw,144px)));margin:0 auto;padding:14px 18px;background:var(--surface);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.race-resume a{color:var(--page);background:var(--lime);text-decoration:none;padding:10px 14px;border-radius:8px}
body:has(.card.is-typing) .race-resume{visibility:hidden}
.page-shortcuts .primary-action{background:var(--lime);color:var(--page)}
[data-cursor="ghost"] button:disabled{opacity:.5;cursor:default}
@media(max-width:740px){.settings-bar{position:sticky;top:var(--header-height,145px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.settings-bar button{font-size:13px;padding:8px}.settings-section{scroll-margin-top:var(--settings-offset,300px)}#practice-page{padding-top:18px}.options{gap:12px}}

/* Quiet set progress stays out of the passage, and disappears while typing. */
.set-progress{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;white-space:nowrap}
.set-dots{display:inline-flex;gap:5px;align-items:center}
.set-dots i{display:block;width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.3}
.set-dots i.complete{background:var(--lime);opacity:1}
#set-summary{margin:0 0 24px;padding:16px 20px;background:var(--surface);border-radius:12px}
.set-summary-heading{display:flex;align-items:center;gap:12px;font-size:16px}
.set-summary-stats{margin:10px 0 0;font-size:14px}
#results-next{display:inline-flex;align-items:center;gap:24px;min-height:50px;font-weight:600}
#results-next kbd{font:12px var(--interface-font);opacity:.7;padding:0}
#results-done{min-height:50px;padding:13px 22px;color:var(--ink)}
@media(max-width:740px){.result-actions #results-next{justify-content:space-between;width:100%}.result-actions #results-done{flex:1}.set-summary-stats{line-height:1.8}}

/* Keep the people search and daily streak visible without adding another menu. */
body > header{flex-wrap:wrap}
.header-community{display:flex;align-items:center;justify-content:space-between;flex-basis:100%;gap:12px;padding-top:10px}
.header-community button{display:inline-flex;align-items:center;gap:10px;min-height:38px;padding:9px 13px;font-size:14px;background:var(--button);color:var(--ink)}
.header-community button:hover,.header-community button:focus-visible{background:var(--hover)}
.header-community svg{flex-shrink:0}
#header-streak svg,#header-streak strong{color:var(--lime)}
#header-streak strong{font-size:15px;font-weight:600;white-space:nowrap}
#header-streak-status{font-size:13px;color:var(--muted)}
#find-people{font-weight:600}
@media(max-width:740px){.header-community{padding-top:8px;gap:8px}.header-community button{font-size:13px;padding:8px 10px;gap:7px}#header-streak strong{font-size:14px}#header-streak{display:grid;grid-template-columns:20px auto;text-align:left;row-gap:3px}#header-streak-status{display:block;grid-column:2;font-size:12px;white-space:nowrap}.header-community svg{width:20px;height:20px}}
