:root{--screen-purple:#5b21b6;--screen-dark:#2e1065;--screen-accent:#f59e0b;--screen-bg:#f7f4ff;--screen-card:#ffffff;--screen-ink:#1f2937;--screen-muted:#64748b;--screen-line:#e4def8}
.classroom-screen-page{max-width:1460px;margin:auto;padding:34px 22px 70px}.screen-hero{display:flex;justify-content:space-between;gap:26px;align-items:end;margin-bottom:20px}.screen-hero h1{margin:10px 0 8px;font-size:clamp(38px,5vw,62px);letter-spacing:-.055em;line-height:1;color:#2e1065}.screen-hero p{margin:0;color:#64748b;font-size:17px;line-height:1.55;max-width:780px}.screen-privacy-note{padding:14px 16px;border:1px solid #e3d8fb;border-radius:16px;background:#fff;color:#5c5275;font-size:12.5px;line-height:1.5;max-width:340px}.screen-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.7fr);gap:20px;align-items:start}.screen-board-shell{position:sticky;top:92px}
.screen-board{--board-bg:#f7f4ff;--board-surface:#fff;--board-ink:#24105c;--board-muted:#667085;--board-primary:#5b21b6;--board-secondary:#f59e0b;--board-line:#e7ddfb;--target:#6d28d9;--success:#15803d;--success-soft:#f0fdf4;--success-line:#86efac;--agenda:#c2410c;--timer:#2563eb;min-height:720px;border-radius:28px;border:1px solid var(--board-line);background:radial-gradient(circle at 100% 0,rgba(91,33,182,.12),transparent 34%),linear-gradient(180deg,var(--board-bg),#fff);box-shadow:0 26px 70px rgba(15,23,42,.10);overflow:hidden;display:flex;flex-direction:column;color:var(--board-ink);position:relative}.screen-board[data-theme="ocean"]{--board-bg:#eff8ff;--board-surface:#fff;--board-ink:#0f3a5a;--board-muted:#527089;--board-primary:#2563eb;--board-secondary:#06b6d4;--board-line:#cfe8fb}.screen-board[data-theme="forest"]{--board-bg:#effcf6;--board-surface:#fff;--board-ink:#064e3b;--board-muted:#55776b;--board-primary:#059669;--board-secondary:#84cc16;--board-line:#cdeede}.screen-board[data-theme="sunset"]{--board-bg:#fff7ed;--board-surface:#fff;--board-ink:#7c2d12;--board-muted:#8b685b;--board-primary:#ea580c;--board-secondary:#f59e0b;--board-line:#fed7aa}.screen-board[data-theme="night"]{--board-bg:#111827;--board-surface:#172033;--board-ink:#f8fafc;--board-muted:#cbd5e1;--board-primary:#8b5cf6;--board-secondary:#fbbf24;--board-line:#334155;--success-soft:#10291d;--success-line:#22c55e;background:radial-gradient(circle at 100% 0,rgba(139,92,246,.18),transparent 38%),linear-gradient(180deg,#111827,#0f172a)}
.board-topbar{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 20px 14px;border-bottom:1px solid var(--board-line);background:color-mix(in srgb,var(--board-surface) 86%,transparent)}.board-clock-wrap{text-align:left;min-width:220px}.board-clock{font-variant-numeric:tabular-nums;font-size:29px;font-weight:950;letter-spacing:-.04em;line-height:1}.board-date{font-size:14px;color:var(--board-muted);font-weight:850;margin-top:5px;line-height:1.1}.board-brand{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:var(--board-primary)}.board-dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,var(--board-secondary),var(--board-primary));box-shadow:0 0 0 5px color-mix(in srgb,var(--board-primary) 10%,transparent)}
.board-main{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(260px,.72fr);grid-template-areas:"target timer" "success timer" "agenda agenda";grid-template-rows:auto auto minmax(210px,1fr);gap:13px;padding:14px 16px 0;flex:1;min-height:0}.board-card{background:var(--board-surface);border:1px solid var(--board-line);border-radius:19px;padding:15px 17px;box-shadow:0 8px 24px rgba(15,23,42,.04)}.target-card{grid-area:target;border-left:4px solid var(--target)}.success-card{grid-area:success;border:2px solid var(--success-line);background:color-mix(in srgb,var(--success-soft) 78%,var(--board-surface));padding:14px 16px}.agenda-card{grid-area:agenda;min-height:0;border-left:4px solid var(--agenda)}.board-timer{grid-area:timer;text-align:center;padding:16px 14px 15px;align-self:stretch;border:2px solid color-mix(in srgb,var(--timer) 32%,var(--board-line));background:color-mix(in srgb,#eff6ff 62%,var(--board-surface));display:flex;flex-direction:column;justify-content:center;min-height:0}.screen-board[data-theme="night"] .board-timer{background:color-mix(in srgb,#0f2b4f 48%,var(--board-surface))}
.board-section-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:950;letter-spacing:.035em;text-transform:uppercase;margin-bottom:9px;line-height:1}.board-section-title>span:first-child{font-size:15px}.target-title{color:var(--target)}.success-title{color:var(--success);font-size:15px}.agenda-title{color:var(--agenda)}.timer-title{color:var(--timer);justify-content:center;margin-bottom:12px}
.board-target{display:grid;gap:8px}.target-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;font-size:clamp(20px,2vw,31px);line-height:1.12;font-weight:930;letter-spacing:-.03em}.target-number{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,var(--board-secondary),var(--target));color:#fff;font-size:14px;line-height:1;font-weight:950;margin-top:2px;box-shadow:0 6px 14px color-mix(in srgb,var(--target) 18%,transparent)}.board-target.target-count-2 .target-row{font-size:clamp(19px,1.85vw,28px)}.board-target.target-count-3 .target-row{font-size:clamp(17px,1.65vw,24px)}.board-target.target-dense .target-row{font-size:clamp(16px,1.5vw,22px)}.target-placeholder{font-size:20px;color:var(--board-muted);font-style:italic;font-weight:750}
.board-success-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}.board-success-list li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;align-items:start;font-size:clamp(15px,1.25vw,19px);line-height:1.22;font-weight:800;color:color-mix(in srgb,var(--success) 78%,var(--board-ink))}.board-success-list li:before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:12px;font-weight:950;box-shadow:inset 0 0 0 1px #86efac}.screen-board[data-theme="night"] .board-success-list li:before{background:#14532d;color:#dcfce7;box-shadow:inset 0 0 0 1px #22c55e}.board-success-list.success-many{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:6px}.board-success-list.success-dense li{font-size:clamp(14px,1.05vw,17px)}.board-success-empty{color:var(--board-muted)!important;font-style:italic;font-weight:650!important}.board-success-empty:before{content:"+"!important;background:transparent!important;border:1px dashed var(--success-line);box-shadow:none!important;color:var(--success)!important}
.board-agenda-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:7px;align-content:start;counter-reset:agenda}.board-agenda-list.agenda-many{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,auto);grid-auto-flow:column;column-gap:22px;row-gap:8px}.board-agenda-list li{counter-increment:agenda;display:grid;grid-template-columns:25px minmax(0,1fr);gap:9px;align-items:start;font-size:15.5px;font-weight:800;line-height:1.24}.board-agenda-list li:before{content:counter(agenda);display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:color-mix(in srgb,var(--agenda) 10%,var(--board-surface));color:var(--agenda);font-size:11px;font-weight:950;border:1px solid color-mix(in srgb,var(--agenda) 24%,transparent)}.board-agenda-empty{color:var(--board-muted);font-style:italic;font-weight:650}.board-agenda-empty:before{content:"+"}
.board-timer-display{font-variant-numeric:tabular-nums;font-size:clamp(58px,6vw,92px);line-height:.98;font-weight:950;letter-spacing:-.065em;margin:7px 0 5px;color:var(--board-ink)}.screen-board.timer-warning .board-timer-display{color:#b45309}.screen-board.timer-danger .board-timer-display{color:#dc2626}.screen-board.timer-done .board-timer{background:#fff1f2;border-color:#fecdd3}.screen-board.timer-done .board-timer-display{color:#be123c}.board-timer-status{font-size:12px;font-weight:950;color:var(--board-muted);text-transform:uppercase;letter-spacing:.05em}.board-footer{padding:7px 16px 11px;color:var(--board-muted);font-size:9px;font-weight:750;text-align:center}
.present-toolbar{display:none;position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:20;gap:7px;padding:7px;border-radius:15px;background:rgba(15,23,42,.84);backdrop-filter:blur(10px);box-shadow:0 12px 35px rgba(0,0,0,.28)}.present-toolbar button{border:0;border-radius:9px;padding:8px 11px;background:#fff;color:#2e1065;font-weight:900;font-size:11px;cursor:pointer}
.screen-board:is(:fullscreen,.hq-focus-fullscreen){border:0;border-radius:0;min-height:100vh;height:100vh;width:100vw}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-topbar{padding:13px 24px 14px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-clock{font-size:36px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-date{font-size:18px;margin-top:6px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-brand{font-size:13px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-main{padding:13px 20px 4px;gap:11px;grid-template-columns:minmax(0,1.58fr) minmax(300px,.62fr);grid-template-rows:auto auto minmax(230px,1fr)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-card{padding:14px 17px;border-radius:18px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-section-title{font-size:18px;margin-bottom:10px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .success-title{font-size:19px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-section-title>span:first-child{font-size:19px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-target{gap:6px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .target-row{grid-template-columns:34px minmax(0,1fr);font-size:clamp(27px,2.85vw,43px);line-height:1.08}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-target.target-count-2 .target-row{font-size:clamp(25px,2.45vw,37px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-target.target-count-3 .target-row{font-size:clamp(21px,2.05vw,31px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-target.target-dense .target-row{font-size:clamp(19px,1.8vw,27px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .target-number{width:32px;height:32px;border-radius:10px;font-size:16px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-success-list{gap:6px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-success-list li{font-size:clamp(17px,1.55vw,23px);line-height:1.18;grid-template-columns:27px minmax(0,1fr)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-success-list li:before{width:25px;height:25px;font-size:14px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-success-list.success-dense li{font-size:clamp(16px,1.35vw,20px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-agenda-list{gap:6px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-agenda-list.agenda-many{column-gap:26px;row-gap:6px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-agenda-list li{font-size:clamp(17px,1.45vw,22px);line-height:1.18;grid-template-columns:27px minmax(0,1fr)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-agenda-list li:before{width:25px;height:25px;font-size:12px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer-display{font-size:clamp(76px,8vw,120px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-footer{padding:5px 16px 9px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .present-toolbar{display:flex}
.screen-controls{display:grid;gap:14px}.control-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 14px 38px rgba(15,23,42,.055)}.control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.control-head h2{font-size:18px;margin:0;color:#31116d;letter-spacing:-.025em}.control-head p{font-size:11.5px;line-height:1.45;color:#7a8798;margin:4px 0 0}.control-field{display:grid;gap:6px;margin-top:11px}.control-field label{font-size:11.5px;font-weight:900;color:#3f4b61}.success-control-field label{color:#15803d}.control-field input,.control-field textarea,.control-field select{width:100%;border:1px solid #d9e1ee;border-radius:13px;background:#fff;color:#111827;padding:11px 12px;font:inherit;font-size:13px;outline:none}.control-field textarea{min-height:82px;resize:vertical;line-height:1.45}.control-field textarea.targets-input{min-height:112px}.control-field textarea.success-input{min-height:106px;border-color:#bbf7d0;background:#f7fff9}.control-field textarea.agenda-input{min-height:130px}.control-help{margin:0;color:#7a8798;font-size:10.5px;line-height:1.4}.control-field input:focus,.control-field textarea:focus,.control-field select:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.11)}.control-field textarea.success-input:focus{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.11)}.control-btn{border:1px solid #d9ccfb;background:#fff;color:#4c1d95;border-radius:12px;padding:10px 12px;font-weight:900;font-size:12px;cursor:pointer}.control-btn:hover{background:#f7f3ff}.control-btn.primary{border:0;background:linear-gradient(135deg,#f59e0b,#2563eb 48%,#5b21b6);color:#fff;box-shadow:0 10px 24px rgba(91,33,182,.18)}.control-btn.danger{border-color:#fecdd3;color:#be123c;background:#fff7f8}.preset-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:9px}.preset-mini{border:1px solid #e0d8f7;border-radius:10px;background:#faf8ff;color:#4c1d95;padding:8px 4px;font-weight:900;font-size:11px;cursor:pointer}.preset-mini.active{background:#5b21b6;color:#fff;border-color:#5b21b6}.timer-control-main{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:7px;margin-top:9px}.timer-custom{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;margin-top:8px}.screen-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.screen-actions .control-btn{min-height:46px}.shortcuts{font-size:10.5px;color:#7a8798;line-height:1.55;margin-top:9px}.screen-toast{display:none;margin-top:9px;border-radius:12px;padding:9px 10px;font-size:11.5px;font-weight:800}.screen-toast.show{display:block}.screen-toast.success{background:#ecfdf5;color:#047857}.screen-toast.error{background:#fff1f2;color:#be123c}.screen-toast.info{background:#eff6ff;color:#1d4ed8}
@media(max-width:1100px){.screen-workspace{grid-template-columns:1fr}.screen-board-shell{position:static}.screen-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.control-card:first-child{grid-column:1/-1}}
@media(max-width:760px){.classroom-screen-page{padding:24px 12px 52px}.screen-hero{align-items:flex-start;flex-direction:column}.screen-privacy-note{max-width:none}.screen-controls{grid-template-columns:1fr}.control-card:first-child{grid-column:auto}.screen-board{min-height:0}.board-topbar{align-items:flex-start}.board-clock-wrap{min-width:0}.board-brand{font-size:9px}.board-main{grid-template-columns:1fr;grid-template-areas:"target" "success" "timer" "agenda";grid-template-rows:auto}.board-success-list.success-many,.board-agenda-list.agenda-many{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}.preset-row{grid-template-columns:repeat(3,1fr)}.timer-custom{grid-template-columns:1fr 1fr}.timer-custom .control-btn{grid-column:1/-1}.screen-actions{grid-template-columns:1fr}}

/* Classroom Screen V1.4 — Warm-Up + revised classroom layout */
.screen-board{--warmup:#0f766e;--warmup-soft:#f0fdfa;--warmup-line:#5eead4}
.screen-board[data-theme="night"]{--warmup:#5eead4;--warmup-soft:#0f2f2d;--warmup-line:#14b8a6}
.board-main{grid-template-areas:"target warmup" "success timer" "agenda agenda";grid-template-columns:minmax(0,1.38fr) minmax(360px,.92fr);grid-template-rows:auto auto minmax(210px,1fr)}
.warmup-card{grid-area:warmup;border:2px solid var(--warmup-line);background:color-mix(in srgb,var(--warmup-soft) 76%,var(--board-surface));padding:14px 16px;min-height:0}
.board-section-title{font-size:18px;gap:10px;margin-bottom:10px;padding-bottom:7px;border-bottom:2px solid currentColor;letter-spacing:.025em}
.board-section-title>span:first-child{font-size:21px}
.success-title{font-size:19px}.warmup-title{color:var(--warmup);font-size:19px}.timer-title{font-size:18px}.agenda-title{font-size:19px}.target-title{font-size:19px}
.board-warmup{font-size:clamp(18px,1.55vw,24px);line-height:1.28;font-weight:850;color:var(--board-ink);letter-spacing:-.015em}
.board-warmup.warmup-dense{font-size:clamp(16px,1.3vw,20px);line-height:1.24}.warmup-placeholder{color:var(--board-muted);font-style:italic;font-weight:650}
.warmup-control-field label{color:#0f766e}.control-field textarea.warmup-input{min-height:92px;border-color:#99f6e4;background:#f5fffd}.control-field textarea.warmup-input:focus{border-color:#14b8a6;box-shadow:0 0 0 3px rgba(20,184,166,.11)}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-main{grid-template-areas:"target warmup" "success timer" "agenda agenda";grid-template-columns:minmax(0,1.38fr) minmax(360px,.92fr);grid-template-rows:auto auto minmax(225px,1fr)}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-section-title{font-size:clamp(24px,2vw,30px);margin-bottom:10px;padding-bottom:8px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-section-title>span:first-child{font-size:clamp(25px,2.15vw,32px)}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .success-title,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .warmup-title,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .agenda-title,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .target-title,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .timer-title{font-size:clamp(24px,2vw,30px)}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-warmup{font-size:clamp(23px,2.15vw,34px);line-height:1.22}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-warmup.warmup-dense{font-size:clamp(19px,1.65vw,26px)}
@media(max-width:760px){.board-main{grid-template-areas:"target" "warmup" "success" "timer" "agenda"}.board-section-title{font-size:17px}.board-section-title>span:first-child{font-size:19px}}

/* V1.4 layout refinement */
.warmup-card{min-height:150px}.board-warmup{font-size:clamp(20px,1.75vw,28px)}.board-warmup.warmup-dense{font-size:clamp(17px,1.4vw,22px)}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .warmup-card{min-height:170px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-warmup{font-size:clamp(25px,2.35vw,37px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-warmup.warmup-dense{font-size:clamp(20px,1.8vw,28px)}
@media(max-width:1100px){.board-main{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)}}
@media(max-width:760px){.board-main{grid-template-columns:1fr}.warmup-card{min-height:0}}


/* Classroom Screen V1.5 — larger clock, left agenda, dominant countdown */
.board-topbar{padding:15px 22px 16px}.board-clock-wrap{min-width:260px}.board-clock{font-size:36px}.board-date{font-size:18px;margin-top:6px}
.board-main{grid-template-areas:"target warmup" "success timer" "agenda timer";grid-template-columns:minmax(0,1.34fr) minmax(390px,.96fr);grid-template-rows:auto minmax(160px,.75fr) minmax(230px,1.15fr)}
.agenda-card{grid-area:agenda;min-height:210px}.board-agenda-list{grid-template-columns:1fr!important;grid-template-rows:none!important;grid-auto-flow:row!important;gap:10px}.board-agenda-list li{font-size:clamp(16px,1.3vw,21px)}
.board-timer{grid-area:timer;min-height:390px;padding:20px 18px 20px;position:relative;overflow:hidden}.board-timer-display{font-size:clamp(82px,8.8vw,142px);margin:16px 0 9px}.board-timer-status{font-size:15px;letter-spacing:.09em}
.board-timer::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 0 transparent;transition:box-shadow .2s ease,background .2s ease}
.screen-board.timer-warning .board-timer{background:#fff7ed;border-color:#fdba74}.screen-board.timer-warning .board-timer-display{color:#c2410c}.screen-board.timer-warning .board-timer-status{color:#9a3412;font-size:17px}
.screen-board.timer-danger .board-timer{background:#fff1f2;border-color:#fb7185}.screen-board.timer-danger .board-timer-display{color:#dc2626;animation:hqCountdownPulse .72s ease-in-out infinite}.screen-board.timer-danger .board-timer-status{color:#be123c;font-size:20px}.screen-board.timer-danger .board-timer::after{box-shadow:inset 0 0 0 5px rgba(239,68,68,.28);animation:hqTimerBorderPulse .72s ease-in-out infinite}
.screen-board.timer-done .board-timer{background:#be123c;border-color:#9f1239}.screen-board.timer-done .board-timer-display{color:#fff;animation:hqTimesUpPop .55s ease-in-out 3}.screen-board.timer-done .board-timer-status{color:#fff;font-size:clamp(25px,2.2vw,34px);letter-spacing:.12em}.screen-board.timer-done .timer-title{color:#fff}.screen-board.timer-done .board-timer::after{box-shadow:inset 0 0 0 7px rgba(255,255,255,.24)}
@keyframes hqCountdownPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.055)}}
@keyframes hqTimerBorderPulse{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes hqTimesUpPop{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.sound-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-topbar{padding:16px 28px 17px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-clock{font-size:50px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-date{font-size:24px;margin-top:7px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-main{grid-template-areas:"target warmup" "success timer" "agenda timer";grid-template-columns:minmax(0,1.34fr) minmax(430px,.96fr);grid-template-rows:auto minmax(180px,.72fr) minmax(250px,1.18fr)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer{min-height:470px;padding:22px 20px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer-display{font-size:clamp(118px,12vw,190px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer-status{font-size:18px}.screen-board:is(:fullscreen,.hq-focus-fullscreen).timer-warning .board-timer-status{font-size:21px}.screen-board:is(:fullscreen,.hq-focus-fullscreen).timer-danger .board-timer-status{font-size:26px}.screen-board:is(:fullscreen,.hq-focus-fullscreen).timer-done .board-timer-status{font-size:clamp(34px,3vw,48px)}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .agenda-card{min-height:230px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-agenda-list li{font-size:clamp(19px,1.7vw,26px)}
@media(max-width:1100px){.board-main{grid-template-columns:minmax(0,1.15fr) minmax(350px,.85fr)}}
@media(max-width:760px){.board-main{grid-template-areas:"target" "warmup" "success" "agenda" "timer";grid-template-columns:1fr;grid-template-rows:auto}.board-timer{min-height:300px}.board-clock{font-size:31px}.board-date{font-size:16px}.sound-actions{justify-content:flex-start}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-main{grid-template-areas:"target" "warmup" "success" "agenda" "timer";grid-template-columns:1fr;grid-template-rows:auto}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer{min-height:330px}}
@media(prefers-reduced-motion:reduce){.screen-board.timer-danger .board-timer-display,.screen-board.timer-danger .board-timer::after,.screen-board.timer-done .board-timer-display{animation:none}}

/* V1.6 — mobile/iPad robustness */
.screen-workspace,.screen-board-shell,.screen-controls,.control-card,.board-main,.board-card{min-width:0}
.screen-board.hq-focus-fullscreen{position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;min-height:100dvh;border:0;border-radius:0;overflow:auto}
body.hq-no-scroll{overflow:hidden!important}
.screen-board:is(:fullscreen,.hq-focus-fullscreen){border:0;border-radius:0;min-height:100dvh;height:100dvh;width:100%}
@media(max-width:760px){
  .screen-board-shell,.screen-controls{width:100%}
  .board-topbar{flex-wrap:wrap;min-width:0}
  .board-clock-wrap{min-width:0;flex:1 1 180px}
  .board-brand{margin-left:auto;flex:0 1 auto}
  .timer-control-main{grid-template-columns:1fr 1fr}
  .timer-control-main .control-btn:first-child{grid-column:1/-1}
  .control-btn,.preset-mini{min-height:44px}
}
@media(max-width:430px){
  .classroom-screen-page{padding-left:10px;padding-right:10px}
  .board-main{padding-left:10px;padding-right:10px}
  .board-card{padding-left:13px;padding-right:13px}
  .timer-control-main{grid-template-columns:1fr}
  .timer-control-main .control-btn:first-child{grid-column:auto}
  .timer-custom{grid-template-columns:1fr 1fr}
}

/* Classroom Screen V1.7 — classroom resource dock + in-page document viewer */
[hidden]{display:none!important}
body.hq-resource-open{overflow:hidden!important}
.board-topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.board-resource-trigger{display:inline-flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--board-primary) 24%,var(--board-line));border-radius:12px;background:color-mix(in srgb,var(--board-surface) 88%,var(--board-primary) 12%);color:var(--board-primary);padding:9px 11px;font:inherit;font-size:11px;font-weight:950;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.05)}
.board-resource-trigger:hover{background:color-mix(in srgb,var(--board-surface) 78%,var(--board-primary) 22%)}
.board-resource-trigger:focus-visible{outline:3px solid color-mix(in srgb,var(--board-primary) 26%,transparent);outline-offset:2px}
.board-resource-count{min-width:21px;height:21px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;background:var(--board-primary);color:#fff;font-size:10px;line-height:1}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-resource-trigger{font-size:14px;padding:10px 13px;border-radius:14px}.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-resource-count{min-width:24px;height:24px;font-size:11px}

.resource-manager-card .control-head{align-items:center}.resource-manager-form{display:grid;grid-template-columns:.72fr 1.28fr;gap:9px 10px}.resource-manager-form .control-field{margin-top:0}.resource-manager-form-actions{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}.resource-storage-note{margin-top:10px}.resource-manager-list{display:grid;gap:8px;margin-top:13px}.resource-manager-empty{border:1px dashed #d8ddea;border-radius:14px;padding:14px;color:#7a8798;font-size:11.5px;line-height:1.45;background:#fbfcfe}.resource-manager-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e4e8f0;border-radius:15px;padding:9px;background:#fff}.resource-manager-open{min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;text-align:left;border:0;background:transparent;padding:0;cursor:pointer;color:#20293a}.resource-manager-open:hover .resource-manager-title{color:#5b21b6}.resource-manager-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f5f2ff;border:1px solid #e6dcff;font-size:16px}.resource-manager-copy{min-width:0}.resource-manager-title{display:block;font-size:12px;font-weight:950;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-manager-kind{display:block;color:#7a8798;font-size:9.5px;font-weight:800;margin-top:2px}.resource-manager-actions{display:flex;gap:4px;align-items:center}.resource-mini-btn{width:30px;height:30px;border:1px solid #dde3ec;border-radius:9px;background:#fff;color:#536174;font-weight:950;display:grid;place-items:center;cursor:pointer;padding:0}.resource-mini-btn:hover{background:#f7f8fb;color:#3b176f}.resource-mini-btn:disabled{opacity:.35;cursor:not-allowed}.resource-mini-btn.delete:hover{background:#fff1f2;color:#be123c;border-color:#fecdd3}.resource-manager-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:11px;color:#7a8798;font-size:10.5px;font-weight:800}.control-btn.subtle-danger{padding:8px 10px;background:#fff}

.resource-drawer{position:fixed;inset:0;z-index:26000;display:flex;justify-content:flex-end;align-items:stretch}.resource-drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.52);backdrop-filter:blur(3px);cursor:default}.resource-drawer-panel{position:relative;z-index:1;width:min(440px,92vw);height:100dvh;background:#fff;border-left:1px solid #ddd6fe;box-shadow:-24px 0 70px rgba(15,23,42,.24);padding:22px;overflow:auto;color:#1f2937}.resource-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:15px;border-bottom:1px solid #e8e8ef}.resource-drawer-head h2{margin:2px 0 4px;font-size:27px;letter-spacing:-.04em;color:#2e1065}.resource-drawer-head p{margin:0;color:#6b7280;font-size:12px;line-height:1.45}.resource-eyebrow{font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.11em;color:#7c3aed}.resource-icon-btn{width:38px;height:38px;border:1px solid #e1e4eb;border-radius:12px;background:#fff;color:#334155;font-size:25px;line-height:1;cursor:pointer}.resource-icon-btn:hover{background:#f8fafc}.resource-drawer-list{display:grid;gap:9px;padding:15px 0}.resource-drawer-empty{border:1px dashed #d8ddea;border-radius:16px;padding:18px;background:#fafbfe;color:#667085;font-size:12px;line-height:1.5}.resource-drawer-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}.resource-drawer-open{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;width:100%;border:1px solid #e2e5ed;background:#fff;border-radius:15px;padding:10px 11px;text-align:left;color:#1f2937;cursor:pointer;box-shadow:0 6px 20px rgba(15,23,42,.04)}.resource-drawer-open:hover{border-color:#c4b5fd;background:#faf8ff}.resource-drawer-item-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#f5f3ff,#eef2ff);border:1px solid #e3dcff;display:grid;place-items:center;font-size:20px}.resource-drawer-item-title{font-size:13px;font-weight:950;line-height:1.22;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-drawer-item-kind{font-size:10px;color:#788397;font-weight:800;margin-top:3px}.resource-drawer-remove{width:36px;border:1px solid #eceff4;border-radius:12px;background:#fff;color:#94a3b8;cursor:pointer;font-size:16px}.resource-drawer-remove:hover{background:#fff1f2;border-color:#fecdd3;color:#be123c}.resource-drawer-add{margin-top:7px;padding:15px;border-radius:17px;background:#f8f7ff;border:1px solid #e7e0fb;display:grid;gap:7px}.resource-drawer-add h3{margin:0 0 3px;font-size:14px;color:#3d1b78}.resource-drawer-add label{font-size:10px;font-weight:900;color:#526071}.resource-drawer-add input{width:100%;border:1px solid #d8deea;border-radius:11px;padding:10px 11px;font:inherit;font-size:12px;background:#fff;color:#111827;outline:none}.resource-drawer-add input:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.1)}.resource-add-btn{margin-top:3px;border:0;border-radius:11px;padding:11px 12px;background:linear-gradient(135deg,#f59e0b,#2563eb 48%,#5b21b6);color:#fff;font-weight:950;font-size:12px;cursor:pointer}

.resource-viewer{position:fixed;inset:0;z-index:28000;display:grid;place-items:center;padding:18px;background:rgba(9,14,28,.76);backdrop-filter:blur(7px)}.resource-viewer-panel{width:min(1500px,96vw);height:min(960px,94dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#eef2f7;border:1px solid rgba(255,255,255,.36);border-radius:20px;overflow:hidden;box-shadow:0 30px 100px rgba(0,0,0,.42);color:#111827;transition:width .2s ease,height .2s ease,border-radius .2s ease}.resource-viewer.viewer-maximized{padding:0}.resource-viewer.viewer-maximized .resource-viewer-panel{width:100vw;height:100dvh;border-radius:0;border:0}.resource-viewer-head{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:14px;align-items:center;padding:10px 12px 10px 14px;background:#fff;border-bottom:1px solid #dbe1ea}.resource-viewer-title-wrap{display:flex;align-items:center;gap:10px;min-width:0}.resource-viewer-icon{width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:#f3f0ff;border:1px solid #e4dcfb;display:grid;place-items:center;font-size:19px}.resource-viewer-kind{font-size:8.5px;font-weight:950;text-transform:uppercase;letter-spacing:.1em;color:#7c3aed}.resource-viewer-title-wrap h2{margin:1px 0 0;max-width:44vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;letter-spacing:-.02em;color:#202938}.resource-viewer-hud{display:flex;align-items:center;gap:7px;border:1px solid #dbe3ef;background:#f8fafc;border-radius:12px;padding:8px 10px;font-variant-numeric:tabular-nums;font-size:12px;font-weight:950;color:#334155;white-space:nowrap}.resource-viewer-hud span:last-child{color:#5b21b6}.resource-hud-divider{color:#a8b0bd}.resource-viewer-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.resource-viewer-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #d8deea;border-radius:10px;background:#fff;color:#3f4b61;text-decoration:none;padding:7px 10px;font:inherit;font-size:10.5px;font-weight:900;cursor:pointer;white-space:nowrap}.resource-viewer-btn:hover{background:#f7f5ff;border-color:#c4b5fd;color:#4c1d95}.resource-close-btn{width:38px;padding:0;font-size:21px;color:#475569}.resource-frame-wrap{position:relative;min-height:0;background:#dfe5ed}.resource-frame-wrap iframe{width:100%;height:100%;border:0;background:#fff;display:block}.resource-frame-loading{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;background:#f8fafc;color:#475569;font-size:12px;z-index:2;transition:opacity .18s ease}.resource-frame-loading.is-loaded{opacity:0;pointer-events:none}.resource-spinner{width:28px;height:28px;border:3px solid #ddd6fe;border-top-color:#6d28d9;border-radius:50%;animation:hqResourceSpin .75s linear infinite}.resource-viewer-note{padding:7px 12px;background:#fff;color:#64748b;border-top:1px solid #dbe1ea;font-size:9.5px;line-height:1.4;text-align:center}.resource-viewer-note strong{color:#475569}@keyframes hqResourceSpin{to{transform:rotate(360deg)}}

@media(max-width:1100px){.resource-manager-form{grid-template-columns:1fr 1.35fr}.resource-viewer-head{grid-template-columns:minmax(170px,1fr) auto}.resource-viewer-hud{grid-column:2;grid-row:2;justify-self:end}.resource-viewer-actions{grid-column:1/-1;grid-row:2;justify-self:start;padding-right:180px}}
@media(max-width:760px){.board-topbar-actions{width:100%;justify-content:space-between}.board-brand{margin-left:0!important}.board-resource-trigger{min-height:44px}.resource-manager-form{grid-template-columns:1fr}.resource-manager-form-actions{grid-column:auto}.resource-drawer-panel{width:min(480px,96vw);padding:16px}.resource-viewer{padding:0}.resource-viewer-panel{width:100vw;height:100dvh;border-radius:0;border:0}.resource-viewer-head{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px}.resource-viewer-title-wrap h2{max-width:58vw;font-size:13px}.resource-viewer-hud{grid-column:2;grid-row:1;padding:7px 8px;font-size:10.5px}.resource-viewer-actions{grid-column:1/-1;grid-row:2;justify-content:flex-start;justify-self:stretch;padding:0;overflow-x:auto}.resource-viewer-btn{min-height:40px}.resource-viewer-note{font-size:9px}.resource-manager-item{grid-template-columns:1fr}.resource-manager-actions{justify-content:flex-end}}
@media(max-width:430px){.board-resource-trigger>span:nth-child(2){display:none}.board-topbar-actions{gap:7px}.resource-viewer-icon{display:none}.resource-viewer-title-wrap h2{max-width:50vw}.resource-viewer-hud{font-size:9.5px}.resource-viewer-btn{font-size:9.5px;padding:7px 8px}.resource-viewer-actions .resource-close-btn{min-width:40px}.resource-drawer-panel{width:100vw}.resource-drawer-head h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.resource-spinner{animation:none}.resource-viewer-panel{transition:none}}

/* Classroom Screen v1.8 — compact widgets, teacher/projector separation,
   locally saved lesson boards, accessible reorder controls, document zoom. */
.board-main{grid-template-areas:none!important;grid-template-columns:minmax(0,1.24fr) minmax(250px,.86fr)!important;grid-template-rows:none!important;grid-auto-rows:min-content;align-content:start;gap:12px;padding-bottom:12px}
.board-main>.board-card{grid-area:auto!important;align-self:start;min-width:0;min-height:0}
.board-main>.board-card[hidden]{display:none!important}
.board-main>.board-card.section-wide{grid-column:1/-1}
.board-timer{min-height:0!important;padding:13px 17px!important;justify-content:flex-start!important}
.board-timer-display{font-size:clamp(54px,5.8vw,100px)!important;line-height:1;margin:5px 0!important}
.board-timer-status{font-size:13px!important}
.board-timer .board-section-title{margin:0 0 5px!important}
.warmup-card{min-height:0!important}
.agenda-card{min-height:0!important}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-main{grid-template-areas:none!important;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr)!important;grid-template-rows:none!important;grid-auto-rows:min-content;overflow:auto;align-content:start;gap:14px;padding-bottom:16px}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer{min-height:0!important;padding:16px!important}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-timer-display{font-size:clamp(70px,6.6vw,110px)!important}
@media(max-width:760px){.board-main,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .board-main{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important}.board-main>.board-card.section-wide{grid-column:auto}}
.section-editor{display:grid;gap:9px;margin-top:13px}
.section-editor-row{display:grid;grid-template-columns:20px minmax(120px,1fr) 30px 30px auto auto;align-items:center;gap:6px;border:1px solid #e1e5ef;border-radius:12px;background:#fbfbff;padding:8px}
.section-editor-row input[type=text],.saved-screen-fields input{min-width:0;width:100%;border:1px solid #d6dce9;border-radius:9px;padding:9px 10px;font:inherit;font-size:13px;background:#fff;color:#222f45}
.section-move-handle{color:#78839a;cursor:grab;font-size:19px;user-select:none}
.section-show-control{display:flex;align-items:center;gap:4px;font-size:11px;white-space:nowrap;font-weight:850;color:#475569}
.section-show-control input{accent-color:#5b21b6;width:16px;height:16px}
.screen-utility-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.saved-screen-fields{display:grid;gap:6px}.saved-screen-fields label,.teacher-projection-tools label{font-size:12px;font-weight:850;color:#334155}
.saved-screen-list{margin-top:12px;display:grid;gap:7px}.saved-screen-list>p{font-size:12px;color:#64748b;margin:4px 0}
.saved-screen-row{display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:8px 10px}
.saved-screen-row strong{font-size:12px;overflow-wrap:anywhere}.saved-screen-row .screen-utility-actions{margin:0;flex-wrap:nowrap}
.teacher-projection-tools{display:grid;gap:8px;margin-top:15px;border-top:1px solid #e4e9f2;padding-top:15px}
.teacher-projection-tools select{width:100%;padding:9px;border:1px solid #d7deeb;border-radius:10px;background:#fff;color:#26344c}
#projectZoomLabel{color:#5b21b6;font-size:12px;font-variant-numeric:tabular-nums}
.resource-viewer-head{grid-template-columns:minmax(150px,1fr) auto auto auto;gap:8px}
.resource-zoom-controls{display:flex;align-items:center;gap:5px;white-space:nowrap}
.resource-zoom-controls .resource-viewer-btn{min-width:33px;padding:6px 8px}
.resource-zoom-controls .resource-viewer-btn:disabled{opacity:.4;cursor:default}
.resource-zoom-controls #resourceZoomLabel{display:inline-block;min-width:42px;text-align:center;font-size:11px;font-weight:950;font-variant-numeric:tabular-nums}
.resource-frame-wrap{--doc-zoom:1;overflow:auto;position:relative}
.resource-zoom-stage{position:relative;width:calc(100% * var(--doc-zoom));height:calc(100% * var(--doc-zoom));min-height:100%}
.resource-zoom-stage iframe{position:absolute;inset:0;width:calc(100% / var(--doc-zoom));height:calc(100% / var(--doc-zoom));transform:scale(var(--doc-zoom));transform-origin:0 0}
@media(max-width:1240px){.resource-viewer-head{grid-template-columns:minmax(160px,1fr) auto;gap:7px}.resource-zoom-controls{grid-column:1;grid-row:2;justify-self:start}.resource-viewer-actions{grid-column:2;grid-row:2}.resource-viewer-hud{grid-column:2;grid-row:1}}
@media(max-width:640px){.section-editor-row{grid-template-columns:16px minmax(110px,1fr) 30px 30px}.section-show-control{grid-column:span 2;justify-content:center}.resource-viewer-head{grid-template-columns:1fr auto!important}.resource-viewer-hud{grid-column:2!important;grid-row:1!important}.resource-zoom-controls{grid-column:1!important;grid-row:2!important}.resource-viewer-actions{grid-column:1/-1!important;grid-row:3!important;justify-content:flex-start;flex-wrap:wrap}}
.hq-student-view .site-header,.hq-student-view .site-footer,.hq-student-view .screen-hero,.hq-student-view .screen-controls,.hq-student-view .board-resource-trigger,.hq-student-view .present-toolbar{display:none!important}
.hq-student-view body{margin:0;background:#111827;overflow:hidden}
.hq-student-view .classroom-screen-page{padding:0!important;max-width:none!important}
.hq-student-view .screen-workspace{display:block!important}
.hq-student-view .screen-board-shell{margin:0!important;padding:0!important}
.hq-student-view .screen-board{width:100vw!important;height:100dvh!important;min-height:100dvh!important;border-radius:0!important;border:0!important}
.hq-student-view .board-main{overflow:auto}
.hq-student-view .board-footer{display:none}
.hq-student-view .resource-viewer-actions,.hq-student-view .resource-zoom-controls,.hq-student-view .resource-viewer-note{display:none!important}
.hq-student-view .resource-viewer{padding:0!important;background:#fff;backdrop-filter:none}
.hq-student-view .resource-viewer-panel{width:100vw!important;height:100dvh!important;border-radius:0!important;border:0!important}
.hq-student-view .resource-viewer-head{grid-template-columns:minmax(120px,1fr) auto!important}
.hq-student-view .resource-viewer-hud{grid-column:2!important;grid-row:1!important}
.student-fullscreen-btn{display:none;position:absolute;z-index:999;right:14px;bottom:15px;padding:11px 16px;border:2px solid #ddd6fe;border-radius:12px;background:#4c1d95;color:#fff;font-weight:900;cursor:pointer}
.hq-student-view .student-fullscreen-btn:not([hidden]){display:block}
.hq-student-view .screen-board:fullscreen .student-fullscreen-btn{display:none}
@media(prefers-reduced-motion:reduce){.section-editor-row{transition:none}}
/* The site's sticky navigation must not intercept document-viewer toolbar clicks. */
body.hq-resource-open .site-header{visibility:hidden;pointer-events:none}

/* v1.9: resilient, readable screen recovery list */
.recovery-screens{margin-top:16px;padding-top:12px;border-top:1px solid #e2e8f0}
.recovery-screens h3{margin:0 0 5px;font-size:13px;color:#31116d}
.recovery-info{min-width:0;display:grid;gap:3px}
.recovery-info strong{font-size:12px;overflow-wrap:anywhere}
.recovery-info small{font-size:10px;color:#64748b;line-height:1.3}

/* v2.0 — private teacher command deck and a student-only pause curtain */
.projection-command-deck{position:sticky;top:10px;z-index:20;border:1px solid #c8d2e5;border-radius:16px;padding:13px;background:#f8faff;box-shadow:0 6px 20px rgba(31,41,79,.10);display:grid;gap:9px;min-width:0}
.projection-command-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.projection-command-heading>div{display:grid;min-width:0;gap:3px}
.projection-command-heading strong{color:#242f55;font-size:15px;font-weight:900;line-height:1.2}
#quickProjectionStatus{font-size:11px;font-weight:650;color:#88511d;line-height:1.4}
#quickProjectionStatus.is-connected{color:#166534}
.projection-command-actions,.projection-command-bottom,.projection-command-resource,.projection-timer-tools{display:flex;align-items:center;gap:6px;min-width:0}
.projection-command-actions{flex-wrap:wrap}
.projection-command-deck .control-btn{padding:8px 10px;min-height:36px;font-size:11px;line-height:1.2;border-radius:9px}
.projection-command-deck .control-btn:disabled{opacity:.55;cursor:not-allowed}
.projection-command-deck .control-btn[aria-pressed="true"]{background:#2f244e;color:#fff;border-color:#2f244e}
.projection-command-resource label{white-space:nowrap;color:#334155;font-size:11px;font-weight:800}
.projection-command-resource select{min-width:0;flex:1;max-width:100%;border-radius:9px;background:#fff;border:1px solid #bdc6da;color:#26344c;padding:8px;font-size:12px}
.projection-command-bottom{justify-content:space-between;gap:10px;border-top:1px solid #e0e4ef;padding-top:8px;flex-wrap:wrap}
.projection-now-showing{min-width:0;font-size:11px;font-weight:800;color:#475569;overflow-wrap:anywhere}
.projection-timer-tools{margin-left:auto}
.projection-timer-tools strong{color:#332a5b;font-size:17px;font-variant-numeric:tabular-nums;font-weight:900;white-space:nowrap}
.student-hold-overlay[hidden]{display:none!important}
.student-hold-overlay{display:none}
.hq-student-view .student-hold-overlay:not([hidden]){display:flex;position:fixed;inset:0;z-index:2147480000;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#15223b;color:#fff;text-align:center;padding:30px}
.student-hold-mark{width:66px;height:66px;display:grid;place-items:center;border-radius:17px;background:#6748aa;font-size:29px;font-weight:950}
.student-hold-overlay strong{font-size:clamp(30px,5vw,66px);font-weight:900}
.student-hold-overlay p{font-size:clamp(17px,2vw,26px);color:#d6e0f1;margin:0}
.hq-student-view .student-fullscreen-btn{z-index:2147480001}
@media(max-width:1100px){.projection-command-deck{position:relative;top:0}}
@media(max-width:470px){.projection-command-heading{flex-wrap:wrap}.projection-command-resource{flex-wrap:wrap}.projection-command-resource label{width:100%}.projection-command-resource select{min-width:125px}.projection-timer-tools{margin-left:0}}
/* Keep the floating teacher controller below the sticky HQ navigation. */
@media(min-width:1101px){.projection-command-deck{top:86px;max-height:calc(100dvh - 100px);overflow-y:auto}}

/* v2.1 — casting guidance for Chrome / Clear Touch and HDMI/USB-C */
.projection-command-heading #quickOpenDisplay{min-width:100px;min-height:44px;font-size:14px;white-space:nowrap}
.projection-cast-guidance{font-size:11px;line-height:1.4;color:#475569;margin:0}
.project-setup-dialog{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 24px));max-width:620px;max-height:min(92dvh,850px);overflow:auto;box-sizing:border-box;border:1px solid #d7dfec;border-radius:18px;padding:24px;background:#fff;color:#1f2d42;box-shadow:0 24px 70px rgba(15,23,42,.35);z-index:2147480100}
.project-setup-dialog::backdrop{background:rgba(15,23,42,.65);backdrop-filter:blur(3px)}
.project-setup-top{display:flex;align-items:center;gap:12px}
.project-setup-top>div:nth-child(2){flex:1;min-width:0}
.project-setup-icon{font-size:22px;display:grid;place-items:center;background:#ede9fe;color:#4c1d95;border-radius:12px;width:46px;height:46px;flex:none}
.project-setup-kicker{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#64748b;font-weight:800}
.project-setup-top h2{font-size:23px;line-height:1.2;margin:3px 0 0;color:#1e2742}
.project-setup-close{background:transparent;border:0;border-radius:9px;color:#475569;font-size:30px;width:42px;height:42px;cursor:pointer}
.project-setup-description{font-size:14px;line-height:1.55;color:#536172;margin:12px 0 20px}
.project-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;margin:0;padding:0}
.project-methods legend{font-size:13px;font-weight:900;margin-bottom:8px;color:#334155}
.project-method{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #cad4e5;border-radius:12px;cursor:pointer;min-width:0;background:#f8fafc}
.project-method:has(input:checked){background:#f4f0ff;border-color:#7654c7;box-shadow:inset 0 0 0 1px #7654c7}
.project-method input{accent-color:#5b21b6;width:18px;height:18px;margin:2px 0 0;flex:none}
.project-method span{display:grid;gap:4px;min-width:0}
.project-method strong{font-size:13px;line-height:1.3}
.project-method small{font-size:11px;line-height:1.3;color:#64748b}
.project-method-instructions[hidden]{display:none!important}
.project-method-instructions h3{font-size:15px;margin:20px 0 10px;color:#24334f}
.project-method-instructions ol{padding-left:24px;margin:0;display:grid;gap:9px;font-size:13px;line-height:1.5;color:#334155}
.project-setup-tip{background:#f0f7ff;border-radius:10px;padding:11px 12px;font-size:12px;color:#264463;line-height:1.5;margin:16px 0}
.project-status-note{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:12px;display:grid;gap:5px;font-size:12px;color:#56657b}
.project-status-note span:first-child{font-weight:800;color:#31578b}
.project-setup-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:9px;margin-top:15px}
.project-setup-actions .control-btn{min-height:42px}
@media(max-width:560px){.project-setup-dialog{padding:15px;max-height:96dvh}.project-setup-top h2{font-size:19px}.project-methods{grid-template-columns:1fr}.project-setup-actions .control-btn{flex:1 1 170px}}
@media(prefers-reduced-motion:reduce){.project-setup-dialog::backdrop{backdrop-filter:none}}

/* HQ Classroom Screen v2.2: student-window Cast/Connect helper */
.student-display-tools{display:none;position:fixed;right:14px;bottom:14px;z-index:2147480001;align-items:center;gap:10px}
.hq-student-view .student-display-tools:not([hidden]){display:flex}
.student-display-tools .student-fullscreen-btn{position:static;display:block!important}
.student-display-tools .student-fullscreen-btn[hidden]{display:none!important}
.student-connect-btn{display:block;border:2px solid #a5b4fc;border-radius:12px;padding:11px 16px;background:#1e3a8a;color:white;font-size:15px;font-weight:850;cursor:pointer;box-shadow:0 4px 20px #06133540}
.student-connect-btn:hover,.student-connect-btn:focus-visible{background:#1d4ed8}
.hq-student-view .screen-board:fullscreen .student-display-tools{display:none!important}
.student-cast-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;border:1px solid #b8c6e3;border-radius:20px;max-width:min(92vw,665px);width:100%;max-height:min(90dvh,770px);padding:0;background:#fff;color:#17253c;box-shadow:0 22px 55px #090f2766;overflow:auto;font:16px/1.5 system-ui,sans-serif}
.student-cast-dialog::backdrop{background:#07132bc9}
.student-cast-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:23px 25px 13px;background:#f2f6ff;border-radius:20px 20px 0 0}
.student-cast-head span{display:block;color:#5b21b6;font-weight:800;font-size:12px;letter-spacing:.07em;text-transform:uppercase}
.student-cast-head h2{font-size:26px;line-height:1.2;margin:5px 0 0;color:#182d5a}
.student-cast-close{font-size:25px;line-height:1;background:#fff;border:1px solid #d6dcef;color:#35425c;border-radius:9px;width:40px;height:40px;cursor:pointer}
.student-cast-dialog > p{padding:0 25px;margin:14px 0;color:#52627a}
.student-cast-option{margin:13px 24px;padding:16px 18px;border:1px solid #d2dcf2;background:#f9fbff;border-radius:13px}
.student-cast-option h3{margin:0 0 10px;color:#1b3564;font-size:18px;line-height:1.35}
.student-cast-option h3 span{font-size:11px;padding:4px 7px;border:1px solid #a7c6fa;border-radius:7px;color:#31547b;vertical-align:middle;white-space:nowrap;font-weight:700}
.student-cast-option ol{margin:6px 0 0;padding-left:22px}
.student-cast-option li{margin:7px 0;line-height:1.45}
.student-cast-option p{margin:7px 0 12px}
.student-cast-caveat{font-size:13px;color:#56657a}
.student-cast-alternate{background:white}
.student-cast-webcast{display:inline-block;padding:10px 13px;border-radius:8px;background:#e6eefe;border:1px solid #9fb8f3;color:#153e84;font-weight:800;text-decoration:none}
.student-cast-footer{display:flex;justify-content:flex-end;padding:0 24px 22px}
.student-cast-done{border:0;border-radius:10px;padding:12px 18px;color:white;background:#4c1d95;font-weight:800;cursor:pointer;font-size:15px}
.teacher-webcast-note{margin:8px 0;font-size:13px;color:#4e6076}
.teacher-webcast-note a{font-weight:750;text-decoration:underline;color:#1d4ed8}
@media(max-width:620px){.student-display-tools{right:8px;bottom:8px;gap:5px}.student-display-tools button{font-size:12px;padding:9px 10px}.student-cast-dialog{max-height:94dvh}.student-cast-head{padding:16px}.student-cast-head h2{font-size:22px}.student-cast-dialog>p{padding:0 16px}.student-cast-option{margin:10px 14px;padding:12px}.student-cast-footer{padding:0 14px 16px}}

/* HQ Classroom Screen v2.3 — teacher-first workspace; student presentation is untouched. */
@media (min-width:1101px){
  .classroom-screen-page{max-width:1590px;padding-top:16px}
  .screen-hero{margin-bottom:14px;align-items:center;gap:18px}
  .screen-hero h1{font-size:clamp(34px,3.4vw,46px);margin:5px 0 5px}
  .screen-hero p{font-size:14px;line-height:1.4;max-width:850px}
  .screen-privacy-note{max-width:285px;font-size:11px;padding:10px 13px}
  .screen-workspace{grid-template-columns:minmax(0,1.43fr) minmax(395px,.97fr);gap:20px}
  .screen-controls{grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
  .screen-board-shell{grid-column:2;grid-row:1;position:sticky;top:91px;min-width:0;align-self:start}
  .screen-controls .projection-command-deck{grid-column:1/-1;position:sticky;top:86px;max-height:none;overflow:visible}
  .screen-controls .display-content-card{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:17px;row-gap:9px}
  .display-content-card>.control-head{grid-column:1/-1;margin-bottom:0}
  .screen-controls #teacherDisplayCard,.screen-controls #resourceManagerCard{grid-column:1/-1}
  .control-card{padding:17px}
  .screen-controls .control-field textarea{font-size:14px}
  .screen-controls .control-field label{font-size:12px}
  .screen-controls .control-help{font-size:11px}
  .projection-command-deck .control-btn{font-size:12px}
  .projection-command-actions{gap:9px}
  .projection-command-bottom{gap:12px}
}
.teacher-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#334155}
.teacher-preview-heading span:first-child{display:grid;gap:2px}
.teacher-preview-heading strong{font-size:14px;color:#31116d;font-weight:900}
.teacher-preview-heading small{font-size:11px;color:#64748b}
.teacher-preview-chip{font-size:10px;font-weight:800;color:#5b21b6;background:#f4efff;border-radius:30px;padding:6px 8px;white-space:nowrap}
/* The actual board is rendered at the same design width as the student display,
   then scaled for its teacher preview. Resource modals remain outside the scale layer. */
@media(min-width:1101px){
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen){min-height:0;overflow:hidden;height:auto;display:block;border-radius:17px}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .teacher-preview-canvas{width:1060px;flex:none;transform:scale(var(--teacher-preview-scale, .48));transform-origin:top left;will-change:transform}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .board-main{min-height:560px}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .board-topbar{padding:14px 18px}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .board-clock{font-size:38px}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .board-date{font-size:18px}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .board-card{padding:15px 18px}
  body:not(.hq-student-view) .screen-board:not(:fullscreen):not(.hq-focus-fullscreen) .board-footer{display:none}
}
.hq-student-view .teacher-preview-heading{display:none!important}
.hq-student-view .teacher-preview-canvas,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .teacher-preview-canvas{width:100%!important;transform:none!important;will-change:auto!important}
@media(max-width:1100px){.screen-hero h1{font-size:clamp(32px,4vw,46px)}.screen-hero p{font-size:15px}.teacher-preview-chip{display:none}}
/* Preserve the original full-height projected canvas after wrapping the live preview. */
.teacher-preview-canvas{display:flex;flex-direction:column;min-height:0;min-width:0}
.hq-student-view .teacher-preview-canvas,.screen-board:is(:fullscreen,.hq-focus-fullscreen) .teacher-preview-canvas{flex:1;min-height:0}

/* v2.4 — teacher-first live controls below the Live Preview. */
@media(min-width:1101px){
 .screen-controls .projection-command-deck{grid-column:auto;position:static}
 .screen-board-shell{display:flex;flex-direction:column;gap:10px}
 .projection-command-deck{position:static;max-height:none;overflow:visible;top:auto}
}
.screen-board-shell>.projection-command-deck{position:static;top:auto;max-height:none;overflow:visible;box-shadow:0 4px 14px rgba(31,41,79,.06);padding:13px 15px;gap:10px}
.live-visibility{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #d8e1ef;border-radius:13px;padding:12px}
.live-visibility-label{display:grid;gap:4px;min-width:0}
.live-visibility-label strong{color:#253451;font-size:13px;font-weight:900}
#liveVisibilityStatus{font-size:11px;font-weight:800;color:#166534}
#liveVisibilityStatus.is-hidden{color:#b45309}
.live-visibility-button{flex:none;min-width:142px;min-height:42px!important;font-size:12px!important;border-color:#d5c6ed!important}
.live-visibility-button[aria-pressed=true]{background:#3f315a!important;color:white!important;border-color:#3f315a!important}
.live-content-section{display:grid;gap:7px;border-top:1px solid #e3e8f1;padding-top:12px}
.live-content-heading{font-size:13px;font-weight:900;color:#243651}
.live-content-caption{font-size:11px;color:#64748b;line-height:1.4;margin:0}
.live-content-toggle{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.live-content-toggle .control-btn{font-size:12px;min-height:42px!important;line-height:1.3;white-space:normal}
.live-content-toggle .control-btn.is-selected,.live-content-toggle .control-btn[aria-pressed=true]{background:#ede9fe!important;color:#4c1d95!important;border:1px solid #8b5cf6!important;box-shadow:inset 0 0 0 1px #8b5cf6}
.live-resource-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:5px;align-items:end}
.live-resource-tools[hidden]{display:none!important}
.live-resource-tools label{font-size:11px;font-weight:900;color:#475569;grid-column:1/-1}
.live-resource-tools select{min-width:0;width:100%;border:1px solid #bdc6da;border-radius:9px;background:white;padding:9px;color:#26344c;font-size:12px}
.live-resource-steps{display:flex;gap:5px}
.live-resource-steps button{white-space:nowrap}
.live-content-hint{font-size:10.5px;color:#64748b;line-height:1.45;margin:0}
.teacher-zoom-label{display:block;font-size:12px;font-weight:800;margin-bottom:8px;color:#475569}
.teacher-preview-cover[hidden]{display:none!important}
.teacher-preview-cover{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;color:white;background:#17243e;border-radius:inherit}
.teacher-preview-cover-icon{background:#5b21b6;width:54px;height:54px;display:grid;place-items:center;border-radius:14px;font-size:24px}
.teacher-preview-cover strong{font-size:20px}
.teacher-preview-cover span:last-child{font-size:12px;color:#d1d9e7;max-width:80%}
.screen-board{position:relative}
.hq-student-view .projection-command-deck,.hq-student-view .teacher-preview-cover{display:none!important}
.screen-board:is(:fullscreen,.hq-focus-fullscreen) .teacher-preview-cover{display:none!important}
@media(max-width:1100px){.screen-board-shell>.projection-command-deck{margin-top:10px}.live-resource-tools{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:540px){.live-resource-tools{grid-template-columns:1fr}.live-resource-steps{justify-content:flex-start}.live-visibility{gap:7px;padding:10px}.live-visibility-button{min-width:118px!important}.projection-command-heading #quickOpenDisplay{min-width:140px!important}}
@media(min-width:1101px) and (max-height:820px){.screen-board-shell{position:static!important;top:auto!important}}
/* Keep section customization readable on tablets instead of stretching the page. */
@media(min-width:641px) and (max-width:1100px){
  .screen-controls #layoutControlCard{grid-column:1/-1}
}

/* HQ Classroom Screen v2.5 — clear teacher/display separation + direct heading editing. */
body:not(.hq-student-view) .screen-board-shell{
  background:linear-gradient(150deg,#172b4e 0%,#273e63 55%,#34466a 100%);
  border:1px solid #12223c;
  border-radius:22px;
  padding:15px;
  box-shadow:0 16px 33px rgba(15,28,54,.16);
}
body:not(.hq-student-view) .teacher-preview-heading{color:#fff;margin:0 0 10px}
body:not(.hq-student-view) .teacher-preview-heading strong{color:#fff;font-size:16px}
body:not(.hq-student-view) .teacher-preview-heading small{color:#d1ddf1}
body:not(.hq-student-view) .teacher-preview-chip{color:#e2dcff;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16)}
body:not(.hq-student-view) .screen-board-shell>.projection-command-deck{background:#f8faff;border-color:#e4e8f5;margin-top:1px}
body:not(.hq-student-view) .screen-controls .display-content-card{border-color:#dbe1ed;box-shadow:0 7px 19px rgba(19,35,68,.06)}
.inline-content-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.inline-content-head .control-btn{font-size:11px;min-height:34px;white-space:nowrap}
.inline-edit-field{min-width:0;align-self:start}
.inline-section-heading{display:flex;align-items:center;gap:6px;margin:0 0 7px;border-bottom:2px solid #ded8fe;padding:0 0 7px;min-width:0}
.inline-heading-symbol{font-size:18px;flex:none;display:inline-grid;place-items:center;width:25px}
.inline-heading-title{flex:1;min-width:0;width:100%;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;color:#472193!important;font-family:inherit;font-size:clamp(15px,1.35vw,19px)!important;font-weight:900!important;line-height:1.3!important;padding:5px 3px!important;box-shadow:none!important;text-overflow:ellipsis}
.inline-heading-title:hover{border-color:#c7b8ee!important;background:#faf8ff!important}
.inline-heading-title:focus{outline:2px solid #7c3aed!important;outline-offset:0;background:#fff!important;border-color:#7c3aed!important}
.inline-edit-mark{font-size:13px;color:#8975b2;opacity:.85}
.inline-section-menu-btn{flex:none;border:1px solid #d8d0e7;border-radius:10px;width:32px;height:32px;line-height:1;color:#51338b;background:#f7f4fc;cursor:pointer;font-size:21px;font-weight:800}
.inline-section-menu-btn:hover,.inline-section-menu-btn[aria-expanded=true]{background:#e8defe;border-color:#aa8aec}
.inline-section-options{margin:-1px 0 9px;padding:10px;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;background:#f1f4fc;border-radius:10px;border:1px solid #dce3f1}
.inline-section-options[hidden]{display:none!important}
.inline-order-controls{display:flex;align-items:center;gap:5px}
.inline-order-controls span{font-size:11px;color:#52637b;font-weight:850;margin-right:3px}
.inline-order-controls .resource-mini-btn{width:30px;height:30px}
.inline-option-check{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#354866;cursor:pointer}
.inline-option-check input{width:17px;height:17px;accent-color:#6d28d9}
.inline-edit-field.section-not-shown>.inline-section-heading{opacity:.65;border-bottom-style:dashed}
.inline-edit-field.section-not-shown>.inline-section-heading:before{content:'Hidden';font-size:9px;font-weight:900;color:#6c4a11;display:inline-block;padding:4px 5px;background:#fef3c7;border-radius:6px;order:4}
.inline-edit-field.success-control-field .inline-section-heading{border-bottom-color:#86dfa7}
.inline-edit-field.success-control-field .inline-heading-title{color:#14753e!important}
.inline-edit-field.warmup-control-field .inline-section-heading{border-bottom-color:#6de3d4}
.inline-edit-field.warmup-control-field .inline-heading-title{color:#0f766e!important}
.inline-edit-field[data-inline-section=agenda] .inline-section-heading{border-bottom-color:#f9b080}
.inline-edit-field[data-inline-section=agenda] .inline-heading-title{color:#bb4915!important}
.inline-timer-field{margin:7px 0 9px}
.inline-timer-field .inline-section-heading{border-bottom-color:#99adff}
.inline-timer-field .inline-heading-title{color:#2459d3!important}
@media(max-width:1100px){body:not(.hq-student-view) .screen-board-shell{padding:13px} .inline-heading-title{font-size:17px!important}}
@media(max-width:760px){.inline-content-head{flex-wrap:wrap}.inline-content-head .control-btn{margin-left:0}.inline-section-options{flex-wrap:wrap}.inline-heading-title{font-size:16px!important}body:not(.hq-student-view) .screen-board-shell{border-radius:15px;padding:11px}}
@media(min-width:1101px){.screen-controls .display-content-card>.inline-content-head{order:0;grid-column:1/-1}}
/* Only the teacher workspace is divided into the editing and dark display area. */
body.hq-student-view .screen-board-shell{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}

/* HQ Classroom Screen v2.6 — workspace density, contrast and discoverable help */
body:not(.hq-student-view) .classroom-screen-page{padding-top:4px;max-width:1590px}
body:not(.hq-student-view) .screen-hero{margin:0 0 9px;align-items:center;gap:8px;min-height:38px;padding:0 4px}
body:not(.hq-student-view) .screen-title-inline{display:flex;align-items:center;gap:9px;min-width:0}
body:not(.hq-student-view) .screen-title-icon{width:26px;height:26px;flex:none;border-radius:7px;background:linear-gradient(145deg,#f59e0b,#6d28d9);color:white;display:grid;place-items:center;font-size:15px}
body:not(.hq-student-view) .screen-hero h1{margin:0;color:#24134f;font-size:clamp(19px,2.1vw,25px);letter-spacing:-.045em;line-height:1.1}
body:not(.hq-student-view) .screen-hero-subtle{font-weight:800;font-size:11px;color:#5e6c85;margin-left:auto}
body:not(.hq-student-view) .screen-workspace{gap:16px}
body:not(.hq-student-view) .screen-controls{gap:11px}
body:not(.hq-student-view) .screen-controls>.control-card{background:linear-gradient(158deg,#f2f6ff 0%,#f9fbff 60%,#eef3fd 100%);border:1px solid #b5c5e0;border-radius:17px;box-shadow:0 6px 16px rgba(13,31,60,.09),0 1px 3px rgba(13,31,60,.04);padding:13px 14px}
body:not(.hq-student-view) .screen-controls>.display-content-card{background:linear-gradient(135deg,#eef3fd 0%,#f9fbff 48%,#f4f1ff 100%);border-top:4px solid #4e408d;row-gap:4px;column-gap:16px}
body:not(.hq-student-view) .screen-controls .control-head{margin-bottom:9px;align-items:center}
body:not(.hq-student-view) .screen-controls .control-head h2{color:#213c6e;font-size:16px;font-weight:950}
body:not(.hq-student-view) .inline-content-head{align-items:center;gap:8px}
body:not(.hq-student-view) .inline-content-head .control-btn{padding:7px 9px;min-height:32px}
body:not(.hq-student-view) .inline-section-heading{margin-bottom:4px;padding-bottom:3px;gap:5px}
body:not(.hq-student-view) .inline-heading-title{font-size:17px!important;padding:3px 2px!important}
body:not(.hq-student-view) .inline-edit-mark{display:none}
body:not(.hq-student-view) .screen-controls .control-field textarea{min-height:72px!important;height:82px;line-height:1.42;font-size:13px;padding:9px 10px;color:#172b47;border-color:#b8c8de;box-shadow:inset 0 1px 2px rgba(22,35,54,.05);background:#fff;resize:vertical}
body:not(.hq-student-view) .screen-controls .control-field textarea.agenda-input{height:91px}
body:not(.hq-student-view) .screen-controls .control-field textarea.success-input{background:#f4fff7}
body:not(.hq-student-view) .screen-controls .control-field textarea.warmup-input{background:#f2fffe}
body:not(.hq-student-view) .screen-controls .control-field{margin-top:4px}
body:not(.hq-student-view) #savedScreenCard,body:not(.hq-student-view) #resourceManagerCard,body:not(.hq-student-view) #teacherDisplayCard,body:not(.hq-student-view) #timerSettingsCard{min-width:0}
body:not(.hq-student-view) .control-card .screen-utility-actions,body:not(.hq-student-view) .control-card .screen-actions{gap:6px}
body:not(.hq-student-view) .control-card .control-btn{padding:7px 9px;font-size:11px;border-radius:10px}
body:not(.hq-student-view) .resource-manager-form{grid-template-columns:1fr;gap:7px}
body:not(.hq-student-view) .resource-manager-form-actions{grid-column:1}
body:not(.hq-student-view) .resource-manager-form .control-field{margin:0}
body:not(.hq-student-view) .resource-manager-form input,body:not(.hq-student-view) .saved-screen-fields input{padding:8px 10px;font-size:12px;min-height:36px}
body:not(.hq-student-view) .resource-manager-form label,body:not(.hq-student-view) .saved-screen-fields label{font-size:11px}
body:not(.hq-student-view) .recovery-screens{margin-top:11px;padding-top:8px;border-top:1px solid #cfd9ed}
body:not(.hq-student-view) .recovery-screens summary{font-size:11px;font-weight:850;color:#415e88;cursor:pointer;display:list-item;list-style-position:inside}
body:not(.hq-student-view) .recovery-screens:not([open]) #recoveryScreenList{display:none}
body:not(.hq-student-view) .save-privacy-disclosure{font-size:10.5px;line-height:1.4;margin:9px 0 3px;color:#405875}
body:not(.hq-student-view) .display-setting-row{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:8px 0}
body:not(.hq-student-view) .display-setting-row label{font-size:12px;font-weight:850;color:#31466e}
body:not(.hq-student-view) .display-setting-row select{background:white;color:#21344e;border:1px solid #b8c8de;padding:7px 9px;border-radius:9px;max-width:65%;min-width:0;font-size:12px}
body:not(.hq-student-view) .teacher-projection-tools{margin:8px 0}
body:not(.hq-student-view) .teacher-zoom-label{margin-bottom:5px;font-size:12px}
body:not(.hq-student-view) .compact-display-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
body:not(.hq-student-view) .compact-display-footer{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin:8px 0 6px}
body:not(.hq-student-view) .timer-settings-card .preset-row{gap:4px}
body:not(.hq-student-view) .timer-settings-card .timer-control-main{margin-top:7px}
body:not(.hq-student-view) .timer-settings-card .timer-custom{margin-top:6px}
body:not(.hq-student-view) .screen-board-shell{top:78px}
/* Tooltip combines native pointer hover and focus with tap-to-toggle state. */
.hq-help{position:relative;display:inline-flex;align-items:center;vertical-align:middle;flex:none;margin-left:4px;z-index:1}
.hq-help:has(.hq-help-button:hover),.hq-help:has(.hq-help-button:focus-visible),.hq-help.is-open{z-index:50}
.hq-help-button{display:grid;place-items:center;cursor:help;width:19px;height:19px;border-radius:50%;border:1px solid #9caecd;background:#ebf2ff;color:#2c5081;font-size:12px;font-weight:900;font-style:normal;line-height:1;padding:0;box-shadow:none}
.hq-help-button:hover,.hq-help-button:focus-visible,.hq-help.is-open .hq-help-button{color:#fff;background:#3755a1;border-color:#3755a1;outline-offset:2px}
.hq-help-bubble{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%) translateY(5px);width:min(260px,calc(100vw - 34px));padding:10px 12px;border-radius:10px;background:#142b4e;color:#fff;font-weight:550;font-size:12px;line-height:1.5;box-shadow:0 12px 26px rgba(2,8,22,.26);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s,transform .12s;white-space:normal;letter-spacing:normal;text-transform:none;text-align:left}
.hq-help:hover .hq-help-bubble,.hq-help:has(.hq-help-button:focus-visible) .hq-help-bubble,.hq-help.is-open .hq-help-bubble{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.screen-title-inline .hq-help-bubble{left:0;transform:translateX(0) translateY(5px)}
.screen-title-inline .hq-help:hover .hq-help-bubble,.screen-title-inline .hq-help.is-open .hq-help-bubble,.screen-title-inline .hq-help:has(.hq-help-button:focus-visible) .hq-help-bubble{transform:translateX(0) translateY(0)}
.inline-section-menu-btn{font-size:18px;width:30px;height:30px}
.teacher-preview-heading .hq-help-bubble{left:auto;right:-60px;transform:translateY(5px)}
.teacher-preview-heading .hq-help:hover .hq-help-bubble,.teacher-preview-heading .hq-help:has(.hq-help-button:focus-visible) .hq-help-bubble,.teacher-preview-heading .hq-help.is-open .hq-help-bubble{transform:translateY(0)}
.teacher-preview-heading .hq-help-button,.projection-command-heading .hq-help-button{background:#f3f4ff;border-color:#aab9db}
body:not(.hq-student-view) .screen-controls .control-head h2 + .hq-help{margin-left:7px}
body:not(.hq-student-view) .screen-controls .control-head h2{display:inline}
/* Two balanced teacher utility columns on desktops, without changing DOM order. */
@media (min-width:1101px){
 body:not(.hq-student-view) .screen-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 body:not(.hq-student-view) .screen-controls #savedScreenCard,body:not(.hq-student-view) .screen-controls #resourceManagerCard,body:not(.hq-student-view) .screen-controls #timerSettingsCard,body:not(.hq-student-view) .screen-controls #teacherDisplayCard{grid-column:auto}
 body:not(.hq-student-view) .screen-controls #displayContentCard{grid-column:1/-1}
}
@media (min-width:761px) and (max-width:1100px){body:not(.hq-student-view) .screen-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}body:not(.hq-student-view) .screen-controls #displayContentCard{grid-column:1/-1}}
@media (max-width:760px){body:not(.hq-student-view) .classroom-screen-page{padding:5px 10px 42px}body:not(.hq-student-view) .screen-controls{grid-template-columns:1fr}body:not(.hq-student-view) .screen-controls>.control-card{padding:12px}body:not(.hq-student-view) .screen-hero-subtle{font-size:10px}body:not(.hq-student-view) .inline-heading-title{font-size:15px!important}.hq-help-bubble{left:auto;right:-20px;transform:translateY(5px)}.hq-help:hover .hq-help-bubble,.hq-help:has(.hq-help-button:focus-visible) .hq-help-bubble,.hq-help.is-open .hq-help-bubble{transform:translateY(0)}}
/* Never shrink/change full-screen Classroom Display. */
body.hq-student-view .screen-hero,body.hq-student-view .screen-controls{display:none!important}

body.hq-student-view .hq-help{display:none!important}
/* Keep hidden tooltip geometry within the viewport at tablet/mobile breakpoints. */
body:not(.hq-student-view) .hq-help-bubble{left:0;right:auto;transform:translateY(5px)}
body:not(.hq-student-view) .hq-help:hover .hq-help-bubble,body:not(.hq-student-view) .hq-help:has(.hq-help-button:focus-visible) .hq-help-bubble,body:not(.hq-student-view) .hq-help.is-open .hq-help-bubble{transform:translateY(0)}
body:not(.hq-student-view) .teacher-preview-heading .hq-help-bubble,body:not(.hq-student-view) #resourceManagerCard .hq-help-bubble,body:not(.hq-student-view) #teacherDisplayCard .hq-help-bubble{left:auto;right:0}
body:not(.hq-student-view) .inline-section-heading .hq-help-bubble{left:auto;right:0}
@media(max-width:760px){
 body:not(.hq-student-view) .hq-help .hq-help-bubble{width:min(175px,calc(100vw - 30px));left:0!important;right:auto!important;transform:translateY(4px)!important}
 body:not(.hq-student-view) .hq-help.tip-right .hq-help-bubble{left:auto!important;right:0!important}
 body:not(.hq-student-view) .hq-help:hover .hq-help-bubble,body:not(.hq-student-view) .hq-help.is-open .hq-help-bubble,body:not(.hq-student-view) .hq-help:has(.hq-help-button:focus-visible) .hq-help-bubble{transform:translateY(0)!important}
}
/* A purposeful slate-blue working surface distinguishes inputs from the navy live rail. */
body:not(.hq-student-view) .screen-controls{background:linear-gradient(140deg,#dfe9f8 0%,#d9e5f6 60%,#e8e7f8 100%);border:1px solid #bdcee7;padding:11px;border-radius:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
body:not(.hq-student-view) .teacher-preview-heading .hq-help{display:inline-flex!important;margin-left:6px;vertical-align:middle}
@media(max-width:760px){body:not(.hq-student-view) .screen-controls{padding:8px;border-radius:15px}}

/* A second tap dismisses help even when mobile browsers keep :hover sticky. */
.hq-help.is-dismissed .hq-help-bubble{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

/* v2.7 — round information buttons, viewport-safe help, and modal isolation. */
.hq-help{flex:0 0 auto!important;align-self:center;min-width:20px;min-height:20px}
button.hq-help-button{
  box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;
  flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;
  height:20px!important;min-height:20px!important;max-height:20px!important;
  aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;
  line-height:1!important;white-space:nowrap!important;vertical-align:middle;
}
.hq-help .hq-help-bubble{display:none!important}
.hq-floating-help{
  position:fixed;z-index:21000;box-sizing:border-box;width:min(296px,calc(100vw - 24px));
  max-height:min(260px,60dvh);overflow-y:auto;padding:12px 14px;
  border:1px solid rgba(255,255,255,.14);border-radius:12px;
  background:#142b4e;color:#fff;font:600 12px/1.5 system-ui,sans-serif;
  letter-spacing:normal;text-align:left;white-space:normal;
  box-shadow:0 12px 32px rgba(2,8,22,.35);pointer-events:none;
}
.hq-floating-help[hidden]{display:none!important}
body.hq-resource-open .hq-help,body.hq-resource-open .hq-floating-help{visibility:hidden!important;pointer-events:none!important}
/* Fixed overlays portaled to the viewport must never inherit preview scaling. */
body>.resource-viewer,body>.resource-drawer{isolation:isolate}

/* v2.8 — optional backup/restore controls stay collapsed by default. */
body:not(.hq-student-view) .classroom-backup-tools{margin-top:7px;padding-top:8px;}
body:not(.hq-student-view) .classroom-backup-tools .backup-info{font-size:12px;line-height:1.45;color:#455877;margin:10px 0 6px;}
body:not(.hq-student-view) .classroom-backup-tools .screen-utility-actions{margin-top:6px;}

/* v2.9 Essentials: quick switch; deliberately no scenes or weekly planner. */
body:not(.hq-student-view) .hq-quick-screen-bar{display:flex;align-items:center;gap:9px;min-width:0;background:#f0f5fc;border:1px solid #b9cbe4;border-radius:13px;padding:8px 11px;margin:0 0 11px;box-shadow:0 2px 8px rgba(18,48,83,.055)}
.hq-quick-screen-bar label{color:#1a3760;font-size:12px;font-weight:900;white-space:nowrap}
.hq-quick-screen-icon{color:#5433b6;font-size:19px}
.hq-quick-screen-bar select{min-width:130px;max-width:340px;flex:1 1 260px;border:1px solid #aebfda;background:#fff;color:#162945;border-radius:9px;padding:9px 10px;font:inherit;font-size:12px;font-weight:750;min-height:38px}
.hq-quick-screen-bar select:disabled{color:#738298;background:#f5f7fb}
.hq-quick-screen-save{min-height:38px;border:0;border-radius:9px;padding:8px 14px;color:#fff;background:#4932ba;font:inherit;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.hq-quick-screen-save:hover{background:#36238b}
.hq-quick-screen-tip{font-size:11px;color:#4d6381;font-weight:650;white-space:nowrap}
.hq-quick-screen-bar :is(select,button):focus-visible{outline:3px solid #7c3aed;outline-offset:2px}
.resource-stepper{display:flex;align-items:center;gap:5px;padding-right:5px;border-right:1px solid #dde3ed}
.resource-stepper>span{min-width:37px;text-align:center;color:#475569;font-weight:900;font-size:11px;white-space:nowrap}
.resource-stepper .resource-viewer-btn{padding:7px 8px;min-height:36px}
.resource-stepper .resource-viewer-btn:disabled{opacity:.4;cursor:not-allowed}
.hq-student-view .hq-quick-screen-bar,.hq-student-view .resource-stepper{display:none!important}
@media(max-width:1040px){.hq-quick-screen-tip{display:none}}
@media(max-width:600px){body:not(.hq-student-view) .hq-quick-screen-bar{flex-wrap:wrap;gap:7px;padding:9px}.hq-quick-screen-bar label{font-size:12px}.hq-quick-screen-bar select{flex:1 1 calc(100% - 180px);max-width:none;min-width:115px}.hq-quick-screen-save{padding:8px 10px}.resource-stepper{flex:0 0 auto}}

/* v2.10 — Cast display: show saved resources at the top of the board AND
   the projected document. Teacher preview and editors remain unchanged. */
.hq-cast-resource-nav{display:none}
.hq-student-view .hq-cast-resource-nav:not([hidden]){display:flex;align-items:center;gap:14px;min-width:0;width:100%;padding:7px 20px;border-bottom:1px solid color-mix(in srgb,var(--board-primary,#6042ae) 14%,#e1e7f3);background:linear-gradient(100deg,#f7f9ff,#f1f5fd);color:#23395f;box-sizing:border-box}
.hq-student-view .hq-cast-resource-label{flex:none;font-size:11px;letter-spacing:.04em;text-transform:uppercase;font-weight:950;color:#4b5c78;white-space:nowrap}
.hq-student-view .hq-cast-resource-list{display:flex;align-items:center;gap:7px;min-width:0;flex:1;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:2px 2px 4px}
.hq-student-view .hq-cast-resource-link{flex:none;display:inline-flex;align-items:center;justify-content:center;max-width:240px;min-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #cbd6e8;border-radius:10px;padding:7px 12px;background:#fff;color:#233b66;font:inherit;font-size:13px;font-weight:850;cursor:pointer;box-shadow:0 1px 3px rgba(26,48,82,.06)}
.hq-student-view .hq-cast-resource-link:hover{border-color:#927aca;background:#f6f3ff}
.hq-student-view .hq-cast-resource-link:focus-visible{outline:3px solid #7c3aed;outline-offset:2px}
.hq-student-view .hq-cast-resource-link.is-current{background:#4e2d91;color:white;border-color:#4e2d91}
.hq-student-view .hq-cast-resource-nav-viewer:not([hidden]){grid-column:1/-1;grid-row:auto;padding:7px 2px 1px;border-bottom:none;background:transparent}
.hq-student-view .hq-cast-resource-nav-viewer .hq-cast-resource-label{color:#475569}
@media(max-width:760px){.hq-student-view .hq-cast-resource-nav:not([hidden]){gap:8px;padding:7px 11px}.hq-student-view .hq-cast-resource-label{font-size:9px}.hq-student-view .hq-cast-resource-link{font-size:11px;min-height:36px;max-width:155px;padding:7px 9px}}

/* HQ v2.11: Small timer controller in the separate cast/browser display.
   Remains available above a projected document; the set-time panel is closed by default. */
.hq-student-view .student-display-tools{max-width:calc(100vw - 24px);flex-wrap:wrap;justify-content:flex-end}
.hq-student-view .student-cast-timer{display:flex;align-items:center;gap:5px;position:relative;min-height:48px;background:rgba(245,248,255,.97);border:1px solid #bfcce2;box-shadow:0 4px 17px rgba(17,35,68,.23);border-radius:14px;padding:5px 6px;color:#243b60}
.hq-student-view .student-cast-timer-readout{font-size:16px;font-weight:950;min-width:53px;text-align:center;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.hq-student-view .student-cast-timer button{font:inherit;font-weight:850;min-height:37px;padding:7px 9px;border:1px solid #cbd6e8;border-radius:9px;background:white;color:#284064;cursor:pointer;white-space:nowrap;font-size:12px}
.hq-student-view .student-cast-timer button:hover{background:#f0edff;border-color:#9785d9}
.hq-student-view .student-cast-timer button:focus-visible,.hq-student-view .student-cast-time-panel input:focus-visible{outline:3px solid #7c3aed;outline-offset:2px}
.hq-student-view .student-cast-timer .student-cast-timer-start{background:#5133a3;color:white;border-color:#5133a3;min-width:76px}
.hq-student-view .student-cast-timer .student-cast-timer-start:hover{background:#3f287b;color:white}
.hq-student-view .student-cast-time-panel:not([hidden]){display:grid;gap:9px;position:absolute;right:0;bottom:calc(100% + 9px);width:min(290px,calc(100vw - 30px));box-sizing:border-box;padding:14px;border:1px solid #c9d4e9;border-radius:14px;background:#fff;box-shadow:0 15px 40px rgba(14,31,59,.28);z-index:2147480002}
.hq-student-view .student-cast-time-panel>strong{font-size:14px;color:#223556}
.hq-student-view .student-cast-time-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hq-student-view .student-cast-time-inputs label{display:grid;gap:4px;font-size:12px;font-weight:850;color:#44536d}
.hq-student-view .student-cast-time-inputs input{font:inherit;font-size:16px;font-weight:800;min-width:0;width:100%;box-sizing:border-box;padding:7px 8px;border:1px solid #c5d0e2;border-radius:9px;color:#223556}
.hq-student-view .student-cast-time-actions{display:flex;gap:6px}
.hq-student-view .student-cast-time-actions button{flex:1}
.hq-student-view .student-cast-time-actions button.primary{background:#5133a3;color:#fff;border-color:#5133a3}
.hq-student-view .student-cast-time-panel p{font-size:11px;color:#8b3450;margin:0}
.hq-student-view .student-cast-time-panel p:empty{display:none}
@media(max-width:760px){.hq-student-view .student-display-tools{right:7px;bottom:7px;gap:5px}.hq-student-view .student-cast-timer{gap:3px;padding:4px}.hq-student-view .student-cast-timer-readout{font-size:13px;min-width:43px}.hq-student-view .student-cast-timer button{min-height:36px;font-size:10px;padding:6px 7px}.hq-student-view .student-cast-timer .student-cast-timer-start{min-width:62px}}
@media(max-width:520px){.hq-student-view .student-cast-timer{width:100%;justify-content:space-between}.hq-student-view .student-display-tools>.student-connect-btn,.hq-student-view .student-display-tools>.student-fullscreen-btn{padding:7px 10px;font-size:10px;min-height:33px}}
html.hq-student-view,html.hq-student-view body{overflow-x:clip}
html.hq-student-view .screen-board-shell{width:100vw!important;max-width:100vw!important;box-sizing:border-box}


/* v2.13 · Back-row readable cast display.  No changes to the private teacher
   editing workspace, timer authority, card order, or resource links. */
html.hq-student-view{
  --hq-cast-target:clamp(26px,1.91vw,37px);
  --hq-cast-target-two:clamp(26px,1.85vw,36px);
  --hq-cast-target-three:clamp(23px,1.67vw,33px);
  --hq-cast-body:clamp(23px,1.73vw,34px);
  --hq-cast-agenda:clamp(23px,1.73vw,34px);
  --hq-cast-warmup:clamp(26px,2.08vw,42px);
  --hq-cast-heading:clamp(18px,1.42vw,28px);
  --hq-cast-leading:1.17;
}
html.hq-student-view[data-cast-text="xl"]{
  --hq-cast-target:clamp(33px,2.94vw,46px);
  --hq-cast-target-two:clamp(31px,2.62vw,43px);
  --hq-cast-target-three:clamp(28px,2.36vw,38px);
  --hq-cast-body:clamp(29px,2.40vw,39px);
  --hq-cast-agenda:clamp(29px,2.40vw,39px);
  --hq-cast-warmup:clamp(35px,2.86vw,46px);
  --hq-cast-heading:clamp(21px,1.83vw,29px);
}
html.hq-student-view[data-cast-text="fit"]{
  --hq-cast-target:clamp(23px,1.96vw,32px);
  --hq-cast-target-two:clamp(21px,1.80vw,29px);
  --hq-cast-target-three:clamp(20px,1.65vw,27px);
  --hq-cast-body:clamp(20px,1.60vw,26px);
  --hq-cast-agenda:clamp(21px,1.72vw,28px);
  --hq-cast-warmup:clamp(25px,2vw,33px);
  --hq-cast-heading:clamp(18px,1.35vw,22px);
}
/* White backgrounds, strong ink, and section colour used as emphasis rather
   than long stretches of lower-contrast coloured body text. */
html.hq-student-view .screen-board{background:#f9faff!important;--board-ink:#26154d!important;--board-muted:#52617a!important;--board-surface:#fff!important;}
html.hq-student-view .teacher-preview-canvas{height:100%!important;max-height:100%!important;overflow:hidden!important;min-height:0!important;}
html.hq-student-view .board-main{
  flex:1 1 0!important;height:0!important;min-height:0!important;
  grid-auto-rows:min-content!important;align-content:start!important;
  gap:clamp(10px,.90vw,14px)!important;
  padding:clamp(10px,.8vw,13px) clamp(12px,1.2vw,22px) 44px!important;
  overflow-y:auto!important;overscroll-behavior-y:contain;
}
html.hq-student-view .board-main>.board-card{
  align-self:stretch!important; padding:clamp(11px,.90vw,14px) clamp(15px,1.10vw,20px)!important;
  border-radius:clamp(15px,1.3vw,21px)!important;
  background:#fff;box-shadow:0 3px 10px rgba(33,32,78,.045);
}
html.hq-student-view .board-main>.success-card{background:#f6fff7;color:#153c24;}
html.hq-student-view .board-main>.warmup-card{background:#f4fffd;color:#172c2b;}
html.hq-student-view .board-main>.board-timer{background:#f2f6ff;color:#21144e;}
html.hq-student-view .board-section-title{
  font-size:var(--hq-cast-heading)!important;line-height:1.12!important;
  padding-bottom:clamp(6px,.52vw,9px)!important;
  margin-bottom:clamp(8px,.68vw,12px)!important;
  letter-spacing:.006em!important;
}
html.hq-student-view .board-section-title>span:first-child{font-size:1.05em!important;}
html.hq-student-view .board-target{gap:clamp(9px,1vw,15px)!important;}
html.hq-student-view .target-row{
  font-size:var(--hq-cast-target)!important;line-height:var(--hq-cast-leading)!important;
  grid-template-columns:clamp(32px,2.50vw,40px) minmax(0,1fr)!important;
  gap:clamp(10px,.9vw,14px)!important;
  font-weight:850!important;letter-spacing:-.026em!important;
}
html.hq-student-view .board-target.target-count-2 .target-row{font-size:var(--hq-cast-target-two)!important;}
html.hq-student-view .board-target.target-count-3 .target-row,
html.hq-student-view .board-target.target-dense .target-row{font-size:var(--hq-cast-target-three)!important;}
html.hq-student-view .target-number{
  width:clamp(31px,2.45vw,39px)!important;height:clamp(31px,2.45vw,39px)!important;
  font-size:clamp(16px,1.22vw,20px)!important;
}
html.hq-student-view .board-success-list{gap:clamp(9px,1vw,15px)!important;}
html.hq-student-view .board-success-list li,
html.hq-student-view .board-success-list.success-dense li{
  grid-template-columns:clamp(28px,2.20vw,35px) minmax(0,1fr)!important;
  font-size:var(--hq-cast-body)!important;
  line-height:var(--hq-cast-leading)!important;
  font-weight:790!important;color:#13432b!important;
}
html.hq-student-view .board-success-list li:before{
  width:clamp(27px,2.05vw,33px)!important;height:clamp(27px,2.05vw,33px)!important;
  font-size:clamp(15px,1.15vw,18px)!important;
}
html.hq-student-view .board-agenda-list{gap:clamp(9px,.93vw,15px)!important;}
html.hq-student-view .board-agenda-list li{
  grid-template-columns:clamp(29px,2.15vw,35px) minmax(0,1fr)!important;
  font-size:var(--hq-cast-agenda)!important;line-height:var(--hq-cast-leading)!important;
  letter-spacing:-.013em!important;color:#21144e!important;
}
html.hq-student-view .board-agenda-list li:before{
  width:clamp(28px,2.05vw,33px)!important;height:clamp(28px,2.05vw,33px)!important;
  font-size:clamp(15px,1.08vw,18px)!important;
}
html.hq-student-view .board-warmup,
html.hq-student-view .board-warmup.warmup-dense{
  font-size:var(--hq-cast-warmup)!important;line-height:1.25!important;
  font-weight:850!important;color:#181e46!important;letter-spacing:-.022em!important;
}
html.hq-student-view .board-timer-display{
  font-size:clamp(70px,5.7vw,98px)!important;line-height:1.03!important;
  letter-spacing:-.065em!important;
}
html.hq-student-view .board-timer-status{font-size:clamp(17px,1.24vw,21px)!important;color:#33415c!important;}
html.hq-student-view .board-clock{font-size:clamp(36px,3.1vw,50px)!important;}
html.hq-student-view .board-date{font-size:clamp(19px,1.58vw,26px)!important;}
html.hq-student-view .hq-cast-resource-label{font-size:clamp(13px,1.03vw,17px)!important;color:#344260;}
html.hq-student-view .hq-cast-resource-link{font-size:clamp(15px,1.13vw,19px)!important;min-height:45px!important;max-width:310px!important;font-weight:830!important;}\nhtml.hq-student-view .hq-cast-resource-link{justify-content:flex-start!important;text-align:left!important;}\nhtml.hq-student-view .hq-cast-resource-link:first-child{justify-content:center!important;}

/* Use the lower-right area effectively on default five-section boards. The
   teacher may rearrange/hide/widen sections; those custom layouts keep their
   existing order and do not get rearranged by the cast style. */
@media(min-width:851px){
  html.hq-student-view[data-cast-balanced="on"] .board-main{
    grid-template-columns:minmax(0,1.27fr) minmax(0,1fr)!important;
    grid-template-areas:"target warmup" "agenda success" "agenda timer"!important;
    grid-template-rows:min-content min-content min-content!important;
  }
  html.hq-student-view[data-cast-balanced="on"] .board-main>.target-card{grid-area:target!important;}
  html.hq-student-view[data-cast-balanced="on"] .board-main>.warmup-card{grid-area:warmup!important;}
  html.hq-student-view[data-cast-balanced="on"] .board-main>.success-card{grid-area:success!important;}
  html.hq-student-view[data-cast-balanced="on"] .board-main>.board-timer{grid-area:timer!important;}
  html.hq-student-view[data-cast-balanced="on"] .board-main>.agenda-card{grid-area:agenda!important;}
}
/* On widescreen projection, use the header's free space for the teacher's
   cast controls instead of covering the final agenda line or timer status. */
@media(min-width:1200px){
  html.hq-student-view .student-display-tools:not([hidden]){
    top:13px!important;right:12px!important;bottom:auto!important;align-items:center;
  }
  html.hq-student-view .board-brand{visibility:hidden!important;}
  html.hq-student-view .board-main{padding-bottom:16px!important;}
  body.hq-resource-open .student-display-tools:not([hidden]){top:auto!important;bottom:12px!important;}
}
/* Overflow message for long custom boards: inform instead of silently clipping. */
html.hq-student-view .cast-overflow-hint:not([hidden]){display:block;position:fixed;left:14px;bottom:15px;z-index:2147480000;border-radius:999px;padding:9px 16px;background:rgba(31,26,76,.92);color:white;font:850 13px/1.2 system-ui,sans-serif;box-shadow:0 5px 20px rgba(17,21,58,.27);pointer-events:none;}
body.hq-resource-open .cast-overflow-hint{display:none!important;}
/* Cast-only control: teachers can cycle Large → XL → Fit without a second tab. */
.hq-student-view .student-text-size-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:43px;
  border:1px solid #c2c9e2;border-radius:11px;padding:9px 12px;
  background:rgba(255,255,255,.98);color:#39276d;
  font:850 13px/1.15 system-ui,sans-serif;cursor:pointer;
  white-space:nowrap;box-shadow:0 3px 14px rgba(28,23,69,.14);
}
.hq-student-view .student-text-size-btn:hover{background:#ebe5ff;}
.hq-student-view .student-text-size-btn:focus-visible{outline:3px solid #7c3aed;outline-offset:3px;}
html.hq-student-view .student-display-tools{max-width:calc(100vw - 20px);}
/* Keep controls out of the content path; cards can scroll when content is long. */
@media(max-width:850px){
  html.hq-student-view .board-main{grid-template-columns:minmax(0,1fr)!important;padding-bottom:74px!important;}
  html.hq-student-view .board-main>.board-card{padding:12px 15px!important;}
  html.hq-student-view{--hq-cast-target:clamp(25px,3.9vw,32px);--hq-cast-target-two:clamp(23px,3.5vw,29px);--hq-cast-target-three:clamp(21px,3.1vw,27px);--hq-cast-body:clamp(23px,3.3vw,28px);--hq-cast-agenda:clamp(23px,3.3vw,28px);--hq-cast-warmup:clamp(26px,4vw,33px);}
  html.hq-student-view[data-cast-text="xl"]{--hq-cast-target:clamp(27px,4.5vw,37px);--hq-cast-target-two:clamp(25px,4.1vw,34px);--hq-cast-target-three:clamp(23px,3.7vw,30px);--hq-cast-body:clamp(26px,3.7vw,32px);--hq-cast-agenda:clamp(26px,3.7vw,32px);--hq-cast-warmup:clamp(30px,4.5vw,38px);}
  html.hq-student-view[data-cast-text="fit"]{--hq-cast-target:23px;--hq-cast-target-two:22px;--hq-cast-target-three:21px;--hq-cast-body:20px;--hq-cast-agenda:21px;--hq-cast-warmup:24px;}
}
@media(max-height:740px) and (min-width:850px){
  html.hq-student-view .board-main{padding-top:9px!important;gap:9px!important;padding-bottom:72px!important;}
  html.hq-student-view .board-main>.board-card{padding:11px 16px!important;}
  html.hq-student-view .board-section-title{margin-bottom:8px!important;}
}
@media(max-width:520px){
  html.hq-student-view .student-text-size-btn{min-height:35px;padding:7px 8px;font-size:11px;}
  html.hq-student-view .hq-cast-resource-link{font-size:13px!important;min-height:38px!important;}
  html.hq-student-view .board-clock{font-size:32px!important;}
  html.hq-student-view .board-date{font-size:16px!important;}
}

/* Night theme: preserve the user's chosen dark presentation, not dark text on
   a white board. Keep sectional cues distinct and body lettering high contrast. */
html.hq-student-view .screen-board[data-theme="night"]{
  --board-ink:#f8fafc!important;--board-muted:#d0dbea!important;
  --board-surface:#19253e!important;
  background:#111b30!important;
  --target:#c4b5fd!important;--success:#86efac!important;
  --warmup:#77e8d8!important;--agenda:#fdba74!important;
  --timer:#a5b4fc!important;
}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.board-card{
  color:#f6f8ff!important;background:#1b2a45!important;border-color:#516079!important;
  box-shadow:0 4px 16px rgba(0,0,0,.18)!important;
}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.target-card{border-left:4px solid #bdaeff!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.success-card{
  background:#15392d!important;border:2px solid #3e9b69!important;
}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.warmup-card{
  background:#133c3a!important;border:2px solid #43b8ad!important;
}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.board-timer{
  background:#1a2a55!important;border:2px solid #6a88ff!important;
}
html.hq-student-view .screen-board[data-theme="night"] .board-success-list li{color:#dcfce7!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-agenda-list li,
html.hq-student-view .screen-board[data-theme="night"] .board-warmup,
html.hq-student-view .screen-board[data-theme="night"] .board-timer-status{color:#f8fafc!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-timer-display{color:#f8fafc!important;}


/* HQ Classroom Screen v2.14 — projector contrast / instructional hierarchy.
   CAST WINDOW ONLY. No changes to saved content, timer, links, or teacher editor. */
html.hq-student-view .screen-board:not([data-theme="night"]){
  background:#e7edf8!important;
}
html.hq-student-view .board-main>.board-card{
  --hq-card-x:clamp(15px,1.1vw,20px);
  --hq-card-y:clamp(11px,.90vw,14px);
  --hq-header:#4e2198;
  border:3px solid #6f49c7!important;
  box-shadow:0 4px 14px rgba(25,32,71,.16)!important;
  padding:var(--hq-card-y) var(--hq-card-x)!important;
  overflow:visible;
}
html.hq-student-view .board-main>.target-card{
  --hq-header:#53249e;
  background:#f7f3ff!important;
  border-color:#7350d1!important;
}
html.hq-student-view .board-main>.agenda-card{
  --hq-header:#a33912;
  background:#fff5ed!important;
  border-color:#df7541!important;
}
html.hq-student-view .board-main>.success-card{
  --hq-header:#146d3e;
  background:#effcf3!important;
  border-color:#2b995e!important;
}
/* The Warm-Up should read as today's challenge—not a fourth notice. */
html.hq-student-view .board-main>.warmup-card{
  --hq-header:#921b55;
  background:#ffebf3!important;
  border:5px solid #ba1e68!important;
  box-shadow:0 6px 20px rgba(128,22,78,.20)!important;
}
html.hq-student-view .board-main>.board-timer{
  --hq-header:#2059c7;
  background:#ecf2ff!important;
  border-color:#6188e8!important;
}
/* Solid, legible section header bands, distinct from the pale content area. */
html.hq-student-view .board-main>.board-card>.board-section-title{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff!important;
  background:var(--hq-header)!important;
  border:0!important;
  border-bottom:2px solid rgba(0,0,0,.10)!important;
  padding:clamp(9px,.68vw,12px) clamp(12px,1vw,18px)!important;
  margin:calc(-1 * var(--hq-card-y)) calc(-1 * var(--hq-card-x)) 12px!important;
  border-radius:clamp(10px,1vw,16px) clamp(10px,1vw,16px) 0 0!important;
  font-size:var(--hq-cast-heading)!important;
  font-weight:950!important;
  line-height:1.16!important;
  letter-spacing:0!important;
  text-shadow:0 1px 1px rgba(0,0,0,.12);
}
html.hq-student-view .board-main>.board-timer>.timer-title{
  justify-content:center!important;
}
html.hq-student-view .board-main>.warmup-card>.warmup-title{
  padding-top:12px!important;
  padding-bottom:12px!important;
}
html.hq-student-view .board-main>.warmup-card .board-warmup{
  color:#48102a!important;
  font-weight:850!important;
}
html.hq-student-view .board-main>.target-card .target-row,
html.hq-student-view .board-main>.agenda-card .board-agenda-list li{
  color:#251548!important;
}
html.hq-student-view .board-main>.board-timer .board-timer-display{
  color:#241147!important;
}
html.hq-student-view .board-main>.board-timer .board-timer-status{
  color:#283c68!important;
}
@media(max-width:850px){
  html.hq-student-view .board-main>.board-card{--hq-card-x:15px;--hq-card-y:12px;}
}
@media(max-height:740px) and (min-width:850px){
  html.hq-student-view .board-main>.board-card{--hq-card-x:16px;--hq-card-y:11px;}
  html.hq-student-view .board-main>.board-card>.board-section-title{margin-bottom:9px!important;padding-top:8px!important;padding-bottom:8px!important;}
}
/* The dark theme retains dark card bodies, but gains the same strong headings. */
html.hq-student-view .screen-board[data-theme="night"] .board-main>.board-card{
  border-color:#60708c!important;
  background:#1b2a45!important;
}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.target-card{--hq-header:#5f39ad;border-color:#9780ed!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.agenda-card{--hq-header:#9e431f;border-color:#ee9c60!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.success-card{--hq-header:#14683a;background:#15392d!important;border-color:#4bae77!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.warmup-card{--hq-header:#991d60;background:#481932!important;border:5px solid #f171b1!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.board-timer{--hq-header:#2b54ad;background:#1a2a55!important;border-color:#799aff!important;}
html.hq-student-view .screen-board[data-theme="night"] .board-main>.warmup-card .board-warmup,
html.hq-student-view .screen-board[data-theme="night"] .board-main>.target-card .target-row,
html.hq-student-view .screen-board[data-theme="night"] .board-main>.agenda-card .board-agenda-list li,
html.hq-student-view .screen-board[data-theme="night"] .board-main>.board-timer .board-timer-display,
html.hq-student-view .screen-board[data-theme="night"] .board-main>.board-timer .board-timer-status{color:#fff6fb!important;}

/* U09: keep the classroom-display action intrinsic; status may wrap beside it. */
body #projectionCommandDeck .projection-command-heading{flex-wrap:wrap}
body #projectionCommandDeck .projection-command-heading>div{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
body #projectionCommandDeck #quickOpenDisplay{flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:100%;white-space:normal;overflow-wrap:anywhere}
