@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
:root{--ink:#192638;--muted:#687889;--night:#111b2b;--line:#dee5eb;--paper:#f3f6f8;--teal:#148c85;--trail:#19b6ac;--lead:#e9a548;--radius:16px;font-family:Inter,'Noto Sans JP',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #19b6ac;outline-offset:3px}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(23px,2.5vw,32px);font-weight:700;letter-spacing:-.04em;line-height:1.4}h2{font-size:18px}h3{font-size:14px}p{line-height:1.7}.topbar{height:76px;background:var(--night);color:white;display:flex;align-items:center;padding:0 4%;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-size:22px;letter-spacing:.07em}.brand-icon{display:grid;place-items:center;width:32px;height:34px;background:var(--lead);color:var(--night);font-size:23px;border-radius:7px;font-weight:800}.brand b{font-weight:400;opacity:.65}.demo-tag{font-size:10px;letter-spacing:.12em;border:1px solid #ffffff40;border-radius:4px;padding:4px 6px;margin-left:8px}.header-note{color:#adbac9;font-size:13px;flex:1}.icon-btn{border:1px solid var(--line);border-radius:9px;width:38px;height:38px;font-size:20px;display:grid;place-items:center;flex-shrink:0}.topbar .icon-btn{border-color:#ffffff30;color:#bccbd8;font-size:16px}main{max-width:1500px;margin:auto;padding:0 4% 38px}.main-tabs{height:73px;display:flex;align-items:stretch;gap:34px;border-bottom:1px solid var(--line)}.main-tabs button{padding:0 4px;color:var(--muted);font-size:15px;font-weight:600;border-bottom:3px solid transparent;min-width:68px}.main-tabs button span{margin-right:7px;font-size:19px}.main-tabs button.active{color:var(--ink);border-color:var(--teal)}.page{display:none}.page.active{display:block}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:27px 0 23px;gap:14px}.eyebrow{display:block;font-size:11px;letter-spacing:.16em;color:var(--teal);font-weight:700;margin-bottom:7px}.text-button{color:var(--muted);font-size:13px;padding:10px 0;text-decoration:underline;text-underline-offset:4px}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.court-column{min-width:0}.court-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}.segmented{background:#e5ebef;display:flex;border-radius:9px;padding:4px;gap:3px}.segmented button{padding:8px 13px;color:var(--muted);border-radius:6px;font-size:13px;white-space:nowrap}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #182d3b10;font-weight:600}.segmented.small button{font-size:12px;padding:7px 10px}#court-stage{position:relative;height:clamp(400px,41vw,595px);background:#152235;border-radius:18px;overflow:hidden;box-shadow:0 12px 26px #142a3a17;border:1px solid #203345}#court-canvas{width:100%;height:100%;touch-action:none}#court-canvas canvas{display:block;width:100%;height:100%}.canvas-badge{position:absolute;left:18px;top:16px;z-index:2;pointer-events:none;display:flex;align-items:center;gap:10px;font-size:12px;color:#b7c5d2}.canvas-badge span:first-child{color:white;font-size:12px;background:#ffffff14;border:1px solid #ffffff25;padding:5px 9px;border-radius:6px}.court-legend{position:absolute;bottom:15px;left:18px;right:18px;display:flex;gap:16px;color:#d1dce5;font-size:11px;pointer-events:none}.court-legend span{display:flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0}.lead{background:var(--lead)}.trail{background:var(--trail)}#render-error{position:absolute;inset:40% 20px;color:white;text-align:center}.stage-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.stage-footer p{font-size:12px;color:var(--muted)}.scene-picker{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:22px}.scene-picker span{font-size:13px;color:var(--muted);margin-right:4px}.scene-picker button{border:1px solid var(--line);background:white;font-size:12px;padding:10px 12px;border-radius:8px}.scene-picker button.active{background:var(--night);border-color:var(--night);color:white}.learning-note{display:flex;gap:12px;border-top:1px solid var(--line);margin-top:20px;padding-top:17px;align-items:start}.learning-note>span{background:#dceeea;color:var(--teal);font-size:15px;font-weight:700;border-radius:9px;padding:10px}.learning-note p{font-size:12px;color:var(--muted);max-width:650px}.learning-note b{font-weight:600;color:var(--ink)}.control-panel{background:white;border:1px solid var(--line);border-radius:16px;padding:21px;height:fit-content}.panel-title{display:flex;justify-content:space-between;align-items:center}.panel-title h2{font-size:15px}.panel-title span{font-size:11px;color:var(--muted)}.ref-selector{display:flex;gap:7px;margin:17px 0 6px}.ref-selector button{flex:1;font-size:12px;padding:11px 5px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px}.ref-selector button b{font-size:15px}.ref-selector button.active{background:#e8f8f5;border-color:#75c8bc}.control-block{padding:17px 0 12px;border-bottom:1px solid var(--line)}.label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.label-row label{font-size:13px;font-weight:600}.label-row output{font-size:14px;font-weight:600;color:var(--teal);background:#eaf6f3;padding:4px 8px;border-radius:6px}input[type=range]{display:block;width:100%;margin:16px 0 8px;accent-color:var(--teal);height:20px}.range-caption{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.checkbox-line{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:6px}input[type=checkbox]{accent-color:var(--teal);width:16px;height:16px}.position-block .label-row span{font-size:11px;color:var(--muted)}.move-grid{display:flex;gap:6px;margin-top:12px}.move-grid button{border:1px solid var(--line);border-radius:7px;font-size:18px;height:36px;flex:1;background:#f8fafb}.coverage{padding:18px 0 14px}.coverage .label-row>span{font-weight:700;color:var(--teal);font-size:14px}.coverage p{font-size:10px;color:var(--muted);margin-top:10px}.area-chips{display:flex;gap:6px;margin-top:12px}.area-chip{display:grid;place-items:center;width:32px;height:35px;border:1px solid var(--line);border-radius:8px;color:#a4b0bc;font-weight:600;font-size:14px}.area-chip.hit{border-color:#78c9bd;background:#ddf4ee;color:#10776f}.area-chip.full-hit{background:var(--teal);color:white;border-color:var(--teal)}.coverage-empty{font-size:12px;color:var(--muted);margin-top:10px}.display-toggles{border-top:1px solid var(--line);padding:10px 0}.switch-line{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:12px}.switch-line input{appearance:none;width:32px;height:18px;border-radius:12px;background:#cbd5df;position:relative;cursor:pointer}.switch-line input:before{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:white;top:3px;left:3px;transition:left .15s}.switch-line input:checked{background:var(--teal)}.switch-line input:checked:before{left:17px}.primary,.secondary{padding:12px 18px;border-radius:9px;font-size:13px;font-weight:600;min-height:43px}.primary{background:var(--teal);color:white}.primary:hover{background:#0b7872}.secondary{background:white;border:1px solid var(--line)}.secondary:hover{background:#eaf0f4}.full{width:100%}.pill{font-size:11px;padding:6px 9px;border-radius:6px;background:#e7edf2;color:var(--muted);white-space:nowrap}.notice{border:1px solid #e9d4a8;background:#fff8e9;color:#79603b;font-size:12px;padding:13px 16px;border-radius:9px;margin-bottom:16px}.practice-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px}.lesson-list{display:flex;flex-direction:column;gap:10px}.lesson-list button{display:flex;text-align:left;gap:13px;padding:19px 16px;border:1px solid var(--line);border-radius:12px;background:white}.lesson-list button.active{border-color:var(--teal);background:#eaf7f4}.lesson-list>button>span{color:var(--teal);font-size:20px;font-weight:600}.lesson-list b{font-size:13px;display:block}.lesson-list small{font-size:11px;color:var(--muted);display:block;margin-top:7px}.rehearsal-card{background:var(--night);border-radius:18px;padding:35px;color:white;text-align:center}.rehearsal-card .eyebrow{color:#6ec6bc}.rehearsal-card h2{font-size:24px;margin-top:10px}.beat-orb{width:130px;height:130px;margin:25px auto;border:1px solid #60bbb180;border-radius:50%;background:#22b5a915;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:box-shadow .1s}.beat-orb.pulse{box-shadow:0 0 0 12px #22b5a920}.beat-orb>span{font-size:48px;color:#7addce;font-weight:600}.beat-orb small{font-size:11px;color:#a1b8c9}.rehearsal-card>p{font-size:14px;color:#b5c5d2;min-height:50px}.voice-line{font-size:26px;font-weight:600;color:#f0b95f;min-height:72px;padding:20px 0}.practice-buttons{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.practice-options{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;font-size:12px;color:#b0c0ce;margin-top:23px;align-items:center}.practice-options label{display:flex;align-items:center;gap:5px}.practice-options select{font-size:12px;padding:5px;color:white;background:#22374c;border:1px solid #3e5267;border-radius:5px}.step-progress{display:flex;justify-content:center;gap:6px;margin-bottom:20px}.step-progress span{height:4px;width:45px;border-radius:3px;background:#34485c}.step-progress span.done{background:#75d6c5}.check-card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin-top:16px}.check-card h3{font-size:16px;margin-bottom:15px}.check-card label{display:flex;align-items:center;gap:8px;font-size:13px;margin:9px 0}.check-card button{margin-top:12px}.quiz-container{max-width:780px;margin:0 auto}.quiz-card{background:white;border:1px solid var(--line);border-radius:16px;padding:30px}.quiz-card h2{font-size:21px;line-height:1.7;margin:22px 0}.quiz-options{display:flex;flex-direction:column;gap:10px}#quiz-options button{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid var(--line);padding:16px;border-radius:10px;font-size:14px;width:100%;margin-bottom:10px}#quiz-options button>span{border-radius:6px;background:#edf2f5;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;font-size:13px}#quiz-options button.correct{border-color:var(--teal);background:#e7f5f0}#quiz-options button.incorrect{border-color:#d39286;background:#fbefec}#quiz-options button:disabled{cursor:default;color:var(--ink)}#quiz-result{background:#f0f5f7;padding:17px;border-radius:9px;margin:20px 0;font-size:14px;line-height:1.7}#quiz-result b{display:block;margin-bottom:7px}.quiz-footer{display:flex;justify-content:space-between;margin-top:16px;font-size:12px;color:var(--muted)}.notes-layout{display:grid;grid-template-columns:minmax(300px,430px) minmax(0,1fr);gap:24px}.note-form{padding:25px;border:1px solid var(--line);border-radius:16px;background:white;height:fit-content}.note-form h2,.notes-feed h2{font-size:16px}.note-form>label{font-size:13px;font-weight:500;display:block;margin-top:20px}.note-form textarea,.note-form select,.note-form input[type=date]{margin-top:8px;width:100%;padding:12px;border:1px solid #cfd9e1;border-radius:8px;background:#fbfcfd;font-size:14px;line-height:1.6;color:var(--ink)}.note-form textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.form-row label{font-size:12px}.note-form>button{margin-top:20px}.storage-note{font-size:11px;color:var(--muted);margin-top:12px}.notes-feed>.label-row{margin:4px 0 17px}.notes-feed>.label-row>span{font-size:12px;color:var(--muted)}.note-card{background:white;padding:22px;border:1px solid var(--line);border-radius:14px;margin-bottom:12px}.note-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:15px;font-size:11px;color:var(--muted)}.note-card>p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.next-action{margin-top:15px;padding:14px;background:#eef6f3;border-left:3px solid var(--teal);font-size:13px;line-height:1.65;white-space:pre-wrap}.next-action b{display:block;color:var(--teal);font-size:11px;margin-bottom:5px}.note-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}.note-actions button{border:1px solid var(--line);padding:8px 10px;border-radius:7px;font-size:11px;min-height:36px}.note-actions .delete-note{margin-left:auto;color:#8d6a63}.sample-label{background:#edf1f5;color:#83909e;padding:3px 6px;border-radius:4px;font-size:10px}.note-state{font-size:11px;color:var(--teal)}.attached-scene{padding:13px;background:#eef7f6;border:1px dashed #94c9c2;border-radius:8px;font-size:12px;color:var(--teal);margin-top:16px}.attached-scene button{margin-left:8px;text-decoration:underline}.empty-state{border:1px dashed #c6d5df;padding:30px;border-radius:12px;text-align:center;color:var(--muted);font-size:14px}dialog{border:1px solid var(--line);border-radius:16px;padding:32px;max-width:650px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 80px #111b2b40}dialog::backdrop{background:#0b182a90}dialog h2{margin-bottom:20px;padding-right:20px;font-size:22px}dialog p{font-size:14px;margin-bottom:15px}.dialog-close{position:absolute;top:15px;right:15px}dialog textarea{width:100%;padding:13px;line-height:1.6;border:1px solid var(--line);border-radius:8px;margin-bottom:18px;font-size:13px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);background:#172d3d;color:white;padding:13px 20px;border-radius:10px;font-size:13px;opacity:0;transition:all .2s;z-index:100;pointer-events:none;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1450px){#court-stage{height:600px}}@media(max-width:1050px){main{padding:0 22px 30px}.studio-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.control-panel{padding:17px}.segmented button{padding:8px 10px}.practice-layout{grid-template-columns:260px minmax(0,1fr)}.stage-footer{flex-wrap:wrap}}@media(max-width:760px){.topbar{height:62px;padding:0 18px}.brand{font-size:20px}.header-note{display:none}.topbar>.icon-btn{margin-left:auto}main{padding:0 15px 24px}.main-tabs{height:62px;justify-content:space-between;gap:8px}.main-tabs button{font-size:13px;min-width:60px}.main-tabs button span{font-size:16px;margin-right:3px}.page-heading{padding:21px 0 17px}.page-heading .eyebrow{font-size:10px}.page-heading .text-button{font-size:11px}.studio-layout{grid-template-columns:1fr;gap:18px}.court-toolbar .segmented{flex:1;justify-content:space-between;gap:1px}.court-toolbar .segmented button{padding:8px 6px;font-size:11px}.court-toolbar .icon-btn{width:34px;height:34px}#court-stage{height:440px;border-radius:13px}.canvas-badge{left:12px;top:12px;font-size:10px;gap:7px}.court-legend{left:12px;right:12px;gap:12px;font-size:10px;bottom:12px}.stage-footer{justify-content:space-between}.stage-footer p{font-size:10px}.scene-picker{margin-top:16px;gap:6px}.scene-picker button{font-size:10px;padding:9px 8px}.scene-picker>span{font-size:11px}.learning-note{margin-top:15px;padding-top:14px}.learning-note p{font-size:11px}.control-panel{padding:19px}.ref-selector button{font-size:13px}.control-block .label-row label{font-size:14px}.range-caption,.coverage p{font-size:11px}.control-block{padding-top:20px}.control-panel .coverage .area-chip{width:38px;height:38px}.display-toggles{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.switch-line{font-size:12px}.control-panel>.primary{margin-top:8px}.practice-layout{grid-template-columns:1fr;gap:16px}.lesson-list{flex-direction:row;overflow-x:auto;gap:8px}.lesson-list button{flex:0 0 200px;padding:13px 10px;gap:10px}.lesson-list b{font-size:11px}.lesson-list small{font-size:10px}.rehearsal-card{padding:25px 16px}.rehearsal-card h2{font-size:21px}.practice-options{font-size:11px;gap:10px}.notes-layout{grid-template-columns:1fr}.note-form{padding:20px}.notes-feed{margin-top:8px}.quiz-card{padding:22px 18px}.quiz-card h2{font-size:18px}.page-heading>.secondary{font-size:11px;padding:9px 11px}.eyebrow{font-size:10px}.notice{font-size:11px}.quiz-footer{font-size:11px}dialog{padding:25px 20px}.control-panel .panel-title span{font-size:12px}input[type=range]{height:28px}.move-grid button{height:42px}.primary,.secondary{min-height:44px}.note-form textarea,.note-form select,.note-form input[type=date]{font-size:16px}}@media(max-width:380px){#court-stage{height:380px}.segmented.small button{font-size:10px;padding:7px}.stage-footer p{max-width:125px}.brand .demo-tag{margin-left:0}.page-heading h1{font-size:22px}.scene-picker button{padding:8px 6px}}
.main-tabs button,.segmented button,.segmented.small button,.scene-picker button,.ref-selector button,.primary,.secondary,.switch-line,.checkbox-line,.label-row label,.lesson-list b,.note-actions button,.note-form>label,.practice-options{font-size:14px}.rehearsal-card>p,.note-card>p,dialog p{font-size:16px}.notice{font-size:14px}.court-toolbar .segmented button{font-size:14px}.page-heading>.secondary{font-size:14px}.label-row output{font-size:16px}.note-state{margin-top:12px}.learning-note p,.storage-note,.coverage p{font-size:12px}.scene-picker{align-items:center}.scene-picker button{min-height:40px}.ref-selector button,.main-tabs button{min-height:44px}@media(max-width:760px){.court-toolbar .segmented button{font-size:12px;min-height:36px}.lesson-list button{flex-basis:230px}.lesson-list small{font-size:12px}.display-toggles{grid-template-columns:1fr}.main-tabs button{font-size:14px}.segmented.small button{font-size:13px}.scene-picker button{font-size:13px}.page-heading .text-button{font-size:12px}.stage-footer p{font-size:12px}.practice-options{font-size:13px}.learning-note p{font-size:12px}.court-legend{font-size:11px}.range-caption{font-size:11px}.page-heading{align-items:center}}

#court-stage.eye-view{height:auto;aspect-ratio:16/10;min-height:220px}#court-stage.eye-view .canvas-badge{color:#f1f4f5;text-shadow:0 1px 3px #142638}#court-stage.eye-view .court-legend{background:#142638b0;padding:7px;border-radius:6px}

.court-size-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.court-size-toolbar .secondary{min-height:40px;padding:8px 12px;font-size:13px}.court-toolbar .segmented{flex:1;justify-content:space-between}.court-toolbar .segmented button{min-height:40px}.court-size-toolbar .segmented button{min-height:36px}.stage-footer p{font-size:12px}
body.court-focus{overflow:hidden}body.court-focus .court-column{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;background:#111b2b;padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));height:100dvh}body.court-focus .court-size-toolbar,body.court-focus .court-toolbar{margin-bottom:6px;flex-shrink:0}body.court-focus .court-size-toolbar .secondary{color:white;border-color:#ffffff40}body.court-focus #court-stage{height:auto;min-height:0;flex:1;aspect-ratio:auto}body.court-focus .stage-footer{flex-shrink:0;margin-top:6px;color:white}body.court-focus .stage-footer p{color:#c9d5df}body.court-focus .scene-picker,body.court-focus .learning-note{display:none}body.court-focus .court-legend{background:#142638a0;border-radius:6px;padding:6px}
@media(max-width:760px) and (orientation:portrait){#court-stage{height:max(380px,calc(100svh - 280px))}#court-stage.eye-view{height:auto}.court-toolbar .segmented button{font-size:12px}.canvas-badge{color:#fff;background:#14263899;border-radius:6px;padding:4px}.stage-footer p{font-size:12px;flex:1 0 100%}.court-size-toolbar .segmented button{font-size:13px}}
@media(max-height:600px) and (orientation:landscape){body.court-active:not(.court-focus) .topbar,body.court-active:not(.court-focus) .main-tabs,body.court-active:not(.court-focus) #page-court>.page-heading{display:none}body.court-active main{padding:8px 12px}.studio-layout{grid-template-columns:minmax(0,1fr) 250px;gap:12px}#court-stage{height:calc(100dvh - 116px);min-height:200px}.court-size-toolbar,.court-toolbar{margin-bottom:5px}.court-size-toolbar .segmented button,.court-toolbar .segmented button{padding:5px 8px}.stage-footer p{display:none}.canvas-badge{top:8px;left:8px}.court-legend{bottom:6px}.control-panel{padding:14px}.scene-picker,.learning-note{margin-top:12px}body.court-focus .court-column{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto;gap:5px}body.court-focus .court-size-toolbar{grid-column:2;grid-row:1;gap:6px}body.court-focus .court-toolbar{grid-column:1;grid-row:1}body.court-focus #court-stage{grid-column:1/-1;grid-row:2;min-height:0;height:100%;width:100%}body.court-focus .stage-footer{grid-column:1/-1;grid-row:3;margin:0}body.court-focus .court-size-toolbar .secondary{font-size:12px}body.court-focus .court-toolbar .icon-btn{display:none}body.court-focus .segmented button{font-size:12px;padding:5px 8px}}

.team-dot{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid #8191a2}.team-dot.offense{background:#fff}.team-dot.defense{background:#102d70}.court-legend{flex-wrap:wrap;background:#142638b0;border-radius:6px;padding:7px}.court-legend span{white-space:nowrap}

:root{--trail:#00b9a2;--lead:#f39a12}.control-panel .ref-selector button[data-ref="T"] .legend-dot{background:#008e85}.control-panel .ref-selector button[data-ref="L"] .legend-dot{background:#ee9000}

#court-focus.focus-icon{width:42px;height:42px;min-height:42px;padding:9px;display:grid;place-items:center;flex-shrink:0}#court-focus svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#court-focus .shrink-glyph{display:none}#court-focus.is-expanded .expand-glyph{display:none}#court-focus.is-expanded .shrink-glyph{display:block}.scene-picker{flex-wrap:wrap}.scene-picker>span{flex:0 0 100%;font-size:13px}.scene-picker button{font-size:12px;min-height:38px}.scene-caption{color:var(--muted);font-size:12px;line-height:1.7;margin-top:10px}body.court-focus .scene-caption{display:none}

#scene-select{display:none}body.court-focus #scene-select{display:block;min-width:0;max-width:145px;height:40px;color:white;background:#213349;border:1px solid #526071;border-radius:8px;padding:0 6px;font-size:13px}.court-size-toolbar .focus-icon{margin-left:auto}

/* Explicit palettes prevent focus-mode text overrides from disappearing on light controls. */
#court-focus.focus-icon,body.court-focus #court-focus.focus-icon,#save-image,body.court-focus #save-image{background:#ffffff;color:#14263b;border:2px solid #61748e;opacity:1;box-shadow:0 2px 5px #00000018;width:44px;height:44px;min-height:44px}
#court-focus.focus-icon:hover,#save-image:hover{background:#e4edf6;border-color:#14263b}
#save-image svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#note-court{background:#075b55;color:#ffffff;border:2px solid #03413d;opacity:1}
#note-court:hover{background:#03413d}
#scene-select{display:block;flex:1;min-width:0;max-width:330px;height:44px;background:#ffffff;color:#14263b;border:2px solid #61748e;border-radius:8px;padding:0 8px;font-size:14px;cursor:pointer}
body.court-focus #scene-select{display:block;flex:1;min-width:0;max-width:330px;height:44px;background:#213349;color:#ffffff;border:2px solid #8c9db5;font-size:14px}
.court-size-toolbar .segmented{flex-shrink:0}.court-size-toolbar .focus-icon{margin-left:0}
@media(max-width:760px){.court-size-toolbar{gap:7px}.court-size-toolbar .segmented button{padding:7px 6px;font-size:12px}#scene-select,body.court-focus #scene-select{font-size:13px;padding:0 5px}}
@media(max-height:600px) and (orientation:landscape){body.court-focus .court-toolbar .icon-btn{display:grid}body.court-focus .court-size-toolbar{min-width:0}body.court-focus #scene-select{max-width:180px}.court-toolbar{gap:6px}body.court-focus .court-toolbar .segmented button{padding:5px 6px}}

.court-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}.court-tools button{min-height:40px;padding:7px 11px;background:#fff;color:#14263b;border:2px solid #61748e;border-radius:8px;font-size:13px}.court-tools .active{color:#fff;background:#075b55;border-color:#03413d}.court-tools #draw-pen{display:flex;align-items:center;gap:5px}.court-tools svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#pen-actions:not([hidden]){display:flex;gap:7px}.to-side-note{font-size:12px;color:#44566d;margin-top:7px}body.court-focus .court-tools{margin-top:5px;flex-shrink:0}body.court-focus .to-side-note{color:#e3edf5;font-size:12px;margin-top:4px;flex-shrink:0}
@media(max-height:600px) and (orientation:landscape){body.court-focus .court-column{grid-template-rows:auto minmax(0,1fr) auto auto;gap:4px}body.court-focus .court-tools{grid-column:1;grid-row:3;margin:0}body.court-focus .to-side-note{grid-column:2;grid-row:3;align-self:center;margin:0;font-size:11px}body.court-focus .stage-footer{grid-row:4}body.court-focus .court-tools button{min-height:34px;padding:4px 8px}body.court-focus #pen-actions button{font-size:11px}}

#app-refresh{position:fixed;right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));z-index:70;width:46px;height:46px;display:grid;place-items:center;background:#fff;color:#14263b;border:2px solid #61748e;border-radius:50%;box-shadow:0 3px 14px #00000030}#app-refresh svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}#app-refresh:disabled{opacity:.8}#app-refresh.refreshing svg{animation:refresh-spin .8s linear infinite}@keyframes refresh-spin{to{transform:rotate(360deg)}}body.court-focus .stage-footer{padding-right:54px}body:not(.court-focus) main{padding-bottom:80px}

/* 3PO controls share the existing compact court tool row. */
.legend-dot.center{background:#9b42dd}#officials-select{height:40px;min-height:40px;padding:5px 9px;border:2px solid #61748e;border-radius:8px;background:#fff;color:#14263b;font-size:14px;font-weight:600;cursor:pointer}.ref-selector{flex-wrap:wrap}.ref-selector button[data-ref="C"] .legend-dot{background:#8b3ac7}[data-ref="C"][hidden],[data-view="C"][hidden],#center-legend[hidden]{display:none!important}.court-toolbar .segmented{min-width:0}.court-toolbar .segmented button{white-space:nowrap}body.court-focus #officials-select{background:#fff;color:#14263b}@media(max-width:480px){.court-toolbar{gap:6px}.court-toolbar .segmented button{padding:8px 3px;font-size:12px;flex:1}.court-toolbar .segmented{padding:4px;gap:0}.court-legend{gap:8px}}@media(max-height:600px) and (orientation:landscape){body.court-focus #officials-select{height:34px;min-height:34px;padding:4px 7px}}

/* A captured court and the feedback stay together in the editor and saved records. */
.notes-layout{grid-template-columns:minmax(0,1fr)}.scene-note-editor{margin-top:18px}.note-inputs{min-width:0}.note-inputs>label{display:block;margin-top:16px;font-size:14px;font-weight:600}.note-inputs>label:first-child{margin-top:0}.note-inputs>textarea{margin-top:8px}.attached-scene{margin:0 0 18px;padding:14px;border:1px solid #94c9c2;background:#eef7f6;color:#14263b}.attached-scene[hidden]{display:none}.note-scene-figure{margin:12px 0 0;min-width:0}.scene-preview{display:block;width:100%;padding:0;border:1px solid #61748e;border-radius:10px;overflow:hidden;background:#c1cad0}.scene-preview img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain}.note-scene-figure figcaption{font-size:13px;line-height:1.6;margin-top:8px;color:#44566d}.preview-tip{display:block;font-size:12px;color:#44566d;margin-top:7px}.note-comment>p{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}.note-content{min-width:0}.note-card .note-scene-figure{margin:0 0 16px}.legacy-scene{font-size:14px;padding:18px;border:1px dashed #61748e;border-radius:8px}.note-form>.primary{margin-top:20px}.note-scene-figure button{margin:0;text-decoration:none}#scene-image-dialog{max-width:1000px}#scene-image-full{display:block;max-width:100%;max-height:70dvh;object-fit:contain;margin:10px auto 20px}#scene-image-download{background:#fff;color:#14263b;border:2px solid #61748e}
@media(min-width:700px){.note-form.has-scene .scene-note-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.note-form.has-scene .attached-scene{margin-bottom:0}.note-content.with-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.note-card .note-scene-figure{margin:0}}

/* Reflection types, current status and samples remain visually distinct. */
.reflection-box{padding:16px;border:2px solid #c2ceda;border-radius:10px;background:#fff}.reflection-box>b{display:block;color:#44566d;font-size:14px;margin-bottom:9px}.reflection-box>p{font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.note-card.sample-card{border:2px solid #e8a7a7;border-left:5px solid #be2626}.note-card .sample-label{display:block;width:100%;background:#fff0f0;border:1px solid #d98d8d;border-radius:7px;padding:8px 12px;color:#b11f1f;font-size:16px;font-weight:750;letter-spacing:0}.sample-card .storage-note{color:#a52424;font-size:13px}.review-state{margin-top:20px}.review-state>b{display:block;font-size:14px;color:#44566d;margin-bottom:8px}.review-options{display:flex;flex-wrap:wrap;gap:8px}.review-options button{padding:9px 12px;min-height:44px;border:2px solid #c2ceda;border-radius:8px;background:#fff;color:#192638;font-size:14px}.review-options button.is-current{background:#ffb347;border-color:#a95d00;color:#432600;font-weight:700;box-shadow:0 0 0 1px #a95d00}.note-actions button{font-size:14px;min-height:42px}.note-actions button[data-edit-note]{background:#edf4fa;color:#183b5b;border:1px solid #9bafc4}#note-edit-form>label{display:block;font-size:14px;font-weight:600;margin-top:14px}#note-edit-form select{display:block;width:100%;height:44px;margin-top:7px;padding:8px;border:1px solid #9bafc4;border-radius:8px;background:#fff;color:#192638;font-size:16px}#note-edit-form textarea{margin:7px 0 0;font-size:16px;resize:vertical}.edit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}@media(max-width:600px){.review-options{display:grid;grid-template-columns:1fr 1fr}.review-options button{padding:9px 6px;font-size:14px}.reflection-box{padding:14px}.note-meta{font-size:13px}.note-meta .pill{font-size:13px}}
/* Compact record index: only the selected record renders its scene image. */
.note-entry{border:1px solid #c2ceda;border-radius:12px;background:#fff}.note-entry>summary{padding:16px 20px;font-size:16px;font-weight:600;cursor:pointer;color:#183b5b}.note-entry[open]>summary{border-bottom:1px solid #dee5eb}.note-entry .note-form{border:0;margin:0}.notes-feed>.label-row{margin-bottom:16px}.note-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin:16px 0 20px;padding:16px;border:1px solid #c2ceda;border-radius:12px;background:#fff}.note-filters label{display:block;font-size:14px;font-weight:600;color:#44566d;min-width:0}.note-filters select,.note-filters input{display:block;margin-top:7px;width:100%;height:44px;border:1px solid #9bafc4;border-radius:7px;padding:8px;background:#fff;color:#192638;font-size:16px}.note-filters .note-search{grid-column:1/3}.note-browser{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:20px;align-items:start}.note-index-panel{min-width:0;border:1px solid #c2ceda;border-radius:12px;background:#fff;overflow:hidden}#note-index{max-height:620px;overflow-y:auto}.note-index-row{display:block;text-align:left;width:100%;padding:14px 16px;border-bottom:1px solid #dee5eb;background:#fff;min-height:90px}.note-index-row:hover{background:#edf4fa}.note-index-row.selected{background:#e7f2f0;box-shadow:inset 4px 0 #075b55}.index-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#44566d}.index-excerpt{display:block;font-size:15px;line-height:1.6;margin:7px 0;overflow-wrap:anywhere}.index-topic{display:block;font-size:13px;line-height:1.5;color:#44566d}.note-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border-top:1px solid #dee5eb}.note-pagination button{min-height:40px;border:1px solid #9bafc4;border-radius:6px;padding:6px 9px;font-size:13px;color:#192638;background:#fff}.note-pagination button:disabled{color:#687889;background:#f0f3f6;cursor:default}.note-pagination span{font-size:13px;white-space:nowrap}#note-list{min-width:0}.note-examples{margin-top:24px;border:1px solid #e8a7a7;border-radius:12px;background:#fff}.note-examples>summary{padding:16px;color:#b11f1f;font-size:16px;font-weight:700;cursor:pointer}#note-samples{padding:0 16px}.note-browser .note-content.with-scene{grid-template-columns:1fr}.note-browser .note-card .note-scene-figure{margin-bottom:16px}.note-entry>summary:focus-visible,.note-examples>summary:focus-visible{outline:3px solid #148c85;outline-offset:2px}@media(max-width:900px){.note-browser{grid-template-columns:1fr}#note-index{max-height:340px}.note-filters{grid-template-columns:1fr 1fr}.note-filters .note-search{grid-column:auto}.note-filters .secondary{grid-column:1/-1}.note-browser .note-content.with-scene{grid-template-columns:1fr}.note-filters{padding:12px;gap:10px}.note-index-row{min-height:84px}.note-entry>summary{padding:14px 16px}}

@media(min-width:1200px){.note-browser .note-content.with-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* Signal rehearsal: original educational atlases, large readable hands. */
.practice-tabs{display:flex;gap:.5rem;margin:0 0 1.25rem}.practice-tabs button{flex:0 1 160px;min-height:48px;padding:.65rem 1.4rem;font-weight:700;border:2px solid #64748b;border-radius:10px;background:#fff;color:#192638;box-shadow:0 2px 4px #19263814;transition:background .15s,border-color .15s,box-shadow .15s}.practice-tabs button:not(.active):hover{background:#e8f0ed;border-color:#183f38}.practice-tabs button:active{box-shadow:inset 0 1px 3px #19263825}.practice-tabs .active,.signal-frame-list .active{background:#0e1727;color:white;border-color:#0e1727}.signal-guide{max-width:1000px;margin:auto}.signal-selectors{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.signal-selectors label{display:grid;gap:.4rem;color:#334155;font-weight:600}.signal-choice{grid-column:1/-1}.signal-selectors select{width:100%;padding:.7rem;font-size:1rem;border:1.5px solid #64748b;border-radius:10px;background:white;color:#172033}.signal-card{margin:1rem 0;padding:1.25rem;background:white;border:1px solid #cbd5e1;border-radius:18px}.signal-card h2{margin:0;font-size:1.3rem}.signal-stage{max-width:600px;margin:auto;overflow:hidden;background:white}.signal-sprite{width:100%;aspect-ratio:1;background-size:300% 200%;background-repeat:no-repeat;background-color:white}.signal-stage.mirror{transform:scaleX(-1)}.signal-stage.mirror figcaption{transform:scaleX(-1)}.number-hands{display:flex;justify-content:center;gap:1rem}.number-hands figure{margin:0;width:48%;text-align:center}.number-hands figure:only-child{width:55%}.hand-sprite.left-hand{transform:scaleX(-1)}.number-hands figcaption{font-size:.9rem;color:#334155;line-height:1.6}.signal-card h3{font-size:1.1rem}.signal-card p{font-size:1rem;line-height:1.9}.signal-frame-list{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.signal-frame-list button{font-size:.9rem;padding:.6rem;min-height:44px}.signal-controls{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.signal-controls button{min-height:46px}.signal-controls label{display:flex;gap:.5rem;align-items:center}.signal-controls select{color:#172033;background:#fff;border:1px solid #64748b;padding:.5rem}.signal-sources{font-size:.9rem;line-height:1.8}.signal-sources summary{cursor:pointer}.signal-sources a{color:#075985;text-decoration:underline}[data-practice-panel][hidden]{display:none!important}@media(min-width:760px){.signal-choice{grid-column:auto}.signal-selectors{grid-template-columns:1fr 1fr 2fr}}@media(max-width:480px){.signal-card{padding:.9rem}.signal-selectors{gap:.7rem}.signal-controls{justify-content:center}.signal-controls label{width:100%;justify-content:center}}
.signal-sprite{position:relative}.signal-sprite::before{content:"";position:absolute;left:0;top:0;width:18%;height:14%;background:#fff}

.record-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.record-actions button{font-size:.875rem}#image-save-preview{display:block;max-width:100%;max-height:65vh;margin:1rem auto}#image-save-file{display:inline-block;text-decoration:none}.court-toolbar #save-image{font-size:.875rem;white-space:nowrap}.court-tools{flex-wrap:wrap}.note-game{font-weight:600}.form-row input{min-width:0;width:100%}@media(max-width:600px){#page-notes>.page-heading{flex-wrap:wrap}.record-actions{justify-content:flex-start}.court-toolbar{flex-wrap:wrap}}

.principles{border:1px solid #b6c4d2;border-radius:.75rem;padding:1rem;margin:1rem 0}.principles summary{font-weight:600;cursor:pointer}.principles p{font-size:1rem;line-height:1.65}

.share-icon{width:48px;min-width:48px;padding:10px;display:inline-flex;align-items:center;justify-content:center}.share-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.actor-controller{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:12px 0}.controller-label{display:flex;flex-direction:column;gap:6px;text-align:right}.controller-label b{color:#ffbd43;font-size:20px}.controller-label span{font-size:14px;color:#b6c4d4}.direction-pad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,48px);border-radius:50%;padding:6px;background:#edf2f6;border:1px solid #b7c4d2;touch-action:none;flex-shrink:0}.direction-pad button{padding:10px;border:0;border-radius:50%;background:transparent;color:#29415a;min-height:48px;touch-action:none;user-select:none;-webkit-user-select:none}.direction-pad button.is-held{background:#f3b342;color:#132135}.direction-pad svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pad-up{grid-area:1/2}.pad-left{grid-area:2/1}.pad-center{grid-area:2/2;border-radius:50%;background:white;box-shadow:0 2px 8px #1a2a3f30;margin:2px}.pad-right{grid-area:2/3}.pad-down{grid-area:3/2}.preconference-box{border-left:3px solid #e7ae50;padding:10px 14px;margin-bottom:12px;background:#ffffff06}.preconference-box p{white-space:pre-wrap;overflow-wrap:anywhere}.actor-controller[hidden]{display:none}

.controller-label span{color:var(--muted)}body.court-focus .actor-controller{flex-shrink:0;margin:4px 0;justify-content:center}body.court-focus .controller-label span{color:#c9d5df}body.court-focus .direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);padding:2px}body.court-focus .direction-pad button{min-height:44px;padding:8px}@media(max-height:600px) and (orientation:landscape){body.court-focus .actor-controller{margin:0}body.court-focus .controller-label{background:#111b2bd9;border-radius:6px;padding:3px 8px;text-align:center}body.court-focus .controller-label span{display:none}body.court-focus .controller-label b{font-size:16px}}

.actor-controller[hidden]{display:none!important}

/* Court controls stay directly beneath the court, with two equal columns. */
.court-bottom-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:start;margin-top:5px}.court-bottom-left{min-width:0}.court-bottom-left .court-tools{margin-top:0;gap:6px}.court-bottom-left .court-tools button{padding:7px 8px;font-size:14px;min-height:44px}.court-bottom-left .to-side-note{font-size:12px;line-height:1.5}.gesture-hint{font-size:13px;line-height:1.5;color:var(--muted);margin-top:8px}.court-bottom-controls .actor-controller{display:flex;flex-direction:column;align-items:center;justify-self:end;gap:3px;margin:0;max-width:100%;width:154px}.court-bottom-controls .controller-label{text-align:center;flex-direction:row;align-items:center;gap:6px}.court-bottom-controls .controller-label b{font-size:16px;line-height:20px}.court-bottom-controls .direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);padding:2px}.court-bottom-controls .direction-pad button{min-height:44px;padding:8px}.rotation-controls{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:3px}.rotation-controls select{width:100%;min-height:32px;padding:3px 6px;font-size:14px;border-radius:6px}.rotation-buttons{display:flex;align-items:center;justify-content:space-between;gap:4px}.rotation-buttons button{width:44px;min-width:44px;min-height:44px;padding:9px}.rotation-buttons svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.rotation-buttons output{font-size:14px;white-space:nowrap}.rotation-buttons button:disabled,.rotation-controls select:disabled{opacity:.4}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.court-focus .court-bottom-controls{flex-shrink:0;margin-top:5px;gap:6px}body.court-focus .court-bottom-controls .actor-controller{position:static;display:flex;margin:0;justify-self:end}body.court-focus .court-bottom-controls .controller-label{background:none;padding:0}body.court-focus .court-bottom-controls .gesture-hint{color:#c9d5df}body.court-focus .rotation-buttons output{color:#e3edf5}body.court-focus .rotation-controls select{background:#edf2f6;color:#14263b}body.court-focus .court-bottom-controls .court-tools{margin:0}body.court-focus .court-bottom-controls .to-side-note{font-size:12px}@media(max-height:600px) and (orientation:landscape){body.court-focus .court-column{display:flex;flex-direction:column}body.court-focus .court-bottom-controls{position:relative;min-height:148px;padding-right:60px}body.court-focus .court-bottom-controls .actor-controller{width:255px;display:grid;grid-template-columns:138px 108px;gap:3px 8px;align-items:center}.court-bottom-controls .controller-label{grid-column:1/-1}body.court-focus .court-bottom-controls .rotation-controls{grid-column:2;grid-row:2}body.court-focus .court-bottom-controls .direction-pad{grid-column:1;grid-row:2}body.court-focus .court-bottom-controls .gesture-hint{margin-top:4px}}@media(max-width:360px){.court-bottom-controls .actor-controller{width:138px}.court-bottom-left .court-tools button{padding:6px;font-size:13px}.court-bottom-left .to-side-note{font-size:12px}}

.studio-layout{grid-template-columns:minmax(0,1fr)}.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-actions #app-refresh{position:static;inset:auto;z-index:auto;width:38px;height:38px;min-height:38px;border-radius:8px;background:transparent;color:#dce7f2;border:1px solid #526071;box-shadow:none;padding:7px}.header-actions #app-refresh svg{width:23px;height:23px}.header-actions #help-button{width:38px;min-width:38px;height:38px;min-height:38px}.header-actions #app-refresh:hover{background:#26394f}#focus-header-controls{display:flex;justify-content:flex-end;flex-shrink:0;margin-bottom:4px}#focus-header-controls[hidden]{display:none!important}.court-bottom-controls .actor-controller,body.court-focus .court-bottom-controls .actor-controller{margin-right:16px}.court-bottom-controls .rotation-buttons button{background:#edf2f6;color:#14263b;border:1px solid #61748e;border-radius:8px}.court-bottom-controls .rotation-buttons button:disabled{opacity:.4}.court-bottom-left #note-scene-short{white-space:nowrap}.court-bottom-controls .rotation-controls{margin-top:3px}body.court-focus .court-bottom-controls .rotation-buttons button{color:#14263b;background:#edf2f6}@media(max-height:600px) and (orientation:landscape){body.court-focus .court-bottom-controls{padding-right:0;min-height:148px}body.court-focus .court-bottom-controls .actor-controller{margin-right:16px}}@media(max-width:360px){.court-bottom-controls .actor-controller,body.court-focus .court-bottom-controls .actor-controller{margin-right:8px}.header-note{display:none}}

.court-bottom-controls .actor-controller,body.court-focus .court-bottom-controls .actor-controller{max-width:calc(100% - 16px)}

.topbar #header-actions{margin-left:auto}#focus-header-controls{width:100%;justify-content:flex-end;margin-left:auto}#focus-header-controls #header-actions{margin-left:auto}

.quick-ref-selector{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}.quick-ref-selector button{width:40px;min-width:40px;min-height:40px;padding:6px;background:#edf2f6;color:#14263b;border:1px solid #61748e;border-radius:8px;font-weight:700;font-size:16px}.quick-ref-selector button.active{background:#ffb52e;color:#14263b;border-color:#bd7516;box-shadow:0 0 0 2px #ffb52e30}.quick-ref-selector button[hidden]{display:none!important}.court-bottom-controls .controller-label{display:flex;flex-direction:column;gap:2px}.court-bottom-controls .controller-label b{font-size:14px;line-height:16px}

.rotation-buttons button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.rotation-buttons button.is-held{background:#f3b342;color:#132135}

/* REF LAB selected B brand, presentation only. Court semantics stay intact. */
:root{--ink:#18362f;--muted:#60716b;--night:#173e37;--line:#dce5df;--paper:#f5f7f4;--teal:#245b4e;--brand-gold:#d7b878;--brand-white:#faf8f1}
body{background:var(--paper)}
.topbar{background:var(--night);box-shadow:0 2px 12px #173e3714}
.brand{font-weight:700}.brand b{font-weight:700;opacity:1}
.brand-icon{background:var(--night) url('./assets/brand/icon-192.png') center/contain no-repeat;color:transparent;font-size:0;border-radius:7px}
.demo-tag{color:var(--brand-gold);border-color:#d7b87870}
.header-note,.topbar .icon-btn{color:#e2eae5}
.main-tabs button.active{color:var(--night);border-color:var(--brand-gold)}
.segmented{background:#e7ece7}.segmented button.active{background:var(--brand-white);color:var(--night)}
.primary{background:var(--night);color:var(--brand-white);box-shadow:0 2px 5px #173e3712}
.primary:hover{background:#245b4e}.secondary:hover{background:#edf2ed}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#8e7037}
.lesson-list button.active,.ref-selector button.active{background:#edf4ef;border-color:#618c79}
.learning-note>span,.label-row output,.next-action{background:#edf4ef;color:var(--night)}
.control-panel,.check-card,.quiz-card,.note-form,.note-card{border-color:var(--line);box-shadow:0 3px 14px #173e3707}
.rehearsal-card{background:var(--night)}
.rehearsal-card .eyebrow,.beat-orb>span{color:var(--brand-gold)}
.beat-orb{border-color:#d7b87880;background:#d7b87810}.beat-orb.pulse{box-shadow:0 0 0 12px #d7b87820}
.beat-orb small,.rehearsal-card>p,.practice-options{color:#dbe6df}
.voice-line{color:var(--brand-gold)}.practice-options select{background:#234d41;border-color:#638372}
.step-progress span{background:#47665a}.step-progress span.done{background:var(--brand-gold)}
#quiz-options button.correct{border-color:#618c79;background:#edf4ef}
#quiz-result{background:#edf2ed}
dialog{border-color:#dce5df;box-shadow:0 20px 70px #173e3733;border-top:4px solid var(--brand-gold)}
dialog::backdrop{background:#102b2580}
dialog h2{color:var(--night)}
#note-scene-short{background:#fff;color:#14263b;border-color:#61748e}
.attached-scene{background:#edf4ef;border-color:#92b09e;color:var(--ink)}
#scene-image-download{color:var(--night);border-color:#6e887b}
.quick-ref-selector button.active{background:var(--night);color:var(--brand-white);border-color:var(--night)}
.rotation-buttons button.is-held,.direction-pad button.is-held{background:#d7b87840;border-color:#a58448}

/* Branded opening screen. Existing working screens are kept intact. */
.brand-wordmark{display:flex;flex-direction:column;gap:3px;line-height:1.2}
.brand-wordmark small{font-size:10px;letter-spacing:.025em;font-weight:400;color:#e1e8e3;white-space:nowrap}
body.welcome-active{overflow:hidden}
.welcome-screen{position:fixed;inset:0;z-index:1000;background:#faf8f1;overflow-y:auto;overscroll-behavior:contain;padding:24px 16px calc(24px + env(safe-area-inset-bottom));display:grid;align-items:start;justify-items:center}
.welcome-screen[hidden]{display:none}
.welcome-card{position:relative;isolation:isolate;width:min(100%,480px);overflow:hidden;border-radius:26px;background:#173e37;color:#faf8f1;padding:28px 26px 22px;box-shadow:0 10px 35px #173e3726}
.welcome-watermark{position:absolute;z-index:-1;width:380px;height:380px;right:-180px;top:-40px;opacity:.09;pointer-events:none}
.welcome-identity{text-align:center;margin-bottom:25px}.welcome-identity>img{display:block;margin:0 auto 8px;border-radius:14px}
.welcome-wordmark{font-size:29px;font-weight:800;letter-spacing:.09em}.welcome-ja{font-size:15px;letter-spacing:.2em;margin-top:2px}.welcome-fullname{font-size:11px;letter-spacing:.04em;color:#dce6df;margin-top:6px}
.welcome-card h1{font-size:clamp(23px,6.4vw,32px);letter-spacing:-.025em;line-height:1.6;font-weight:700;white-space:nowrap}
.welcome-tagline{font-size:clamp(13px,3.5vw,16px);margin:12px 0 22px;letter-spacing:.015em}
.welcome-features{display:grid;gap:10px;margin-bottom:20px}.welcome-feature{display:flex;align-items:center;gap:14px;padding:15px 13px;border:1px solid #ffffff12;border-radius:15px;background:#ffffff05}
.welcome-feature>span{font-size:33px;line-height:1;color:#d7b878;width:36px;text-align:center;flex-shrink:0}.welcome-feature>div{border-left:1px solid #d7b87880;padding-left:14px;min-width:0}
.welcome-feature h2{font-size:18px;font-weight:700}.welcome-feature p{font-size:13px;line-height:1.6;margin-top:3px}
.welcome-start{display:block;width:100%;background:#d7b878;color:#173e37;font-size:22px;font-weight:700;border-radius:14px;min-height:56px;padding:12px}.welcome-start:hover{background:#e1c790}
.welcome-logout{display:block;width:fit-content;margin:16px auto 0;color:#faf8f1;font-size:14px;text-underline-offset:5px;padding:5px 12px}
.welcome-card button:focus-visible,.welcome-card a:focus-visible{outline-color:#faf8f1}
@media(max-width:360px){.welcome-card{padding:22px 17px 18px}.welcome-feature{gap:10px;padding:12px 10px}.welcome-feature>div{padding-left:10px}.welcome-feature h2{font-size:16px}.welcome-feature p{font-size:12px}.brand-wordmark small{font-size:9px}}
@media(min-width:700px){.welcome-screen{align-items:center}.welcome-card{padding:30px 32px 24px}}
.principles-link{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.principles-link button{min-height:44px;font-size:1rem;background:#fff;color:#14263b}.principles-link span{font-size:.875rem;color:#526256}#basics-dialog{max-width:720px}.basics-list{padding-left:1.5rem}.basics-list li{padding:.5rem 0 .75rem}.basics-list h3{font-size:1.0625rem;margin:0 0 .4rem}.basics-list p{margin:0;font-size:1rem;line-height:1.8}.basics-check{padding:1rem;border:1px solid #b6c4d2;border-radius:.75rem;line-height:1.8}body.court-focus .principles-link span{color:#dce7f2}
.contact-principles{margin:1.2rem 0;padding:1rem;border:1px solid #61748e;border-radius:12px;background:#fff}.contact-principles h3{font-size:1.15rem;margin:0 0 .65rem}.contact-principles p,.contact-principles dd{font-size:1rem;line-height:1.8}.contact-principles dt{font-weight:700;margin-top:.8rem}.contact-principles dd{margin:.25rem 0}.contact-principles a{font-size:.875rem;text-decoration:underline;color:#245B4E}.hand-sprite.hand-mirrored{transform:scaleX(-1)}
/* Quick time-coded notes stay together while reviewing a video. */
.video-note-workspace{margin:0 0 20px;border:1px solid #b6c8bc;background:#fff;border-radius:14px;overflow:hidden}
.video-note-workspace>summary{padding:14px 18px;font-size:17px;font-weight:700;cursor:pointer;color:#173e37;min-height:48px}
.video-note-workspace[open]>summary{border-bottom:1px solid #e0e8e2}
#video-memo-form{display:grid;gap:10px;padding:16px 18px 8px}
.video-context{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:12px}
.video-context label{display:grid;gap:6px;font-size:14px;min-width:0}
.video-note-workspace input,.video-note-workspace textarea,.video-time-row select{width:100%;min-width:0;font-size:16px;background:#fff;color:#173e37;border:1px solid #8fa697;border-radius:8px;padding:9px;min-height:44px}
.video-time-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.video-time-row>span{font-size:14px;margin-right:4px}
.video-time-row select{width:90px}
.video-memo-actions{display:flex;flex-wrap:wrap;gap:8px}
.video-memo-actions button{min-height:44px;padding:10px 14px}
.video-note-workspace>.storage-note{margin:8px 18px}
.video-memo-list{list-style:none;padding:0;margin:0 18px 16px;max-height:300px;overflow:auto}
.video-memo-list li{display:grid;grid-template-columns:65px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 0;border-top:1px solid #e0e8e2}
.video-memo-list time,.video-time-badge{font-variant-numeric:tabular-nums;font-weight:700;color:#173e37}
.video-memo-list p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6}
.video-memo-list button{padding:6px 10px;min-height:40px;font-size:13px}
.video-memo-list .video-empty{display:block;color:#607269;font-size:14px}
#video-share-text{width:calc(100% - 36px);margin:0 18px 16px}
.edit-video-time{display:grid;gap:8px;margin:12px 0}
.edit-video-time>label{display:flex!important;align-items:center;gap:8px}
.edit-video-time input[type=checkbox]{width:auto;min-height:auto}
.edit-video-time select:disabled{opacity:.5}
@media(max-width:480px){.video-context{grid-template-columns:minmax(0,1fr)}#video-memo-form{padding:12px}.video-memo-actions button{flex:1;font-size:14px;padding:10px 8px}.video-memo-list{margin-inline:12px}.video-memo-list li{grid-template-columns:52px minmax(0,1fr) auto;gap:6px}.video-time-row>span{flex-basis:100%}}
/* Report rehearsal reuses the reviewed artwork and readable controls. */
.report-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin:16px 0}.report-settings label{display:grid;gap:6px;font-size:14px;color:#203e36;min-width:0}.report-settings select{width:100%;min-height:44px;background:#fff;color:#203e36;border:1px solid #91a79b;border-radius:8px;padding:8px;font-size:16px}.report-settings>button{grid-column:1/-1}.report-demonstration{position:relative;max-width:420px;margin:20px auto}.report-art{border-radius:14px;overflow:hidden;background:white;color:#203e36}.report-art.mirror{transform:scaleX(-1)}.report-art.mirror figcaption,.report-art.mirror .report-posture{transform:scaleX(-1)}.report-art .number-hands{padding:8px;min-height:250px;align-items:center}.report-posture{display:grid;place-content:center;min-height:260px;padding:20px;line-height:1.8;margin:0}.report-demonstration .beat-orb{position:absolute;right:8px;bottom:8px;width:64px;height:64px;margin:0;background:#203e36;border:1px solid #d7b878;gap:0}.report-demonstration .beat-orb>span{font-size:26px;line-height:1.1}.report-demonstration .beat-orb small{font-size:10px}.report-step-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px 0}.report-step-buttons label{width:100%;color:#dbe6df;font-size:14px}.rehearsal-card .secondary{background:#fff;color:#203e36;border:1px solid #adc0b5;min-height:44px}.rehearsal-card .secondary:disabled{opacity:.45}.rehearsal-card .secondary:hover{background:#edf2ed}.rehearsal-card .voice-line{min-height:55px;margin:18px 0;font-size:clamp(23px,5vw,34px)}.rehearsal-card>p{margin:16px 0;min-height:52px}.report-art .signal-sprite{aspect-ratio:1}.report-art figcaption{font-size:12px}.report-step-buttons button{padding:9px 14px}
@media(max-width:480px){.report-settings{padding:12px;gap:10px}.report-settings label:nth-child(3),.report-settings label:nth-child(4){grid-column:1/-1}.report-demonstration{max-width:310px}.rehearsal-card .practice-buttons{gap:10px}.rehearsal-card .practice-buttons button{padding:12px 18px;font-size:16px}}
/* Keep every playback state clearly visible on the dark rehearsal card. */
.rehearsal-card #practice-start{background:#d7b878;color:#203e36;border:1px solid #d7b878;font-weight:700;box-shadow:0 2px 5px #0002}
.rehearsal-card #practice-start:hover{background:#e4c990;border-color:#e4c990;color:#203e36}
.rehearsal-card #practice-start:active{background:#c8a765;border-color:#c8a765;color:#203e36}
.rehearsal-card #practice-start:focus-visible{outline:3px solid #fff;outline-offset:3px}
.practice-layout.report-unified{display:block;max-width:900px;margin-inline:auto}
#help-dialog{max-width:760px;padding-top:30px}#help-dialog .help-intro{margin-bottom:18px}.help-section{border:1px solid #cad7cf;border-radius:12px;margin:12px 0;background:#fff}.help-section>summary{cursor:pointer;padding:15px 18px;color:#203e36;font-size:16px;font-weight:700;min-height:48px}.help-section[open]>summary{border-bottom:1px solid #e0e8e2}.help-section ol{padding-left:36px;margin:16px 18px}.help-section li{font-size:15px;line-height:1.8;margin:10px 0;padding-left:3px}.help-section>p{margin:14px 18px;font-size:14px;line-height:1.8;color:#526256}.help-section h3{margin:16px 18px 8px;font-size:16px}.help-section>summary:focus-visible{outline:3px solid #d7b878;outline-offset:2px}

.video-row-actions{display:flex;flex-direction:column;gap:6px}
#page-video-notes{max-width:1100px;margin-inline:auto}
#page-video-notes .video-memo-list{max-height:50dvh}

.video-person{display:grid;gap:8px;min-width:0;margin:0;padding:12px;border:1px solid #c6d4cc;border-radius:10px}
.video-person legend{font-weight:700;padding-inline:6px;color:#173e37}
.video-official-name{display:block;font-size:13px;margin-bottom:4px}

.video-inputs{display:grid;gap:14px;padding:16px 18px}
.video-person fieldset{display:grid;gap:8px;min-width:0;border:0;margin:0;padding:0}
#video-memo-form.video-person{padding:12px}
.video-person .video-time-row{margin-block:4px}
@media(max-width:480px){.video-inputs{padding:12px}}

/* Feature home and account actions; court/practice/notes contents unchanged. */
.home-features{display:grid;gap:16px;max-width:1000px;margin:0 auto 24px}.home-feature{display:flex;align-items:center;gap:18px;width:100%;min-height:112px;padding:22px;text-align:left;background:#fff;border:1px solid #c6d3cc;border-radius:18px;color:#173e37;box-shadow:0 5px 16px #173e3708}.home-feature:hover{background:#f6f8f4;border-color:#8daba0}.home-feature>span:nth-child(2){flex:1;min-width:0}.home-feature strong{display:block;font-size:23px}.home-feature small{display:block;font-size:14px;line-height:1.6;margin-top:5px;color:#62766d}.home-symbol{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;background:#edf2ed;border-radius:12px;font-size:32px}.home-feature>span:last-child{font-size:26px}.settings-logout{display:block;text-align:center;text-decoration:none;margin-top:28px;min-height:48px;padding:12px}.settings-note{font-size:13px;color:#62766d;margin-top:14px}.welcome-start{text-align:center;text-decoration:none}.main-tabs{gap:clamp(6px,3vw,34px)}.main-tabs button{min-width:0;flex-shrink:0}
@media(min-width:760px){.home-features{grid-template-columns:repeat(3,minmax(0,1fr))}.home-feature{flex-wrap:wrap;gap:12px}.home-feature>span:nth-child(2){flex-basis:calc(100% - 75px)}}
@media(max-width:480px){.main-tabs button{font-size:14px}.main-tabs button span{margin-right:3px}.home-feature{min-height:100px;padding:18px}.topbar .brand{gap:5px}.topbar #header-actions{gap:4px}.topbar .demo-tag{display:none}}
@media(orientation:landscape) and (max-height:600px){.home-features{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-feature{min-height:100px;flex-wrap:wrap;padding:14px;gap:10px}.home-feature strong{font-size:20px}.home-feature small{font-size:12px}.home-feature>span:nth-child(2){flex-basis:calc(100% - 65px)}.home-symbol{width:40px;height:40px;font-size:26px}}

#settings-dialog{width:min(94vw,660px);max-height:calc(100dvh - 32px);overflow:auto;padding:28px}#settings-dialog h2{padding-right:44px}.settings-section{padding:20px 0;border-bottom:1px solid #dce5df}.settings-section:last-child{border-bottom:0}.settings-section h3{font-size:17px;margin-bottom:12px;color:#173e37}.settings-section p{font-size:14px;line-height:1.7}.settings-fields,.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-actions{margin-top:14px}#profile-form{display:grid;gap:16px;margin-top:16px}#profile-form label{display:grid;gap:6px;font-size:14px;color:#173e37}#profile-form input:not([type=checkbox]),#profile-form select{min-width:0;width:100%;min-height:44px;background:#fff;color:#173e37;border:1px solid #96aba0;border-radius:8px;padding:9px;font-size:16px}#profile-form fieldset{margin:0;min-width:0;border:1px solid #c6d3cc;border-radius:10px;padding:14px}#profile-form legend{font-size:14px;padding:0 5px}.settings-categories{display:grid;grid-template-columns:1fr 1fr;gap:10px}#profile-form .settings-categories label{display:flex;align-items:center;gap:9px;min-height:44px}.settings-categories input{width:20px;height:20px;accent-color:#173e37}.settings-save{min-height:46px}.settings-section button,.settings-logout{min-height:44px}.settings-section #settings-update{margin-top:12px}.settings-section .settings-logout{margin-top:14px}#support-text{display:block;width:100%;margin:18px 0;min-height:220px;font-size:16px}#support-dialog{max-height:calc(100dvh - 32px);overflow:auto}@media(max-width:360px){#settings-dialog{padding:20px 16px}.settings-fields,.settings-actions,.settings-categories{grid-template-columns:1fr}}

.plan-coming-soon{color:#8f7336;font-size:24px;font-weight:700;margin:24px 0 14px}#settings-plan{margin-top:14px;display:block;width:100%}

/* Settings: open each item on demand. */
#settings-dialog .settings-section{padding:0;border:1px solid #cad7cf;border-radius:12px;margin:12px 0;background:#fff;overflow:hidden}
.settings-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:52px;padding:15px 16px;font-size:16px;font-weight:700;color:#173e37}
.settings-section>summary::-webkit-details-marker{display:none}
.settings-section>summary::after{content:"⌄";font-size:22px;line-height:1;flex-shrink:0}
.settings-section[open]>summary{border-bottom:1px solid #e0e8e2;background:#f3f6f2}
.settings-section[open]>summary::after{transform:rotate(180deg)}
.settings-section>summary:focus-visible{outline:3px solid #d7b878;outline-offset:-3px}
.settings-section-content{padding:4px 16px 18px}

.third-party-license{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:12px;line-height:1.65;color:#243e36;margin:16px 0;background:#f4f6f3;border-radius:8px;padding:14px}

.legal-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin:18px 0;font-size:13px;line-height:1.8}.legal-links a{color:#173e37;text-decoration:underline;text-underline-offset:3px}.welcome-card .legal-links a{color:#faf8f1}.welcome-card .settings-note{color:#dce6df}
