/* ==========================================================================
   הדרך ל־26 – design system + screens. RTL-first, mobile-first, light/dark.
   ========================================================================== */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/rubik-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/rubik-latin.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 {
  --fs: 1;
  --bg: #f3f5fb; --surface: #ffffff; --surface-2: #eef1f8; --surface-3: #e3e8f4;
  --ink: #141b2d; --ink-2: #4a5470; --ink-3: #5b6580; --line: #dde3ef;
  --brand: #2456e6; --brand-2: #1d44b8; --brand-soft: #e4ebff; --on-brand: #fff;
  --accent: #ffc21a;
  --good: #109b66; --good-soft: #dcf5ea; --good-ink: #0a6b46;
  --bad: #d63643; --bad-soft: #fde4e6; --bad-ink: #a2222d;
  --warn: #d77e00; --warn-soft: #fff0d2; --warn-ink: #8f5400;
  --c-law: #2456e6; --c-signs: #7a4ef0; --c-safety: #ee8420; --c-vehicle: #0c9a8a;
  --good-fill: #0b7a52; --bad-fill: #c62d3a; --on-fill: #ffffff; /* solid fills that carry white text (>= 4.5:1) */
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 27, 45, .05), 0 6px 22px rgba(20, 27, 45, .07);
  --shadow-lg: 0 10px 40px rgba(20, 27, 45, .18);
  --ring: 0 0 0 3px rgba(36, 86, 230, .35);
  --tabbar-h: 66px; --topbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0d1322; --surface: #161e34; --surface-2: #1d2743; --surface-3: #27335a;
  --ink: #edf1fb; --ink-2: #b4bed6; --ink-3: #98a4bf; --line: #28335a;
  --brand: #6f97ff; --brand-2: #8fb0ff; --brand-soft: #1f2d5e; --on-brand: #0b1230;
  --good: #34c98b; --good-soft: #0f3a2a; --good-ink: #7be3b4;
  --bad: #ff6b76; --bad-soft: #451a20; --bad-ink: #ffa3aa;
  --warn: #ffb547; --warn-soft: #43300f; --warn-ink: #ffd18a;
  --c-law: #7ea1ff; --c-signs: #a58aff; --c-safety: #ffab5c; --c-vehicle: #37d3c0;
  --good-fill: #34c98b; --bad-fill: #ff6b76; --on-fill: #0b1230;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 22px rgba(0, 0, 0, .28);
  --ring: 0 0 0 3px rgba(111, 151, 255, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Hebrew', Arial, sans-serif; line-height: 1.5; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; font-weight: 800; } h2 { font-size: 1.3rem; font-weight: 700; } h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
p { margin: 0 0 8px; } a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; } /* outline (not box-shadow): survives component shadows and forced-colors */
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
[hidden] { display: none !important; }

.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.muted { color: var(--ink-2); } .small { font-size: .84rem; } .center { text-align: center; }
.fineprint { font-size: .78rem; color: var(--ink-3); margin-top: 10px; } .fineprint a { text-decoration: underline; }
.link { color: var(--brand); font-weight: 600; } .link:hover { text-decoration: underline; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.grow { flex: 1 1 0; min-width: 0; }
.stack > * + * { margin-top: 12px; }

/* ---- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 14px; background: var(--surface-2); font-weight: 600; font-size: .95rem; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; user-select: none; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 14px rgba(36, 86, 230, .28); } .btn-primary:hover { background: var(--brand-2); }
:root[data-theme='dark'] .btn-primary { box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--bad-fill); color: var(--on-fill); }
.btn-danger-ghost { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; border-radius: 16px; }
.btn-icon { width: 44px; padding: 0; } .btn-icon.btn-ghost { border-color: transparent; }

/* ---- cards / chips / bits -------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
button.card, a.card { text-align: start; display: block; width: 100%; color: inherit; }
a.card:hover, button.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.chip-cat { background: color-mix(in srgb, var(--cc, var(--brand)) 14%, transparent); color: var(--cc, var(--brand)); }
.chip.tone-brand { background: var(--brand-soft); color: var(--brand); } .chip.tone-good { background: var(--good-soft); color: var(--good-ink); } .chip.tone-warn { background: var(--warn-soft); color: var(--warn-ink); } .chip.tone-bad { background: var(--bad-soft); color: var(--bad-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; box-shadow: var(--shadow); }
.pill.streak { color: #c2410c; } :root[data-theme='dark'] .pill.streak { color: #ff8a4c; } .pill.xp { color: var(--brand); }
.pill .ic { width: 1.1em; height: 1.1em; fill: currentColor; fill-opacity: .18; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); flex: none; }
.dot-strong { background: var(--good); } .dot-learning { background: #7bd3ab; } .dot-weak { background: var(--bad); } .dot-new { background: var(--surface-3); border: 1.5px solid var(--ink-3); }
.statusbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; margin: 8px 0 4px; }
.statusbar .seg { display: block; min-width: 4px; } .seg-strong { background: var(--good); } .seg-learning { background: #7bd3ab; } .seg-weak { background: var(--bad); } .seg-new { background: transparent; }
.seg-ctl { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg-ctl button { border: 0; background: transparent; min-height: 38px; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.seg-ctl button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.grid { display: grid; gap: 12px; } .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } .grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.empty { text-align: center; padding: 34px 16px; } .empty-e { font-size: 2.6rem; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: .9rem; color: var(--ink-2); } .check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---- ring / gauge ------------------------------------------------------------- */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring-svg { display: block; } .ring-track { stroke: var(--surface-3); } .ring-val { stroke: var(--brand); transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); }
.ring.tone-good .ring-val { stroke: var(--good); } .ring.tone-warn .ring-val { stroke: var(--warn); } .ring.tone-bad .ring-val { stroke: var(--bad); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-text b { font-size: 1.15em; font-weight: 800; } .ring-text small { font-size: .62em; color: var(--ink-2); margin-top: 2px; max-width: 80%; margin-inline: auto; }
.gauge { position: relative; width: 220px; max-width: 100%; margin: 0 auto; } .gauge-svg { display: block; width: 100%; }
.gauge-track { stroke: var(--surface-3); } .gauge-val { stroke: var(--brand); transition: all .8s; } .gauge-val.tone-good { stroke: var(--good); } .gauge-val.tone-warn { stroke: var(--warn); } .gauge-val.tone-bad { stroke: var(--bad); }
.gauge-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 3; } .gauge-mark { stroke: var(--good); }
.gauge-text { position: absolute; inset-inline: 0; bottom: 2px; text-align: center; line-height: 1.15; }
.gauge-text b { display: block; font-size: 2.1rem; font-weight: 800; } .gauge-text small { color: var(--ink-2); font-size: .78rem; }

/* ---- shell ------------------------------------------------------------------ */
#app { min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; } .brand b { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.1; } .brand small { display: block; font-size: .7rem; color: var(--ink-2); line-height: 1.1; }
.logo { display: block; width: 36px; height: 36px; } .logo svg { width: 100%; height: 100%; display: block; }
.top-actions { display: flex; gap: 2px; } .top-actions a.active { color: var(--brand); background: var(--brand-soft); }
.layout { display: block; max-width: 1080px; margin: 0 auto; }
main { display: block; padding: 16px 14px calc(var(--tabbar-h) + var(--safe-b) + 28px); outline: none; min-width: 0; }
.rail { display: none; }
.tabbar { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(20, 27, 45, .06); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--ink-3); position: relative; padding: 6px 2px; }
.tab .ic { width: 1.55rem; height: 1.55rem; } .tab.active { color: var(--brand); }
.tab.active::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px; padding: 0 12px; }
  .rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; padding-top: 16px; }
  .rail-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 600; color: var(--ink-2); } .rail-link:hover { background: var(--surface-2); }
  .rail-link.active { background: var(--brand-soft); color: var(--brand); }
  .tabbar { display: none; } main { padding-bottom: 60px; } .top-actions { display: none; }
}
body.focus .topbar, body.focus .tabbar, body.focus .rail { display: none; }
body.focus .layout { display: block; max-width: 760px; } body.focus main { padding: 0 0 calc(130px + var(--safe-b)); }
.boot { display: grid; place-items: center; gap: 12px; padding: 90px 0; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--brand); animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.page { animation: rise .28s ease both; display: flex; flex-direction: column; gap: 14px; } @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.page-head p { margin: 4px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; } .section-head.tight { margin: 0 0 8px; } .section-head h3 { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); align-self: flex-start; } .back-link:hover { color: var(--brand); }

/* ---- home --------------------------------------------------------------------- */
.home-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .greet { font-size: 1.6rem; }
.hero { display: grid; gap: 14px; background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, var(--brand-soft) 60%, var(--surface)) 100%); }
@media (min-width: 640px) { .hero { grid-template-columns: 240px 1fr; align-items: center; } }
.hero-text p { margin: 8px 0; } .hero-cov { margin-top: 6px; } .exam-date { display: flex; align-items: center; gap: 10px; color: var(--brand); margin-top: 6px; } .exam-date .ic { width: 1.6rem; height: 1.6rem; }
.today { display: flex; align-items: center; gap: 14px; }
.cta { display: flex !important; align-items: center; gap: 14px; background: var(--brand); color: var(--on-brand); border-color: transparent; }
.cta:hover { background: var(--brand-2); border-color: transparent; } .cta .muted { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.cta-ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .9); display: grid; place-items: center; flex: none; font-size: 1.8rem; } .cta-ic img { width: 44px; height: 44px; } .cta-ic .ic { color: var(--brand); width: 30px; height: 30px; }
.cta-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; } .cta-text b { font-size: 1.1rem; } .cta-text small { opacity: .85; }
.tile { display: flex !important; flex-direction: column; gap: 4px; padding: 14px; }
.tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 14%, transparent); color: var(--cc); margin-bottom: 4px; }
.catcard { display: flex !important; align-items: center; gap: 12px; } .cat-emoji { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.catcard .statusbar { margin-top: 6px; } .catcard small { display: block; }
.weak-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); font-weight: 600; } .weak-row:first-child { border-top: 0; }
.badge-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 92px; padding: 10px 8px; border-radius: 14px; background: var(--surface-2); } .badge small { font-size: .72rem; line-height: 1.2; } .badge-e { font-size: 1.7rem; } .badge.locked { opacity: .5; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }

/* ---- learn / units ------------------------------------------------------------ */
.cat-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-tab { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--ink-2); } .cat-tab small { font-size: .7rem; font-weight: 500; color: var(--ink-3); }
.cat-tab .ct-e { font-size: 1.4rem; line-height: 1.2; } .cat-tab.on { border-color: var(--cc, var(--brand)); color: var(--cc, var(--brand)); background: color-mix(in srgb, var(--cc, var(--brand)) 9%, var(--surface)); }
.cat-tabs.sm { grid-template-columns: repeat(4, 1fr); } .cat-tabs.sm .cat-tab { flex-direction: column; } .cat-tabs.sm .cat-tab.on { --cc: var(--brand); }
.cat-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.unit-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.unit-card { display: flex !important; gap: 14px; align-items: flex-start; position: relative; } .unit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .unit-card { transition: transform .15s, box-shadow .15s; }
.unit-card.done { border-color: var(--good); }
.uicon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--cc) 14%, #ffffff); border: 1px solid color-mix(in srgb, var(--cc) 28%, #ffffff); overflow: hidden; }
.uicon img { width: 76%; height: 76%; object-fit: contain; } .uicon-emoji { font-size: 1.9rem; } .uicon.big { width: 92px; height: 92px; border-radius: 26px; }
.uc-body { flex: 1; min-width: 0; } .uc-title { display: flex; align-items: center; gap: 8px; } .uc-title b { font-size: 1.02rem; }
.uc-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--cc); color: #fff; font-size: .72rem; font-weight: 700; }
:root[data-theme='dark'] .uc-n { color: #0d1322; }
.uc-done { margin-inline-start: auto; color: var(--good); } .uc-blurb { display: block; line-height: 1.35; margin-top: 2px; }
.uc-meta { display: flex; gap: 10px; } .tag-due, .tag-weak { color: var(--warn-ink); background: var(--warn-soft); padding: 0 8px; border-radius: 99px; font-weight: 600; } .tag-weak { color: var(--bad-ink); background: var(--bad-soft); }
.unit-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--cc) 10%, var(--surface))); }
.statusline { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 12px 6px; }
.st { display: flex; flex-direction: column; align-items: center; gap: 2px; } .st b { font-size: 1.3rem; } .st small { color: var(--ink-2); font-size: .74rem; }
.actions .btn { flex: 1 1 200px; }
.summary-card summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; color: var(--cc); } .summary-card summary::-webkit-details-marker { display: none; } .summary-card summary h2.sub, .summary-card summary h3 { margin: 0; color: var(--ink); flex: 1; }
.sum-chev { transition: transform .2s; } details[open] > summary .sum-chev { transform: rotate(-90deg); }
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; border-inline-start: 4px solid var(--cc); line-height: 1.45; }
.fact-src { border: 0; background: transparent; color: var(--ink-3); font-size: .72rem; white-space: nowrap; padding: 2px 6px; border-radius: 8px; } .fact-src:hover { background: var(--surface-3); color: var(--brand); }
.next-unit { display: flex !important; align-items: center; gap: 12px; } .next-unit b { flex: 1; }
.qlist { display: flex; flex-direction: column; }
.qrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 11px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; } .qrow:first-child { border-top: 0; } .qrow:hover { background: var(--surface-2); border-radius: 10px; }
.qrow-img { width: 56px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; border: 1px solid var(--line); }
.qrow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .qrow-q { font-weight: 600; font-size: .92rem; line-height: 1.35; } .qrow-a { color: var(--good-ink); font-size: .82rem; line-height: 1.35; }
.qrow-num { color: var(--ink-3); font-size: .74rem; flex: none; }
.browse-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .88rem; color: var(--ink-2); }

/* ---- question card ------------------------------------------------------------ */
.qcard { display: flex; flex-direction: column; gap: 14px; }
.qhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .qmeta { display: flex; align-items: center; gap: 8px; min-width: 0; } .qmeta .chip { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qnum { font-size: .75rem; color: var(--ink-3); }
.stem { font-size: 1.28rem; font-weight: 700; line-height: 1.45; }
.qimg { margin: 0; text-align: center; } .qimg-btn { display: inline-block; border: 1px solid var(--line); border-radius: 16px; padding: 0; background: #fff; overflow: hidden; max-width: 100%; box-shadow: var(--shadow); cursor: zoom-in; }
.qimg img { display: block; width: min(100%, 420px); height: auto; } .qimg-big { width: 100%; height: auto; border-radius: 12px; background: #fff; display: block; }
.answers { display: grid; gap: 10px; }
.answer { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; text-align: start; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); font-size: 1.04rem; line-height: 1.45; transition: border-color .15s, background .15s, transform .08s; }
.answer:hover:not([disabled]) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); } .answer:active:not([disabled]) { transform: scale(.985); }
.letter { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: .95rem; flex: none; color: var(--ink-2); transition: all .15s; }
.atext { flex: 1; } .mark { width: 26px; flex: none; display: grid; place-items: center; } .mark .ic { width: 1.5rem; height: 1.5rem; stroke-width: 3; }
.answer.is-picked { border-color: var(--brand); background: var(--brand-soft); } .answer.is-picked .letter { background: var(--brand); color: var(--on-brand); }
.answer.is-correct { border-color: var(--good); background: var(--good-soft); color: var(--ink); } .answer.is-correct .letter { background: var(--good-fill); color: var(--on-fill); } .answer.is-correct .mark { color: var(--good); }
.answer.is-wrong { border-color: var(--bad); background: var(--bad-soft); animation: shake .35s; } .answer.is-wrong .letter { background: var(--bad-fill); color: var(--on-fill); } .answer.is-wrong .mark { color: var(--bad); }
.answer.is-dim { opacity: .55; } .answer[disabled] { cursor: default; }
@keyframes shake { 20% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 80% { transform: translateX(-3px); } }
.flag-btn.on { color: var(--accent); } .flag-btn.on .ic { fill: currentColor; } .mark-btn.on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn-ink); }

/* ---- session (practice + exam) ---------------------------------------------- */
.session { min-height: 100dvh; display: flex; flex-direction: column; } .session-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.session-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .session-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #6f97ff); border-radius: 99px; transition: width .35s; }
.session-count { font-weight: 700; font-size: .9rem; color: var(--ink-2); min-width: 54px; text-align: center; }
.session-body { padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.session-foot { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; padding: 12px 14px calc(12px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(20, 27, 45, .08); max-width: 760px; margin-inline: auto; }
.foot-hint { text-align: center; color: var(--ink-3); font-size: .82rem; }
.session-foot.fb { display: flex; align-items: center; gap: 12px; } .fb-good { background: var(--good-soft); border-top-color: var(--good); } .fb-bad { background: var(--bad-soft); border-top-color: var(--bad); }
.fb-msg { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; } .fb-msg strong { display: block; font-size: 1.1rem; } .fb-good strong { color: var(--good-ink); } .fb-bad strong { color: var(--bad-ink); }
.fb-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--on-fill); flex: none; } .fb-good .fb-ic { background: var(--good-fill); } .fb-bad .fb-ic { background: var(--bad-fill); } .fb-ic .ic { stroke-width: 3; }
.fb-xp, .fb-sub { font-size: .84rem; color: var(--ink-2); } .fb-next { flex: none; min-width: 130px; }
.retry-note { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--warn-ink); background: var(--warn-soft); padding: 5px 12px; border-radius: 99px; align-self: flex-start; }
.exam-foot { display: flex; gap: 8px; justify-content: space-between; } .exam-foot .btn { flex: 1; padding: 0 10px; }
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.timer.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn); } .timer.crit { background: var(--bad-soft); color: var(--bad-ink); border-color: var(--bad); animation: pulse 1s infinite; } @keyframes pulse { 50% { opacity: .55; } }
.nav-btn { min-height: 36px; padding: 0 12px; }
.nav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; } @media (min-width: 520px) { .nav-grid { grid-template-columns: repeat(10, 1fr); } }
.nav-dot { aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; } .nav-dot.ans { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); } .nav-dot.marked { border-color: var(--warn); background: var(--warn-soft); color: var(--warn-ink); } .nav-dot.cur { box-shadow: 0 0 0 3px var(--ink); }
.nav-legend { display: flex; gap: 14px; margin-bottom: 12px; font-size: .8rem; color: var(--ink-2); } .lg::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 6px; vertical-align: -1px; border: 2px solid var(--line); } .lg-a::before { background: var(--brand-soft); border-color: var(--brand); } .lg-m::before { background: var(--warn-soft); border-color: var(--warn); }
.summary { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; } .summary-ring { margin: 8px 0 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; } .stat { background: var(--surface-2); border-radius: 14px; padding: 10px 6px; } .stat-v { font-size: 1.25rem; font-weight: 800; } .stat-l { font-size: .74rem; color: var(--ink-2); }
.wrong-list { width: 100%; text-align: start; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wrong-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); border-inline-start: 5px solid var(--bad); } .wrong-item.is-ok { border-inline-start-color: var(--good); }
.wrong-item summary { display: flex; gap: 10px; align-items: center; padding: 11px 12px; cursor: pointer; list-style: none; } .wrong-item summary::-webkit-details-marker { display: none; }
.wi-num { font-size: .72rem; color: var(--ink-3); flex: none; } .wi-q { flex: 1; font-weight: 600; font-size: .92rem; line-height: 1.35; } .wi-chev { transition: transform .2s; flex: none; color: var(--ink-3); } details[open] > summary .wi-chev { transform: rotate(-90deg); }
.wi-state { color: var(--good); flex: none; } .wi-state.bad { color: var(--bad); }
.wi-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; } .wi-img { width: min(100%, 300px); border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.wi-yours, .wi-right { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 10px; font-size: .9rem; } .wi-yours { background: var(--bad-soft); color: var(--bad-ink); } .wi-right { background: var(--good-soft); color: var(--good-ink); }
.wi-yours .ic, .wi-right .ic { margin-top: 3px; }

/* ---- exam intro / result ------------------------------------------------------ */
.exam-rules { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; } .rule b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; } .rule span { font-size: .8rem; color: var(--ink-2); } .rule-pass b { color: var(--good); }
.lic-line { display: flex; align-items: center; gap: 12px; } .lic-emoji { font-size: 1.9rem; }
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: var(--brand); background: var(--brand-soft); }
.choice { display: flex !important; flex-direction: column; gap: 4px; } .choice-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 14%, transparent); color: var(--cc); margin-bottom: 6px; } .choice-ic .ic { width: 26px; height: 26px; }
.hist { list-style: none; margin: 0; padding: 0; } .hist-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .hist li:first-child .hist-row { border-top: 0; }
.hist-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--on-fill); } .hist-row.ok .hist-badge { background: var(--good-fill); } .hist-row.no .hist-badge { background: var(--bad-fill); }
.result-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: start; border-width: 2px; } .result-hero.good { border-color: var(--good); background: linear-gradient(160deg, var(--surface), var(--good-soft)); } .result-hero.bad { border-color: var(--bad); background: linear-gradient(160deg, var(--surface), var(--bad-soft)); }
.result-text { flex: 1 1 260px; } .result-hero.good h1 { color: var(--good-ink); } .result-hero.bad h1 { color: var(--bad-ink); }
.cat-bar, .ua-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; } .ua-row { grid-template-columns: minmax(110px, 1.2fr) 2fr 44px; }
.cb-track, .ua-track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .cb-track i, .ua-track i { display: block; height: 100%; background: var(--cc); border-radius: 99px; } .cb-val, .ua-val { text-align: end; font-weight: 700; font-size: .85rem; }
.ua-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ---- signs -------------------------------------------------------------------- */
.searchbar { display: flex; align-items: center; gap: 10px; padding: 4px 14px; border-radius: 14px; } .searchbar .ic { color: var(--ink-3); }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; padding: 11px 0; outline: none; } .search-input::placeholder { color: var(--ink-3); }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .chip-scroll::-webkit-scrollbar { display: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .86rem; color: var(--ink-2); } .chip-btn small { color: var(--ink-3); } .chip-btn.on { background: var(--c-signs); border-color: var(--c-signs); color: #fff; } .chip-btn.on small { color: #fff; } :root[data-theme='dark'] .chip-btn.on { color: #0b1230; } :root[data-theme='dark'] .chip-btn.on small { color: #0b1230; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 10px; }
.sign-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); text-align: center; min-height: 150px; } .sign-card:hover { border-color: var(--c-signs); }
.sign-card img { width: 100%; height: 110px; object-fit: contain; background: #fff; border-radius: 10px; } .sc-meaning { font-size: .84rem; font-weight: 600; line-height: 1.3; }
.sc-reveal { display: none; align-items: center; gap: 6px; font-size: .8rem; color: var(--c-signs); font-weight: 700; }
.sign-card.hidden .sc-meaning { display: none; } .sign-card.hidden .sc-reveal { display: inline-flex; }

/* ---- stats / settings / search --------------------------------------------------- */
.kpi { text-align: center; padding: 14px 8px; } .kpi-v { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1.1; } .kpi-l { font-size: .82rem; color: var(--ink-2); }
.heatmap { display: flex; gap: 4px; direction: ltr; justify-content: center; overflow-x: auto; padding: 4px 0; } .hm-col { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.hm-cell { display: block; width: 16px; height: 16px; border-radius: 4px; background: var(--surface-3); } .hm-1 { background: #bfe3d3; } .hm-2 { background: #7bd3ab; } .hm-3 { background: #34b381; } .hm-4 { background: #0e8a5d; } .hm-future { background: transparent; }
:root[data-theme='dark'] .hm-1 { background: #1c5a43; } :root[data-theme='dark'] .hm-2 { background: #23825d; } :root[data-theme='dark'] .hm-3 { background: #2fb583; } :root[data-theme='dark'] .hm-4 { background: #6ce0b1; }
.hm-legend { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 8px; direction: ltr; } .hm-legend .hm-cell { width: 13px; height: 13px; }
.exam-bars { width: 100%; max-width: 480px; display: block; margin: 0 auto; } .passline { stroke: var(--good); stroke-width: 1.5; stroke-dasharray: 5 4; } .passtext { fill: var(--good); font-size: 10px; font-weight: 700; } .bar-good { fill: var(--good); } .bar-bad { fill: var(--bad); } .bar-label { fill: var(--ink); font-size: 10px; font-weight: 700; }
.cat-row { padding: 6px 0; } .cat-row + .cat-row { border-top: 1px solid var(--line); }
.setting, .field { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); } .card > h2.sub + .setting, .card > h2.sub + .field, .card > h3 + .setting, .card > h3 + .field { border-top: 0; }
.field { flex-wrap: wrap; } .field > span { font-weight: 600; font-size: .92rem; } .field input[type='text'], .field input[type='date'] { flex: 1 1 200px; max-width: 320px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font: inherit; color: inherit; }
label.field { align-items: center; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; border: 0; background: var(--surface-3); flex: none; transition: background .2s; } .switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch[aria-checked='true'] { background: var(--good); } .switch[aria-checked='true'] i { transform: translateX(-22px); }
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; } .lic-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; } .lic-opt small { color: var(--ink-2); font-size: .74rem; line-height: 1.2; } .lic-opt.on { border-color: var(--brand); background: var(--brand-soft); } .lic-e { font-size: 1.7rem; }
.dl-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 10px 0 4px; } .dl-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.result-row { display: flex !important; flex-direction: column; gap: 6px; margin-top: 8px; } .rr-q { font-weight: 600; line-height: 1.4; } .rr-a { display: flex; gap: 6px; align-items: flex-start; color: var(--good-ink); font-size: .9rem; } .rr-a .ic { margin-top: 3px; }
.results { margin-top: 8px; }

/* ---- overlays --------------------------------------------------------------------- */
.toasts, #toasts { position: fixed; z-index: 100; inset-inline: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
body.focus #toasts { bottom: calc(110px + var(--safe-b)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: auto; max-width: 92vw; } .toast.in { opacity: 1; transform: none; }
.toast-good { background: var(--good-fill); color: var(--on-fill); } .toast-bad { background: var(--bad-fill); color: var(--on-fill); } .toast-warn { background: var(--warn); color: #201400; } .toast .btn { min-height: 30px; padding: 0 10px; }
.sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 24, .5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; } .sheet-back.in { opacity: 1; }
.sheet { width: min(640px, 100%); max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); box-shadow: var(--shadow-lg); transform: translateY(30px); transition: transform .25s; } .sheet-back.in .sheet { transform: none; }
@media (min-width: 720px) { .sheet-back { align-items: center; } .sheet { border-radius: 26px; padding-bottom: 20px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 6px 0; z-index: 2; } .sheet-head h2.sub, .sheet-head h3 { margin: 0; } .sheet-text { margin: 4px 0 18px; color: var(--ink-2); }
.confetti { position: fixed; inset: 0; z-index: 120; pointer-events: none; width: 100vw; height: 100vh; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
@media print { .topbar, .tabbar, .rail, .session-foot { display: none !important; } }

/* numbers next to slashes / plus signs must not be re-ordered by the RTL bidi algorithm */
/* only purely numeric values are isolated; Hebrew unit strings ("2 ש׳ 29 דק׳") must keep the RTL order */
.session-count, .cb-val, .ua-val, .qnum { direction: ltr; unicode-bidi: isolate; }
body.focus #toasts { bottom: auto; top: 64px; }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; } .summary-actions .btn { flex: 1 1 160px; }
.session.summary-mode .session-foot { display: none; }

/* onboarding */
.welcome { text-align: center; margin-bottom: 10px; } .welcome h2 { margin: 6px 0; }
.welcome-sign { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; border: 9px solid #d63643; background: #fff; color: #141b2d; display: grid; place-items: center; font-weight: 900; font-size: 2rem; box-shadow: var(--shadow); }
.field.stacked { flex-direction: column; align-items: stretch; gap: 8px; } .field.stacked input[type='text'], .field.stacked input[type='date'] { max-width: none; flex: none; }
.lic-grid.compact { grid-template-columns: repeat(3, 1fr); margin-top: 0; } .lic-grid.compact .lic-opt { padding: 8px 4px; } .lic-grid.compact small { display: none; } .lic-grid.compact .lic-e { font-size: 1.4rem; }
.btn-block { width: 100%; }

@media (min-width: 900px) {
  .topbar { padding-inline: max(12px, calc((100vw - 1080px) / 2 + 12px)); }
  #toasts { bottom: 24px; }
  body.focus .session-foot { border-radius: 20px 20px 0 0; }
}

/* missing picture (offline) */
.qimg-missing { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--surface-2); color: var(--ink-2); text-align: center; }
.qimg-missing .ic { width: 1.6rem; height: 1.6rem; }
.offline-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-color: var(--brand); background: var(--brand-soft); }
.offline-card .grow { min-width: 200px; }
.sheet:focus { outline: none; }

/* ---- review fixes: focus, scroll lock, hit areas, wrapping ---------------------------------- */
main:focus, #view:focus-visible { outline: none; box-shadow: none; }
html { scrollbar-gutter: stable; }
body:has(.sheet-back) { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
.searchbar:focus-within { box-shadow: var(--ring); } .search-input:focus-visible { box-shadow: none; } .search-input { padding-inline: 4px; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; }
.chip-btn, .seg-ctl button, .nav-btn { min-height: 44px; } .ua-row { min-height: 44px; }
.cat-tabs.sm .cat-tab { justify-content: flex-start; } .cat-tabs.sm .cat-tab small { margin-top: auto; }
.cat-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .86rem; } .cat-meta span { white-space: nowrap; }
.summary-actions, .result-actions { display: flex; gap: 10px; flex-wrap: wrap; } .summary-actions .btn, .result-actions .btn { flex: 1 1 160px; }
@media (max-width: 480px) { .summary-actions .btn, .result-actions .btn { flex-basis: 100%; } }
@media (min-width: 640px) { .lic-grid:not(.compact) { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .chip-scroll { flex-wrap: wrap; overflow: visible; } }
.toast { pointer-events: none; } .toast:has(.btn) { pointer-events: auto; }
body.focus #toasts { top: auto; bottom: calc(112px + var(--safe-b)); }
.sheet-cta { position: sticky; bottom: -8px; background: var(--surface); padding: 12px 0 4px; margin-top: 8px; }
.chart-note { font-size: .78rem; color: var(--ink-3); margin: 4px 0 0; }
.exam-bars { direction: ltr; } .bar-label { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }

/* ---- accessibility fixes -------------------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seg-ctl button:focus-visible, .chip-scroll .chip-btn:focus-visible { outline-offset: -3px; }
.searchbar:focus-within { box-shadow: none; outline: 3px solid var(--brand); outline-offset: 2px; } .search-input:focus-visible { outline: none; }
.card.cta { color: var(--on-brand); } .cta .muted, .cta-text small.muted { color: color-mix(in srgb, var(--on-brand) 88%, transparent); opacity: 1; }
:root:not([data-theme='dark']) .chip-cat, :root:not([data-theme='dark']) .cat-tab.on { color: color-mix(in srgb, var(--cc) 50%, var(--ink)); }
:root:not([data-theme='dark']) .uc-n { background: color-mix(in srgb, var(--cc) 60%, #141b2d); }
html { scroll-padding-top: calc(var(--topbar-h) + 12px); scroll-padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); }
html:has(body.focus) { scroll-padding-top: 68px; scroll-padding-bottom: 130px; }
@media (min-width: 900px) { html { scroll-padding-bottom: 24px; } }
.badge.locked { opacity: 1; } .badge.locked .badge-e { opacity: .5; }
.field input::placeholder, .search-input::placeholder { color: var(--ink-3); }
.field input[type='text'], .field input[type='date'] { min-width: 0; width: 100%; border-color: var(--ink-3); }
.switch { background: #8b94ab; } :root[data-theme='dark'] .switch { background: #6b7796; } .switch[aria-checked='true'] { background: var(--good-fill); }
@media (hover: none) { .foot-hint { display: none; } }
/* status dots carry a glyph so they do not rely on colour alone */
.qrow .dot { width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; line-height: 1; color: var(--on-fill); }
.qrow .dot-strong::after { content: '✓'; } .qrow .dot-weak::after { content: '!'; } .qrow .dot-learning::after { content: '•'; color: #063; } .qrow .dot-new { color: var(--ink-3); }
h2.sub { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; } .section-head h2.sub, .summary-card summary h2.sub { margin: 0; }
.summary-card summary h2.sub { color: var(--ink); flex: 1; }
