@import url('/lab/assets/learning/notation-font.css');
@font-face{font-family:Lato;src:url('/assets/fonts/lato-latin-400-normal.woff2')}@font-face{font-family:Lato;src:url('/assets/fonts/lato-latin-700-normal.woff2');font-weight:700}@font-face{font-family:Playfair;src:url('/assets/fonts/playfair-display-latin-500-normal.woff2')}
.moment-marker{font:700 13px Lato;fill:#355c79}.moment-fields{display:flex;gap:8px;flex-wrap:wrap}.moment-fields label{display:flex;flex-direction:column;min-width:0;flex:1;font-size:14px}.moment-fields select{min-width:0;width:100%}#moment-controls p,#motif-reflection p,#riff-choice,.continuity{font-size:13px;color:var(--muted)}#motif-feature-label{display:flex;flex-direction:column}#motif-feature{font:16px Lato;min-height:44px;padding:8px;max-width:100%;border:1px solid #998d75;border-radius:5px}#gesture-control{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.forward{display:inline-block;margin:6px 0;min-height:44px;padding:8px 0;font-weight:700}@media(max-width:560px){.moment-fields label{flex-basis:100%}}
#resolution-control{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.evidence-fields label{min-width:0}.evidence-fields select{width:100%;min-width:0}
#preparation-controls{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}#preparation-controls label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%}#preparation-controls select{max-width:100%;min-width:0}
:root{--paper:#f5f0e4;--ink:#26241f;--muted:#625e55;--line:#d3c9b5;--green:#365e53;--gold:#896119}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 Lato,sans-serif}header{background:#211f1a;color:var(--paper);padding:14px max(18px,calc((100% - 850px)/2));border-bottom:3px solid var(--gold);display:flex;gap:16px;align-items:baseline;flex-wrap:wrap}header a{font:24px Playfair,Georgia,serif;color:inherit;text-decoration:none}header span{font-size:13px}main{max-width:890px;margin:auto;padding:20px}h1{font:36px/1.15 Playfair,Georgia,serif;margin:6px 0}h2{font:26px/1.2 Playfair,Georgia,serif;margin:0 0 8px}h3{font-size:17px}.intro{color:var(--muted);margin:8px 0 16px}button,select,textarea{font:16px/1.3 Lato,sans-serif;min-height:44px;border:1px solid #998d75;border-radius:5px;padding:9px 12px;background:#fffdf8;color:var(--ink)}button{cursor:pointer}button:hover:not(:disabled){background:#edf1e9}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true]{border:2px solid var(--green);background:#e8eee8;font-weight:700}button.primary{background:var(--green);color:white;font-size:20px;font-weight:700;min-width:150px;min-height:56px}button.primary:hover{background:#24473e}:focus-visible{outline:3px solid #355c79;outline-offset:3px}nav{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#activities button{font-size:14px}nav button{flex:1}.workbench{padding:18px;border:1px solid var(--line);border-radius:10px;background:#fffdf8}#prompt{margin:0 0 12px}.transport{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#playing{font-size:14px;color:var(--muted)}#score-scroll{overflow-x:auto;margin:12px 0 0;overscroll-behavior-x:contain}#score{min-width:690px}svg{display:block;width:100%;height:auto}.staff{stroke:#8b8579;stroke-width:.85}.stem{stroke:var(--ink);stroke-width:1.15}.glyph{font:40px Bravura;fill:var(--ink)}.chord,.roman{font:700 18px Lato;fill:var(--ink)}.beat-label{font:13px Lato;fill:var(--muted)}.marked .glyph{fill:var(--gold)}.tie{fill:none;stroke:var(--gold);stroke-width:1.8}.written-note.sounding .glyph{fill:var(--green)}.playhead{stroke:var(--green);stroke-width:2;opacity:.7}.score-hint{font-size:12px;color:var(--muted);margin:4px 0 12px}fieldset{border:0;padding:0;margin:0}legend{color:var(--muted);font-size:14px;margin-bottom:8px}#choices{display:flex;gap:8px;flex-wrap:wrap}#choices button{flex:1}#feedback{padding:10px 12px;border-left:4px solid var(--green);background:#f0f3ed;font-weight:700;min-height:44px;margin:10px 0}.secondary{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px}.secondary label{display:flex;gap:5px;align-items:center;font-size:14px}.secondary select,.secondary button{font-size:14px}.evidence-fields{display:flex;gap:8px;flex-wrap:wrap}.evidence-fields label{display:flex;flex-direction:column;font-size:14px;flex:1}summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}details{margin-top:10px;border-top:1px solid var(--line)}details p{margin:4px 0 12px}#facts{font-size:14px}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;border-bottom:1px solid #e8e0d0;padding:7px}.views{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.views button{font-size:14px}#observation{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;font-size:14px}#observation label{display:flex;gap:5px;flex-direction:column}#observation label:last-child{flex:1}textarea{width:100%;min-width:180px}.guide,footer{font-size:13px;color:var(--muted)}footer{margin-top:18px}a{color:var(--green)}[hidden]{display:none!important}@media(max-width:560px){main{padding:14px 10px}.workbench{padding:12px}nav button,#choices button{flex-basis:40%;font-size:14px}.secondary{align-items:flex-start}.evidence-fields label{flex-basis:100%}#playing{flex-basis:100%}h1{font-size:30px}}@media(prefers-reduced-motion:reduce){.playhead{display:none}}

.secondary label{max-width:100%;min-width:0;flex-wrap:wrap}.secondary select{max-width:100%;min-width:0}.lesson-return{padding:8px 16px}.setup-link{display:block;margin:12px 0}.chapter-navigation{display:flex;gap:12px;flex-wrap:wrap}.chapter-navigation a{min-height:44px;padding:8px}#route-notice:empty{display:none}
html.embedded,html.embedded body{background:transparent}html.embedded body{display:flow-root;overflow:auto}html.embedded .ct-site-header,html.embedded .ct-site-footer,html.embedded .lesson-return,html.embedded footer{display:none!important}html.embedded main{max-width:none;padding:0 0 8px}.forward:not([href]){color:var(--muted);font-weight:400}

/* Chapter 2.4: one version beside playback; supplementary tasks stay out of the chapter view. */
body[data-compact] main{max-width:660px}
body[data-compact] .activity-picker{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:14px}
body[data-compact] select{max-width:100%;min-width:0}
body[data-compact] .activity-picker select{flex:1}
body[data-compact] h1{font-size:24px;margin:0 0 8px}
body[data-compact] #prompt{margin:0 0 14px}
body[data-compact] .transport{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:0}
body[data-compact] .version-picker{display:flex;flex-direction:column;gap:4px;font-size:13px;flex:1;min-width:160px}
body[data-compact] #choices{display:block;width:100%}
body[data-compact] #playing{font-size:13px;min-height:20px;margin:6px 0;color:var(--muted)}
body[data-compact] #feedback{font-size:14px;font-weight:400;background:transparent;border:0;padding:0;min-height:42px;margin:8px 0}
body[data-compact] .playback-settings{margin:0}
body[data-compact] .playback-settings .secondary{border:0;padding-top:0}
body[data-compact] .compact-footer{display:flex;align-items:start;justify-content:space-between;gap:16px;font-size:13px}
body[data-compact] .compact-footer .guide{border:0;margin:0;max-width:70%}
body[data-compact] .compact-footer .guide summary{font-size:13px;font-weight:400}
body[data-compact] .setup-link{white-space:nowrap}
body[data-compact] :focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:380px){body[data-compact] .version-picker{flex-basis:100%}}

body[data-compact] #score{min-width:560px}
body[data-compact] #feedback:empty{display:none}
html.embedded body[data-compact] .setup-link{display:none}
body[data-compact] .compact-footer{justify-content:flex-end}

body[data-compact] .example-picker{display:flex;align-items:center;gap:10px;font-size:14px;margin:0 0 12px}
body[data-compact] .example-picker select{flex:1}
