/* CleanupAIMeta: the page is a document under review. Highlighter marks what was found, redaction bars mark what was removed. */

@font-face { font-family: 'Familjen Grotesk'; src: url('../fonts/familjen-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('../fonts/familjen-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Familjen Grotesk'; src: url('../fonts/familjen-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --ink: #1b2130;
  --muted: #5a6375;
  --line: #dde1e8;
  --line-strong: #b9c0cc;
  --highlight: #ffe45c;
  --mark-ink: #1b2130;
  --bar: #1b2130;
  --clean: #12795a;
  --error: #b42318;
  --focus: #2f5bea;

  --sans: 'Familjen Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 10px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --redact-step: 45ms; /* keep in sync with REDACT_MS in app.js */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151c;
    --surface: #1a1e28;
    --ink: #eceef3;
    --muted: #9ba4b4;
    --line: #2b3140;
    --line-strong: #434b5d;
    --highlight: #e9cb3c;
    --mark-ink: #161a22;
    --bar: #eceef3;
    --clean: #4fd1a1;
    --error: #ff8a7a;
    --focus: #8aa7ff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.plain { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--muted); }
.measure { max-width: 38em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

mark {
  color: var(--mark-ink);
  background: linear-gradient(transparent 8%, var(--highlight) 8%, var(--highlight) 92%, transparent 92%);
  padding: 0 0.2em;
  margin: 0 -0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- header / footer ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.01em; margin: 0; }
.logo b { font-weight: 700; }
.logo__mark { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--ink); stroke-width: 2; }
.logo__bar { fill: var(--ink); stroke: none; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.site-nav a { white-space: nowrap; padding-block: 0.25rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; margin-top: 4rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.site-footer__grid > :first-child { grid-column: 1 / -1; max-width: 28rem; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .site-footer__grid > :first-child { grid-column: auto; }
}
.site-footer__heading { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid li + li { margin-top: 0.35rem; }
.site-footer__base { margin-top: 2rem; font-size: 0.875rem; }
.logo--small { font-size: 1rem; margin-bottom: 0.5rem; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.55rem 1.1rem;
  font: 500 1rem/1.2 var(--sans);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { border-color: var(--ink); }
.button--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button--primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.button--quiet { background: none; border-color: transparent; color: var(--muted); padding-inline: 0.6rem; }
.button--quiet:hover { color: var(--ink); border-color: transparent; text-decoration: underline; }
.button:disabled { opacity: 0.6; cursor: progress; }
[hidden] { display: none !important; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 1.75rem clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2rem, 6vw, 4.5rem) 2.5rem;
  grid-template-areas: "intro" "tool" "specimen";
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro tool" "specimen tool"; align-items: start; }
}
.hero__intro { grid-area: intro; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; margin-bottom: 0.4em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 32em; }
.privacy-note { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; font-size: 0.975rem; margin: 0; }
.privacy-note svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.2rem; fill: none; stroke: var(--clean); stroke-width: 1.8; }

/* ---------- drop zone ---------- */

.tool { grid-area: tool; }
.drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: clamp(16rem, 34vw, 24rem);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop:hover, .drop.is-over { border-color: var(--ink); }
.drop.is-over { background: color-mix(in srgb, var(--highlight) 18%, var(--surface)); }
.drop:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__icon { width: 3rem; height: 3rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.drop__title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.drop__button { pointer-events: none; }
.drop__hint { color: var(--muted); font-size: 0.9rem; max-width: 24em; }

.options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; border: 0; padding: 0; margin: 0.9rem 0 0; font-size: 0.95rem; }
.options label { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; }
.options input { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); margin: 0; }
.tool__error { margin: 0.9rem 0 0; color: var(--error); font-weight: 500; }

/* ---------- redaction ---------- */

/* inline-block so one bar covers values that wrap onto several lines */
.redact { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.redact::after {
  content: '';
  position: absolute;
  inset: 0.08em -0.25em;
  background: var(--bar);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.25, 1) calc(var(--i, 0) * var(--redact-step));
}
.is-redacted .redact::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .redact::after { transition: none; } }

/* ---------- hero specimen ---------- */

.specimen {
  grid-area: specimen;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 30rem;
}
.specimen figcaption { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.6rem; }
.specimen__list { margin: 0; display: grid; gap: 0.4rem; }
.specimen__list div { display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; }
.specimen dt { font: 500 0.8rem var(--mono); color: var(--muted); }
.specimen dd { margin: 0; font-size: 0.95rem; }
.specimen__list--wide { gap: 0.55rem; }
.specimen__list--wide dd { color: var(--muted); }
.specimen__after { margin: 0.75rem 0 0; font-size: 0.875rem; font-weight: 500; color: var(--clean); opacity: 0; transition: opacity 0.4s 0.5s; }
.specimen.is-redacted .specimen__after { opacity: 1; }
.specimen .redact { --i: 0; }
.specimen__list div:nth-child(2) .redact { --i: 3; }
.specimen__list div:nth-child(3) .redact { --i: 6; }
.specimen__list div:nth-child(4) .redact { --i: 9; }

/* ---------- results ---------- */

.results { padding-bottom: 3rem; }
.results__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-block: 0.85rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.results__count { margin: 0; font-weight: 700; font-size: 1.125rem; }
.results__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { flex: 1 1 14rem; max-width: 24rem; }
.filter input {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.85rem;
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
}
.filter input:focus-visible { outline-offset: 0; }
.map-link { margin-left: 0.6rem; font-size: 0.9rem; white-space: nowrap; }
.file__thumb:has(img[hidden])::after { content: attr(data-format); display: grid; place-items: center; height: 100%; font: 500 0.8rem var(--mono); color: var(--muted); }

.files { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.file {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  grid-template-areas: "thumb body" "actions actions";
  gap: 1rem 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 760px) {
  .file { grid-template-columns: 7.5rem minmax(0, 1fr) auto; grid-template-areas: "thumb body actions"; }
}
.file__thumb { grid-area: thumb; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file__body { grid-area: body; min-width: 0; }
.file__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.35rem; }
.file__name { margin: 0; font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.file__meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.file__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
@media (min-width: 760px) { .file__actions { flex-direction: column; align-items: stretch; } }
.file[data-state="reading"] .file__actions { visibility: hidden; }

.verdict { font-weight: 700; font-size: 1.2rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.verdict--clean { color: var(--clean); }
.verdict--error { color: var(--error); font-size: 1rem; }
.file[data-state="reading"] .verdict::before { content: 'Reading metadata…'; color: var(--muted); font-weight: 500; }

.findings { display: grid; gap: 0.2rem; margin-bottom: 0.75rem; font-size: 0.975rem; }
.findings li { display: flex; align-items: baseline; gap: 0.6rem; }
.findings li::before { content: ''; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--line-strong); transform: translateY(-0.15em); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.chip { font: 500 0.8rem/1.2 var(--mono); padding: 0.3rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.chip mark { background: none; padding: 0; margin: 0; color: inherit; }
.chip:has(mark) { background: var(--highlight); border-color: var(--highlight); color: var(--mark-ink); }

.tags summary { cursor: pointer; font-size: 0.925rem; color: var(--muted); width: fit-content; }
.tags summary:hover { color: var(--ink); }
.tags[open] summary { margin-bottom: 0.5rem; }
.tags .table-scroll { max-height: 22rem; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }

.table-scroll { overflow-x: auto; }
.tag-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.875rem; }
.tag-table th { text-align: left; font-weight: 500; color: var(--muted); position: sticky; top: 0; background: var(--surface); }
.tag-table th, .tag-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag-table td:nth-child(1) { color: var(--muted); white-space: nowrap; }
.tag-table td:nth-child(2) { font-family: var(--mono); font-size: 0.8rem; overflow-wrap: anywhere; min-width: 9rem; }
.tag-table td:nth-child(3) { overflow-wrap: anywhere; min-width: 12rem; }
.tag-table tr:last-child td { border-bottom: 0; }

/* ---------- content sections ---------- */

.band { padding-block: clamp(2.5rem, 6vw, 4rem); border-block: 1px solid var(--line); background: var(--surface); }
.band--quiet { background: transparent; border-bottom: 0; }
.prose-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose-section h2:not(:first-child) { margin-top: 2.5rem; }

.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2rem; height: 2rem; margin-bottom: 0.75rem;
  border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 700; font-size: 0.95rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }

.ref-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.975rem; min-width: 36rem; }
.ref-table th, .ref-table td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table thead th { font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.ref-table tbody th { font-weight: 700; width: 22%; }
.ref-table td:last-child { color: var(--muted); }

.faq { max-width: 46rem; margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1rem; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.075rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); max-width: 40em; }

@media (max-width: 600px) {
  .site-nav { gap: 1rem; font-size: 0.9rem; }
  .results__actions { width: 100%; }
  .results__actions .button--primary { flex: 1; }
}

/* ---------- text pages (guides, about, legal) ---------- */

.doc { padding-block: clamp(2rem, 6vw, 4rem) 1rem; }
.doc__head { max-width: 42rem; margin-bottom: 2rem; }
.doc__head h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.025em; }
.doc__updated { color: var(--muted); font-size: 0.95rem; }
.doc__body { max-width: 42rem; }
.doc__body h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.doc__body h3 { margin-top: 1.5rem; }
.doc__body ul, .doc__body ol { padding-left: 1.25rem; margin: 0 0 1em; }
.doc__body li + li { margin-top: 0.35rem; }
.doc__body .steps { padding-left: 0; }
.doc__body .steps h3 { margin-top: 0; }
.callout { border-left: 4px solid var(--highlight); background: var(--surface); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.changelog__entry { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem; }
.changelog__entry h2 { margin-top: 0; font-size: 1.25rem; }
.changelog__entry time { color: var(--muted); font-size: 0.95rem; }
.notfound { min-height: 50vh; }

/* ---------- forms (editor, geotagger) ---------- */

.workspace { padding-bottom: 3rem; scroll-margin-top: 1rem; }
.ws {
  display: grid; gap: 1.5rem 2rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 760px) { .ws { grid-template-columns: 11rem minmax(0, 1fr); } }
.ws__side { display: grid; grid-template-columns: 5rem 1fr; gap: 0.25rem 1rem; align-content: start; align-items: start; }
@media (min-width: 760px) { .ws__side { grid-template-columns: 1fr; } }
.ws__thumb { grid-area: auto; grid-row: span 2; } /* .file__thumb names a grid area that doesn't exist here */
@media (min-width: 760px) { .ws__thumb { grid-row: auto; margin-bottom: 0.5rem; } }
.ws__main { min-width: 0; }
.ws__status { margin: 0 0 1rem; font-weight: 500; }
.ws__status:empty { display: none; }
.ws__status--error { color: var(--error); }
.ws__status--done { color: var(--clean); font-size: 1.15rem; font-weight: 700; }
.ws__form { display: grid; gap: 1.1rem; }
.ws__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ws__actions:empty, .ws__actions:not(:has(> :not([hidden]))) { display: none; }
.ws__note { font-size: 0.875rem; margin: 1.25rem 0 0; }
.ws__current { margin: 0; }

.field { display: grid; gap: 0.35rem; align-content: start; }
.field > label, .field__label { font-weight: 500; font-size: 0.95rem; }
.field__hint { margin: 0; color: var(--muted); font-size: 0.875rem; }
.field-row { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field--check label { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; flex-wrap: wrap; }
.field--check input { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); margin: 0; }

.field input:not([type="checkbox"]), .field textarea, .geo-search input, .tc__text {
  width: 100%; min-height: 2.75rem; padding: 0.55rem 0.8rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible, .geo-search input:focus-visible, .tc__text:focus-visible { outline-offset: 0; border-color: var(--ink); }

/* ---------- geotagger ---------- */

.geo-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.geo-search { display: flex; gap: 0.5rem; flex: 1 1 18rem; }
.map { height: clamp(18rem, 45vh, 28rem); border-radius: 8px; border: 1px solid var(--line); z-index: 0; }
.geo-pin span {
  display: block; width: 28px; height: 28px;
  background: var(--highlight); border: 3px solid #1b2130;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
}
.leaflet-container { font-family: var(--sans); }

/* ---------- AI text cleaner ---------- */

.doc--tool .doc__head { margin-bottom: 1.5rem; }
.tc { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .tc { grid-template-columns: 1fr 1fr; } }
.tc__pane { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.tc__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.75rem; }
.tc__label { font-weight: 700; font-size: 1.05rem; }
.tc__pane > .tc__label { display: flex; align-items: center; min-height: 2.75rem; }
.tc__text { min-height: 16rem; resize: vertical; line-height: 1.55; font-size: 0.975rem; }
.tc__text[readonly] { background: var(--surface); }
.tc__options { margin-top: 0.25rem; }
.tc__legend { float: left; font-weight: 500; margin-right: 0.5rem; padding: 0; }
.tc__summary { margin: 0; font-weight: 500; }
.tc__findings { margin-top: 2.5rem; max-width: 60rem; }
.tc__findings h2 { font-size: 1.45rem; }
.tc__findings h3 { margin-top: 1.5rem; }
.tc__preview-hint { font-size: 0.9rem; }
.tc__preview {
  white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 24rem; overflow: auto;
  padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.975rem; line-height: 1.7;
}
.tc__mark { font: 500 0.7rem/1 var(--mono); padding: 0.15em 0.35em; margin: 0 0.1em; border-radius: 3px; background: var(--highlight); color: var(--mark-ink); vertical-align: 0.1em; }
.tc__mark--kept { background: var(--line); color: var(--muted); }
