:root {
  color-scheme: light;
  --navy-950:#101b3f;
  --navy-900:#162652;
  --navy-800:#21366d;
  --ink:#172348;
  --muted:#5c6784;
  --line:#dce3f2;
  --surface:#ffffff;
  --surface-soft:#f6f8fd;
  --surface-tint:#eef3ff;
  --blue:#3169f5;
  --blue-dark:#1f4ec4;
  --purple:#7b4df1;
  --purple-dark:#5931bd;
  --green:#149a70;
  --green-dark:#0b7353;
  --gold:#f5b82e;
  --red:#d94a55;
  --shadow-sm:0 6px 18px rgba(22,38,82,.08);
  --shadow-md:0 18px 48px rgba(22,38,82,.13);
  --radius-sm:14px;
  --radius-md:20px;
  --radius-lg:28px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --subject:#3169f5;
  --subject-dark:#1f4ec4;
  --subject-soft:#eef3ff;
  --subject-rgb:49,105,245;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,Segoe UI,Roboto,Arial,sans-serif;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
}
*{box-sizing:border-box;min-width:0}
html,body{margin:0;min-height:100%;background:#f5f7fc;color:var(--ink)}
body{overflow-x:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-root{min-height:100vh;min-height:100dvh;background:
  radial-gradient(circle at 6% 4%,rgba(49,105,245,.09),transparent 25rem),
  radial-gradient(circle at 98% 12%,rgba(123,77,241,.08),transparent 24rem),
  #f6f8fd}
.app-root.theme-maths{--subject:#3169f5;--subject-dark:#1f4ec4;--subject-soft:#edf3ff;--subject-rgb:49,105,245}
.app-root.theme-reading{--subject:#7b4df1;--subject-dark:#5931bd;--subject-soft:#f3efff;--subject-rgb:123,77,241}
.app-root.theme-science{--subject:#149a70;--subject-dark:#0b7353;--subject-soft:#eaf8f3;--subject-rgb:20,154,112}
.shell{min-height:100vh;min-height:100dvh;padding-bottom:calc(28px + var(--safe-bottom))}
.app-help-footer{width:min(1180px,100%);margin:0 auto;padding:12px 18px;color:var(--muted);font-size:.9rem;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.app-help-footer nav{display:flex;gap:8px;flex-wrap:wrap}
.app-help-footer a{display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;border-radius:10px;color:var(--blue-dark);font-weight:700;text-underline-offset:3px}
.app-help-footer a:focus-visible,.legal-page a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.legal-page{padding-top:calc(22px + var(--safe-top));padding-bottom:calc(36px + var(--safe-bottom));line-height:1.65}
.legal-page header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:28px}
.legal-page header a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue-dark)}
.legal-page h1{font-size:clamp(2rem,6vw,3rem);line-height:1.1;letter-spacing:-.04em}
.legal-page h2{font-size:1.25rem;line-height:1.35;margin:28px 0 8px}
.legal-page article{padding:clamp(20px,4vw,36px)}
.legal-page article a{color:var(--blue-dark);overflow-wrap:anywhere}
.legal-page p,.legal-page li{max-width:70ch}
.topbar{position:sticky;top:0;z-index:40;padding:calc(10px + var(--safe-top)) 18px 10px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,227,242,.86)}
.topbar-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:12px;min-height:52px}
.brand-button,.icon-button,.grade-button,.subject-pill{border:0;background:transparent}
.brand-button{display:flex;align-items:center;gap:10px;padding:4px;border-radius:14px;color:var(--navy-900)}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#ffe36e,#f4b720);color:#172348;font-weight:900;letter-spacing:.08em;box-shadow:0 7px 18px rgba(245,184,46,.24)}
.brand-name{font-weight:850;font-size:1.05rem;letter-spacing:-.02em}
.topbar-title{font-weight:850;font-size:1.05rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-spacer{flex:1}
.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:var(--ink);background:#f2f5fb;border:1px solid #e1e7f3}
.icon-button:hover,.icon-button:focus-visible{background:#e9eef9}
.grade-button{display:flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border-radius:14px;background:var(--subject-soft);color:var(--subject-dark);font-weight:800;border:1px solid rgba(var(--subject-rgb),.18)}
.subject-pill{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:14px;background:#fff;border:1px solid var(--line);font-weight:800;color:var(--ink)}
.subject-dot{width:10px;height:10px;border-radius:999px;background:var(--subject)}
.main{width:min(1180px,100%);margin:0 auto;padding:24px 18px 64px}
.main.narrow{width:min(820px,100%)}
.page-head{display:flex;align-items:flex-end;gap:20px;justify-content:space-between;margin-bottom:20px}
.page-head h1,.page-head h2{margin:0;letter-spacing:-.04em}
.page-head h1{font-size:clamp(2rem,6vw,4rem);line-height:1}
.page-head h2{font-size:clamp(1.55rem,4vw,2.4rem)}
.eyebrow{margin:0 0 8px;color:var(--subject-dark);font-size:.79rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.lede{margin:8px 0 0;color:var(--muted);max-width:62ch;font-size:1.04rem;line-height:1.5}
.section{margin-top:28px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:13px}
.section-head h2,.section-head h3{margin:0;letter-spacing:-.025em}
.section-head h2{font-size:1.45rem}.section-head h3{font-size:1.16rem}
.section-head p{margin:4px 0 0;color:var(--muted)}
.text-button{border:0;background:transparent;color:var(--subject-dark);font-weight:850;padding:10px;border-radius:10px}
.text-button:hover,.text-button:focus-visible{background:var(--subject-soft)}
.primary-button,.secondary-button,.quiet-button,.danger-button{min-height:48px;padding:0 18px;border-radius:14px;font-weight:850;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;overflow-wrap:anywhere}
.primary-button{background:var(--subject);color:white;box-shadow:0 8px 18px rgba(var(--subject-rgb),.24)}
.primary-button:hover,.primary-button:focus-visible{background:var(--subject-dark)}
.secondary-button{background:var(--subject-soft);color:var(--subject-dark);border-color:rgba(var(--subject-rgb),.18)}
.secondary-button:hover,.secondary-button:focus-visible{border-color:rgba(var(--subject-rgb),.42)}
.quiet-button{background:white;color:var(--ink);border-color:var(--line)}
.quiet-button:hover,.quiet-button:focus-visible{background:#f7f9fd}
.danger-button{background:#fff0f1;color:#a62731;border-color:#f1c7cb}
.button-row{display:flex;flex-wrap:wrap;gap:10px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}
.subjects-hero{padding-top:16px}
.subjects-title{max-width:820px;margin:0 0 8px;font-size:clamp(2.45rem,9vw,5.6rem);line-height:.95;letter-spacing:-.065em;color:var(--navy-950)}
.subjects-title em{font-style:normal;color:var(--blue)}
.subjects-subtitle{max-width:660px;margin:18px 0 0;color:var(--muted);font-size:clamp(1rem,2.4vw,1.24rem);line-height:1.55}
.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}
.subject-card{position:relative;overflow:hidden;min-height:286px;padding:24px;border:0;border-radius:30px;text-align:left;color:white;box-shadow:var(--shadow-md);display:flex;flex-direction:column;justify-content:space-between;transition:transform .18s ease,box-shadow .18s ease}
.subject-card:hover,.subject-card:focus-visible{transform:translateY(-4px);box-shadow:0 24px 58px rgba(22,38,82,.22)}
.subject-card.maths{background:linear-gradient(145deg,#2f73ff,#4153eb)}
.subject-card.reading{background:linear-gradient(145deg,#8a5cf4,#6339d3)}
.subject-card.science{background:linear-gradient(145deg,#18aa7e,#08785c)}
.subject-card::before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-70px;top:-65px;background:rgba(255,255,255,.12)}
.subject-card::after{content:"";position:absolute;width:110px;height:110px;border-radius:32px;right:26px;bottom:24px;border:2px solid rgba(255,255,255,.15);transform:rotate(15deg)}
.subject-icon{position:relative;z-index:1;display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:rgba(255,255,255,.17);font-size:1.7rem;font-weight:950}
.subject-card h2{position:relative;z-index:1;margin:28px 0 7px;font-size:1.85rem;letter-spacing:-.04em}
.subject-card p{position:relative;z-index:1;margin:0;max-width:24ch;line-height:1.45;color:rgba(255,255,255,.88)}
.subject-enter{position:relative;z-index:1;display:flex;align-items:center;gap:8px;margin-top:22px;font-weight:900}
.grade-picker{margin-top:28px;padding:18px 20px;display:flex;align-items:center;gap:16px;justify-content:space-between}
.grade-picker strong{display:block}.grade-picker span{color:var(--muted);font-size:.92rem}
.select-control{min-height:48px;padding:0 38px 0 14px;border-radius:14px;border:1px solid var(--line);background:white;color:var(--ink);font-weight:800}
.dashboard-hero{position:relative;overflow:hidden;padding:30px;border-radius:32px;background:linear-gradient(135deg,var(--subject),var(--subject-dark));color:white;box-shadow:var(--shadow-md)}
.dashboard-hero::after{content:"";position:absolute;width:380px;height:380px;border:2px solid rgba(255,255,255,.12);border-radius:50%;right:-160px;top:-210px}
.dashboard-hero .eyebrow{color:rgba(255,255,255,.78)}
.dashboard-hero h1{position:relative;margin:0;max-width:800px;font-size:clamp(2.1rem,6vw,4.1rem);line-height:1;letter-spacing:-.055em}
.dashboard-hero p{position:relative;max-width:650px;margin:15px 0 0;color:rgba(255,255,255,.86);font-size:1.08rem;line-height:1.52}
.mode-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:20px}
.mode-card{position:relative;min-height:220px;padding:24px;text-align:left;border-radius:26px;border:1px solid var(--line);background:white;box-shadow:var(--shadow-sm);overflow:hidden}
.mode-card.practice{background:linear-gradient(145deg,#fff,var(--subject-soft))}
.mode-card.olympiad{background:linear-gradient(145deg,#17244c,#2d3970);color:white;border-color:#2d3970}
.mode-kicker{font-size:.78rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--subject-dark)}
.mode-card.olympiad .mode-kicker{color:#ffd76a}
.mode-card h2{margin:12px 0 8px;font-size:1.9rem;letter-spacing:-.04em}
.mode-card p{margin:0;max-width:45ch;line-height:1.48;color:var(--muted)}
.mode-card.olympiad p{color:rgba(255,255,255,.78)}
.mode-features{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}
.feature-chip{padding:7px 10px;border-radius:999px;background:white;border:1px solid var(--line);font-size:.78rem;font-weight:800;color:var(--ink)}
.mode-card.olympiad .feature-chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16);color:white}
.continue-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;padding:22px;border-left:5px solid var(--subject)}
.continue-card h3{margin:0 0 5px;font-size:1.22rem}.continue-card p{margin:0;color:var(--muted)}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.quick-card{padding:20px;text-align:left;border:1px solid var(--line);background:white;border-radius:20px;min-height:142px;box-shadow:var(--shadow-sm)}
.quick-card:hover,.quick-card:focus-visible{border-color:rgba(var(--subject-rgb),.45);transform:translateY(-2px)}
.quick-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--subject-soft);color:var(--subject-dark);font-weight:950}
.quick-card h3{margin:15px 0 5px;font-size:1.04rem}.quick-card p{margin:0;color:var(--muted);font-size:.88rem;line-height:1.4}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.module-card{display:flex;flex-direction:column;min-height:208px;padding:20px;text-align:left;border:1px solid var(--line);background:white;border-radius:22px;box-shadow:var(--shadow-sm)}
.module-card:hover,.module-card:focus-visible{border-color:rgba(var(--subject-rgb),.45);box-shadow:0 14px 34px rgba(22,38,82,.12);transform:translateY(-2px)}
.module-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.module-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--subject-soft);color:var(--subject-dark);font-weight:950}
.module-count{font-size:.75rem;font-weight:850;color:var(--muted);background:#f4f6fb;padding:6px 9px;border-radius:999px}
.module-card h3{margin:16px 0 6px;font-size:1.13rem;letter-spacing:-.02em}
.module-card p{margin:0;color:var(--muted);font-size:.89rem;line-height:1.42}
.module-footer{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.progress-track{height:8px;flex:1;border-radius:99px;background:#e8edf7;overflow:hidden}
.progress-fill{height:100%;border-radius:inherit;background:var(--subject)}
.progress-label{font-size:.76rem;font-weight:850;color:var(--muted);white-space:nowrap}
.module-hero{padding:26px;border-radius:28px;background:linear-gradient(145deg,var(--subject-soft),white);border:1px solid rgba(var(--subject-rgb),.18)}
.module-hero h1{margin:0;font-size:clamp(2rem,6vw,3.6rem);line-height:1.02;letter-spacing:-.05em}
.module-hero p{max-width:65ch;color:var(--muted);line-height:1.5}
.module-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.objective-list{display:grid;gap:12px}
.objective-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);background:white;border-radius:18px}
.objective-card h3{margin:0 0 5px;font-size:1rem}.objective-card p{margin:0;color:var(--muted);font-size:.85rem}
.objective-actions{display:flex;gap:8px}
.compact-button{min-height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:white;color:var(--ink);font-weight:820}
.compact-button.stretch{background:#fff8df;color:#7a5400;border-color:#f2d476}
.chip-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.chip{display:inline-flex;align-items:center;min-height:28px;padding:3px 9px;border-radius:999px;background:#f1f4fa;color:var(--muted);font-size:.74rem;font-weight:780}
.chip.challenge{background:#fff3cc;color:#745000}
.task-shell{width:min(850px,100%);margin:0 auto;padding:16px 16px calc(100px + var(--safe-bottom))}
.task-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.task-badge{display:inline-flex;align-items:center;min-height:30px;padding:4px 10px;border-radius:999px;background:var(--subject-soft);color:var(--subject-dark);font-size:.74rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.task-badge.challenge{background:#fff2bf;color:#725000}
.task-progress{margin-left:auto;color:var(--muted);font-size:.84rem;font-weight:800}
.task-card{padding:clamp(18px,4vw,28px);border-radius:26px;background:white;border:1px solid var(--line);box-shadow:var(--shadow-md)}
.source-card{padding:18px;border-radius:18px;background:var(--surface-soft);border:1px solid #e4e9f4;margin-bottom:18px;overflow:auto}
.source-card h2,.source-card h3{margin:0 0 10px;font-size:1rem}
.source-card p{line-height:1.58;margin:0 0 10px}.source-card p:last-child{margin-bottom:0}
.source-card svg{max-width:100%;height:auto;display:block;margin:auto}
.source-card img{max-width:100%;height:auto;border-radius:14px;display:block;margin:auto}
.math-expression{font-family:"STIX Two Math","Times New Roman",serif;font-size:clamp(1.35rem,5vw,2rem);text-align:center;line-height:1.45;padding:12px;overflow-wrap:anywhere}
.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.93rem}
.data-table th,.data-table td{padding:10px;border-right:1px solid #dce3ef;border-bottom:1px solid #dce3ef;text-align:left;vertical-align:top}
.data-table th{background:#eaf0fa;font-weight:850}.data-table tr:first-child th:first-child{border-top-left-radius:10px}.data-table tr:first-child th:last-child{border-top-right-radius:10px}.data-table th:first-child,.data-table td:first-child{border-left:1px solid #dce3ef}.data-table tr:first-child th{border-top:1px solid #dce3ef}
.question-label{margin:0 0 7px;color:var(--subject-dark);font-size:.77rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.task-question{margin:0 0 18px;font-size:clamp(1.25rem,4.2vw,1.72rem);line-height:1.35;letter-spacing:-.025em}
.round-evidence-step{margin-top:24px;padding-top:22px;border-top:2px solid var(--line)}
.round-evidence-question{font-size:clamp(1.08rem,3.6vw,1.38rem)}
.answer-area{display:grid;gap:10px}
.choice{position:relative;display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 15px;border:1px solid var(--line);border-radius:15px;background:white;text-align:left;color:var(--ink);min-height:52px}
.choice:hover,.choice:focus-within{border-color:rgba(var(--subject-rgb),.5);background:var(--subject-soft)}
.choice.selected{border-color:var(--subject);background:var(--subject-soft);box-shadow:0 0 0 2px rgba(var(--subject-rgb),.08)}
.choice input{margin-top:3px;width:20px;height:20px;accent-color:var(--subject);flex:0 0 auto}
.choice-label{line-height:1.42;overflow-wrap:anywhere}
.input-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.answer-input{width:min(100%,320px);min-height:52px;padding:0 15px;border:1px solid #cfd8e9;border-radius:14px;background:white;color:var(--ink);font-size:1.1rem;font-weight:750}
.answer-input:focus{outline:3px solid rgba(var(--subject-rgb),.17);border-color:var(--subject)}
.adorned-answer{display:flex;align-items:center;gap:10px;max-width:100%}.adorned-answer .answer-input{min-width:0}.answer-adornment{color:var(--ink);font-size:1.05rem;font-weight:850;white-space:nowrap}
.fraction-input{display:flex;align-items:center;gap:9px}.fraction-stack{display:grid;gap:4px;width:88px}.fraction-stack input{width:100%;min-height:44px;text-align:center;border:1px solid #cfd8e9;border-radius:10px}.fraction-line{height:2px;background:var(--ink)}
.sequence-list{display:grid;gap:9px}.sequence-item{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);border-radius:14px;background:white}.sequence-number{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--subject-soft);font-weight:900;color:var(--subject-dark)}.sequence-controls{display:flex;gap:5px}.move-button{width:38px;height:38px;border:1px solid var(--line);background:#f6f8fc;border-radius:10px;font-weight:900}
.match-grid{display:grid;gap:10px}.match-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.9fr);gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.match-row select{min-height:44px;border:1px solid #cfd8e9;border-radius:11px;padding:0 10px;background:white}
.highlight-segments{display:flex;flex-wrap:wrap;gap:6px;line-height:1.7}.highlight-segment{border:1px solid transparent;background:#eef2f8;color:var(--ink);border-radius:9px;padding:4px 7px;min-height:36px}.highlight-segment.selected{background:#ffeb9a;border-color:#e3bd2d}
.completion-list{display:grid;gap:10px}.completion-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,180px);gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px}.completion-row input{min-height:44px;width:100%;padding:0 10px;border:1px solid #cfd8e9;border-radius:10px}
.cell-grid{display:grid;gap:4px;max-width:420px}.grid-cell{aspect-ratio:1;border:1px solid #bfc9dc;background:white;border-radius:5px;min-width:32px;min-height:32px}.grid-cell.selected{background:var(--subject);border-color:var(--subject-dark)}
.draw-board{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfcff}.draw-board svg{width:100%;height:auto;display:block}.draw-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.draw-value{font-weight:900;color:var(--subject-dark)}
.graph-board{display:grid;grid-template-columns:auto repeat(var(--grid-cols,11),minmax(20px,1fr));max-width:460px;position:relative;align-items:stretch}.graph-cell{--vc:#dfe5f1;--vw:1px;--hc:#dfe5f1;--hw:1px;border:0;min-width:20px;min-height:26px;background:linear-gradient(var(--vc),var(--vc)) center/var(--vw) 100% no-repeat,linear-gradient(var(--hc),var(--hc)) center/100% var(--hw) no-repeat transparent;padding:0}.graph-cell.axis-y{--vc:var(--ink);--vw:3px}.graph-cell.axis-x{--hc:var(--ink);--hw:3px}.graph-cell:focus-visible{outline:3px solid #5d4bd2;outline-offset:-3px}.graph-cell.selected::after{content:"";display:block;width:13px;height:13px;margin:auto;border-radius:50%;background:var(--subject);box-shadow:0 0 0 3px white}.graph-tick{font-size:.78rem;font-weight:700;color:#4a4a5a;display:flex;align-items:center;justify-content:center;min-width:1.6em}.graph-tick-y{justify-content:flex-end;padding-right:6px}.graph-tick-x{padding-top:4px}
.feedback{margin-top:17px;padding:15px 16px;border-radius:15px;line-height:1.48}.feedback.correct{background:#e9f8f1;color:#0b644a;border:1px solid #b8e4d3}.feedback.wrong{background:#fff1f2;color:#912d36;border:1px solid #f0c5ca}.feedback.neutral{background:#f3f6fc;color:var(--ink);border:1px solid var(--line)}
.hint-panel,.solution-panel{margin-top:12px;padding:14px 16px;border-radius:15px;background:#fff8df;border:1px solid #f0d77f;color:#5e4800;line-height:1.48}.solution-panel{background:#edf3ff;border-color:#c7d6fb;color:#173770}
.evidence-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.task-actions{position:sticky;bottom:0;z-index:30;margin-top:16px;padding:12px max(12px,env(safe-area-inset-right)) calc(12px + var(--safe-bottom)) max(12px,env(safe-area-inset-left));background:rgba(246,248,253,.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid rgba(220,227,242,.9);display:flex;gap:10px;justify-content:flex-end}
.task-actions .primary-button{min-width:150px}
.olympiad-hero{padding:28px;border-radius:30px;color:white;background:linear-gradient(145deg,#131f47,#3a3479);box-shadow:var(--shadow-md)}
.olympiad-hero .eyebrow{color:#ffd866}.olympiad-hero h1{margin:0;font-size:clamp(2.1rem,7vw,4.4rem);line-height:.98;letter-spacing:-.055em}.olympiad-hero p{max-width:620px;color:rgba(255,255,255,.8);line-height:1.5}
.round-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.round-card{padding:20px;border:1px solid var(--line);border-radius:20px;background:white;text-align:left}.round-card.selected{border-color:#5d4bd2;box-shadow:0 0 0 3px rgba(93,75,210,.12)}.round-card h3{margin:10px 0 4px}.round-card p{margin:0;color:var(--muted);font-size:.86rem}.round-time{font-size:1.7rem;font-weight:950;color:#342a83}
.round-header{position:sticky;top:calc(73px + var(--safe-top));z-index:25;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 14px;margin-bottom:12px;border-radius:16px;background:#17244d;color:white;box-shadow:var(--shadow-md)}
.timer{font-variant-numeric:tabular-nums;font-weight:950;color:#ffe174}.round-progress{height:8px;background:rgba(255,255,255,.18);border-radius:99px;overflow:hidden}.round-progress span{display:block;height:100%;background:#fff;border-radius:inherit}.round-count{font-weight:850;font-size:.83rem}
.summary-score{display:grid;place-items:center;width:160px;height:160px;border-radius:50%;margin:20px auto;background:conic-gradient(var(--subject) var(--score-angle),#e8edf6 0);position:relative}.summary-score::after{content:"";position:absolute;inset:12px;border-radius:50%;background:white}.summary-score strong{position:relative;z-index:1;font-size:2rem}.summary-score span{position:relative;z-index:1;color:var(--muted);font-size:.8rem}
.result-list{display:grid;gap:10px}.result-row{padding:15px;border:1px solid var(--line);border-radius:15px;background:white}.result-row.correct{border-left:5px solid #18a574}.result-row.wrong{border-left:5px solid #d94a55}.result-row h3{margin:0 0 5px;font-size:.98rem}.result-row p{margin:0;color:var(--muted);font-size:.87rem;line-height:1.45}
.progress-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.progress-card{padding:18px}.progress-card h3{margin:0 0 4px}.progress-card p{margin:0 0 14px;color:var(--muted);font-size:.85rem}
.graph-guide{padding:20px;margin-bottom:20px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}.graph-guide h2{margin:0 0 7px}.graph-guide p{margin:0;color:var(--muted);line-height:1.5}.graph-domain{margin-top:28px}.graph-unit{margin-bottom:12px;overflow:hidden}.graph-unit>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer}.graph-unit>summary::-webkit-details-marker{display:none}.graph-unit>summary:hover,.graph-unit>summary:focus-visible{background:var(--surface-soft)}.graph-unit>summary>span:first-child{flex:1}.graph-unit>summary strong{display:block;font-size:1.05rem}.graph-unit>summary small{display:block;margin-top:4px;color:var(--muted);line-height:1.4}.unit-chevron{font-weight:950;color:var(--subject-dark)}.graph-unit[open] .unit-chevron{transform:rotate(90deg)}.graph-concepts{display:grid;gap:0;border-top:1px solid var(--line)}.graph-concept-row{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:15px 20px;border-bottom:1px solid var(--line)}.graph-concept-row:last-child{border-bottom:0}.graph-concept-row h3{margin:4px 0;font-size:1rem}.graph-concept-row p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.42}.concept-status-line{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.concept-role{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef1f8;color:var(--muted);font-size:.7rem;font-weight:850;text-transform:capitalize}.concept-role.role-olympiad-connection,.concept-role.role-olympiad-extension{background:#fff3c9;color:#735000}.concept-hero{padding:28px;border-radius:30px;background:linear-gradient(145deg,var(--subject),var(--subject-dark));color:#fff;box-shadow:var(--shadow-md)}.concept-hero .eyebrow{color:rgba(255,255,255,.74)}.concept-hero h1{margin:0;font-size:clamp(2rem,6vw,3.8rem);line-height:1.04;letter-spacing:-.05em}.concept-hero p{max-width:63ch;line-height:1.5;color:rgba(255,255,255,.86)}.concept-hero .concept-role{background:rgba(255,255,255,.14);color:#fff}.concept-mission{padding:22px;margin-top:16px}.concept-mission h2{margin:0 0 8px;font-size:1.4rem}.concept-mission p:last-child{margin-bottom:0;color:var(--muted);line-height:1.5}.concept-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.concept-columns>.card{padding:20px}.concept-columns h3{margin:14px 0 6px}.concept-columns p{color:var(--muted);line-height:1.5}.evidence-note{color:var(--muted);line-height:1.5}.graph-links{display:grid;gap:9px}.graph-link,.today-graph-connection,.practice-graph-bridge{width:100%;border:1px solid var(--line);background:#fff;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border-radius:16px}.graph-link:hover,.graph-link:focus-visible,.today-graph-connection:hover,.today-graph-connection:focus-visible,.practice-graph-bridge:hover,.practice-graph-bridge:focus-visible{border-color:rgba(var(--subject-rgb),.45);background:var(--subject-soft)}.graph-link strong,.today-graph-connection strong,.practice-graph-bridge strong{display:block}.graph-link small,.today-graph-connection small,.practice-graph-bridge small{display:block;color:var(--subject-dark);font-weight:850;text-transform:uppercase;letter-spacing:.08em}.graph-link em,.today-graph-connection em,.practice-graph-bridge em{display:block;margin-top:4px;color:var(--muted);font-style:normal;font-size:.85rem;line-height:1.4}.today-graph-connection,.practice-graph-bridge{margin:14px 0;box-shadow:var(--shadow-sm)}.source-map{padding:20px;margin-top:18px}.source-map h2{margin:0}.source-map ul{padding-left:20px;color:var(--muted);line-height:1.5}.graph-progress-grid .progress-objectives{list-style:none;padding:0;margin:12px 0;display:grid;gap:7px}.progress-concept-link{width:100%;border:1px solid var(--line);background:var(--surface-soft);padding:10px;border-radius:12px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}.progress-concept-link small{grid-column:1/-1;color:var(--muted)}.olympiad-ladder{padding:20px}.olympiad-ladder .graph-links{margin-top:14px}
.empty-state{text-align:center;padding:42px 22px}.empty-icon{display:grid;place-items:center;margin:0 auto 14px;width:64px;height:64px;border-radius:22px;background:var(--subject-soft);color:var(--subject-dark);font-size:1.6rem;font-weight:950}.empty-state h2{margin:0 0 8px}.empty-state p{max-width:46ch;margin:0 auto 18px;color:var(--muted);line-height:1.5}
.concept-role.role-olympiad-foundation{background:#fff3c9;color:#735000}
.coverage-risk{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0e7;color:#9a431d;font-size:.7rem;font-weight:900}.concept-coverage{padding:20px;margin-top:16px;border-left:5px solid var(--subject)}.concept-coverage.has-risk{border-left-color:#e17b3c;background:#fffaf6}.concept-coverage h2{margin:0 0 10px}.concept-coverage>p:last-child{margin-bottom:0;color:var(--muted);line-height:1.5}.concept-coverage .curriculum-status{margin:12px 0;box-shadow:none}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(10,18,42,.48);display:grid;place-items:end center;padding:20px 14px calc(20px + var(--safe-bottom))}.modal{width:min(560px,100%);max-height:min(80vh,720px);overflow:auto;background:white;border-radius:26px;padding:22px;box-shadow:0 30px 80px rgba(10,18,42,.3)}.modal h2{margin:0 0 12px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.toast{position:fixed;z-index:200;left:50%;bottom:calc(22px + var(--safe-bottom));transform:translateX(-50%);max-width:min(520px,calc(100% - 28px));padding:12px 16px;border-radius:14px;background:#172348;color:white;box-shadow:var(--shadow-md);text-align:center;font-weight:750}
.storage-error{margin:12px auto;width:min(780px,calc(100% - 28px));padding:12px 14px;border-radius:14px;background:#fff1f2;border:1px solid #f0c5ca;color:#912d36;display:flex;align-items:center;gap:10px;justify-content:space-between}
@media (max-width:900px){.subject-grid,.module-grid{grid-template-columns:repeat(2,1fr)}.mode-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}.round-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){
  .topbar{padding-left:12px;padding-right:12px}.brand-name{display:none}.subject-pill span:last-child{display:none}.main{padding:18px 14px 54px}.page-head{align-items:flex-start;flex-direction:column}.subject-grid,.module-grid,.quick-grid,.progress-grid,.concept-columns{grid-template-columns:1fr}.subject-card{min-height:238px}.grade-picker{align-items:flex-start;flex-direction:column}.grade-picker .select-control{width:100%}.dashboard-hero{padding:24px}.mode-card{min-height:190px}.continue-card,.graph-guide{grid-template-columns:1fr}.continue-card .primary-button{width:100%}.objective-card,.graph-concept-row{grid-template-columns:1fr}.objective-actions{width:100%}.objective-actions button{flex:1}.match-row,.completion-row{grid-template-columns:1fr}.task-shell{padding-left:12px;padding-right:12px}.task-actions{justify-content:stretch}.task-actions button{flex:1;min-width:0}.round-grid{grid-template-columns:1fr}.round-header{top:calc(69px + var(--safe-top));grid-template-columns:auto 1fr}.round-progress{grid-column:1/-1;grid-row:2}.subjects-title{font-size:3rem}.topbar-title{font-size:.95rem}.concept-hero{padding:23px}.graph-unit>summary{padding:16px}.graph-concept-row{padding:14px 16px}
}
@media (max-width:360px){.grade-button{padding:0 10px}.topbar-inner{gap:7px}.brand-mark{width:39px;height:39px}.task-actions{flex-direction:column}.task-actions button{width:100%}.subject-card{padding:20px}.data-table{font-size:.8rem}.data-table th,.data-table td{padding:7px}.choice{padding:12px}.round-header{font-size:.85rem}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media (prefers-contrast:more){:root{--line:#aab4c8;--muted:#3f4963}.card,.module-card,.quick-card,.task-card{border-width:2px}}
@media (forced-colors:active){.primary-button,.subject-card,.dashboard-hero,.olympiad-hero{forced-color-adjust:none}.progress-fill{background:Highlight}}

/* v1.3.3 Build 27 coverage-balanced learning, profile progress, and timed Olympiad */
.profile-overview-banner{width:100%;margin-top:26px;padding:16px 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;text-align:left;color:var(--ink)}
.profile-overview-banner:hover,.profile-overview-banner:focus-visible{border-color:var(--blue);box-shadow:0 12px 30px rgba(22,38,82,.13)}
.profile-overview-banner strong,.profile-overview-banner small{display:block}.profile-overview-banner strong{font-size:1.05rem}.profile-overview-banner small{margin-top:4px;color:var(--muted);line-height:1.4}
.destination-card.curriculum{background:linear-gradient(145deg,#eef8ff,#fff);border-color:#c8def6}
.destination-grid.streamlined{grid-template-columns:repeat(3,minmax(0,1fr))}.simple-path{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr;align-items:center;gap:10px;margin-top:18px;padding:16px 18px}.simple-path>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--subject);color:white;font-weight:900}.simple-path p{margin:0;color:var(--muted);font-size:.86rem}.simple-path strong{color:var(--ink)}
.olympiad-entry{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;margin-top:18px;padding:24px;background:radial-gradient(circle at 92% 8%,rgba(111,91,211,.38),transparent 32%),linear-gradient(145deg,#17244c,#2d3970);color:white;border-color:#2d3970}.olympiad-entry h2{margin:4px 0 7px;font-size:1.8rem}.olympiad-entry p:not(.eyebrow){max-width:62ch;margin:0;color:rgba(255,255,255,.8);line-height:1.48}.olympiad-entry .eyebrow{margin:0;color:#ffd76a}.olympiad-entry .feature-chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16);color:white}.olympiad-entry .primary-button{background:#ffd76a;color:#17244c;box-shadow:none}.olympiad-entry .primary-button:hover,.olympiad-entry .primary-button:focus-visible{background:#ffe69c}
.today-connection{display:block;margin-top:10px;color:var(--muted);font-size:.92rem}
.today-summary small{display:block;margin-top:7px;color:var(--muted);font-size:.78rem;line-height:1.4}
.lesson-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.lesson-meta span{padding:7px 10px;border-radius:999px;background:white;border:1px solid rgba(var(--subject-rgb),.18);color:var(--muted);font-size:.78rem;font-weight:760}

.profile-report-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px;border-radius:30px;background:linear-gradient(135deg,#17244d,#3155a4);color:white;box-shadow:var(--shadow-md)}
.profile-report-person{display:flex;align-items:center;gap:17px}.profile-report-person .profile-avatar{width:70px;height:70px;font-size:2rem}.profile-report-person .eyebrow{color:#bad1ff}.profile-report-person h1{margin:0;font-size:clamp(2rem,6vw,3.8rem);line-height:1;letter-spacing:-.05em}.profile-report-person p:last-child{margin:8px 0 0;color:rgba(255,255,255,.8)}
.report-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}.report-metrics article{padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}.report-metrics span,.report-metrics small{display:block;color:var(--muted);font-size:.76rem}.report-metrics strong{display:block;margin:8px 0 2px;font-size:1.9rem;letter-spacing:-.04em}.report-metrics .metric-word{font-size:1.15rem;line-height:1.2;min-height:2.3em;display:flex;align-items:end}
.profile-coverage-summary{margin-top:16px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-left:5px solid var(--blue)}.profile-coverage-summary h2{margin:0 0 5px}.profile-coverage-summary p{margin:0;color:var(--muted)}
.subject-progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.subject-progress-card{padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow-sm);--card-accent:#3169f5;--card-soft:#edf3ff}.subject-progress-card.reading{--card-accent:#7b4df1;--card-soft:#f3efff}.subject-progress-card.science{--card-accent:#149a70;--card-soft:#eaf8f3}.subject-progress-head{display:flex;align-items:center;gap:12px}.subject-progress-head .subject-icon{background:var(--card-soft);color:var(--card-accent)}.subject-progress-head .eyebrow{margin:0;color:var(--card-accent)}.subject-progress-head h2{margin:3px 0 0;font-size:1.05rem;line-height:1.25}.coverage-track{height:9px;margin:17px 0;border-radius:999px;background:#e8edf6;overflow:hidden}.coverage-track span{display:block;height:100%;border-radius:inherit;background:var(--card-accent)}
.status-counts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.status-counts span{padding:9px;border-radius:11px;background:#f7f9fd;color:var(--muted);font-size:.75rem}.status-counts strong{color:var(--ink);font-size:.95rem}.subject-progress-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.subject-progress-footer>span{color:var(--muted);font-size:.75rem;line-height:1.35}
.report-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.report-list{padding:0 18px}.report-objective-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.report-objective-row:last-child{border-bottom:0}.report-objective-row h3{margin:5px 0 4px;font-size:.97rem}.report-objective-row p{margin:0;color:var(--muted);font-size:.8rem;line-height:1.4}.subject-tag{display:inline-flex;padding:4px 7px;border-radius:999px;background:#edf3ff;color:#1f4ec4;font-size:.67rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.subject-tag.reading{background:#f3efff;color:#5931bd}.subject-tag.science{background:#eaf8f3;color:#0b7353}.report-empty{margin:0;padding:22px 0;color:var(--muted);line-height:1.5}.profile-report-actions{margin-top:24px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-report-actions h2{margin:0 0 5px}.profile-report-actions p{margin:0;color:var(--muted)}

.curriculum-hero{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;padding:28px;border-radius:30px;background:linear-gradient(135deg,var(--subject),var(--subject-dark));color:white;box-shadow:var(--shadow-md)}.curriculum-hero h1{margin:0;font-size:clamp(2.2rem,6vw,4rem);line-height:1;letter-spacing:-.055em}.curriculum-hero p{max-width:650px;margin:13px 0 9px;color:rgba(255,255,255,.85);font-size:1.04rem;line-height:1.5}.curriculum-hero>div>span{color:rgba(255,255,255,.7);font-size:.78rem}.curriculum-hero .eyebrow{color:rgba(255,255,255,.75)}.curriculum-summary{display:grid;place-items:center;min-width:145px;min-height:145px;padding:16px;border:1px solid rgba(255,255,255,.22);border-radius:28px;background:rgba(255,255,255,.12);text-align:center}.curriculum-summary strong{font-size:2rem}.curriculum-summary span{font-size:.78rem;color:rgba(255,255,255,.78)}
.curriculum-status{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:16px;padding:14px}.curriculum-status span{padding:10px;border-radius:12px;background:var(--surface-soft);color:var(--muted);font-size:.76rem;text-align:center}.curriculum-status strong{display:block;color:var(--ink);font-size:1.1rem}.curriculum-list{display:grid;gap:18px;margin-top:22px}.curriculum-module{overflow:hidden}.curriculum-module-head{display:grid;grid-template-columns:auto 1fr;gap:14px;padding:22px;background:var(--subject-soft);border-bottom:1px solid rgba(var(--subject-rgb),.16)}.curriculum-module-head h2{margin:0 0 5px}.curriculum-module-head p{margin:0 0 6px;color:var(--muted);line-height:1.45}.curriculum-module-head small{color:var(--subject-dark);font-weight:760}.curriculum-objectives{padding:0 20px}.curriculum-objective{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.curriculum-objective:last-child{border-bottom:0}.curriculum-order{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--subject-soft);color:var(--subject-dark);font-weight:900}.curriculum-objective h3{margin:6px 0 4px;font-size:1rem}.curriculum-objective p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.45}.curriculum-objective small{display:block;margin-top:6px;color:var(--muted);font-size:.72rem}.curriculum-actions{display:flex;gap:8px;align-items:center}.curriculum-actions .primary-button{min-height:42px;padding:0 13px}.curriculum-actions .compact-button{min-height:42px}
.curriculum-status.simple{grid-template-columns:repeat(3,1fr)}.curriculum-module-head .module-story{margin-top:10px;padding-top:10px;border-top:1px solid rgba(var(--subject-rgb),.16);color:var(--ink);font-weight:650}.practice-review{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;width:100%;padding:20px;text-align:left;border-color:rgba(var(--subject-rgb),.28);background:var(--subject-soft)}.practice-review h2,.practice-review p{margin:0}.practice-review p:last-child{margin-top:4px;color:var(--muted)}

.olympiad-review-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-radius:26px;background:linear-gradient(145deg,#17244c,#2d3970);color:white;box-shadow:var(--shadow-md)}.olympiad-review-hero h1{margin:3px 0 7px;font-size:clamp(2rem,6vw,3.2rem);line-height:1;letter-spacing:-.045em}.olympiad-review-hero p:not(.eyebrow){margin:0;color:rgba(255,255,255,.8);line-height:1.48}.olympiad-review-hero .eyebrow{margin:0;color:#ffd76a}.olympiad-review-hero .timer{flex:0 0 auto;padding:12px 14px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.1);font-size:1.25rem}.round-review-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;padding:14px}.round-review-summary span{padding:10px;border-radius:12px;background:var(--surface-soft);color:var(--muted);font-size:.78rem;text-align:center}.round-review-summary strong{display:block;color:var(--ink);font-size:1.25rem}.round-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.round-review-item{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;background:white;text-align:left}.round-review-item>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef2f8;color:var(--ink);font-weight:950}.round-review-item strong{font-size:.9rem}.round-review-item small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.round-review-item.answered{border-color:#a9dac8}.round-review-item.answered>span{background:#e9f8f1;color:#0b644a}.round-review-item.unanswered{border-color:#efd594}.round-review-item.unanswered>span{background:#fff8df;color:#6c570e}.submit-round{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;padding:20px;margin-bottom:36px}.submit-round h2,.submit-round p{margin:0}.submit-round p{margin-top:5px;color:var(--muted);line-height:1.45}

@media (max-width:900px){.report-metrics{grid-template-columns:repeat(2,1fr)}.subject-progress-grid{grid-template-columns:1fr}.report-columns{grid-template-columns:1fr}.curriculum-status{grid-template-columns:repeat(3,1fr)}}
@media (max-width:620px){.profile-report-hero,.profile-coverage-summary,.profile-report-actions{align-items:flex-start;flex-direction:column}.profile-report-person{align-items:flex-start}.profile-report-person .profile-avatar{width:58px;height:58px}.report-metrics{grid-template-columns:repeat(2,1fr)}.curriculum-hero{grid-template-columns:1fr}.curriculum-summary{min-width:0;width:100%;min-height:92px}.curriculum-status{grid-template-columns:repeat(2,1fr)}.curriculum-objective{grid-template-columns:auto 1fr}.curriculum-actions{grid-column:2;flex-wrap:wrap}.curriculum-actions button{flex:1}.profile-overview-banner{grid-template-columns:auto 1fr}.profile-overview-banner>span:last-child{display:none}.subject-progress-footer{align-items:flex-start;flex-direction:column}.subject-progress-footer button{width:100%}.olympiad-entry,.submit-round{grid-template-columns:1fr}.olympiad-entry .primary-button,.submit-round .primary-button{width:100%}.olympiad-review-hero{align-items:flex-start;flex-direction:column}.round-review-grid{grid-template-columns:1fr}}
@media (max-width:360px){.report-metrics{grid-template-columns:1fr}.profile-report-person{display:grid;grid-template-columns:auto 1fr}.profile-report-person .quiet-button{width:100%}.curriculum-status{grid-template-columns:1fr}.report-objective-row{grid-template-columns:1fr}.report-objective-row button{width:100%}.curriculum-objective{grid-template-columns:1fr}.curriculum-actions{grid-column:1}.curriculum-order{width:36px;height:36px}}
@media (forced-colors:active){.coverage-track span,.curriculum-summary{background:Highlight}.profile-report-hero,.curriculum-hero{forced-color-adjust:none}}

/* v1.2.0 Learning OS foundation */
.destination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.destination-card{position:relative;min-height:210px;padding:23px;text-align:left;border-radius:24px;border:1px solid var(--line);background:white;box-shadow:var(--shadow-sm);overflow:hidden}
.destination-card:hover,.destination-card:focus-visible{transform:translateY(-2px);border-color:rgba(var(--subject-rgb),.48);box-shadow:0 15px 36px rgba(22,38,82,.12)}
.destination-card.today{background:linear-gradient(145deg,var(--subject-soft),#fff)}
.destination-card.practice{background:linear-gradient(145deg,#fff,var(--subject-soft))}
.destination-card.olympiad{background:linear-gradient(145deg,#17244c,#2d3970);color:#fff;border-color:#2d3970}
.destination-card.quests{background:linear-gradient(145deg,#fff8e6,#fff);border-color:#ecdba8}
.destination-card h2{margin:12px 0 8px;font-size:1.72rem;letter-spacing:-.035em}
.destination-card p{margin:0;max-width:48ch;line-height:1.48;color:var(--muted)}
.destination-card.olympiad p{color:rgba(255,255,255,.79)}
.destination-card.olympiad .mode-kicker{color:#ffd76a}
.destination-card.olympiad .feature-chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16);color:#fff}
.today-summary{margin-bottom:18px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-left:5px solid var(--subject)}
.today-summary strong,.today-summary span{display:block}.today-summary span{color:var(--muted);font-size:.9rem;margin-top:3px}
.plan-list{display:grid;gap:12px}.plan-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 18px}
.plan-number,.stage-number{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--subject-soft);color:var(--subject-dark);font-weight:950}
.plan-copy{min-width:0}.plan-copy h3{margin:2px 0 4px;font-size:1.04rem}.plan-copy p{margin:0;color:var(--muted);font-size:.88rem;line-height:1.42}.plan-icon{font-weight:950;color:var(--subject-dark)}
.diagnostic-card{padding:24px}.metric-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}.metric-row>div{padding:16px;border-radius:17px;background:var(--subject-soft)}.metric-row strong{display:block;font-size:1.8rem;color:var(--subject-dark)}.metric-row span{color:var(--muted);font-size:.85rem}
.lesson-hero,.studio-hero,.quest-hero{padding:25px;border-radius:26px;background:linear-gradient(145deg,var(--subject-soft),#fff);border:1px solid rgba(var(--subject-rgb),.18);margin-bottom:16px}
.lesson-hero h1,.studio-hero h1,.quest-hero h1{margin:0 0 9px;font-size:clamp(2rem,6vw,3.4rem);line-height:1.03;letter-spacing:-.045em}.lesson-hero p,.studio-hero p,.quest-hero p{margin:0;color:var(--muted);line-height:1.55}
.lesson-story{background:radial-gradient(circle at 92% 8%,rgba(var(--subject-rgb),.18),transparent 34%),linear-gradient(145deg,var(--subject-soft),#fff)}.lesson-story .lesson-opening{max-width:65ch;color:var(--ink);font-size:1.03rem}.lesson-mission{padding:22px;margin:12px 0;border-left:5px solid var(--subject)}.lesson-mission h2{margin:4px 0 8px;font-size:1.35rem}.lesson-mission>p:last-of-type{color:var(--muted);line-height:1.55}.lesson-prerequisites{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:14px}.lesson-prerequisites strong{margin-right:3px;font-size:.78rem}.lesson-prerequisite{padding:6px 9px;border-radius:999px;background:var(--subject-soft);color:var(--subject-dark);font-size:.74rem;font-weight:750}.lesson-routine{margin:22px 0}.lesson-routine>.section-head{margin-bottom:10px}.lesson-routine>article{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:16px 18px;margin:8px 0;border:1px solid var(--line);border-radius:18px;background:white}.lesson-routine>article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--subject);color:white;font-weight:900}.lesson-routine h3,.lesson-routine p{margin:0}.lesson-routine p{margin-top:4px;color:var(--muted);line-height:1.48}.lesson-check{display:grid;grid-template-columns:auto 1fr;gap:14px;padding:20px;margin:12px 0;background:#fff8df;border-color:#f0d77f}.lesson-check>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#f1c64d;color:#4f3b00;font-size:1.3rem;font-weight:950}.lesson-check h2,.lesson-check p{margin:0}.lesson-check h2{margin:3px 0 6px;font-size:1.08rem}.lesson-check p:last-child{color:#6c570e}.lesson-ready{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;padding:22px;margin:18px 0 40px}.lesson-ready h2,.lesson-ready p{margin:0}.lesson-ready p:last-child{margin-top:5px;color:var(--muted)}.lesson-ready .lesson-actions{margin:0}
.lesson-step{display:grid;grid-template-columns:auto 1fr;gap:14px;padding:20px;margin:12px 0}.lesson-step-number{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:var(--subject);color:#fff;font-weight:950}.lesson-step h2{margin:0 0 7px;font-size:1.15rem}.lesson-step p{margin:0 0 8px;color:var(--muted);line-height:1.5}
.worked-example{padding:20px;margin:12px 0}.worked-example h3{font-size:1.12rem;line-height:1.4}.misconception-list{display:grid;gap:10px;padding:0;margin:0;list-style:none}.misconception-list li{padding:12px;border-radius:14px;background:#fff8df;border:1px solid #f0d77f}.misconception-list strong,.misconception-list span{display:block}.misconception-list span{margin-top:4px;color:#6c570e;font-size:.88rem}
.lesson-actions{margin:18px 0 40px}.studio-contract{padding:22px}.studio-contract .primary-button{margin-top:18px}
.quest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.quest-card{padding:22px;text-align:left;min-height:220px}.quest-card h2{margin:10px 0 7px;font-size:1.45rem}.quest-card p{margin:0;color:var(--muted);line-height:1.48}.quest-kicker{font-size:.75rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--subject-dark)}
.quest-stage-list{display:grid;gap:12px}.quest-stage{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:17px}.quest-stage.complete{border-color:#a9dac8;background:#f3fbf7}.quest-stage h3{margin:2px 0 0}.reflection-input{width:100%;padding:13px;border:1px solid #cfd8e9;border-radius:14px;font:inherit;line-height:1.5;resize:vertical}
@media (max-width:900px){.destination-grid,.quest-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.destination-grid,.destination-grid.streamlined,.quest-grid{grid-template-columns:1fr}.destination-card{min-height:180px}.simple-path{grid-template-columns:auto 1fr}.plan-card,.quest-stage{grid-template-columns:auto 1fr}.plan-card .compact-button,.quest-stage .compact-button{grid-column:2;width:100%}.today-summary{align-items:flex-start;flex-direction:column}.lesson-step{grid-template-columns:1fr}.lesson-ready{grid-template-columns:1fr}.lesson-ready .button-row{width:100%}.metric-row{grid-template-columns:1fr 1fr}}
@media (max-width:360px){.metric-row{grid-template-columns:1fr}.lesson-actions{flex-direction:column}.lesson-actions button{width:100%}}

/* v1.2.1 labelled number-line and studio grids */

/* v1.2.3 Build 21 learner profiles, trustworthy grading, and persistent Today */
.brand-button.static{cursor:default}
.profile-switcher{display:flex;align-items:center;gap:7px;min-height:44px;max-width:190px;padding:0 12px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.profile-switcher>span{font-size:1.2rem}.profile-switcher>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}
.profile-form{display:grid;gap:22px;padding:24px}.field-label{display:grid;gap:8px;color:var(--ink);font-weight:850}.profile-form .answer-input,.profile-form .select-control{width:100%;max-width:none}
.profile-choice-group{margin:0;padding:0;border:0}.profile-choice-group legend{margin-bottom:10px;font-weight:850}
.avatar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.avatar-choice{position:relative;cursor:pointer}.avatar-choice input,.theme-choice input{position:absolute;opacity:0;pointer-events:none}.avatar-choice span{display:grid;place-items:center;min-height:62px;border:2px solid var(--line);border-radius:17px;background:#fff;font-size:1.65rem}.avatar-choice input:checked+span{border-color:var(--blue);background:var(--surface-tint);box-shadow:0 0 0 3px rgba(49,105,245,.12)}
.theme-choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.theme-choice{position:relative;cursor:pointer}.theme-choice span{display:grid;place-items:center;min-height:48px;padding:8px;border:2px solid var(--line);border-radius:14px;background:#f4f7ff;font-size:.8rem;font-weight:850}.theme-choice.violet span{background:#f4efff}.theme-choice.forest span{background:#eaf8f3}.theme-choice.sunset span{background:#fff2e7}.theme-choice input:checked+span{border-color:var(--navy-800);box-shadow:0 0 0 3px rgba(33,54,109,.12)}
.profile-form-actions{display:flex;justify-content:flex-end;gap:10px}.profile-list{display:grid;gap:12px}.profile-card{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px;text-align:left;color:var(--ink)}.profile-card.active{border-color:var(--blue);box-shadow:0 0 0 3px rgba(49,105,245,.1)}
.profile-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:19px;background:#edf3ff;font-size:1.75rem}.profile-avatar.theme-violet{background:#f1eaff}.profile-avatar.theme-forest{background:#e3f7ee}.profile-avatar.theme-sunset{background:#ffeadc}
.profile-card-copy{display:grid;gap:3px}.profile-card-copy strong{font-size:1.05rem}.profile-card-copy small{color:var(--muted)}.profile-hero{display:flex;align-items:center;gap:17px;padding:22px;margin-bottom:15px}.profile-hero h1{margin:0 0 5px}.profile-hero p:last-child{margin:0;color:var(--muted)}
.profile-manage-actions{display:grid;gap:10px;padding:20px}.profile-manage-actions button{justify-content:flex-start}.profile-note{color:var(--muted);font-size:.86rem;text-align:center}
.module-status-summary{color:var(--muted);font-size:.74rem;font-weight:800;line-height:1.35}.evidence-detail{display:block;margin-top:7px;color:var(--muted);line-height:1.4}
.progress-key{display:flex;flex-wrap:wrap;gap:8px;padding:14px;margin-bottom:16px}.progress-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#edf0f6;color:#4e5870;font-size:.72rem;font-weight:900;white-space:nowrap}.status-introduced{background:#eaf1ff;color:#244d9c}.status-practising{background:#fff4cf;color:#725400}.status-secure{background:#e4f7ee;color:#0d684c}.status-review_due{background:#fff0f1;color:#9b3039}.progress-objectives{display:grid;gap:9px;margin:14px 0 0;padding:0;list-style:none}.progress-objectives li{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding-top:9px;border-top:1px solid var(--line)}.progress-objectives small{grid-column:1/-1;color:var(--muted);line-height:1.4}
.prior-learning ul{margin:0;padding:18px;list-style:none;display:grid;gap:10px}.prior-learning li{display:flex;justify-content:space-between;gap:14px}.prior-learning li span{color:var(--muted)}
.feedback{display:grid;gap:10px}.answer-dispute{justify-self:start;min-height:38px;padding:0 11px;border-radius:11px;border:1px solid currentColor;background:rgba(255,255,255,.72);color:inherit;font-weight:850}
.result-row.neutral{border-left:5px solid #71809e;background:#f7f8fb}.result-row .answer-dispute{margin-top:10px;color:#912d36}
.plan-card.pending{opacity:.68}.plan-card.current{border-color:rgba(var(--subject-rgb),.55);box-shadow:0 0 0 3px rgba(var(--subject-rgb),.09)}.plan-card.complete{background:#f4fbf7;border-color:#bce2d4}.plan-card.deferred{background:#f7f8fb;border-style:dashed}.today-stage{display:inline-block;color:var(--subject-dark);font-size:.7rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.today-concepts,.today-wrap{padding:20px;margin-bottom:18px}.today-concepts h2,.today-wrap h2{margin:0 0 8px}.today-concepts ul{margin:0;padding-left:20px;color:var(--muted);line-height:1.5}.today-wrap p:not(.eyebrow){color:var(--muted);line-height:1.5}.today-wrap .primary-button{margin-top:8px}
.experience-early .task-card{padding:clamp(22px,6vw,34px)}.experience-early .choice{min-height:62px;padding:17px}.experience-upper .task-card{max-width:850px}
@media(max-width:760px){.profile-switcher>strong{display:none}.profile-switcher{padding:0 10px}.theme-choice-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.profile-form{padding:18px}.profile-form-actions{flex-direction:column-reverse}.profile-form-actions button{width:100%}.progress-objectives li{grid-template-columns:1fr}.progress-objectives .progress-status{justify-self:start}.profile-hero{align-items:flex-start}.task-actions{display:grid;grid-template-columns:repeat(3,1fr)}.task-actions button{width:100%}}
@media(max-width:380px){.avatar-grid{grid-template-columns:repeat(4,1fr)}.avatar-choice span{min-height:52px}.profile-switcher{display:none}.task-actions{grid-template-columns:1fr}}

.labelled-grid{gap:4px}.grid-cell.has-label{min-height:52px;display:grid;place-items:center;padding:4px}.grid-cell-label{font-weight:800;font-size:.88rem;line-height:1}.grid-cell.has-label.selected .grid-cell-label{color:#fff}@media(max-width:360px){.grid-cell.has-label{min-height:48px}.grid-cell-label{font-size:.72rem}}

.reading-portfolio{min-width:0;line-height:1.7}
.reading-portfolio h2{line-height:1.25;margin-bottom:20px}
.reading-block+.reading-block{margin-top:20px}
.reading-block h3{font-size:1rem;line-height:1.35;margin:0 0 8px;color:#203f57}
.reading-prose{white-space:pre-line;margin:0!important;max-width:70ch}
.reading-poem{font-family:Georgia,serif;font-size:1.12em;line-height:1.75;overflow-wrap:anywhere}
.reading-source-note,.reading-attribution{color:#425568;font-size:.88rem;line-height:1.6}
.reading-portfolio figure{margin:0;max-width:100%}
.reading-image-scroll,.reading-table-wrap{max-width:100%;overflow-x:auto;border-radius:12px}
.reading-image-scroll img{width:800px;max-width:none!important;display:block;height:auto}
.reading-image-scroll img[src$="pip-bench.svg"]{width:100%;max-width:100%!important}
.reading-portfolio details{margin-top:10px;color:#314b60;font-size:.9rem}
.reading-portfolio summary{cursor:pointer;padding:8px 0;font-weight:700}
.reading-portfolio audio{display:block;width:100%;max-width:520px;margin:8px 0}
.reading-table-wrap table{min-width:420px}
.reading-table-wrap td,.reading-table-wrap th{white-space:normal!important;line-height:1.45}
.reading-attribution a{color:#195c8a;text-decoration:underline}

/* ---- Bundled reference modules -----------------------------------------
   Each module's card reuses .olympiad-entry so it sits in the shell as a peer
   of its own destinations; only the colour treatment differs, so a module
   reads as a distinct place without looking foreign. */
.kp-module-card .primary-button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  box-shadow: none;
  text-decoration: none;
}

.woe-entry-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(120, 200, 150, .30), transparent 34%),
    linear-gradient(145deg, #16311f, #2c5b3f);
  border-color: #2c5b3f;
}
.woe-entry-card .eyebrow { color: #9fe3b8; }
.woe-entry-card .primary-button { background: #9fe3b8; color: #14301e; }
.woe-entry-card .primary-button:hover,
.woe-entry-card .primary-button:focus-visible { background: #c2f0d3; }

/* Learn takes the app's own blue and purple: it is the core course, not a side collection. */
.learn-entry-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 227, 110, .28), transparent 34%),
    linear-gradient(145deg, #1f4ec4, #5931bd);
  border-color: #3b4fd0;
}
.learn-entry-card .eyebrow { color: #ffe36e; }
.learn-entry-card .primary-button { background: #ffe36e; color: #172348; }
.learn-entry-card .primary-button:hover,
.learn-entry-card .primary-button:focus-visible { background: #fff0a8; }

/* World of Elements is a tile in the subject grid, beside the
   three subjects. It reuses .subject-card for everything but colour, so the
   shell's own hover, radius, shadow and type apply. Nothing in this file is
   position: fixed except the short hand-off veil below. */
.kp-module-tile { text-decoration: none; }
.kp-module-tile .subject-icon svg { width: 32px; height: 32px; }
.kp-module-tile p { max-width: 36ch; }
.kp-module-tile:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* Four tiles: the three Olympix subjects and World of Elements. */
.subject-grid.has-module-tiles { grid-template-columns: repeat(4, 1fr); }
.subject-grid.has-module-tiles > .subject-card { grid-column: auto; }
.subject-grid.has-module-tiles > .kp-module-tile { grid-column: auto; min-height: 286px; }

/* Two columns (iPad portrait and small tablets): subjects pair up, and the
   odd tile at the end takes the full row instead of leaving a hole. */
@media (max-width: 900px) {
  .subject-grid.has-module-tiles { grid-template-columns: repeat(2, 1fr); }
  .subject-grid.has-module-tiles > .subject-card,
  .subject-grid.has-module-tiles > .kp-module-tile { grid-column: auto; }
  .subject-grid.has-module-tiles > .kp-module-tile { min-height: 250px; }
  .subject-grid.has-module-tiles > .kp-module-tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 210px; }
}

/* One column on phones, with the reference worlds a little shorter. */
@media (max-width: 620px) {
  .subject-grid.has-module-tiles { grid-template-columns: 1fr; }
  .subject-grid.has-module-tiles > .kp-module-tile,
  .subject-grid.has-module-tiles > .kp-module-tile:last-child:nth-child(odd) { grid-column: auto; min-height: 206px; }
}

/* Hand-off shown while a module loads, so the jump is never a white flash. */
.kp-handoff {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #fff;
  animation: kp-handoff-in .18s ease-out both;
}
.kp-handoff.woe-entry-card { background: linear-gradient(160deg, #16311f, #2c5b3f); }
.kp-handoff.learn-entry-card { background: linear-gradient(160deg, #1f4ec4, #5931bd); }
.kp-handoff.learn-entry-card .kp-handoff-mark { color: #ffe36e; }
.kp-handoff-mark { animation: kp-handoff-spin 2.4s linear infinite; }
.kp-handoff.woe-entry-card .kp-handoff-mark { color: #9fe3b8; }
.kp-handoff p { margin: 0; font-size: .95rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
@keyframes kp-handoff-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes kp-handoff-spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) {
  .kp-handoff, .kp-handoff-mark { animation: none; }
}
@media print { .kp-handoff { display: none; } }

/* K–2 read-aloud button (read-aloud.js). */
.kp-listen { margin: 0 0 12px; }
.kp-listen[aria-pressed="true"] { background: var(--subject-soft); }

.round-card .round-blurb{margin-top:8px;font-size:.85rem;color:#4a4a5a;line-height:1.4}
