/* ALES Kampı. Direction: the ÖSYM exam hall (booklet paper, optik form, 2B pencil).
   Quiet graphite chrome, one ink-blue accent, answers are pencil-filled optik bubbles.
   One easing curve; motion via transform/opacity only. Type: IBM Plex Sans + Plex Mono (figures), OFL, self-hosted. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --surface-2: #f0f0ef;
  --text: #171717;
  --text-2: #525252;
  --muted: #737373;
  --line: rgb(23 23 23 / 9%);
  --line-strong: rgb(23 23 23 / 18%);
  --accent: #2551c4;
  --accent-soft: rgb(37 81 196 / 9%);
  --on-accent: #ffffff;
  --primary-bg: #2551c4;
  --primary-hover: #1f46ad;
  --primary-fg: #ffffff;
  --good: #0b7d70;
  --good-bg: rgb(14 159 142 / 10%);
  --bad: #c2410c;
  --bad-bg: rgb(232 89 12 / 9%);
  --pencil: #26262a;
  --pencil-2: #44444a;
  --on-pencil: #ffffff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow-float: 0 8px 24px rgb(0 0 0 / 8%);
  --shadow-sheet: 0 1px 2px rgb(0 0 0 / 6%), 0 10px 28px rgb(0 0 0 / 7%);
  --scrim: rgb(0 0 0 / 35%);
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --r-sm: 6px;
  --r: 10px;
  --r-card: 14px;
  --r-panel: 16px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* chart tokens: correct/wrong validated with dataviz validate_palette (light + dark, CVD ΔE 15.2) */
  --c-correct: #0e9f8e;
  --c-wrong: #e8590c;
  --c-blank: var(--muted);
  --c-say: var(--accent);
  --c-soz: var(--text-2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141415;
    --surface: #19191b;
    --surface-2: #232325;
    --text: #ededed;
    --text-2: #a1a1a6;
    --muted: #85858b;
    --line: rgb(237 237 237 / 8%);
    --line-strong: rgb(237 237 237 / 16%);
    --accent: #8aa6f2;
    --accent-soft: rgb(138 166 242 / 13%);
    --on-accent: #0f1115;
    --primary-bg: #ededed;
    --primary-hover: #ffffff;
    --primary-fg: #141415;
    --good: #3cc2b0;
    --good-bg: rgb(14 159 142 / 15%);
    --bad: #f08a4b;
    --bad-bg: rgb(232 89 12 / 15%);
    --pencil: #d9d9dc;
    --pencil-2: #f2f2f3;
    --on-pencil: #141415;
    --shadow-sm: none;
    --shadow-float: 0 12px 32px rgb(0 0 0 / 45%);
    --shadow-sheet: 0 1px 2px rgb(0 0 0 / 45%), 0 14px 36px rgb(0 0 0 / 40%);
    --scrim: rgb(0 0 0 / 55%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141415;
  --surface: #19191b;
  --surface-2: #232325;
  --text: #ededed;
  --text-2: #a1a1a6;
  --muted: #85858b;
  --line: rgb(237 237 237 / 8%);
  --line-strong: rgb(237 237 237 / 16%);
  --accent: #8aa6f2;
  --accent-soft: rgb(138 166 242 / 13%);
  --on-accent: #0f1115;
  --primary-bg: #ededed;
  --primary-hover: #ffffff;
  --primary-fg: #141415;
  --good: #3cc2b0;
  --good-bg: rgb(14 159 142 / 15%);
  --bad: #f08a4b;
  --bad-bg: rgb(232 89 12 / 15%);
  --pencil: #d9d9dc;
  --pencil-2: #f2f2f3;
  --on-pencil: #141415;
  --shadow-sm: none;
  --shadow-float: 0 12px 32px rgb(0 0 0 / 45%);
  --shadow-sheet: 0 1px 2px rgb(0 0 0 / 45%), 0 14px 36px rgb(0 0 0 / 40%);
  --scrim: rgb(0 0 0 / 55%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 8px; font-weight: 500; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 16px; line-height: 1.3; }
h3 { font-size: 14px; line-height: 1.4; }
p { margin: 0 0 8px; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  transition: border-color 150ms var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.muted { color: var(--text-2); }
.small { font-size: 13px; line-height: 1.45; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.empty { padding: 48px 16px; text-align: center; color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
@media (min-width: 768px) { .page { padding: 32px 24px 96px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); padding: 20px;
}
@media (min-width: 768px) { .card { padding: 24px; } }
.card > h2 { margin-bottom: 12px; }
.grid2 { display: grid; gap: var(--gutter); margin-top: var(--gutter); }
@media (min-width: 768px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.row.start { justify-content: flex-start; margin-bottom: 12px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 8px max(var(--gutter), calc((100% - 1120px) / 2 + 24px));
  padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.brand span { display: none; }
@media (min-width: 560px) { .brand span { display: inline; } }
.hud { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }
.lvl { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lvl-num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--text); font: 500 12px/1 var(--mono);
}
.lvl-rank { display: none; }
@media (min-width: 420px) { .lvl-rank { display: inline; } }
.xp { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 56px; max-width: 220px; }
.xpbar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.xpbar-fill {
  position: absolute; inset: 0; transform-origin: left center; background: var(--accent);
  transition: transform 500ms var(--ease);
}
.xpbar-text { font: 400 12px/1 var(--mono); color: var(--text-2); white-space: nowrap; }
@media (max-width: 380px) { .xpbar-text { display: none; } }
.streak { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.streak b { font: 500 13px/1 var(--mono); }
.streak.on { color: var(--text); }
.streak.on .ico { color: var(--c-wrong); }
.countdown { display: none; align-items: center; gap: 6px; white-space: nowrap; }
.countdown .ico { color: var(--muted); }
@media (min-width: 720px) { .countdown { display: inline-flex; } }
.menu { position: relative; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
  transition: background-color 150ms var(--ease);
}
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float);
  animation: rise 180ms var(--ease);
}
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); text-align: left; font-size: 14px; cursor: pointer;
}
.menu-pop .ico { color: var(--muted); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- icons ---------- */
.ico { flex: none; display: inline-block; vertical-align: -0.2em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger, .btn.danger-outline { color: var(--bad); }
.btn.wide { width: 100%; min-height: 44px; }
.btn .ico { color: inherit; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none;
  color: var(--text-2); font-size: 13px; cursor: pointer; transition: color 150ms var(--ease);
}
.link-btn:hover { color: var(--bad); }

/* ---------- auth ---------- */
.auth { display: grid; place-items: center; min-height: calc(100dvh - 160px); }
.auth-card {
  width: 100%; max-width: 400px; padding: 32px 24px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 24px; }
.auth-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; }
.auth form { display: grid; gap: 16px; margin: 24px 0 16px; text-align: left; }
.auth label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.form-error { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 13px; }

/* ---------- home ---------- */
.home-head { display: grid; gap: 20px; margin-bottom: 24px; }
@media (min-width: 768px) { .home-head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 32px; } }
.eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--text-2); }
.home-head h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 6px; }
@media (min-width: 768px) { .home-head h1 { font-size: 44px; } }
.home-head .muted { margin: 0; }
/* the signature: today's goal as a row of optik bubbles, filled in pencil */
.goal { display: grid; gap: 8px; }
.goal-bubbles { display: flex; gap: 6px; }
.gb {
  width: 18px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
}
.gb.filled { border-color: var(--pencil); background: radial-gradient(circle at 40% 35%, var(--pencil-2), var(--pencil) 70%); }
.goal-text { margin: 0; font-size: 13px; color: var(--text-2); }
.goal-text .mono { color: var(--text); }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--gutter); }
.resume-card h2 { margin: 0 0 2px; }
.resume-card p { margin: 0; }
.home-main { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .home-main { grid-template-columns: 3fr 2fr; } }
.start-card, .mock-card { display: grid; gap: 4px; align-content: start; }
.start-card h2, .mock-card h2 { font-size: 20px; margin: 0; }
.start-card p, .mock-card p { margin: 0 0 16px; }
.start-card .btn { justify-self: start; min-height: 44px; padding: 0 20px; }
.mock-card .row { justify-content: flex-start; margin-top: auto; }
.home-links { padding: 4px; margin-top: var(--gutter); display: grid; }
@media (min-width: 768px) { .home-links { grid-template-columns: 1fr 1fr; column-gap: 4px; } }
.home-link {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; column-gap: 12px; padding: 12px 16px;
  border-radius: var(--r); color: var(--text); transition: background-color 150ms var(--ease);
}
.home-link:hover { background: var(--surface-2); text-decoration: none; }
.home-link > .ico { color: var(--muted); }
.home-link-title { font-weight: 500; }
.home-link-sub { grid-column: 2; font-size: 13px; color: var(--text-2); }
.home-link .chev { grid-row: 1 / span 2; grid-column: 3; color: var(--muted); }
.badge {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: var(--r-sm); background: var(--accent-soft);
  color: var(--accent); font: 500 12px/18px var(--mono); vertical-align: 1px;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips a {
  display: inline-flex; align-items: baseline; gap: 8px; height: 36px; padding: 0 12px; line-height: 34px;
  border-radius: var(--r); border: 1px solid var(--line-strong); color: var(--text); font-size: 14px;
}
.chips a:hover { background: var(--surface-2); text-decoration: none; }
.chips small { font: 400 12px var(--mono); color: var(--text-2); }
.big-number { margin: 0 0 4px; font: 500 32px/1.1 var(--mono); letter-spacing: -0.01em; }
.big-number small { margin-left: 6px; font: 400 14px var(--font); color: var(--text-2); }

/* ---------- toasts / level up ---------- */
.toasts {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; gap: 8px; z-index: 60; width: min(92vw, 400px); pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-float); font-size: 14px; font-weight: 500; text-align: center; animation: rise 220ms var(--ease);
}
.toast.good { color: var(--good); }
.toast.bad { color: var(--bad); }
.toast.xp { font-family: var(--mono); color: var(--text); }
.levelup { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: var(--scrim); animation: fade 200ms var(--ease); }
.levelup-card {
  display: grid; justify-items: center; gap: 4px; min-width: 280px; padding: 32px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-float);
  animation: rise 300ms var(--ease);
}
.levelup-burst { display: none; }
.levelup-card .ico { color: var(--accent); margin-bottom: 8px; }
.levelup-small { font-size: 13px; color: var(--text-2); }
.levelup-num { font: 500 64px/1 var(--mono); color: var(--text); }
.levelup-rank { margin: 4px 0 20px; font-size: 16px; font-weight: 500; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- page bar (drill, stats, formulas) ---------- */
.drill-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.drill-bar h1 { flex: 1; min-width: 0; margin: 0; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo, .qtimer { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--mono); color: var(--text-2); }
.combo .ico { color: var(--c-wrong); }
.qtimer .ico { color: var(--muted); }
.qtimer.slow { color: var(--bad); }

/* ---------- drill ---------- */
.drill-grid { display: grid; gap: var(--gutter); }
@media (min-width: 1024px) {
  .drill-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .drill-side { position: sticky; top: 80px; }
}
.drill-side { display: grid; gap: 12px; align-content: start; }

/* the booklet sheet: always paper and ink, in both themes; the screen's one material moment */
.qwrap {
  position: relative; overflow: hidden; border-radius: 4px; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-sheet); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.qwrap.drawing, .qwrap.pen { touch-action: none; cursor: crosshair; }
.qwrap.drawing { outline: 2px solid var(--accent); outline-offset: 3px; }
.qcard { display: grid; gap: 12px; padding: 16px 20px 20px; }
.qcard-label { font: 400 12px/16px var(--mono); color: #6b6b70; }
.q-img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; -webkit-user-drag: none; }
.q-stem { padding-bottom: 12px; border-bottom: 1px solid #e6e6e3; }
.scratch {
  position: relative; min-height: max(180px, 28vh); border-top: 1px solid #e6e6e3;
  background-image: radial-gradient(#dcdcd8 1px, transparent 1px); background-size: 20px 20px; background-position: 10px 10px;
}
.scratch span { position: absolute; left: 20px; top: 12px; font: 400 12px/16px var(--font); color: #8a8a8f; }
canvas.sketch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sketch-tools {
  position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5;
  display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; margin-top: 12px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float);
}
.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px;
  border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.tool:hover { background: var(--surface-2); color: var(--text); }
.tool[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tool:disabled { opacity: 0.35; cursor: default; }
.tool-draw[aria-pressed="true"] { background: var(--primary-bg); color: var(--primary-fg); box-shadow: none; }
.swatch .dot { display: block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); }
@media (max-width: 480px) {
  .sketch-tools { width: 100%; justify-content: space-between; gap: 0; }
  .tool { min-width: 34px; padding: 0 8px; }
}

/* answer bubbles: an optik form row; a choice is filled in pencil */
.bubbles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.bubble-col { display: grid; justify-items: center; gap: 6px; }
.bubble {
  width: 44px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--text-2); font: 500 17px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
.bubble:hover { border-color: var(--text-2); color: var(--text); }
.bubble:active { transform: scale(0.96); }
.bubble.selected { border-color: var(--pencil); color: var(--on-pencil); background: radial-gradient(circle at 40% 35%, var(--pencil-2), var(--pencil) 70%); }
.bubble.struck { color: var(--muted); text-decoration: line-through; border-style: dashed; opacity: 0.6; }
.bubble.correct { border-color: var(--c-correct); background: var(--c-correct); color: #fff; opacity: 1; text-decoration: none; }
.bubble.wrong { border-color: var(--c-wrong); background: var(--c-wrong); color: #fff; }
.bubble-strike {
  display: grid; place-items: center; width: 28px; height: 24px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--muted); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.bubble-strike:hover { background: var(--surface-2); color: var(--text); }
.bubble-strike[aria-pressed="true"] { color: var(--bad); background: var(--bad-bg); }
.answer-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.chip-toggle:hover { background: var(--surface-2); }
.chip-toggle .ico { color: var(--muted); }
.chip-toggle small { color: var(--text-2); font-weight: 400; font-size: 12px; }
.chip-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-toggle:disabled { opacity: 0.5; cursor: default; }
.feedback {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r);
  font-size: 15px; animation: rise 220ms var(--ease);
}
.feedback b { font-weight: 500; }
.feedback.good { background: var(--good-bg); color: var(--good); }
.feedback.bad { background: var(--bad-bg); color: var(--bad); }

/* solutions and hints */
.hint-box, .solution { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.hint-box { animation: rise 220ms var(--ease); }
.hint-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 500; color: var(--text); }
.hint-head .ico { color: var(--muted); }
.solution { display: grid; gap: 12px; animation: rise 260ms var(--ease); }
.solution-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent); }
.topic-chip:hover { text-decoration: underline; }
.topic-path { font-size: 13px; color: var(--text-2); }
.formulas-box { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.formulas-box h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.formulas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.formula { display: grid; gap: 2px; }
.formula-name { font-size: 12px; color: var(--text-2); }
.formula-expr { font-size: 15px; line-height: 1.6; }
/* math: native MathML in the device's math font (iOS/macOS STIX Two, Windows Cambria, Android Noto Sans Math) */
math { font-family: "STIX Two Math", "Cambria Math", "Noto Sans Math", "Latin Modern Math", math; font-size: 1.12em; }
.m-block { display: block; margin: 8px 0; padding: 4px 0; overflow-x: auto; overflow-y: hidden; }
.m-block math { font-size: 1.18em; }
.m-raw { font: 400 13px var(--mono); }
.m-glue { white-space: nowrap; }
.steps li { line-height: 1.6; }
.steps li + li { margin-top: 6px; }
.formula-when { font-size: 13px; color: var(--text-2); }
.key-idea, .trap { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); font-size: 14px; }
.key-idea { background: var(--surface-2); }
.key-idea .ico { color: var(--muted); margin-top: 2px; }
.trap { background: var(--bad-bg); }
.trap .ico { color: var(--bad); margin-top: 2px; }
.steps { margin: 0; padding-left: 24px; display: grid; gap: 6px; }
.steps li::marker { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.report { display: grid; gap: 8px; }

/* topic picker, empty states */
.picker h1 { margin-bottom: 8px; }
.picker h2 { margin: 24px 0 8px; font-size: 14px; color: var(--text-2); }
.topic-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }
.topic-tile {
  display: grid; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--line); color: var(--text); transition: border-color 150ms var(--ease);
}
.topic-tile:hover { text-decoration: none; border-color: var(--line-strong); }
.topic-name { font-weight: 500; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.meter-fill { display: block; height: 100%; transform-origin: left; background: var(--text-2); }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; }
.empty-state > .ico { color: var(--muted); }
.skeleton { min-height: 320px; border-radius: var(--r-card); background: var(--surface-2); }

/* ---------- mock runner ---------- */
.mock-bar {
  position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.mock-bar h1 { margin: 0; font-size: 15px; }
.mock-pos { flex: 1; min-width: 8rem; font: 400 13px var(--mono); color: var(--text-2); }
.mock-timer { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font: 500 16px/1 var(--mono); }
.mock-timer .ico { color: var(--muted); }
.mock-timer.low { color: var(--bad); }
.mock-timer.low .ico { color: var(--bad); }
.btn.danger-outline { min-height: 36px; }
.banner { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r); font-size: 14px; }
.banner.warn { background: var(--bad-bg); color: var(--bad); }
.mock-grid { display: grid; gap: var(--gutter); }
@media (min-width: 1024px) { .mock-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; } }
.mock-answer { display: grid; gap: 12px; margin-top: 12px; }
.mock-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mock-nav .btn.flag-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.sheet-toggle { justify-self: center; }
.mock-side {
  max-height: calc(100dvh - 160px); overflow: auto; padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
}
.mock-side-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mock-side-head h2 { margin: 0; }
.mock-side-head .muted { flex: 1; font-size: 13px; }
.sheet-close { display: none; }
@media (min-width: 1024px) {
  .mock-side { position: sticky; top: 136px; }
  .sheet-toggle { display: none; }
}
@media (max-width: 1023px) {
  .mock-side {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 75dvh; border-radius: 16px 16px 0 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom)); box-shadow: var(--shadow-float);
    transform: translateY(105%); transition: transform 320ms var(--ease);
  }
  .mock-side.open { transform: none; }
  .sheet-close { display: inline-grid; }
}

/* the optik form, doubling as the navigator */
.optical { display: grid; gap: 16px; }
.optical-head { margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.optical-rows { display: grid; gap: 2px; }
.nav-cell {
  display: grid; grid-template-columns: 28px 1fr 8px; align-items: center; gap: 8px; height: 32px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; text-align: left;
  transition: background-color 150ms var(--ease);
}
.nav-cell:hover { background: var(--surface-2); }
.nav-cell.current { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.nav-num { font: 400 12px var(--mono); color: var(--text-2); text-align: right; }
.nav-dots { display: flex; gap: 6px; }
.nav-dot {
  display: grid; place-items: center; width: 18px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong);
  font-size: 10px; font-weight: 500; color: var(--muted);
}
.nav-dot.filled { border-color: var(--pencil); background: var(--pencil); color: var(--on-pencil); }
.nav-flag { width: 6px; height: 6px; border-radius: 50%; }
.nav-cell.flagged .nav-flag { background: var(--accent); }

/* dialog */
.dialog-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: var(--scrim); animation: fade 160ms var(--ease); }
.dialog { width: min(100%, 420px); padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-float); animation: rise 220ms var(--ease); }
.dialog .row { justify-content: flex-end; margin-top: 20px; }

/* exams list */
.exam-list { display: grid; gap: 8px; margin-top: 12px; }
.exam-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.exam-name { font-weight: 500; }

/* ---------- results ---------- */
.result { display: grid; gap: var(--gutter); }
.result > .grid2 { margin-top: 0; }
.hero-result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.xp-chip { font: 500 13px var(--mono); color: var(--text-2); }
.estimate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.est-tile { display: grid; justify-items: start; gap: 4px; padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); }
.est-label { font-size: 13px; color: var(--text-2); }
.est-num { font: 500 30px/1.1 var(--mono); letter-spacing: -0.01em; }
.est-note { margin: 0; }
.section-tile .tile-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.net { font: 500 36px/1.1 var(--mono); letter-spacing: -0.01em; }
.net small { margin-left: 4px; font: 400 14px var(--font); color: var(--text-2); }
.dyb { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; color: var(--text-2); font-size: 13px; }
.dyb span { display: inline-flex; align-items: center; gap: 4px; }
.coach { display: flex; gap: 12px; align-items: flex-start; }
.coach .ico { color: var(--muted); margin-top: 2px; }
.coach p { margin: 0; }

/* charts */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 12px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sw-correct { background: var(--c-correct); }
.sw-wrong { background: var(--c-wrong); }
.sw-blank { border: 1.5px dashed var(--c-blank); }
.obars { display: grid; gap: 8px; }
.obar-row { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr auto; align-items: center; gap: 12px; }
.obar-label { font-size: 14px; }
.obar-track { display: flex; gap: 2px; height: 12px; }
.seg { height: 100%; min-width: 4px; }
.seg:first-child { border-radius: 3px 0 0 3px; }
.seg:last-child { border-radius: 0 3px 3px 0; }
.seg:only-child { border-radius: 3px; }
.seg-correct { background: var(--c-correct); }
.seg-wrong { background: var(--c-wrong); }
.seg-blank { border: 1.5px dashed var(--line-strong); }
.obar-nums { font: 400 12px var(--mono); color: var(--text-2); white-space: nowrap; }
.obar-nums b { color: var(--text); font-weight: 500; }
.timestrip { margin: 0; }
.timestrip svg { display: block; width: 100%; height: 140px; }
.tb-correct { fill: var(--c-correct); }
.tb-wrong { fill: var(--c-wrong); }
.tb-blank { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.pace { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
figcaption { margin-top: 8px; }

/* review list */
.review-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.review-head-row h2 { margin: 0; }
.seg-control { display: inline-flex; padding: 2px; border-radius: var(--r); background: var(--surface-2); }
.seg-control button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.seg-control button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.review-list { display: grid; gap: 6px; }
.review-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.review-head {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0;
  background: var(--surface); text-align: left; cursor: pointer; transition: background-color 150ms var(--ease);
}
.review-head:hover { background: var(--surface-2); }
.ri-badge { display: grid; place-items: center; flex: none; width: 22px; height: 26px; border-radius: 50%; color: #fff; }
.ri-correct .ri-badge { background: var(--c-correct); }
.ri-wrong .ri-badge { background: var(--c-wrong); }
.ri-blank .ri-badge { border: 1.5px dashed var(--line-strong); }
.ri-text { flex: 1; font-size: 14px; }
.ri-time { font: 400 12px var(--mono); color: var(--text-2); }
.review-body { display: grid; gap: 12px; padding: 12px; background: var(--bg); }

/* ---------- stats ---------- */
.stats-page, .admin, .admin-user, .formulas-page { display: grid; gap: var(--gutter); }
.stats-page > .grid2, .admin > .grid2, .admin-user > .grid2 { margin-top: 0; }
.stats-page > .drill-bar, .formulas-page > .drill-bar, .admin > .drill-bar, .admin-user > .drill-bar { margin-bottom: 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
@media (min-width: 768px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: 8px; }
.stat-label { font-size: 13px; color: var(--text-2); }
.stat-num { font: 500 28px/1.1 var(--mono); letter-spacing: -0.01em; }
.topic-table { display: grid; gap: 0; font-size: 14px; }
.tt-row {
  display: grid; grid-template-columns: minmax(7rem, 1.4fr) 3rem 4.5rem minmax(5rem, 1fr) minmax(6rem, 1.2fr);
  gap: 12px; align-items: center; min-height: 40px; padding: 0 4px; border-bottom: 1px solid var(--line);
}
.tt-head { min-height: 32px; font-size: 12px; color: var(--text-2); }
.tt-section { padding: 20px 4px 6px; font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--line); }
.tt-num { font: 400 13px var(--mono); color: var(--text-2); }
.tt-acc { padding: 3px 0; border-radius: var(--r-sm); text-align: center; font: 500 13px var(--mono); color: var(--muted); }
.tt-acc.has { background: color-mix(in srgb, var(--accent) var(--shade), var(--surface)); color: var(--text); }
.tt-mastery, .tt-time { display: grid; grid-template-columns: 1fr 3rem; gap: 8px; align-items: center; }
.tt-mastery .small, .tt-time .small { font: 400 12px var(--mono); color: var(--text-2); text-align: right; }
.time-track { position: relative; height: 4px; border-radius: 2px; background: var(--surface-2); }
.time-fill { position: absolute; inset: 0; border-radius: 2px; transform-origin: left; background: var(--text-2); }
.time-fill.slow { background: var(--c-wrong); }
.time-pace { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 1px; background: var(--text-2); }
@media (max-width: 640px) {
  .tt-row { grid-template-columns: 1fr 2.4rem 3.8rem; }
  .tt-mastery, .tt-time, .tt-head span:nth-child(n+4) { display: none; }
}
.trend { margin: 0 0 8px; }
.trend svg { display: block; width: 100%; height: auto; }
.trend .grid { stroke: var(--line); stroke-width: 1; }
.trend .axis { font: 400 11px var(--mono); fill: var(--muted); }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.trend-label { font: 500 13px var(--mono); fill: var(--text); }
.daily-bars { margin: 0; }
.daily-bars svg { display: block; width: 100%; height: 120px; }
.db-bar { fill: color-mix(in srgb, var(--text) 16%, var(--surface)); }
.db-bar.met { fill: var(--accent); }
.db-bar.today { stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; }
.daily-bars .goal { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

.mock-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mock-list a {
  display: grid; grid-template-columns: 1fr auto auto 16px; align-items: center; gap: 16px; min-height: 44px; padding: 0 8px;
  border-bottom: 1px solid var(--line); color: var(--text); transition: background-color 150ms var(--ease);
}
.mock-list li:last-child a { border-bottom: 0; }
.mock-list a:hover { background: var(--surface-2); text-decoration: none; }
.mock-list .ico { color: var(--muted); }
.ml-meta { font-size: 13px; color: var(--text-2); }
.ml-net { font: 400 13px var(--mono); color: var(--text-2); }
@media (max-width: 560px) { .ml-meta { display: none; } }

/* ---------- formulas page ---------- */
.formulas-layout { display: grid; gap: var(--gutter); }
.topic-index { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.topic-index a {
  flex: none; height: 32px; padding: 0 12px; line-height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; transition: background-color 150ms var(--ease);
}
.topic-index a:hover { text-decoration: none; background: var(--surface-2); }
@media (min-width: 1024px) {
  .formulas-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
  .topic-index { position: sticky; top: 80px; flex-direction: column; gap: 2px; overflow: visible; }
  .topic-index a { border-color: transparent; background: none; }
  .topic-index a:hover { background: var(--surface-2); }
}
.formula-topics { display: grid; gap: var(--gutter); }
.formula-topic { display: grid; gap: 12px; scroll-margin-top: 80px; }
.ft-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ft-head h2 { margin: 0; font-size: 18px; }
.ft-sub h3 { margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.ft-sub .formula { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.formula-example { margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--line-strong); font-size: 13px; color: var(--text-2); }

/* ---------- admin ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { padding: 8px; text-align: left; font-size: 12px; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.data tr.disabled td { opacity: 0.5; }
table.data.compact td { padding: 6px 8px; }
.th-sort { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.th-sort[aria-pressed="true"] { color: var(--accent); }
.invite { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.invite label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.invite select { width: auto; }
.invite-out { display: flex; gap: 8px; margin-top: 12px; }
.invite-out input { font: 400 13px var(--mono); }
.report-list, .activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.report-list li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.activity { max-height: 420px; overflow: auto; }
.activity li { display: grid; grid-template-columns: 6.5rem 4.5rem 1fr; gap: 8px; align-items: baseline; font-size: 14px; }
.act-kind { font: 400 12px var(--mono); color: var(--text-2); }
.admin-user label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.sample-grid { display: grid; gap: var(--gutter); margin-top: 16px; }
@media (min-width: 1024px) { .sample-grid { grid-template-columns: 1fr 1fr; } }
.sample { display: grid; gap: 8px; }
.sample-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
