/* Shared screen styling; printed worksheets keep their existing page rules. */
@media screen{
  :root{--ink:#eef2ed;--ink2:#fff;--panel:#f5f8f3;--line:#d0dcd2;--text:#183d2d;--muted:#5f7366;--green:#245e45;--blue:#245e45;--yellow:#f6c451;--gold:#8a651c}
  body.teacher-workspace,body.entry-mode,body.student-display,body.guide-page,body.legal-page{background:var(--ink);color:var(--text)}
  body.teacher-workspace:not(.teacher-board-mode),body.entry-mode,body.guide-page,body.legal-page{height:auto;min-height:100dvh;overflow-x:clip}
  body.teacher-workspace>.wrap{max-width:none;padding:14px 18px 32px}
  body.teacher-workspace>.wrap::before,body.teacher-workspace>.wrap>header,body.teacher-workspace>.wrap>.global-class-topline{display:none}
  body.teacher-workspace .view.active{animation:none}
  body.teacher-workspace .teacher-display-bar{gap:12px;margin:0 0 16px;padding:0 0 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
  body.teacher-workspace .teacher-display-bar>strong{color:var(--text);font-size:20px;letter-spacing:-.055em;white-space:nowrap}
  body.teacher-workspace .teacher-display-bar>div{align-items:center;gap:8px}
  body.teacher-workspace .teacher-display-bar button{min-height:38px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);box-shadow:none;font-size:14px;white-space:nowrap}
  body.teacher-workspace #openStudentDisplay{border-color:var(--green);background:var(--green);color:#fff}
  body.teacher-board-mode>.wrap{padding-bottom:14px}
  body.teacher-board-mode .teacher-display-bar{margin:0}
  body.teacher-workspace :is(.view,.inference-shell)>.stepbar{display:flex;align-items:center;gap:20px;margin:0 0 18px;padding:0 2px 4px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
  body.teacher-workspace .stepbar .step-link.step-link{position:relative;display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-width:0;min-height:34px;padding:3px 4px!important;border:1px solid transparent!important;border-radius:9px!important;background:none!important;box-shadow:none;text-align:left}
  body.teacher-workspace .stepbar .step-link[data-step]:not([data-step="5"])::after{content:"";position:absolute;left:calc(100% + 4px);top:calc(50% - 4px);width:12px;height:8px;background:#9db0a2;clip-path:polygon(0 42%,70% 42%,70% 0,100% 50%,70% 100%,70% 58%,0 58%);pointer-events:none}
  body.teacher-workspace .stepbar .step-link.done::after{background:var(--green)}
  body.teacher-workspace .stepbar .step-no{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;padding:0;border:1px solid #aebeaf;border-radius:50%;background:#fff;color:#5f7366;font-size:13px;font-weight:800;line-height:1}
  body.teacher-workspace .stepbar .done .step-no{border-color:var(--green);background:var(--green);color:#fff}
  body.teacher-workspace .stepbar .step-link.on{border-color:#e6c667!important;background:#fff5da!important}
  body.teacher-workspace .stepbar .on .step-no{border-color:#dfb13b;background:var(--yellow);color:#3c3018}
  body.teacher-workspace .stepbar .step-copy small{display:none}
  body.teacher-workspace .stepbar .step-copy{display:block;padding:0;border:0;background:none;box-shadow:none}
  body.teacher-workspace .stepbar .step-copy strong{padding:0;border:0;background:none;color:#586d5e;font-size:14px;font-weight:700}
  body.teacher-workspace .stepbar .on .step-copy strong{color:var(--green)}
  body.teacher-workspace #gameView .stepbar .step-copy strong{color:#586d5e}
  body.teacher-workspace #gameView .stepbar .on .step-copy strong{color:var(--green)}
  body.teacher-workspace #gameView>.stepbar{margin-bottom:0;overflow:visible}
  body.teacher-workspace :is(.primary,.secondary,.tbtn,.class-back),.student-display :is(.primary,.secondary){min-height:40px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);box-shadow:none;font-size:14px;font-weight:750}
  body.teacher-workspace .primary,.student-display .primary{border-color:#edb437;background:var(--yellow);color:#3c3018}
  body.teacher-workspace :is(.primary,.secondary,.tbtn,.rank-button):hover{transform:none;box-shadow:none}
  body.teacher-workspace :is(.card,.game-card){padding:24px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:none}
  body.teacher-workspace :is(.card,.game-card) h2{margin-top:0;color:var(--text);font-family:inherit;font-size:28px;font-weight:800;letter-spacing:-.055em;line-height:1.25}
  body.teacher-workspace .sub{margin:8px 0 20px;color:var(--muted);font-size:15px;line-height:1.6}
  body.teacher-workspace :is(input,select){border-color:#bfcfc2;border-radius:9px;background:#f8faf6;color:var(--text);font-size:16px}
  body.teacher-workspace :is(button,input,a):focus-visible{outline:3px solid #e8ba4f;outline-offset:3px}
  body.teacher-workspace .legal-footer{max-width:none;margin-top:32px;padding-bottom:0;border-color:var(--line)}
  body.teacher-workspace .legal-footer p{display:none}
  body.teacher-workspace .legal-footer a{font-size:13px}
  body.teacher-workspace :is(.analysis-display-actions,.worksheet-preview-actions){padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:none}
  body.teacher-workspace .analysis-display-actions{margin:0 0 18px}
  /* Entry uses the same type, fields and action colors as the teaching workspace. */
  body.entry-mode .entry-shell{grid-template-columns:minmax(0,1fr) minmax(380px,1fr);background:var(--ink)}
  body.entry-mode .entry-intro{gap:16px;padding:48px;background:var(--ink);color:var(--text)}
  body.entry-mode .entry-intro::before,body.entry-mode .entry-intro::after,body.entry-mode .entry-coordinate,body.entry-mode .entry-kicker{display:none}
  body.entry-mode .entry-intro h1{font-family:inherit;font-size:clamp(32px,4vw,56px);font-weight:850;line-height:1.15;letter-spacing:-.06em}
  body.entry-mode .entry-lead{margin:0;color:var(--muted);font-size:17px;line-height:1.7}
  body.entry-mode .entry-form{width:calc(100% - 48px);margin:32px auto;padding:32px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:none}
  body.entry-mode .entry-form-head{margin-bottom:24px}
  body.entry-mode .entry-form-head>span,body.entry-mode .entry-field b,body.entry-mode .entry-grade b{display:none}
  body.entry-mode .entry-form-head strong{font-family:inherit;font-size:27px;font-weight:800}
  body.entry-mode .entry-field>span:first-child,body.entry-mode .entry-grade legend{font-size:15px}
  body.entry-mode :is(.entry-text-input,.school-input,.entry-grade span){height:48px;border-color:#bfcfc2;border-radius:9px;background:#f8faf6;font-size:16px}
  body.entry-mode .entry-grade input:checked+span{border-color:var(--green);background:var(--green);color:#fff}
  body.entry-mode .entry-submit{min-height:48px;margin-top:22px;border:1px solid #edb437;border-radius:9px;background:var(--yellow);font-size:16px;box-shadow:none;transform:none}
  body.entry-mode .entry-submit>b{width:auto;height:auto;border-radius:0;background:none;color:inherit}
  body.entry-mode .entry-guide-link{min-height:44px;padding:10px 14px;border-color:var(--line);border-radius:9px;background:#fff;transform:none}
  body.entry-mode .entry-guide-play,body.entry-mode .entry-guide-link small{display:none}
  body.entry-mode .entry-guide-link{grid-template-columns:1fr auto}
  body.entry-mode .entry-privacy{font-size:13px;text-align:left;line-height:1.6}
  /* Class selection and preparation panels. */
  body.teacher-workspace #classView .class-shell{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1180px;gap:16px}
  body.teacher-workspace #classView .class-prep-tab{grid-column:1;grid-row:1}
  body.teacher-workspace #classView .class-inquiry-banner{grid-column:2;grid-row:1;margin:0}
  body.teacher-workspace #classView .class-heading{grid-column:1/-1;grid-row:2;margin:8px 0 0}
  body.teacher-workspace #classView .class-grid{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  body.teacher-workspace #classView :is(.class-prep-tab,.class-inquiry-banner){padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:none}
  body.teacher-workspace :is(.class-prep-copy>span,.class-inquiry-kicker,.class-heading::after,.class-profile>p){display:none}
  body.teacher-workspace #classView :is(.class-prep-copy>strong,.class-inquiry-banner h2){font-size:23px;font-weight:800;line-height:1.2}
  body.teacher-workspace .class-inquiry-banner p{font-size:14px;line-height:1.55}
  body.teacher-workspace #classView .class-prep-tab .class-page-tools{flex-wrap:wrap;gap:6px;margin-top:16px}
  body.teacher-workspace #classView .class-page-tools>.tbtn{min-height:36px;margin:0;padding:7px 10px;font-size:13px}
  body.teacher-workspace .class-heading{margin:8px 0 0;padding:0 0 12px;border-color:var(--line)}
  body.teacher-workspace .class-heading h2{margin:10px 0 0;font-size:30px;font-weight:800}
  body.teacher-workspace .class-heading>span{display:none}
  body.teacher-workspace #classView .class-heading::after{display:none}
  body.teacher-workspace .class-heading .class-profile strong{font-size:16px}
  body.teacher-workspace .class-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  body.teacher-workspace #classView .class-choice-item{position:relative;padding-bottom:32px;min-width:0}
  body.teacher-workspace #classView .class-choice{--class-accent:#67796b;width:100%;min-height:110px;gap:4px;padding:14px;border:1px solid var(--class-border,var(--line));border-radius:12px;background:var(--class-bg,#fff);box-shadow:none;transform:none}
  body.teacher-workspace #classView .class-reset{position:absolute;right:0;bottom:0;min-height:28px;padding:3px 7px;border-radius:5px;color:#985448;font-size:13px;font-weight:700}
  body.teacher-workspace #classView .class-reset:hover{text-decoration:underline}
  body.teacher-workspace #classView :is(.class-reset,.class-choice):disabled{opacity:.6;cursor:wait}
  body.teacher-workspace #classView .class-choice[data-state="preparing"]{--class-accent:#906712;--class-border:#dcc279;--class-bg:#fff8e4}
  body.teacher-workspace #classView .class-choice[data-state="playing"]{--class-accent:#206b9b;--class-border:#8bb5d0;--class-bg:#edf6fc}
  body.teacher-workspace #classView .class-choice[data-state="finished"]{--class-accent:#246b46;--class-border:#8fbaa0;--class-bg:#eaf5ed}
  body.teacher-workspace #classView .class-choice::before,body.teacher-workspace #classView .class-choice::after{display:none}
  body.teacher-workspace #classView .class-choice b{font-size:26px;color:var(--class-accent)}
  body.teacher-workspace #classView .class-choice span{margin-top:6px;padding:0;background:none;font-size:13px;color:var(--muted)}
  body.teacher-workspace #classView .class-choice .class-status{margin:0;color:var(--class-accent);font-size:14px;line-height:1.4}
  body.teacher-workspace #classView .class-choice .class-progress{display:flex;gap:3px;width:100%;margin:6px 0 0}
  body.teacher-workspace #classView .class-progress i{display:block;flex:1;height:6px;border-radius:2px;background:linear-gradient(to right,var(--class-accent) var(--progress),#dce5df var(--progress))}
  body.teacher-workspace .class-inquiry-status{align-self:flex-start;margin-top:12px;border-radius:8px;background:#edf4eb;font-size:14px}
  /* Team setup and the visible rank buttons share one control style. */
  body.teacher-workspace .setupgrid{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:16px}
  body.teacher-workspace .setupgrid .setup-guide{background:#fff}
  body.teacher-workspace .fieldrow{gap:10px;margin:18px 0}
  body.teacher-workspace .fieldrow label{font-size:15px}
  body.teacher-workspace .name-list{gap:10px}
  body.teacher-workspace .name-row{padding:0;border:0;background:none}
  body.teacher-workspace .name-row input{min-width:0;height:44px;padding:8px 10px;font-size:16px}
  body.teacher-workspace .name-row b{width:26px;color:var(--green);font-size:14px}
  body.teacher-workspace .team-name-privacy{font-size:14px;line-height:1.6}
  body.teacher-workspace .team-name-privacy strong{color:var(--green);font-size:14px}
  body.teacher-workspace .rule-item{padding:12px 0;border-color:var(--line)}
  body.teacher-workspace .rule-item>b{border-radius:8px;background:#edf4eb;color:var(--green)}
  body.teacher-workspace .rule-item strong{font-size:16px}
  body.teacher-workspace :is(.rule-item span,.rule-note,.snake-note){font-size:14px;line-height:1.6}
  body.teacher-workspace .order-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,.7fr);gap:16px}
  body.teacher-workspace .order-list{gap:8px}
  body.teacher-workspace .order-row{display:grid;grid-template-columns:28px minmax(60px,.5fr) minmax(0,2fr);gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8faf6}
  body.teacher-workspace .order-row .nm{font-size:16px}
  body.teacher-workspace .order-position>span{display:none}
  body.teacher-workspace .order-position{min-width:0;margin:0}
  body.teacher-workspace .rank-buttons{gap:5px;flex-wrap:wrap}
  body.teacher-workspace .rank-button{min-width:0;min-height:34px;padding:4px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--green);font-size:14px}
  body.teacher-workspace .rank-button.on{border-color:var(--green);background:var(--green);color:#fff}
  body.teacher-workspace .draft-preview{background:#fff}
  body.teacher-workspace .draft-round,.teacher-workspace .snake-bridge{border-color:var(--line);border-radius:10px;background:#f5f8f3}
  /* Analysis, concepts and reusable dialogs. */
  .analysis-toc{position:sticky;top:8px;z-index:20;margin:0 0 18px;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;box-shadow:none}
  .analysis-toc>strong{display:none}
  .analysis-toc>div{display:flex;gap:0;overflow-x:auto;scrollbar-width:thin}
  .analysis-toc a{display:flex;flex:1 0 auto;align-items:center;justify-content:center;min-height:48px;padding:12px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--muted);font-size:15px;font-weight:700;line-height:1.4;text-decoration:none;white-space:nowrap}
  .analysis-toc a:hover,.analysis-toc a:focus-visible{color:var(--green)}
  .analysis-toc a[aria-current="location"]{border-bottom-color:var(--green);color:var(--green);font-weight:800}
  #resultView [data-analysis-section]{scroll-margin-top:72px}
  body.teacher-workspace :is(.analysis-hero,.concept-page-head){display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 18px;padding:24px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--text);box-shadow:none}
  body.teacher-workspace :is(.analysis-hero>p,.concept-learning-kicker,.concept-learning-check,.analysis-kicker){display:none}
  body.teacher-workspace :is(.analysis-hero h2,.concept-page-head h2,#resultView [aria-labelledby="inquiryQ4"]>h2){margin:0;font-family:inherit;font-size:30px;font-weight:800;line-height:1.3;letter-spacing:-.055em}
  body.teacher-workspace .analysis-hero{display:block}
  body.teacher-workspace :is(.analysis-hero>span,.concept-page-head p){display:block;margin:10px 0 0;color:var(--muted);font-size:15px;line-height:1.65}
  body.teacher-workspace .inquiry-card{margin-top:16px}
  body.teacher-workspace .inquiry-card>h2{font-size:25px}
  body.teacher-workspace .inquiry-prompt{font-size:15px;line-height:1.65}
  body.teacher-workspace #resultView [aria-labelledby="inquiryQ4"]{background:#fff}
  body.teacher-workspace #resultView .inquiry-card header{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
  body.teacher-workspace #resultView .inquiry-card header::after{display:none}
  body.teacher-workspace #resultView :is(.evidence-step header small,.evidence-trends>header>span,.phase-best-wrap>header>span){display:none}
  body.teacher-workspace #inquiryProgress :is(.evidence-journey,.phase-best){grid-template-columns:repeat(3,minmax(0,1fr))}
  body.teacher-workspace .result-chart-legend{font-size:13px}
  body.teacher-workspace .analysis-layer-tabs{gap:8px;flex-wrap:wrap}
  body.teacher-workspace .analysis-layer-tabs button{min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--green);font-size:14px}
  body.teacher-workspace .analysis-layer-tabs button[aria-pressed=true]{border-color:var(--green);background:var(--green);color:#fff}
  body.teacher-workspace :is(.concept-main-card,.concept-teaching-card,.concept-teacher-prompt,.evidence-step,.evidence-trends,.phase-best-wrap){padding:20px;border-color:var(--line);border-radius:12px;background:#fff;box-shadow:none}
  body.teacher-workspace .concept-main-card{min-height:0}
  body.teacher-workspace :is(.concept-main-card p,.concept-teaching-card p,.concept-teacher-prompt){font-size:15px;line-height:1.65}
  body.teacher-workspace :is(.concept-example,.concept-reading-steps span){font-size:14px;line-height:1.55}
  body.teacher-workspace .concept-index{width:28px;height:28px;border-radius:8px}
  body.teacher-workspace :is(.concept-reading-steps li,.phase-best span){border:1px solid var(--line);border-radius:9px;background:#f5f8f3}
  body.teacher-workspace .concept-reading-steps b{font-size:14px}
  body.teacher-workspace :is(.evidence-step>p,.evidence-value span){font-size:14px}
  body.teacher-workspace :is(.inference-dialog,.inference-hint-dialog,.grid-balance-dialog,.selected-blocks-dialog,.answer-reveal-dialog){border-color:var(--line);background:var(--ink);color:var(--text)}
  body.teacher-workspace :is(.inference-hint-dialog,.grid-balance-dialog,.selected-blocks-dialog,.answer-reveal-dialog){border-radius:15px}
  body.teacher-workspace .inference-dialog{padding:14px 18px}
  body.teacher-workspace .inference-shell{max-width:1330px}
  body.teacher-workspace .inference-class-topline{display:none}
  body.teacher-workspace .inference-brand-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:0 0 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
  body.teacher-workspace .inference-brand-header::after{display:none}
  body.teacher-workspace .inference-brand-header .brand{display:flex;align-items:center;gap:10px;padding:0;border:0}
  body.teacher-workspace .inference-brand-header .eyebrow{display:none}
  body.teacher-workspace .inference-brand-header h1{margin:0;font-family:inherit;font-size:20px;font-weight:800;letter-spacing:-.055em}
  body.teacher-workspace #inferenceClassTop{min-height:38px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--green);font-size:14px}
  body.teacher-workspace .inference-stepbar{position:static;backdrop-filter:none}
  body.teacher-workspace .inference-head{display:flex;align-items:center;gap:16px;margin:0 0 16px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  body.teacher-workspace .inference-head::after{display:none}
  body.teacher-workspace .inference-head h2{margin:0;font-size:30px}
  body.teacher-workspace .inference-step{margin:0 0 6px;color:var(--muted);font-size:14px}
  body.teacher-workspace .inference-hints{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
  body.teacher-workspace .inference-hint{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
  body.teacher-workspace .inference-hint>span{font-size:24px}
  body.teacher-workspace .inference-hint h3{margin:8px 0;font-size:20px}
  body.teacher-workspace .inference-hint>p,.teacher-workspace .inference-kicker,.teacher-workspace .inference-selection-note{display:none}
  body.teacher-workspace .inference-selection-overview{margin:16px 0;padding:18px;border-color:var(--line);border-radius:12px;background:#fff;box-shadow:none}
  body.teacher-workspace .inference-selection-head h3{font-size:23px}
  body.teacher-workspace .inference-timer{padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}
  body.teacher-workspace #inferenceClock{font-size:88px;color:var(--green)}
  body.teacher-workspace :is(#inferencePrompt,#inferenceStatus){font-size:15px}
  body.teacher-workspace .inference-actions{position:static;display:flex;justify-content:center;width:auto;margin:18px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  body.teacher-workspace :is(.hint-card,.hint-display-actions){border-color:var(--line);border-radius:10px;background:#fff;box-shadow:none}
  body.teacher-workspace .hint-card{min-height:70px}
  body.teacher-workspace .hint-card.active{border-color:var(--green);background:#edf4eb}
  body.teacher-workspace .hint-card .status{display:none}
  body.teacher-workspace .hint-card .title{font-size:15px}
  body.teacher-workspace .hint-source{font-size:13px;line-height:1.5}
  body.teacher-workspace .data-note{font-size:14px;line-height:1.6;background:#f5f8f3}
  body.teacher-workspace .worksheet-preview-actions h2{font-size:25px}
  body.teacher-workspace .worksheet-preview-actions p{font-size:14px}
  /* Published and standalone pages share the same palette and surface treatment. */
  .student-display :is(.student-map,.student-score,.student-round-pick,.inquiry-card){border-color:var(--line);border-radius:12px;background:#fff;box-shadow:none}
  .student-display .student-display-header{border-color:var(--line);background:#fff}
  .student-display .student-score{border-top-color:var(--team)}
  .student-display .student-analysis :is(.analysis-hero h2,.inquiry-card>h2){font-family:inherit;font-size:28px;font-weight:800;line-height:1.3;letter-spacing:-.055em}
  .student-display .student-analysis :is(.inquiry-prompt,.analysis-hero>span){font-size:16px;line-height:1.6}
  .student-display .student-analysis .card{padding:24px}
  .student-display .student-analysis .inquiry-card header{margin:0 0 12px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
  .student-display .student-analysis .inquiry-card header::after{display:none}
  body.entry-mode .entry-form{transform:none}
  body.entry-mode .legal-footer p{display:none}
  .legal-page main{border-color:var(--line);border-radius:15px;background:#fff;box-shadow:none}
  .legal-page header{padding-bottom:18px;border-bottom:1px solid var(--line)}
  .legal-page h1{font-size:36px;letter-spacing:-.055em}
  .legal-page .back{border-color:var(--line);border-radius:9px;background:#fff;color:var(--green);font-size:14px}
  .guide-page .guide-shell{max-width:1180px}
  .guide-page :is(.guide-video-heading,.guide-intro h2){font-family:inherit;font-size:34px;font-weight:800;letter-spacing:-.055em}
  .guide-page :is(.guide-nav>span,.guide-video::before,.guide-intro>span,.guide-cta small){display:none}
  .guide-page :is(.guide-video,.guide-route li,.guide-cta){border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:none}
  .guide-page .guide-cta{color:var(--green)}
}
@media screen and (max-width:1099px){
  body.teacher-workspace .setupgrid,body.teacher-workspace .order-layout{grid-template-columns:minmax(0,1fr)}
  body.teacher-workspace .draft-rounds{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (min-width:700px) and (max-width:760px){
  body.teacher-workspace :is(.view,.inference-shell)>.stepbar{gap:12px}
  body.teacher-workspace .stepbar .step-link.step-link{gap:5px;min-height:30px;padding:3px!important}
  body.teacher-workspace .stepbar .step-no{flex-basis:22px;width:22px;height:22px;font-size:12px}
  body.teacher-workspace .stepbar .step-copy strong{font-size:13px}
  body.teacher-workspace .stepbar .step-link[data-step]::after{left:calc(100% + 2px);width:8px}
}
@media screen and (max-width:699px){
  .analysis-toc{top:4px}
  body.teacher-workspace>.wrap{padding:12px}
  body.teacher-workspace .teacher-display-bar{align-items:flex-start}
  body.teacher-workspace .teacher-display-bar>div{flex-wrap:wrap;margin-left:0}
  body.teacher-workspace :is(.view,.inference-shell)>.stepbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px}
  body.teacher-workspace .stepbar .step-link[data-step="2"]::after,body.teacher-workspace .stepbar .step-link[data-step="4"]::after{display:none}
  body.teacher-workspace #classView .class-shell{grid-template-columns:minmax(0,1fr)}
  body.teacher-workspace #classView :is(.class-prep-tab,.class-inquiry-banner){grid-column:1;grid-row:auto;padding:18px}
  body.teacher-workspace #classView .class-prep-tab{grid-row:1}
  body.teacher-workspace #classView .class-inquiry-banner{grid-row:2}
  body.teacher-workspace #classView .class-heading{grid-row:3}
  body.teacher-workspace #classView .class-grid{grid-column:1;grid-row:4;grid-template-columns:repeat(3,minmax(0,1fr))}
  body.teacher-workspace .order-row{grid-template-columns:24px minmax(0,1fr);padding:10px}
  body.teacher-workspace .order-position{grid-column:1/-1}
  body.teacher-workspace :is(.card,.game-card){padding:18px}
  body.teacher-workspace :is(.analysis-hero,.concept-page-head){padding:20px;flex-direction:column}
  body.teacher-workspace :is(.analysis-hero h2,.concept-page-head h2){font-size:26px}
  body.teacher-workspace .inference-dialog{padding:12px}
  body.teacher-workspace .inference-hints{grid-template-columns:minmax(0,1fr)}
  body.teacher-workspace .inference-brand-header h1{font-size:18px}
  body.teacher-workspace #inquiryProgress :is(.evidence-journey,.phase-best){grid-template-columns:minmax(0,1fr)}
  body.entry-mode .entry-shell{grid-template-columns:minmax(0,1fr);min-height:100dvh}
  body.entry-mode .entry-intro{padding:28px 24px 16px;gap:10px}
  body.entry-mode .entry-form{width:calc(100% - 32px);margin:0 auto 24px;padding:24px}
  body.entry-mode .entry-lead{font-size:15px}
  .legal-page h1{font-size:28px}
}
@media print{
  body:has(.view.printing)>.legal-footer,body:has(.view.printing-all)>.legal-footer{display:none!important}
}
