/* Quiet surfaces, system type, one action color. */
:root {
  --bg: #fafafa; --card: #ffffff; --sidebar: #f2f2f4; --ink: #242426; --muted: #6e6e73; --line: #e5e5e8;
  --brand: #0066cc; --brand-ink: #ffffff; --brand-soft: #edf4fc;
  --ok: #287b4d; --bad: #c03030; --warn: #926200; --hit-bg: #e8f4eb; --miss-bg: #fcecec;
  --radius: 12px; --shadow: 0 1px 3px #00000005; --sidebar-width: 216px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e; --card: #242426; --sidebar: #171719; --ink: #f5f5f7; --muted: #a0a0a6; --line: #38383d;
    --brand: #70b4ff; --brand-ink: #102036; --brand-soft: #263449;
    --hit-bg: #1c3828; --miss-bg: #482525; --ok: #78c99a; --bad: #ff8b84; --warn: #e6bb66;
    color-scheme: dark;
  }
  .chart svg { filter: invert(.88) hue-rotate(180deg); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h2 { letter-spacing: -.025em; font-weight: 600; font-size: 18px; margin: 0 0 .75rem; }
h4 { margin: .75rem 0 .35rem; font-size: .95rem; }
code { background: var(--brand-soft); padding: .1em .35em; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok-text { color: var(--ok); font-weight: 600; }
.bad-text { color: var(--bad); font-weight: 600; }
.warn-text { color: var(--warn); }

.skip-link { position: fixed; top: 12px; transform: translateY(calc(-100% - 24px)); left: 12px; z-index: 100; padding: 12px; background: var(--card); border: 2px solid var(--brand); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.topbar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); overflow-y: auto; z-index: 10; display: flex; flex-direction: column; padding: 36px 16px 20px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 12px 38px; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; margin-top: 1px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--card); font-size: 22px; font-weight: 500; }
nav { display: grid; gap: 5px; }
nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 12px; border-radius: 7px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .16s, color .16s; }
nav a svg { width: 19px; height: 19px; flex: none; }
nav a.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px #00000008; }
nav a.active svg { color: var(--brand); }
nav a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); text-decoration: none; }
nav a[data-route="guide"] { margin-top: 22px; }
.badge { display: inline-block; margin-left: auto; min-width: 20px; padding: 0 5px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 11px; text-align: center; }
.sidebar-note { flex-shrink: 0; padding-top: 24px; margin: auto 10px 0; display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.local-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex: none; }
.workspace { margin-left: var(--sidebar-width); }
main { max-width: 1200px; margin: 0 auto; padding: 48px 52px 20px; outline: none; min-height: calc(100vh - 90px); }
main > * { animation: arrive .2s ease-out both; }
footer { max-width: 1200px; margin: 0 auto; padding: 26px 52px; line-height: 1.8; font-size: 11px !important; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.045em; font-weight: 650; margin: 0; }
.page-heading p { margin: 9px 0 0; font-size: 14px; }
.quiet-link { font-size: 13px; white-space: nowrap; }
.study-summary { display: flex; gap: 34px; padding: 0 0 30px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.study-summary > div { display: flex; align-items: baseline; gap: 7px; }
.study-summary strong { font-size: 22px; letter-spacing: -.04em; font-weight: 550; font-variant-numeric: tabular-nums; }
.study-summary span { font-size: 12px; color: var(--muted); }
.today-layout { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 44px; }
.study-start { padding-bottom: 34px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .09em; font-weight: 600; margin-bottom: 8px; }
.study-start h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 6px; }
.study-start p { margin: 0 0 20px; font-size: 13px; }
.plan-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.plan-heading h2 { font-size: 16px; margin: 0; }
.plan-note { margin-top: 18px; font-size: 12px; }
.target-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.target-panel h2 { font-size: 15px; margin-bottom: 20px; }
.target-panel .skill-top { font-size: 12px; }
.target-panel .skills { gap: 22px; }
.target-panel > p { margin: 22px 0 16px; font-size: 11px; line-height: 1.6; }
.panel-link { display: block; border-top: 1px solid var(--line); padding-top: 15px; font-size: 12px; }
.aside-section { padding: 24px 3px; border-bottom: 1px solid var(--line); }
.aside-section h2 { font-size: 14px; line-height: 1.5; margin: 0; }
.aside-section p { font-size: 12px; margin: 8px 0 12px; }
.aside-section a { font-size: 12px; }
.row-arrow { font-size: 21px; color: var(--muted); font-weight: 300; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 700; }
.callout { background: var(--brand-soft); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.section-title { margin: 1.5rem 0 .75rem; }

.btn { appearance: none; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); padding: 10px 18px; min-height: 42px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover:not(:disabled) { filter: brightness(.94); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { border-color: var(--muted); filter: none; }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

.plan { display: grid; }
.plan-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: background .15s; width: 100%; }
.plan-item:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.plan-check { width: 22px; text-align: center; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; flex: none; }
.plan-item.done .plan-check { color: var(--ok); }
.plan-name { flex: 1; font-weight: 500; font-size: 13px; }
.plan-name small { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.plan-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.skills { display: grid; gap: .9rem; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: .25rem; }
.skill-track { position: relative; height: 5px; background: var(--line); border-radius: 999px; }
.skill-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s; }
.skill-target { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--ink); border-radius: 2px; }

.practice-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.practice-toolbar input { max-width: 200px; font-size: 13px; min-height: 38px; }
.segmented { display: flex; gap: 2px; padding: 3px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 8px; }
.segmented button { border: 0; border-radius: 5px; padding: 7px 10px; min-height: 32px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; transition: background .15s; }
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px #00000012; color: var(--ink); }
.results-count { font-size: 11px; margin: 0 0 24px; }
.practice-section { margin-bottom: 34px; }
.practice-section > h2 { font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin: 0; }
.task-grid { display: grid; }
.task-tile { display: flex; align-items: center; gap: 22px; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; transition: background .15s; }
.task-tile:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.task-info { flex: 1; min-width: 0; }
.tile-name { font-weight: 550; font-size: 14px; }
.tile-meta { font-size: 12px; margin-top: 4px; }
.tile-score { font-size: 12px; white-space: nowrap; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.mock-grid .task-tile { display: grid; align-content: start; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.mock-grid .task-tile:first-child { grid-column: 1 / -1; background: var(--brand-soft); border-color: transparent; }
.mock-grid .tile-name { font-size: 17px; }
.mock-grid .muted { font-size: 13px; }
.empty-state { padding: 50px 0; }

.session-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; font-size: 12px; }
.session-controls { display: flex; align-items: center; gap: 18px; }
.focus-mode .topbar { display: none; }
.focus-mode .workspace { margin-left: 0; }
.focus-mode main { max-width: 1040px; }
.mock-focus { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.session-nav { display: flex; justify-content: flex-end; gap: .5rem; margin: .5rem 0 2rem; }
.tips { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; }
.tips summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.tips[open] summary { margin-bottom: 20px; }
.template { white-space: pre-wrap; background: var(--brand-soft); padding: .7rem .9rem; border-radius: 10px; font-size: .95rem; }

/* exam item */
.item { padding: 30px 34px; }
.item.locked { opacity: .92; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.item-task { font-weight: 600; font-size: 22px; letter-spacing: -.035em; }
.item-id { font-size: 11px; margin-top: 5px; }
.item-timer { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; background: var(--sidebar); border-radius: 7px; padding: 6px 10px; }
.item-timer:empty { display: none; }
.item-timer.warn, .mock-clock.warn { color: var(--bad); }
.instruction { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin: 20px 0 24px; }
.item-body { display: grid; gap: .9rem; }
.item-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.passage { font-size: 1.05rem; line-height: 1.75; }
.passage p { margin: 0 0 .8rem; }
.read-aloud { font-size: 1.15rem; }
.prompt { font-weight: 500; font-size: 18px; line-height: 1.7; }
.question { font-weight: 600; margin: 0; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; }

.audio-box, .rec-box { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--sidebar); flex-wrap: wrap; }
.audio-icon, .rec-icon, .lecture-icon { color: var(--muted); display: flex; align-items: center; }
.ui-symbol { width: 22px; height: 22px; display: inline-flex; }
.ui-symbol svg { width: 100%; height: 100%; }
.audio-main { flex: 1; min-width: 180px; display: grid; gap: .35rem; }
.audio-status, .rec-status { font-weight: 600; font-size: .92rem; }
.bar { display: flex; align-items: center; gap: .5rem; }
.bar-track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--brand); transition: width .2s linear; }
.bar-label { font-size: .8rem; color: var(--muted); }
.level { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.level-fill { height: 100%; width: 0; background: var(--muted); transition: width .05s; }
.level.on .level-fill { background: var(--ok); }
.live-transcript { min-height: 1.4em; font-style: italic; }
.lecture-card { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px dashed var(--line); border-radius: 12px; }
.notes summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.notes textarea { margin-top: .4rem; }

textarea, input, select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; width: 100%; }
textarea { resize: vertical; line-height: 1.8; }
.item textarea.answer { height: clamp(260px, 36vh, 380px); min-height: 260px; padding: 22px; font-size: 16px; border-radius: 9px; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.wordcount { text-align: right; font-size: .85rem; }
.answer.line { font-size: 1.05rem; }

.fib select { width: auto; display: inline-block; padding: .15rem .4rem; margin: 0 .15rem; border-color: var(--brand); }
.fib .gap { width: 8.5em; display: inline-block; padding: .1rem .4rem; margin: 0 .15rem; border-color: var(--brand); }
.slot { display: inline-block; min-width: 7em; padding: .1rem .5rem; margin: 0 .15rem; border: 1px dashed var(--brand); border-radius: 8px; background: var(--brand-soft); color: var(--ink); font: inherit; cursor: pointer; }
.slot.filled { border-style: solid; font-weight: 600; }
.word-pool { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; min-height: 3rem; }
.chip { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: grab; }
.chip.picked { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.options { display: grid; gap: .45rem; }
.option { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option input { width: auto; margin-top: .3rem; }
.opt-letter { font-weight: 700; color: var(--muted); }

.ro-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ro-panel { border: 1px solid var(--line); border-radius: 12px; padding: .6rem; display: grid; gap: .45rem; align-content: start; min-height: 8rem; }
.ro-panel.target { border-color: var(--brand); }
.ro-title { font-weight: 700; font-size: .85rem; color: var(--muted); }
.ro-item { display: flex; gap: .5rem; align-items: flex-start; text-align: left; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: .93rem; cursor: pointer; }
.ro-item.in { cursor: default; background: var(--brand-soft); }
.ro-tag { font-weight: 700; color: var(--brand); }
.ro-text { flex: 1; }
.ro-ctrl { display: flex; flex-direction: column; gap: .2rem; }
.icon { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 6px; width: 1.9rem; height: 1.7rem; cursor: pointer; }
.icon:disabled { opacity: .35; }

.hiw .hw { cursor: pointer; border-radius: 4px; padding: 0 .1rem; }
.hiw .hw:hover { background: var(--brand-soft); }
.hiw .hw.on { background: #fde047; color: #111; }

.feedback-card { border-top: 1px solid var(--line); }
.fb-head { display: flex; align-items: baseline; gap: .8rem; }
.fb-score { font-size: 1.6rem; font-weight: 800; }
.fb-score.good { color: var(--ok); } .fb-score.ok { color: var(--warn); } .fb-score.bad { color: var(--bad); }
.traits { border-collapse: collapse; margin: .4rem 0; }
.traits td { padding: .25rem .9rem .25rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fb-block { margin-top: .6rem; }
.align .hit { background: var(--hit-bg); border-radius: 3px; }
.align .miss { background: var(--miss-bg); border-radius: 3px; text-decoration: underline wavy var(--bad); }
.cov { list-style: none; padding: 0; }
.cov li, ol li.hit, ol li.miss, ul li.hit, ul li.miss { padding: .15rem 0; }
li.hit { color: var(--ok); } li.miss { color: var(--bad); }
.model { background: var(--brand-soft); padding: .7rem .9rem; border-radius: 10px; }
.pre { white-space: pre-wrap; }
.ai h4 { margin-top: 0; }
audio { width: 100%; max-width: 420px; }

.mock-bar { position: sticky; top: 12px; z-index: 5; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--sidebar); color: var(--ink); border: 1px solid var(--line); padding: 14px 18px; border-radius: 10px; margin-bottom: .8rem; }
.mock-clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.review-item { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.review-item summary { display: flex; justify-content: space-between; cursor: pointer; gap: 1rem; }
.review-item[open] { padding-bottom: 1rem; }

.table-wrap { overflow-x: auto; }
.table-wrap .table { min-width: 500px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; }
.spark i { display: block; width: 6px; background: var(--brand); border-radius: 2px; }
.daychart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.daycol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .25rem; }
.daybar { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }

.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-bottom: .6rem; }
.form.four { grid-template-columns: repeat(4, 1fr); }
.field { display: grid; gap: .3rem; font-size: .92rem; }
.field.check { grid-template-columns: auto 1fr; align-items: center; grid-column: 1 / -1; }
.field.check input { width: auto; }
.sticky-save { position: sticky; bottom: 0; padding: .8rem 0; background: var(--bg); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--ink); color: var(--card); padding: .6rem 1rem; border-radius: 10px; opacity: 0; transition: .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes arrive { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) {
  main { padding: 38px 32px 20px; }
  footer { padding-inline: 32px; }
  .today-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 230px; }
  .practice-toolbar { align-items: stretch; flex-direction: column; }
  .practice-toolbar input { max-width: none; }
  .segmented { align-self: flex-start; }
}
@media (max-width: 950px) {
  :root { --sidebar-width: 184px; }
  .topbar { padding-inline: 10px; }
  .brand { margin-inline: 8px; }
  .sidebar-note { font-size: 9px; margin-inline: 4px; }
  .today-layout { grid-template-columns: minmax(0, 1fr); }
  .today-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .target-panel { grid-row: span 2; }
  .aside-section { padding: 12px 0; }
  .study-summary { gap: 20px; }
  .study-summary > div { flex-direction: column; gap: 0; }
}
@media (max-width: 720px) {
  .topbar { position: sticky; top: 0; width: auto; padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 12px; font-size: 16px; gap: 8px; }
  .brand-mark { width: 26px; height: 28px; border-radius: 7px; font-size: 18px; }
  .brand small, .sidebar-note { display: none; }
  nav { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  nav a { flex: none; padding: 9px 10px; min-height: 40px; font-size: 12px; }
  nav a svg { display: none; }
  nav a[data-route="guide"] { margin: 0; }
  .workspace { margin: 0; }
  main { padding: 28px 20px 16px; }
  footer { padding: 24px 20px; }
  h1 { font-size: 30px; }
  .page-heading { gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
  .page-heading p { font-size: 13px; }
  .quiet-link { font-size: 12px; }
  .study-summary { justify-content: space-between; gap: 12px; padding-bottom: 24px; margin-bottom: 26px; }
  .study-summary strong { font-size: 22px; }
  .study-summary span { font-size: 11px; }
  .study-start h2 { font-size: 25px; }
  .today-aside { display: block; }
  .aside-section { padding: 22px 0; }
  .plan-item { gap: 10px; min-height: 70px; }
  .plan-name { font-size: 13px; }
  .plan-count { font-size: 10px; }
  .card { padding: 20px; }
  .grid3 { gap: 8px; }
  .stat-num { font-size: 1.5rem; }
  .segmented { max-width: 100%; overflow-x: auto; }
  .segmented button { padding: 8px; font-size: 11px; min-height: 38px; }
  .task-tile { gap: 12px; }
  .tile-score { font-size: 10px; white-space: normal; max-width: 65px; text-align: right; }
  .tile-meta { font-size: 11px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-grid .task-tile { padding: 20px; }
  .mock-bar { top: 108px; font-size: 12px; }
  .focus-mode .mock-bar { top: 10px; }
  .session-head { align-items: flex-start; gap: 12px; }
  .session-controls { flex-direction: column-reverse; align-items: flex-end; gap: 8px; max-width: 70%; text-align: right; font-size: 10px; }
  .session-nav { flex-wrap: wrap; }
  .item { padding: 20px; }
  .item-head { flex-wrap: wrap; gap: 12px; }
  .item-task { font-size: 20px; }
  .item textarea.answer { padding: 14px; height: 280px; min-height: 240px; }
  .prompt { font-size: 16px; }
  .ro-wrap { grid-template-columns: 1fr; }
  .form.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .field { min-width: 0; }
  .daychart { gap: 3px; }
  .daycol .small { font-size: 9px; }
  .traits { font-size: 13px; }
  .traits td { padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
