/* Question workspace owns the viewport; no accumulated header/card heights. */
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]),html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) body{height:100dvh;overflow:hidden}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .shell{height:100dvh;min-height:0}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .main-shell{height:100dvh;display:flex;flex-direction:column;min-height:0}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .topbar{flex:0 0 auto;min-height:52px;padding:8px 22px;box-sizing:border-box}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;box-sizing:border-box;padding:14px 22px 18px;overflow:hidden}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>.simple-heading{min-height:48px;flex:0 0 auto;margin:0 0 12px;gap:12px}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>.simple-heading h1{font-size:24px;line-height:1.2;margin:4px 0}
html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>button{align-self:flex-start;flex:0 0 auto;margin-bottom:8px;padding:7px 12px;font-size:12px}
.answer-play-grid,.assigned-play-grid,.arena-play,.arena-play-layout{flex:1;min-height:0!important;height:100%;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);gap:18px;align-items:stretch!important}
.fixed-question-pane,.assigned-play-grid>.round,.arena-play>section,.arena-play-layout>.arena-question{position:relative!important;top:auto!important;height:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:18px!important;margin:0!important}
.fixed-question-pane>.row,.fixed-question-pane>.progress,.fixed-answer-actions,.arena-controls,.assigned-play-grid>.round>.row,.arena-play-layout>.arena-question>.row{flex:0 0 auto}
.fixed-question-pane .active-question{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.fixed-question-pane .qtext,.assigned-play-grid .qtext,.arena-question-card .qtext,.arena-play-layout .qtext{font-size:clamp(19px,1.7vw,26px)!important;line-height:1.4;margin:12px 0!important;flex:0 1 auto;max-height:28%;min-height:28px;overflow:auto;padding-right:7px}
.fixed-question-pane .active-question>label{margin:8px 0!important;max-width:360px!important}.fixed-question-pane .active-question>label input{height:40px;min-height:40px}.fixed-question-pane .active-question>.mini{font-size:11px;margin:7px 0;line-height:1.4}
.fixed-question-pane .reveal-choice-button{margin:9px 0;padding:10px 13px;flex:0 0 auto;min-height:38px}.fixed-question-pane .check-practice-answer{margin-top:10px;padding:12px;min-height:42px;flex:0 0 auto}
.fixed-answer-actions{margin-top:12px!important;padding:10px!important;min-height:48px}.fixed-answer-actions button{min-height:38px;padding:9px 12px}
.practice-side-info,.assigned-score-side,.arena-play>.score-side,.arena-play-layout>.score-side{height:100%;min-height:0;overflow:auto;box-sizing:border-box;align-self:stretch}
.practice-side-info{gap:12px!important}.practice-side-info .score-side,.assigned-score-side,.arena-play>.score-side,.arena-play-layout>.score-side{position:static;padding:18px!important;margin:0!important}
.practice-side-info .score-side strong,.assigned-score-side strong,.arena-play .score-side strong,.arena-play-layout .score-side strong{font-size:38px!important;line-height:1.1;margin:12px 0!important;display:block}
.practice-side-info .score-side p,.practice-side-info .panel p{font-size:12px;line-height:1.45;margin:9px 0}.practice-side-info .score-side .eyebrow{font-size:10px}.practice-side-info .score-side .progress{height:7px;margin:10px 0}.practice-side-info .panel{padding:15px!important}.practice-side-info .panel h3{font-size:17px;margin:0 0 9px}.practice-side-info .score-side small{font-size:10px;line-height:1.4}.practice-side-info .completion-detail{padding:10px 13px}.practice-side-info .completion-detail summary{font-size:12px}
.assigned-play-grid>.round h1{font-size:23px;margin:7px 0;flex:0 0 auto}.assigned-play-grid>.round>.panel{flex:1;min-height:0;overflow:hidden;margin:10px 0;padding:15px;display:flex;flex-direction:column}.assigned-play-grid>.round>.mini{font-size:10px;flex:0 0 auto;margin:7px 0 0}.assigned-play-grid .options,.arena-play .options,.arena-play-layout .options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.assigned-play-grid .option,.arena-play .option,.arena-play-layout .option{padding:9px;font-size:13px}.assigned-play-grid .options>.option.row,.arena-play .options>.option.row,.arena-play-layout .options>.option.row{grid-column:1/-1}
.arena-play>section{padding:0!important}.arena-question-card{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:18px!important;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.arena-controls{margin-top:12px;padding:0;display:flex;justify-content:space-between;gap:12px}.arena-play-layout>.arena-question>.row:last-of-type{margin-top:auto}.arena-play-layout>.arena-question>.mini{flex:0 0 auto;font-size:10px;margin:9px 0 0}
.answer-verdict{padding:14px!important;margin:10px 0!important;flex:0 0 auto}.answer-verdict strong{font-size:21px!important}.answer-verdict p{font-size:13px;margin:10px 0}.answer-verdict small{font-size:11px}
@media(max-width:850px){html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main{padding:10px 12px 80px}.answer-play-grid,.assigned-play-grid,.arena-play,.arena-play-layout{gap:12px;grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr)}html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .topbar{padding:6px 12px;min-height:46px}.fixed-question-pane,.assigned-play-grid>.round,.arena-play-layout>.arena-question{padding:13px!important}.fixed-question-pane .qtext,.assigned-play-grid .qtext,.arena-question-card .qtext,.arena-play-layout .qtext{font-size:20px!important}.practice-side-info .score-side strong{font-size:32px!important}}
@media(max-width:600px){.answer-play-grid,.assigned-play-grid,.arena-play,.arena-play-layout{grid-template-columns:1fr;position:relative}.practice-side-info,.assigned-score-side,.arena-play>.score-side,.arena-play-layout>.score-side{display:none!important}.fixed-question-pane .qtext,.assigned-play-grid .qtext,.arena-question-card .qtext,.arena-play-layout .qtext{font-size:20px!important;max-height:30%}.fixed-answer-actions button{font-size:11px;padding:8px}.fixed-question-pane .support-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.fixed-question-pane .support-choices button{font-size:12px;padding:8px}.answer-play-header h1{font-size:19px!important}.fixed-question-pane .active-question .option{font-size:12px;padding:8px}.fixed-question-pane .active-question[data-question-type=point] .point-area{grid-template-columns:1fr 1fr}}
@media(max-height:680px){html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>.simple-heading{min-height:35px;margin-bottom:8px}.fixed-question-pane .qtext,.assigned-play-grid .qtext,.arena-question-card .qtext,.arena-play-layout .qtext{font-size:19px!important;margin:8px 0!important;max-height:24%}.fixed-question-pane,.arena-play-layout>.arena-question{padding:12px!important}.fixed-question-pane .active-question>.mini{font-size:10px;margin:5px 0}.fixed-answer-actions{padding:7px!important;margin-top:8px!important}.fixed-question-pane .reveal-choice-button,.fixed-question-pane .check-practice-answer{padding:8px;margin:7px 0;min-height:34px}.fixed-question-pane #pointGrid,.assigned-play-grid #pointGrid,.arena-play-layout #pointGrid{max-height:145px}}
.assigned-arena{flex:1;min-height:0;height:100%;display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);gap:18px;align-items:stretch}.assigned-arena>.round{grid-column:1;grid-row:1;height:100%!important;min-height:0;display:flex;flex-direction:column;margin:0;padding:0}.assigned-arena>.game-score-panel{grid-column:2;grid-row:1;height:100%;overflow:auto;position:static;padding:18px}.assigned-arena>.round h1{font-size:24px;margin:8px 0}.assigned-arena>.round>.panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;margin:10px 0;padding:16px}.assigned-arena .qtext{max-height:28%;overflow:auto;font-size:22px;line-height:1.4;margin:10px 0}.assigned-arena .options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.assigned-arena .options>.option.row{grid-column:1/-1}.assigned-arena>.round>.row{flex-shrink:0}.assigned-arena>.round>.mini{font-size:10px;flex-shrink:0}.practice-side-info .game-score-panel,.arena-play>.game-score-panel{padding:18px!important;margin:0!important;min-height:0;position:static}.practice-side-info .game-score-panel .score-number,.assigned-arena .score-number,.arena-play>.game-score-panel .score-number{font-size:38px!important;line-height:1.1;margin:12px 0!important}.practice-side-info .game-score-panel .score-number small,.assigned-arena .score-number small,.arena-play .score-number small{font-size:15px!important;display:block;margin-top:8px}.practice-side-info .game-score-panel p,.arena-play>.game-score-panel p,.assigned-arena>.game-score-panel p{font-size:12px;margin:9px 0;line-height:1.45}.practice-side-info .game-score-panel .score-detail{padding-top:10px;margin-top:10px}.practice-side-info .game-score-panel .score-detail b{font-size:24px}.practice-side-info .game-score-panel .score-detail span{font-size:10px}.arena-play>.game-score-panel{height:100%;overflow:auto;align-self:stretch}.question-info-toggle,.question-info-close{display:none!important}
@media(max-width:600px){.assigned-arena{grid-template-columns:1fr!important}.assigned-arena>.game-score-panel,.arena-play>.game-score-panel{display:none!important}.question-info-toggle{display:block!important;position:absolute;right:14px;bottom:82px;z-index:8;font-size:11px;padding:6px 10px!important;min-height:28px;margin:0!important}.question-info-close{display:block!important;margin-bottom:12px}.fixed-answer-actions{margin-bottom:33px!important}.arena-controls{margin-bottom:30px}.assigned-arena>.round>.row:last-of-type{margin-bottom:30px}html[data-question-info=open] .practice-side-info,html[data-question-info=open] .assigned-arena>.game-score-panel,html[data-question-info=open] .arena-play>.game-score-panel,html[data-question-info=open] .arena-play-layout>.score-side{display:flex!important;position:fixed;inset:72px 12px 85px;height:auto!important;z-index:30;flex-direction:column;padding:18px!important;background:var(--surface)!important;border:2px solid var(--accent);border-radius:18px;box-shadow:0 10px 60px #210c2388;overflow:auto}.practice-side-info .completion-detail{margin:0}}

/* Phone play tray: safe-area aware, above the software keyboard, measured height. */
.phone-question-dock{display:none}
@media(max-width:800px){
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .sidebar{display:none!important}
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .shell,
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .main-shell{height:var(--question-visible-height,100dvh)!important}
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main{padding:8px 10px calc(var(--question-dock-height,150px) + 12px)!important}
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) .topbar{min-height:42px;padding:5px 10px!important}
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>.simple-heading{margin-bottom:8px;min-height:32px;gap:7px;flex-wrap:nowrap}
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>.simple-heading h1{font-size:18px!important;line-height:1.2}
 html:is([data-screen=challengeplay],[data-screen=play],[data-screen=roomplay],[data-screen=teamplay]) main>.simple-heading .eyebrow{font-size:9px}
 .answer-play-grid,.assigned-arena,.arena-play,.arena-play-layout{grid-template-columns:minmax(0,1fr)!important}
 .practice-side-info,.assigned-arena>.game-score-panel,.arena-play>.game-score-panel,.arena-play-layout>.score-side{display:none!important}
 .phone-question-dock{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;position:fixed;bottom:var(--question-keyboard-inset,0px);left:0;right:0;z-index:20;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:linear-gradient(145deg,#603449,#382333);border-top:2px solid #e5ab80;box-shadow:0 -8px 24px #21132366;box-sizing:border-box}
 .phone-question-dock .check-practice-answer{grid-column:1/-1;margin:0!important;width:100%;min-height:44px!important}
 .phone-question-dock>.fixed-answer-actions,.phone-question-dock>.arena-controls,.phone-question-dock>.row{display:flex;flex-wrap:wrap;gap:7px;margin:0!important;padding:0!important;min-height:0!important;align-items:stretch;background:transparent}
 .phone-question-dock button{min-height:44px!important;padding:9px 10px!important;font-size:12px!important;white-space:normal;line-height:1.25;touch-action:manipulation}
 .phone-question-dock>.fixed-answer-actions>button,.phone-question-dock>.arena-controls>button,.phone-question-dock>.row>button{flex:1}
 .phone-question-dock>.row>span{display:none}
 .phone-question-dock .question-info-toggle{display:block!important;position:static!important;margin:0!important;max-width:76px;font-size:11px!important}
 .phone-question-dock>.row>button.primary{flex-basis:100%}
 .question-info-close{display:block!important;flex-shrink:0;min-height:44px}
 html[data-question-info=open] .practice-side-info,html[data-question-info=open] .assigned-arena>.game-score-panel,html[data-question-info=open] .arena-play>.game-score-panel,html[data-question-info=open] .arena-play-layout>.score-side{display:flex!important;position:fixed;top:52px;left:10px;right:10px;bottom:calc(var(--question-keyboard-inset,0px) + var(--question-dock-height,150px) + 10px);height:auto!important;z-index:30;flex-direction:column;gap:12px;padding:16px!important;background:#503242!important;border:2px solid #e5ab80;border-radius:18px;box-shadow:0 8px 40px #210c2388;overflow:auto}
 .fixed-question-pane .active-question{overflow:auto;overscroll-behavior:contain}
 .assigned-arena>.round>.panel,.arena-question-card{overflow:auto;overscroll-behavior:contain}
 .arena-play-layout>.arena-question{overflow:auto}
 .fixed-question-pane .qtext,.assigned-arena .qtext,.arena-question-card .qtext,.arena-play-layout .qtext{flex-shrink:0;max-height:28%;font-size:19px!important}
 .assigned-arena>.round h1{font-size:18px;margin:5px 0}
 .assigned-arena>.round>.mini{display:none}
 .fixed-question-pane .support-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fixed-question-pane .active-question input,.assigned-arena input,.arena-play input,.arena-play-layout input{font-size:16px!important}
 .fixed-question-pane .active-question button,.assigned-arena .option,.arena-play .option,.arena-play-layout .option{min-height:44px}
}

/* Original plotted item visuals: textual coordinate alternatives remain available. */
.bank-line-visual{display:block;width:200px;max-width:100%;height:auto;margin:10px auto;background:#493043;border:1px solid #b798a4;border-radius:12px}.graph-text-equivalent{display:block;font:13px/1.5 system-ui;color:var(--muted);margin:8px 0}.topic-box>small{display:block;line-height:1.5;margin:10px 0}.topic-box>b{display:block;color:var(--accent);margin-top:12px}
