@font-face{font-family:Instrument;src:url(assets/instrument.woff2) format('woff2');font-display:swap}
@font-face{font-family:Instrument;src:url(assets/instrument-it.woff2) format('woff2');font-style:italic;font-display:swap}
@font-face{font-family:Manrope;src:url(assets/manrope.woff2) format('woff2');font-weight:400 800;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#0f0d0b;
  --panel:#191410;
  --ink:#f4eee4;
  --muted:#bfb3a2;
  --gold:#edce89;
  --gold-hi:#ffe5a8;
  --teal:#8ec7b7;
  --crimson:#d96b6b;
  --line:#4c3d30;
  --serif:Instrument,Georgia,serif;
  --sans:Manrope,system-ui,sans-serif;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:500 1rem/1.55 var(--sans);overflow-x:hidden}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;color:inherit}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ffdf98;outline-offset:4px}
button:disabled{cursor:default;opacity:.55}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:.98}
img{display:block;max-width:100%}
code{font-family:ui-monospace,monospace;font-size:.86em;color:var(--gold)}

.masthead,.section-block,.program,footer{width:min(100% - 96px,1340px);margin-inline:auto}
.masthead{height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:2;border-bottom:1px solid #5a48355e}
.brand{display:flex;align-items:center;gap:10px;font:32px/1 var(--serif);white-space:nowrap;flex-shrink:0}
.brand img{width:36px;height:36px}
.masthead nav{display:flex;align-items:center;gap:22px;color:var(--muted);font-size:.875rem;flex-wrap:wrap;justify-content:flex-end}
.masthead nav a:hover,.quiet:hover{color:var(--gold)}
.quiet{border:0;background:none;padding:8px 0;color:inherit}

/* Hero */
.hero{min-height:clamp(540px,68vh,740px);position:relative;isolation:isolate;display:flex;align-items:center;margin-top:-76px;padding-top:76px;overflow:hidden}
.hero-photo{position:absolute;inset:0;z-index:-1;background:#241812 url(assets/hall.webp) center 48%/cover no-repeat}
.hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0f0d0bfa 0%,#0f0d0be0 28%,#0f0d0b82 54%,transparent 80%),linear-gradient(0deg,#0f0d0b 0%,transparent 22%,transparent 78%,#0f0d0bc0 100%)}
.hero-inner{width:min(100% - 96px,1340px);margin:auto;padding:34px 0 42px}
.eyebrow{font-weight:800;letter-spacing:.19em;text-transform:uppercase;font-size:.72rem;color:var(--gold)}
.eyebrow span{vertical-align:middle;display:inline-block;width:28px;height:1px;background:#c29558;margin-right:10px}
.hero h1{font-size:clamp(84px,9.4vw,148px);letter-spacing:-.027em;line-height:.79;margin:22px 0 24px}
.hero h1 em{font-weight:400;color:var(--gold)}
.lede{max-width:520px;color:#e4dacb;line-height:1.62;font-size:.98rem}
.lede strong{color:var(--gold-hi);font-weight:700}
.actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:24px}

.gold,.outline{border:1px solid transparent;border-radius:4px;padding:11px 18px;font-size:.88rem;font-weight:800;line-height:1.3;min-height:42px;transition:background .16s,border-color .16s,transform .12s}
.gold{background:#e8c680;color:#1f1509}
.gold:hover{background:#ffe2a6}
.outline{border-color:#8a7156;background:#18130eb8;color:var(--ink)}
.outline:hover{background:#3a2b1e;border-color:var(--gold)}
.outline.active{border-color:var(--gold);background:#4a351d;color:var(--gold-hi)}

.input-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.pill{display:inline-flex;align-items:center;gap:7px;font-size:.76rem;font-weight:700;color:#cfc2b0;background:#191410cc;border:1px solid #4e3f32;border-radius:999px;padding:5px 12px}
.pill i{width:7px;height:7px;border-radius:50%;background:#6b5c4d;display:block}
.pill.on{border-color:#8f734d;color:#f7e4be}
.pill.on i{background:#84d6b5;box-shadow:0 0 8px #84d6b5}

.shared-banner{margin-top:16px;display:inline-flex;align-items:center;gap:12px;padding:9px 14px;border-radius:5px;border:1px solid #96774d;background:#241a10e8;font-size:.84rem;color:#f5dfc0}

/* Rehearsals & Program */
.section-block{padding:24px 0 12px}
.program{padding:24px 0 42px;scroll-margin-top:16px}
.program-top{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}
.section-block h2,.program h2{font-size:clamp(40px,5vw,62px);margin-top:5px}
.program-top>p{color:var(--muted);font-size:.84rem}

.lessons-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.lesson-card{display:flex;flex-direction:column;text-align:left;padding:14px 16px;border-radius:5px;border:1px solid #4e3f33;background:#17120e;transition:border-color .16s,background .16s}
.lesson-card:hover{border-color:var(--gold);background:#251c14}
.lesson-card .tag{font-size:.7rem;text-transform:uppercase;letter-spacing:.13em;color:var(--gold);font-weight:800}
.lesson-card h3{font-size:28px;margin:6px 0 8px}
.lesson-card p{font-size:.8rem;color:var(--muted);margin-bottom:10px}
.lesson-card .meta{margin-top:auto;display:flex;justify-content:space-between;font-size:.76rem;color:#e3cba3}

.mode-strip{display:flex;flex-wrap:wrap;gap:6px}
.mode-btn{border:1px solid #5a4838;background:#17120e;color:#d6c7b4;border-radius:4px;padding:7px 12px;font-size:.78rem;font-weight:700;text-align:left;transition:all .15s}
.mode-btn small{display:block;font-size:.67rem;font-weight:500;color:#9f9180;margin-top:1px}
.mode-btn:hover{border-color:#a8875a}
.mode-btn.selected{border-color:var(--gold);background:#342515;color:var(--gold-hi)}
.mode-btn.selected small{color:#e2c693}

.pieces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.piece{display:flex;flex-direction:column;text-align:left;position:relative;min-height:192px;border:1px solid #564539;border-radius:5px;padding:16px 17px;background:radial-gradient(ellipse at 100% -20%,var(--tint),transparent 74%),#1a1411;overflow:hidden;transition:border-color .16s,transform .15s,background-color .16s}
.piece::before{content:"";position:absolute;width:116px;height:116px;right:-18px;top:-26px;border-radius:50%;background:repeating-radial-gradient(transparent 0 8px,#e5ba7b20 9px 10px,transparent 11px 13px);pointer-events:none}
.piece:hover{border-color:var(--gold);background-color:#2a1d15;transform:translateY(-2px)}
.piece .composer{letter-spacing:.12em;text-transform:uppercase;color:#e6bf86;font-size:.71rem;font-weight:800;position:relative}
.piece h3{font-size:clamp(28px,2.7vw,38px);line-height:.94;margin:8px 0 4px;position:relative}
.piece .subtitle{font-size:.8rem;color:#c9baaa;font-style:italic;margin-bottom:10px;position:relative}
.piece .badges{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px;position:relative}
.piece .badge{font-size:.68rem;font-weight:700;padding:2px 7px;border-radius:3px;background:#0e0b09aa;border:1px solid #6b5640;color:#ebd3a8}
.piece .meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:auto;font-size:.78rem;color:#dfcbbb;position:relative}
.piece .status{color:var(--gold);font-weight:800}

.import-bar{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:15px 18px;border-radius:5px;border:1px dashed #6e5740;background:#16110e}
.import-bar strong{display:block;font-size:.94rem;color:var(--gold-hi)}
.import-bar span{font-size:.82rem;color:var(--muted)}
.import-label{cursor:pointer;display:inline-flex;align-items:center}

footer{display:flex;justify-content:space-between;align-items:center;padding:18px 0 26px;border-top:1px solid var(--line);font-size:.86rem;color:var(--muted)}
footer span{font:24px/1 var(--serif)}

/* Stage & Diegetic HUD */
#stage{position:fixed;inset:0;background:#1a100d;overflow:hidden;touch-action:none;user-select:none}
.stage-shade{pointer-events:none;position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,transparent 35%,#090605a8 100%)}
#scene,#scene canvas{display:block;width:100%;height:100%;position:absolute;inset:0}

.stage-header{position:absolute;inset:0 0 auto;display:grid;grid-template-columns:1fr minmax(0,2.4fr) 1fr;align-items:start;padding:16px clamp(12px,3vw,36px);gap:10px;z-index:4}
.header-left,.header-right{display:flex;gap:8px;flex-wrap:wrap}
.header-right{justify-content:flex-end}
.header-center{text-align:center}
.stage-header h2{font-size:clamp(24px,3.6vw,44px);margin-top:3px;text-shadow:0 2px 10px #000}
.stage-header button{padding:8px 13px;min-height:36px;font-size:.8rem}

.live{pointer-events:none;position:absolute;inset:0;z-index:3}
.hud-top{position:absolute;top:clamp(76px,11vh,118px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px}
.meter{display:flex;gap:10px;align-items:center;justify-content:center;white-space:nowrap;color:#f7e6cd;font-size:.83rem;font-weight:700;padding:5px 14px;border-radius:999px;background:#120d0ab8;border:1px solid #6b53386e;text-shadow:0 1px 4px #000}
.meter>div{display:flex;gap:5px}
.meter i{width:8px;height:8px;border-radius:50%;border:1px solid #f2ca81;display:block}
.meter i.on{background:#efca81;box-shadow:0 0 11px #ffbd56}
.meter .sep{opacity:.45}
.timing{width:190px;height:3px;background:#ffffff24;border-radius:2px;overflow:hidden}
.timing i{display:block;background:linear-gradient(90deg,#d8a855,#fff0c2);height:3px;width:100%;transform:scaleX(0);transform-origin:left}
.symphony-bar{position:relative;width:min(380px,68vw);height:4px;border-radius:99px;background:#1a130ec4;border:1px solid #6b533852;overflow:visible}
.symphony-fill{position:absolute;inset:0 auto 0 0;width:0%;border-radius:99px;background:linear-gradient(90deg,#a87c3e,#f7d894)}
.symphony-marks{position:absolute;inset:0;pointer-events:none}
.symphony-marks i{position:absolute;top:50%;width:6px;height:6px;transform:translate(-50%,-50%) rotate(45deg);background:#f3cb7e;border:1px solid #1c140e;display:block}
.symphony-marks i.ferm{background:#ff9468;width:7px;height:7px}

/* Optional Guided Pattern Overlay (Rehearsal / Guide toggle only) */
.gesture{width:min(490px,78vw,60vh);aspect-ratio:400/270;position:absolute;top:50%;left:50%;transform:translate(-50%,-44%);filter:drop-shadow(0 2px 6px #000)}
.gesture svg{width:100%;height:100%;overflow:visible}
.gesture .track{fill:none;stroke:#ffdd9d66;stroke-width:2;stroke-dasharray:4 8}
.gesture .target{fill:#1d150dd6;stroke:#d0ae76;stroke-width:1.4}
.gesture .active{fill:#4c3419e0;stroke:#ffdc95;stroke-width:2.4}
.gesture .pulse{fill:none;stroke:#f6d497;stroke-width:1.5;opacity:.65}
.gesture text{fill:#fff0d4;font:700 15px var(--sans);text-anchor:middle;dominant-baseline:central}
.gesture .ghost{fill:#ffe8b4;opacity:.82}
.gesture #cursor{position:absolute;width:12px;height:12px;border-radius:50%;background:#fff3cf;box-shadow:0 0 14px 4px #eab365;transform:translate(-50%,-50%);display:none}

.program-banner{position:relative;border-radius:7px;padding:18px 20px 14px;margin-bottom:18px;border:1px solid #594635;background:linear-gradient(90deg,#120e0be8 0%,#120e0bcc 55%,#120e0b90 100%),url(assets/program-backdrop.jpg) center/cover no-repeat;overflow:hidden}
.program-banner .program-top{border-bottom:1px solid #6b543c70;margin-bottom:12px;padding-bottom:12px}
.atelier-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.78rem}
.atelier-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.atelier-label{text-transform:uppercase;letter-spacing:.14em;font-size:.68rem;font-weight:800;color:var(--gold);margin-right:4px}
.atelier-chip{border:1px solid #5c4836;background:#140f0cd4;color:#d6c7b4;border-radius:999px;padding:4px 11px;font-size:.74rem;font-weight:700;transition:all .15s}
.atelier-chip:hover:not(:disabled){border-color:var(--gold);color:var(--gold-hi)}
.atelier-chip.selected{border-color:var(--gold);background:#422f18;color:var(--gold-hi)}
.atelier-chip.locked{opacity:.48;border-style:dashed}

.res-badge{padding:2px 8px;border-radius:999px;background:#2b2015;border:1px solid #755b3e;color:var(--gold);font-size:.74rem;letter-spacing:.04em;transition:all .2s}
.res-badge.hot{background:#523415;border-color:#ffd885;color:#fff2c6;box-shadow:0 0 14px #f5b64d66}

.cue-banner{text-align:center;position:absolute;top:clamp(132px,18vh,172px);left:50%;transform:translateX(-50%);width:min(88vw,560px);pointer-events:none;text-shadow:0 2px 10px #000}
.cue-banner strong{display:inline-block;font:clamp(26px,3.6vw,44px)/1.02 var(--serif);color:#ffe6ac;padding:3px 16px;border-radius:6px;background:radial-gradient(ellipse at center,#120c09b8 0%,#120c0900 85%)}
.cue-banner strong.fermata{color:#ffb380;animation:fermPulse 1.1s ease-in-out infinite}
@keyframes fermPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.cue-banner span{display:block;color:#f4e9d8;font-size:.84rem;margin-top:4px;font-weight:600}

/* Dedicated Left-Hand Expression & Cue Prompt */
.lh-prompt{position:absolute;left:clamp(14px,3vw,36px);bottom:76px;pointer-events:none;padding:9px 13px;border-radius:6px;background:#130e0bd4;border:1px solid #6b533880;max-width:255px;backdrop-filter:blur(6px);transition:border-color .18s,box-shadow .18s}
.lh-prompt .lh-label{display:block;font-size:.64rem;font-weight:800;letter-spacing:.16em;color:var(--teal);margin-bottom:2px}
.lh-prompt strong{display:block;font-size:.92rem;color:#fff0d4;line-height:1.2}
.lh-prompt small{display:block;font-size:.68rem;color:#b8a792;margin-top:4px;line-height:1.3}
.lh-prompt.lift{border-color:#ffcf70;box-shadow:0 0 18px #f5b34955}
.lh-prompt.lift .lh-label{color:#ffdc8a}
.lh-prompt.hush{border-color:#7fd4c0;box-shadow:0 0 18px #6bc4b048}
.lh-prompt.cue{border-color:#ffe08a;background:#322211e0;box-shadow:0 0 22px #f5be5470}
.lh-prompt.fermata{border-color:#ff8660;background:#3a1912e5;box-shadow:0 0 22px #ff6e4866}

/* Left-Thumb Direct Touch/Mouse Vertical Expression Rail */
.touch-lh-rail{pointer-events:auto;position:absolute;left:clamp(14px,3vw,36px);top:50%;transform:translateY(-48%);width:30px;height:210px;border-radius:99px;background:#140e0bc4;border:1px solid #755b3e90;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:8px 0;font-family:var(--serif);font-style:italic;font-size:.78rem;color:#e5cda0;cursor:ns-resize;touch-action:none}
.touch-lh-thumb{position:absolute;left:50%;top:45%;width:22px;height:22px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#fff4d2,#e4b45c);border:2px solid #1d140c;box-shadow:0 0 12px #f5b95190;pointer-events:none}

/* Concertmaster Elena Portrait Dialogue Card */
.elena-card{display:grid;grid-template-columns:76px 1fr;gap:14px;align-items:center;text-align:left;margin:14px 0 8px;padding:12px 14px;border-radius:6px;background:linear-gradient(135deg,#1d1510,#130e0b);border:1px solid #6b5239}
.elena-card img{width:76px;height:76px;object-fit:cover;object-position:center 18%;border-radius:50%;border:2px solid var(--gold);box-shadow:0 4px 18px #00000090}
.elena-card .elena-role{font-size:.67rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:3px}
.elena-card blockquote{margin:0;font-family:var(--serif);font-style:italic;font-size:1.12rem;line-height:1.25;color:#f5ead8}
.hand-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left;margin:10px 0 4px}
.hand-box{padding:9px 12px;border-radius:5px;background:#120e0b;border:1px solid #4e3d2f;font-size:.76rem;color:#d6c7b4;line-height:1.4}
.hand-box strong{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.14em;color:var(--gold);margin-bottom:3px}
.hand-box.left strong{color:var(--teal)}

/* Webcam Mirror PiP */
.cam-pip{pointer-events:auto;position:absolute;right:18px;bottom:84px;width:220px;border-radius:7px;overflow:hidden;border:1px solid #9c7b51;background:#120d0aeb;box-shadow:0 10px 30px #00000090}
.cam-pip canvas{display:block;width:100%;height:auto}
.cam-pip-foot{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;font-size:.7rem;color:#e8d3b0;background:#19120e}
.mini{border:0;background:none;color:var(--gold);font-size:.7rem;font-weight:700;padding:2px 4px}

/* Bottom Stage Dock: 5 Orchestra Sections + Live Dynamics & Articulation */
.live-bottom{position:absolute;bottom:14px;inset-inline:clamp(12px,3vw,36px);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;pointer-events:none}
.section-dock{display:flex;gap:6px;flex-wrap:wrap;pointer-events:auto}
.sec-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:4px;border:1px solid #594635;background:#140f0cd4;font-size:.74rem;font-weight:700;color:#d6c7b4;transition:all .15s}
.sec-pill kbd{font-family:var(--sans);font-size:.66rem;color:#a5927d;background:#261d16;padding:1px 5px;border-radius:3px}
.sec-pill.expectant{border-color:#ffdb8a;background:#4b3317e8;color:#fff0c8;box-shadow:0 0 18px #f5b95166;animation:cueBeat .65s ease-in-out infinite alternate}
.sec-pill.cued{border-color:#8fe0c6;background:#1b3c32e8;color:#d8fff2}
@keyframes cueBeat{from{transform:translateY(0)}to{transform:translateY(-3px)}}

.expr-dock{display:flex;align-items:center;gap:10px;pointer-events:auto;margin-left:auto}
.dyn-box{display:flex;align-items:center;gap:8px;padding:6px 11px;border-radius:4px;border:1px solid #5a4736;background:#140f0cd4}
.dyn-tag{font-family:var(--serif);font-style:italic;font-size:1.15rem;color:var(--gold-hi);min-width:24px;text-align:center}
.dyn-track{position:relative;width:116px;height:10px;border-radius:99px;background:#2b2119;overflow:visible;cursor:ew-resize;touch-action:none}
.dyn-fill{position:absolute;inset:0 auto 0 0;border-radius:99px;background:linear-gradient(90deg,#7ec4b2,#edce89,#f08d58);width:55%;transition:width .08s}
.dyn-target{position:absolute;top:-4px;width:3px;height:15px;border-radius:2px;background:#fff5d6;box-shadow:0 0 6px #ffcf70;left:60%;transform:translateX(-50%)}
.art-tag{font-size:.71rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#d8c4a6;min-width:74px;text-align:right}
.mini-btn{padding:6px 11px;min-height:33px;font-size:.74rem}
.mini-btn.fermata-glow{border-color:#ff9b6a;background:#592218;color:#ffe2cc;box-shadow:0 0 16px #ff7b4770}
.chain{font-size:.82rem;font-weight:800;color:var(--gold);min-width:76px;text-align:right}

/* Stage Overlay Card & Concert Review */
.stage-card{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(calc(100% - 28px),660px);background:#16110ef5;border:1px solid #9c774f;box-shadow:0 18px 90px #040201cc;border-radius:6px;padding:clamp(18px,3.6vw,30px);text-align:center;max-height:84vh;overflow:auto;z-index:5}
.stage-card h2,dialog h2{font-size:clamp(36px,5.4vw,56px);margin:6px 0 10px}
.stage-card p:not(.eyebrow),dialog p{color:#ded0bd;margin:8px 0;font-size:.92rem}
.stage-card .actions{justify-content:center;margin-top:16px}
.stage-card .tips{color:#c4ad8b;font-size:.82rem}
.stage-card .scoreline{font-size:.96rem;color:var(--gold);font-weight:700}

.review-grid{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center;text-align:left;margin:14px 0;padding:14px;border-radius:5px;background:#100c0a;border:1px solid #48392c}
.review-overall{text-align:center;border-right:1px solid #3c2f24;padding-right:14px}
.review-overall strong{display:block;font:64px/.9 var(--serif);color:var(--gold-hi)}
.review-overall span{font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;color:var(--muted)}
.axes{display:flex;flex-direction:column;gap:7px}
.axis-row{display:grid;grid-template-columns:128px 1fr 34px;gap:8px;align-items:center;font-size:.76rem}
.axis-bar{height:6px;border-radius:99px;background:#261e17;overflow:hidden}
.axis-bar i{display:block;height:100%;background:linear-gradient(90deg,#c2934c,#ffe19c);border-radius:99px}

.curve-wrap{margin:12px 0 4px;padding:12px;border-radius:5px;background:#100c0a;border:1px solid #48392c;text-align:left}
.curve-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px;font-size:.76rem;color:var(--muted)}
.curve-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:.72rem}
.curve-legend span{display:inline-flex;align-items:center;gap:5px}
.curve-legend i{width:12px;height:2.5px;display:block}
.curve-svg{width:100%;height:128px;display:block}

dialog{width:min(calc(100% - 28px),540px);color:var(--ink);background:#1b140f;border:1px solid #a07c54;border-radius:6px;padding:24px}
dialog::backdrop{background:#080604c8}
dialog form{float:right}
dialog .close{padding:4px 6px}
dialog label{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.9rem}
dialog input,dialog select{accent-color:var(--gold);background:#110d0a;color:var(--ink);border:1px solid #5e4b3a;border-radius:4px;padding:5px 8px}
dialog a{color:var(--gold);text-decoration:underline}
.qr-box{display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px;background:#110d0a;border:1px solid #4e3d2f;border-radius:6px;margin:12px 0}
.qr-url{font-family:ui-monospace,monospace;font-size:.82rem;color:var(--gold-hi);word-break:break-all;text-align:center}

@media(max-width:1020px){
  .masthead,.section-block,.program,footer,.hero-inner{width:calc(100% - 48px)}
  .lessons-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pieces{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .masthead,.section-block,.program,footer,.hero-inner{width:calc(100% - 28px)}
  .masthead{height:auto;min-height:62px;padding:10px 0;flex-wrap:wrap}
  .brand{font-size:24px;gap:8px}
  .brand img{width:28px;height:28px}
  .masthead nav{gap:12px;font-size:.78rem}
  .masthead nav a{display:none}
  .hero{margin-top:0;padding-top:16px}
  .lessons-grid,.pieces{grid-template-columns:1fr}
  .review-grid{grid-template-columns:1fr}
  .review-overall{border-right:0;border-bottom:1px solid #3c2f24;padding:0 0 10px}
  .cam-pip{width:152px;bottom:124px;right:10px}
  .stage-header{grid-template-columns:auto 1fr auto}
  .stage-header h2{font-size:22px}
}
