/* Shared lesson layouts: desktop overview, focused electronic board. */
.lesson-week-tabs[hidden],.lesson-question-nav[hidden],.lesson-deck-nav[hidden],.lesson-deck-slide[hidden],.lesson-week-board [hidden]{display:none!important}
.lesson-week-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.lesson-week-tabs button,.lesson-question-nav button,.lesson-deck-nav button{min-height:52px;padding:10px 18px;font:700 20px/1.3 system-ui;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--input);cursor:pointer}
.lesson-week-tabs button[aria-selected=true],.lesson-question-nav button[aria-pressed=true]{background:var(--accent);color:var(--on-accent,var(--ink));border-color:var(--accent)}
.lesson-week-tabs button:focus-visible,.lesson-question-nav button:focus-visible,.lesson-deck-nav button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.weekly-columns.lesson-week-board{grid-template-columns:minmax(0,1fr)}
.lesson-week-board .week-card header h3{font-size:24px}.lesson-week-board .week-topics{padding:14px 24px;font-size:20px;line-height:1.4}
.lesson-question-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 24px;border-top:1px solid var(--line);background:var(--input)}
.lesson-question-nav>span{font-size:18px;font-weight:700;margin-right:auto}.lesson-question-nav button{min-width:52px;padding:8px}
.lesson-question-nav button[data-answered=true]:after{content:' ✓';font-size:.65em}
.lesson-week-board .week-questions summary{font-size:clamp(28px,3vw,44px)!important;line-height:1.4;padding:22px 24px;grid-template-columns:1fr;cursor:default}
.lesson-week-board .week-questions summary:before,.lesson-week-board .week-questions summary:after{display:none}
.lesson-week-board .week-options{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 24px 24px;gap:12px}
.lesson-week-board .week-options button{font-size:clamp(23px,2vw,32px);min-height:72px;padding:14px 20px}
.lesson-week-board .week-feedback:not(:empty){font-size:24px;padding:0 24px 24px}
.theory-near-link{display:inline-flex!important;align-items:center;justify-content:center;padding:10px 18px!important;margin:10px 0 18px;border:1px solid var(--accent)!important;border-radius:10px;background:var(--accent);color:var(--on-accent,var(--ink))!important;font-size:18px;min-height:46px;text-decoration:none!important}
.theory-near-link:hover{filter:brightness(1.08)}.theory-near-subtitle{font-size:.9em;font-weight:500}
.lesson-board-only{display:none}
.lesson-theory-board .lesson-board-only{display:block}
.lesson-deck-nav{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;background:var(--card);border:1px solid var(--line);border-radius:14px;margin:18px 0 24px}
.lesson-deck-nav output{font-size:19px;font-weight:700;color:var(--muted)}.lesson-deck-nav button:disabled{opacity:.4;cursor:default}
.lesson-theory-board>h2{font-size:clamp(24px,2.5vw,34px);line-height:1.3;margin-block:12px}
.lesson-theory-board .lesson-deck-slide{padding:clamp(18px,3vw,32px);border:1px solid var(--line);border-radius:18px;background:var(--input)}
.lesson-theory-board .lesson-deck-slide h3{font-size:clamp(26px,2.5vw,38px);margin:0 0 16px}
.lesson-theory-board .lesson-deck-slide :is(p,li,.theory-lead){font-size:clamp(24px,2.3vw,34px)!important;line-height:1.5}
/* One question takes the full arena; all scores remain visible above it. */
.xum-battle .xb-scores{display:flex;flex-wrap:wrap;gap:10px}
.xb-score{flex:1 1 170px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border:2px solid var(--xb-line);border-radius:12px;background:var(--xb-panel);color:var(--xb-ink);font-size:clamp(18px,2vw,27px);font-weight:750}
.xb-score small{display:block;color:var(--xb-muted);font-size:13px;font-weight:500}.xb-score strong{font-size:1.35em;font-variant-numeric:tabular-nums}
.xb-score[aria-current=true]{border-color:var(--xb-accent);background:var(--xb-soft)}
.xum-battle.xb-in-round:not(.xb-finished) .xb-arena{grid-template-columns:minmax(0,1fr)!important}
.xb-in-round:not(.xb-finished) .xb-side>header{display:none}
.xb-in-round .xb-intro{display:none}.xum-battle.xb-in-round .xb-top h2{font-size:28px}.xb-in-round .xb-top .xb-kicker{display:none}
.xb-in-round:not(.xb-finished) .xb-content{justify-content:center;padding:clamp(20px,3vw,36px)}
.xb-in-round:not(.xb-finished) .xb-content .xb-question{font-size:clamp(30px,3.4vw,52px);line-height:1.35}
.xb-in-round:not(.xb-finished) .xb-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.xb-in-round:not(.xb-finished) .xb-choice{font-size:clamp(23px,2.2vw,34px);min-height:74px}
.xb-in-round:not(.xb-finished) .skill-formula{font-size:clamp(62px,6vw,88px)}
/* Topics are grouped and searchable without rebuilding the search field. */
.cs-topic-group{border:1px solid var(--cs-line);border-radius:12px;margin:9px 0;background:var(--cs-panel2);overflow:hidden}
.x67-sprint .cs-topic-group>summary{display:flex!important;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:14px;font-size:17px;font-weight:750;list-style:none}
.cs-topic-group>summary:before{content:'+';color:var(--cs-accent);font-size:22px}.cs-topic-group[open]>summary:before{content:'−'}
.cs-topic-group>summary small{margin-left:auto;font-size:13px;color:var(--cs-muted)}
.cs-topic-group .cs-mode-grid{padding:0 10px 10px;margin-top:0;gap:8px}
.cs-topic-search{margin:10px 0}.cs-topic-search label{display:block;font-size:15px;font-weight:650;margin-bottom:6px}
.x67-sprint .cs-topic-search input{font:inherit;font-size:17px;padding:12px;width:100%;min-height:48px;border-radius:10px;border:1px solid var(--cs-line);background:var(--cs-panel2);color:var(--cs-text)}
.x67-sprint .cs-topic-status{font-size:13px;color:var(--cs-muted);margin:8px 0}
@media(max-width:700px){.lesson-week-board .week-options,.xb-in-round:not(.xb-finished) .xb-choices{grid-template-columns:1fr}.lesson-week-tabs button{flex:1;font-size:16px;padding:10px}.lesson-deck-nav{gap:8px}.lesson-deck-nav button{padding:10px;font-size:17px}.lesson-deck-nav output{font-size:15px}.xb-score{flex-basis:120px}.xb-score small{font-size:12px}}
/* In class, navigation stays compact so the question and answers fit together. */
.lesson-tests-board .weekly-heading{margin:8px 0 12px;align-items:center}
.lesson-tests-board .weekly-heading h1{font-size:32px;line-height:1.1}.lesson-tests-board .weekly-heading p{font-size:15px}
.lesson-tests-board .weekly-near{padding:12px 18px}
.lesson-tests-board .weekly-near>h2{font-size:23px}.lesson-tests-board .weekly-near>p{font-size:13px;margin:5px 0 10px}
.lesson-tests-board .lesson-week-tabs{margin:8px 0 12px}
.lesson-tests-board .lesson-week-tabs button{min-height:46px;font-size:18px}
.lesson-tests-board .week-card header{padding:10px 16px;grid-template-columns:1fr auto}
.lesson-tests-board .week-card header h3{font-size:20px}.lesson-tests-board .week-card header small{font-size:14px}
.lesson-week-topics>summary{padding:9px 20px;font-size:17px;font-weight:650;cursor:pointer;color:var(--muted);background:var(--input)}
.lesson-week-topics>summary[hidden]{display:none!important}
.lesson-tests-board .lesson-question-nav{padding:8px 16px}.lesson-tests-board .lesson-question-nav button{min-height:46px;min-width:46px}
.lesson-tests-board .week-questions summary{padding:16px 20px;font-size:clamp(27px,2.5vw,36px)!important}
.lesson-tests-board .week-options{padding:0 20px 20px}.lesson-tests-board .week-options button{font-size:clamp(21px,1.9vw,28px);min-height:64px}
#theoryView.lesson-theory-page{padding:16px 20px;margin-top:0}
#theoryView.lesson-theory-page>.eyebrow{display:none}
#theoryView.lesson-theory-page .theory-heading{gap:12px;align-items:center}
#theoryView.lesson-theory-page .theory-heading h1{font-size:32px!important;line-height:1.2;margin:6px 0 12px}
#theoryView.lesson-theory-page #theoryReading,#theoryView.lesson-theory-page #theoryArticle{width:100%;max-width:none;margin-inline:0}
#theoryView.lesson-theory-page #theoryArticle>.eyebrow{font-size:13px;margin:8px 0}
#theoryView.lesson-theory-page #theoryArticle>h2{font-size:27px!important;line-height:1.3;margin:8px 0 12px}
#theoryView.lesson-theory-page .lesson-deck-nav{margin:12px 0;padding:8px}
#theoryView.lesson-theory-page #theoryArticle .lesson-deck-slide{padding:20px;margin-block:12px}
#theoryView.lesson-theory-page #theoryArticle .lesson-deck-slide h3{font-size:30px!important;margin:0 0 12px}
#theoryView.lesson-theory-page .lesson-deck-slide :is(p,li,.theory-lead){font-size:clamp(24px,2.2vw,32px)!important;line-height:1.45;margin-block:12px}
