/* ============================================================
   Golden Ticket docs shell — styles
   ------------------------------------------------------------
   Generated by `/lo-docs` from the project's Visor theme. The
   :root token block below is produced by theme_tokens.py from
   visor-themes-private/themes/<theme>/theme.visor.yaml — never
   hand-roll hex or font families here (golden-ticket-docs.md:
   "Fonts + colors from the project theme").

   Regenerate with:  /lo-docs init  (or a future `retheme`)
   ============================================================ */

@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap");

:root {
  --lo-docs-bg: #f5f5f5;
  --lo-docs-surface: #ffffff;
  --lo-docs-text: #F5F5F0;
  --lo-docs-text-muted: rgba(245, 245, 240, 0.62);
  --lo-docs-accent: #fdcfb4;
  --lo-docs-accent-soft: rgba(253, 207, 180, 0.12);
  --lo-docs-border: rgba(245, 245, 240, 0.1);
  --lo-docs-border-strong: rgba(253, 207, 180, 0.55);
  --lo-docs-font-display: "Satoshi", system-ui, sans-serif;
  --lo-docs-font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --lo-docs-font-mono: ui-monospace, Menlo, monospace;
  --surface-page: #f5f5f5;
  --surface-card: #ffffff;
  --surface-selected: rgba(253, 207, 180, 0.16);
  --text-primary: #F5F5F0;
  --text-secondary: rgba(245, 245, 240, 0.62);
  --text-tertiary: rgba(245, 245, 240, 0.62);
  --primary: #fdcfb4;
  --primary-text: #f5f5f5;
  --accent: #fdcfb4;
  --info: #3b82f6;
  --border-default: rgba(253, 207, 180, 0.55);
  --hairline: rgba(245, 245, 240, 0.1);
  --hairline-strong: rgba(253, 207, 180, 0.55);
  --font-display: "Satoshi", system-ui, sans-serif;
  --font-family-heading: "Satoshi", system-ui, sans-serif;
  --brand-logo: url("/docs/brand/honcho-logo-white.svg");
  --brand-logo-aspect-ratio: 1820.7 / 800;
}

/* --- Visor doc-shell hooks (the React/route track) ---------- */
/* The token block above also maps this project's palette onto the Visor
   semantic tokens <DocFrame>/<DocNav> read, and wires `--brand-logo` to the
   theme's real wordmark (integration rules 5-6). It is UNLAYERED, and unlayered
   CSS always beats visor-core's @layer-ed defaults — so the project theme wins
   over the generic dark ramp with no specificity battle.

   `color-scheme: dark` is forced (rule 6) so form controls, scrollbars, and the
   <select> screen picker render dark rather than flashing light UA defaults. */
:root {
  color-scheme: dark;
  /* DocFrame's shell root defaults to `max-width: 75rem` (1200px), which would
     cap the Fidelity Mirror at 1200px and defeat the widescreen compare — the
     panes need every pixel the viewport gives. Release the frame here and let
     each doc set its own measure instead: `.lo-docs-doc` keeps prose at 1200px,
     and `.lo-docs-fid` opts out entirely for the mirror. */
  --doc-frame-max-width: none;
}

/* --- Sticky wrapping nav ----------------------------------- */
.lo-docs-nav {
  position: sticky;
  top: 0;
  z-index: 2147483000;
  background: color-mix(in srgb, var(--lo-docs-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--lo-docs-border);
}

.lo-docs-nav__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;          /* logo + pill row wrap as a whole if needed */
  gap: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
}

.lo-docs-nav__brand {
  flex: 0 0 auto;           /* logo pinned left, never shrinks */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--lo-docs-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lo-docs-text);
  text-transform: lowercase;
  transition: color 0.15s;
}
.lo-docs-nav__brand:hover { color: var(--lo-docs-accent); }

.lo-docs-nav__pills {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;          /* PILLS WRAP — never overflow-x scroll */
  align-items: center;
  gap: 6px;
}

.lo-docs-nav__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lo-docs-nav__pill:hover {
  color: var(--lo-docs-text);
  border-color: var(--lo-docs-border-strong);
}

.lo-docs-nav__pill--hub { color: var(--lo-docs-text); }
.lo-docs-nav__pill--hub::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lo-docs-accent);
  box-shadow: 0 0 8px var(--lo-docs-accent);
}

.lo-docs-nav__pill--active {
  color: var(--lo-docs-accent);
  border-color: var(--lo-docs-border-strong);
  background: var(--lo-docs-accent-soft);
}
.lo-docs-nav__pill--active:hover { color: var(--lo-docs-accent); }

.lo-docs-nav__badge {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid var(--lo-docs-border-strong);
  color: var(--lo-docs-text-muted);
  text-transform: uppercase;
}

@media print {
  .lo-docs-nav { display: none; }
}

/* --- Hub (doc 0) + generated docs body -------------------- */
body.lo-docs-body {
  margin: 0;
  background: var(--lo-docs-bg);
  color: var(--lo-docs-text);
  font-family: var(--lo-docs-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.lo-docs-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.lo-docs-hub__eyebrow {
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lo-docs-accent);
}
.lo-docs-hub__title {
  font-family: var(--lo-docs-font-display);
  /* The theme's display case, when it fixes one (PL-2470). A brand that sets its
     display font in caps means it everywhere the display font is a HEADLINE — and
     nowhere it is not. See the token's note: buttons are Title Case by canon. */
  text-transform: var(--lo-docs-display-transform, none);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}
.lo-docs-hub__lede {
  color: var(--lo-docs-text-muted);
  font-size: 15px;
  max-width: 68ch;
}
.lo-docs-hub__list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 10px;
}
.lo-docs-hub__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  padding: 16px 20px;
  border: 1px solid var(--lo-docs-border);
  border-radius: 14px;
  background: var(--lo-docs-accent-soft);
  transition: border-color 0.15s, transform 0.15s;
}
.lo-docs-hub__item:hover {
  border-color: var(--lo-docs-border-strong);
  transform: translateX(2px);
}
.lo-docs-hub__num {
  font-family: var(--lo-docs-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--lo-docs-accent);
  min-width: 24px;
}
.lo-docs-hub__label {
  font-family: var(--lo-docs-font-display);
  text-transform: var(--lo-docs-display-transform, none);
  font-weight: 600;
  font-size: 16px;
  color: var(--lo-docs-text);
}
.lo-docs-hub__meta {
  margin-left: auto;
  font-family: var(--lo-docs-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-doc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.lo-docs-doc h1 {
  font-family: var(--lo-docs-font-display);
  text-transform: var(--lo-docs-display-transform, none);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.lo-docs-doc .lo-docs-notyet {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px dashed var(--lo-docs-border-strong);
  border-radius: 14px;
  color: var(--lo-docs-text-muted);
  font-family: var(--lo-docs-font-mono);
  font-size: 13px;
}

/* --- Doc 4: Fidelity Mirror (route) ------------------------
   The compare + approve surface. Every colour/font below resolves to the
   project theme's tokens above — never hand-rolled hex.

   Legibility never rides on ONE token. A theme may legitimately resolve
   --lo-docs-accent or --lo-docs-border to something degenerate for this
   shell (Animal's accent maps to a glassy button scrim, rgba(0,0,0,0.4),
   and both its borders to `transparent`), which would render an
   accent-coloured verdict or an accent-filled button invisible. Since this
   surface's whole job is to show a human a verdict and a button, its
   states are carried by --lo-docs-text / --lo-docs-surface (which every
   theme must keep legible against --lo-docs-bg) and differentiated by
   SHAPE and icon; accent is decoration on top, never the message.
   ---------------------------------------------------------- */
/* The mirror is a WIDESCREEN doc: the two panes want every pixel the viewport
   will give them, so this surface deliberately opts out of the shared prose
   measure. Design and built must be comparable at a glance, side by side.

   The same reasoning drops the horizontal padding. `.lo-docs-doc` pads 32px for a
   prose measure the mirror does not use, and <DocFrame>'s own content already pads
   the shell — so the two stacked, indenting the mirror's body 52px while the brand
   above it sat at 20px. Zero the sides and let DocFrame's gutter be the gutter; the
   vertical rhythm is still the shared doc's. */
.lo-docs-fid { max-width: none; padding-left: 0; padding-right: 0; }
.lo-docs-fid__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.lo-docs-fid__head h1 { margin: 0; }
.lo-docs-fid__lede {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--lo-docs-text-muted);
  font-size: 14px;
}
.lo-docs-fid__gates { display: flex; flex-wrap: wrap; gap: 6px; }
.lo-docs-fid__gate {
  font-family: var(--lo-docs-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
  background: transparent;
  padding: 7px 13px;
  border: 1px solid var(--lo-docs-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lo-docs-fid__gate:hover { color: var(--lo-docs-text); background: var(--lo-docs-surface); }
.lo-docs-fid__gate--on {
  color: var(--lo-docs-text);
  border-color: var(--lo-docs-text-muted);
  background: var(--lo-docs-surface);
}
.lo-docs-fid__summary {
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
  margin: 0 0 0 auto;
}

/* Surface stack toolbar (PL-2431 · D5/D7 → PL-2468).
   -------------------------------------------------
   The surface nav is a FULL-WIDTH BLOCK ABOVE the panes, so it spends vertical
   space and never horizontal. PL-2370 shipped it as a 232px left rail, which
   competed with the mirror for the one budget the mirror cannot share: width.
   The two panes ARE the doc — nothing else may take their pixels.

   This row is now the stack's header: its name and its running total. */
.lo-docs-fid__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lo-docs-border);
}
.lo-docs-fid__toolhead {
  font-family: var(--lo-docs-font-display);
  text-transform: var(--lo-docs-display-transform, none);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lo-docs-text);
}

/* The surface stack (PL-2468).
   ---------------------------
   Every surface, stacked, grouped by phase, in journey order. The stack is TALL
   on purpose — a dropdown fit the whole set on one line, and that was the defect:
   coverage you cannot see is coverage you cannot verify. Scrolling is a cheaper
   price than doubt. */
.lo-docs-fid__stack { display: block; margin-top: 4px; }

/* Understated all-caps divider, never a banner: it separates, it does not announce. */
.lo-docs-fid__phasehead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 8px;
  font-family: var(--lo-docs-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__phasehead::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--lo-docs-border);
}
.lo-docs-fid__phasehead span {
  order: 1;
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.lo-docs-fid__phasehead:first-child { margin-top: 14px; }

/* A row is a quiet, wide card — background fill, no hairline outline (W: no borders
   on large cards). The hover lift is 1px and the transition short: this is a nav for
   reading a set at a glance, and restless rows would fight that. */
.lo-docs-fid__row {
  border: none;
  border-radius: 12px;
  background: var(--lo-docs-surface);
  margin-bottom: 6px;
  overflow: hidden;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.lo-docs-fid__row:hover {
  background: var(--lo-docs-accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.28);
}
.lo-docs-fid__row[data-state="open"] {
  background: var(--lo-docs-accent-soft);
  transform: none;
  box-shadow: inset 0 0 0 1px var(--lo-docs-border-strong);
}
/* An out-of-phase row is legible but recessive — it is on the board because an
   invisible screen is a screen nobody notices is missing, not because it is this
   build's question. */
.lo-docs-fid__row[data-status="out_of_phase"] { opacity: 0.62; }
.lo-docs-fid__row[data-status="out_of_phase"]:hover { opacity: 1; }

/* <AccordionTrigger> wraps itself in Radix's <AccordionHeader>, which renders an
   <h3> — so the doc's heading rhythm (margin: 18.72px 0) landed on every row and
   spent 37px of dead height on each of 22. A nav row is not a heading; the doc's
   vertical rhythm has no business here. */
.lo-docs-fid__row > h3 { margin: 0; }

/* These two fight the component's own module, which is why they are qualified by
   the stack: equal specificity would leave the winner to stylesheet ORDER, and a
   CSS-module's position is not something this file gets to know. */
.lo-docs-fid__stack .lo-docs-fid__rowhead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--lo-docs-text);
}
/* The module dims the trigger's text on hover. Here the ROW lifts instead — dimming
   the title of the thing you are pointing at reads as disabled, not as hovered. */
.lo-docs-fid__stack .lo-docs-fid__rowhead:hover { color: var(--lo-docs-text); }
.lo-docs-fid__rowhead:focus-visible {
  outline: 2px solid var(--lo-docs-accent);
  outline-offset: -2px;
}
/* The Visor <AccordionTrigger>'s own caret is the LAST child and rotates on open.
   Give it the muted treatment the row's meta gets; the component owns the motion. */
.lo-docs-fid__rowhead > svg:last-child {
  flex: 0 0 auto;
  color: var(--lo-docs-text-muted);
}

/* The thumbnail: a small, subtly framed picture of the design. Fixed box so every
   row is the same height and the stack scans as a column, not a ragged list.
   120×75 is exactly the renderer's 1200×750 aspect, so the design is never cropped —
   a thumbnail missing its own right edge is a thumbnail of a different screen. */
.lo-docs-fid__thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 75px;
  border-radius: 6px;
  border: 1px solid var(--lo-docs-border);
  background: var(--lo-docs-bg);
  overflow: hidden;
}
.lo-docs-fid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.lo-docs-fid__thumb--empty { color: var(--lo-docs-text-muted); opacity: 0.5; }

.lo-docs-fid__rowid { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.lo-docs-fid__rowtitle {
  font-family: var(--lo-docs-font-display);
  text-transform: var(--lo-docs-display-transform, none);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--lo-docs-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lo-docs-fid__rowsub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lo-docs-fid__rowroute {
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  color: var(--lo-docs-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* A modal has no route of its own — it opens over a host screen. The slug is shown
   dimmer still, so the eye reads it as an identifier rather than a destination. */
.lo-docs-fid__rowroute--none { opacity: 0.6; }
.lo-docs-fid__rowuj {
  font-family: var(--lo-docs-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--lo-docs-text-muted);
  opacity: 0.7;
  flex: 0 0 auto;
}

.lo-docs-fid__rowmeta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: auto; }
.lo-docs-fid__rowcount {
  font-family: var(--lo-docs-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__chip {
  font-family: var(--lo-docs-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--lo-docs-border-strong);
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__rowstatus {
  font-family: var(--lo-docs-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lo-docs-text-muted);
  width: 84px;
}
@media (max-width: 900px) {
  .lo-docs-fid__rowstatus, .lo-docs-fid__rowcount { display: none; }
  .lo-docs-fid__thumb { width: 80px; height: 50px; }
}

/* The compare drops in BENEATH the row header, indented so it reads as "inside"
   this surface rather than as a new section. <AccordionContent> owns the height
   animation; this only sets the inset. */
.lo-docs-fid__rowbody { padding: 0 16px 18px 16px; }
.lo-docs-fid__rowbody > * { padding-left: 18px; }
@media (max-width: 900px) {
  .lo-docs-fid__rowbody { padding: 0 10px 14px 10px; }
  .lo-docs-fid__rowbody > * { padding-left: 0; }
}

/* Shape carries the state, so the list stays readable even where the theme's
   accent is degenerate: filled = pass, hollow = blocking, half = stale. */
.lo-docs-fid__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.lo-docs-fid__dot--pass {
  background: var(--lo-docs-text);
  box-shadow: 0 0 7px var(--lo-docs-accent);
}
.lo-docs-fid__dot--blocking {
  background: transparent;
  border: 1.5px solid var(--lo-docs-text-muted);
}
.lo-docs-fid__dot--stale {
  background: linear-gradient(90deg, var(--lo-docs-text) 0 50%, transparent 50% 100%);
  border: 1.5px solid var(--lo-docs-text);
}
/* Out of phase (PL-2472): dotted and dimmed — deliberately the quietest mark on the board.
   It must never read as pass (filled) OR as blocking (hollow-solid): the screen is real and
   visible, it is simply not this build's question yet. */
.lo-docs-fid__dot--out_of_phase {
  background: transparent;
  border: 1.5px dotted var(--lo-docs-text-muted);
  opacity: 0.7;
}

/* Verdict banner */
.lo-docs-fid__verdict {
  /* The toolbar above sets its own margin-top; without one here the verdict butts
     straight against it and the two surfaces read as one broken box. */
  margin-top: 12px;
  border: 1px solid var(--lo-docs-border);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--lo-docs-surface);
}
.lo-docs-fid__verdict--pass { border-color: var(--lo-docs-text); }
.lo-docs-fid__verdict--stale { border-style: dashed; border-color: var(--lo-docs-text); }
.lo-docs-fid__verdict--out_of_phase {
  border-style: dotted;
  border-color: var(--lo-docs-text-muted);
  background: none;
}
.lo-docs-fid__vhead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lo-docs-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lo-docs-text);
}
.lo-docs-fid__vkind {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--lo-docs-text-muted);
  text-transform: none;
}
.lo-docs-fid__vdetail {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lo-docs-text-muted);
  max-width: 92ch;
}

/* Approve control */
.lo-docs-fid__approve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.lo-docs-fid__label {
  font-family: var(--lo-docs-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__input {
  background: var(--lo-docs-bg);
  border: 1px solid var(--lo-docs-text-muted);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--lo-docs-text);
  font-family: var(--lo-docs-font-body);
  font-size: 13px;
  min-width: 190px;
}
.lo-docs-fid__input:focus {
  outline: 2px solid var(--lo-docs-text);
  outline-offset: 1px;
}
/* Filled with --lo-docs-text on --lo-docs-bg: the one pairing every theme must
   keep legible. An accent fill would vanish under a degenerate accent. */
.lo-docs-fid__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lo-docs-text);
  color: var(--lo-docs-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  font-family: var(--lo-docs-font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.lo-docs-fid__btn:hover:not(:disabled) { opacity: 0.86; }
.lo-docs-fid__btn:disabled { opacity: 0.38; cursor: not-allowed; }
.lo-docs-fid__digest {
  font-family: var(--lo-docs-font-mono);
  font-size: 10.5px;
  color: var(--lo-docs-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lo-docs-fid__hint,
.lo-docs-fid__flash {
  margin: 10px 0 0;
  font-family: var(--lo-docs-font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__flash { color: var(--lo-docs-text); }

/* Gate 16's diff — the drift panel (PL-2812).
   ------------------------------------------
   Sits full-width immediately above the two panes it describes. NOT a third
   column: the panes are the doc, and a rail would take width from the compare
   this evidence is about.
   Its three states are drawn with three DIFFERENT left rules, because they are
   three different claims and the one thing this surface may never do is let
   "nothing was checked" look like "nothing drifted": solid = drift found,
   plain = diffed and clean, dashed = never diffed. As with the verdict banner,
   the emphasis is drawn in TEXT tokens, so a borderless theme cannot erase it. */
.lo-docs-fid__drift {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--lo-docs-border);
  background: var(--lo-docs-surface);
}
.lo-docs-fid__drift--drift { border-color: var(--lo-docs-text); }
.lo-docs-fid__drift--unchecked { border-style: dashed; }
.lo-docs-fid__drifthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--lo-docs-font-display);
  text-transform: var(--lo-docs-display-transform, none);
  font-size: 15px;
  font-weight: 700;
  color: var(--lo-docs-text);
}
.lo-docs-fid__drifthead span {
  font-family: var(--lo-docs-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__driftbadge {
  font-family: var(--lo-docs-font-mono);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  color: var(--lo-docs-text) !important;
  border: 1px solid var(--lo-docs-text-muted);
  border-radius: 6px;
  padding: 2px 7px;
}
.lo-docs-fid__driftdetail {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lo-docs-text-muted);
  max-width: 92ch;
}
.lo-docs-fid__driftlist { margin: 12px 0 0; padding: 0; list-style: none; }
.lo-docs-fid__driftrow {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--lo-docs-border);
}
.lo-docs-fid__driftrole {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--lo-docs-font-mono);
  font-size: 12px;
  color: var(--lo-docs-text);
}
.lo-docs-fid__driftkind,
.lo-docs-fid__driftwaived {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__driftwaived {
  border: 1px dashed var(--lo-docs-text-muted);
  border-radius: 5px;
  padding: 1px 6px;
}
.lo-docs-fid__driftvals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__driftvals code { color: var(--lo-docs-text); word-break: break-all; }
.lo-docs-fid__driftwhy {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lo-docs-text-muted);
  max-width: 92ch;
}
.lo-docs-fid__driftgap,
.lo-docs-fid__waivers { margin-top: 16px; }
.lo-docs-fid__driftgaphead {
  margin: 0;
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lo-docs-text);
}
.lo-docs-fid__drifthow,
.lo-docs-fid__driftfoot {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__driftfoot {
  padding-top: 12px;
  border-top: 1px solid var(--lo-docs-border);
}
.lo-docs-fid__drifthow code,
.lo-docs-fid__driftfoot code {
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  color: var(--lo-docs-text);
}
/* The row's drift chip. Dashed for NOT CHECKED — the same "placeholder, not
   content" affordance the not-yet-built card uses, so an un-diffed row cannot
   be mistaken at a glance for a diffed one. */
.lo-docs-fid__drchip {
  font-family: var(--lo-docs-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--lo-docs-text-muted);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--lo-docs-text-muted);
  white-space: nowrap;
}
.lo-docs-fid__drchip--drift { border-color: var(--lo-docs-text); color: var(--lo-docs-text); }
.lo-docs-fid__drchip--unchecked { border-style: dashed; }

/* THE APPROVED-vs-CURRENT PANEL (PL-2829).
   ----------------------------------------
   Shares every class the drift panel uses — it lives in the same rail, answers a
   sibling question about the same compare, and a second visual vocabulary here
   would read as a second surface rather than a second column of evidence.
   Only the three STATE rules differ, and they follow drift's rule exactly:
   solid = the design changed, plain = compared and identical, dashed = there was
   no before-image to compare. Dashed is the "placeholder, not content"
   affordance again, so NOT RETAINED can never be mistaken for NO CHANGE at a
   glance — the one thing this surface may never do. */
.lo-docs-fid__ddiff--changed { border-color: var(--lo-docs-text); }
.lo-docs-fid__ddiff--not_retained { border-style: dashed; }
.lo-docs-fid__ddchip--changed { border-color: var(--lo-docs-text); color: var(--lo-docs-text); }
.lo-docs-fid__ddchip--not_retained { border-style: dashed; }

/* Compare panes */
/* THE MIRROR (PL-2431).
   --------------------
   Design-left / built-right — two equal columns, UNCONDITIONALLY. There is no
   "--pair" modifier and no single-column default: the frozen contract says both
   panes must be present, and a mirror with one pane is not a mirror. When no
   built surface is configured the right pane holds the explicit "not yet built"
   placeholder card, so the shape survives an empty half.
   1fr 1fr (not auto) keeps the two panes exactly equal — an unequal mirror
   silently misrepresents the compare. minmax(0,…) lets the iframes shrink
   instead of blowing the grid out horizontally. */
.lo-docs-fid__mirror {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

/* The comparison: Gate 16's drift list and the two panes it describes (PL-2830).

   Default is `block` — the drift panel stacks above the mirror exactly as it did
   when PL-2812 shipped it, so every viewport below the rail breakpoint is
   unchanged. This is deliberately the FALLBACK and not a narrow-screen override:
   if the rail rule below is ever deleted, the layout returns to the shipped
   behaviour rather than to a broken grid. */
.lo-docs-fid__compare { display: block; }

/* Above 1600px the surplus width becomes a RAIL instead of a wider paragraph.

   Why a breakpoint and not always: PL-2812's reasoning — "a rail would take width
   from the compare this evidence is about" — is correct wherever width is scarce,
   so the rail only appears where it is not. At 2560px the panes give up ~15% each
   and buy co-visibility: the role-level numbers and both renderings in one glance,
   which is the comparison this whole surface exists to make. Below 1600px they
   keep every pixel they have today.

   `--railed` is applied only when a `drift` panel actually mounts. An older
   payload carries no drift, and a one-child grid would otherwise strand the
   mirror in the narrow rail column. */
@media (min-width: 1600px) {
  .lo-docs-fid__compare--railed {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  /* The mirror sets its own top margin for the stacked case; in the rail the two
     columns must start on the same line or the "beside" claim is only half true. */
  .lo-docs-fid__compare--railed .lo-docs-fid__mirror { margin-top: 24px; }
  .lo-docs-fid__compare--railed .lo-docs-fid__drift { margin-top: 24px; }
  /* Sticky so the evidence survives a long design fragment. A design pane is
     intrinsic-height by design, so it can run far past the viewport; a rail that
     scrolled away with it would put the numbers out of sight exactly when the
     operator reached the part of the render they were checking. */
  .lo-docs-fid__driftrail {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}
/* The narrow fallback — the only place the mirror is allowed to stack. Above
   this width the two panes always sit side by side. */
@media (max-width: 1100px) {
  .lo-docs-fid__mirror { grid-template-columns: minmax(0, 1fr); }
}
.lo-docs-fid__pane { min-width: 0; }

/* "Not yet built" placeholder card — the right pane's empty state. It STATES the
   build gap; it never hides it, and it never makes `final` approvable. */
.lo-docs-fid__notbuilt {
  /* The DASH is the affordance — it says "placeholder, not content" at a glance.
     It is drawn in a TEXT token, not a border token, on purpose: a borderless
     theme (Animal sets border-muted/border-default to `transparent`) would
     otherwise erase the dash and the empty pane would read as a finished card.
     A text colour is legible against the surface by construction on every theme. */
  border: 1px dashed var(--lo-docs-text-muted);
  border-radius: 12px;
  padding: 26px 24px;
  background: var(--lo-docs-surface);
}
.lo-docs-fid__notbuilt-icon { color: var(--lo-docs-text-muted); display: block; }
.lo-docs-fid__notbuilt-head {
  margin: 12px 0 0;
  font-family: var(--lo-docs-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lo-docs-text);
}
.lo-docs-fid__notbuilt-body {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__notbuilt-code {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--lo-docs-border);
  border-radius: 8px;
  background: var(--lo-docs-bg);
  color: var(--lo-docs-text);
  font-family: var(--lo-docs-font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow-x: auto;
}
.lo-docs-fid__notbuilt-foot {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--lo-docs-border);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__panehead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--lo-docs-font-display);
  text-transform: var(--lo-docs-display-transform, none);
  font-size: 15px;
  font-weight: 700;
  color: var(--lo-docs-text);
}
.lo-docs-fid__panehead span {
  font-family: var(--lo-docs-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__figure {
  margin: 0 0 18px;
  border: 1px solid var(--lo-docs-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--lo-docs-surface);
}
.lo-docs-fid__figcap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--lo-docs-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--lo-docs-text-muted);
}
.lo-docs-fid__anchor { color: var(--lo-docs-text); }
.lo-docs-fid__action {
  margin: 6px 0 10px;
  font-size: 13px;
  color: var(--lo-docs-text);
}
.lo-docs-fid__frame {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;   /* the fragment carries its own page background */
  display: block;
}
.lo-docs-fid__frame--built { height: 620px; }
.lo-docs-fid__unresolved {
  border: 1px dashed var(--lo-docs-text-muted);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-family: var(--lo-docs-font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--lo-docs-text-muted);
}

/* SHARED ROWS — the two frames start on the SAME LINE, by construction (PL-2833).
   -------------------------------------------------------------------------------
   The design pane wraps its iframe in chrome the built pane does not have: a
   bordered, padded <figure> carrying a caption row and the step's action line.
   Laid out as two independent stacks, that chrome pushed the design frame ~61px
   BELOW the built one in every row — a compare surface failing its own premise,
   and reported by the operator twice.

   The fix is structural and can only be structural. A matched padding on the
   built side would be a number that is correct until the next time either side's
   chrome moves, which is exactly how this shipped. So the MIRROR owns the rows:
   it declares five named ones, and both panes are `subgrid`s spanning all of
   them. panehead / caption / action / frame occupy the SAME rows on both sides,
   the frame row begins on ONE line, and a caption that wraps to three lines grows
   that row on both sides at once. No text length, on either side, can knock the
   frames out of line — there is no offset to get wrong.

   Where the built pane has no counterpart — the caption and action rows — the
   cell is EMPTY. It holds the row's height and leaves the asymmetry visible; no
   filler is invented to square the two sides, because inventing built-side
   content is a lie about the build.

   The <figure>'s own border, padding and margin are consumed by the FIRST and
   LAST rows it spans (CSS Grid 2: a subgrid's edges take their space from the
   outer tracks it occupies), so its iframe still begins exactly on the frame
   line while its card still reads as one bordered box.

   N > 1 DESIGNS. One screen can carry several design fragments against ONE built
   surface, so only the FIRST has anything to line up with. Only that first
   <figure> is a direct child of the pane and takes the shared rows; the rest are
   wrapped in `.lo-docs-fid__figrest`, which is a single grid item in the last row
   and stacks them in ordinary block flow below the frames. They align with
   nothing, which is the honest shape — there is nothing opposite them.

   The query is the exact complement of the <=1100px stacking rule above. When the
   mirror collapses to one column the panes sit one ABOVE the other and "the same
   line" has no meaning, so below that width they stay the plain blocks they are
   today and none of this applies. */
@media not all and (max-width: 1100px) {
  .lo-docs-fid__mirror {
    grid-template-rows:
      [fid-head] auto
      [fid-figcap] auto
      [fid-action] auto
      [fid-frame] auto
      [fid-rest] auto
      [fid-end];
  }
  .lo-docs-fid__pane {
    display: grid;
    /* Rows come from the mirror; the single column is the pane's own. minmax(0,…)
       for the reason the mirror uses it — a wide frame must shrink rather than
       widen its pane, or the 1fr 1fr equality the compare rests on is gone. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: fid-head / fid-end;
    /* Stated rather than inherited: the mirror sets `align-items: start`, and a
       pane that did not fill its rows could not share them. A subgrid is
       stretched in its subgridded axis by definition; saying so here means the
       layout does not depend on that being remembered. */
    align-self: stretch;
  }
  .lo-docs-fid__pane > .lo-docs-fid__panehead { grid-row: fid-head; }
  .lo-docs-fid__pane > .lo-docs-fid__figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: fid-figcap / fid-rest;
  }
  .lo-docs-fid__pane > .lo-docs-fid__figure > .lo-docs-fid__figcap { grid-row: fid-figcap; }
  .lo-docs-fid__pane > .lo-docs-fid__figure > .lo-docs-fid__action { grid-row: fid-action; }
  .lo-docs-fid__pane > .lo-docs-fid__figure > .lo-docs-fid__frame { grid-row: fid-frame; }
  /* A design the bible never embedded has no frame to line up with, so it takes
     the caption/action/frame rows as one block and says why it is empty. */
  .lo-docs-fid__pane > .lo-docs-fid__unresolved {
    grid-row: fid-figcap / fid-rest;
    align-self: start;
  }
  /* The built side. Its content — the shipped iframe, or the placeholder card
     that stands in for one — starts on the frame line and nowhere else, so the
     law holds in the not-yet-built state as well as against a live surface. */
  .lo-docs-fid__pane > .lo-docs-fid__frame--built { grid-row: fid-frame; }
  .lo-docs-fid__pane > .lo-docs-fid__notbuilt {
    grid-row: fid-frame;
    /* The frame row is as tall as the taller half of the compare. The placeholder
       is a paragraph, not a surface — it says its piece at the top of the row
       rather than stretching a dashed box over the design's full height. */
    align-self: start;
  }
  .lo-docs-fid__figrest { grid-row: fid-rest; min-width: 0; }
}
.lo-docs-fid__foot {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--lo-docs-border);
  font-size: 12.5px;
  color: var(--lo-docs-text-muted);
  max-width: 88ch;
}
