/* GENERATED from docs/mockups/components.css by server-php/tools/sync-design.py. Do not edit: change the
   design file (design session) and re-run the script. @font-face rules live in fonts.css. */
/* MedTective — Stain & Slide, refined. Base, shell and components. Logical properties throughout (RTL). */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--tray); color: var(--ink);
  font: 400 var(--fs-md)/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--haem); text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
::selection { background: var(--select); color: inherit; }
:focus-visible { outline: 3px solid var(--haem); outline-offset: 2px; border-radius: 4px; }
input, textarea { caret-color: var(--haem); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.book { font-family: var(--font-book); }
/* English islands (book and chapter titles) keep Literata inside a Persian page */
:root:lang(fa) [lang="en"] { font-family: var(--font-book); }
.muted { color: var(--ink-2); }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] svg.i.flip { transform: scaleX(-1); }

/* ---------- Shell: tab bar on phones, rail from 900px ---------- */
.app { min-height: 100dvh; }
.main { padding: var(--s5) var(--gutter) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--s6)); max-width: 1120px; margin-inline: auto; }
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); /* any number of tabs */
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar-solid);
  border-top: 1px solid var(--line);
}
.bar-frost { background: var(--bar-solid); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .tabbar, .bar-frost { background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}
@media (prefers-contrast: more) { .tabbar, .bar-frost { background: var(--bar-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-xs); font-weight: 500; }
.tab__pill { display: grid; place-items: center; width: 52px; height: 30px; border-radius: var(--r-pill); transition: background-color .2s var(--ease-out); }
.tab[aria-current="page"] { color: var(--haem); font-weight: 650; }
.tab[aria-current="page"] .tab__pill { background: var(--haem-wash); }
.rail { display: none; }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: var(--rail-w) 1fr; }
  .tabbar { display: none; }
  .rail {
    display: flex; flex-direction: column; gap: var(--s1); position: sticky; top: 0; height: 100dvh;
    padding: var(--s5) var(--s3); border-inline-end: 1px solid var(--line); background: var(--slide);
  }
  .rail .brand { padding: 0 var(--s3) var(--s5); }
  .rail .tab { flex-direction: row; justify-content: flex-start; gap: var(--s3); height: var(--tap); padding-inline: var(--s3); border-radius: var(--r-md); font-size: var(--fs-md); }
  .rail .tab__pill { width: auto; height: auto; background: none !important; }
  .rail .tab[aria-current="page"] { background: var(--haem-wash); }
  .rail .rail__foot { margin-top: auto; padding: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
  .main { padding: var(--s6) var(--s6) var(--s7); }
}

.brand { font: 600 var(--fs-2xl)/1 var(--font-book); color: var(--haem); letter-spacing: -.01em; }
.page-head { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); margin-bottom: var(--s4); }
.page-head h1 { font: 600 var(--fs-xl)/1.15 var(--font-head); flex: 1; }
.back { display: grid; place-items: center; width: var(--tap); height: var(--tap); margin-inline-start: calc(-1 * var(--s2)); border-radius: var(--r-pill); color: var(--ink); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin: var(--s6) 0 var(--s3); }
.section-head h2 { font: 600 var(--fs-lg)/1.2 var(--font-head); }
.section-head a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s5); border-radius: var(--r-pill); border: 0;
  background: var(--haem); color: var(--on-haem); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-out), filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: var(--line); color: var(--ink-2); cursor: not-allowed; filter: none; }
.btn--quiet { background: transparent; color: var(--haem); padding-inline: var(--s3); }
.btn--outline { background: transparent; color: var(--haem); box-shadow: inset 0 0 0 1.5px var(--control-edge); }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--haem-wash); }
.icon-btn[disabled] { color: var(--control-edge); cursor: not-allowed; background: none; }

.search {
  display: flex; align-items: center; gap: var(--s3); height: 48px; padding-inline: var(--s4);
  border-radius: var(--r-pill); background: var(--slide); border: 1px solid var(--control-edge); color: var(--ink-2);
}
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.search:focus-within { border-color: var(--haem); box-shadow: 0 0 0 3px var(--haem-wash); }

.field { display: grid; gap: var(--s2); }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .help { font-size: var(--fs-sm); color: var(--ink-2); }
.input, .textarea { width: 100%; min-height: 48px; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--control-edge); background: var(--slide); color: var(--ink); font: inherit; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--haem); box-shadow: 0 0 0 3px var(--haem-wash); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4);
  border-radius: var(--r-pill); border: 1px solid var(--control-edge); background: var(--slide); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--haem-wash); border-color: var(--haem); color: var(--haem); font-weight: 650; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--frost); }
.seg button { min-height: var(--tap); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--slide); color: var(--haem); box-shadow: 0 1px 3px var(--shadow); }

.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: var(--eosin); border-radius: 2px; }

/* ---------- Slide: frosted pencil label + stained specimen (the signature) ---------- */
.slide {
  position: relative; display: grid; grid-template-columns: var(--label-w, 88px) 1fr;
  background: var(--slide); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 6px 18px -6px var(--shadow); color: inherit; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.slide::after { content: ""; position: absolute; inset-inline: 1px; top: 1px; height: 1px; background: var(--slide-edge); pointer-events: none; }
a.slide:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px var(--shadow); }
a.slide:active { transform: translateY(0) scale(.995); }
.slide__label {
  padding: var(--s3) var(--s2); background-color: var(--frost);
  background-image: var(--frost-tex); background-size: 120px 120px;
  border-inline-end: 1px solid var(--line);
  font: 400 15px/1.25 var(--font-label); color: var(--pencil); overflow-wrap: anywhere;
}
.slide__spec {
  padding: var(--s4); min-width: 0;
  background:
    radial-gradient(120% 90% at 110% -20%, var(--stain-a), transparent 60%),
    radial-gradient(90% 80% at -10% 120%, var(--stain-b), transparent 60%);
}
[dir="rtl"] .slide__spec {
  background:
    radial-gradient(120% 90% at -10% -20%, var(--stain-a), transparent 60%),
    radial-gradient(90% 80% at 110% 120%, var(--stain-b), transparent 60%);
}
.slide--plain .slide__spec { background: none; }
.slide__title { font: 600 var(--fs-lg)/1.2 var(--font-head); }
.slide__meta { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s1); }

/* Paper: book text always sits here, always LTR */
.paper { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font: 400 var(--fs-md)/1.55 var(--font-book); }
.paper[dir="ltr"] { text-align: left; }
.paper__cap { display: flex; align-items: center; gap: var(--s2); font: 600 var(--fs-xs)/1.2 var(--font-ui); color: var(--ink-2); margin-bottom: var(--s2); }

/* ---------- Highlight kinds: colour + shape + text label (the label is binding) ---------- */
.kmark { display: inline-block; position: relative; flex: none; vertical-align: middle; }
.kmark[data-kind="yellow"] { width: 11px; height: 11px; background: var(--k-criteria); border-radius: 2px; box-shadow: 0 0 0 1px var(--mark-edge); }
.kmark[data-kind="green"]  { width: 16px; height: 6px;  background: var(--k-treatment); border-radius: 2px; box-shadow: 0 0 0 1px var(--mark-edge); }
.kmark[data-kind="blue"]   { width: 12px; height: 12px; background: var(--k-pearl); border-radius: 50%; box-shadow: 0 0 0 1px var(--mark-edge); }
.kmark[data-kind="red"]    { width: 14px; height: 13px; }
.kmark[data-kind="red"]::before, .kmark[data-kind="red"]::after { content: ""; position: absolute; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.kmark[data-kind="red"]::before { inset: 0; background: var(--mark-edge); }
.kmark[data-kind="red"]::after { inset: 2.2px 1.6px 1px; background: var(--k-warning); }

/* Book-text marks. Production paints these with the CSS Custom Highlight API, so the
   mock stays inside what ::highlight() can do: background, color, text-decoration. No padding,
   radius or borders. The underline style is the non-colour signal per kind. */
mark.hl { color: inherit; background: none; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-skip-ink: none; }
mark.hl[data-kind="yellow"] { background: var(--k-criteria-fill);  text-decoration-line: underline; text-decoration-style: double; text-decoration-color: var(--k-criteria-line); text-decoration-thickness: 1px; }
mark.hl[data-kind="green"]  { background: var(--k-treatment-fill); text-decoration-line: underline; text-decoration-style: solid;  text-decoration-color: var(--k-treatment-line); }
mark.hl[data-kind="blue"]   { background: var(--k-pearl-fill);     text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--k-pearl-line); }
mark.hl[data-kind="red"]    { background: var(--k-warning-fill);   text-decoration-line: underline; text-decoration-style: wavy;   text-decoration-color: var(--k-warning-line); text-decoration-thickness: 1.5px; }
/* Selection paints above highlights: --select is opaque enough to read on any fill */
mark.hl::selection { background: var(--select); }

.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.kind-btn {
  display: grid; grid-template-rows: 14px auto; place-items: center; align-content: center; gap: 6px; min-height: 56px;
  border-radius: var(--r-md); border: 1.5px solid var(--control-edge); background: var(--slide); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
}
.kind-btn[aria-pressed="true"] { border-color: var(--haem); background: var(--haem-wash); color: var(--haem); box-shadow: inset 0 0 0 1px var(--haem); }

/* ---------- Lists ---------- */
.list { background: var(--slide); border: 1px solid var(--line); border-radius: var(--r-md); }
.row { display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding: var(--s2) var(--s4); border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--haem-wash); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-weight: 550; }
.row__sub { display: block; font-size: var(--fs-sm); color: var(--ink-2); }
.row__end { color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* ---------- Notes and states ---------- */
.note { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--frost); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; }
.note svg { color: var(--haem); margin-top: 1px; }
.status { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.status--warn { color: var(--danger); font-weight: 600; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.empty { text-align: center; padding: var(--s7) var(--s5); color: var(--ink-2); }
.empty h3 { font: 600 var(--fs-lg)/1.3 var(--font-head); color: var(--ink); margin-bottom: var(--s2); }
.skeleton { background: linear-gradient(90deg, var(--line) 0 40%, var(--frost) 50%, var(--line) 60% 100%) 0 0 / 300% 100%; border-radius: 4px; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Sheet (bottom on phones, anchored panel on desktop) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(23, 18, 31, .32); z-index: 30; }
.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 31; max-height: 85dvh; overflow: auto;
  background: var(--slide); border-radius: 16px 16px 0 0; padding: var(--s2) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px -10px var(--shadow);
}
.sheet__grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto var(--s4); }
@media (min-width: 900px) {
  .sheet { inset-inline: auto; inset-inline-end: var(--s6); bottom: var(--s6); width: 380px; border-radius: 16px; border: 1px solid var(--line); }
  .sheet__grip { display: none; }
}

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

/* ---------- Home ---------- */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.home-top .date { font-size: var(--fs-sm); color: var(--ink-2); margin-inline-start: auto; }
.home-top .brand, .home-top .greet { margin-inline-end: auto; }
.continue { --label-w: 76px; margin-top: var(--s5); }
.continue .slide__label { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.continue .slide__label b { font-weight: 400; font-size: var(--fs-md); }
.continue .slide__spec { display: grid; gap: var(--s3); }
.continue__kicker { font: 600 var(--fs-xs)/1 var(--font-ui); color: var(--eosin-ink); letter-spacing: .02em; }
.continue__foot { display: flex; align-items: center; gap: var(--s3); }
.continue__foot .progress { flex: 1; }
.continue .paper { font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .continue { --label-w: 120px; }
  .continue .slide__spec { grid-template-columns: 1fr minmax(260px, 40%); align-items: start; column-gap: var(--s5); }
  .continue .slide__spec > .paper { grid-row: 1 / span 3; grid-column: 2; }
}
.review { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 600px) { .review { grid-template-columns: repeat(4, 1fr); } }
.review a { display: flex; flex-direction: column; justify-content: center; gap: var(--s1); min-height: 64px; padding: var(--s3); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.review a:hover { border-color: var(--line-strong); }
.review b { font: 600 var(--fs-xl)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.review a > span { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.week { margin-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); }
.week ol { display: flex; gap: 6px; }
.week li { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.week li.on { background: var(--eosin-ink); color: var(--on-eosin); box-shadow: none; }
.week li.today { box-shadow: inset 0 0 0 2px var(--eosin); color: var(--eosin-ink); }
.week p { font-size: var(--fs-sm); color: var(--ink-2); flex: 1; min-width: 0; }
.week li { flex: none; }
@media (max-width: 420px) { .week ol { gap: 4px; } .week li { width: 26px; height: 26px; } }
.tray { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .tray { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tray { grid-template-columns: repeat(3, 1fr); } }
.tray .slide { --label-w: 64px; min-height: 76px; }
.tray .slide__spec { padding: var(--s3) var(--s4); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Library / TOC ---------- */
.book-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.toc { counter-reset: none; }
.toc details { border-top: 1px solid var(--line); }
.toc details:first-child { border-top: 0; }
.toc summary { list-style: none; display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s4); cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { transition: transform .2s var(--ease-out); color: var(--ink-2); }
.toc details[open] summary .chev { transform: rotate(90deg); }
.toc .ch-no { font: 600 var(--fs-sm)/1 var(--font-book); color: var(--ink-2); min-width: 2ch; font-variant-numeric: tabular-nums; }
.toc .row { padding-inline-start: calc(var(--s4) + 2ch + var(--s3)); min-height: var(--tap); }
.toc .done .row__title { color: var(--ink-2); }
.time { font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Reader (no tab bar: the page owns the screen) ---------- */
.reader-body { background: var(--paper); }
.r-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s1);
  min-height: 56px; padding: 0 var(--s2); padding-top: env(safe-area-inset-top);
  background: var(--bar-solid); border-bottom: 1px solid var(--line);
}
.r-top__title { flex: 1; min-width: 0; }
.r-top__title b { display: block; font: 600 var(--fs-md)/1.2 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-top__title small { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); color: var(--ink-2); }
.r-top__title .status--warn { font-size: var(--fs-xs); }
.r-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; }
.r-progress > i { display: block; height: 100%; width: var(--p); background: var(--eosin); }
.r-layout { display: grid; justify-content: center; grid-template-columns: minmax(0, var(--measure)); padding: var(--s5) var(--r-gutter, 20px) calc(var(--modebar-h, 160px) + env(safe-area-inset-bottom) + var(--s6)); padding-right: var(--r-gutter-end, 28px); position: relative; overflow-x: clip; } /* physical: the book is always LTR; the right gutter holds note pins */
@media (min-width: 1200px) { .r-layout { grid-template-columns: minmax(0, var(--measure)) 260px; column-gap: var(--s6); } }
.page { font: 400 var(--reader-size)/var(--reader-lh) var(--font-book); color: var(--paper-ink); }
.page h1 { font: 600 1.89em/1.15 var(--font-head); margin-bottom: var(--s2); }
.page h2 { font: 600 1.44em/1.25 var(--font-head); margin: var(--s6) 0 var(--s3); }
.page h3 { font: 600 1.11em/1.3 var(--font-head); margin: var(--s5) 0 var(--s2); }
.page p, .page ul, .page table { margin: 0 0 var(--s4); }
.page ul { list-style: disc; padding-inline-start: 1.25em; }
.page li { margin-bottom: var(--s1); }
.page table { width: 100%; border-collapse: collapse; font-size: .875em; }
.page th, .page td { text-align: start; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--ink-2); }
.page .src { font: 500 var(--fs-xs)/1.4 var(--font-ui); color: var(--ink-2); margin-bottom: var(--s5); }
.page.drawing { cursor: crosshair; touch-action: none; user-select: none; }
.margin-notes { display: none; }
@media (min-width: 1200px) {
  .margin-notes { display: block; position: relative; font-size: var(--fs-sm); }
  .margin-note { position: absolute; inset-inline: 0; padding: var(--s2) var(--s3); border: 1px solid var(--line); background: var(--slide); border-radius: var(--r-sm); }
  .margin-note .kmark { margin-inline-end: var(--s2); }
}
/* Note pin: an overlay in the inline-end gutter, never markup inside the block (offsets stay exact) */
.pin { position: absolute; z-index: 2; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; background: none; color: var(--haem); cursor: pointer; }
.pin::before { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--haem-wash); }
.pin svg.i { position: relative; width: 14px; height: 14px; }
@media (min-width: 1200px) { .pin { display: none; } }

/* Mode bar: thumb zone, above the home indicator; the kind picker grows upward from it */
.modebar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
  padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: var(--s2);
}
.modebar__row { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; gap: var(--s3); }
.modebar .btn { min-height: 48px; }
.modebar .btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.modebar .hint { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }
@media (min-width: 900px) {
  .modebar { inset-inline: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 2 * var(--s6))); bottom: var(--s5); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px -12px var(--shadow); padding: var(--s3); }
  [dir="rtl"] .modebar { transform: translateX(50%); }
}
.sizer { display: flex; align-items: center; gap: var(--s2); }
.sizer output { min-width: 4ch; text-align: center; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet h2 { font: 600 var(--fs-lg)/1.3 var(--font-head); margin-bottom: var(--s3); }
.sheet .quote { margin-bottom: var(--s4); }
.sheet__actions { display: flex; gap: var(--s2); margin-top: var(--s4); }
.sheet__actions .btn { flex: 1; }
.btn--danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- AI ---------- */
.ask { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); }
.ask__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.select { appearance: none; min-height: var(--tap); padding: 0 var(--s6) 0 var(--s4); border-radius: var(--r-pill); border: 1px solid var(--control-edge); background: var(--slide) no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F5870' stroke-width='2'/%3E%3C/svg%3E"); color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: 600; }
[dir="rtl"] .select { padding: 0 var(--s4) 0 var(--s6); background-position: left 14px center; }
.source { display: grid; gap: var(--s2); }
.source__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); }
.source__head b { font-weight: 650; }
.source .paper mark.term { background: var(--haem-wash); color: inherit; font-weight: 600; }
.lock { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--fs-xs); color: var(--ink-2); }
.stack { display: grid; gap: var(--s4); }

/* ---------- Compare: panes side by side from 900px, swipe on phones ---------- */
.cmp-tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s2) 0; background: var(--tray); scrollbar-width: none; }
.cmp-tabs a { flex: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--slide); border: 1px solid var(--control-edge); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.cmp-tabs a[aria-current="true"] { border-color: var(--haem); color: var(--haem); background: var(--haem-wash); }
.panes { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.panes::-webkit-scrollbar, .cmp-tabs::-webkit-scrollbar { display: none; }
.pane { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.pane__head { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; background: var(--slide); border-bottom: 1px solid var(--line); }
.pane__head .slide__label { align-self: stretch; padding: var(--s2); font-size: 14px; display: grid; place-items: center; }
.pane__head div { padding: var(--s2) var(--s3); min-width: 0; }
.pane__head b { display: block; font: 600 var(--fs-md)/1.25 var(--font-head); }
.pane__head small { color: var(--ink-2); font-size: var(--fs-xs); }
.pane .page { padding: var(--s4); font-size: calc(var(--reader-size) * .89); } /* follows the user's text size */
.dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--s3); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--haem); width: 18px; border-radius: var(--r-pill); }
/* Side by side from 900px for two panes, from 1200px for three (else each pane is ~25 characters wide) */
@media (min-width: 900px) {
  .panes:not(.panes--3) { grid-auto-flow: initial; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .panes:not(.panes--3) ~ .dots { display: none; }
}
@media (min-width: 1200px) {
  .panes--3 { grid-auto-flow: initial; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .panes--3 ~ .dots { display: none; }
}

/* ---------- Quiz ---------- */
.q-top { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.q-top .progress { flex: 1; }
.question { font: 600 var(--fs-lg)/1.4 var(--font-head); /* questions are in the reader's language */ margin-bottom: var(--s4); }
.options { display: grid; gap: var(--s2); border: 0; padding: 0; margin: 0; min-width: 0; }
.option .tag { margin-inline-start: var(--s2); }
.option { display: flex; align-items: flex-start; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1.5px solid var(--control-edge); background: var(--slide); cursor: pointer; text-align: start; width: 100%; }
.option .letter { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--control-edge); font-weight: 700; font-size: var(--fs-sm); }
.option:has(input:checked) { border-color: var(--haem); background: var(--haem-wash); }
.option:has(input:focus-visible) { outline: 3px solid var(--haem); outline-offset: 2px; }
.option:has(input:checked) .letter { background: var(--haem); color: var(--on-haem); box-shadow: none; }
.option.is-right { border-color: var(--ok); }
.option.is-right .letter { background: var(--ok); color: var(--on-state); box-shadow: none; }
.option.is-wrong { border-color: var(--danger); }
.option.is-wrong .letter { background: var(--danger); color: var(--on-state); box-shadow: none; }
.verdict { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--fs-sm); font-weight: 650; }
.verdict--ok { color: var(--ok); } .verdict--no { color: var(--danger); }
.q-foot { position: sticky; bottom: 0; display: flex; gap: var(--s2); padding: var(--s3) 0 calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--tray); margin-top: var(--s5); }
.q-foot .btn { flex: 1; }
.score { display: flex; align-items: baseline; gap: var(--s3); }
.score b { font: 600 3rem/1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Auth / settings ---------- */
.narrow { max-width: 440px; margin-inline: auto; }
.form { display: grid; gap: var(--s4); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; }
.setting .seg { min-width: 220px; }

@media (min-width: 900px) { .phone-only { display: none !important; } }
@media (max-width: 899px) { .wide-only { display: none !important; } }
.greet { font: 600 var(--fs-2xl)/1.1 var(--font-head); }
.sizer-pop { position: fixed; z-index: 22; top: calc(64px + env(safe-area-inset-top)); inset-inline-end: var(--s2); display: grid; gap: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); box-shadow: 0 12px 30px -12px var(--shadow); font-size: var(--fs-sm); font-weight: 600; }
.sizer-pop[hidden] { display: none; }
.margin-note b { font-size: var(--fs-sm); }
a.source { color: inherit; text-decoration: none; }
a.source:hover .paper { border-color: var(--line-strong); }
.main--narrow { max-width: 820px; }
.main--wide { max-width: none; }
.hit { display: grid; gap: var(--s2); padding: var(--s4); border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hit:first-child { border-top: 0; }
a.hit:hover { background: var(--haem-wash); }
.hit__where { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); }
.hit__where b { font-weight: 650; }
.hit p { font: 400 var(--fs-md)/1.55 var(--font-book); color: var(--paper-ink); }
.hit mark.term { background: var(--haem-wash); color: inherit; font-weight: 600; }
.results { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s4) 0; }
.hl-item { display: grid; gap: var(--s2); padding: var(--s4); border-top: 1px solid var(--line); }
.hl-item:first-child { border-top: 0; }
.hl-item__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
.hl-item__meta span:first-child { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); font-weight: 600; }
.hl-item p { font: 400 var(--fs-md)/1.55 var(--font-book); }
.hl-item .memo { font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: var(--s2); }
.group-head { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s2); }
.group-head h2 { font: 600 var(--fs-md)/1.3 var(--font-head); flex: 1; }
.auth { padding-top: var(--s7); display: grid; gap: var(--s3); }
.auth__mark { display: grid; grid-template-columns: 96px 48px; height: 44px; width: max-content; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 18px -6px var(--shadow); margin-bottom: var(--s4); }
.auth__mark .slide__label { display: grid; place-items: center; padding: 0; font-size: 18px; }
.auth__mark .slide__spec { padding: 0; }
.auth .form { margin-top: var(--s3); }
.auth__lang { justify-self: end; width: min(100%, 300px); }
.rail__foot .legal { padding: var(--s2) var(--s3) 0; font-size: var(--fs-xs); }
.rail__foot .legal a { min-height: 32px; color: var(--ink-2); }
.auth__set { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px dashed var(--line-strong); display: grid; gap: var(--s3); }

/* ---------- Educational models: catalogue and sealed viewer ---------- */
.models-intro { color: var(--ink-2); margin: calc(-1 * var(--s2)) 0 var(--s5); max-width: 60ch; }
.model-card { --label-w: 72px; min-height: 120px; }
.model-card .slide__label { display: grid; place-items: center; font-size: 20px; }
.model-card .slide__spec { display: grid; align-content: start; gap: var(--s2); }
.model-card .slide__meta { margin: 0; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--frost); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; width: max-content; }
.slot { display: grid; place-items: center; gap: var(--s2); min-height: 120px; padding: var(--s4); border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); color: var(--ink-2); text-align: center; font-size: var(--fs-sm); }
.slot svg.i { color: var(--ink-2); }
.slot b { color: var(--ink); font-weight: 600; }
.model-body { background: var(--tray); }
.m-frame { position: fixed; inset: calc(56px + env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom)); border: 0; background: var(--paper); }
.m-frame__placeholder { display: grid; place-items: center; height: 100%; padding: var(--s5); text-align: center; color: var(--ink-2); font-size: var(--fs-sm); background: var(--paper); }
.m-foot { position: fixed; inset-inline: 0; bottom: 0; min-height: calc(40px + env(safe-area-inset-bottom)); padding: 0 var(--gutter) env(safe-area-inset-bottom); display: flex; align-items: center; gap: var(--s2); border-top: 1px solid var(--line); background: var(--bar-solid); font-size: var(--fs-xs); color: var(--ink-2); }
.m-foot svg.i { width: 16px; height: 16px; flex: none; }
.credits { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }

/* ---------- Toast (undo) ---------- */
.toast { position: fixed; z-index: 40; inset-inline: var(--gutter); bottom: calc(var(--modebar-h, 80px) + env(safe-area-inset-bottom) + var(--s3)); display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding: var(--s1) var(--s2) var(--s1) var(--s4); border-radius: var(--r-md); background: var(--ink); color: var(--paper); font-size: var(--fs-sm); box-shadow: 0 12px 30px -12px var(--shadow); }
.toast span { flex: 1; }
.toast .btn--quiet { color: var(--haem-wash); color: color-mix(in srgb, var(--paper) 70%, var(--haem)); }
@media (min-width: 900px) { .toast { inset-inline: auto; inset-inline-end: var(--s6); width: 360px; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.sheet__head h2 { margin: 0; }
.status--btn { border: 0; background: none; padding: 0 var(--s2); min-height: 32px; border-radius: var(--r-pill); cursor: pointer; font: inherit; }
.status--btn:hover { background: var(--haem-wash); }
.status--btn { position: relative; } .status--btn::after { content: ""; position: absolute; inset: -6px 0; } /* 44px hit area in a 32px line */
.legal { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: var(--fs-sm); }
.legal a { min-height: var(--tap); display: inline-flex; align-items: center; }
.edu-note { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- AI button (phones): round, in the page header ---------- */
.ai-btn { display: inline-grid; place-items: center; flex: none; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--haem); color: var(--on-haem); box-shadow: 0 4px 12px -4px var(--shadow); }
.ai-btn:active { transform: scale(.95); }
.home-top .ai-btn { order: 3; }
.home-top .date { order: 1; } .home-top .icon-btn { order: 2; }
.page-head .ai-btn { margin-inline-start: auto; }

/* ---------- Home: practice rows ---------- */
.row__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--haem-wash); color: var(--haem); }
.row__icon svg.i { width: 20px; height: 20px; }
.chev-end { color: var(--ink-2); width: 18px; height: 18px; }
[dir="rtl"] .chev-end { transform: scaleX(-1); }

/* ---------- Library: specialty shelves with book slides ---------- */
.jump { position: sticky; top: 0; z-index: 10; display: flex; gap: var(--s2); overflow-x: auto; margin: var(--s3) calc(-1 * var(--gutter)) 0; padding: var(--s2) var(--gutter); background: var(--tray); scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--slide); border: 1px solid var(--control-edge); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--haem); color: var(--haem); }
@media (min-width: 900px) { .jump { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; position: static; } }
.spec { scroll-margin-top: 64px; }
.book-slide { --label-w: 72px; }
.book-slide .slide__spec { display: grid; gap: var(--s2); align-content: center; justify-content: stretch; }
.book-slide .slide__meta { margin: 0; }
.book-slide .slide__label { font-size: 16px; }

/* Locked (not in the user's plan): shown, readable, clearly not open. No stain, grey label, lock tag. */
button.slide { font: inherit; text-align: start; width: 100%; padding: 0; cursor: pointer; }
.slide--locked { box-shadow: none; background: var(--slide); }
.slide--locked .slide__spec { background: none; }
.slide--locked .slide__label { filter: grayscale(1); color: var(--ink-2); }
.slide--locked .slide__title { color: var(--ink-2); }
.lock-tag { display: inline-flex; align-items: center; gap: var(--s1); width: max-content; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.lock-tag svg.i { width: 14px; height: 14px; }
.sheet .lock-tag { font-size: var(--fs-sm); }
.toc--locked summary { cursor: default; }
.toc--locked .row__title { color: var(--ink-2); }

/* ---------- Highlights: search, sort, review, export ---------- */
.hl-kinds { margin: var(--s3) calc(-1 * var(--gutter)) 0; padding-inline: var(--gutter); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hl-kinds::-webkit-scrollbar { display: none; }
.hl-kinds .chip { flex: none; }
@media (min-width: 900px) { .hl-kinds { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
.toolbar__end { display: flex; align-items: center; gap: var(--s2); }
.toolbar .btn--outline { padding-inline: var(--s4); }
.row--btn { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: start; cursor: pointer; font: inherit; color: inherit; }
.row--btn:first-child { border-top: 0; }
.row--btn:hover { background: var(--haem-wash); }
.hl-item mark.term { background: var(--haem-wash); color: inherit; font-weight: 600; }
.rv { position: fixed; inset: 0; z-index: 35; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--tray); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.review__top { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s2); }
.review__top h2 { flex: 1; font: 600 var(--fs-lg)/1.2 var(--font-head); }
.review__top .num { padding-inline-end: var(--s3); font-size: var(--fs-sm); }
.review__progress { margin-inline: var(--gutter); }
.review__progress i { width: 0; transition: width .2s var(--ease-out); }
.review__card { align-self: center; display: grid; gap: var(--s3); width: min(100% - 2 * var(--gutter), 640px); margin: var(--s5) auto; padding: var(--s5); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); box-shadow: 0 6px 18px -6px var(--shadow); }
.review__text { font-size: var(--reader-size); line-height: var(--reader-lh); padding: var(--s4); }
.review__card .btn--quiet { justify-self: start; padding-inline: 0; }
.review__foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); width: min(100% - 2 * var(--gutter), 640px); margin: 0 auto var(--s4); }
.review__foot .btn { min-height: 48px; }

/* Print = "Export → Print or save as PDF": only the highlights, on white */
@media print {
  .mockbar, .rail, .tabbar, .ai-btn, .search, .chips, .toolbar, .toast, .sheet, .scrim, .rv, .empty, .section-head { display: none !important; }
  :root { --tray: #fff; --slide: #fff; --paper: #fff; --ink: #000; --paper-ink: #000; color-scheme: light; }
  body { background: #fff; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .list { border: 0; }
  .hl-item { break-inside: avoid; padding-inline: 0; }
}

/* ---------- Question bank ---------- */
.practice { --label-w: 76px; }
.practice .slide__label { display: flex; flex-direction: column; justify-content: space-between; }
.practice .slide__label b { font-weight: 400; font-size: var(--fs-md); }
.practice .slide__label span { font-size: 28px; }
.practice .slide__spec { display: grid; gap: var(--s2); justify-items: start; }
.practice .btn { margin-top: var(--s2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s3) 0 0; }
.stats div { padding: var(--s3); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); }
.stats dt { font-size: var(--fs-xs); color: var(--ink-2); }
.stats dd { margin: var(--s1) 0 0; font: 600 var(--fs-xl)/1 var(--font-head); }
.field__label { font-weight: 600; font-size: var(--fs-sm); }
/* Source of a question, always with its words: bank = solid dot, AI = dashed ring */
.src { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.src--bank { background: var(--ink-2); }
.src--ai { border: 1.5px dashed var(--ink-2); }
.tag--ai { background: transparent; box-shadow: inset 0 0 0 1px var(--control-edge); }
.tag .src { margin-inline-end: var(--s1); }
.row--locked .row__title { color: var(--ink-2); }
.chip--locked { color: var(--ink-2); border-style: dashed; cursor: not-allowed; }
.row--locked .lock-tag { min-height: var(--tap); text-decoration: none; }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
.feedback { display: grid; gap: var(--s3); margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); }
.feedback p { line-height: 1.55; }
.report { font-size: var(--fs-sm); justify-self: start; min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- AI ---------- */
#modes { margin: var(--s3) 0 var(--s4); }
.panel { display: grid; gap: var(--s4); }
.panel > .section-head { margin: var(--s3) 0 0; }
[data-ai="off"] .when-ai-on, [data-ai="on"] .when-ai-off { display: none !important; }
.answer { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); box-shadow: 0 6px 18px -6px var(--shadow); }
.answer p { line-height: 1.6; }
.answer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s1); }
.answer__head h2 { font: 600 var(--fs-lg)/1.2 var(--font-head); }
.answer__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.answer__foot .btn--quiet { padding-inline: 0; }
.cites { display: flex; gap: var(--s1); margin-top: calc(-1 * var(--s1)); }
/* Citation: a numbered link to its source passage (tap target grows to 44px around a 22px disc) */
.cite { position: relative; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--haem-wash); color: var(--haem); font: 700 var(--fs-xs)/1 var(--font-ui); text-decoration: none; font-variant-numeric: tabular-nums; }
a.cite::after { content: ""; position: absolute; inset: -11px -6px; }
.cite--static { margin-inline-end: var(--s2); background: var(--frost); color: var(--ink); }
.source:target .paper { outline: 3px solid var(--haem-wash); }
.point { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--slide); border: 1px solid var(--line); }
.point h3 { font: 600 var(--fs-md)/1.3 var(--font-head); }
.point__row { display: grid; grid-template-columns: minmax(0, 9rem) 1fr auto; gap: var(--s3); align-items: baseline; font-size: var(--fs-sm); }
.point__row bdi { font-weight: 600; }
.agree { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.agree--no { color: var(--eosin-ink); }
.plan { counter-reset: none; }
.plan__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--frost); font-size: var(--fs-sm); font-weight: 700; }


