/* RaccoonSpace · Modern Editorial EdTech system */
:root {
  --bg: #f3f0e8;
  --paper: #ffffff;
  --ink: #202820;
  --muted: #68736a;
  --line: #e2e1d8;
  --green: #477b58;
  --green2: #d8e5d4;
  --gold: #ad8742;
  --shadow: 0 8px 24px rgba(32, 40, 32, .045);
  --radius-card: 16px;
  --dashboard-card-radius: 14px;
  --radius-control: 10px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 52px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.58; -webkit-font-smoothing: antialiased; }
.app { --sidebar: 248px; }
.sidebar {
  padding: 17px 13px 14px;
  background: #f8f7f2;
  color: #36443a;
  border-right: 1px solid var(--line);
}
.side-brand { gap: 10px; padding: 0 8px 14px; margin-bottom: 10px; }
.side-brand img {
  flex: 0 0 42px; width: 42px; height: 38px;
  object-fit: contain; object-position: center;
  border-radius: 0; background: transparent;
}
.side-brand span { min-width: 0; }
.side-brand strong {
  display: block; color: #243128; font-size: 17px; font-weight: 760;
  letter-spacing: -.045em; line-height: 1.15; white-space: nowrap;
}
.side-brand small { margin-top: 4px; color: #788579; font-size: 8px; font-weight: 700; letter-spacing: .075em; line-height: 1.4; }
.mobile-brand { display: none; }
.side-label { padding: 8px 11px 5px; color: #68776b; }
.side-nav { gap: 2px; }
.side-link {
  min-height: 40px;
  border-radius: 9px;
  color: #5c695e;
  transition: background .16s ease, color .16s ease;
}
.side-link:hover { background: #edf1e9; color: #284b33; }
.side-link.active { background: #e6eee2; color: #315f40; }
.side-help { background: #eef2e9; border-color: #dce5d7; color: #34493a; }
.side-help b { color: #26372b; }
.side-help-link { color: #477b58; }
html[data-theme="dark"] .side-label { color: #9caf9f; }
html[data-theme="dark"] .side-help-link { color: #b7d6b5; }

.topbar {
  min-height: 68px;
  height: auto;
  padding: 10px clamp(20px, 3.2vw, 48px);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.topbar-title { color: var(--muted); }
.top-pill, .theme-toggle, .account-shortcut, .menu-toggle {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; }
.menu-toggle { min-width: 42px; min-height: 42px; }
.page { width: 100%; max-width: 1480px; margin-inline: auto; padding: clamp(24px, 2.7vw, 40px); }
.page-head { margin-bottom: 30px; }
.page-head h1 { max-width: 19ch; font-size: clamp(32px, 3.7vw, 48px); font-weight: 720; line-height: 1.06; letter-spacing: -.052em; }
.page-head p { max-width: 62ch; font-size: 15px; line-height: 1.72; }
.kicker, .eyebrow { letter-spacing: .12em; }

.hero.dashboard-welcome {
  min-height: 0;
  padding: clamp(28px, 3.6vw, 48px) clamp(22px, 3vw, 42px);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: none;
}
.dashboard-welcome h1 { max-width: 680px; margin: 17px 0 13px; font-size: clamp(36px, 4.1vw, 54px); font-weight: 720; line-height: 1.04; letter-spacing: -.055em; }
.dashboard-welcome .lead { max-width: 590px; font-size: 16px; line-height: 1.72; color: var(--muted); }
.dashboard-welcome .hero-actions { margin-top: 22px; }
.dashboard-welcome .stats { margin-top: 20px; font-size: 12px; color: var(--muted); }
.hero:after { display: none; }
.dashboard-welcome .btn { min-height: 48px; padding-inline: 21px; }
.dashboard-welcome .btn.secondary { background: rgba(255,255,255,.8); }
.dashboard-section { margin-top: 30px; }
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-grid .card { min-height: 172px; padding: 21px; border-radius: 14px; box-shadow: none; transition: border-color .18s ease, background .18s ease; }
.dashboard-grid .card:hover { border-color: #becdbb; background: #fbfcf8; }
.dashboard-grid .card-icon { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; }
.dashboard-grid .card p { line-height: 1.65; }
.dashboard-next-card { background: #edf2e9; }
.dashboard-cta { padding: 26px 30px; border-radius: 19px; }

.text-link {
  display: inline-flex; align-items: center; justify-content: flex-start;
  min-height: 40px; padding: 8px 0; border: 0; border-radius: 8px;
  color: var(--green); background: transparent; font: inherit; font-size: 13px;
  font-weight: 800; line-height: 1.4; text-align: left; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.text-link:hover { color: #1c4d30; text-decoration: underline; text-underline-offset: 3px; }
.text-link:focus-visible { outline: 3px solid #c99a3d; outline-offset: 3px; }
.text-link:active { color: #173d27; }
html[data-theme="dark"] .text-link { color: #a7d4ad; }
html[data-theme="dark"] .text-link:hover { color: #c9ebce; }
.btn, .task-btn, .chip, .nmt-tab { transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.btn { min-height: 46px; padding: 11px 19px; background: #286342; box-shadow: 0 5px 12px rgba(40, 99, 66, .14); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(40, 99, 66, .2); }
.task-btn { min-height: 44px; padding: 9px 14px; background: var(--paper); color: var(--ink); }
.task-btn:hover { background: var(--green2); border-color: #aac8ad; }
.btn:focus-visible, .task-btn:focus-visible, .theme-toggle:focus-visible, .side-link:focus-visible,
.menu-toggle:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #c99a3d !important;
  outline-offset: 3px;
}

.card, .tool, .task-card, .test-run, .test-result, .account-panel, .simulation-card,
.nmt-year-card, .topic-article, .placeholder, .lesson-example {
  border-radius: var(--radius-card);
  border-color: var(--line);
  box-shadow: 0 5px 20px rgba(20, 43, 28, .035);
}
.tool { padding: clamp(20px, 2.5vw, 28px); }
.field input, .field select, .search, .task-answer, .task-toolbar input, .task-toolbar select,
.matching-row select, .topics-search input, .topics-filter select {
  min-height: 46px;
  border-radius: var(--radius-control);
  border-color: #d8e2d8;
  background: #fbfcfa;
}
.field input:focus, .field select:focus, .search:focus, .task-answer:focus,
.task-toolbar input:focus, .task-toolbar select:focus { border-color: #4d8a5e; box-shadow: 0 0 0 3px rgba(52, 117, 72, .13); }
.page .section-head { margin-bottom: 20px; }
.section h2, .page .section h2 { font-size: clamp(23px, 2.5vw, 29px); line-height: 1.15; letter-spacing: -.04em; }
.page .grid { gap: 14px; }

.account-panel { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); column-gap: 20px; align-items: start; padding: 17px 20px; border-radius: 14px; box-shadow: none; }
.account-panel > .kicker, .account-panel > h2, .account-panel > #authIntro { grid-column: 1; }
.account-panel > h2 { margin: 5px 0 6px; font-size: 20px; }
.account-panel > #authIntro { margin: 0; font-size: 13px; line-height: 1.55; }
.account-panel > #authFields, .account-panel > #passwordResetRequest, .account-panel > #passwordResetComplete,
.account-panel > #authSigned, .account-panel > #authStatus { grid-column: 2; }
.account-panel #authFields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: end; }
.account-panel #authFields .field { margin: 0 0 8px; }
.account-panel #authFields .auth-actions, .account-panel #authFields .text-link { grid-column: 1 / -1; }
.account-panel #authFields .auth-actions { margin-top: 0; }
.account-panel #authSigned { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 45px; }
.account-panel #authSigned p { margin: 0; }
.account-panel > #authStatus { margin: 5px 0 0; }
#page-progress .page-head { margin-bottom: 17px; }
#page-progress .page-head h1 { margin-bottom: 4px; }
#page-progress .page-head p { font-size: 13px; line-height: 1.55; }
#page-progress .account-panel { padding: 13px 17px; }
#page-progress .account-panel > h2 { margin: 3px 0 4px; font-size: 18px; }
#page-progress .account-panel > #authIntro { font-size: 12px; line-height: 1.45; }
#page-progress .account-panel #authFields .field input { min-height: 40px; }
#page-progress .account-panel .auth-actions .btn, #page-progress .account-panel .auth-actions .task-btn { min-height: 39px; padding-block: 8px; }
.progress-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 20px 0; border-block: 1px solid var(--line); }
.progress-stat { min-height: 98px; gap: 9px; padding: 17px 14px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.progress-stat + .progress-stat { border-left: 1px solid var(--line); }
.progress-stat span { font-size: 12px; line-height: 1.4; }
.progress-stat strong { font-size: clamp(26px, 2.6vw, 34px); color: var(--green); font-variant-numeric: tabular-nums; }
.progress-columns { gap: 14px; }
.progress-columns > .tool { min-width: 0; }
.progress-topic-head { align-items: baseline; }
.progress-topic-head strong { min-width: 0; }
.progress-topic-head span { text-align: right; }
.progress-meter { height: 7px; }
.progress-event { overflow-wrap: anywhere; padding-bottom: 13px; }
.progress-event mjx-container { max-width: 100%; overflow-x: auto; }
.progress-recommendation { margin: 0 0 18px; padding: 18px 20px; border: 1px solid #d9e4d4; border-radius: 14px; background: #eaf0e6; }
.progress-recommendation h2 { margin: 0 0 5px; font-size: 19px; }
.progress-recommendation p { margin: 0 0 12px; max-width: 72ch; color: var(--muted); line-height: 1.6; }
.progress-recommendation .btn { min-height: 42px; }
.progress-footer { margin-top: 16px; }

.simulation-intro { border-radius: 14px; padding: 18px 20px; background: #edf1e9; border-color: var(--line); }
.nmt-tabs { gap: 9px; margin: 0 0 16px; padding: 4px; border: 0; }
.nmt-tab { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.nmt-tab.is-active { background: #e8f2e9; border-color: #b9d1bb; color: #245d3c; }
.simulation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.simulation-card.product-card { display: flex; flex-direction: column; min-height: 205px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: none; }
.simulation-card .simulation-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.simulation-number { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dbe5d6; border-radius: 10px; background: #edf2e9; color: #376849; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.simulation-duration { color: var(--muted); font-size: 12px; font-weight: 750; }
.simulation-card h2, .simulation-card h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.025em; }
.simulation-card p { margin: 0 0 19px; line-height: 1.6; }
.simulation-card .btn { align-self: flex-start; margin-top: auto; }
.simulation-card .btn:disabled { background: #e8ece8; color: #748076; border: 1px solid #d9e0da; box-shadow: none; opacity: 1; }
.simulation-source-note { margin-top: 20px; }

.challenge { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); box-shadow: none; }
.challenge .kicker { color: var(--green); }
.challenge p { color: var(--muted); }
.answer { border-color: var(--line); border-radius: 10px; background: #f8f7f2; color: var(--ink); }
.answer:hover { border-color: #91ae92; background: #edf2e9; }
html[data-theme="dark"] .challenge { border-color: var(--line); background: #202e25; color: var(--ink); }
html[data-theme="dark"] .challenge .kicker { color: #b7d6b5; }
html[data-theme="dark"] .answer { border-color: #405747; background: #293b30; color: var(--ink); }
html[data-theme="dark"] .answer:hover { background: #354b3a; border-color: #64836a; }
.test-setup, .test-run, .test-result { max-width: 980px; }
.test-run, .test-result { padding: clamp(18px, 3vw, 30px); }
.test-question { font-size: clamp(19px, 2vw, 23px); line-height: 1.72; letter-spacing: normal; }
.test-question mjx-container, .task-question mjx-container, .topic-article mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.test-run mjx-container:not([display="true"]), .test-result mjx-container:not([display="true"]), .topic-assessment mjx-container:not([display="true"]), .task-card mjx-container:not([display="true"]) { font-size: .9em !important; overflow: visible !important; }
.topic-article, .test-question, .task-question { overflow-wrap: anywhere; }
.test-timer { padding: 8px 12px; border-radius: 12px; background: var(--green2); }
.test-progress { height: 7px; border-radius: 99px; }
.question-palette { gap: 7px; }
.question-number { border-radius: 8px; border-color: var(--line); background: var(--paper); color: var(--muted); }
.question-number.is-current { background: #477b58; border-color: #477b58; color: #fff; }
.question-number.is-saved { background: #5d9569; border-color: #5d9569; color: #fff; }
.test-actions { align-items: center; }
.test-save-group { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 1; flex-wrap: wrap; }

.page#page-topics { padding-top: clamp(19px, 2.2vw, 30px); }
#page-topics .page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 24px; margin-bottom: 14px; }
#page-topics .page-head .kicker, #page-topics .page-head h1, #page-topics .page-head p { grid-column: 1; }
#page-topics .page-head h1 { margin: 3px 0 4px; font-size: clamp(28px, 3vw, 38px); }
#page-topics .page-head p { max-width: 70ch; font-size: 13px; line-height: 1.55; }
.topic-account-notice { min-height: 42px; margin: 0 0 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--paper) 74%, var(--bg)); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; }
.topic-account-notice .task-btn { min-height: 34px; padding: 6px 10px; border-radius: 8px; }
.topics-toolbar { grid-template-columns: minmax(220px, 1.5fr) minmax(180px, .9fr) auto; gap: 9px 12px; margin-bottom: 15px; padding: 11px 13px; border-radius: 12px; box-shadow: none; background: var(--paper); }
.topics-toolbar label { margin-bottom: 3px; font-size: 11px; }
.topics-search input, .topics-filter select { min-height: 39px; padding-block: 7px; }
.topics-collapse { min-height: 39px; }
.topics-overview { gap: 2px 10px; padding-top: 8px; }
.topic-group { margin: 17px 0 21px; }
.topic-group-heading { margin-bottom: 7px; }
.topic-group-heading h2 { font-size: 16px; }
.topics-list { gap: 6px; }
.topic-card { border-radius: 10px; box-shadow: none; transition: border-color .16s ease, background .16s ease; }
.topic-card:hover, .topic-card:focus-within { border-color: #bdcdb9; background: #fcfcf8; }
.topic-card-summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; min-height: 65px; padding: 9px 12px; }
.topic-number { grid-column: 1; grid-row: 1 / span 2; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.topic-card-title { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 720; line-height: 1.3; }
.topic-card-summary > p { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.topic-card-meta { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; margin: 0; }
.topic-card-progress { min-height: 25px; padding: 3px 8px; font-size: 10px; }
.topic-open-button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.topic-article { padding: clamp(19px, 3vw, 30px); min-width: 0; max-width: 100%; }
.topic-article li, .topic-article p, .section-study-content, .lesson-reference-tables, .lesson-reference-card { min-width: 0; max-width: 100%; }
.lesson-reference-tables { grid-template-columns: minmax(0, 1fr); }
.lesson-reference-card { box-sizing: border-box; width: 100%; }
.topic-article mjx-container:not([display="true"]) { max-width: 100%; }
.topic-section-tab { border-radius: 9px; }
.topic-article h2, .topic-article h3 { font-weight: 700; letter-spacing: -.025em; }
.topic-article p, .topic-article li { line-height: 1.76; }
.topic-article table { display: block; max-width: 100%; overflow-x: auto; }
.topic-reader-page .topic-reader-header h1 { font-size: clamp(28px, 4vw, 40px); }
.footer { border-top: 1px solid var(--line); }

/* Footer social links */
.footer { display: block; padding: 26px 0 34px; }
.footer-social { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; padding: 0 0 24px; }
.footer-social-group { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.footer-social-label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-social-item { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.footer-social-item:hover { background: var(--green2); border-color: var(--line); }
.footer-social-item:active { transform: translateY(1px); }
.footer-social-item + .footer-social-item { margin-top: 5px; }
.footer-social-item--telegram { min-height: 58px; background: var(--green2); color: var(--green); }
.footer-social-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: var(--green2); color: var(--green); }
.footer-social-icon svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.footer-social-item--telegram .footer-social-icon { background: var(--paper); }
.footer-social-item--telegram span:last-child { display: grid; gap: 1px; }
.footer-social-item--telegram small { color: var(--muted); font-size: 11px; font-weight: 550; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .footer-social { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .footer-social-group:first-child { grid-column: 1 / -1; }
  .footer-social-group { padding: 14px; }
  .footer-social-item { gap: 8px; padding-inline: 6px; font-size: 12px; }
}
@media (max-width: 390px) {
  .footer-social { grid-template-columns: 1fr; }
  .footer-social-group:first-child { grid-column: auto; }
  .footer-meta { flex-direction: column; gap: 5px; }
}

/* Theme parity: all interactive and content surfaces follow the selected palette. */
html[data-theme="dark"] {
  --bg: #1b211d;
  --paper: #252c27;
  --ink: #f0f2ea;
  --muted: #aab8ac;
  --line: #3a433c;
  --green: #6fa77b;
  --green2: #293b30;
  --gold: #d6b963;
  --shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .workspace,
html[data-theme="dark"] .page { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .sidebar { background: #202622; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .topbar { background: rgba(23, 34, 27, .94); border-color: var(--line); }
html[data-theme="dark"] .side-link { color: #bfccbf; }
html[data-theme="dark"] .side-link:hover { background: #293a2e; }
html[data-theme="dark"] .side-link.active { background: #314a38; color: #e0efe0; }
html[data-theme="dark"] .side-help { background: #24352a; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .side-help b { color: #f0f2ea; }
html[data-theme="dark"] .side-brand strong { color: #edf2eb; }
html[data-theme="dark"] .side-brand small { color: #aab8ac; }
html[data-theme="dark"] .top-pill,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .account-shortcut,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .task-btn,
html[data-theme="dark"] .nmt-tab { background: #1a281e; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .btn { background: #6fa77b; color: #14251a; border-color: #6fa77b; }
html[data-theme="dark"] .btn.secondary { background: #202f24; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .hero.dashboard-welcome { background: #202e25; border-color: #35473a; }
html[data-theme="dark"] .dashboard-welcome .lead,
html[data-theme="dark"] .dashboard-welcome .stats { color: #b6c6b8; }

html[data-theme="dark"] .dashboard-welcome .btn.secondary { background: transparent; }
html[data-theme="dark"] .dashboard-hero .eyebrow { color: #b7d6b5; }
html[data-theme="dark"] .dashboard-hero .dot { background: #6fa77b; }
html[data-theme="dark"] .dashboard-hero .hero-actions .btn { background: #6fa77b; border-color: #6fa77b; color: #14251a; }
html[data-theme="dark"] .dashboard-hero .hero-actions .btn.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .dashboard-hero-meta { color: #aab8ac; }
html[data-theme="dark"] .dashboard-next-card { background: #293b30; border-color: #405747 !important; color: var(--ink); }
html[data-theme="dark"] .dashboard-next-status { color: #b7d6b5; }
html[data-theme="dark"] .dashboard-next-card h3 { color: var(--ink); }
html[data-theme="dark"] .dashboard-next-card p { color: var(--muted); }
html[data-theme="dark"] .dashboard-next-button { color: #14251a; background: #6fa77b; border-color: #6fa77b; }
html[data-theme="dark"] .dashboard-next-card { background: #2a312c; border-color: #465149 !important; }
html[data-theme="dark"] .next-visual-ring { background: #373f39; }
html[data-theme="dark"] .next-visual-ring svg { stroke: #b7d6b5; }
html[data-theme="dark"] .progress-recommendation { background: #293b30; border-color: #405747; }
html[data-theme="dark"] .simulation-intro { background: #202e25; color: var(--ink); }
html[data-theme="dark"] .topic-card:hover, html[data-theme="dark"] .topic-card:focus-within { border-color: #607267; background: #2b332e; }
html[data-theme="dark"] .dashboard-grid .card,
html[data-theme="dark"] .tool,
html[data-theme="dark"] .card,
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .simulation-card.product-card,
html[data-theme="dark"] .nmt-year-card,
html[data-theme="dark"] .test-run,
html[data-theme="dark"] .test-result,
html[data-theme="dark"] .topic-article { background: var(--paper); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .progress-recommendation { background: #293b30; border-color: #405747 !important; }
html[data-theme="dark"] .progress-stat strong { color: #b7d6b5; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .search,
html[data-theme="dark"] .task-answer,
html[data-theme="dark"] .task-toolbar input,
html[data-theme="dark"] .task-toolbar select,
html[data-theme="dark"] .matching-row select,
html[data-theme="dark"] .topics-search input,
html[data-theme="dark"] .topics-filter select { background: #1d2420; color: var(--ink); border-color: #465149; }
html[data-theme="dark"] .simulation-number { background: #293b30; border-color: #405747; color: #b7d6b5; }
html[data-theme="dark"] .simulation-card .btn:disabled { background: #27342a; color: #aab8ac; border-color: #3a4a3d; }
html[data-theme="dark"] .nmt-tab.is-active { background: #354b3a; color: #f0f2ea; border-color: #53735a; }
html[data-theme="dark"] .test-timer { background: #293b30; color: #d8ead7; }
html[data-theme="dark"] .question-number { background: #202e25; border-color: #405747; color: var(--muted); }
html[data-theme="dark"] .question-number.is-current { background: #477b58; color: #fff; }
html[data-theme="dark"] .question-number.is-saved { background: #5b9468; color: #fff; }
html[data-theme="dark"] .test-progress { background: #293b30; }
html[data-theme="dark"] .footer { border-color: var(--line); }
html[data-theme="dark"] .progress-recommendation p { color: #b7c5b9; }

@media (max-width: 1100px) {
  .app { --sidebar: 238px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); height: 100dvh; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-block; }
  .topbar { min-height: 62px; height: auto; }
  .sidebar.open ~ .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #10151088; backdrop-filter: blur(2px); }
  .account-panel { grid-template-columns: 1fr; }
  .account-panel > *, .account-panel > #authFields, .account-panel > #passwordResetRequest,
  .account-panel > #passwordResetComplete, .account-panel > #authSigned, .account-panel > #authStatus { grid-column: 1; }
  .account-panel #authFields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-panel > #authIntro { margin-bottom: 10px; }
}
@media (max-width: 760px) {
  .sidebar { padding: 15px 13px 12px; }
  .topbar { padding: 9px 14px; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); }
  .mobile-brand img { flex: 0 0 32px; width: 32px; height: 27px; object-fit: contain; }
  .mobile-brand strong { overflow: hidden; font-size: 14px; font-weight: 850; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right { gap: 7px; }
  .topbar-title { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-shortcut { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
  .page { padding: 20px 16px 32px; }
  .page-head { margin-bottom: 20px; }
  .hero.dashboard-welcome { padding: 28px 22px; border-radius: 20px; }
  .dashboard-welcome h1 { max-width: 560px; font-size: clamp(32px, 7.6vw, 44px); }
  .dashboard-welcome .lead { max-width: 48ch; font-size: 15px; }
  #page-topics .page-head { margin-bottom: 11px; }
  #page-topics .page-head p { font-size: 12px; }
  .topic-account-notice { gap: 8px; }
  .topics-toolbar { grid-template-columns: minmax(0, 1fr) minmax(125px, .8fr) auto; gap: 8px; padding: 9px; }
  .topics-collapse { padding-inline: 9px; font-size: 11px; }
  .topic-group { margin: 14px 0 19px; }
  .topic-card-summary { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 9px; min-height: 61px; padding: 8px 9px; }
  .topic-number { width: 29px; height: 29px; }
  .topic-card-title { font-size: 14px; }
  .topic-card-summary > p { font-size: 10px; }
  .topic-card-meta { gap: 6px; }
  .topic-card-progress { padding-inline: 7px; font-size: 9px; }
  .topic-open-button { min-height: 32px; padding: 5px 8px; font-size: 10px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid .card { min-height: 0; padding: 17px; }
  .dashboard-grid .card p { font-size: 13px; }
  .progress-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-columns { grid-template-columns: 1fr; }
  .simulation-grid, .page .simulation-grid { grid-template-columns: 1fr; }
  .simulation-card.product-card { min-height: 0; }
  .test-tools { gap: 8px; }
  .test-top { align-items: flex-start; gap: 10px; }
  .test-save-group { order: 5; flex-basis: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .page { padding-inline: 13px; }
  .topbar-title { display: none; }
  .topbar-right { margin-left: auto; }
  .top-pill { display: none; }
  .account-shortcut { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .theme-toggle { width: 40px; height: 40px; }
  .dashboard-welcome { overflow: hidden; }
  .dashboard-welcome .eyebrow { font-size: 10px; }
  .dashboard-welcome h1 { font-size: 33px; }
  .dashboard-welcome .hero-actions { display: grid; grid-template-columns: 1fr; }
  .dashboard-hero { grid-template-columns: minmax(0, 1fr) 86px; gap: 12px; min-height: 0; padding: 22px 16px !important; }
  .dashboard-hero h1 { margin: 12px 0 9px; font-size: clamp(27px, 8vw, 33px); }
  .dashboard-hero .lead { font-size: 13px; line-height: 1.5; }
  .dashboard-hero .hero-actions { gap: 8px; margin-top: 15px; }
  .dashboard-hero .hero-actions .btn { min-height: 42px; padding-inline: 13px; font-size: 13px; }
  .dashboard-hero-meta { gap: 4px 8px; margin-top: 12px; font-size: 10px; }
  .dashboard-hero-meta span + span::before { margin-right: 8px; }
  .dashboard-hero-mascot { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0; }
  .dashboard-hero-mascot img { width: 78px !important; }
  .mascot-caption { max-width: 14ch; font-size: 9px; }
  .mascot-orbit { width: 94px; }
  .dashboard-welcome .hero-actions > * { width: 100%; }
  .dashboard-welcome .stats { display: grid; gap: 6px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .card { padding: 18px; }
  .progress-stat { min-height: 96px; padding: 14px; }
  .progress-stat span { font-size: 11px; }
  .progress-stat strong { font-size: 28px; }
  .account-panel { padding: 15px; }
  .progress-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; gap: 0 12px; }
  .progress-stat { min-height: 82px; padding: 13px 4px; border-top: 1px solid var(--line); }
  .progress-stat + .progress-stat { border-left: 0; }
  .progress-stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 12px; }
  .account-panel #authFields { grid-template-columns: 1fr; }
  .account-panel #authFields .auth-actions { display: grid; grid-template-columns: 1fr; }
  .account-panel #authSigned { align-items: flex-start; flex-direction: column; }
  .nmt-tabs { overflow: visible; }
  .nmt-tab { flex: 1; min-width: 0; padding-inline: 9px; font-size: 12px; white-space: normal; }
  .simulation-intro { align-items: flex-start; flex-direction: column; }
  .test-top { flex-direction: column; }
  .test-tools { width: 100%; justify-content: space-between; }
  .test-save-group { justify-content: stretch; }
  .test-save-group .btn { width: 100%; }
  .progress-topic-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .progress-topic-head span { text-align: left; }
  .progress-footer { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.topic-card-progress.is-review{background:#fbf0de;border-color:#edd5a8;color:#76521f}
html[data-theme="dark"] .topic-card-progress.is-review{background:#403522;border-color:#68552f;color:#f0d29a}
.topic-card-progress.is-assessment-pending{max-width:210px;white-space:normal;text-align:center;line-height:1.3;background:#f6f0e3;border-color:#e7d7b5;color:#70551f}
html[data-theme="dark"] .topic-card-progress.is-assessment-pending{background:#3b3325;border-color:#685735;color:#f0d39a}



/* Sprint 4.2 · student profile */
.profile-page [hidden] { display: none !important; }
.profile-layout { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.5fr); align-items: start; gap: clamp(20px, 3vw, 34px); }
.profile-form { padding: clamp(18px, 3vw, 32px); }
.profile-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.profile-form-heading h2 { margin: 6px 0 0; }
.profile-optional { color: var(--muted); font-size: 12px; text-align: right; }
.profile-avatar-frame { max-width: 190px; margin: 0 auto 14px; padding: 10px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--paper) 75%, var(--green2)); }
.profile-preview-label { display: block; margin-bottom: 8px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.profile-page .profile-signin,
.profile-page .profile-state,
.profile-page .profile-form,
.profile-page .profile-preview { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.profile-signin { display: flex; align-items: center; gap: 18px; padding: clamp(20px, 3vw, 30px); }
.profile-signin-icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: #d8efdb; background: #244b32; font-size: 24px; }
.profile-signin h2, .profile-preview h2 { margin: 0 0 6px; }
.profile-signin p, .profile-preview p { margin: 0; color: var(--muted); line-height: 1.65; }
.profile-state { padding: 22px; color: var(--muted); }

.profile-preview { align-self: start; padding: 24px; text-align: center; box-shadow: none; background: color-mix(in srgb, var(--green2) 45%, var(--paper)); }
.profile-page .profile-preview { background: color-mix(in srgb, var(--green2) 45%, var(--paper)); }
.profile-preview img { display: block; width: min(100%, 190px); aspect-ratio: 1; margin: 4px auto 18px; border-radius: 28px; }
.profile-preview h2 { font-size: 22px; }
.profile-goal-chip { display: inline-flex; margin-top: 14px; padding: 7px 11px; border: 1px solid #8db998; border-radius: 999px; color: var(--green); background: var(--paper); font-size: 13px; font-weight: 700; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-fields .field { min-width: 0; }
.profile-fields label span { color: var(--muted); font-size: 12px; font-weight: 400; }
.avatar-picker { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.avatar-picker legend { margin-bottom: 4px; font-weight: 750; }
.avatar-picker > .fine { margin: 4px 0 14px; color: var(--muted); }
.avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.avatar-option { display: grid; gap: 7px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.avatar-option:hover { transform: translateY(-2px); border-color: #80aa88; }
.avatar-option:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 35%, transparent); outline-offset: 2px; }
.avatar-option.is-selected { border-color: #4f8a5b; background: color-mix(in srgb, var(--green2) 68%, var(--paper)); box-shadow: inset 0 0 0 1px #4f8a5b; }
.avatar-option img { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; }
.avatar-option span { overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.profile-save-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.profile-save-row .admin-status { margin: 0; }
.profile-password { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-password h3 { margin: 6px 0 4px; font-size: 18px; }
.profile-password-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-password-heading .fine,
.profile-password-note { margin: 4px 0 0; color: var(--muted); }
.profile-password-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-password-fields .field { min-width: 0; }
.profile-password-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.profile-password-actions .admin-status { margin: 0; }
.account-shortcut img { width: 28px; height: 28px; border-radius: 9px; vertical-align: middle; }
html[data-theme="dark"] .profile-page .profile-signin,
html[data-theme="dark"] .profile-page .profile-state,
html[data-theme="dark"] .profile-page .profile-form,
html[data-theme="dark"] .profile-page .profile-preview { border-color: var(--line); background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .profile-page .profile-preview { background: linear-gradient(145deg, #1d3023, #19261e); }
html[data-theme="dark"] .profile-avatar-frame { border-color: #3a5040; background: #17231b; }
html[data-theme="dark"] .profile-preview-label { color: #a8d9ad; }
html[data-theme="dark"] .profile-goal-chip { border-color: #52795a; color: #c5e4c9; background: #22372a; }
html[data-theme="dark"] .avatar-option { border-color: #3a5040; color: var(--ink); background: #17231b; }
html[data-theme="dark"] .avatar-option.is-selected { border-color: #7eb68a; background: #243b2b; box-shadow: inset 0 0 0 1px #7eb68a; }
html[data-theme="dark"] .avatar-option span { color: #b6c5b9; }
@media (max-width: 760px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-preview { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; }
  .profile-avatar-frame { grid-row: span 3; max-width: 88px; margin: 0; padding: 4px; border-radius: 18px; }
  .profile-preview img { width: 100%; margin: 0; border-radius: 13px; }
  .profile-preview h2 { align-self: end; }
  .profile-preview .profile-goal-chip { justify-self: start; }
}
@media (max-width: 480px) {
  .profile-signin { align-items: flex-start; }
  .profile-signin-icon { flex-basis: 42px; width: 42px; height: 42px; }
  .profile-fields { grid-template-columns: 1fr; gap: 12px; }
  .profile-password-fields { grid-template-columns: 1fr; gap: 12px; }
  .profile-password-actions { align-items: stretch; flex-direction: column; }
  .profile-password-actions .task-btn { width: 100%; }
  .profile-password-heading { align-items: flex-start; flex-direction: column; }
  .profile-password-heading > .task-btn { width: 100%; }
  .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .avatar-option { padding: 5px; border-radius: 12px; }
  .avatar-option span { font-size: 10px; }
  .profile-save-row { align-items: stretch; flex-direction: column; }
  .profile-save-row .btn { width: 100%; }
}

/* Dashboard · personal learning space */
.dashboard-page .dashboard-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 22px; min-height: 0; overflow: hidden; padding: clamp(18px, 2vw, 25px) clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: none; }
.dashboard-page .dashboard-hero::after { display: none; }
.dashboard-hero-copy { position: relative; z-index: 1; min-width: 0; }
.dashboard-hero .eyebrow { color: var(--green); }
.dashboard-hero .dot { background: var(--green); box-shadow: none; }
.dashboard-hero h1 { max-width: 760px; margin: 9px 0 7px; color: var(--ink); font-size: clamp(32px, 3.2vw, 42px); font-weight: 720; line-height: 1.02; letter-spacing: -.055em; }
.dashboard-hero .lead { max-width: 600px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dashboard-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dashboard-hero .hero-actions .btn { min-height: 46px; padding-inline: 20px; color: #fff; background: #477b58; border-color: #477b58; }
.dashboard-hero .hero-actions .btn:hover { background: #376849; border-color: #376849; }
.dashboard-hero .hero-actions .btn.secondary { color: var(--ink); background: transparent; border-color: var(--line); box-shadow: none; }
.dashboard-hero .hero-actions .btn.secondary:hover { background: var(--green2); border-color: #b7cbb4; }
.dashboard-hero-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 9px; color: var(--muted); font-size: 10px; font-weight: 650; }
.dashboard-hero-meta span + span::before { margin-right: 18px; color: var(--green); content: "·"; }
.dashboard-hero-mascot { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.dashboard-hero-mascot img { position: relative; z-index: 1; width: min(100%, 140px); height: auto; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; }
.mascot-orbit { display: none; }
.mascot-caption { max-width: 24ch; color: var(--muted); font-size: 11px; font-weight: 650; text-align: center; }
.footer span:first-child { font-weight: 700; }
.dashboard-next-step-section, .dashboard-sections-section { margin-top: 18px; }
.dashboard-section-heading { align-items: end; margin-bottom: 15px; }
.dashboard-section-heading h2, .dashboard-panel-head h2 { margin: 5px 0 0; font-size: clamp(21px, 2.1vw, 27px); letter-spacing: -.04em; }
.dashboard-view-progress, .dashboard-icon-link { border: 0; color: var(--green); background: transparent; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.dashboard-view-progress { padding: 9px 0 5px 12px; white-space: nowrap; }
.dashboard-view-progress:hover, .dashboard-icon-link:hover { color: #285b39; }
html[data-theme="dark"] .dashboard-view-progress:hover, html[data-theme="dark"] .dashboard-icon-link:hover { color: #d0e5d1; }
.dashboard-next-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(130px, .7fr); align-items: center; gap: 14px; min-height: 132px; padding: clamp(16px, 2vw, 21px); overflow: hidden; border: 1px solid #dbe5d5 !important; border-radius: var(--dashboard-card-radius); color: #24372a; background: #e9f0e5; box-shadow: none; }
.dashboard-next-main { min-width: 0; }
.dashboard-next-status { display: inline-flex; align-items: center; gap: 8px; color: #52745a; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.dashboard-next-status .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5f8b64; }
.dashboard-next-card h3 { margin: 6px 0 4px; color: #202d23; font-size: clamp(20px, 2vw, 26px); font-weight: 720; letter-spacing: -.045em; }
.dashboard-next-card p { max-width: 60ch; margin: 0; color: #5b6b5e; font-size: 13px; line-height: 1.5; }
.dashboard-next-button { min-height: 38px; margin-top: 9px; padding-inline: 13px; color: #fff; background: #477b58; border-color: #477b58; }
.dashboard-next-button:hover { background: #376849; border-color: #376849; }
.dashboard-next-visual { display: grid; justify-items: center; gap: 11px; color: #708374; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-align: center; }
.next-visual-ring { display: grid; width: 82px; aspect-ratio: 1; place-items: center; border: 0; border-radius: 17px; background: #d8e5d4; }
.next-visual-ring svg { width: 68px; fill: none; stroke: #477b58; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.dashboard-metric-card, .dashboard-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: none; }
.dashboard-metric-card { padding: 18px 20px; }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #376849; background: #edf2e9; font-size: 18px; font-weight: 750; }
.metric-overline { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.dashboard-metric-card h3 { margin: 17px 0 7px; font-size: 14px; letter-spacing: -.015em; }
.metric-value-row { display: flex; align-items: baseline; gap: 7px; min-height: 37px; }
.metric-value-row strong { font-size: clamp(23px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
#dashboardKnowledgeValue { font-size: clamp(17px, 1.8vw, 23px); letter-spacing: -.035em; }
.metric-value-row span { color: var(--muted); font-size: 11px; }
.dashboard-metric-card p { min-height: 36px; margin: 7px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.metric-meter, .topic-group-meter { height: 7px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--green2) 68%, var(--line)); }
.metric-meter > span, .topic-group-meter > span { display: block; width: 0; height: 100%; border-radius: inherit; background: #6b9b70; transition: width .35s ease; }
.metric-meter.is-empty > span { width: 0 !important; }
.readiness-layout { display: flex; align-items: center; gap: 14px; min-height: 88px; margin-top: 10px; }
.readiness-layout p { flex: 1; min-height: 0; margin: 0; }
.readiness-donut { --progress-angle: 0deg; position: relative; display: grid; width: 82px; height: 82px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(from -90deg, #6b9b70 0deg var(--progress-angle), color-mix(in srgb, var(--green2) 68%, var(--line)) var(--progress-angle) 360deg); }
.readiness-donut::before { position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); content: ""; }
.readiness-donut > span { position: absolute; inset: 0; }
.readiness-donut strong { position: relative; z-index: 1; color: var(--ink); font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.readiness-donut.is-empty { background: color-mix(in srgb, var(--green2) 68%, var(--line)); }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; margin-top: 18px; }
.dashboard-panel { padding: clamp(18px, 2.4vw, 26px); }
.dashboard-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.dashboard-panel-head .kicker { font-size: 9px; }
.activity-period { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.activity-week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.activity-day { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 84px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--muted); }
.activity-day.level-1 { background: color-mix(in srgb, #79a77a 12%, var(--paper)); }
.activity-day.level-2 { background: color-mix(in srgb, #79a77a 22%, var(--paper)); }
.activity-day.level-3 { background: color-mix(in srgb, #79a77a 34%, var(--paper)); }
.activity-day.level-4 { background: color-mix(in srgb, #79a77a 46%, var(--paper)); }
.activity-day.is-today { border-color: var(--green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.activity-day-name, .activity-day-date { font-size: 9px; line-height: 1.1; }
.activity-day-name { font-weight: 700; }
.activity-day-count { align-self: center; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1; }
.activity-summary { min-height: 36px; margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dashboard-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.dashboard-stat-item { display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 72px; padding: 12px 0; border-top: 1px solid var(--line); }
.dashboard-stat-item span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.dashboard-stat-item strong { overflow-wrap: anywhere; font-size: 22px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dashboard-stat-item small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.dashboard-trend-item { grid-column: 1/-1; }
.dashboard-icon-link { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 17px; }
.dashboard-topic-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dashboard-topic-group { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: none; }
.topic-group-count-label { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-topic-group h3 { min-height: 38px; margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: -.03em; }
.dashboard-topic-group p { min-height: 34px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.topic-group-meter { height: 5px; }
.topic-group-action { justify-self: start; min-height: 38px; padding: 5px 0; border: 0; color: var(--green); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.topic-group-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-empty { grid-column: 1/-1; padding: 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.dashboard-quick-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: color .16s ease, background .16s ease; }
.dashboard-quick-link:hover { color: var(--green); background: color-mix(in srgb, var(--green2) 35%, transparent); }
.dashboard-quick-link > span:first-child { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #376849; background: #edf2e9; font-size: 17px; }
.dashboard-quick-link > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.dashboard-quick-link strong { font-size: 12px; }.dashboard-quick-link small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.dashboard-quick-link > b { margin-left: auto; color: var(--green); }
.dashboard-cta { margin-top: 20px; }
.dashboard-page :is(button, a):focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 80%, transparent); outline-offset: 3px; }
html[data-theme="dark"] .dashboard-metric-card, html[data-theme="dark"] .dashboard-panel, html[data-theme="dark"] .dashboard-topic-group, html[data-theme="dark"] .dashboard-quick-link { border-color: var(--line); background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .metric-icon, html[data-theme="dark"] .dashboard-quick-link > span:first-child { color: #c5e1c5; background: #263c2d; }
html[data-theme="dark"] .metric-meter, html[data-theme="dark"] .topic-group-meter { background: #303d32; }
html[data-theme="dark"] .readiness-donut { background: conic-gradient(from -90deg, #78a982 0deg var(--progress-angle), #303d32 var(--progress-angle) 360deg); }
html[data-theme="dark"] .readiness-donut.is-empty { background: #303d32; }
html[data-theme="dark"] .activity-day { border-color: var(--line); background: #242b26; }
html[data-theme="dark"] .activity-day.level-1 { background: #2b3a30; }
html[data-theme="dark"] .activity-day.level-2 { background: #33483a; }
html[data-theme="dark"] .activity-day.level-3 { background: #3c5743; }
html[data-theme="dark"] .activity-day.level-4 { background: #47664d; }
html[data-theme="dark"] .dashboard-view-progress, html[data-theme="dark"] .topic-group-action, html[data-theme="dark"] .dashboard-icon-link { color: #b8dfbd; }
html[data-theme="dark"] .dashboard-icon-link, html[data-theme="dark"] .activity-period { border-color: var(--line); background: #1a261e; }
html[data-theme="dark"] .activity-day-count { color: var(--ink); }
@media (max-width: 1100px) {
  .dashboard-topic-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dashboard-page .dashboard-hero { grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; }
  .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dashboard-metric-card { padding: 16px; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .dashboard-topic-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metric-card:last-child { grid-column: auto; }
  .dashboard-page .dashboard-hero { min-height: 0; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 10px; padding: 26px 22px; border-radius: 22px; }
  .dashboard-hero h1 { margin-top: 14px; font-size: clamp(29px, 6vw, 40px); }
  .dashboard-hero .lead { font-size: 13px; }
  .dashboard-hero .hero-actions { gap: 7px; margin-top: 16px; }
  .dashboard-hero .hero-actions .btn { min-height: 42px; padding-inline: 12px; font-size: 12px; }
  .dashboard-hero-mascot img { width: 96px; height: auto; border: 0; border-radius: 0; object-fit: contain; }
  .mascot-orbit { width: 116px; }
  .mascot-caption { max-width: 112px; font-size: 9px; }
  .dashboard-next-card { grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
  .next-visual-ring { width: 100px; }
  .next-visual-ring svg { width: 57px; }
  .dashboard-next-visual { font-size: 7px; }
  .dashboard-topic-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dashboard-page .dashboard-hero { grid-template-columns: minmax(0, 1fr) 74px; align-items: start; gap: 8px; padding: 22px 17px; }
  .dashboard-hero h1 { font-size: clamp(27px, 8vw, 34px); }
  .dashboard-hero .eyebrow { font-size: 8px; }
  .dashboard-hero .hero-actions { display: grid; grid-template-columns: 1fr; }
  .dashboard-hero .hero-actions .btn { width: 100%; }
  .dashboard-hero-mascot { margin-top: 0; }
  .dashboard-hero-mascot img { width: 72px; height: auto; border: 0; border-radius: 0; object-fit: contain; }
  .mascot-orbit { width: 88px; }
  .mascot-caption { display: none; }
  .dashboard-hero-meta { gap: 5px 9px; font-size: 9px; }
  .dashboard-hero-meta span + span::before { margin-right: 9px; }
  .mobile-brand img { flex-basis: 27px; width: 27px; height: 23px; }
  .mobile-brand strong { font-size: 12px; }
  .topbar { gap: 6px; }
  .topbar-right { gap: 5px; }
  .dashboard-section-heading { align-items: flex-start; }
  .dashboard-section-heading h2 { font-size: 21px; }
  .dashboard-view-progress { font-size: 11px; }
  .dashboard-next-card { grid-template-columns: 1fr; padding: 20px; }
  .dashboard-next-visual { display: none; }
  .dashboard-next-card h3 { font-size: 23px; }
  #page-topics .page-head { display: block; }
  #page-topics .page-head h1 { font-size: 30px; }
  .topics-toolbar { grid-template-columns: minmax(0, 1fr) minmax(108px, .75fr); }
  .topics-collapse { display: none; }
  .topics-overview { grid-column: 1 / -1; }
  .topic-card-summary { grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 2px 8px; min-height: 0; padding: 9px; }
  .topic-number { grid-column: 1; grid-row: 1 / span 3; width: 27px; height: 27px; }
  .topic-card-title { grid-column: 2; grid-row: 1; font-size: 14px; }
  .topic-card-summary > p { grid-column: 2; grid-row: 2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .topic-card-meta { grid-column: 2; grid-row: 3; justify-content: flex-start; margin-top: 3px; }
  .topic-card-progress { min-height: 22px; }
  .topic-open-button { min-height: 31px; }
  #page-progress .account-panel { padding: 12px; }
  .dashboard-next-card p { font-size: 13px; }
  .dashboard-metrics { grid-template-columns: 1fr; gap: 9px; }
  .dashboard-metric-card:last-child { grid-column: auto; }
  .dashboard-metric-card { padding: 17px; }
  .dashboard-metric-card h3 { margin-top: 12px; }
  .dashboard-metric-card p { min-height: 0; }
  .dashboard-lower-grid { gap: 12px; }
  .dashboard-panel { padding: 17px; }
  .dashboard-panel-head { margin-bottom: 16px; }
  .activity-week-strip { gap: 5px; }
  .activity-day { min-height: 76px; padding-inline: 2px; }
  .activity-day-name, .activity-day-date { font-size: 8px; }
  .activity-day-count { font-size: 15px; }
  .dashboard-topic-groups { grid-template-columns: 1fr; }
  .dashboard-topic-group { padding: 16px; }
  .dashboard-topic-group h3, .dashboard-topic-group p { min-height: 0; }
  .dashboard-stats-grid { gap: 0 10px; }
}


/* Number, fraction and absolute-value lesson diagrams and narrow tables */
html[data-theme="dark"] .lesson-visual svg .area{fill:#405747}
.lesson-visual{min-width:0;overflow:hidden}
.lesson-visual img{display:block;width:min(100%,620px);height:auto;max-height:none;margin:0 auto;object-fit:contain}
.lesson-visual figcaption{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.lesson-visual svg .area{fill:#a9c9ae}
.lesson-visual svg .area-secondary{fill:#dce9dc;stroke:none}
.lesson-visual svg .area-tertiary{fill:#f4e5bd;stroke:none}
.lesson-visual svg .diagram-divider{fill:none;stroke:#315c43;stroke-width:2}
.lesson-visual svg .grid{stroke:#7e907e;stroke-width:1.4}
.lesson-rule-list,.lesson-explanation-list{display:grid;gap:8px}
.lesson-rule-list>p,.lesson-explanation-list>p{position:relative;margin:0;padding:11px 14px 11px 17px;border-left:3px solid #6f9d76;border-radius:0 10px 10px 0;background:#f0f5ef;line-height:1.7}
.lesson-rule-list mjx-container,.lesson-explanation-list mjx-container{vertical-align:middle}
.lesson-explanation-list>p{padding-left:30px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--paper) 76%,var(--green2))}
.lesson-explanation-list>p:before{content:"";position:absolute;left:14px;top:1.05em;width:7px;height:7px;border-radius:50%;background:var(--green)}
.topic-reader-footer .topic-previous-section{margin-right:auto}
html[data-theme="dark"] .lesson-rule-list>p{border-left-color:#79ae81;background:#202923;color:#d2dbd3}
html[data-theme="dark"] .lesson-explanation-list>p{border-color:#3c4a40;background:#202923;color:#d2dbd3}
html[data-theme="dark"] .lesson-explanation-list>p:before{background:#79ae81}
html[data-theme="dark"] .lesson-visual svg .grid{stroke:#627466}
html[data-theme="dark"] .lesson-visual svg .area-secondary{fill:#68866d}
html[data-theme="dark"] .lesson-visual svg .area-tertiary{fill:#735f38}
html[data-theme="dark"] .lesson-visual svg .diagram-divider{stroke:#d2e2d3}
.lesson-reference-card{container-type:inline-size}
@container (max-width: 850px){
  .lesson-table-stack-mobile{overflow:visible;border:0;border-radius:0}
  .lesson-table-stack-mobile .lesson-reference-table{display:block;min-width:0;width:100%;background:transparent}
  .lesson-table-stack-mobile thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .lesson-table-stack-mobile tbody,.lesson-table-stack-mobile tr{display:block;width:100%}
  .lesson-table-stack-mobile tr{margin:0 0 10px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
  .lesson-table-stack-mobile tbody th{display:block;width:100%;padding:10px 12px;border:0;background:var(--green2);color:var(--green);text-align:left;white-space:normal}
  .lesson-table-stack-mobile td{display:block;width:100%;padding:9px 12px;border-bottom:1px solid var(--line);white-space:normal;text-align:left;overflow-wrap:break-word;word-break:normal}
  .lesson-table-stack-mobile td:before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:750}
  .lesson-table-stack-mobile tr td:last-child{border-bottom:0}
  .lesson-table-stack-mobile mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
}
@media(max-width:900px){
  .lesson-reference-card,.lesson-reference-tables,.lesson-table-scroll{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
  .lesson-table-stack-mobile{overflow:visible;border:0;border-radius:0}
  .lesson-table-stack-mobile .lesson-reference-table{display:block;min-width:0;width:100%;background:transparent}
  .lesson-table-stack-mobile thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .lesson-table-stack-mobile tbody,.lesson-table-stack-mobile tr{display:block;width:100%}
  .lesson-table-stack-mobile tr{margin:0 0 10px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
  .lesson-table-stack-mobile tbody th{display:block;width:100%;padding:10px 12px;border:0;background:var(--green2);color:var(--green);text-align:left;white-space:normal}
  .lesson-table-stack-mobile td{display:block;width:100%;padding:9px 12px;border-bottom:1px solid var(--line);white-space:normal;text-align:left;overflow-wrap:break-word;word-break:normal}
  .lesson-table-stack-mobile td:before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:750}
  .lesson-table-stack-mobile tr td:last-child{border-bottom:0}
  .lesson-table-stack-mobile mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
}

/* Matching tasks: shared answer key on desktop, always visible above prompts on phones. */
.assessment-matching-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:18px;align-items:start;min-width:0}
.assessment-matching{min-width:0}
.assessment-matching-row{grid-template-columns:minmax(0,1fr) minmax(125px,.55fr);min-width:0}
.assessment-matching-prompt{min-width:0;overflow-wrap:anywhere}
.assessment-matching-options{min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.assessment-matching-options h3{margin:0 0 10px;font-size:15px}
.assessment-matching-option-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.assessment-matching-option-list li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:start;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0;overflow-wrap:anywhere}
.assessment-matching-option-list li>strong,.assessment-option-letter{color:var(--green);font-weight:800}
.assessment-matching-option-list mjx-container{max-width:100%}
.assessment-option-letter{min-width:1.55em}
.assessment-option{min-width:0;overflow-wrap:anywhere}
.assessment-option mjx-container{max-width:100%}
@media(max-width:600px){.assessment-matching-layout{display:flex;flex-direction:column;gap:12px}.assessment-matching-options{order:-1;width:100%;padding:12px}.assessment-matching-option-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.assessment-matching-option-list li{grid-template-columns:25px minmax(0,1fr);padding:7px;font-size:14px}.assessment-matching-row{grid-template-columns:minmax(0,1fr) 118px;padding:11px;gap:8px}.assessment-matching-row select{font-size:14px}.assessment-option{align-items:flex-start}.assessment-option-letter{flex:0 0 auto}}
html[data-theme="dark"] .assessment-matching-options{background:var(--paper);border-color:var(--line)}
html[data-theme="dark"] .assessment-matching-option-list li{background:#151c17;border-color:var(--line)}
@media(max-width:370px){.assessment-matching-row{grid-template-columns:minmax(0,1fr) 105px;padding:9px}.assessment-matching-option-list{grid-template-columns:1fr}}
.profile-logout-button{width:100%;margin-top:22px}
.profile-logout-status{margin:8px 0 0;text-align:left}
html[data-theme="dark"] .profile-logout-button{border-color:#455449;color:#d8e2d9}
@media(max-width:760px){.profile-logout-button{grid-column:1/-1;margin-top:12px}}

/* Topic reader: keep the mobile header clear and make every subtopic visible. */
@media(max-width:600px){
  body:has(#topicReader:not([hidden])) .topbar-title{display:none}
  #topicReader .topic-reader-header{padding:10px 0 14px}
  #topicReader .topic-reader-header>p{font-size:14px;line-height:1.55}
  #topicReader .topic-section-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;overflow:visible;margin:0 0 12px;padding:2px}
  #topicReader .topic-section-tab{width:100%;max-width:none;min-height:42px;padding:9px 12px;font-size:13px;line-height:1.35}
  #topicReader .topic-section-tab:focus-visible{outline:3px solid color-mix(in srgb,var(--green) 45%,transparent);outline-offset:2px}
  #topicReader .topic-section-tab:disabled{cursor:not-allowed;opacity:.72}
  #topicReader .topic-article{padding:16px 13px}
  #topicReader .section-study-content{gap:16px}
  #topicReader .lesson-heading{font-size:17px}
  #topicReader .lesson-formula-math{font-size:17px}
  #topicReader .lesson-example{padding:13px}
  #topicReader .lesson-steps li{grid-template-columns:24px minmax(0,1fr);gap:8px;padding:9px;font-size:14px;line-height:1.6}
}
@media(max-width:390px){
  .account-shortcut{max-width:116px;padding:7px 8px;font-size:11px}
}
.assessment-diagram img{display:block;width:min(100%,670px);height:auto;max-height:none;margin:0 auto;object-fit:contain}
.lesson-example-prompts{margin:0 0 16px;padding-left:1.5rem;line-height:1.65}
.lesson-example-prompts li+li{margin-top:8px}
.lesson-example-group>.lesson-visual-grid{margin:14px 0 4px}
.lesson-example-group .lesson-examples{margin:18px 0 0;padding:18px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--paper) 90%,var(--green2))}
.lesson-example-group .lesson-examples>.lesson-heading{font-size:1.05rem}
.lesson-visual-lessons{display:grid;gap:16px;margin:20px 0}
.lesson-visual-lesson{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.95fr);align-items:center;gap:18px;min-width:0;padding:clamp(16px,2.5vw,24px);border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.lesson-visual-lesson-copy{min-width:0}
.lesson-visual-lesson-copy .lesson-heading{margin:0 0 10px}
.lesson-visual-lesson-copy .lesson-content-copy{line-height:1.7;overflow-wrap:anywhere}
.lesson-visual-lesson-figure{min-width:0;margin:0}
.lesson-visual-lesson-figure .lesson-visual{height:100%;box-sizing:border-box}
.lesson-visual-lesson-figure .lesson-visual img{width:min(100%,500px);max-width:100%;height:auto;object-fit:contain}
.lesson-content-block .lesson-reference-card{margin-top:16px}
@media(max-width:820px){.lesson-visual-lesson{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.lesson-visual-lesson{gap:12px;padding:14px}.lesson-visual-lesson-figure .lesson-visual{padding:9px}}

.assessment-data-table-wrap{max-width:100%;margin:12px 0 18px;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.assessment-data-table{width:100%;border-collapse:collapse;text-align:center;font-variant-numeric:tabular-nums}
.assessment-data-table caption{padding:10px 12px;color:var(--muted);font-size:13px;text-align:left}
.assessment-data-table th,.assessment-data-table td{padding:11px 14px;border-top:1px solid var(--line);white-space:nowrap}
.assessment-data-table thead th{background:var(--green2);color:var(--ink);font-weight:750}
.assessment-data-table tbody th{text-align:left}
@media(max-width:390px){.assessment-data-table th,.assessment-data-table td{padding:9px 10px;font-size:14px}}
@media(max-width:600px){.assessment-diagram{padding:8px}.assessment-diagram img{width:100%;max-height:none}}
