/* Rehearse Here: the classroom page's styles (also used by the TV view, public/tv.html). */
/* VOICE: a calm, practical rehearsal tool; the class feels alive, the console stays quiet so you can keep talking
   IDEA: the classroom seen from the lecturer's spot: chalkboard with live captions on top, desks of real-feeling students below
   PICTURE: the seating chart itself, each desk showing what that student is doing, thinking and grasping, hands rising as you speak
   COLOUR and TYPE: slate chalkboard in a wood frame, birch desks, chalk-yellow for raised hands; Rehearse Cue (the brand face, one weight: 500) on the board, Atkinson Hyperlegible elsewhere
   LAYOUT: three numbered prep steps on top (slides, class setup, script) that open one drawer; a compact audience strip; board left and the lecturer console right; all stacked on phones */
:root{color-scheme:light dark;--bg:light-dark(#ffffff,#111514);--ink:light-dark(#1a1f1d,#e8ece9);--mut:light-dark(#59605d,#9ba49f);--line:light-dark(#e1e2dc,#2b322f);--panel:light-dark(#f4f5f1,#181d1b);--desk:light-dark(#f4e6cb,#27231d);--desk2:light-dark(#e2c99c,#3b3329);--board:#21332e;--chalk:#eef1e6;--hand:#f2c230;--att:light-dark(#2a7862,#4fb394);--und:light-dark(#3a5fb5,#7d9cf0);--btn:light-dark(#21332e,#f2c230);--btnink:light-dark(#ffffff,#16130a);--rec:#c8372d;--wood:light-dark(#b98a55,#7a5b38);--wood2:light-dark(#9c7142,#5c442b);--chair:light-dark(#5d6e69,#3c4845);--chairE:light-dark(#7d8d88,#6a7a75)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
@font-face{font-family:"Rehearse Cue";src:url(/fonts/RehearseCue-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 'Atkinson Hyperlegible',system-ui,sans-serif;overflow-x:clip}
.mut{color:var(--mut)}
.top{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;padding:12px max(4vw,16px);border-bottom:1px solid var(--line)}
.brand{margin:0;line-height:0}.brand img{height:34px;width:auto;display:block}@media (max-width:600px){.brand img{height:28px}}.tag{font-size:13px}
.row0,.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.row{margin-top:10px}
.conn{margin:0;padding:8px max(4vw,16px);background:var(--panel);font-size:14px;color:var(--mut)}.conn[hidden],.conn:empty{display:none}
.wrap{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-areas:"prep prep" "aud aud" "room console";gap:16px 24px;padding:16px max(4vw,16px) 48px;max-width:1440px;margin:0 auto}
.prep{grid-area:prep}.aud{grid-area:aud}.room{grid-area:room}.console{grid-area:console}
.board{position:relative;background:var(--board);color:var(--chalk);border:10px solid light-dark(#8b6a43,#4d3c29);border-radius:6px;padding:20px 24px;box-shadow:inset 0 0 50px rgba(0,0,0,.4),0 3px 0 light-dark(#6e5233,#2e2418)}
.board h1{font:500 clamp(28px,4vw,44px)/1.05 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;margin:0 0 8px;padding-right:72px;text-wrap:balance}
.board .meta{font:500 17px/1.35 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;margin:0;opacity:.92}
.board .coach{font:500 17px/1.35 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;margin:10px 0 0;color:#f3e7a2}.board .coach:empty{display:none}
.board .live{font:500 19px/1.35 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;margin:12px 0 0;padding-top:10px;border-top:1px dashed #eef1e655;min-height:1.4em}.board .live:empty{display:none}
.screen{position:relative;margin:4px auto 14px;background:#0d1412;border-radius:4px;overflow:hidden;width:min(100%,calc(var(--sh,72vh) * var(--ar,1.7778)));aspect-ratio:16/9;max-height:var(--sh,72vh);cursor:zoom-in}.screen[hidden]{display:none}
.screen img{display:block;width:100%;height:100%;object-fit:contain}
.lb{position:fixed;inset:0;z-index:50;background:rgba(8,12,11,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px}.lb[hidden]{display:none}
.lb img{max-width:100%;max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);object-fit:contain;background:#fff;box-shadow:0 8px 40px rgba(0,0,0,.5)}
.lbbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;color:#eef1e6;font-size:15px}.lbbar .btn{background:#ffffff14;color:#eef1e6;border-color:#ffffff33}
.ndq{margin:8px 0 0;font-size:16px}
.sctl{display:flex;align-items:center;gap:10px;justify-content:center;margin:-6px 0 10px;font:500 16px/1 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none}.sctl[hidden]{display:none}
.sctl button{min-width:44px;min-height:36px;border-radius:8px;border:1px solid #eef1e655;background:transparent;color:var(--chalk);font:700 18px 'Atkinson Hyperlegible',sans-serif;cursor:pointer}
.board.drag{outline:3px dashed var(--hand);outline-offset:4px}
.slides{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px;font-size:14px}.slides input{display:none}
.pill{position:absolute;top:14px;right:14px;font:700 13px 'Atkinson Hyperlegible',sans-serif;padding:3px 10px;border-radius:12px;background:#ffffff1f;color:var(--chalk)}
.pill.on{background:var(--rec);color:#fff}.pill.on::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#fff;margin-right:6px;animation:blink 1.2s infinite}
@keyframes blink{50%{opacity:.25}}
.arm.pop{animation:raise .5s ease-out;transform-origin:84px 98px}
@keyframes raise{from{transform:rotate(70deg)}to{transform:none}}
.speak .mo{animation:talk .17s infinite alternate;transform-origin:60px 63px}
@keyframes talk{from{transform:scaleY(.3)}to{transform:scaleY(1.15)}}
@media(prefers-reduced-motion:reduce){.arm.pop,.speak .mo,.pill.on::before{animation:none}.bars b{transition:none}}
.who{display:flex;gap:10px;align-items:center}.who>div:nth-child(2){flex:1}
.av{width:46px;height:46px;border-radius:50%;overflow:hidden;background:var(--desk);flex:none;display:block}.av.sm{width:36px;height:36px}.av svg{display:block;width:100%;height:100%}
.who b{display:block;line-height:1.2}.who div span{font-size:13px;color:var(--mut)}
.num{font-style:normal;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.seg{background:var(--bg);border-radius:10px;padding:10px;margin-bottom:10px}.seg .k{font-size:13px;color:var(--mut);margin-bottom:6px}.seg textarea{min-height:96px}.seg.now{outline:3px solid var(--hand)}
.autoon #askclass,.autoon #tips,.autoon #typebox{display:none}
.capt{display:flex;gap:8px;align-items:center;font-size:14px;margin-top:10px;cursor:pointer}.capt input{width:20px;height:20px;margin:0}
.console{background:var(--panel);border-radius:10px;align-self:start}
@media(min-width:901px){.console{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}}
@media(max-width:900px){.wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:"prep" "aud" "room" "console"}}
.tabs{display:flex;border-bottom:1px solid var(--line);overflow-x:auto;position:sticky;top:0;background:var(--panel);z-index:1}
.tabs button{flex:1 0 auto;background:none;border:0;border-bottom:3px solid transparent;padding:12px;min-height:48px;font:700 15px 'Atkinson Hyperlegible',sans-serif;color:var(--mut);cursor:pointer}
.tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--hand)}
.n{background:var(--hand);color:#16130a;border-radius:10px;padding:0 7px;font-size:13px;margin-left:5px}.n[hidden]{display:none}
.status{margin:0;padding:10px 18px 0;font-size:14px;color:var(--mut);min-height:1.6em}
.panel{padding:12px 18px 20px}.panel[hidden]{display:none}
h3{font-size:16px;margin:20px 0 8px}
label.f{display:block;font-weight:700;font-size:14px;margin:14px 0 6px}label.f:first-child{margin-top:4px}
textarea,input,select{width:100%;font:16px 'Atkinson Hyperlegible',sans-serif;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
input[type=range]{padding:0;border:0;background:none;accent-color:var(--att);min-height:32px}
.pc .btn{margin-left:auto;flex:none}.tagy{font-size:12px;background:var(--hand);color:#16130a;border-radius:8px;padding:0 6px;margin-left:6px}
textarea{min-height:110px;resize:vertical;line-height:1.45}
:focus-visible{outline:3px solid var(--hand);outline-offset:2px}
.btn{min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:700 15px 'Atkinson Hyperlegible',sans-serif;cursor:pointer}
.btn.pri{background:var(--btn);color:var(--btnink);border-color:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.sm{min-height:36px;padding:0 10px;font-size:14px}
.big{width:100%;min-height:68px;font-size:20px;display:flex;align-items:center;justify-content:center;gap:12px}
.big.rec{background:var(--rec);color:#fff}
kbd{font:700 12px 'Atkinson Hyperlegible',sans-serif;border:1px solid currentColor;border-radius:5px;padding:1px 6px;opacity:.8}
.keys{font-size:13px;color:var(--mut);margin:10px 0 0;line-height:1.7}
.floor{background:var(--bg);border:2px solid var(--hand);border-radius:12px;padding:14px;margin-bottom:12px}.floor[hidden]{display:none}
.floor .qt{font-size:18px;line-height:1.4;margin:10px 0 0}.floor .st{font-size:14px;color:var(--mut);margin:8px 0 0}
.cap{font-size:15px;line-height:1.45;margin:8px 0 0;padding:8px 10px;background:var(--panel);border-radius:8px}.cap:empty{display:none}
.ans{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:8px}.ans li{font-size:15px}
.ask select{width:auto;flex:1 1 140px}.inline{font-size:14px;font-weight:700}
details.type{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}details.type summary{cursor:pointer;font-weight:700;font-size:15px;min-height:32px}
.log{list-style:none;padding:0;margin:0;display:grid;gap:10px;max-height:340px;overflow:auto}
.log li{font-size:14px;line-height:1.45;padding:8px 10px;background:var(--bg);border-radius:8px}
.q{background:var(--bg);border-radius:10px;padding:12px;margin-bottom:12px}.q .qt{margin:10px 0 0}
.empty{color:var(--mut);font-size:15px}
.two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px}
fieldset{border:0;padding:0;margin:16px 0 0}legend{font-weight:700;font-size:14px;margin-bottom:6px}
.pc{display:flex;gap:10px;align-items:flex-start;padding:8px 0;font-size:14px;line-height:1.4;cursor:pointer}
.pc input{width:22px;height:22px;flex:none;margin:4px 0 0}
.gradebox{display:flex;gap:16px;align-items:center;margin-top:6px}
.grade{font:500 52px/1 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;background:var(--board);color:var(--chalk);border-radius:8px;padding:12px 18px 6px;flex:none}
.verdict{margin:0;font-size:17px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;margin-top:14px}
.stats div{background:var(--bg);border-radius:8px;padding:8px 10px}.stats b{display:block;font-size:22px;white-space:nowrap}.stats span{font-size:13px;color:var(--mut)}
.rb{margin-bottom:12px}.rbh{display:flex;justify-content:space-between}.rbh em{font-style:normal;font-variant-numeric:tabular-nums}
.rb i{display:block;height:8px;background:light-dark(#00000016,#ffffff1c);border-radius:4px;overflow:hidden;margin:4px 0}.rb i b{display:block;height:100%;background:var(--att)}
.rb p{margin:0;font-size:14px;color:var(--mut)}
table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;font-size:13px;color:var(--mut);padding:6px 6px 6px 0;border-bottom:1px solid var(--line)}
td{padding:8px 6px 8px 0;border-bottom:1px solid var(--line);vertical-align:top}
ul{padding-left:20px;margin:0}li{margin-bottom:6px}
.dock{display:none}
@media(max-width:900px){.dock{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(0,0,0,.12)}.dock[hidden]{display:none}.dock .btn{min-height:52px}.dock #dockbtn{flex:1;font-size:17px}.dock #dockbtn.rec{background:var(--rec);color:#fff}body.hasdock{padding-bottom:calc(84px + env(safe-area-inset-bottom))}}
.touch kbd{display:none}.touch .seat{-webkit-tap-highlight-color:transparent}
@media(max-width:600px){table{font-size:13px}.stack thead{display:none}.stack tr{display:grid;padding-block:10px;border-bottom:1px solid var(--line)}.stack td{display:flow-root;border:0;padding:3px 0;padding-inline-start:8em;text-align:start}.stack td::before{content:attr(data-l);float:inline-start;width:7.5em;margin-inline-start:-8em;white-space:normal;color:var(--mut)}.stack td:empty{display:none}.two{grid-template-columns:minmax(0,1fr)}.board{padding:16px}}

/* Type: Rehearse Cue (brand face, weight 500 only) for the board and grades; Atkinson Hyperlegible for everything else. The logo is an SVG. */

.board h1{font-weight:500;letter-spacing:-.005em}
.board .meta,.board .coach{font-size:18px}
.board .live{font-size:20px}

/* Prep steps: slides, class setup, script. A real sequence, so they are numbered. One drawer opens under them. */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.step{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 14px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:inherit;cursor:pointer}
.step:hover{border-color:light-dark(#c3c6bd,#3d4642)}
.sn{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:500 17px/1 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;background:var(--bg);border:1px solid var(--line)}
.step.done .sn{background:var(--board);color:var(--chalk);border-color:transparent}
.stx{display:grid;flex:1}.stx b{font-size:15px;line-height:1.25}
.ss{font-size:13px;line-height:1.35;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.step::after{content:'';flex:none;width:8px;height:8px;margin:0 4px 4px 0;border-right:2px solid var(--mut);border-bottom:2px solid var(--mut);transform:rotate(45deg);transition:transform .2s}
.step[aria-expanded=true]{background:var(--bg);border-color:var(--hand);box-shadow:inset 0 -3px 0 var(--hand)}
.step[aria-expanded=true]::after{transform:rotate(225deg);margin:4px 4px 0 0}
.drawer{margin-top:8px;background:var(--panel);border-radius:12px}.drawer[hidden]{display:none}
.dhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px 0}
.dhead h2{font-size:17px;margin:0}
.drawer .panel{padding:4px 20px 20px}
.drawer .slides{margin:12px 0 0;font-size:15px}
.cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 36px}
.cols.sc{grid-template-columns:minmax(0,340px) minmax(0,1fr)}
.cols fieldset:first-child{margin-top:12px}
.bempty{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 14px;font:500 17px/1.35 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;opacity:.92}.bempty[hidden]{display:none}
.bempty .btn{display:inline-flex;align-items:center;background:#ffffff14;color:var(--chalk);border-color:#eef1e655;font-family:'Atkinson Hyperlegible',sans-serif}
.sound{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:12px}.sound .capt{margin:0}
#vstat{margin-top:6px}#natvoices .pc{align-items:center;padding:4px 0}#natvoices .pc input{margin:0}

/* Audience: one compact card per student, figure beside the words. */
.aud{background:light-dark(#efe3cc,#1c1a16);border-radius:12px;padding:10px 12px 12px}
.audh{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px;margin:0 4px 8px}
.audh h2{font-size:15px;margin:0}
.legend{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:13px;color:var(--mut)}.legend i{display:inline-block;width:16px;height:4px;border-radius:2px;vertical-align:middle;margin-right:6px}
.audh .tip{font-size:13px;margin-left:auto}
.seats{--tile:186px;display:grid;grid-template-columns:repeat(var(--cols,auto-fill),minmax(min(var(--tile),100%),1fr));gap:6px}
.seat{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);gap:0 8px;align-items:start;padding:6px 8px 7px 4px;border-radius:10px;background:light-dark(#fffdf780,#ffffff08);color:var(--ink);cursor:pointer}
.seat.up{background:light-dark(#f2c23040,#f2c2302a);box-shadow:inset 0 0 0 2px var(--hand)}
.seat.speak{background:light-dark(#c8372d1c,#c8372d2c)}
.fig{display:block;width:54px;height:auto}
.badge{position:absolute;top:2px;left:2px;background:var(--hand);color:#16130a;font-weight:700;font-size:12px;border-radius:10px;padding:0 7px;z-index:1}
.nm b{display:block;font-size:14px;line-height:1.25}
.nm span{display:block;font-size:12px;line-height:1.3;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vis,.thought{font-size:13px;line-height:1.3;margin:3px 0 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.thought{color:var(--mut);font-style:italic}body:not(.show-thoughts) .thought{display:none}
.seat.open .vis,.seat.speak .vis,.seat.open .thought{display:block}
.seat.open .nm span{white-space:normal}
.bars{display:grid;gap:2px;margin-top:6px}.bars i{display:block;height:4px;background:light-dark(#00000014,#ffffff1c);border-radius:2px;overflow:hidden}.bars b{display:block;height:100%;transition:width .7s}

@media(max-width:900px){.tag{display:none}}
@media(max-width:700px){
 .top{padding:10px 12px;gap:8px 6px}.top .row0{display:contents}.top>div:first-child{flex:1 1 auto}.top .btn{min-height:38px;padding:0 10px;font-size:14px;white-space:nowrap}.top .lg{display:none}
 #endclass{order:1}#aichip{order:2;flex:1 1 130px;justify-content:flex-start;overflow:hidden}#acct{order:3}#planchip{order:3}#newclass{order:4}.aichip .m{max-width:none;flex:1 1 0;min-width:0;text-align:left}
 .ss{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .wrap{padding:10px 10px 40px;gap:12px}
 .steps{gap:6px}.step{gap:8px;min-height:54px;padding:6px 8px}.sn,.step::after{display:none}.stx b{font-size:14px}.ss{font-size:12px}
 .dhead{padding:10px 14px 0}.drawer .panel{padding:4px 14px 16px}.cols,.cols.sc{grid-template-columns:minmax(0,1fr)}
 .aud{padding:8px 6px 10px}.audh .tip{display:none}
 .seats{--tile:64px;gap:4px}
 .seat{grid-template-columns:minmax(0,1fr);text-align:center;padding:4px 2px 6px}
 .fig{width:48px;margin:0 auto}
 .nm b{font-size:12px}.nm span,.seat:not(.open) .vis,.seat:not(.open) .thought{display:none}
 .bars{width:46px;margin:5px auto 0}
 .seat.open{grid-column:1/-1;grid-template-columns:54px minmax(0,1fr);text-align:left;padding:6px 10px 8px 4px}
 .seat.open .fig{width:54px;margin:0}.seat.open .nm b{font-size:14px}
 .seat.open .nm span,.seat.open .vis{display:block}body.show-thoughts .seat.open .thought{display:block}
 .seat.open .bars{width:auto;margin:6px 0 0}
 .board h1{padding-right:64px}
}
@media(prefers-reduced-motion:reduce){.step::after{transition:none}}

/* In class: the setup steps and console step aside. The board and the audience share the page, questions
   appear on the board, and a bar at the bottom holds the talk button, the status and the transcript. */
.stage{position:relative}
.bfloat:empty{display:none}
.bfloat .floor{margin:0 0 12px;box-shadow:0 10px 30px rgba(0,0,0,.35);color:var(--ink)}
.board #autobar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;background:none;border:0;border-radius:0;padding:0;margin:0 0 12px;color:var(--chalk)}
.board #autobar .st{color:var(--chalk);opacity:.85;font-size:15px}.board #autobar .qt{color:#f3e7a2;flex-basis:100%;order:3}
.board #autobar .row{margin:0;gap:6px}.board #autobar .btn{min-height:36px;padding:0 10px;font-size:14px;background:#ffffff14;color:var(--chalk);border-color:#eef1e655}
.board #autobar kbd{opacity:.7}
body.inclass .prep{display:none}
.dstat,#dside{display:none}
@media(min-width:901px){
 body.inclass .wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:"aud" "room"}
 body.inclass .console{display:none}
 body.inclass .dock:not([hidden]){display:flex;align-items:center;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px max(4vw,16px);background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(0,0,0,.08)}
 body.inclass.hasdock{padding-bottom:76px}
 body.inclass .dstat{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1;margin:0;font-size:15px;line-height:1.35;color:var(--mut)}
 body.inclass #dside{display:block}
 body.inclass .dock .btn{min-height:48px}
 body.inclass #dockbtn{min-width:260px;font-size:17px}#dockbtn.rec{background:var(--rec);color:#fff}
 body.inclass.autoon #dock2{display:none}
 body.inclass .screen{--sh:max(240px,calc(100vh - 430px))}
 body.inclass .bfloat{position:absolute;left:16px;right:16px;bottom:0;max-height:58%;overflow:auto;border-radius:12px}
 body.inclass .board:not(:has(.screen:not([hidden]))) .bfloat{position:static;max-height:none}
 body.inclass.side .console{display:block;position:fixed;top:0;right:0;bottom:76px;width:min(420px,92vw);max-height:none;z-index:30;border-radius:0;box-shadow:-10px 0 30px rgba(0,0,0,.18);overflow:auto}
 #dside[aria-pressed=true]{background:var(--bg);border-color:var(--hand)}
}
@media(min-width:1100px){
 body.inclass .wrap{grid-template-columns:minmax(0,1fr) clamp(340px,33vw,600px);grid-template-areas:"room aud";align-items:start}
 body.inclass .rcol{grid-area:aud;display:flex;flex-direction:column;gap:12px;position:sticky;top:12px;max-height:calc(100vh - 190px)}
 body.inclass .aud{flex:0 1 auto;min-height:160px;overflow:auto;overscroll-behavior:contain}
 body.inclass .rcol .prompt{flex:0 0 auto;max-height:46%;display:flex;flex-direction:column;margin:0;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 16px 14px}
 body.inclass .rcol .prompt[hidden]{display:none}
 body.inclass .rcol .prompt .ph span{opacity:1;color:var(--mut)}
 body.inclass .rcol .prompt .ph .btn{background:var(--bg);color:var(--ink);border-color:var(--line)}
 body.inclass .rcol .pt{max-height:none;overflow:auto;font-size:18px;flex:1 1 auto;min-height:0}
 body.inclass .seats{--tile:200px;gap:8px}
 body.inclass .wrap{max-width:1960px}
 body.inclass .seat{--fw:clamp(76px,5.2vw,100px);grid-template-columns:var(--fw) minmax(0,1fr);gap:0 10px;padding:8px 10px 10px 6px}
 body.inclass .fig{width:var(--fw)}
 body.inclass .nm b{font-size:15px}
 body.inclass .nm span{white-space:normal}
 body.inclass .vis,body.inclass .thought{display:block;font-size:13.5px;line-height:1.35}
 body.inclass .seat{grid-template-areas:"fig nm" "fig bars" "vis vis" "th th";grid-template-rows:auto auto auto 1fr;align-content:start}
 body.inclass .seat .sx{display:contents}
 body.inclass .seat .fig{grid-area:fig;align-self:start}body.inclass .seat .nm{grid-area:nm;align-self:end}
 body.inclass .seat .bars{grid-area:bars;align-self:start;margin-top:6px}
 body.inclass .seat .vis{grid-area:vis;margin-top:6px}body.inclass .seat .thought{grid-area:th}
 body.inclass:not(.show-thoughts) .thought{display:none}
 body.inclass .screen{--sh:calc(100vh - 350px)}
}
@media(max-width:900px){body.inclass .bfloat .floor{box-shadow:none}}

/* In class on mid-size screens and phones: tiny audience tiles in one strip so the slide stays in view. */
@media(max-width:900px){
 body.inclass .wrap{grid-template-areas:"aud" "room" "console"}
 body.inclass .seats{--tile:40px;gap:3px}
 body.inclass .seat:not(.open){padding:3px 1px 5px}
 body.inclass .seat:not(.open) .fig{width:36px}
 body.inclass .seat:not(.open) .nm b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.inclass .seat:not(.open) .bars{width:32px;margin-top:3px}
 body.inclass .audh{margin-bottom:6px}
 body.inclass .board #autobar .btn{min-height:32px;padding:0 9px;font-size:13px}
 body.inclass .board #autobar #ahand{display:none}
}
@media(min-width:901px) and (max-width:1099px){
 body.inclass .seats{--tile:76px;gap:4px}
 body.inclass .seat:not(.open){grid-template-columns:minmax(0,1fr);text-align:center;padding:4px 2px 6px}
 body.inclass .seat:not(.open) .fig{width:46px;margin:0 auto}
 body.inclass .seat:not(.open) .nm b{font-size:12px}
 body.inclass .seat:not(.open) .nm span,body.inclass .seat:not(.open) .vis,body.inclass .seat:not(.open) .thought{display:none}
 body.inclass .seat:not(.open) .bars{width:46px;margin:5px auto 0}
 body.inclass .seat.open{grid-column:1/-1}
 body.inclass .audh .tip{display:none}
 body.inclass .screen{--sh:max(240px,calc(100vh - 520px))}
}
@media(min-width:901px){
 body.inclass.side .console{top:var(--toph,0px);height:calc(100vh - var(--toph,0px) - 76px)}
 body.inclass.side #p-teach>#primary,body.inclass.side #p-teach>#primary+.row,body.inclass.side .console>.status{display:none}
}

.rcol{display:contents}
/* Three ways to rehearse, under the big button. */
.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.modes[hidden]{display:none}
.btn.mode{display:grid;gap:3px;align-content:start;text-align:left;min-height:0;padding:10px 12px;line-height:1.3}
.btn.mode b{font-size:15px}.btn.mode span{font-weight:400;font-size:13px;color:var(--mut)}
.sttopts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:10px}.sttopts .btn{display:grid;gap:3px;align-content:start;text-align:left;padding:10px 12px;line-height:1.3;min-height:0}.sttopts .btn b{font-size:15px}.sttopts .btn span{font-weight:400;font-size:13px;opacity:.85}
.stt{display:inline-flex;gap:6px;align-items:center}.stt[hidden]{display:none}.stt select{width:auto}
@media(max-width:400px){.modes{grid-template-columns:minmax(0,1fr)}}
/* Practice script on the board: one part at a time, following the slides. */
.prompt{margin:0 0 12px;padding:10px 14px 12px;border:1px dashed #eef1e666;border-radius:8px;background:#0b1311a6;color:var(--chalk)}.prompt[hidden]{display:none}
.ph{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px}.ph span{flex:1 1 0;min-width:0;opacity:.85}
.ph .btn{min-height:34px;padding:0 10px;font-size:14px;background:#ffffff14;color:var(--chalk);border-color:#eef1e655}
.pt{margin:8px 0 0;font-size:19px;line-height:1.5;max-height:9em;overflow:auto;white-space:pre-wrap}
body.practice .screen{--sh:56vh}
@media(min-width:901px){body.inclass.practice .screen{--sh:max(220px,calc(100vh - 600px))}}
@media(min-width:1100px){body.inclass.practice .screen{--sh:max(240px,calc(100vh - 350px))}}
@media(max-width:700px){.pt{font-size:17px;max-height:7.5em}}

/* First view: an empty room. The board waits for slides and the seats wait for people. */
.bblank{display:none}
body.blank #btopic,body.blank #bempty,body.blank .stage,body.blank #sctl,body.blank #bmeta,body.blank #bavg,body.blank #bcoach,body.blank #live,body.blank #prompt,body.blank #pill{display:none}
body.blank .board{min-height:min(60vh,560px);display:flex;flex-direction:column;justify-content:center}
body.blank .bblank{display:block;padding:24px 8px;text-align:center}
.bbt{font:500 clamp(30px,3.6vw,46px)/1.1 "Rehearse Cue",system-ui,sans-serif;font-synthesis:none;margin:0 0 12px}
.bbs{font-size:17px;line-height:1.5;max-width:44ch;margin:0 auto 22px;opacity:.86}
.bblank .row{justify-content:center;gap:10px}
.bblank .btn{min-height:52px;padding:0 22px;font-size:17px;display:inline-flex;align-items:center}
.bblank .btn.pri{background:var(--hand);color:#16130a}
.bblank .btn.ghost{background:transparent;color:var(--chalk);border-color:#eef1e666}
.bbh{font-size:14px;margin:14px 0 0;opacity:.66}
.resume{max-width:540px;margin:0 auto 30px;text-align:left;background:var(--bg);color:var(--ink);border-radius:12px;padding:16px 18px 18px;box-shadow:0 12px 34px rgba(0,0,0,.32)}.resume[hidden]{display:none}
.resume .rk{margin:0;font-size:14px;color:var(--mut)}.resume .rt{margin:4px 0 2px;font-size:19px;font-weight:700;line-height:1.3}.resume .rd{margin:0;font-size:14px;color:var(--mut)}
.resume .row{justify-content:flex-start;margin-top:14px}.resume .btn{min-height:44px;font-size:15px;padding:0 16px}.resume .btn.pri{background:var(--btn);color:var(--btnink)}
.seat.empty{cursor:default;background:light-dark(#fffdf759,#ffffff06)}
.seat.empty .fig{opacity:.9}
.sk{display:block;height:8px;border-radius:4px;background:light-dark(#00000012,#ffffff14);margin:7px 0 0}.sk.a{width:62%;height:10px;margin-top:4px}.sk.b{width:42%}
@media(max-width:700px){.seat.empty .sk{margin:6px auto 0}.seat.empty .sk.a{width:70%}.seat.empty .sk.b{display:none}}
.arrive .seat{animation:sit .5s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i,0) * 70ms)}
@keyframes sit{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.arrive .seat{animation:none}}
@media(max-width:700px){body.blank .board{min-height:auto}.bblank .btn{min-height:48px;padding:0 16px;font-size:16px}.bbs{font-size:16px}}

.row[hidden]{display:none}
body.blank #endclass,body.blank #newclass{display:none}
@media(max-width:900px){
 body.blank .seats{--tile:40px;gap:3px}
 body.blank .seat.empty{padding:3px 1px 5px}
 body.blank .seat.empty .fig{width:36px}
 body.blank .seat.empty .sk.a{width:28px;height:6px}
}

/* Testing notice: rehearsals are shared with the team unless turned off. */
.sharenote{position:fixed;left:16px;bottom:16px;z-index:40;max-width:min(440px,calc(100vw - 32px));background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:14px 16px;box-shadow:0 12px 34px rgba(0,0,0,.25)}
.sharenote p{margin:0 0 10px;font-size:14px;line-height:1.45}.sharenote .row{margin:0;gap:8px}.sharenote .btn{min-height:40px;font-size:14px;padding:0 14px}
body.hasdock .sharenote{bottom:92px}

/* Show on TV */
.tvbox{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0;background:var(--panel)}.tvbox p{margin:0 0 8px}.tvbox .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.tvbox input{font:700 18px/1.2 'Atkinson Hyperlegible',sans-serif;letter-spacing:.12em;text-transform:uppercase;width:11ch;padding:6px 8px}.tvbox #tvstat:empty{display:none}#tvbtn.on{border-color:var(--rec);color:var(--rec)}
.tvq{font-weight:700;margin:0 0 8px}.tvopts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.tvopts .btn{display:grid;gap:3px;align-content:start;text-align:left;padding:10px 12px;line-height:1.3;min-height:0}.tvopts .btn>b{font-size:15px}.tvopts .btn span{font-weight:400;font-size:13px;opacity:.85}.tvopts .btn[hidden]{display:none}#tvonbtns{margin-top:6px}
/* TV layout on this screen, for mirroring */
#tvov{position:fixed;inset:0;z-index:9999;background:#000}#tvov iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.tvovbar{position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:8px;align-items:center;background:#000c;padding:8px;border-radius:14px;transition:opacity .25s;max-width:94vw}
.tvovbar.hide{opacity:0;pointer-events:none}.tvovbar button{font:600 16px/1 system-ui,sans-serif;color:#fff;background:#ffffff26;border:0;border-radius:10px;padding:12px 16px;min-width:48px;cursor:pointer}.tvovbar button.pri{background:#c0392b}
.tvovhint{display:none;color:#fff;font-size:13px;width:100%;text-align:center}@media (orientation:portrait){.tvovhint{display:block}}body.tvmirroring{overflow:hidden}
