/* Shared by index.html and auth.html: tokens, aurora, theme toggle, controls. */

/* The reading face is loaded under a generic family name, so replacing it is an
   npm line and one file — not a rename across every rule that sets type. */
@font-face { font-family: "Ora Serif"; src: url("/static/fonts/serif.woff2") format("woff2");
             font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2");
             font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono.woff2") format("woff2");
             font-weight: 400 500; font-display: swap; }

:root {
  /* One reading measure for the thread, composer and status line, so they stay
     aligned. In rem, not ch: `ch` depends on the loaded font, and the page
     falls back to system faces until the woff2 files are installed. */
  --measure: 44rem;
  /* Source Serif 4, not Fraunces. Fraunces is a display face — high contrast,
     optical-size quirk — and it carries a headline beautifully while making a
     paragraph of clinical prose busy to read. Ora writes paragraphs. */
  --serif: "Ora Serif", ui-serif, Charter, Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* One palette at three luminances, warm throughout.
 *
 * The previous set was a cold near-black ground under a saturated blue, which
 * is the palette of developer tooling. This is clinical software a dentist
 * opens between patients, and the thing that makes software feel trustworthy
 * rather than technical is where the warmth sits: warm neutrals, calm accent.
 * The paper is human; the signal is serious. Reversed — cool paper, hot accent
 * — you get something that looks like it wants your attention rather than your
 * confidence.
 *
 * Four separate hue families carry the four signals: petrol teal for accent,
 * amber for warning, sage for ok, brick for danger. None of them siblings, so
 * a badge always means something on its own. The dusk theme learned this the
 * hard way when its status colours were all cousins of its accent.
 *
 * Nothing here is saturated and nothing glows. A clinical interface that
 * competes with the radiograph for attention is a worse clinical interface.
 */

/* Light is the default and the one to look at first: warm paper, warm ink.
   The ground is #FAF7F2 rather than white because a pure white page under
   surgery lighting is a lamp, and everything on it has to fight for contrast
   it does not need. */
/* Declared per theme, and this is not decoration. The option list of a
 * <select>, the scrollbars, the date picker and the autofill highlight are all
 * painted by the browser, not by this file — and without `color-scheme` the
 * browser assumes light. On the dark themes that produced a white popup with
 * near-white text in it, which is unreadable and cannot be fixed with CSS
 * because the popup is not in the page.
 *
 * A hand-built listbox would have been the wrong answer: it means owning
 * keyboard navigation, focus and screen-reader semantics, and on a phone it
 * replaces the native picker with something worse.
 */
[data-theme="light"] {
  color-scheme: light;
  --bg:#faf7f2; --raised:#ffffff; --card:rgba(255,255,255,.82);
  --bubble:#f1ebe2; --hair:#e7dfd4;
  --ink:#221e1a; --muted:#726a5f;
  --accent:#1a6478; --accent-2:#a65a3c; --on-accent:#fff;
  --ring-1:#1a6478; --ring-2:#a65a3c; --ring-3:#c79a6e;
  /* The warm half of the aurora is the clay, not the teal — the page should
     look lit by a lamp rather than by a screen. */
  --aurora-1:rgba(26,100,120,.16); --aurora-2:rgba(198,138,90,.20);
  --note:rgba(26,100,120,.09); --glow:rgba(26,100,120,.14);
  --danger:#a93226;
  --warn-bg:rgba(176,124,38,.14); --warn-line:rgba(176,124,38,.32); --warn-ink:#8a5e13;
  --ok-bg:rgba(63,122,86,.12); --ok-line:rgba(63,122,86,.30); --ok-ink:#2f6b47;
  /* Porcelain shell, pale enamel visor. She reads as an object on the desk
     rather than a screen element. */
  --bot-shell:#ffffff; --bot-shell-2:#efe7dc; --bot-visor:#dbe6e9;
  --bot-line:rgba(34,30,26,.10); --bot-eye:#1a6478;
  --bot-glow:rgba(26,100,120,.24); --bot-shadow:rgba(166,90,60,.16);
}

/* Dusk: the same room with the lamp on. A lifted warm graphite rather than a
   second near-black — the middle rung has to be visibly the middle rung or
   cycling through three themes feels like two. Contrast is softer here on
   purpose; this is the late-shift theme. */
[data-theme="dusk"] {
  color-scheme: dark;
  --bg:#1e1a16; --raised:#28231d; --card:rgba(244,234,220,.05);
  --bubble:rgba(244,234,220,.08); --hair:rgba(244,234,220,.11);
  --ink:#f0e7da; --muted:#a8998a;
  /* A light accent cannot carry white text, so --on-accent is ink and buttons
     read as lit tiles rather than coloured labels. */
  --accent:#6fb3b0; --accent-2:#d99a6c; --on-accent:#1b1713;
  --ring-1:#6fb3b0; --ring-2:#d99a6c; --ring-3:#a8d4d1;
  --aurora-1:rgba(111,179,176,.14); --aurora-2:rgba(217,154,108,.13);
  --note:rgba(111,179,176,.10); --glow:rgba(111,179,176,.16);
  --danger:#e9948b;
  --warn-bg:rgba(231,184,122,.12); --warn-line:rgba(231,184,122,.30); --warn-ink:#e7b87a;
  --ok-bg:rgba(147,201,166,.10); --ok-line:rgba(147,201,166,.28); --ok-ink:#93c9a6;
  --bot-shell:#2a2620; --bot-shell-2:#37312a; --bot-visor:#171410;
  --bot-line:rgba(240,231,218,.13); --bot-eye:#a8d4d1;
  --bot-glow:rgba(111,179,176,.30); --bot-shadow:rgba(217,154,108,.14);
}

/* Dark: warm charcoal, not blue-black. The ground still has the clay in it, a
   couple of points of red and green above blue, which is the whole difference
   between "night" and "terminal". */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:#131210; --raised:#1b1916; --card:rgba(245,238,228,.045);
  --bubble:rgba(245,238,228,.075); --hair:rgba(245,238,228,.10);
  --ink:#ede7dd; --muted:#9a9086;
  --accent:#4fa8ba; --accent-2:#d68a62; --on-accent:#14120f;
  --ring-1:#4fa8ba; --ring-2:#d68a62; --ring-3:#8ecbd6;
  --aurora-1:rgba(79,168,186,.15); --aurora-2:rgba(214,138,98,.13);
  --note:rgba(79,168,186,.11); --glow:rgba(79,168,186,.16);
  --danger:#e8837a;
  --warn-bg:rgba(226,170,90,.12); --warn-line:rgba(226,170,90,.30); --warn-ink:#e7b276;
  --ok-bg:rgba(122,190,146,.10); --ok-line:rgba(122,190,146,.28); --ok-ink:#86c79c;
  --bot-shell:#1c2a2e; --bot-shell-2:#26383d; --bot-visor:#0e1618;
  --bot-line:rgba(237,231,221,.13); --bot-eye:#8ecbd6;
  --bot-glow:rgba(79,168,186,.34); --bot-shadow:rgba(214,138,98,.14);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

/* Two aurora blobs — left high, right dropped below it. On html, not body:
   body is a grid in index.html and a fixed pseudo-element there is one more
   interaction to reason about for no benefit. */
html::before, html::after {
  content: ""; position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(64px);
  transition: background .45s ease;
}
html::before { width:46vw; height:46vw; max-width:640px; max-height:640px;
               left:-13vw; top:-10vh;
               background: radial-gradient(circle, var(--aurora-1), transparent 68%); }
html::after  { width:42vw; height:42vw; max-width:580px; max-height:580px;
               right:-11vw; top:38vh;
               background: radial-gradient(circle, var(--aurora-2), transparent 68%); }
@media (max-width:700px) {
  html::before { width:78vw; height:78vw; left:-26vw; }
  html::after  { width:72vw; height:72vw; right:-24vw; top:46vh; }
}

/* ---- page transitions -------------------------------------------------- */
/* Cross-document: the browser morphs elements that share a
   view-transition-name between two separate pages, so Ora travels with you
   without turning the site into a single-page app. */
::view-transition-group(ora) { animation-duration: .45s; }
/* She is one element that moved, not two elements crossfading. `animation: none`
   on both left the old snapshot at full opacity for the whole transition, so it
   sat under the new one — that is the ghost. Dropping the old snapshot entirely
   and letting the group animate the box gives a clean move. */
::view-transition-old(ora) { display: none; }
::view-transition-new(ora) {
  /* Height-relative sizing keeps her proportions while the box changes shape;
     the default `auto` stretches the snapshot between two aspect ratios. */
  height: 100%; width: auto; animation: none;
}

/* During a theme wipe she must NOT be her own group: the wipe is a clip-path on
   the root snapshot, and anything captured separately is outside that circle and
   simply swaps colour. Releasing the name folds her back into the root so the
   light sweeps across her with everything else. */
html[data-wipe] #ora { view-transition-name: none; }
/* Everything that isn't Ora crossfades as the root. Elements carrying their own
   view-transition-name are excluded from that snapshot by the browser, so she
   never appears twice. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---- the circular theme wipe ------------------------------------------ */
/* Scoped to [data-wipe]. Unscoped, this killed the navigation transition too —
   the theme wipe and page navigation both animate ::view-transition(root). */
html[data-wipe]::view-transition-old(root),
html[data-wipe]::view-transition-new(root) { animation:none; mix-blend-mode:normal; }
html[data-wipe="to-light"]::view-transition-new(root) { z-index:1; }
html[data-wipe="to-light"]::view-transition-old(root) { z-index:0; }
html[data-wipe="to-dark"]::view-transition-old(root)  { z-index:1; }
html[data-wipe="to-dark"]::view-transition-new(root)  { z-index:0; }
/* The layer that grows must start clipped here, in CSS. If JS is what first
   clips it, the browser gets one frame to paint it unclipped — that's a flash. */
html[data-wipe="to-light"]::view-transition-new(root) {
  clip-path: circle(0px at var(--wx) var(--wy));
}

/* ---- the mark ---------------------------------------------------------- */
.mark { width:22px; height:22px; flex:none; display:block; }
.mark circle { fill:none; stroke-width:1.6; transform-origin:50% 50%; }
.mark .r1 { stroke: var(--ring-1); }
.mark .r2 { stroke: var(--ring-2); }
.mark .r3 { stroke: var(--ring-3); }
body[data-state="thinking"] .bar .r1 { animation: breathe 2.6s ease-in-out infinite; }
body[data-state="thinking"] .bar .r2 { animation: breathe 2.6s ease-in-out .35s infinite; }
body[data-state="thinking"] .bar .r3 { animation: breathe 2.6s ease-in-out .7s infinite; }
@keyframes breathe { 0%,100%{transform:scale(.82);opacity:.5} 50%{transform:scale(1.06);opacity:1} }
@media (prefers-reduced-motion: reduce) {
  body[data-state="thinking"] .bar .mark circle { animation: fade 2s ease-in-out infinite; }
  @keyframes fade { 0%,100%{opacity:.4} 50%{opacity:1} }
}

/* ---- controls ---------------------------------------------------------- */
button { border:0; border-radius:999px; cursor:pointer; font:500 14px/1 var(--sans); padding:10px 18px; }
.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { filter: brightness(1.08); }
.primary:disabled { background: var(--bubble); color: var(--muted); cursor:default; filter:none; }
.ghost { background: var(--card); border:1px solid var(--hair); color: var(--ink); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.theme, .iconbtn {
  width:34px; height:34px; flex:none; display:grid; place-items:center; padding:0;
  background: var(--card); border:1px solid var(--hair); border-radius:50%;
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.theme:hover, .iconbtn:hover { border-color: var(--accent); box-shadow:0 0 0 4px var(--glow); }
.theme svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.iconbtn svg { width:19px; height:19px; }
.iconbtn:active { transform: scale(.93); }
/* Show only the icon for the theme the button would switch to — the only
   labelling that stays legible once there are more than two. */
.theme svg { display: none; }
.theme[data-next="dark"]  .i-dark  { display: block; }
.theme[data-next="dusk"] .i-dusk { display: block; }
.theme[data-next="light"] .i-light { display: block; }

input, textarea {
  background: var(--card); border:1px solid var(--hair); color: var(--ink);
  border-radius:12px; padding:11px 14px; font:inherit; outline:none; width:100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow:0 0 0 4px var(--glow); }


/* ---- avatars ----------------------------------------------------------- */
/* Every face uses these class names, so adding one means drawing shapes and
   nothing else. Periods are deliberately coprime — the loop should never land
   on an obvious beat. */
.avatar { width: 100%; height: auto; display: block; overflow: visible; }
.av-float  { animation: av-float 7s ease-in-out infinite; transform-origin: 50% 50%; }
.av-shadow { animation: av-shadow 7s ease-in-out infinite;
             transform-box: fill-box; transform-origin: center; }
.av-aura   { animation: av-aura 9s ease-in-out infinite; transform-origin: 210px 212px; }
.av-spin     { animation: av-spin 46s linear infinite; transform-origin: 210px 212px; }
.av-spin-rev { animation: av-spin 34s linear infinite reverse; transform-origin: 210px 212px; }
.av-beacon { animation: av-pulse 3.4s ease-in-out infinite; }
.av-core   { animation: av-pulse 5s ease-in-out infinite; }
.av-eyes   { animation: av-blink 7.5s infinite;
             transform-box: fill-box; transform-origin: center; }
.av-motes circle { animation: av-mote 6s ease-in-out infinite; }
.av-motes circle:nth-child(2) { animation-delay: 1.4s }
.av-motes circle:nth-child(3) { animation-delay: 2.9s }
.av-motes circle:nth-child(4) { animation-delay: 4.2s }

@keyframes av-float  { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-11px) } }
@keyframes av-shadow { 0%,100% { opacity:.85; transform: scaleX(1) }
                       50%     { opacity:.55; transform: scaleX(.84) } }
@keyframes av-aura   { 0%,100% { opacity:.5 } 50% { opacity:.75 } }
@keyframes av-spin   { to { transform: rotate(360deg) } }
@keyframes av-pulse  { 0%,100% { opacity:.55 } 50% { opacity:1 } }
/* Open 94% of the cycle: a blink should be a surprise, not a metronome. */
@keyframes av-blink  { 0%,94%,100% { transform: scaleY(1) } 97% { transform: scaleY(.12) } }
@keyframes av-mote   { 0%,100% { opacity:.15; transform: translateY(0) }
                       50%     { opacity:.6;  transform: translateY(-9px) } }

@media (prefers-reduced-motion: reduce) {
  .av-float, .av-shadow, .av-aura, .av-spin, .av-spin-rev,
  .av-beacon, .av-core, .av-eyes, .av-motes circle { animation: none; }
}

/* Perspective lives on the parent; without it rotateY is a flat squash rather
   than a card turning over. Every slot is a parent, so it goes on all of them. */
[data-ora] { perspective: 1200px; display: grid; place-items: center; }
.stage {
  transform-style: preserve-3d;
  /* The name is what the browser matches across documents. Exactly one element
     per page may carry it. */
  view-transition-name: ora;
}

/* Compact: she rides in the header on every page except the landing. The aura
   and motes are noise below about 80px — they read as dirt, not atmosphere. */
/* One node, moved between slots. Size comes from the slot it lands in, via
   data-size, so a view decides how big she is without touching the element. */
#ora[data-size="lg"]   { width: 100%; max-width: 380px; }
#ora[data-size="rail"] { width: 100%; max-width: 172px; }
#ora[data-size="md"]   { width: 132px; margin: 0 auto 20px; }
#ora[data-size="rail"] .av-motes,
#ora[data-size="md"] .av-motes { display: none; }



/* ---- app shell --------------------------------------------------------- */
/* Scoped to the SPA shell. Unscoped, this clipped every standalone document —
   the admin console became a locked-height strip with its overflow hidden. */
body.app { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh;
           overflow: hidden; }
.shell-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border-bottom: 1px solid var(--hair); position: relative; z-index: 2;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px);
}
.shell-bar .brand { display: flex; align-items: center; gap: 9px;
                    text-decoration: none; color: inherit; }
.shell-bar b { font: 500 16px/1 var(--sans); letter-spacing: -.01em; }
.shell-bar .org { color: var(--muted); font-size: 13px; }
.shell-bar .sp { margin-left: auto; }
.shell-bar .mode { font: 500 10px/1 var(--mono); letter-spacing: .14em;
                   text-transform: uppercase; color: var(--muted); }
.shell-bar .text { color: var(--muted); font-size: 14px; text-decoration: none; }
.shell-bar .text:hover { color: var(--ink); }

/* A flex column, so a view fills the space under the header instead of only as
   much as its content needs. `.chat { height: 100% }` depended on a percentage
   resolving through a grid item, which it does not do reliably once the number
   of body children changes — and the symptom was the composer sitting halfway
   up an empty page rather than at the bottom of it. */
#view { position: relative; z-index: 1; min-height: 0; overflow-y: auto;
        display: flex; flex-direction: column; }
/* Document-shaped views — knowledge, access, auth — grow and let the page
   scroll. */
#view > * { flex: 1 0 auto; }

/* The chat is not document-shaped. It is a fixed frame: the thread scrolls
   inside itself and the page never does, so the composer stays where the hand
   expects it and the header never scrolls away.
   Without this the thread pushed the page taller — `flex-shrink: 0` above — and
   the composer travelled off the bottom of the screen as the conversation grew,
   which is what made it feel like a document rather than a chat. */
#view:has(> .chat) { overflow: hidden; }
#view > .chat { flex: 1 1 auto; min-height: 0; }
.centred { display: grid; place-items: start center; padding: 48px 24px; min-height: 100%; }
.narrow { width: 100%; max-width: 34rem; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 24px 60px; }

/* ---- chat layout ------------------------------------------------------- */
/*
 * The frame, top to bottom:
 *
 *   body.app          grid, 100dvh          auto / 1fr
 *   └ #view           flex column, hidden   ← the page never scrolls in chat
 *     └ .chat         flex row, 1fr, min-height 0
 *       ├ .side       fixed width, own scroll
 *       ├ .ora-rail   fixed width
 *       └ .convo      flex column, min-height 0
 *         ├ .unguarded  flex: none
 *         ├ .thread     flex: 1, min-height 0, overflow-y auto  ← the only scroller
 *         └ .composer   flex: none                              ← pinned
 *
 * Flex all the way down, with `min-height: 0` at every level. That last part is
 * the whole trick: a flex item defaults to `min-height: auto`, which means it
 * refuses to shrink below its content — so a growing thread pushes its parent
 * taller instead of scrolling, and the composer travels off the bottom of the
 * screen. Every attempt to fix this with heights and grid rows was working
 * around that default instead of turning it off.
 */
.chat { display: flex; min-height: 0; }
/* Overrides `#view > *`, which sets `flex: 1 0 auto` for document-shaped views.
   Basis 0, not auto: the chat takes the frame's height rather than its own
   content's. */
#view > .chat { flex: 1 1 0; }

/* Ora and the conversation are centred together in whatever the sidebar leaves.
   Auto margins on the outside of the pair, so the two never drift apart — a
   corridor between her and her own words is what this replaced. */
.ora-rail { flex: 0 0 196px; min-width: 0; margin-left: auto;
            display: flex; justify-content: center;
            /* Top-aligned, not centred: level with the middle of a long thread
               she reads as decoration parked in a margin; level with the first
               turn she reads as the one saying it. */
            align-items: flex-start; padding: 30px 16px 0 24px;
            overflow: hidden; }

.convo { flex: 0 1 calc(var(--measure, 44rem) + 60px); margin-right: auto;
         display: flex; flex-direction: column; min-width: 0; min-height: 0;
         position: relative;
         /* One inset shared by the thread, the composer and the status line, so
            the three read as one column rather than three centred blocks that
            happen to be the same width. */
         --gutter: 30px; }

@media (max-width: 1100px) {
  /* Below this she crowds the reading column, so the conversation takes the
     width. */
  .ora-rail { display: none; }
  .convo { flex: 1 1 auto; margin-right: 0;
           --gutter: clamp(18px, 4vw, 30px); }
}
@media (max-width: 820px) {
  /* The sidebar overlays rather than pushing, or the conversation is squeezed
     to nothing on a phone. */
  .side { position: absolute; inset: 0 auto 0 0; z-index: 8; width: 244px; }
}


/* ---- landing ----------------------------------------------------------- */
.hero { padding: 56px 0 52px; display: grid; gap: 40px; align-items: center;
        grid-template-columns: minmax(0,1fr) minmax(0,380px); }
.hero .copy { max-width: 40ch; }
.hero h1 { margin: 0 0 20px; font: 300 clamp(34px,6vw,54px)/1.12 var(--serif);
           letter-spacing: -.015em; }
.hero p { margin: 0 0 30px; font-size: 17px; line-height: 1.65; color: var(--muted);
          max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
a.btn { display: inline-block; text-decoration: none; border-radius: 999px;
        padding: 12px 22px; font: 500 14.5px/1 var(--sans);
        background: var(--accent); color: var(--on-accent); }
a.btn:hover { filter: brightness(1.08); }
a.btn.ghost { background: var(--card); border: 1px solid var(--hair); color: var(--ink); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .hero .portrait { order: -1; justify-self: center; max-width: 240px; }
}

.landing section { padding: 44px 0; border-top: 1px solid var(--hair); }
.landing h2 { margin: 0 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .16em;
              text-transform: uppercase; color: var(--muted); }
.lede { margin: 0 0 28px; font: 300 21px/1.55 var(--serif); max-width: 48ch; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.card { display: block; text-decoration: none; color: inherit; background: var(--card);
        border: 1px solid var(--hair); border-radius: 16px; padding: 22px 20px 20px;
        transition: border-color .18s, transform .18s; }
.card:hover { border-color: var(--tint, var(--accent)); transform: translateY(-2px); }
.card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tint);
             margin-bottom: 14px; }
.card h3 { margin: 0 0 3px; font: 500 15.5px/1.3 var(--sans); }
.card .who { margin: 0 0 12px; font: 500 10px/1.4 var(--mono); letter-spacing: .1em;
             text-transform: uppercase; color: var(--muted); }
.card .blurb { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.card .lock { margin-top: 13px; font-size: 12.5px; color: var(--muted);
              display: inline-flex; align-items: center; gap: 6px; }
.limits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); }
.limit { border-left: 2px solid var(--tint, var(--accent)); padding: 2px 0 2px 16px; }
.limit strong { display: block; font: 500 14px/1.5 var(--sans); margin-bottom: 3px; }
.limit span { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---- forms ------------------------------------------------------------- */
.card.auth { max-width: 380px; width: 100%; backdrop-filter: blur(10px); padding: 30px 30px 26px; }
.narrow h2, .card.auth h2 { margin: 0 0 22px; font: 300 20px/1.45 var(--serif); color: var(--muted); }
.narrow h2 { font-size: 27px; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.row { margin-bottom: 16px; }
label { display: block; font: 500 11px/1 var(--mono); letter-spacing: .12em;
        text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
select { background: var(--card); border: 1px solid var(--hair); color: var(--ink);
         border-radius: 12px; padding: 11px 14px; font: inherit; width: 100%;
         /* The platform arrow is a different weight and colour in every theme.
            The list itself stays native — only the closed control is ours. */
         appearance: none; -webkit-appearance: none; cursor: pointer;
         padding-right: 34px;
         background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                           linear-gradient(135deg, currentColor 50%, transparent 50%);
         background-position: calc(100% - 18px) center, calc(100% - 13px) center;
         background-size: 5px 5px, 5px 5px;
         background-repeat: no-repeat; }
select:disabled, option:disabled { color: var(--muted); cursor: not-allowed; }
textarea { min-height: 88px; resize: vertical; }
.wide { width: 100%; padding: 12px; }
.msg { min-height: 20px; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
/* Only failures are red. Everything was reading as an error because .msg was
   danger-coloured by default, so "Uploaded, conversion is running" looked like
   something had gone wrong. */
.msg.bad { color: var(--danger); }
.msg.good { color: var(--ok-ink); }
.swap, .guest { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.swap button { background: none; padding: 0; color: var(--accent); font: inherit;
               text-decoration: underline; text-underline-offset: 3px; }
.guest a { color: var(--muted); }
.hintline { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.now, .state { background: var(--card); border: 1px solid var(--hair); border-radius: 14px;
               padding: 16px 18px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.now .k, .state .k { font: 500 10px/1 var(--mono); letter-spacing: .12em;
                     text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.now ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }


/* ---- chat -------------------------------------------------------------- */
/* One rule, not two. A second `.side` block later in the file set `display:
   none` and silently won over an earlier one that sized it — the sidebar was
   being given a width it could never use. */
.side { display: none; flex: 0 0 244px; min-width: 0;
        flex-direction: column; min-height: 0;
        border-right: 1px solid var(--hair);
        background: color-mix(in srgb, var(--raised) 72%, transparent);
        backdrop-filter: blur(10px); }
body.signed-in.nav-open .side { display: flex; }
.side .top { padding: 14px 12px; }
.newchat { width: 100%; background: var(--card); border: 1px solid var(--hair);
           color: var(--ink); padding: 10px 14px; border-radius: 12px;
           text-align: left; font-weight: 500; font-size: 13.5px; }
.newchat:hover { border-color: var(--accent); }
.convs { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px;
         display: flex; flex-direction: column; gap: 2px; }
.conv { display: flex; align-items: center; gap: 6px; padding: 8px 10px;
        border-radius: 9px; cursor: pointer; color: var(--muted);
        font-size: 13px; line-height: 1.35; }
.conv:hover { background: var(--card); color: var(--ink); }
.conv[aria-current="true"] { background: var(--bubble); color: var(--ink); }
.conv .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .x { opacity: 0; background: none; padding: 2px 5px; color: var(--muted);
           font-size: 15px; line-height: 1; border-radius: 6px; }
.conv:hover .x { opacity: 1; }
.conv .x:hover { color: var(--danger); }
.account { border-top: 1px solid var(--hair); padding: 12px; font-size: 12.5px; }
.account .who { display: flex; align-items: center; gap: 6px; min-width: 0;
                color: var(--ink); font-weight: 500; }
/* The name is the part that truncates. Letting the flex row shrink the pill
   instead turned "Admin" into "Ad…", which is a worse thing to lose. */
.account .who > :first-child { overflow: hidden; text-overflow: ellipsis;
                               white-space: nowrap; }
.who .role { flex: none; padding: 1px 8px; border-radius: 999px;
             border: 1px solid var(--hair); font: 500 10px/1.7 var(--mono);
             letter-spacing: .06em; color: var(--muted); }
/* Two columns of tiles rather than a row of underlined words. Underlines read
   as prose links and wrapped mid-label — "Sign out" broke across two lines and
   looked like two controls. */
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.acts button, .acts a {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 7px 9px; border-radius: 9px; text-decoration: none;
  background: var(--card); border: 1px solid transparent;
  color: var(--muted); font: 500 12px/1 var(--sans); text-align: left;
}
.acts svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor;
            stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts button:hover, .acts a:hover { color: var(--ink); border-color: var(--hair); }
/* Leaving is the one destructive action here and the only one that spans. */
.acts .leave { grid-column: 1 / -1; }
.acts .leave:hover { color: var(--danger); border-color: var(--danger); }
.acts [hidden] { display: none; }

/* The only scrolling element in the chat. `flex: 1` claims the space between
   the banner and the composer; `min-height: 0` is what lets it actually shrink
   to that space instead of growing to fit its content. */
.thread { flex: 1 1 0; min-height: 0; overflow-y: auto;
          overscroll-behavior: contain;
          padding: 30px var(--gutter) 24px;
          /* Room under the last turn so an answer never ends flush against the
             composer, and its action row is reachable. */
          scroll-padding-bottom: 24px; }
/* Left-aligned, not centred. Centring inside .convo pushed every turn to the
   right of Ora and left a corridor of empty page between her and her own
   words. */
.column { max-width: var(--measure, 44rem); margin: 0;
          display: flex; flex-direction: column; gap: 26px; }
.turn.you { align-self: flex-end; max-width: 40ch; }
.turn.you p { margin: 0; background: var(--bubble); border-radius: 15px 15px 4px 15px;
              padding: 10px 15px; font-size: 14px; }
.turn.ora { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
/* 400, not 300: a text serif at light weight goes spindly on a dark ground,
   which reads as strain rather than calm. Tracking is left at zero — positive
   letter-spacing on a serif loosens words into separate letters. */
.turn.ora p, .turn.ora .prose { margin: 0; grid-column: 2; font: 400 17px/1.68 var(--serif); }
/* pre-wrap belongs to the greeting alone now. The renderer makes the paragraphs,
   and pre-wrap on top of them doubles every gap. */
.turn.ora .opening p { white-space: pre-wrap; }
.prose > * + * { margin-top: .85em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose h4 { font: 500 17px/1.5 var(--sans); letter-spacing: -.005em; }
.prose code { font: 400 .85em var(--mono); background: var(--note);
              padding: .1em .35em; border-radius: 5px; }
.opening { grid-column: 2; }
.cutoff { grid-column: 2; margin-top: 12px; font: 400 12.5px/1.5 var(--sans);
          color: var(--muted); }
.turn.ora .opening .hint { margin-top: 14px; font: 400 13.5px/1.55 var(--sans); color: var(--muted); }
.note { grid-column: 1 / -1; font: 400 13.5px/1.5 var(--sans); color: var(--ink);
        background: var(--note); border-radius: 12px; padding: 11px 15px; }

/* A translucent scrim with a fade above it, so text scrolling underneath
   dissolves rather than being cut off by a hard edge.
 *
 * Translucent and not `var(--bg)`, which is what it used to be. The aurora is
 * `position: fixed` on the root, so an opaque band across the bottom of the
 * viewport does not sit *on* the page ground — it sits *over* the blob, and the
 * right-hand blob was being guillotined into a rectangle wherever it reached
 * the composer. The fade only softened the top edge; the sides stayed hard.
 *
 * Same treatment as `.shell-bar`, which already did this: a colour-mixed scrim
 * plus a backdrop blur, so scrolled text still turns to an unreadable smear
 * while anything painted behind the page still shows through. */
/* Pinned: never grows, never shrinks, always the last thing in the column. */
.composer { flex: none; padding: 10px var(--gutter) 18px; --composer-h: 46px;
            position: relative; z-index: 2;
            background: color-mix(in srgb, var(--bg) 86%, transparent);
            backdrop-filter: blur(12px); }
.composer::before { content: ""; position: absolute; left: 0; right: 0;
                    top: -28px; height: 28px; pointer-events: none;
                    background: linear-gradient(to top,
                      color-mix(in srgb, var(--bg) 86%, transparent), transparent); }
.composer form { max-width: var(--measure, 44rem); margin: 0;
                 display: flex; gap: 10px; align-items: flex-end; }
.composer form textarea { align-self: center; }
.field { flex: 1; display: flex; align-items: center; gap: 8px;
         min-height: var(--composer-h);
         background: var(--card); border: 1px solid var(--hair);
         border-radius: calc(var(--composer-h) / 2);
         padding: 6px 6px 6px 18px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.field textarea { border: 0; background: none; padding: 0; border-radius: 0;
                  resize: none; line-height: 1.55; min-height: 0;
                  max-height: 180px; max-height: 8lh; }
/* The field shows focus via :focus-within. Without this the global
   :focus-visible outline draws a second rectangle inside the pill. */
.field textarea:focus,
.field textarea:focus-visible { box-shadow: none; outline: none; }
.mic { background: var(--accent-2); color: var(--on-accent); padding: 0 16px;
       height: calc(var(--composer-h) - 14px); flex: none; }
/* Same height and the same corner radius as the field, or the pair reads as two
   unrelated controls that happen to sit next to each other. */
.composer .primary { height: var(--composer-h); padding: 0 26px; flex: none;
                     border-radius: calc(var(--composer-h) / 2); }
.mic[hidden] { display: none; }
.status { max-width: var(--measure, 44rem); margin: 8px 0 0; min-height: 18px;
          font: 400 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.status button { padding: 0; background: none; color: var(--accent); font: inherit;
                 text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }
.status a { color: var(--accent); }

.switcher { display: flex; gap: 4px; margin-left: 6px; }
.switcher a { text-decoration: none; color: var(--muted); font-size: 12.5px;
              padding: 5px 11px; border-radius: 999px; border: 1px solid transparent;
              white-space: nowrap; }
.switcher a:hover { color: var(--ink); background: var(--card); }
.switcher a[aria-current="true"] { color: var(--ink); border-color: var(--hair);
                                    background: var(--card); }
@media (max-width: 700px) { .switcher, .shell-bar .org { display: none; } }

dialog { border: 1px solid var(--hair); border-radius: 18px; padding: 0;
         background: var(--raised); color: var(--ink);
         width: min(34rem, calc(100vw - 32px)); max-height: 80vh; }
dialog::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px;
            border-bottom: 1px solid var(--hair); }
.dlg-head h2 { margin: 0; font: 500 15px/1 var(--sans); }
.dlg-head .sp, .dlg-foot .sp { margin-left: auto; }
.dlg-body { padding: 6px 20px 18px; overflow-y: auto; max-height: 54vh; }
.dlg-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px;
            border-top: 1px solid var(--hair); }
.memrow { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0;
          border-bottom: 1px solid var(--hair); font-size: 14px; }
.memrow:last-child { border-bottom: 0; }
.memrow span { flex: 1; }
.memrow button { background: none; padding: 2px 6px; color: var(--muted); font-size: 15px; }
.memrow button:hover { color: var(--danger); }
.memnone { color: var(--muted); font-size: 13.5px; padding: 16px 0; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.switch input { width: auto; }





/* ---- diff -------------------------------------------------------------- */
/* Shown after a rewrite. The reviewer's job here is the removals: a model that
   drops a dose or merges two table rows produces text that reads perfectly. */
.kb-diff { margin: 12px 0; border: 1px solid var(--hair); border-radius: 10px;
           overflow: hidden; font: 400 12px/1.65 var(--mono); }
.dl { display: grid; grid-template-columns: 3.5ch 1.6ch minmax(0, 1fr); }
.dl .dn { color: var(--muted); opacity: .6; text-align: right; padding-right: 6px; }
.dl .ds { text-align: center; opacity: .7; }
.dl .dt { white-space: pre-wrap; word-break: break-word; padding-right: 8px; }
/* Tinted, not coloured text: the line has to stay readable, and on a dark
   ground green-on-black prose is harder to read than the change is to spot. */
.dl.add { background: var(--ok-bg); }
.dl.add .ds { color: var(--ok-ink); }
.dl.del { background: rgba(240,166,182,.10); }
.dl.del .ds { color: var(--danger); }
.dl.gap { color: var(--muted); font-size: 11px; padding: 3px 0;
          background: var(--bubble); }
.dl.gap .dt { opacity: .7; }

.kb-tabs button[hidden] { display: none; }
/* While a model is working, the footer is inert. Every operation here takes
   tens of seconds, and a live-looking screen invites a second click. */
dialog.working .dlg-foot { opacity: .55; pointer-events: none; }
.kb-secthead .small.ghost { display: inline-flex; align-items: center; gap: 6px; }
.kb-secthead .small.ghost svg { width: 14px; height: 14px; fill: none;
  stroke: currentColor; stroke-width: 1.4; stroke-linecap: round;
  stroke-linejoin: round; }
.kb-secthead .small.ghost.on { color: var(--ink); border-color: var(--hair); }


/* ---- the rewrite view -------------------------------------------------- */
/* Its own dialog, using the same shell as the editor. As an absolutely
   positioned child of .kb-panes it inherited that pane's scrolling, so the
   footer ended up in the middle of the document and the diff rendered behind
   the text. */
/* [open] is load-bearing. A closed <dialog> is hidden by the UA stylesheet's
   `dialog:not([open]) { display: none }` — and any `display` declaration with
   higher specificity overrides it, so this dialog rendered inline in the page,
   permanently, as an empty two-pane panel below the document list. */
dialog.rewrite[open] { width: min(1500px, calc(100vw - 32px)); max-width: none;
                         height: min(94vh, 1100px); max-height: none;
                         display: flex; flex-direction: column; }
dialog.rewrite .dlg-head, dialog.rewrite .dlg-foot { flex: none; }
dialog.review .kb-sub { color: var(--muted); font-size: 12px;
                        overflow: hidden; text-overflow: ellipsis;
                        white-space: nowrap; }

.kb-rw-panes { flex: 1; min-height: 0; display: grid;
               grid-template-columns: 1fr 1fr; }
.kb-rw-panes[hidden] { display: none; }
.kb-rw-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column;
              border-right: 1px solid var(--hair); }
.kb-rw-pane:last-child { border-right: 0; }
.kb-rw-label { flex: none; padding: 8px 16px; color: var(--muted);
               font: 500 10px/1 var(--mono); letter-spacing: .12em;
               text-transform: uppercase; background: var(--bubble);
               border-bottom: 1px solid var(--hair); }
.kb-rw-body { flex: 1; min-height: 0; overflow-y: auto; margin: 0;
              padding: 12px 16px; font: 400 12.5px/1.7 var(--mono);
              white-space: pre-wrap; overflow-wrap: break-word; }
/* A caret while Ora writes, so a pause reads as thinking rather than a stall. */
.kb-rw-body.streaming::after { content: "▋"; color: var(--accent);
                               animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* The finished diff. Two columns on one scroller, so the halves cannot drift
   out of step — synchronising two independently scrolling panes is a promise
   that breaks the moment a line wraps differently on each side. */
.kb-rw-diffwrap { flex: 1; min-height: 0; display: grid;
                  grid-template-columns: 1fr 1fr;
                  grid-template-rows: auto minmax(0, 1fr); }
.kb-rw-diffwrap[hidden] { display: none; }
.kb-sxs { grid-column: 1 / -1; min-height: 0; overflow-y: auto;
          display: grid; grid-template-columns: 1fr 1fr;
          font: 400 12px/1.65 var(--mono); }
.sx { display: grid; grid-template-columns: 4ch minmax(0, 1fr); gap: 8px;
      padding: 1px 10px 1px 0; min-width: 0; }
.sx.l { border-right: 1px solid var(--hair); }
.sx .sn { color: var(--muted); opacity: .55; text-align: right; }
.sx .st { white-space: pre-wrap; overflow-wrap: break-word; }
/* Tinted rather than coloured text: the line has to stay readable, and the
   change is easier to spot as a band than as green prose on black. */
.sx.add { background: var(--ok-bg); }
.sx.del { background: rgba(240,166,182,.10); }
.sx.blank { background: var(--bubble); opacity: .35; }
.sx.gap { grid-column: span 1; color: var(--muted); font-size: 11px;
          background: var(--bubble); padding-left: 10px; }

@media (prefers-reduced-motion: reduce) {
  .kb-rw-body.streaming::after { animation: none; }
}
@media (max-width: 900px) {
  .kb-rw-panes { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .kb-rw-pane { border-right: 0; border-bottom: 1px solid var(--hair); }
}


/* Marks text a model reformatted. Quiet on purpose: rewriting is supported, so
   this is provenance rather than a warning, and a red badge on a routine
   operation stops meaning anything after the third one. */
.rw-badge { display: inline-flex; align-items: center; gap: 5px; flex: none;
            padding: 2px 8px; border-radius: 999px;
            border: 1px solid var(--hair); background: var(--card);
            color: var(--muted); font: 500 10.5px/1.6 var(--sans);
            letter-spacing: .01em; white-space: nowrap; }
/* Cleaning is deterministic and a rewrite is not, so they do not look alike.
   The broom is quieter on purpose — it reports work no model did. */
.rw-badge.clean { color: var(--muted); border-color: var(--hair); }
.rw-badge:not(.clean) { color: var(--accent); }
.rw-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor;
                stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }


/* A failure that needs reading, not glancing at. The status line beside the
   buttons is one line and scrolls away; this stays until dismissed, wraps, and
   can be copied — the useful thing to do with "the embedding server at X did
   not answer" is paste it somewhere. */
.kb-failure { flex: none; margin: 0 20px 12px; padding: 12px 14px;
              border-radius: 12px; border: 1px solid var(--danger);
              background: var(--card); }
.kb-failure[hidden] { display: none; }
.kb-failure .k { font: 500 10px/1 var(--mono); letter-spacing: .12em;
                 text-transform: uppercase; color: var(--danger);
                 margin-bottom: 8px; }
.kb-failure .msgtext { font: 400 13px/1.6 var(--sans); color: var(--ink);
                       white-space: pre-wrap; overflow-wrap: break-word;
                       user-select: text; }
.kb-failure .acts { display: flex; gap: 8px; margin-top: 10px; }

/* ---- recycle bin ------------------------------------------------------- */
.kb-secthead { display: flex; align-items: baseline; gap: 14px; }
.kb-secthead h2 { margin-bottom: 0; }
.kb-row.deleted { opacity: .72; }
.kb-row.deleted:hover { opacity: 1; }
/* The countdown is the whole point of a bin: it says how long you have, so it
   is read as information rather than an alarm — until it nearly runs out. */
.countdown { flex: none; font-size: 11px; color: var(--muted); }
.countdown.soon { color: var(--warn-ink); }


/* ---- message actions --------------------------------------------------- */
/* Under the answer, not beside it, and quiet until hovered: these are for the
   moment after reading, not part of it. */
.acts-row { grid-column: 2; display: flex; align-items: center; gap: 2px;
            margin-top: 10px; opacity: .45; transition: opacity .15s; }
.turn.ora:hover .acts-row, .acts-row:focus-within { opacity: 1; }
.act { display: inline-grid; place-items: center; width: 28px; height: 28px;
       padding: 0; border-radius: 8px; background: none; color: var(--muted);
       cursor: pointer; }
.act svg { width: 15px; height: 15px; fill: none; stroke: currentColor;
           stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.act:hover { background: var(--bubble); color: var(--ink); }
.act.done { color: var(--ok-ink); }
.act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A rating that is set stays lit — the row is a record, not just a control. */
.act.up.on { color: var(--ok-ink); background: var(--ok-bg); }
.act.down.on { color: var(--danger); background: rgba(240,166,182,.12); }
/* Not a button: it does nothing but say which model wrote this. */
.act.model { cursor: help; }
.act.model:hover { background: none; }
@media (hover: none) {
  /* Nothing hovers on a touch screen, so the row is simply always visible. */
  .acts-row { opacity: 1; }
}


/* One tooltip element, moved and refilled. Fixed, so it is never clipped by the
   thread's own scroll container — a tooltip that appears half-cut is worse than
   none. */
.tip { position: fixed; z-index: 60; pointer-events: none;
       max-width: min(320px, calc(100vw - 24px));
       padding: 6px 10px; border-radius: 8px;
       background: var(--raised); border: 1px solid var(--hair);
       box-shadow: 0 8px 24px rgba(0,0,0,.32);
       color: var(--ink); font: 400 12px/1.45 var(--sans);
       white-space: normal; overflow-wrap: break-word;
       opacity: 0; transform: translateY(3px);
       transition: opacity .12s ease, transform .12s ease; }
.tip.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tip { transition: none; }
}


/* ---- evals ------------------------------------------------------------- */
.ev-score { flex: none; padding: 3px 10px; border-radius: 999px;
            font: 500 12px/1.5 var(--mono); border: 1px solid var(--hair);
            background: var(--card); }
.ev-score.good { color: var(--ok-ink); border-color: var(--ok-line);
                 background: var(--ok-bg); }
.ev-score.bad { color: var(--warn-ink); border-color: var(--warn-line);
                background: var(--warn-bg); }
.ev-score.none { color: var(--muted); }

.ev-cases { padding-right: 20px; }
.ev-caselist { flex: 1; min-height: 0; overflow-y: auto;
               border: 1px solid var(--hair); border-radius: 12px;
               background: var(--card); padding: 6px; }
.ev-case { display: flex; align-items: center; gap: 10px; padding: 9px 10px;
           border-bottom: 1px solid var(--hair); }
.ev-case:last-child { border-bottom: 0; }
.ev-case-main { flex: 1; min-width: 0; }
.ev-q { font-size: 13.5px; color: var(--ink); }
/* The cases that matter most, marked as such — a set with none of these cannot
   tell a grounded system from a confident one. */
.ev-neg { color: var(--accent); }
.ev-verdict { flex: none; font: 500 10.5px/1.6 var(--mono); letter-spacing: .08em;
              text-transform: uppercase; color: var(--muted); }
.ev-verdict.good { color: var(--ok-ink); }
.ev-verdict.bad { color: var(--danger); }

.ev-summary { display: flex; align-items: baseline; gap: 12px;
              padding: 14px 16px; margin-bottom: 16px; border-radius: 12px;
              border: 1px solid var(--hair); background: var(--card); }
.ev-summary.good { border-color: var(--ok-line); background: var(--ok-bg); }
.ev-summary.bad { border-color: var(--warn-line); background: var(--warn-bg); }
.ev-summary .big { font: 300 30px/1 var(--serif); color: var(--ink); }
.ev-summary .big span { font-size: 17px; color: var(--muted); }

.ev-fail { margin: 10px 0; padding: 10px 12px; border-radius: 10px;
           background: var(--bubble); }
.ev-fail .vs { font-size: 12.5px; color: var(--danger); }
.ev-fail .vs.muted { color: var(--muted); }
.ev-fail details { margin-top: 6px; }
.ev-fail summary { cursor: pointer; color: var(--muted); font-size: 12px; }

.ev-preview { margin-top: 14px; padding: 12px 14px; border-radius: 12px;
              border: 1px solid var(--hair); background: var(--card); }
.ev-preview[hidden] { display: none; }
/* A blocking problem, not a warning: nothing is imported while it stands. */
.ev-block { margin: 10px 0; padding: 10px 12px; border-radius: 10px;
            border: 1px solid var(--danger); background: rgba(240,166,182,.08); }
.ev-block.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.ev-block strong { display: block; margin-bottom: 6px; font-size: 13px; }
.ev-prev { padding: 8px 0; border-bottom: 1px solid var(--hair); }
.ev-prev:last-child { border-bottom: 0; }
#evImportDlg { width: min(760px, calc(100vw - 32px)); }

/* The options, with the answer key marked. Shown in the list because a wrong
   key is the one defect that makes every model look bad, and it is only visible
   when the letters sit next to the question. */
.ev-options { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 2px; }
.ev-options span { font: 400 12px/1.5 var(--sans); color: var(--muted); }
.ev-options .key { color: var(--ok-ink); font-weight: 500; }

/* Said where the cases are, not in a log. A set pointed at a product surface
   scores zero and looks like a knowledge failure. */
.ev-charnote { margin: 0 0 8px; padding: 9px 12px; border-radius: 10px;
               font: 400 12.5px/1.5 var(--sans); color: var(--warn-ink);
               background: var(--warn-bg); border: 1px solid var(--warn-line); }
.ev-charnote[hidden] { display: none; }
.ev-charnote strong { font-weight: 600; }

/* A sample run says so wherever it appears. Not a warning — a smoke test is
   the right thing to do on a 1,500-case set — but a number that cannot be
   compared has to carry that with it. */
.ev-partial { margin-bottom: 12px; padding: 9px 12px; border-radius: 10px;
              background: var(--note); border: 1px solid var(--hair);
              color: var(--muted); font: 400 12.5px/1.5 var(--sans); }
.ev-sample { font: 400 10.5px/1.6 var(--mono); color: var(--muted);
             padding: 1px 7px; border-radius: 999px;
             border: 1px solid var(--hair); }

/* A filled bar, not a fraction. The proportion is what is being read, and
   "18/20" makes the eye do arithmetic before it can see it. */
/* The embedding server's state, beside the button that asks. Green is not the
   interesting one — amber is: it means the fallback answered, so the primary is
   down and text is going somewhere it was not meant to. */
.kb-embed { font: 400 12px/1.5 var(--sans); color: var(--muted); }
.kb-embed.good { color: var(--ok-ink); }
.kb-embed.warn { color: var(--warn-ink); }
.kb-embed.bad { color: var(--danger); }
.kb-embed.busy { opacity: .7; }

/* Choosing what to rewrite. The figures are the point of the screen — a
   threshold nobody can price is a threshold nobody can choose. */
#kbScopeDlg { width: min(720px, calc(100vw - 32px)); }
.kb-scope-figures { display: grid; grid-template-columns: repeat(3, 1fr);
                    gap: 12px; margin: 14px 0 18px; }
.kb-scope-figures > div { padding: 12px 14px; border-radius: 12px;
                          border: 1px solid var(--hair); background: var(--card); }
.kb-scope-figures b { display: block; font: 300 24px/1.1 var(--serif);
                      color: var(--ink); }
.kb-scope-figures span { font: 400 11.5px/1.4 var(--sans); color: var(--muted); }
.kb-scope-ends { display: flex; justify-content: space-between; margin-top: 4px;
                 font: 400 11px/1.4 var(--sans); color: var(--muted); }
.kb-scope-list { max-height: 34vh; overflow-y: auto; margin-top: 14px;
                 border-top: 1px solid var(--hair); }
.kb-scope-row { display: grid; grid-template-columns: 3ch 1fr 7ch;
                gap: 4px 10px; padding: 8px 0;
                border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.kb-scope-row .sc { color: var(--warn-ink); }
.kb-scope-row .hd { min-width: 0; overflow: hidden; text-overflow: ellipsis;
                    white-space: nowrap; color: var(--ink); }
.kb-scope-row .ch { text-align: right; color: var(--muted); }
.kb-scope-row .rs { grid-column: 2 / -1; color: var(--muted); font-size: 11.5px; }
#kbThreshold { width: 100%; }

/* Progress on a draft row. The bar is the same one the eval dashboard uses;
   what differs is that it sits inside a list item. */
.kb-progressrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.kb-progressrow .ev-bar { flex: 1; margin: 0; }
.kb-progressrow .mono { flex: none; font-size: 11.5px; color: var(--muted); }

.ev-meter { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
            border: 1px solid var(--hair); background: var(--card); }
.ev-meter-top { display: flex; align-items: baseline; justify-content: space-between;
                margin-bottom: 8px; }
.ev-meter .lbl { font: 500 12px/1 var(--sans); color: var(--ink); }
.ev-meter .pct { font: 300 24px/1 var(--serif); color: var(--ink); }
.ev-bar { height: 8px; border-radius: 999px; background: var(--bubble);
          overflow: hidden; margin-bottom: 8px; }
/* A stage with no number: the bar moves without claiming a percentage, which
   is honest about a single model call that cannot report progress. */
.ev-bar.indeterminate { position: relative; overflow: hidden; }
.ev-bar.indeterminate > span { width: 40% !important;
  animation: sweep 1.4s ease-in-out infinite; }
@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .ev-bar.indeterminate > span { animation: none; width: 100% !important;
                                 opacity: .4; }
}

.ev-bar > span { display: block; height: 100%; border-radius: 999px;
                 background: var(--ok-ink); transition: width .35s ease; }
.ev-meter.bad .ev-bar > span { background: var(--warn-ink); }
.ev-meter.bad .pct { color: var(--warn-ink); }
.ev-meter.good .ev-bar > span { background: var(--ok-ink); }
@media (prefers-reduced-motion: reduce) {
  .ev-bar > span { transition: none; }
}

/* The same bar, compact, on a set row. */
.ev-rowbar { position: relative; flex: none; width: 92px; height: 20px;
             border-radius: 999px; background: var(--bubble); overflow: hidden;
             display: flex; align-items: center; }
.ev-rowbar > span { position: absolute; inset: 0 auto 0 0;
                    background: var(--ok-ink); opacity: .55; }
.ev-rowbar.bad > span { background: var(--warn-ink); }
.ev-rowbar > em { position: relative; width: 100%; text-align: center;
                  font: 500 11px/1 var(--mono); font-style: normal;
                  color: var(--ink); }

.ev-answer { border-bottom: 1px solid var(--hair); padding: 8px 0; }
.ev-answer:last-child { border-bottom: 0; }
.ev-answer summary { display: flex; gap: 10px; align-items: baseline;
                     cursor: pointer; }
.ev-answer summary::marker, .ev-answer summary::-webkit-details-marker {
  content: ""; display: none; }
.ev-answer .ev-q { flex: 1; min-width: 0; font-size: 13px; }
.ev-answer .k { margin-top: 10px; }

/* The harness trace. Indented and hairlined off the answer above it because it
   is evidence about that answer, not another answer — three unindented blocks
   in a row read as three results. */
.ev-trace { margin-top: 8px; padding-left: 10px;
            border-left: 2px solid var(--hair); }
.ev-trace .k { margin-top: 8px; }
.ev-calls, .ev-srcs { margin: 4px 0 0; padding-left: 20px;
                      font-size: 12.5px; color: var(--muted); }
.ev-calls li, .ev-srcs li { margin: 2px 0; }
.ev-calls .mono, .ev-srcs .mono { color: var(--ink); }
.ev-srcs a { color: var(--muted); text-decoration: underline;
             text-underline-offset: 2px; }
.ev-srcs a:hover { color: var(--ink); }
/* Web sources are the one thing here worth spotting at a glance: everything
   else came from a corpus somebody reviewed. */
.ev-web { color: var(--warn-ink); font-weight: 500; }

/* charts */
.chart { width: 100%; height: auto; display: block; margin: 8px 0 14px; }
.chart .c-label { font: 400 11px var(--sans); fill: var(--muted); }
.chart .c-value { font: 400 10.5px var(--mono); fill: var(--muted); }
.chart .c-legend { font: 400 10px var(--sans); fill: var(--muted); }

/* Hardness. Colour is a scale, not a judgement — hard cases failing is
   expected; easy cases failing is the alarm. */
.ev-hard { font: 500 10px var(--mono); letter-spacing: .06em;
           text-transform: uppercase; }
.ev-hard.h1 { color: var(--ok-ink); }
.ev-hard.h2 { color: var(--accent); }
.ev-hard.h3 { color: var(--warn-ink); }

.ev-foot { flex-wrap: wrap; gap: 12px; }
.ev-phase { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
            color: var(--muted); }
/* height:34px against the global select padding of 11px clipped the text to
   about two thirds of a line. The height wins, so the padding has to go. */
.ev-phase select { height: 34px; padding: 0 12px; }
/* The runs face wraps its phase controls itself. The head-to-head face uses
   this, and both want the same rhythm: inline, wrapping, selects sized to
   their content rather than to the row. */
.ev-phases { display: flex; flex-wrap: wrap; align-items: center;
             gap: 10px 20px; margin-bottom: 18px; }
.ev-phases select { width: auto; min-width: 11rem; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ev-run { display: flex; align-items: center; gap: 10px; padding: 8px 0;
          border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.ev-run:last-child { border-bottom: 0; }
.ev-run.bad .ev-score { color: var(--danger); }
/* The number anyone actually wants is the change, not the total. */
.ev-delta { font: 500 12px/1.5 var(--mono); color: var(--muted); }
.ev-delta.good { color: var(--ok-ink); }
.ev-delta.bad { color: var(--danger); }

/* ---- toasts ------------------------------------------------------------ */
/* Top right, under the header. Failures arrive when the user has scrolled away
   or switched tabs, and the status line under the composer only works if they
   are still looking at it. */
.toasts { position: fixed; top: 68px; right: 18px; z-index: 40;
          display: flex; flex-direction: column; gap: 8px;
          width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px;
         padding: 11px 12px 11px 14px; border-radius: 12px;
         background: var(--raised); border: 1px solid var(--hair);
         box-shadow: 0 12px 32px rgba(0,0,0,.34);
         font: 400 13px/1.5 var(--sans); color: var(--ink); }
.toast .t { flex: 1; min-width: 0; }
/* An error is bordered, not filled. A filled red panel reads as a system alarm;
   this is one turn that didn't land, and the thread already says so. */
.toast.error { border-color: var(--danger); color: var(--ink); }
.toast.error .t::before { content: ""; display: inline-block; width: 7px; height: 7px;
                          margin-right: 8px; border-radius: 50%;
                          background: var(--danger); vertical-align: 1px; }
.toast .act { flex: none; background: none; padding: 0; color: var(--accent);
              font: 500 13px/1.5 var(--sans); text-decoration: underline;
              text-underline-offset: 3px; }
.toast .act:hover { filter: brightness(1.15); }
.toast .x { flex: none; background: none; padding: 0 2px; color: var(--muted);
            font: 400 16px/1.2 var(--sans); }
.toast .x:hover { color: var(--ink); }
@media (max-width: 700px) {
  .toasts { top: auto; bottom: 14px; right: 12px; left: 12px; width: auto; }
}

/* An unguarded character must never be mistakable for product output. */
.unguarded {
  margin: 0; padding: 8px var(--gutter); font: 500 12px/1.45 var(--sans);
  /* align-self: start was for a grid parent; in a flex column it collapses the
     banner to its text width and leaves the rest of the row bare. */
  color: var(--warn-ink); background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
  flex: none;
}
.unguarded[hidden] { display: none; }


/* Citations under an answer. Small and quiet — they are for checking, not
   reading, and they must not compete with the answer itself. */
.sources { grid-column: 2; margin-top: 14px; padding-top: 12px;
           border-top: 1px solid var(--hair); }
.sources .k { font: 500 10px/1 var(--mono); letter-spacing: .12em;
              text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sources .src { font: 400 12.5px/1.55 var(--sans); color: var(--muted); }
.sources a { color: var(--muted); text-decoration: underline;
             text-underline-offset: 2px; }
.sources a:hover { color: var(--ink); }


/* ---- knowledge --------------------------------------------------------- */
.kb { padding-top: 28px; }
.kb-head h1 { margin: 0 0 6px; font: 300 30px/1.2 var(--serif); }
.kb section { padding: 28px 0; border-top: 1px solid var(--hair); }
.kb section:first-of-type { border-top: 0; padding-top: 12px; }
.kb h2 { margin: 0 0 16px; font: 500 11px/1 var(--mono); letter-spacing: .16em;
         text-transform: uppercase; color: var(--muted); }
/* A grid, not a wrapping flex row: the file input is far wider than the selects,
   so flex-wrap put the button on its own line and left the labels adrift. */
/* The native file input is a browser-chrome button and a sentence of grey text
   that never matches anything around it. A drop zone is also the affordance
   people actually reach for with a PDF already open. */
.kb-drop { display: grid; place-items: center; gap: 4px; cursor: pointer;
           padding: 26px 20px; margin-bottom: 14px; text-align: center;
           border: 1px dashed var(--hair); border-radius: 14px;
           background: var(--card); color: var(--muted);
           transition: border-color .12s, background .12s; }
.kb-drop:hover, .kb-drop:focus-visible { border-color: var(--accent); color: var(--ink); }
.kb-drop.over { border-color: var(--accent); border-style: solid;
                background: var(--note); color: var(--ink); }
.kb-drop svg { width: 26px; height: 26px; fill: none; stroke: currentColor;
               stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.kb-drop .nm { font-size: 14px; color: var(--ink); }
.kb-drop .hint { font-size: 12.5px; color: var(--muted); }
.kb-drop-file { display: flex; align-items: center; gap: 12px; }
.kb-drop-file .sz { color: var(--muted); font-size: 12px; }
.kb-drop [hidden] { display: none; }

.kb-grid { display: grid; gap: 12px; align-items: end;
           grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) auto; }
.kb-grid .f { min-width: 0; }
.kb-grid label { margin-bottom: 6px; }
.kb-grid select { width: 100%; height: 42px; }
.kb-grid .primary { height: 42px; padding: 0 22px; }
@media (max-width: 700px) {
  .kb-grid { grid-template-columns: 1fr; }
}

.kb-actions { display: flex; gap: 18px; margin-top: 10px; }

.kb-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.kb-progress[hidden] { display: none; }
.kb-progress .bar { flex: 1; height: 6px; border-radius: 999px;
                    background: var(--bubble); overflow: hidden; }
.kb-progress .bar span { display: block; height: 100%; width: 0;
                         background: var(--accent); transition: width .15s linear; }
.kb-progress .mono { color: var(--muted); font-size: 12px; min-width: 8ch; }

/* Editor tools. Line-level actions, because heading structure is what the
   reviewer is actually adjusting. */
.kb-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
            margin: 0 0 8px; }
.kb-tools button { background: var(--card); border: 1px solid var(--hair);
                   color: var(--muted); border-radius: 8px; padding: 5px 10px;
                   font: 500 12px/1 var(--sans); }
.kb-tools button:hover { color: var(--ink); border-color: var(--accent); }
.kb-tools .sep { width: 1px; height: 18px; background: var(--hair); margin: 0 4px; }

.kb-editor { min-height: 320px; font: 400 13px/1.6 var(--mono); }

.kb-row { display: flex; align-items: center; gap: 14px; padding: 13px 0;
          border-bottom: 1px solid var(--hair); }
.kb-row:last-child { border-bottom: 0; }
.kb-main { flex: 1; min-width: 0; }
.kb-title { font-size: 14.5px; margin-bottom: 3px; }
.kb-err { margin-top: 5px; font-size: 12.5px; color: var(--danger); }
.pill.st-ready      { color: var(--accent); border-color: var(--hair); }
.pill.st-converting { color: var(--muted); border-color: var(--hair); }
.pill.st-failed     { color: var(--danger);
                      border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
button.danger { color: var(--danger); }

/* ---- the review workstation --------------------------------------------
   Reviewing a guideline is reading, line by line, against a source document.
   The old shape was a 56rem dialog with a 300px editor inside a 66vh scrolling
   body: three nested scroll areas, and the reviewer spent the session moving
   between them instead of reading. This takes the screen. */
/* Every workstation dialog, not one of them by id. This was `#kbDlg.review`,
   so the evals dialog carried the class, got none of the sizing, and collapsed
   to the browser's default width — which put the case list at one word per line
   and pushed the footer, with the Run button on it, off the bottom of the
   screen. A shared shape belongs to a class. */
dialog.review[open] { width: min(1500px, calc(100vw - 32px)); max-width: none;
                      height: min(94vh, 1100px); max-height: none;
                      display: flex; flex-direction: column; }
dialog.review .dlg-head, dialog.review .dlg-foot { flex: none; }
.kb-sub { color: var(--muted); font-size: 11.5px; overflow: hidden;
          text-overflow: ellipsis; white-space: nowrap; }

.kb-panes { flex: 1; min-height: 0; display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.kb-pane-edit { min-width: 0; min-height: 0; display: flex; flex-direction: column;
                padding: 12px 0 12px 20px; }
/* The rewrite view is absolutely positioned against this. */
.kb-panes { position: relative; }
.kb-pane-side { min-width: 0; min-height: 0; display: flex; flex-direction: column;
                border-left: 1px solid var(--hair); }

.kb-editwrap { position: relative; flex: 1; min-height: 0; display: flex;
               border: 1px solid var(--hair); border-radius: 12px;
               background: var(--card); overflow: hidden; }
/* Font and line-height are shared with the textarea below and must stay that
   way — the gutter is aligned by arithmetic, not by layout. */
.kb-gutter { flex: none; width: 4ch; padding: 12px 8px 12px 0; overflow: hidden;
             text-align: right; user-select: none;
             font: 400 13px/1.7 var(--mono); color: var(--muted); opacity: .55;
             border-right: 1px solid var(--hair); background: var(--bubble); }
/* Height is set per cell in JS from the measured wrapped height, so a number
   stays beside its line however many rows the line takes. */
.kb-gutter span { display: block; }

/* Wrapping. Horizontal scroll meant reading one sentence in two movements, and
   a guideline has lines longer than any pane will ever be. */
.kb-md { flex: 1; min-width: 0; margin: 0; padding: 12px 14px;
         border: 0; border-radius: 0; background: none; resize: none;
         font: 400 13px/1.7 var(--mono);
         white-space: pre-wrap; overflow-wrap: break-word; overflow-y: auto;
         overflow-x: hidden; }

/* The measuring copy. Every property that affects wrapping must match .kb-md
   exactly — font, padding, width, word-breaking — or the numbers drift. It is
   not `display: none`, because a hidden element has no geometry to measure. */
.kb-mirror { position: absolute; top: 0; left: -99999px;
             visibility: hidden; pointer-events: none;
             padding: 12px 14px; box-sizing: border-box;
             font: 400 13px/1.7 var(--mono);
             white-space: pre-wrap; overflow-wrap: break-word; }
.kb-mirror .mrow { min-height: 1.7em; }
.kb-md:focus { outline: none; box-shadow: none; }
.kb-md[readonly] { color: var(--muted); }
.kb-caret { color: var(--muted); font-size: 11.5px; }
.kb-tools .sp { margin-left: auto; }

.kb-tabs { flex: none; display: flex; gap: 2px; padding: 12px 16px 0; }
.kb-tabs button { flex: 1; background: none; border-bottom: 2px solid transparent;
                  border-radius: 0; padding: 8px 4px; color: var(--muted);
                  font: 500 12.5px/1 var(--sans); }
.kb-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.kb-tabbody { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; }
.kb-tabbody[hidden] { display: none; }

.kb-flags { background: var(--warn-bg); border: 1px solid var(--warn-line);
            border-radius: 12px; padding: 12px 15px; margin: 14px 0; }
.kb-flags.ok { background: var(--card); border-color: var(--hair); }
.kb-flags .k, .kb-chunks .k, .kb-tabbody > .k, #kbVer .k {
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; }
/* Each flag is a link into the line it names. Finding line 340 by eye in a
   900-line guideline is the most tedious part of the job. */
.kb-flags .flag { display: grid; grid-template-columns: max-content minmax(0,1fr);
                  gap: 3px 10px; width: 100%; text-align: left; background: none;
                  border-radius: 8px; padding: 6px 8px; margin-left: -8px;
                  font: 400 12.5px/1.6 var(--mono); color: var(--ink); }
.kb-flags .flag:hover { background: var(--bubble); }
.kb-flags .flag .ln { color: var(--muted); font-size: 11px; }
.kb-flags .flag .ft { grid-column: 2; }

.fm { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 14px; }

.chunkrow { border-bottom: 1px solid var(--hair); font-size: 13px; }
.chunkrow:last-child { border-bottom: 0; }
.chunkrow summary { display: flex; gap: 10px; align-items: baseline;
                    padding: 8px 0; cursor: pointer; }
.chunkrow summary::marker, .chunkrow summary::-webkit-details-marker { content: ""; display: none; }
.chunkrow .ci { flex: none; width: 2.5ch; color: var(--muted); font-size: 11px; }
.chunkrow .cp { flex: 1; min-width: 0; color: var(--muted); word-break: break-word; }
.chunkrow .cc { flex: none; color: var(--muted); font-size: 11px; }
.chunkrow[open] .cp { color: var(--ink); }
.cpre { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px;
        background: var(--bubble); color: var(--muted);
        font: 400 12px/1.6 var(--mono); white-space: pre-wrap; }

#kbVer { margin-top: 16px; }
#kbVer pre { white-space: pre-wrap; font: 400 12.5px/1.6 var(--mono);
             background: var(--card); border: 1px solid var(--hair);
             border-radius: 12px; padding: 13px 15px; margin: 0; }

dialog.review .dlg-foot { flex-wrap: wrap; }
dialog.review .dlg-foot .dlg-msg { padding: 0; min-height: 0; margin-left: 6px; }

/* Below this the two panes stop being two panes. The editor keeps the height —
   it is the thing being read — and the checks sit under it. */
@media (max-width: 1000px) {
  dialog.review[open] { height: 96vh; }
  .kb-panes { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto;
              overflow-y: auto; }
  .kb-pane-edit { padding: 12px 16px; min-height: 55vh; }
  .kb-pane-side { border-left: 0; border-top: 1px solid var(--hair); }
  .kb-tabbody { overflow: visible; }
}


/* An action that belongs beside a field rather than looking like a control. */
.linkish { background: none; padding: 4px 0 0; color: var(--accent); font-size: 12.5px;
           text-decoration: underline; text-underline-offset: 3px; border-radius: 0; }
.linkish:hover { filter: brightness(1.15); }


/* ---- draft review ------------------------------------------------------ */
.pill.rv-ok      { color: var(--ok-ink); border-color: var(--ok-line); }
.pill.rv-suspect { color: var(--warn-ink); border-color: var(--warn-line); }

.kb-verdict, .kb-fidelity { border-radius: 12px; padding: 13px 16px; margin-bottom: 14px;
                            border: 1px solid var(--hair); }
.kb-verdict.v-ok      { background: var(--ok-bg); border-color: var(--ok-line); }
.kb-verdict.v-suspect { background: var(--warn-bg); border-color: var(--warn-line); }
.kb-fidelity.ok   { background: var(--ok-bg); border-color: var(--ok-line); }
.kb-fidelity.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.kb-verdict .k, .kb-fidelity .k { font: 500 10px/1 var(--mono); letter-spacing: .12em;
                                  text-transform: uppercase; color: var(--muted);
                                  margin-bottom: 8px; }
.kb-verdict .vs, .kb-fidelity .vs { font-size: 13.5px; line-height: 1.55; }
.kb-verdict .vs.muted, .kb-fidelity .vs.muted { color: var(--muted); font-size: 12.5px;
                                                margin-top: 6px; }

.finding { display: grid; grid-template-columns: max-content minmax(0,1fr);
           gap: 4px 12px; margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.finding .sev { font: 500 10px/1.7 var(--mono); letter-spacing: .1em;
                text-transform: uppercase; color: var(--muted); }
.finding .wh { font: 400 12px/1.7 var(--mono); color: var(--muted); }
.finding .wt { grid-column: 1 / -1; }
.finding.sev-high .sev { color: var(--danger); }


/* ---- in-app confirm ---------------------------------------------------- */
dialog.ask { width: min(26rem, calc(100vw - 32px)); }
dialog.ask .dlg-body { padding: 18px 20px; }
dialog.ask .body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
dialog.ask .v { margin-top: 14px; }
dialog.ask .dlg-foot { border-top: 0; padding-top: 0; }
dialog.ask .go.danger { background: var(--danger); color: #fff; }

/* Message beside the buttons rather than at the end of a scrolling body —
   a footer button's result has to be visible from the footer. */
.dlg-msg { padding: 0 20px 16px; min-height: 20px;
           font-size: 13px; line-height: 1.5; color: var(--muted); }
.dlg-msg.bad  { color: var(--danger); }
.dlg-msg.good { color: var(--ok-ink); }
.dlg-msg.busy { color: var(--accent); }
.msg.busy { color: var(--accent); }

/* Something long-running is happening; the text stays readable but clearly
   stale, which is more honest than a spinner over unchanged content. */
.dlg-body.working { opacity: .55; pointer-events: none; }
.dlg-body.working, .msg.busy, .dlg-msg.busy { transition: opacity .2s; }

.fm label .req { font: 500 9px/1 var(--mono); letter-spacing: .1em;
                 text-transform: uppercase; color: var(--muted); opacity: .7;
                 margin-left: 6px; }
.fm input.missing { border-color: color-mix(in srgb, var(--warn-ink) 55%, transparent); }

.kb-orphans { margin-top: 14px; padding: 12px 15px; border-radius: 12px;
              background: var(--warn-bg); border: 1px solid var(--warn-line); }
.kb-orphans[hidden] { display: none; }
.kb-orphans .k { font: 500 10px/1 var(--mono); letter-spacing: .12em;
                 text-transform: uppercase; color: var(--warn-ink); margin-bottom: 7px; }
.kb-orphans .vs { font-size: 13px; line-height: 1.6; color: var(--ink); }
.kb-orphans code { font: 400 12px/1 var(--mono); color: var(--muted); }
.reach { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.reach.none { color: var(--warn-ink); }

/* ---- marketing: pricing and arena --------------------------------------- */
/*
 * Both pages reuse the landing grammar — mono section labels, serif lede, the
 * card and .limit blocks — so they read as the same product rather than as two
 * pages somebody added. Nothing here introduces a colour that is not already a
 * token.
 */

.shell-links { display: flex; gap: 18px; margin-left: 20px; }
.shell-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.shell-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .shell-links { display: none; } }

/* A hero with no second column of its own: these pages lead with the words,
   and Ora sits beside them smaller than on the front door. */
.hero.narrow { grid-template-columns: 1fr auto; gap: 32px; padding: 46px 0 34px; }
.hero.narrow .copy { max-width: 34ch; }
.hero.narrow .portrait { max-width: 150px; }
@media (max-width: 780px) {
  .hero.narrow { grid-template-columns: 1fr; }
  .hero.narrow .portrait { order: -1; justify-self: center; max-width: 120px; }
}

/* -- tiers -- */
.tiers { display: grid; gap: 14px; align-items: start;
         grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tier { position: relative; display: flex; flex-direction: column;
        background: var(--card); border: 1px solid var(--hair);
        border-radius: 16px; padding: 22px 20px 20px; }
/* The chosen plan is raised rather than recoloured: a filled card in the
   accent would fight the character tints the landing page already uses. */
.tier.featured { border-color: var(--accent);
                 box-shadow: 0 0 0 1px var(--accent) inset,
                             0 14px 40px -28px var(--accent); }
.tier-flag { position: absolute; top: -9px; left: 20px; padding: 3px 9px;
             border-radius: 999px; background: var(--accent);
             color: var(--on-accent);
             font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em;
             text-transform: uppercase; }
.tier h3 { margin: 0 0 4px; font: 500 16px/1.3 var(--sans); }
.tier-line { margin: 0 0 16px; font-size: 13px; line-height: 1.55;
             color: var(--muted); }
.tier-price { display: flex; flex-direction: column; gap: 2px;
              padding-bottom: 16px; margin-bottom: 16px;
              border-bottom: 1px solid var(--hair); }
.tier-price strong { font: 300 30px/1.1 var(--serif); }
.tier-price span { font: 400 11px/1.4 var(--mono); letter-spacing: .06em;
                   color: var(--muted); }
.tier-points { margin: 0 0 20px; padding: 0; list-style: none; flex: 1; }
.tier-points li { position: relative; padding-left: 18px; margin: 7px 0;
                  font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tier-points li::before { content: ""; position: absolute; left: 2px; top: 8px;
                          width: 5px; height: 5px; border-radius: 50%;
                          background: var(--accent); opacity: .7; }
.tier .tier-cta { text-align: center; }
.tier-note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }

/* -- faq -- */
.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--hair); }
.faq-item summary { cursor: pointer; padding: 15px 2px;
                    font: 500 14.5px/1.4 var(--sans); list-style: none; }
.faq-item summary::marker, .faq-item summary::-webkit-details-marker {
  content: ""; display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--muted);
                           font: 400 17px/1 var(--mono); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; padding-right: 40px;
              font-size: 14px; line-height: 1.65; color: var(--muted); }

.ask-sec .lede { margin-bottom: 20px; }

/* -- arena -- */
/* The empty state is a paragraph, not a placeholder chart. A leaderboard with
   nothing published has nothing to draw, and drawing something anyway is the
   failure this page is built to avoid. */
.arena-empty { padding: 26px 22px; border: 1px dashed var(--hair);
               border-radius: 16px; }
.arena-empty p { margin: 0 0 8px; font-size: 14px; line-height: 1.6;
                 color: var(--muted); }
.arena-empty p:last-child { margin: 0; }
.arena-empty strong { color: var(--ink); }

.arena-run { background: var(--card); border: 1px solid var(--hair);
             border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.arena-head { display: flex; align-items: baseline; gap: 14px;
              flex-wrap: wrap; margin-bottom: 14px; }
.arena-head h3 { margin: 0; font: 500 15.5px/1.3 var(--sans); }
.arena-sub { margin: 2px 0 0; font: 400 11px/1.4 var(--mono);
             letter-spacing: .06em; color: var(--muted); }
.arena-vs { margin-left: auto; padding: 4px 10px; border-radius: 999px;
            background: var(--bubble); font: 400 11px/1.5 var(--mono);
            color: var(--muted); }
.arena-notes { margin: 0 0 16px; font-size: 13px; line-height: 1.6;
               color: var(--muted); }

.arena-bars { display: grid; gap: 12px; }
.arena-row { display: grid; gap: 12px; align-items: center;
             grid-template-columns: minmax(140px, 15rem) 1fr auto; }
.arena-label strong { display: block; font: 500 13.5px/1.4 var(--sans); }
.arena-label span { display: block; font-size: 12px; line-height: 1.45;
                    color: var(--muted); }
.arena-track { height: 10px; border-radius: 999px; background: var(--bubble);
               overflow: hidden; }
.arena-fill { height: 100%; border-radius: 999px; background: var(--muted);
              opacity: .55; }
/* The leader is marked by the run's own numbers, not by which row it is. If a
   competitor wins, the competitor's bar is the one in the accent. */
.arena-row.lead .arena-fill { background: linear-gradient(90deg,
                              var(--accent), var(--accent-2)); opacity: 1; }
.arena-row.lead .arena-num strong { color: var(--ink); }
.arena-num { text-align: right; min-width: 4.5rem; }
.arena-num strong { display: block; font: 400 17px/1.2 var(--serif);
                    color: var(--muted); }
.arena-num span { font: 400 10.5px/1.4 var(--mono); color: var(--muted); }
@media (max-width: 640px) {
  .arena-row { grid-template-columns: 1fr auto; }
  .arena-track { grid-column: 1 / -1; }
}

.arena-cfg { margin-top: 16px; }
.arena-cfg summary { cursor: pointer; font: 400 11.5px/1.5 var(--mono);
                     letter-spacing: .05em; color: var(--muted); }
.arena-cfg pre { margin: 10px 0 0; max-height: 260px; overflow: auto; }

/* ---- evals: the two faces ---------------------------------------------- */
/*
 * A full-width switch, not a pill in the corner. There are exactly two faces
 * and the strip should say so from across the room, which a pair of small
 * buttons does not.
 *
 * The indicator is its own element so flipping is one transform rather than
 * two colour changes — it slides, which tells you the faces are side by side
 * rather than stacked. Layout is a 2-column grid and the slide is 50% wide, so
 * the two agree without either knowing the other's width.
 */
.ev-faces { position: relative; display: grid; grid-template-columns: 1fr 1fr;
            margin-top: 20px; padding: 4px; gap: 0;
            border: 1px solid var(--hair); border-radius: 16px;
            background: var(--bubble); }
/* Percentages on an absolutely positioned box resolve against the padding box,
   so this is exactly one column wide and translateX(100%) lands it exactly on
   the other one. */
.ev-faces-slide { position: absolute; z-index: 0; top: 4px; bottom: 4px;
                  left: 4px; width: calc((100% - 8px) / 2); border-radius: 12px;
                  background: var(--raised); border: 1px solid var(--hair);
                  box-shadow: 0 2px 10px -6px rgba(0,0,0,.5);
                  transition: transform .3s cubic-bezier(.4,0,.2,1); }
.ev-faces[data-face="versus"] .ev-faces-slide { transform: translateX(100%); }
.ev-faces button { position: relative; z-index: 1; border: 0; background: none;
                   cursor: pointer; padding: 11px 16px; border-radius: 12px;
                   text-align: left; color: var(--muted);
                   transition: color .3s ease; }
.ev-faces button b { display: block; font: 500 14px/1.4 var(--sans); }
/* The subtitle explains what the face is for, which is the difference between
   a switch you understand and one you press to find out. */
.ev-faces button em { display: block; font: 400 11.5px/1.4 var(--sans);
                      font-style: normal; opacity: .75; }
.ev-faces button.on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .ev-faces-slide { transition: none; }
}
@media (max-width: 560px) { .ev-faces button em { display: none; } }

.ev-embedbar { display: flex; justify-content: flex-end; align-items: center;
               gap: 10px; margin-top: 8px; }

/* -- picking models -- */
/* Every rule below resets text-transform and letter-spacing, because bare
   `label` is styled globally as an uppercase mono form caption and neither of
   those is part of the `font` shorthand — a label used as a container inherits
   them silently, which is exactly how these cards first rendered as a column
   of shouting. */
.vs-toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0 16px; }
.vs-toolbar input[type="search"] { flex: 1; min-width: 0; }
.vs-count { font: 400 11.5px/1.5 var(--mono); color: var(--muted);
            white-space: nowrap; }

.vs-family { margin-bottom: 16px; }
.vs-family-head { display: flex; align-items: center; gap: 10px;
                  margin-bottom: 8px; }
.vs-family-head h3 { order: 0; margin: 0; font: 400 10.5px/1.5 var(--mono);
                     letter-spacing: .12em; text-transform: uppercase;
                     color: var(--muted); }
/* A hairline rule to the edge, so the eye groups the tiles under the name
   without a heavier heading fighting the model names for weight. */
.vs-family-head::after { content: ""; order: 1; flex: 1; height: 1px;
                         background: var(--hair); }
.vs-family-head .vs-all { order: 2; border: 0; background: none; cursor: pointer;
                          padding: 0; color: var(--muted);
                          font: 400 10.5px/1.5 var(--mono);
                          letter-spacing: .12em; text-transform: uppercase; }
.vs-family-head .vs-all:hover { color: var(--accent); }

.vs-models { display: grid; gap: 6px;
             grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
/* Checkboxes need every one of these back. The global `input` rule is written
   for text fields — width:100%, 11px padding, a 12px radius and a card
   background — and a checkbox inheriting it becomes a 300px-wide box that eats
   the whole tile, leaving the label text at zero width outside the border.
   That is what these tiles first rendered as. */
.vs-model input, .vs-mode input {
  width: auto; padding: 0; border-radius: 3px; background: none; border: 0;
  flex: none; accent-color: var(--accent);
}
.vs-model { display: flex; gap: 10px; align-items: center; cursor: pointer;
            margin: 0; padding: 10px 12px; border: 1px solid var(--hair);
            border-radius: 12px; background: var(--card);
            font: 400 13px/1.4 var(--sans); letter-spacing: 0;
            text-transform: none; color: var(--ink);
            transition: border-color .15s ease, background .15s ease; }
.vs-model:hover { border-color: var(--muted); }
/* Selected is a tinted border, never a fill: a grid of twelve filled tiles is
   unreadable and the thing being chosen is a name. */
.vs-model.on { border-color: var(--accent); background: var(--note); }
.vs-model input { margin: 0; }
.vs-model-text { flex: 1; min-width: 0; }
.vs-model strong { display: block; font-weight: 500; }
.vs-model code { display: block; font: 400 10.5px/1.5 var(--mono);
                 letter-spacing: 0; text-transform: none; color: var(--muted);
                 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vs-custom { margin-top: 4px; }
.vs-custom summary { cursor: pointer; color: var(--muted);
                     font: 400 12px/1.5 var(--sans); letter-spacing: 0;
                     text-transform: none; }
.vs-custom-row { display: flex; gap: 8px; margin-top: 10px; }
.vs-custom-row input { flex: 1; }

/* -- what to measure -- */
.vs-modes { display: grid; gap: 8px; margin-bottom: 20px;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.vs-mode { display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
           margin: 0; padding: 14px; border: 1px solid var(--hair);
           border-radius: 14px; background: var(--card);
           font: 400 13px/1.5 var(--sans); letter-spacing: 0;
           text-transform: none; color: var(--ink);
           transition: border-color .15s ease, background .15s ease; }
.vs-mode:has(input:checked) { border-color: var(--accent);
                              background: var(--note); }
.vs-mode input { margin: 2px 0 0; }
.vs-mode strong { display: block; font-weight: 500; margin-bottom: 3px; }
.vs-mode em { display: block; font-style: normal; font-size: 12px;
              line-height: 1.5; color: var(--muted); }
.vs-flag { display: inline-block; margin-top: 8px; padding: 2px 8px;
           border-radius: 999px; background: var(--warn-bg);
           border: 1px solid var(--warn-line); color: var(--warn-ink);
           font: 400 10px/1.7 var(--mono); letter-spacing: 0;
           text-transform: none; }

/* The cost sits above the button, not in a confirm behind it: the run count
   multiplies rather than adds, and a dialog is read after the decision. */
.vs-cost { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px;
           background: var(--bubble); border: 1px solid var(--hair);
           font-size: 13px; line-height: 1.6; color: var(--muted); }
.vs-cost strong { color: var(--ink); }
.vs-actions { display: flex; gap: 14px; align-items: center; }


/* -- head to head: progress per run -- */
/* A queue is mostly waiting, so each row has to say which of the three states
   it is in without being read: waiting, going, finished. Colour carries the
   state and width carries the amount, and the two are independent — a failed
   run stops with a partial bar rather than jumping to full or to zero. */
.vs-prog { display: block; width: 100%; max-width: 140px; height: 6px; border-radius: 999px;
           background: var(--bubble); overflow: hidden; }
.vs-prog-fill { display: block; height: 100%; border-radius: 999px; background: var(--muted);
                transition: width .4s ease; }
/* Queued is flat grey with no fill at all: an empty track reads as "not
   started", where a 0%-wide accent bar reads as "started and stuck". */
.vs-prog.queued .vs-prog-fill { width: 0 !important; }
.vs-prog.running .vs-prog-fill { background: var(--accent); }
.vs-prog.done .vs-prog-fill { background: var(--accent); opacity: .55; }
.vs-prog.failed .vs-prog-fill { background: var(--danger); }
.vs-prog-num { display: block; margin-top: 4px;
               font: 400 10.5px/1.4 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .vs-prog-fill { transition: none; }
}

/* -- head to head: the spend guard -- */
/* One switch, above the models, phrased as what it costs rather than as a
   permission. Locked options stay visible: hiding them means nobody learns the
   expensive ones exist until they go looking for a model that is not there. */
.vs-unlock { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px;
             padding: 12px 14px; border-radius: 12px;
             background: var(--warn-bg); border: 1px solid var(--warn-line);
             cursor: pointer; font: 400 12.5px/1.55 var(--sans);
             letter-spacing: 0; text-transform: none; color: var(--warn-ink); }
.vs-unlock input { width: auto; flex: none; margin: 2px 0 0; padding: 0;
                   border: 0; background: none; border-radius: 3px;
                   accent-color: var(--warn-ink); }

.vs-model.locked { opacity: .48; cursor: not-allowed; }
.vs-model.locked:hover { border-color: var(--hair); }
.vs-tier { margin-left: 6px; font: 400 10px/1 var(--mono); color: var(--warn-ink);
           letter-spacing: .04em; }

/* The face arriving under the switch, moving the way the indicator did. */
@keyframes ev-enter-right {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ev-enter-left {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: none; }
}
.ev-enter-right { animation: ev-enter-right .28s cubic-bezier(.4,0,.2,1) both; }
.ev-enter-left  { animation: ev-enter-left  .28s cubic-bezier(.4,0,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .ev-enter-right, .ev-enter-left { animation: none; }
}

/* -- head to head: per-row controls -- */
.vs-row-act { white-space: nowrap; }
.vs-row-act .linkish { font-size: 12px; }

/* -- head to head: the run list -- */
/* A grid of rows rather than a table, because dragging one and animating its
   neighbours means transforming them, and browsers treat transformed table
   rows inconsistently. Same columns, same look, predictable behaviour. */
.vs-list { display: grid; gap: 2px; }
.vs-head, .vs-run {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 18px minmax(0, 2fr) minmax(0, 1fr)
                         minmax(0, 1.4fr) minmax(0, 1fr) auto;
  padding: 10px 12px;
}
.vs-head { padding-bottom: 6px; border-bottom: 1px solid var(--hair);
           font: 400 10.5px/1.5 var(--mono); letter-spacing: .1em;
           text-transform: uppercase; color: var(--muted); }
.vs-run { border-radius: 12px; border: 1px solid transparent;
          background: var(--card); }
.vs-run + .vs-run { margin-top: 2px; }
.vs-cell { min-width: 0; font-size: 13px; }
.vs-cell code { font: 400 12px/1.4 var(--mono); overflow: hidden;
                text-overflow: ellipsis; white-space: nowrap; display: block; }
/* The second line of every cell: the set, the effort, the timestamp, the
   denominator. Quiet enough that the row still scans as one value per column. */
.vs-cell em { display: block; margin-top: 2px; font-style: normal;
              font: 400 10.5px/1.4 var(--mono); color: var(--muted);
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-acts { display: flex; gap: 10px; justify-content: flex-end; }
.vs-acts .linkish { font-size: 12px; }
.linkish.danger { color: var(--danger); }

/* The grip is the only drag handle: a row that drags from anywhere cannot be
   selected, and its buttons become a lottery. */
.vs-grip { color: var(--muted); cursor: grab; user-select: none;
           text-align: center; line-height: 1; touch-action: none; }
.vs-run:not(.draggable) .vs-grip { cursor: default; }
.vs-run.dragging { cursor: grabbing; z-index: 3; position: relative;
                   border-color: var(--accent); background: var(--raised);
                   box-shadow: 0 12px 30px -14px rgba(0,0,0,.6); }
/* Settling is the drop: the lift comes off over the same time the displaced
   rows took to slide, so nothing snaps. */
.vs-run.settling { transition: box-shadow .2s ease, border-color .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .vs-run, .vs-run.settling { transition: none !important; }
}
@media (max-width: 760px) {
  .vs-head { display: none; }
  .vs-run { grid-template-columns: 18px 1fr auto; row-gap: 6px; }
  .vs-run .vs-cell:nth-child(3), .vs-run .vs-cell:nth-child(4) {
    grid-column: 2 / -1; }
}

.vs-sorts { display: flex; gap: 12px; align-items: baseline; }
.vs-sorts .linkish { font: 400 11px/1.5 var(--mono); letter-spacing: .08em;
                     text-transform: uppercase; }
/* A finished row's grip is quieter than a queued one's: both move, but only
   one of them changes what happens next. */
.vs-run:not([data-status="queued"]) .vs-grip { opacity: .4; }
.vs-run:not([data-status="queued"]) .vs-grip:hover { opacity: 1; }

/* Why the non-retrieval checks failed, by reason. Shown because a run that
   reported a pass count and never said what it was asserting sent somebody
   looking at retrieval for a problem in answer formatting. */
.ev-asserts { margin: 6px 0 14px; padding-left: 18px; font-size: 12.5px;
              line-height: 1.6; color: var(--muted); }
.ev-asserts strong { color: var(--ink); font-weight: 500; }
