#classroom-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 35%,#1c2b1880,transparent 65%),#090d0b;color:#f0f5e9;overflow:auto}
#classroom-dialog::backdrop{background:#090d0b}
#classroom-dialog .classroom-shell{min-height:100%;display:flex;flex-direction:column;gap:18px;padding:24px max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.classroom-top{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
#classroom-dialog h2{font-size:18px;letter-spacing:-.5px;margin:0;line-height:1.3}
.classroom-kicker{display:block;font-size:10px;font-weight:750;letter-spacing:2px;color:#c4ff4b;margin-top:5px}
.classroom-top-controls{display:flex;gap:8px}
#classroom-dialog button{font-size:13px;line-height:1.3;padding:11px 16px;min-height:40px}
.classroom-stage{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.classroom-level{font-size:clamp(20px,3vw,36px);font-weight:750;letter-spacing:-.7px}
.classroom-status{border:1px solid #40513a;border-radius:30px;padding:6px 12px;font-size:12px;color:#b8c7ac}
.classroom-display{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:clamp(30px,8vw,120px);padding:12px 0;transition:filter .18s}
.classroom-lap-block{text-align:center;min-width:0}
.classroom-label{font-size:clamp(11px,1.3vw,16px);letter-spacing:2.5px;font-weight:750;color:#a2b397;text-transform:uppercase}
.classroom-lap-value{font-size:clamp(130px,22vw,280px);font-weight:900;line-height:.95;letter-spacing:-.07em;margin:10px 0 16px;color:#c4ff4b;font-variant-numeric:tabular-nums}
#classroom-dialog[data-phase=intro] .classroom-lap-value{font-size:clamp(56px,8vw,110px);letter-spacing:-.055em;max-width:440px;line-height:1.03}
.classroom-lap-sub{font-size:14px;line-height:1.4;color:#b2c1a8}
.classroom-ring{width:clamp(190px,27vw,350px);aspect-ratio:1;position:relative;flex-shrink:0;display:grid;place-items:center}
.classroom-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.classroom-ring circle{fill:none;stroke-width:6}.classroom-ring-track{stroke:#293626}.classroom-ring-progress{stroke:#c4ff4b;stroke-linecap:round;stroke-dasharray:314.159265;stroke-dashoffset:314.159265}
.classroom-countdown{text-align:center;z-index:1;padding:15px;max-width:85%}
.classroom-seconds{font-size:clamp(52px,7vw,92px);font-weight:850;line-height:1.1;letter-spacing:-4px;font-variant-numeric:tabular-nums}
.classroom-next{font-size:11px;letter-spacing:1.1px;color:#b1c2a5;line-height:1.5;margin-top:7px;text-transform:uppercase}
#classroom-dialog[data-phase=closing] .classroom-seconds,#classroom-dialog[data-phase=finished] .classroom-seconds{font-size:clamp(28px,4vw,48px);letter-spacing:-1px}
#classroom-dialog.cue-pulse .classroom-display{filter:drop-shadow(0 0 18px #c4ff4b65)}
.classroom-footer{max-width:1050px;width:100%;margin:0 auto}
.classroom-time-row{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#9fb292;font-variant-numeric:tabular-nums}
.classroom-total{height:5px;background:#273423;border-radius:8px;overflow:hidden;margin:10px 0 18px}.classroom-total span{display:block;width:0;height:100%;background:#c4ff4b}
.classroom-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
#classroom-dialog .classroom-play{min-width:170px;background:#c4ff4b;color:#15200d;border-color:#c4ff4b;font-weight:750}
.classroom-note{text-align:center;font-size:12px;color:#a4b398;line-height:1.5;margin:13px 0 0;min-height:18px}
.classroom-restart-confirm{padding:12px 15px;border:1px solid #677649;background:#1f2b1b;border-radius:12px;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:13px}
@media(max-width:600px){#classroom-dialog .classroom-shell{padding:18px 18px max(18px,env(safe-area-inset-bottom));gap:14px}.classroom-display{flex-direction:column;gap:14px;padding:0}.classroom-lap-value{font-size:clamp(100px,28vw,160px);margin:6px 0 10px}.classroom-ring{width:clamp(160px,47vw,220px)}.classroom-seconds{font-size:54px;letter-spacing:-2px}#classroom-dialog[data-phase=intro] .classroom-lap-value{font-size:52px;max-width:none}.classroom-label{font-size:10px;letter-spacing:2px}.classroom-top-controls{gap:5px}#classroom-dialog .classroom-top-controls button{font-size:11px;padding:9px 10px}.classroom-lap-sub{font-size:12px}.classroom-total{margin-bottom:14px}.classroom-note{font-size:11px}}
@media(max-height:560px) and (min-width:601px){#classroom-dialog .classroom-shell{padding:14px 22px;gap:7px}.classroom-display{padding:0;gap:55px}.classroom-ring{width:180px}.classroom-lap-value{font-size:140px;margin:4px 0 8px}.classroom-seconds{font-size:52px}.classroom-label{font-size:10px}.classroom-level{font-size:22px}#classroom-dialog[data-phase=intro] .classroom-lap-value{font-size:62px}.classroom-note{margin-top:7px}.classroom-total{margin:7px 0 12px}}
@media(prefers-reduced-motion:reduce){.classroom-display{transition:none}#classroom-dialog.cue-pulse .classroom-display{filter:none}}

#classroom-dialog .classroom-shell:fullscreen{background:radial-gradient(ellipse at 50% 35%,#1c2b1880,transparent 65%),#090d0b;width:100vw;height:100dvh;overflow:auto}

#classroom-dialog [hidden]{display:none!important}.classroom-source{font-size:13px;color:#a5b797;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:-6px 0 0}

.classroom-pace{display:inline-flex;align-items:center;gap:9px;padding-left:16px;border-left:1px solid #3f5035;color:#b9c7af;font-size:10px;font-weight:750;letter-spacing:1.3px}.classroom-pace strong{font-size:26px;line-height:1.2;letter-spacing:-.7px;color:#c4ff4b;font-variant-numeric:tabular-nums;white-space:nowrap}@media(max-width:600px){.classroom-pace{width:100%;justify-content:center;border:0;padding-left:0;gap:8px}.classroom-pace strong{font-size:22px}}@media(max-height:560px) and (min-width:601px){.classroom-pace strong{font-size:21px}}

.classroom-jump{display:inline-flex;align-items:center;gap:8px;max-width:100%}.classroom-jump label{font-size:11px;color:#b5c7a8;white-space:nowrap}.classroom-jump select{font-family:inherit;font-size:12px;font-weight:650;line-height:1.3;color:#edf3e6;background:#1b261c;border:1px solid #405537;border-radius:9px;padding:11px 10px;min-height:40px;max-width:195px;min-width:155px}.classroom-jump select:disabled{opacity:.45}.classroom-jump select:focus-visible{outline:2px solid #c4ff4b;outline-offset:4px}#classroom-dialog .classroom-jump button{padding:11px 13px}@media(min-width:700px){.classroom-jump{margin-left:10px}}

/* Countdown drains clockwise; the measured lap ring keeps its original direction. */
#classroom-dialog.start-countdown .classroom-ring svg{transform:rotate(-90deg) scaleY(-1)}
