/* A question is a viewport-sized workspace. Navigation is outside the
   independently scrollable content area, so it can never be pushed offscreen. */
html{height:100%;overflow-y:auto}
body{min-height:100%;overflow-y:auto}
.brand{gap:10px}
.brand>span{display:flex;flex-direction:column-reverse;gap:2px}
.brand .brand-endorsement{display:flex;align-items:center;gap:5px;font:12px "Segoe UI",Arial,sans-serif;letter-spacing:0;color:#f5f3e9;line-height:1}
.brand .brand-endorsement img{width:104px;height:29px;object-fit:contain;border-radius:0}
.brand>img{width:52px;height:52px}
.app-header{min-height:70px;padding:8px 24px}
body:has(#workspace:not([hidden])){height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
body:has(#workspace:not([hidden])) #main{min-height:0}
#workspace{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);max-width:1420px;margin:auto;padding:12px 24px;gap:12px}
.workspace-hero{margin:0;min-height:0;width:100%;padding:14px 24px;border-radius:12px}
.workspace-hero h1{font-size:28px;margin:3px 0}
.workspace-hero p{font-size:14px}
.workspace-hero .eyebrow{font-size:10px}
.workspace-grid{width:100%;min-height:0;margin:0;grid-template-columns:210px minmax(0,1fr);gap:24px}
.sidebar{position:static;min-height:0;overflow-y:auto;padding:6px 0}
.stages{margin:14px 0}
.stages li{padding-top:11px;padding-bottom:11px}
.sidebar-note{padding-top:14px;font-size:13px}
.working-area{min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px}
.workspace-topline{flex-shrink:0;margin:0;gap:8px;font-size:12px}
.workspace-topline>div{gap:10px}
.view-tabs{flex-shrink:0;gap:22px;margin:0}
.view-tabs button{padding:6px 2px;font-size:14px}
.working-area>.notice{flex-shrink:0;margin:0;padding:8px 12px;font-size:13px;max-height:72px;overflow-y:auto}
.question-card{flex:1;min-height:0;padding:18px 22px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px}
.question-content{min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;scrollbar-width:auto;scrollbar-gutter:stable}
.question-top{flex-shrink:0;justify-content:flex-start;gap:10px}
#question-count{margin-left:auto;white-space:nowrap;font-size:12px}
.question-art{flex-shrink:0;width:30px;height:30px;border-radius:8px;margin:0}
.question-art svg{width:21px;height:21px}
.question-card h2{flex-shrink:0;font-size:clamp(20px,2vw,28px);margin:0;line-height:1.18}
.hint{flex-shrink:0;font-size:14px;margin:0;line-height:1.4}
.answer-label{flex-shrink:0;margin:0;font-size:13px}
#answer{flex:1;min-height:72px;height:0;resize:none;padding:12px;font-size:16px;line-height:1.5;overflow-y:auto}
.answer-bottom{flex-shrink:0;margin:0;font-size:11px;flex-direction:row}
.question-navigation{flex-shrink:0;align-items:center;border-top:1px solid #e2e6dc;padding-top:10px;background:#fffefa}
.question-navigation button{min-height:40px;padding:8px 14px;font-size:14px}
#jump-open{font-weight:500;font-size:12px}
.review-card{flex:1;min-height:0;overflow-y:auto;padding:22px}
.review-actions{position:sticky;top:-22px;background:#fffefa;padding:12px 0;z-index:1}
body:has(#workspace:not([hidden])) footer{font-size:10px;padding:6px 24px;gap:10px}
body:has(#workspace:not([hidden])) footer a{font-size:11px}
@media(max-width:1000px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}}
@media(max-width:600px){
 .app-header{padding:6px 12px;min-height:62px}.brand strong{font-size:19px}.brand>img{width:42px;height:42px}.brand .brand-endorsement img{width:82px;height:23px}.private-label{display:none}
 #workspace{padding:8px 12px;gap:8px}.workspace-hero{padding:10px 14px}.workspace-hero h1{font-size:23px}.workspace-hero p{font-size:12px}.workspace-hero .eyebrow{display:none}
 .question-card{padding:12px;gap:8px}.question-content{gap:7px}.question-card h2{font-size:21px}.hint{font-size:13px}.question-top .eyebrow{font-size:10px;letter-spacing:.03em}
 .workspace-topline{font-size:11px;flex-wrap:nowrap}.workspace-topline>div{gap:6px}progress{width:55px}.question-navigation{gap:5px}.question-navigation .primary{min-width:88px}.question-navigation button{padding:8px 10px}#jump-open{font-size:11px;padding:6px}
 body:has(#workspace:not([hidden])) footer{padding:4px 12px}body:has(#workspace:not([hidden])) footer>span:nth-child(2){display:none}
}
@media(max-height:750px){
 .app-header{min-height:58px;padding-top:4px;padding-bottom:4px}.brand>img{width:42px;height:42px}.brand strong{font-size:20px}.brand .brand-endorsement img{width:82px;height:23px}
 #workspace{gap:8px;padding-top:8px;padding-bottom:8px}.workspace-hero{padding:9px 18px}.workspace-hero h1{font-size:24px}.workspace-hero .eyebrow{display:none}
 .question-card{padding:12px 16px;gap:8px}.question-content{gap:6px}.question-card h2{font-size:22px}.question-navigation{padding-top:8px}.stages li{padding-top:8px;padding-bottom:8px}
}
@media(max-height:560px){
 .workspace-hero{padding:5px 14px}.workspace-hero h1{font-size:20px;margin:0}.workspace-hero p,.stage-pill{display:none}.app-header{min-height:48px}.brand>img{width:36px;height:36px}.brand .brand-endorsement img{width:68px;height:19px}.brand strong{font-size:18px}
 #workspace{gap:6px;padding-top:6px;padding-bottom:6px}.working-area{gap:4px}.question-art{display:none}.question-card h2{font-size:19px}.hint{font-size:12px}.answer-bottom{display:none}.question-card{padding:9px 12px}.view-tabs button{padding:3px 2px}.question-navigation{padding-top:5px}
 body:has(#workspace:not([hidden])) footer{display:none}
}
@media(max-width:360px){.brand strong{font-size:16px}.question-navigation button{font-size:12px}.question-navigation .primary{min-width:78px}.question-top{gap:5px}#question-count{font-size:11px}}
/* Display the lettering from the official brand asset without re-typesetting it. */
.brand-wordmark{position:relative;display:inline-block;width:106px;height:20px;overflow:hidden}
.brand .brand-endorsement .brand-wordmark img{position:absolute;width:213px;height:59px;max-width:none;left:-103px;top:-14px;border-radius:0}
.review-card{display:flex;flex-direction:column;overflow:visible;gap:8px}
.review-content{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
.review-actions{position:static;flex-shrink:0;margin:0;padding:10px 0 0;border-top:1px solid #dce2d7;gap:7px}
.review-actions button{font-size:13px;min-height:38px;padding:8px 12px}
