/* Fundstelle: ruhige Werkzeug-Oberfläche. Warme Neutraltöne, ein Akzent (Petrol), Zustandsfarben nur für Zustände.
   Tokens identisch mit den Schwester-Demos (Belegfluss, Selbstheilung). */
:root {
  color-scheme: light;
  --bg: oklch(0.968 0.0025 90);
  --surface: oklch(0.995 0.003 85);
  --surface-2: oklch(0.952 0.008 78);
  --surface-3: oklch(0.925 0.01 76);
  --border: oklch(0.875 0.011 75);
  --border-strong: oklch(0.78 0.014 72);
  --text: oklch(0.25 0.014 60);
  --text-2: oklch(0.46 0.014 62);
  --text-3: oklch(0.52 0.012 65);
  --accent: oklch(0.47 0.085 200);
  --accent-hover: oklch(0.41 0.085 200);
  --accent-soft: oklch(0.94 0.025 200);
  --accent-text: oklch(0.42 0.085 200);
  --on-accent: oklch(0.99 0.004 85);
  --ok: oklch(0.47 0.11 150);
  --ok-soft: oklch(0.95 0.035 150);
  --warn: oklch(0.5 0.11 68);
  --warn-icon: oklch(0.66 0.14 72);
  --warn-soft: oklch(0.955 0.045 85);
  --err: oklch(0.5 0.17 28);
  --err-soft: oklch(0.95 0.03 28);
  --info: oklch(0.46 0.05 240);
  --info-soft: oklch(0.955 0.015 240);
  --mark: oklch(0.91 0.075 88);
  --shadow: 0 1px 2px oklch(0.3 0.02 60 / 0.06), 0 4px 14px oklch(0.3 0.02 60 / 0.05);
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: oklch(0.2 0.008 60);
    --surface: oklch(0.235 0.009 60);
    --surface-2: oklch(0.27 0.01 60);
    --surface-3: oklch(0.31 0.011 60);
    --border: oklch(0.36 0.012 60);
    --border-strong: oklch(0.46 0.014 60);
    --text: oklch(0.93 0.008 80);
    --text-2: oklch(0.76 0.01 75);
    --text-3: oklch(0.7 0.01 75);
    --accent: oklch(0.72 0.09 200);
    --accent-hover: oklch(0.78 0.09 200);
    --accent-soft: oklch(0.32 0.04 200);
    --accent-text: oklch(0.78 0.08 200);
    --on-accent: oklch(0.2 0.02 200);
    --ok: oklch(0.78 0.12 150);
    --ok-soft: oklch(0.3 0.05 150);
    --warn: oklch(0.83 0.12 80);
    --warn-icon: oklch(0.8 0.14 78);
    --warn-soft: oklch(0.32 0.05 80);
    --err: oklch(0.76 0.14 28);
    --err-soft: oklch(0.32 0.06 28);
    --info: oklch(0.78 0.06 240);
    --info-soft: oklch(0.3 0.03 240);
    --mark: oklch(0.45 0.08 88);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 4px 14px oklch(0 0 0 / 0.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; font-weight: 620; }
h3 { font-size: 1rem; font-weight: 620; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }
textarea { caret-color: var(--accent); }
.sprite { position: absolute; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 15px; height: 15px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-gap-sm { margin-top: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 50; }
.skip:focus { left: 8px; }
* { scrollbar-color: var(--border-strong) transparent; scrollbar-width: thin; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.0625rem; }
.brand-mark { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 56px; padding: 0 12px; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.mode { margin-left: auto; font-size: 0.8125rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mode .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.mode.live .dot { background: var(--ok); }

/* ---------- Layout ---------- */
.layout { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px 24px 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.layout.has-viewer { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); }
main:focus { outline: none; }
.view > h1 { margin-bottom: 8px; }
.lede { color: var(--text-2); max-width: 72ch; margin-bottom: 24px; }
.small-h { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin: 16px 0 8px; }
.hint { font-size: 0.8125rem; color: var(--text-3); }
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.8125rem; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 550; text-decoration: none; transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease); }
.btn:hover { background: var(--surface-2); }
.btn:active { background: var(--surface-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { background: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 0.875rem; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent; animation: spin 700ms linear infinite; }
.btn:not(.btn-primary).is-loading::after { border-color: var(--text-2); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Frageformular ---------- */
.ask { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); max-width: 880px; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
textarea { width: 100%; resize: vertical; min-height: 84px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); line-height: 1.5; }
textarea::placeholder { color: var(--text-3); }
textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ask-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 12px; }
.ask-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.router-live { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; min-height: 32px; }

.route-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.route-pill.conf { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 35%, transparent); color: var(--warn); }
.route-pill.cloud { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 30%, transparent); color: var(--accent-text); }
.route-pill.local { background: var(--ok-soft); border-color: color-mix(in oklch, var(--ok) 30%, transparent); color: var(--ok); }
.route-why { color: var(--text-2); }

.examples { max-width: 880px; margin-top: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; text-align: left; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 0.875rem; line-height: 1.35; transition: border-color 150ms var(--ease), background 150ms var(--ease); }
.chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.chip .icon { width: 15px; height: 15px; color: var(--text-3); }

/* ---------- Ergebnis ---------- */
.result { max-width: 880px; margin-top: 32px; }
.result:empty { display: none; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel-sec { padding: 16px 20px; }
.panel-sec + .panel-sec { border-top: 1px solid var(--border); }
.route-strip { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 0.875rem; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 0.8125rem; margin-top: 8px; }
.facts b { color: var(--text); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.01em; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tag-echt { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in oklch, var(--ok) 30%, transparent); }
.tag-rec { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in oklch, var(--warn) 30%, transparent); }
.tag-ai { background: var(--info-soft); color: var(--info); border-color: color-mix(in oklch, var(--info) 30%, transparent); }
.tag-fic { background: var(--surface-2); color: var(--text-2); }
.tag-pub { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in oklch, var(--accent) 25%, transparent); }
.answer-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.answer-text { font-size: 1rem; line-height: 1.65; max-width: 72ch; }
.answer-text.streaming::after { content: ""; display: inline-block; width: 0.5em; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--text-3); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; margin: 0 2px; border-radius: 6px; border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent); background: var(--accent-soft); color: var(--accent-text); font-size: 0.75rem; font-weight: 700; cursor: pointer; vertical-align: 1px; transition: background 150ms var(--ease); }
.cite:hover, .cite[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ai-note { margin-top: 12px; font-size: 0.8125rem; color: var(--text-2); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.notice + .notice { margin-top: 8px; }
.notice .icon { margin-top: 2px; color: var(--text-2); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 25%, transparent); }
.notice.warn .icon { color: var(--warn-icon); }
.notice.err { background: var(--err-soft); border-color: color-mix(in oklch, var(--err) 25%, transparent); }
.notice.err .icon { color: var(--err); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in oklch, var(--ok) 25%, transparent); }
.notice.ok .icon { color: var(--ok); }

.sources { list-style: none; margin: 0; padding: 0; }
.sources li + li { border-top: 1px solid var(--border); }
.source { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; width: 100%; text-align: left; padding: 12px 20px; background: none; border: 0; cursor: pointer; color: inherit; transition: background 150ms var(--ease); }
.source:hover { background: var(--surface-2); }
.source[aria-current="true"] { background: var(--accent-soft); }
.source-n { grid-row: span 2; font-weight: 700; color: var(--accent-text); font-size: 0.875rem; padding-top: 1px; }
.source-title { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 0.875rem; }
.source-title b { font-weight: 620; }
.source-anchor { color: var(--text-2); }
.source-text { font-size: 0.875rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }

.local-box { display: grid; gap: 12px; }
.local-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select { min-height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 0 10px; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width 200ms var(--ease); }
.masked-preview { font-family: var(--mono); font-size: 0.8125rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; white-space: pre-wrap; word-break: break-word; }

.skeleton { display: grid; gap: 10px; padding: 20px; }
.skeleton span { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton span:nth-child(2) { width: 85%; } .skeleton span:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Dokumentansicht ---------- */
.viewer { position: sticky; top: 80px; max-height: calc(100vh - 104px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.viewer-title { font-size: 1rem; }
.viewer-meta { font-size: 0.8125rem; color: var(--text-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.viewer-body { overflow-y: auto; padding: 8px 20px 24px; overscroll-behavior: contain; }
.viewer-body:focus { outline: none; }
.page-mark { font-size: 0.75rem; font-weight: 600; color: var(--text-3); margin: 20px 0 4px; display: flex; align-items: center; gap: 8px; }
.page-mark::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.doc-sec { font-size: 0.9375rem; font-weight: 620; margin: 16px 0 6px; }
.para { margin: 0 -10px; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 0.9375rem; line-height: 1.6; scroll-margin: 24px; }
.para-anchor { display: block; font-size: 0.75rem; color: var(--text-3); }
.para.is-target { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 40%, transparent); }
.para.is-target .para-anchor { color: var(--accent-text); font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .para.is-target { animation: settle 600ms var(--ease); }
  @keyframes settle { from { background: color-mix(in oklch, var(--accent) 30%, var(--surface)); } }
}

/* ---------- Vergleich ---------- */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 20px; }
.segmented button { min-height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text-2); font-weight: 550; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: var(--surface-2); font-weight: 620; font-size: 0.8125rem; color: var(--text-2); position: sticky; top: 0; }
tbody th { font-weight: 600; color: var(--text-2); white-space: nowrap; background: var(--surface-2); }
.cmp th.sup { min-width: 180px; color: var(--text); }
.cmp .sup small { display: block; font-weight: 400; color: var(--text-2); }
.cell-val { font-weight: 550; }
.cell-src { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent-text); cursor: pointer; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cell-src:hover { text-decoration-thickness: 2px; }
td.flagged { background: var(--warn-soft); }
.flag { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 0.8125rem; color: var(--warn); font-weight: 600; }
.flag .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--warn-icon); }
.flag button { font-weight: 500; }
.method { margin-top: 12px; font-size: 0.8125rem; color: var(--text-2); max-width: 80ch; }
.count-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.75rem; font-weight: 600; color: var(--warn); }
.count-ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.75rem; font-weight: 600; color: var(--ok); }

/* ---------- Auswertung und Protokoll ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--text-2); font-size: 0.875rem; }
.toolbar-facts b { color: var(--text); }
.num { text-align: right; white-space: nowrap; }
td.best { font-weight: 700; }
.metric-note { margin-top: 12px; font-size: 0.8125rem; color: var(--text-2); max-width: 80ch; }
.mono { font-family: var(--mono); font-size: 0.8125rem; }
.rank-miss { color: var(--err); font-weight: 600; }
.rank-hit { color: var(--ok); font-weight: 600; }
.section-gap { margin-top: 32px; }
.section-gap > h2 { margin-bottom: 12px; }
.summary-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.empty { padding: 32px 20px; text-align: center; color: var(--text-2); }
.empty p + p { margin-top: 8px; }
.audit td { white-space: nowrap; }
.audit td.reason { white-space: normal; min-width: 260px; }

/* ---------- Fließtext ---------- */
.prose { max-width: 75ch; }
.prose h2 { margin: 32px 0 8px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.defs { display: grid; grid-template-columns: max-content 1fr; gap: 12px 16px; margin: 12px 0 0; }
.defs dd { margin: 0; color: var(--text-2); }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .layout.has-viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: fixed; inset: 0; top: 0; max-height: none; border-radius: 0; z-index: 40; border: 0; }
  body.viewer-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 0 12px; padding: 0 16px; min-height: 0; }
  .brand { min-height: 48px; }
  .mode { margin-left: auto; }
  .tabs { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 8px; border-top: 1px solid var(--border); }
  .tabs a { min-height: 44px; padding: 0 10px; }
  .layout { padding: 20px 16px 40px; }
  h1 { font-size: 1.3125rem; }
  .hint { display: none; }
  .ask-actions { width: 100%; }
  .ask-actions .btn { width: 100%; }
  .source { padding: 12px 16px; }
  .panel-sec { padding: 14px 16px; }
  .defs { grid-template-columns: 1fr; gap: 4px; }
  .defs dd { margin-bottom: 8px; }
  .mode-text-long { display: none; }
  .cmp th:first-child { position: sticky; left: 0; z-index: 1; width: 6.5rem; min-width: 6.5rem; white-space: normal; padding-right: 10px; }
  .cmp thead th:first-child { z-index: 2; }
  .cmp th.sup { min-width: 168px; }
  .cmp td { min-width: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.result { scroll-margin-top: 112px; }
.viewer-head > div { min-width: 0; }
