/* =========================================================================
   Mentrox cockpit v3 — paper and ink, and the circuit is the layout.

   What changed from v2, and why it is a skin and not a rewrite: the page used
   to be one lit sheet floating on a dark desk. It is now warm paper edge to
   edge, ink on cream, with the panels drawn as cards laid on it and joined by
   thin trace lines with square nodes at the joins. The circuit stopped being
   a picture of a circuit and became the arrangement of the page — which is
   the founder's metaphor taken literally rather than illustrated.

   Single theme, always (D-034). The cockpit ignores the OS setting because
   the object is what it is; a ledger that changes colour with the time of day
   is a website, not an instrument.

   Register discipline, the load-bearing rule here:
     RAIL  — new zone (D-077). Wordmark, one line of the product's voice, the
             nav, and the one sticker on the screen. No status, no count, no
             outcome: there is nothing here for a character to be cute about.
     R1 frame / R0 content — the sheet. The ledger rows, the week, the
             patterns, the profile, account, delete. No character, no motion,
             no accent colour. Cute next to a rolled block reads as mockery
             (design brief §8.2), and that is unchanged by the reskin.

   NOTHING BELOW IS LOAD-BEARING (D-070 §5). Every trace line, every node, the
   brackets around a status and the tint of a card are reinforcement for words
   that are already on the page. Throw this file away and the cockpit still
   says which state everything is in — that is the test the founder's own
   deuteranopia sets, and it is the reason the traces are drawn in keyline and
   the statuses are drawn as WORDS with a bracket painted around them rather
   than as anything the markup would lose.

   Tokens are the measured light "Specimen" pair from
   docs/mentrox/2026-08-22-pasture-color-evidence.md §3 and §6 — every text
   pair ≥4.5:1, every edge ≥3:1, both verified against deuteranopia.
   ========================================================================= */

@font-face { font-family: "Fraunces Variable"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/static/fraunces-var-latin.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/static/plex-sans-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/static/plex-sans-600-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/static/plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/static/plex-mono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/static/archivo-black-400-latin.woff2") format("woff2"); }

:root {
  /* the paper, and now the whole page */
  --field: #F2E7D0;
  --plate: #FCF6E9;
  --paper: #FBFAF5;
  --ink: #221D15;
  --muted: #6B6152;
  --keyline: #877349;
  --action: #A8431C;
  --on-action: #FFFFFF;
  --hay: #A87413;
  --status-done: #005B8F;
  --status-neutral: #4F4638;

  /* the trace: the wire the panels hang on. Decorative, so it may sit under
     the 3:1 edge floor — nothing is delimited by it that its own card border
     does not delimit again. */
  --trace: color-mix(in srgb, var(--keyline) 60%, transparent);
  --node: var(--keyline);

  --t11: 0.6875rem; --t12: 0.75rem; --t14: 0.875rem; --t16: 1rem;
  --t20: 1.25rem; --t25: 1.5625rem; --t31: 1.9375rem; --t39: 2.4375rem;

  --font-display: "Fraunces Variable", Fraunces, Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-vinyl: "Archivo Black", "Arial Black", Impact, sans-serif;

  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s6: 3rem;
  --sheet-w: 56rem;
  --rail-w: 15rem;
  /* the gap the traces are drawn across; one number, two readers */
  --panel-gap: 1.75rem;
  --trace-x: 2rem;
  /* one measure for every card, so the traces run down a straight edge and
     the right edge is a line rather than a ragged accident */
  --panel-w: 46rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t16);
  line-height: 1.5;
  /* the paper's tooth: a flat weave, no gradient, barely there */
  background-image:
    repeating-linear-gradient(90deg, rgba(34,29,21,.013) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(34,29,21,.009) 0 1px, transparent 1px 4px);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.012em;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 40;
  background: var(--ink); color: var(--paper);
  padding: var(--s1) var(--s2); font-family: var(--font-mono); font-size: var(--t14);
}
.skip-link:focus { left: var(--s2); top: var(--s2); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }

/* The `<symbol>` sprite every glyph and the mark point at with `<use>`.
   It must stay in the document — `display:none` on the container stops
   `<use>` resolving in some engines — but it must not occupy a line. A
   zero-size inline SVG is still an inline replaced element, so it builds a
   line box one `line-height` tall (24px here) and pushes the page down.
   This lived in a `style` attribute until 2026-08-26, where the cockpit's
   `style-src 'self'` blocked it: the declaration never applied, every page
   carried the phantom 24px, and four CSP errors were logged per load. */
.sprite { position: absolute; }

/* =========================================================================
   The frame: rail beside paper.
   ========================================================================= */
.frame {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: clamp(var(--s3), 4vw, var(--s6));
  max-width: 82rem; margin-inline: auto;
  padding: var(--s4) clamp(var(--s2), 3vw, var(--s4)) var(--s6);
  align-items: start;
}

/* ------------------------------------------------------------- the rail */
/* D-077. Outside the sheet, and the only zone that carries the character.
   Its right edge is the first trace on the page: the wire the whole layout
   hangs from, with a node where the nav joins it. */
.rail {
  position: sticky; top: var(--s4);
  display: grid; gap: var(--s3); justify-items: start;
  padding-right: var(--s3);
  border-right: 1px solid var(--trace);
}
.rail::after {
  content: ""; position: absolute; right: -3px; top: 2.1rem;
  width: 5px; height: 5px; background: var(--node);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .mark { width: 30px; height: 26px; color: var(--ink); flex: 0 0 auto; }
.wordmark {
  font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600; font-size: var(--t25); line-height: 1; letter-spacing: -0.01em;
}
/* the sticker, and the only art outside an R2 screen's own body */
.rail-art {
  width: 100%; max-width: 9.5rem;
  filter: drop-shadow(0 4px 0 rgba(34,29,21,.10)) drop-shadow(0 10px 20px rgba(34,29,21,.14));
}
/* the product's own voice, once, where nothing has been decided yet */
.rail-line {
  font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
  font-style: italic; font-size: var(--t16); line-height: 1.35; color: var(--muted);
  max-width: 13rem;
}
.rail-nav { display: grid; gap: 0.15rem; width: 100%; }
.rail-nav a {
  display: block; position: relative;
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); padding: 0.55rem 0 0.55rem 1.1rem;
}
/* the node on the wire beside every stop, filled for the one you are on —
   and the fill is never the signal: `aria-current` says it to a screen
   reader and the ink weight says it to an eye that sees no colour */
.rail-nav a::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 5px; height: 5px; border: 1px solid var(--node); background: var(--field);
}
.rail-nav a:hover { color: var(--ink); }
.rail-nav a.on { color: var(--ink); font-weight: 500; }
.rail-nav a.on::before { background: var(--ink); border-color: var(--ink); }
.rail-nav a.on::after {
  content: ""; position: absolute; left: 1.1rem; right: 0; bottom: 0.35rem;
  border-bottom: 2px solid var(--ink);
}

/* --------------------------------------------------------- the sheet (R0) */
/* The paper is the page now, so the sheet is a measure and a rhythm rather
   than a plate: no shadow, no peeled corner, nothing floating. `sheet-inner`
   stays exactly what it was — the ledger zone the register sweeps split on. */
main { min-width: 0; }
.sheet { max-width: var(--sheet-w); }
.sheet.narrow { max-width: 42rem; }
.sheet-inner { padding: 0; }

.registry {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
h1 { font-size: clamp(var(--t31), 5vw, var(--t39)); margin-top: 0.35rem; }
.summary { font-family: var(--font-mono); font-size: var(--t14); margin-top: 0.6rem; color: var(--ink); }
.value { margin-top: var(--s2); max-width: 42rem; }
.note { margin-top: var(--s2); font-size: var(--t14); color: var(--muted); max-width: 42rem; }
.note a, .value a { text-decoration-color: var(--keyline); text-underline-offset: 3px; }

/* R0 statement: no colour, no character — a plain sentence in a plain box */
.r0-note {
  margin-top: var(--s2); padding: var(--s2); font-size: var(--t14);
  border: 1px solid var(--keyline); border-radius: 3px;
  background: var(--plate); color: var(--ink); max-width: 42rem;
}

h2.sec { font-size: var(--t20); margin-top: var(--s4); margin-bottom: var(--s1); }

/* =========================================================================
   The circuit — the LAYOUT (v3).

   Cards on the paper, joined by a trace with a square node at each join. All
   of it is pseudo-elements, so none of it reaches the accessibility tree and
   none of it can be mistaken for information: the panels are already in
   document order, and every fact inside them is written.
   ========================================================================= */
.panels { display: grid; gap: var(--panel-gap); margin-top: var(--s3);
           max-width: var(--panel-w); }

/* every panel is a card on the paper */
.panels > * {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--keyline);
  border-radius: 4px;
  padding: var(--s2) var(--s3) var(--s3);
}
.panels > * > .sec:first-child { margin-top: 0; }

/* The trace into each card, and the node where it lands. Every panel gets
   one, the first included — that one runs up into the head of the page,
   which is where the day's own wire starts. */
.panels > *::before {
  content: ""; position: absolute; left: var(--trace-x);
  top: calc(-1 * var(--panel-gap) - 1px); height: var(--panel-gap);
  border-left: 1px solid var(--trace);
}
.panels > *::after {
  content: ""; position: absolute; left: calc(var(--trace-x) - 2px);
  top: -3px; width: 5px; height: 5px; background: var(--node);
}
/* the head of the page joins the first card the same way */
.ledger-head { position: relative; padding-bottom: var(--s1); }

/* --- the now card -------------------------------------------------------- */
.now-title {
  font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: var(--t25); margin-top: 0.35rem;
}
.now-left {
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.now .note { margin-top: 0.5rem; }

/* --- the day: blocks as segments of one wire ----------------------------- */
.circuit { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.ckt { position: relative; padding: 0.85rem 0 0.85rem 2rem; }
/* a long title is the reader's own words and must wrap rather than push the
   paper sideways; `min-width: 0` is what lets it */
.ckt-body { min-width: 0; }
/* the wire itself: one continuous line down the left edge. Open (unanswered)
   segments are drawn broken; a DONE segment is drawn solid — the circuit
   closing. The state word carries the same fact for anyone the line fails. */
.ckt::before {
  content: ""; position: absolute; left: 8px; top: 0; bottom: 0;
  border-left: 2px dashed color-mix(in srgb, var(--ink) 55%, transparent);
}
.ckt-closed::before { border-left: 2px solid var(--ink); }
/* the node: a square joint on the wire per block, filled once it closed */
.ckt-node {
  position: absolute; left: 3px; top: 1.2rem; width: 11px; height: 11px;
  border: 1.6px solid var(--ink); background: var(--plate);
}
.ckt-closed .ckt-node { background: var(--ink); }
.ckt-current .ckt-node { outline: 2px solid var(--ink); outline-offset: 2px; }
.ckt-time {
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.1em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.ckt-title {
  font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: var(--t20); font-weight: 600; margin-top: 0.1rem;
}
.ckt-state {
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.1em;
  color: var(--status-neutral); margin-top: 0.25rem;
}
.ckt-state.inferred { font-style: italic; }
/* The bracketed status of the reference — [DONE], [ROLLED] — drawn rather
   than written: the brackets are punctuation added here and the caps are a
   transform, so the word in the markup stays the ledger's own and the page
   still reads with this file thrown away. */
.state-word { text-transform: uppercase; }
.state-word::before { content: "["; }
.state-word::after { content: "]"; }
/* ONE status carries a hue, and it is the only one that may: done is blue
   because blue is the single hue the founder's deuteranopia reads as its own
   (colour evidence §2). Rolled and split stay neutral ink by ruling rather
   than by omission — giving a rolled block a colour of its own would make it
   a verdict, which D-009 and the design brief both refuse. */
.s-done .state-word { color: var(--status-done); }
.s-rolled .state-word, .s-split .state-word,
.s-pending .state-word { color: var(--status-neutral); }
/* the now marker: a rung across the wire with the time beside it */
.ckt-nowmark { position: relative; padding: 0.15rem 0 0.15rem 2rem; list-style: none; }
.ckt-nowmark::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.6rem;
  border-top: 2px solid var(--ink);
}
.ckt-nowlabel {
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --- block actions: three small quiet buttons, 44px targets -------------- */
.ckt-acts { display: flex; gap: var(--s1); margin-top: 0.5rem; flex-wrap: wrap; }

/* --- the staged plan card (D-073) ---------------------------------------- */
/* Dashed edge, because nothing on it is a commitment until it is locked. */
.plan-card { border-style: dashed; }
.plan-list { list-style: none; margin: var(--s1) 0 0; padding: 0; }
.plan-row {
  display: flex; gap: var(--s2); align-items: baseline; padding: 0.45rem 0;
  font-style: italic;   /* inferred until confirmed, and it looks it */
}
.plan-row + .plan-row {
  border-top: 1px solid color-mix(in srgb, var(--keyline) 35%, transparent);
}
.plan-title { flex: 1 1 auto; min-width: 0; }
.plan-time {
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.1em;
  color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plan-lock { margin-top: var(--s2); }

/* ---------------------------------------------------------------- the week */
/* Seven days are seven days: the strip scrolls inside its own container
   rather than squeezing the counts illegible or pushing the paper sideways. */
.week-scroll { overflow-x: auto; margin-top: var(--s1); }
.week { display: grid; grid-template-columns: repeat(7, 1fr);
        border: 1px solid var(--keyline); border-radius: 3px; min-width: 19rem; }
.wd { padding: var(--s2) 0.4rem; text-align: center; }
.wd + .wd { border-left: 1px solid color-mix(in srgb, var(--keyline) 45%, transparent); }
.wd-name, .wd-count {
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.wd-name { text-transform: uppercase; color: var(--muted); }
.wd-count { color: var(--ink); margin-top: 0.15rem; }
.wd-stack { margin-top: var(--s1); display: flex; flex-direction: column;
            align-items: center; gap: 2px; }
.sq { width: 11px; height: 11px; border: 1.4px solid var(--ink); border-radius: 1px; }
.sq.on { background: var(--ink); }

/* --- the trend ----------------------------------------------------------- */
/* Planned vs done by week. No colour and no library: the planned line is
   dashed, the done line solid, and the sentence underneath says which is
   which in words. */
/* Capped: at full sheet width the 320-unit viBox scales past 2x, the strokes
   fatten, and a flat stretch reads as two floating rules with dead air under
   it. ~420px keeps the drawing at drawing scale. */
.trend { display: block; width: 100%; max-width: 420px; height: auto;
         color: var(--ink); margin-top: var(--s1); }
/* The drawing's parts. What tells the two lines apart — dashed against
   solid — is in the markup, so it survives this file not loading; what is
   here is the ink and the weight of the baseline, which are texture. */
.trend-base { opacity: 0.25; }
.trend-planned, .trend-done { stroke-linecap: round; stroke-linejoin: round; }
.trend-now { color: var(--ink); }
.trend-axis {
  display: flex; justify-content: space-between; max-width: 420px;
  margin-top: 0.15rem;
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.trend-key {
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.08em;
  color: var(--muted); margin-top: 0.35rem; max-width: 42rem;
}

/* --- patterns, as a note somebody pinned up ------------------------------
   The one warm object on the ledger paper: the card sits very slightly off
   square, with a strip of tape across the top corner and a pin through it,
   all of it drawn — no image, no new asset. The copy inside is untouched and
   the statements are the stored ones, never live model text.

   The tilt is small on purpose. It is a note on a wall, not a sticker on a
   scrapbook, and the page it sits on is a record of somebody's week. */
.pat-note {
  transform: rotate(-0.7deg);
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(34,29,21,.06), 0 10px 22px rgba(34,29,21,.10);
}
/* The tape and the pin hang off the heading inside the card, not off the
   card itself: `.panels > *` needs both of its own pseudo-elements for the
   trace and its node, and a note that quietly cut the wire above it would be
   decoration breaking the one thing the layout is supposed to say. */
.pat-note .sec { position: static; }
.pat-note .sec::before, .pat-note .sec::after { pointer-events: none; }
/* the tape: a translucent strip across the top-left corner */
.pat-note .sec::before {
  content: ""; position: absolute; left: -0.9rem; top: 0.9rem;
  width: 5.5rem; height: 1.35rem;
  background: color-mix(in srgb, var(--hay) 22%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--hay) 35%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--hay) 35%, transparent);
  transform: rotate(-24deg);
}
/* the pin: a small disc at the top edge, drawn in keyline ink */
.pat-note .sec::after {
  content: ""; position: absolute; right: 1.4rem; top: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--keyline);
  box-shadow: 0 2px 3px rgba(34,29,21,.35);
}
.patterns { display: grid; }
.pat { display: flex; justify-content: space-between; align-items: baseline;
       gap: var(--s2); padding: 0.7rem 0; }
.pat + .pat { border-top: 1px solid color-mix(in srgb, var(--keyline) 40%, transparent); }
/* the hand in "handwritten": the serif at its softest, one notch larger than
   the body, which is as close to a hand as a page with no new font may get */
.pat-text {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: var(--t20); line-height: 1.3;
}
.pat-basis {
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* ------------------------------------------------------------- controls */
.actions { margin-top: var(--s3); display: flex; align-items: center;
           gap: var(--s2); flex-wrap: wrap; }
.actions .note { margin-top: 0; }

.btn {
  display: inline-block; font-family: var(--font-vinyl); font-size: var(--t12);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--on-action); background: var(--action); border: 2px solid var(--keyline);
  border-radius: 10px; padding: 0.8rem 1.2rem; min-height: 44px; cursor: pointer;
  box-shadow: 0 4px 0 rgba(34,29,21,.20);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(34,29,21,.20); }

.btn-2 {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: var(--t14); text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 3px; padding: 0.65rem 1rem;
  min-height: 44px; background: none; cursor: pointer;
}
.btn-2:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.btn-3 {
  font-family: var(--font-body); font-weight: 600; font-size: var(--t14);
  color: var(--ink); background: none; border: 1.5px solid var(--ink);
  border-radius: 3px; padding: 0.5rem 0.9rem; min-height: 44px; cursor: pointer;
}
.btn-3:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* destructive is solid ink, never red and never terracotta (DESIGN-SPEC §4.3) */
.btn-danger {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: var(--t14); text-decoration: none; color: var(--paper);
  background: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px;
  padding: 0.65rem 1rem; min-height: 44px; cursor: pointer;
}

/* the quiet second button on the 18+ screen. It must be as reachable as the
   other one — an age gate with a hard-to-find "no" is not a gate. */
.btn-quiet {
  display: inline-block; font-family: var(--font-mono); font-weight: 500;
  font-size: var(--t14); text-decoration: none; color: var(--ink);
  background: transparent; border: 1.5px solid var(--ink); border-radius: 3px;
  padding: 0.65rem 1rem; cursor: pointer; margin-left: var(--s1);
}
.btn-quiet:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.stack { display: grid; gap: var(--s3); margin-top: var(--s3); }
.stack > .btn, .stack > .btn-2, .stack > .btn-danger,
.stack > form > .btn { justify-self: start; }
.form { max-width: 40rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s2); }
.inline { display: inline-block; margin-top: var(--s2); }

.field { display: grid; gap: 0.35rem; }
.field label, .label {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .sheet input, .sheet select {
  font-family: var(--font-body); font-size: var(--t16); color: var(--ink);
  background: var(--plate); border: 1px solid var(--keyline);
  border-radius: 2px; padding: 0.6rem 0.7rem; min-height: 44px; width: 100%;
}

/* a fieldset is a card too, on the same paper and by the same rule */
.dial, .meeting {
  border: 1px solid var(--keyline); border-radius: 4px; padding: var(--s2);
  margin: 0; background: var(--plate);
}
.dial legend, .meeting legend { padding: 0 0.4rem; }
.meeting .grid2 { margin-top: var(--s1); }
/* the tone dial: three labelled stops on a rail, semantically radios */
.stop { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem var(--s2);
        align-items: baseline; padding: 0.6rem 0; cursor: pointer; }
.stop + .stop { border-top: 1px solid color-mix(in srgb, var(--keyline) 35%, transparent); }
.stop input { width: 20px; height: 20px; accent-color: var(--ink); grid-row: span 2; }
.stop-name { font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.12em;
             text-transform: uppercase; }
.stop-eg { font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
           font-size: var(--t16); color: var(--muted); grid-column: 2; }

/* switches never signal by colour alone: the word On/Off is always present */
.switch { display: grid; grid-template-columns: auto 1fr; gap: var(--s2);
          align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; }
.switch-ui { width: 44px; height: 24px; border: 1.5px solid var(--ink);
             border-radius: 999px; position: relative; background: var(--plate); }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transition: left 120ms ease-out; }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { left: 22px; background: var(--paper); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--action); outline-offset: 2px; }
.switch-text { font-size: var(--t14); }
.switch-state { display: block; font-family: var(--font-mono); font-size: var(--t11);
                letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.switch-row { display: grid; gap: var(--s1); }

/* the status glyphs, beside every state word */
.g { width: 11px; height: 11px; margin-right: 0.55rem; vertical-align: -1px; }
.g-done { color: var(--status-done); }
/* same ruling as the words beside them: only done is coloured */
.g-rolled, .g-split, .g-pending { color: var(--status-neutral); }
.g.hollow { opacity: .75; }

/* ----------------------------------------------------- empty states (R2) */
.empty { text-align: center; display: grid; justify-items: center; gap: var(--s2); }
.empty-art, .signin-art {
  filter: drop-shadow(0 4px 0 rgba(34,29,21,.10)) drop-shadow(0 12px 24px rgba(34,29,21,.16));
}
.empty .summary { max-width: 34rem; }
.empty + .panels { margin-top: var(--s4); }

/* =========================================================================
   The front door — R2 (D-056)

   Login was R1 ("no character beyond the ink mark; no wit") until 2026-08-26.
   The rule it was borrowing exists to stop a cartoon appearing next to a block
   somebody failed to do — mockery needs a verdict to be cruel about, and this
   screen has none. It is also the screen immediately before /onboarding/1, so
   austere here and warm there reads as two products in a row. The ledger
   screens keep R1/R0 exactly as they were.

   The two doors are one component used twice: same card, same heading, same
   help line underneath, equal columns. Telegram draws its own button inside
   .door-body and may instead print an error there — the card is sized so both
   outcomes look composed.
   ========================================================================= */
.signin {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3); align-items: center;
}
.signin-say { min-width: 0; }
.signin h1 { font-size: clamp(var(--t25), 4.4vw, var(--t39)); max-width: 15ch; }
.signin-lede {
  margin-top: var(--s2); font-size: var(--t20); line-height: 1.45;
  color: var(--ink); max-width: 36ch;
}
/* the one sticker this screen is allowed; same shadow as every other one */
.signin-art { width: 203px; justify-self: end; }

.doors {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--trace);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2) var(--s3);
  align-items: stretch;
}
.door {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s2); background: var(--plate);
  border: 1px solid var(--keyline); border-radius: 4px;
}
.door-name {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
/* The email form is the taller of the two and so sets the pair's height. The
   Telegram side then has room to spare, and what sits in it varies — a widget
   button, the fixture form, or the widget's own error text — so it is centred
   in whatever it is given rather than pinned to the top of a hole. */
.door-body { display: grid; gap: var(--s2); align-content: center;
             flex: 1 1 auto; min-height: 3.5rem; }
.door-form { display: grid; gap: var(--s2); }
.door-form .btn { justify-self: start; }
/* the placeholder is text and is held to the text ratio: --muted is 4.95:1 on
   the field and higher on the lighter plate the input is filled with */
.door-form input::placeholder { color: var(--muted); opacity: 1; }
.door-fallback { font-size: var(--t14); color: var(--muted); }
/* the note sits on the bottom edge of both cards, whatever is above it */
.door-note { font-size: var(--t14); color: var(--muted); }
/* the answer to the one button on this page that does not sign you straight
   in — heavier-edged than the error box, because it is good news, not a fault */
.signin-sent {
  margin-top: var(--s3); padding: var(--s2); max-width: 42rem;
  border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--plate); color: var(--ink);
  font-family: var(--font-mono); font-size: var(--t14); line-height: 1.55;
}
/* "or" is a divider, not a choice — the two rules do the work, the word names it */
.doors-or {
  align-self: center; display: grid; justify-items: center; gap: var(--s1);
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); height: 100%;
  grid-template-rows: 1fr auto 1fr;
}
.doors-or::before, .doors-or::after {
  content: ""; width: 1px; justify-self: center; background: var(--trace);
}
.signin-foot { margin-top: var(--s3); max-width: 38rem; }

code { font-family: var(--font-mono); font-size: var(--t14);
       background: var(--plate); padding: 0.15rem 0.4rem; border-radius: 2px; }

/* consent gates: the bot's own disclosure, then the bot's own button label */
.gate { display: grid; gap: var(--s1); padding: var(--s2) 0; }
.gate + .gate { border-top: 1px solid color-mix(in srgb, var(--keyline) 35%, transparent); }
.gate-text { font-size: var(--t14); max-width: 40rem; }
.gate .switch { margin-top: var(--s1); }

/* =========================================================================
   Onboarding — R2 (D-055)

   Nine screens. Everything here is still the field notebook: the chat preview
   is ink on paper, not a screenshot of Telegram, because pretending to BE
   Telegram on a web page would be the first thing this product lied about.
   ========================================================================= */
.chat {
  list-style: none; padding: var(--s2);
  display: grid; gap: var(--s1); margin: var(--s3) 0;
  max-width: 34rem;
  background: var(--plate);
  border: 1px solid var(--keyline);
  border-radius: 4px;
}
.bub {
  display: grid; gap: 0.3rem;
  font-family: var(--font-mono); font-size: var(--t14);
  line-height: 1.5; color: var(--ink);
  padding: 0.6rem 0.8rem; border-radius: 3px; max-width: 27rem;
}
.bub-who {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.bub-them {
  justify-self: start;
  background: color-mix(in srgb, var(--keyline) 16%, transparent);
  border-left: 3px solid var(--keyline);
}
.bub-you {
  justify-self: end; text-align: right;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-right: 3px solid var(--ink);
}

/* the price. States its terms; it does not press. No countdown, no crossed-out
   number, no "today only" — those are banned by D-055, not merely unused. */
.price-card {
  margin: var(--s3) 0; padding: var(--s3);
  background: var(--plate);
  border: 1.5px solid var(--ink); border-radius: 4px;
  max-width: 34rem;
}
.price {
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1;
  color: var(--ink); margin: 0;
}
.price-unit {
  font-family: var(--font-mono); font-size: var(--t14);
  color: var(--muted); margin-left: 0.35rem;
}
.price-terms {
  list-style: none; padding: 0; margin: var(--s2) 0 0;
  display: grid; gap: 0.45rem;
  font-family: var(--font-mono); font-size: var(--t14); color: var(--ink);
}
.price-terms li { padding-left: 1.1rem; position: relative; }
.price-terms li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px; background: var(--ink); border-radius: 1px;
}

/* the closing note. One human, briefly, at the end of a legal corridor. */
.founder {
  margin: var(--s3) auto 0; max-width: 30rem; padding: var(--s2) 0 0;
  border-top: 1px solid var(--trace);
  text-align: left;
}
.founder blockquote {
  margin: 0; font-family: var(--font-mono); font-size: var(--t14);
  line-height: 1.6; color: var(--ink); font-style: normal;
}
.founder figcaption {
  margin-top: 0.6rem; font-family: var(--font-mono); font-size: var(--t12);
  color: var(--muted);
}

/* =========================================================================
   The conversation — R1 (COCKPIT-CHANNEL-PLAN §4, phase 1)

   **Bare, and it stays bare through the reskin.** No card, no trace running
   into it, no tape, no tilt, no sticker — R1 bans decoration around the
   model's own text, and v3's warmth stops at this rule rather than at the
   edge of the founder's patience. The panel gets a rule above it and nothing
   else, exactly as it has had since phase 1.

   Direction is never carried by hue. Three signals state it, and each one
   survives greyscale, deuteranopia, and the stylesheet failing to load at
   all: the side the message sits on, the edge its rule is drawn on, and the
   word "You" or "Mentrox" written above every single message.
   ========================================================================= */
.convo {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--trace);
}
.convo > .sec { margin-top: 0; }

.convo-list {
  list-style: none; margin: var(--s2) 0 0; padding: var(--s2);
  display: grid; gap: 0.85rem;
  background: var(--plate);
  border: 1px solid var(--keyline);
  border-radius: 6px;
}

/* A bubble is a row: the monogram plate, then the bubble body. Only Mentrox
   gets a plate, which is the third signal of direction and the one that is
   geometry rather than hue — the side it sits on and the edge its rule is
   drawn on are the other two, and the who-word above it is what survives this
   file not loading at all (DESIGN-SPEC §7). */
.msg {
  display: flex; align-items: flex-start; gap: 0.5rem;
  max-width: min(31rem, 100%); min-width: 0;
}
.msg-b {
  min-width: 0; display: grid; gap: 0.2rem;
  padding: 0.55rem 0.8rem; border-radius: 10px;
}
/* Mentrox on the left, its rule on the left edge; the person on the right,
   rule on the right. Position and geometry — the tints are texture only, and
   nothing is lost if a reader cannot separate them. */
.msg-out { justify-self: start; }
.msg-out .msg-b {
  background: var(--paper);
  border: 1px solid var(--keyline);
  border-left: 3px solid var(--keyline);
  border-top-left-radius: 3px;
}
.msg-in { justify-self: end; flex-direction: row-reverse; text-align: right; }
.msg-in .msg-b {
  background: var(--sage);
  border: 1px solid var(--sage-edge);
  border-right: 3px solid var(--ink);
  border-top-right-radius: 3px;
}
/* The monogram: a plate with the initial set in the display face. It is
   `aria-hidden` in the markup — the word "Mentrox" is written beside it — and
   it is a letter rather than a face, so R1's ban on character is untouched. */
.msg-mark {
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem; margin-top: 0.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--field); border: 1px solid var(--keyline); color: var(--ink);
  font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600; font-size: var(--t14); line-height: 1;
  -webkit-user-select: none; user-select: none;
}
/* the written half of the signal: who said it, when, and through which channel
   — there is one transcript across channels, so which one is worth saying */
.msg-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.08em;
  line-height: 1.35; text-transform: uppercase; color: var(--muted);
}
.msg-in .msg-meta { justify-content: flex-end; }
.msg-who { color: var(--ink); font-weight: 500; letter-spacing: 0.13em; }
.msg-when, .msg-via { font-variant-numeric: tabular-nums; }
.msg-meta > span + span::before { content: "\00B7\00A0"; }
.msg-text {
  font-family: var(--font-mono); font-size: var(--t14); line-height: 1.55;
  color: var(--ink);
  /* shown exactly as it was typed: a line break the writer put in is part of
     what they said, and collapsing it renders a different message back at them */
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.convo-empty { max-width: 40rem; }

/* --- the waiting row (D-078) --------------------------------------------
   Between pressing Send and the reply landing. THE SENTENCE IS THE SIGNAL:
   "Mentrox is writing…" is written into the row by the script, from a data
   attribute views.py wrote, and announced as a status. The three dots are
   reinforcement and nothing else — the global reduced-motion rule already
   stops every animation on this page, and this one is restated so the
   intention cannot be lost in a later tidy-up (D-070 §5). */
.msg-typing .msg-text {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: var(--t12); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.typing-dots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.typing-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  animation: typing-pulse 1.2s ease-in-out infinite;
}
.typing-dots i:nth-child(2) { animation-delay: 0.18s; }
.typing-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-pulse { 0%, 100% { opacity: 0.28; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .typing-dots i { animation: none; opacity: 0.6; }
}

/* --- the door to the whole conversation ----------------------------------
   A pill, and still a plain link: the clock glyph beside it is a mark on a
   control, never the thing that says where it goes — the words do that. */
.convo-open { margin-top: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--keyline); border-radius: 999px;
  padding: 0.45rem 0.95rem; min-height: 38px;
}
.pill:hover { background: color-mix(in srgb, var(--ink) 7%, var(--paper)); }
.pill .g { margin-right: 0; width: 13px; height: 13px; flex: 0 0 auto;
           color: var(--muted); }

.say { display: grid; gap: var(--s2); margin-top: var(--s3); max-width: 40rem; }
/* the sheet's input rule does not reach a textarea, so it is restated here
   rather than widened — this is the only textarea in the cockpit */
.say textarea {
  font-family: var(--font-body); font-size: var(--t16); color: var(--ink);
  background: var(--plate); border: 1px solid var(--keyline);
  border-radius: 2px; padding: 0.6rem 0.7rem; width: 100%;
  min-height: 5.5rem; resize: vertical;
}
.say textarea::placeholder { color: var(--muted); opacity: 1; }
.say .actions { margin-top: 0; }

/* --- the record control (phase 2) ---------------------------------------
   Hidden in the markup and revealed by cockpit.js only once it has found a
   recorder, a microphone API and a secure context. `[hidden]` is restated
   rather than relied on: the user-agent's rule for it is a bare element
   selector, so any class here that sets `display` would silently outrank it
   and show a control the script has not enabled.

   No new colours. The state is carried by which button is on screen and by
   the word beside it, so this survives greyscale and deuteranopia with the
   stylesheet thrown away — same rule as the transcript above. */
.say-voice[hidden], .say-voice [hidden], .voice-hint[hidden] { display: none; }
.say-voice { display: inline-flex; align-items: center; gap: var(--s2);
             flex-wrap: wrap; }

/* The resting record control: a round icon button, sized to the same 44px
   target every other control on this page has. Its accessible name and its
   tooltip are the sentence the visible label used to be, so nothing was taken
   from a screen reader or from a pointer — and the moment it is pressed the
   labelled stop button and the word "Recording" take over, because a STATE may
   never be carried by an icon alone (D-070 §5). */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto; padding: 0;
  color: var(--ink); background: none;
  border: 1.5px solid var(--ink); border-radius: 50%; cursor: pointer;
}
.btn-icon:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn-icon .g { margin-right: 0; width: 18px; height: 18px; }
.voice-rec {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
}
/* Drawn in the body ink, not in the action colour: this is a state, not an
   invitation, and the accent has no business inside the sheet. The pulse is
   the only motion R1 allows here and it is what a recording indicator is —
   it stops entirely for a reader who has asked for less. */
.voice-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
  background: var(--ink); animation: voice-pulse 1.6s ease-in-out infinite;
}
@keyframes voice-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  .voice-dot { animation: none; }
}
/* The line the script writes into. Empty is the normal state and must take up
   no room, or the panel gains a permanent gap that says nothing. */
.voice-line:empty { display: none; }
.voice-line, .voice-hint { max-width: 40rem; }

/* --- the mentor card ------------------------------------------------------
   Three states, one panel. Every one of them is said in words on the page, so
   nothing below carries meaning on its own: this is spacing and a keyline,
   and the card reads the same with the stylesheet thrown away entirely.

   No sticker, and that is the ruling rather than an omission: R1 bars
   character from sharing the sheet with the ledger, and this card renders in
   the same sheet as the day's rolled and killed blocks. Bunbun's zone is the
   rail (D-077), outside the sheet, where there is no verdict to sit beside. */
.mentor-line {
  margin-top: var(--s4); max-width: 42rem;
  font-size: var(--t14); color: var(--muted);
}
.mentor-lock {
  margin-top: var(--s4); padding: var(--s3);
  border: 1px solid var(--keyline); border-radius: 4px;
  max-width: var(--panel-w); background: var(--plate);
  display: grid; justify-items: start; gap: var(--s1);
}
.mentor-lock .sec { margin-top: 0; }
.mentor-lock .note { margin-top: 0; }
.mentor-next {
  font-family: var(--font-mono); font-size: var(--t14); color: var(--ink);
  margin: 0; font-variant-numeric: tabular-nums;
}
/* The key is a form when it can be spent and a sentence when it cannot. Both
   get the same slot, so the card does not jump between the two states. */
.mentor-key { margin: var(--s1) 0 0; }

/* --- the profile: what Mentrox believes, read back ------------------------
   R0, like Account: no character, no accent colour, no motion. This is a
   record ABOUT somebody, and the whole point of the screen is that it can be
   argued with — so the two controls on each row are plainly controls, at the
   same weight as each other, and neither is dressed up as the safe one.

   Deliberately NOT a pinned note: the patterns card is warm because a pattern
   is an observation offered; a profile row is a claim on file about a person,
   and dressing that as a keepsake would be the page misrepresenting itself. */
.facts { list-style: none; margin: var(--s3) 0 0; padding: 0; max-width: 42rem; }
.fact { padding: var(--s2) 0; }
.fact + .fact {
  border-top: 1px solid color-mix(in srgb, var(--keyline) 35%, transparent);
}
.fact-text { margin: 0; color: var(--ink); max-width: 42rem; }
.fact-when {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono); font-size: var(--t12); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fact-acts { display: flex; gap: var(--s1); align-items: flex-start;
             flex-wrap: wrap; margin-top: 0.6rem; }
/* The edit affordance is a <details>: a disclosure the browser opens on its
   own, keyboard-reachable, and working with scripting switched off. It is
   drawn as the same quiet button as Remove because it is the same size of
   action — the marker is removed so it does not read as a tree node. */
.fact-summary {
  display: inline-block; list-style: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: var(--t14);
  color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px;
  padding: 0.5rem 0.9rem; min-height: 44px; box-sizing: border-box;
}
.fact-summary::-webkit-details-marker { display: none; }
.fact-summary::marker { content: ""; }
.fact-summary:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
/* Opened, the row's editor takes the full width of the row rather than
   sharing it with Remove and squeezing the field to nothing. */
.fact-edit[open] { flex-basis: 100%; }
.fact-form { margin-top: var(--s2); max-width: 40rem; }
.fact-form .note { margin-top: 0.35rem; }
.fact-form .actions { margin-top: var(--s2); }
.fact-remove { margin: 0; }

/* ---------------------------------------------------------- responsive ---
   One column, and the rail folds to a slim strip across the top: wordmark and
   nav only. The sticker and the voice line are the first things to go — a
   phone screen belongs to the day, not to the furniture. Nothing may overflow
   the viewport, so the two wide things (the week strip, the transcript) are
   held to their own containers. */
@media (max-width: 860px) {
  .frame {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3); padding-top: var(--s2);
  }
  .rail {
    position: static;
    grid-auto-flow: column; grid-template-columns: auto 1fr;
    align-items: center; justify-items: start; gap: var(--s2);
    padding: 0 0 var(--s2); border-right: 0;
    border-bottom: 1px solid var(--trace);
  }
  .rail::after { display: none; }
  .rail-art, .rail-line { display: none; }
  .rail-nav {
    display: flex; flex-wrap: wrap; justify-content: flex-end;
    gap: var(--s1) var(--s2); width: auto;
  }
  /* the strip has to stay a strip: the wordmark drops a size and the nav
     tightens, so the day starts on the first screen rather than under two
     rows of furniture */
  .brand .mark { width: 24px; height: 21px; }
  .wordmark { font-size: var(--t20); }
  .rail-nav a {
    font-size: var(--t11); letter-spacing: 0.08em;
    padding: 0.35rem 0 0.35rem 0.7rem;
  }
  .rail-nav a::before { top: 0.8rem; }
  .rail-nav a.on::after { left: 0.7rem; bottom: 0.05rem; }
}

@media (max-width: 720px) {
  .panels > * { padding: var(--s2); }
  .pat { flex-direction: column; gap: 0.2rem; }
  /* the tilt is charming at desk width and cramped on a phone */
  .pat-note { transform: none; }
  .pat-note .sec::before { left: -0.6rem; width: 4.5rem; }
  .wd { padding: var(--s1) 0.15rem; }

  /* The front door folds to one column. The sticker shrinks rather than
     disappears — it is the reason this screen stopped being a bare form — but
     it is kept small enough that the two doors are not pushed a screen and a
     half down on a phone. */
  .signin { grid-template-columns: 1fr; gap: var(--s2); }
  .signin h1, .signin-lede { max-width: none; }
  .signin-lede { font-size: var(--t16); }
  .signin-art { width: 132px; justify-self: center; }

  .doors { grid-template-columns: 1fr; gap: var(--s2); }
  .door-body { min-height: 0; }
  /* the divider turns from a column rule into a row rule */
  .doors-or {
    height: auto; gap: var(--s2);
    grid-template-rows: auto; grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .doors-or::before, .doors-or::after {
    width: auto; height: 1px; justify-self: stretch;
  }

  /* the bubbles keep their sides, but a phone has no room to indent them */
  .msg { max-width: 100%; }
}

/* R0 has no motion at all; the little there is elsewhere goes with this. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}


/* the closing line at the foot of every page (D-077) */
.foot{margin:3rem 0 1rem;font-family:var(--mono,ui-monospace,monospace);
  font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  opacity:.55;text-align:center}

/* =========================================================================
   v3.2 — THE BOARD (D-077, to the founder's reference, literally).

   The rail becomes the dark instrument panel; /today becomes three wired
   columns of cards. Appended after everything above on purpose: these rules
   override the single-column v3 layout by cascade, and removing this block
   returns the previous page intact. Same laws as ever: every trace, node,
   tint and tag is reinforcement for words already on the page (D-070 §5).
   ========================================================================= */

/* ------------------------------------------------------- the dark rail */
/* The mockup's materials, measured off it: a deep blue-green ink for the
   rail, antique gold for its accents, warm tan for the wires on the paper,
   sage for a settled status and amber for the running one. All of it is
   finish — the words carry every state (D-070 §5). */
:root {
  --rail-ink: #1E2926; --rail-paper: #EFE6CF; --rail-dim: #A29A82;
  --gold: #C9A24B;
  --field: #F1E8D3; --plate: #FBF6E8;
  --keyline: #B9A97F;
  --trace: #C2A578; --node: #B08F4B;
  --sage: #DDE0CA; --sage-edge: #A9AE90;
  --amber: #EBD9A2; --amber-edge: #C9AE62;
}
.frame { max-width: 100rem; }
.rail {
  background: var(--rail-ink); color: var(--rail-paper);
  border: 1px solid var(--rail-ink); border-radius: 8px;
  padding: var(--s3) var(--s2) var(--s3) var(--s3);
  min-height: calc(100vh - 2 * var(--s4));
  gap: var(--s2);
  box-shadow: 0 2px 6px rgba(30, 41, 38, .25);
}
/* the mockup decorates the rail's edge with a thin gold circuit frame */
.rail::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(201, 162, 75, .28); border-radius: 5px;
}
.rail::after { display: none; }
.rail .brand .mark { color: var(--gold); }
.rail .wordmark { color: var(--rail-paper); letter-spacing: 0.02em; }
.rail-plate {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-top: -0.6rem;
}
.rail-plate2 {
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rail-dim);
  border: 1px solid rgba(239,230,207,.35); padding: 0.25rem 0.55rem;
  border-radius: 2px;
}
.rail-fig { margin: var(--s1) 0 0; justify-self: center; text-align: center; }
.rail .rail-art { max-width: 10.5rem; margin-inline: auto; }
.rail-name {
  display: block; margin-top: var(--s2);
  font-family: var(--font-mono); font-size: var(--t14); font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--rail-paper);
}
.rail-motto {
  display: block; margin-top: 0.3rem;
  font-family: var(--font-mono); font-size: var(--t11);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rail-dim);
}
.rail .rail-nav { border-top: 1px solid rgba(239,230,207,.25); padding-top: var(--s2); }
.rail .rail-nav a { color: var(--rail-dim); }
.rail .rail-nav a::before { background: var(--rail-ink); border-color: var(--rail-dim); }
.rail .rail-nav a:hover { color: var(--rail-paper); }
.rail .rail-nav a.on { color: var(--rail-paper); }
.rail .rail-nav a.on::before { background: var(--gold); border-color: var(--gold); }
.rail .rail-nav a.on::after { border-bottom-color: var(--gold); }
.rail-cv {
  border-top: 1px solid rgba(239,230,207,.25); padding-top: var(--s2);
  width: 100%; align-self: end;
}
.rail-cv-h {
  font-family: var(--font-mono); font-size: var(--t11); font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.rail .rail-line {
  font-style: normal; color: var(--rail-paper); margin-top: 0.6rem;
  font-size: var(--t14); line-height: 1.5; max-width: none;
}
.rail .rail-line span { display: block; }
.rail-cv-d { width: 100%; max-width: 12rem; height: auto; margin-top: 0.8rem;
  color: var(--rail-dim); }
.rail-cv-d text {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em;
  text-transform: uppercase; fill: var(--rail-dim);
}

/* ------------------------------------------------------------ the board */
.sheet.wide { max-width: none; }
.board {
  /* the middle column carries the day table — the reference gives it the
     widest lane */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  gap: var(--panel-gap); align-items: start; max-width: none;
}
/* day zero: the conversation holds the wide centre; the panels flank it */
.board-day0 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); }
.board-day0 .gcol-b { max-width: 44rem; }
.board > .gcol {
  background: none; border: 0; padding: 0; border-radius: 0;
  display: grid; gap: var(--panel-gap); min-width: 0;
  align-content: start; position: relative;
}
.board > .gcol::before, .board > .gcol::after { display: none; }

/* which children are cards — the conversation is deliberately NOT one (R1) */
.board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead) {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--keyline);
  border-radius: 8px;
  padding: var(--s2) var(--s3) var(--s3);
  box-shadow: 0 1px 2px rgba(34, 29, 21, .05), 0 5px 16px rgba(34, 29, 21, .06);
}
.board .phead { padding: 0.6rem var(--s2); }
.board .plan-card { border-style: dashed; }
.board .convo { background: none; border: 0; padding: 0; }

/* vertical trace between stacked cards in a column — round gold nodes, the
   mockup's wire weight */
.board .gcol > :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead):not(:first-child)::before {
  content: ""; position: absolute; left: var(--trace-x);
  top: calc(-1 * var(--panel-gap) - 1px); height: var(--panel-gap);
  border-left: 1.5px solid var(--trace);
}
.board .gcol > :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead):not(:first-child)::after {
  content: ""; position: absolute; left: calc(var(--trace-x) - 3px);
  top: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--node); border: 1.5px solid var(--plate);
  box-shadow: 0 0 0 1px var(--node);
}
/* the pinned note keeps its pin: its own header pseudos are the tape and
   pin, so its trace is suppressed rather than fought over */
.board .pat-note::before, .board .pat-note::after { content: none; }

/* horizontal feeds from the gaps into columns B and C */
.board .gcol-b::before, .board .gcol-c::before {
  content: ""; position: absolute; left: calc(-1 * var(--panel-gap));
  width: var(--panel-gap); top: 2.4rem; border-top: 1.5px solid var(--trace);
  display: block;
}
.board .gcol-b::after, .board .gcol-c::after {
  content: ""; position: absolute; left: -4px; top: calc(2.4rem - 3px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--node); border: 1.5px solid var(--field);
  box-shadow: 0 0 0 1px var(--node);
  display: block;
}

/* the conversation preview: a bounded excerpt, never the whole scrollback */
.convo[data-preview] .msg-text {
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* …but never the waiting row: it is one short line by construction, and the
   clamp's `-webkit-box` would beat the row's own flex on specificity and leave
   the dots and the sentence touching. Restated here, after the clamp. */
.convo[data-preview] .msg-typing .msg-text {
  display: flex; align-items: center; -webkit-line-clamp: none; overflow: visible;
}
.convo-open { margin-top: var(--s2); }

/* panel headers: small mono caps with a node dot and a rule */
.board :is(.panel, .now, .plan-card, .mentor-lock) > .sec,
.board :is(.panel, .now, .plan-card, .mentor-lock) > .registry:first-child {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 var(--s1); padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--trace);
  font-variation-settings: normal;
}
.board :is(.panel, .now, .plan-card, .mentor-lock) > :is(.sec, .registry:first-child)::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--node); margin-right: 0.55rem;
  vertical-align: 6%;
}
.board .committed {
  font-family: var(--font-mono); font-size: var(--t12); color: var(--muted);
  margin: -0.2rem 0 0.2rem; letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* present moment */
.board .now .now-title { font-size: var(--t31); }
.track { display: block; width: 100%; height: 9px; margin-top: 0.7rem; }
.track-rail { stroke: var(--trace); stroke-width: 2.5; stroke-linecap: round; }
.track-done { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.track-node { fill: var(--hay); stroke: var(--ink); stroke-width: 1; }

/* the day as a ledger table */
.board .circuit { margin-top: 0.2rem; }
.board .ckt { padding: 0.7rem 0 0.7rem 1.7rem; border-bottom: 1px solid var(--trace); }
.board .ckt:last-child { border-bottom: 0; }
.board .ckt::before { top: 0; bottom: 0; }
.board .ckt-body {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto;
  align-items: center; column-gap: var(--s1);
}
.board .ckt-time { font-size: var(--t12); }
.board .ckt-title { margin-top: 0; font-size: var(--t16); }
.board .ckt-state { margin-top: 0; justify-self: end;
  border: 1px solid var(--sage-edge); border-radius: 4px;
  background: var(--sage); padding: 0.18rem 0.55rem;
}
/* an unanswered block's tag stays paper — settled ones wear the sage */
.board :is(.s-pending, .s-in_progress) .ckt-state {
  background: var(--paper); border-color: var(--keyline);
}
.board .ckt-acts { grid-column: 2 / -1; }
.board .ckt-current { background: color-mix(in srgb, var(--amber) 45%, var(--plate)); }
.board .ckt-current .ckt-title { font-weight: 600; }
.board .ckt-current .ckt-state { background: var(--amber); border-color: var(--amber-edge); }
.board .ckt-nowmark { padding-left: 1.7rem; }

/* the week as a table */
.board .week { border: 1px solid var(--trace); border-radius: 3px; }
.board .wd { border-left: 1px solid var(--trace); padding: var(--s1) 0.3rem; text-align: center; }
.board .wd:first-child { border-left: 0; }
.board .wd-name { justify-self: center; }
.board .wd-count { font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: var(--t11); }
.board .wd-stack { justify-content: center; }
.week-total {
  margin-top: var(--s2); padding-top: var(--s1);
  border-top: 1px solid var(--trace);
  font-family: var(--font-mono); font-size: var(--t12); color: var(--muted);
  letter-spacing: 0.05em; font-variant-numeric: tabular-nums;
}

/* direction */
.trend-head {
  font-family: var(--font-display); font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600; font-size: var(--t20); margin: 0.2rem 0 0.1rem;
}
.dirbox { position: relative; padding-right: 4.6rem; }
.trend-scale {
  position: absolute; right: 0; top: 3.4rem; bottom: 3.4rem;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); text-align: right;
}

/* the mentor header strip and its state tag */
.phead {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  margin: 0;
}
.ptag {
  border: 1px solid var(--keyline); border-radius: 3px; background: var(--paper);
  padding: 0.14rem 0.5rem; font-size: var(--t11); letter-spacing: 0.14em;
  color: var(--muted); flex: 0 0 auto;
}
.board .mentor-line { margin: 0; }

/* ---------------------------------------------------------- breakpoints */
@media (max-width: 1250px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .board > .gcol { max-width: var(--panel-w); }
  .board .gcol-b::before, .board .gcol-c::before,
  .board .gcol-b::after, .board .gcol-c::after { display: none; }
}
@media (max-width: 860px) {
  .rail {
    background: var(--rail-ink); border-radius: 4px;
    min-height: 0; padding: var(--s1) var(--s2);
  }
  .rail-plate, .rail-plate2, .rail-fig, .rail-cv { display: none; }
}

/* =========================================================================
   v3.3 — THE CONVERSATION AS A ROOM (D-078).

   /today keeps its preview panel; /conversation becomes the surface the
   founder actually types into, and it gets the measure, the rhythm and the
   composer placement of a room rather than of a panel wedged into a board.

   Still bare, still R1: no card around the transcript, no frame around the
   model's own text. What is added here is spacing, a monogram plate and the
   waiting row — and every one of them is reinforcement for words already on
   the page (D-070 §5).
   ========================================================================= */
.sheet.convo-page { max-width: 46rem; }
.convo-back {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.convo-back a { text-decoration-color: var(--keyline); text-underline-offset: 4px; }
.convo-back a:hover { color: var(--ink); text-decoration-color: var(--ink); }

.convo-page .phead { margin-top: var(--s3); }
/* the room has no rule above the transcript: the page IS the conversation, so
   there is nothing above it for a rule to separate it from */
.convo-page .convo { margin-top: var(--s3); padding-top: 0; border-top: 0; }
.convo-page .convo-list { padding: var(--s3); gap: 1.15rem; }
.convo-page .msg { max-width: min(34rem, 100%); }
.convo-page .msg-b { padding: 0.65rem 0.95rem; }
/* the composer sits at the end of the reading flow — pinned to the flow, never
   fixed over it: a box welded to the bottom of a phone eats the last message on
   the one screen somebody came here to read */
.convo-page .say { margin-top: var(--s4); max-width: none; }
.convo-page .say textarea { min-height: 6.5rem; }

/* the preview panel on the board: tighter, because it is a panel */
.board .convo-list { padding: var(--s2); gap: 0.7rem; }
.board .msg { max-width: 100%; }

/* --------------------------------------------------------- small screens */
@media (max-width: 720px) {
  .convo-list { padding: var(--s1); gap: 0.7rem; }
  .convo-page .convo-list { padding: var(--s2); gap: 0.85rem; }
  .msg, .convo-page .msg { max-width: 100%; }
  .msg-b, .convo-page .msg-b { padding: 0.5rem 0.7rem; }
  .msg-mark { width: 1.45rem; height: 1.45rem; font-size: var(--t12); }
  .msg-meta { gap: 0.3rem; }
  /* Send and the mic on one line, both still 44px, and the line wraps rather
     than pushing the paper sideways at 354px. */
  .say .actions { gap: var(--s1); }
  .say-voice { gap: var(--s1); }
  .sheet.convo-page { max-width: none; }
  .convo-page .say { margin-top: var(--s3); }
  .pill { padding: 0.4rem 0.75rem; letter-spacing: 0.06em; }
}
/* =========================================================================
   v4 - WARM PAPER (2026-09-01, the founder's approved mockup).

   Ain's verdict on v3 drove this: too much text, and the page should LOOK
   rewarding. The answer is finish, not metrics: pillowy cards, big serif,
   gold light on the wire and the week - and none of the counter mechanics
   the LAWS ban, anywhere (LAWS 10, same sweeps as ever). Appended after v3.3
   on purpose: remove this block and the previous page returns intact.
   ========================================================================= */
:root {
  --field: #F5F0E3;
  --plate: #FFFDF6;
  --keyline: #E4D9BF;
  --trace: #D9C08A;
  --node: #C9A24B;
  --gold-soft: #E9D8AC;
  --gold-glow: rgba(201, 162, 75, .45);
  --sage: #E4E7D3; --sage-edge: #B7BC9D;
  --amber: #F2E3B6; --amber-edge: #CDB068;
  --card-shadow: 0 1px 2px rgba(60, 50, 30, .04), 0 10px 30px rgba(60, 50, 30, .07);
}
body { background: var(--field); }
/* the mockup's soft gold wash, top right of the paper */
main { position: relative; }
main::before {
  content: ""; position: absolute; top: -2rem; right: -1rem;
  width: 34rem; height: 22rem; pointer-events: none;
  background: radial-gradient(closest-side, rgba(222, 189, 118, .28), rgba(222, 189, 118, 0));
  filter: blur(6px);
}
main > * { position: relative; }

/* ------------------------------------------------------------- the cards */
.board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead) {
  border-radius: 18px;
  border: 1px solid var(--keyline);
  box-shadow: var(--card-shadow);
  padding: var(--s3);
}
.board .phead { border-radius: 14px; padding: 0.65rem var(--s2); }
.board .plan-card { border-style: solid; }
.sheet, .sheet.wide { background: none; border: 0; box-shadow: none; }
.sheet-inner { padding-top: var(--s2); }

/* softer section heads: the node dot stays, the hard rule goes quiet */
.board :is(.panel, .now, .plan-card, .mentor-lock) > .sec,
.board :is(.panel, .now, .plan-card, .mentor-lock) > .registry:first-child {
  border-bottom: 1px solid color-mix(in srgb, var(--keyline) 70%, transparent);
  letter-spacing: 0.2em;
}

/* ---------------------------------------------------------- the greeting */
.ledger-head.greet { border-bottom: 0; margin-bottom: var(--s1); }
.greet-h {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80, "WONK" 0;
  font-weight: 560; font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0; letter-spacing: -0.01em;
}
.greet-line {
  margin-top: 0.45rem; font-family: var(--font-display); font-style: italic;
  font-size: var(--t16); color: #A07E2F;
}
.greet-star { color: var(--node); font-style: normal; margin-right: 0.15rem; }
.greet .registry { margin-top: 0.6rem; color: var(--muted); }
.summary { color: var(--muted); }

/* ------------------------------------------------------------- the rail */
.rail {
  border-radius: 20px;
  padding: var(--s3) var(--s2);
  box-shadow: 0 10px 30px rgba(30, 41, 38, .28);
}
.rail::before { inset: 10px; border-radius: 14px; }
/* the arch behind the portrait - drawn, not baked into the art */
.rail-fig { position: relative; padding: 1.1rem 0.9rem 0.9rem; }
.rail-fig::before {
  content: ""; position: absolute; inset: 0 0.4rem 1.6rem;
  border: 1px solid rgba(201, 162, 75, .5);
  border-radius: 999px 999px 14px 14px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 162, 75, .16), rgba(201, 162, 75, .03) 70%);
  pointer-events: none;
}
.rail .rail-art { position: relative; max-width: 9.8rem; }
/* the gold nameplate */
.rail-name {
  position: relative; display: inline-block; margin-top: 0.9rem;
  background: linear-gradient(180deg, #D8B25E, #B98F3B);
  color: #241C0B; border-radius: 8px; padding: 0.34rem 1rem 0.3rem;
  border: 1px solid #8A6A2B;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .55), 0 2px 5px rgba(0, 0, 0, .35);
  letter-spacing: 0.3em; font-size: var(--t12);
}
.rail-motto { letter-spacing: 0.14em; margin-top: 0.55rem; }
/* pill nav with glyphs */
.rail .rail-nav { display: grid; gap: 0.45rem; padding-top: var(--s2); }
.rail .rail-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  border-radius: 999px; padding: 0.55rem 0.95rem;
  color: var(--rail-dim); border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.rail .rail-nav a::before, .rail .rail-nav a::after { display: none; }
.rail .rail-nav a:hover {
  color: var(--rail-paper); background: rgba(239, 230, 207, .07);
  border-color: rgba(239, 230, 207, .12);
}
.rail .rail-nav a.on {
  background: linear-gradient(180deg, #D8B25E, #BE9440); color: #241C0B;
  border-color: #8A6A2B; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .5), 0 2px 6px rgba(0, 0, 0, .3);
}
.nav-ic { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* --------------------------------------------------------- the day table */
.board .ckt { border-bottom: 1px solid color-mix(in srgb, var(--keyline) 75%, transparent); }
.board .ckt::before { border-left-color: var(--trace); }
.board .ckt-closed::before { border-left: 2px solid var(--node); }
.board .ckt-node {
  border-color: var(--node); background: var(--plate);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-glow) 40%, transparent);
}
.board .ckt-closed .ckt-node {
  background: var(--node);
  box-shadow: 0 0 6px 2px var(--gold-glow);
}
.board .ckt-current .ckt-node {
  outline-color: var(--node);
  box-shadow: 0 0 8px 3px var(--gold-glow);
}
.board .ckt-body { grid-template-columns: 2.6rem 5.2rem minmax(0, 1fr) auto; align-items: center; }
.ckt-ic {
  width: 2.1rem; height: 2.1rem; border-radius: 10px;
  display: grid; place-items: center; float: left; margin-right: 0.5rem;
  background: color-mix(in srgb, var(--gold-soft) 45%, var(--plate));
  border: 1px solid var(--keyline); color: #8A6A2B;
}
.ckt-ic svg { width: 1.05rem; height: 1.05rem; }
.board .ckt-time { color: #8A6A2B; font-weight: 500; }
.board .ckt-title {
  font-family: var(--font-display); font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 0;
  font-size: var(--t16);
}
.board .ckt-state { border-radius: 999px; padding: 0.22rem 0.7rem; }
.board .ckt-current { border-radius: 12px; }

/* the block action buttons: soft pills */
.btn-3 {
  border-radius: 999px;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-3:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(60, 50, 30, .12); }

/* ------------------------------------------------------------- the week */
.board .week { border: 0; display: flex; justify-content: space-between; gap: 0.2rem; }
.board .wd { border-left: 0; display: grid; gap: 0.45rem; justify-items: center; }
.wd-name { color: var(--muted); letter-spacing: 0.1em; }
.dot {
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: color-mix(in srgb, var(--gold-soft) 38%, var(--plate));
  border: 1px solid var(--keyline);
  transition: box-shadow .2s ease;
}
.dot.on {
  background: radial-gradient(circle at 38% 32%, #E2C077, #BE9440);
  border-color: #A98336;
  box-shadow: 0 0 6px 1px var(--gold-glow);
}
.dot.today { box-shadow: 0 0 10px 3px var(--gold-glow), 0 0 0 3px rgba(201, 162, 75, .25); }
.dot.on.today { box-shadow: 0 0 12px 4px var(--gold-glow), 0 0 0 3px rgba(201, 162, 75, .3); }
.board .wd-count { font-size: var(--t11); color: var(--muted); }
.week-total { border-top-color: color-mix(in srgb, var(--keyline) 70%, transparent); }

/* --------------------------------------------------------- pattern chips */
.patterns { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pat {
  display: inline-grid; gap: 0.1rem;
  border: 1px solid var(--keyline); border-radius: 14px;
  background: color-mix(in srgb, var(--sage) 55%, var(--plate));
  padding: 0.5rem 0.85rem;
}
.pat-text { margin: 0; font-size: var(--t14); }
.pat-basis { margin: 0; font-family: var(--font-mono); font-size: var(--t11); color: var(--muted); }

/* ------------------------------------------------- tomorrow, as drafted */
.plan-list { margin: 0.2rem 0 0; padding: 0; list-style: none; }
.plan-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem;
  align-items: baseline; padding: 0.55rem 0.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--keyline) 75%, transparent);
}
.plan-row:last-child { border-bottom: 0; }
.plan-time {
  font-family: var(--font-mono); font-size: var(--t12); font-weight: 500;
  color: #8A6A2B; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.plan-title {
  font-family: var(--font-display); font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 0; font-size: var(--t16);
}

/* ------------------------------------------------------- the gold button */
.btn-2 {
  border-radius: 999px;
  background: linear-gradient(180deg, #D8B25E, #BE9440);
  color: #241C0B; border: 1px solid #8A6A2B;
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .5), 0 2px 6px rgba(60, 50, 30, .18);
  transition: box-shadow .15s ease, transform .15s ease, filter .15s ease;
}
.btn-2:hover {
  transform: translateY(-1px); filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, .5), 0 4px 10px rgba(60, 50, 30, .22);
}
.btn-2:active { transform: translateY(0); }

/* ---------------------------------------------------------- the composer */
.say textarea {
  border-radius: 16px; background: var(--plate);
  border: 1px solid var(--keyline);
  box-shadow: inset 0 1px 3px rgba(60, 50, 30, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.say textarea:focus {
  border-color: var(--node); outline: none;
  box-shadow: inset 0 1px 3px rgba(60, 50, 30, .05), 0 0 0 3px rgba(201, 162, 75, .22);
}
.msg-b { border-radius: 16px; border-color: var(--keyline); }
.msg-out .msg-b { background: color-mix(in srgb, var(--sage) 60%, var(--plate)); border-color: var(--sage-edge); }
.msg-in .msg-b { background: var(--plate); }

/* --------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .rail .rail-nav a, .btn-2, .btn-3, .dot, .say textarea { transition: none; }
  .btn-2:hover, .btn-3:hover { transform: none; }
}

/* ---------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .rail { border-radius: 14px; }
  main::before { display: none; }
  .greet-h { font-size: 1.9rem; }
  .board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note) { border-radius: 14px; padding: var(--s2); }
  .board .ckt-body { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .board .ckt-time { grid-column: 2; }
  .board .ckt-title { grid-column: 2 / -1; }
  .board .ckt-state { grid-column: 3; grid-row: 1; }
  .dot { width: 1.15rem; height: 1.15rem; }
}

/* v4.1: the caption is two lines with different jobs - the nameplate is the
   gold plate, the motto is quiet dim caps underneath, never on the plate */
.rail-cap { display: grid; justify-items: center; gap: 0; margin-top: 0.9rem; }
.rail-cap .rail-name { margin-top: 0; }

/* v4.1: the mockup's tags are soft lowercase words - the brackets and caps
   were v2 instrument finish, retired on the board (the WORD is unchanged) */
.board .ckt-state::before, .board .ckt-state::after { content: none; }
.board .ckt-state {
  text-transform: lowercase; letter-spacing: 0.05em;
  font-size: var(--t12);
}

/* v4.1 continued: the word itself, unbracketed and lowercase on the board */
.board .state-word::before, .board .state-word::after { content: none; }
.board .state-word { text-transform: lowercase; }

/* v4.1: the phone rail is a bar - brand on one line, the four pills in one
   compact row under it, nothing stacked down the screen */
@media (max-width: 860px) {
  .rail { display: block; padding: var(--s2); }
  .rail .brand { margin-bottom: 0.6rem; }
  .rail .rail-nav {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    border-top: 0; padding-top: 0;
  }
  .rail .rail-nav a { padding: 0.45rem 0.8rem; font-size: var(--t12); }
  .rail-cv { display: none; }
}

/* -------------------------------------------------- v4.1 — the partition
   Founder, on the live page: "why is there so much empty space". Two causes,
   both fixed here rather than by shrinking the paper: the conversation column
   was hoarding Patterns and Profile while column A ended two cards in (the
   markup moves them left), and the day table gave its titles a sliver, so
   every row wrapped four lines tall and the board stretched around them. */
.board { grid-template-columns: minmax(0, .92fr) minmax(0, 1.45fr) minmax(0, 1.05fr); }
.board .ckt-body { grid-template-columns: 2.6rem 4.9rem minmax(0, 1fr) auto; }
.board .ckt-time { white-space: nowrap; font-size: var(--t11); }
.board .ckt-title { font-size: var(--t20); line-height: 1.25; }
/* the tag hugs the row's top right instead of stretching the middle */
.board .ckt-state { align-self: center; }
/* Done / Roll it / Skip land under the title, not under the icon gutter */
.board .ckt-acts { grid-column: 3 / -1; margin-top: 0.4rem; }
/* the export door sits quietly at the end of column flow, not as a stray
   gold button floating on empty paper */
.sheet.wide > .actions { margin-top: var(--s2); }
.sheet.wide > .actions .btn-2 {
  background: none; border: 1px solid var(--keyline); color: #8A6A2B;
  box-shadow: none;
}

/* the time cell sizes to its own content — a clipped "09:00-" reading as a
   struck-through time is worse than an uneven left edge */
.board .ckt-body { grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: 0.8rem; }
/* the icon chip is the row's sibling, not a grid cell - the body grid
   holds time, title, tag only */
.board .ckt { display: flex; align-items: flex-start; gap: 0.6rem; }
.board .ckt .ckt-node { flex: 0 0 auto; }
.board .ckt .ckt-ic { float: none; flex: 0 0 auto; margin-right: 0; }
.board .ckt .ckt-body { flex: 1 1 auto; min-width: 0; align-items: center; }
.board .ckt-acts { grid-column: 1 / -1; }
/* pattern chips wrap inside their card instead of running off the paper */
.board .pat { max-width: 100%; min-width: 0; }
.board .pat-text { overflow-wrap: break-word; }
.week-total { white-space: normal; }

/* chips stack in the note: a flex row of unwrappable chips was setting the
   CARD's min-content width and shoving it 120px past its own column */
.board .patterns { flex-direction: column; align-items: stretch; min-width: 0; }
.board .pat { width: auto; }

/* every card yields to its column: a grid item's min-width:auto floor lets
   one long pattern sentence shove its whole card 120px past the track */
.board .gcol > * { min-width: 0; max-width: 100%; }
.pat-basis { white-space: normal; }

/* seven days fit the narrow column without a scrollbar under the dots */
.board .wd { padding: var(--s1) 0.1rem; }
.board .wd-name { font-size: 0.6rem; letter-spacing: 0.06em; }
.board .wd-count { font-size: 0.6rem; letter-spacing: 0; }
.board .wd .dot { width: 1.1rem; height: 1.1rem; }
.board .week { border: 0; }
.board .wd { border-left: 0; }
/* the base strip's 19rem floor was for the v2 stacked squares; seven dots
   need no floor and the floor is what kept a scrollbar under them */
.board .week { min-width: 0; }

/* =========================================================================
   v4.2 — TWO LANES (the mockup's own partition).

   Three columns made the conversation a tall sliver and left the paper half
   empty at the bottom of the short lane. The mockup has two: a wide lane for
   the things you READ (the day, the mentor) and a narrow one for the things
   you GLANCE at (the moment, the week, the patterns, tomorrow, the profile).
   Same cards, same laws, better shapes.
   ========================================================================= */
.board-2col {
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 1.6rem;
}
/* the wide lane's conversation is a WIDE rectangle, never a tall one: the
   bubbles get a comfortable measure and the composer sits across the card */
.board-2col .gcol-wide { min-width: 0; }
.board-2col .gcol-wide .convo { background: none; border: 0; padding: 0; }
.board-2col .gcol-wide .msg { max-width: min(38rem, 88%); }
.board-2col .gcol-wide .say { max-width: none; }
/* Send and the mic ride the end of the composer row, as in the mockup */
.board-2col .gcol-wide .say .actions { justify-content: flex-start; }

/* the side lane's cards are the small square ones from the mockup */
.board-2col .gcol-side .now .now-title { font-size: var(--t25); }
.board-2col .gcol-side .dirbox { padding-right: 4rem; }
.board-2col .gcol-side .trend-scale { top: 3rem; bottom: 3rem; }

/* the horizontal feed wires only make sense between two lanes now */
.board-2col .gcol-c::before, .board-2col .gcol-c::after { display: none; }
.board-2col .gcol-side::before {
  content: ""; position: absolute; left: calc(-1 * 1.6rem);
  width: 1.6rem; top: 2.4rem; border-top: 1.5px solid var(--trace); display: block;
}
.board-2col .gcol-side::after {
  content: ""; position: absolute; left: -4px; top: calc(2.4rem - 3px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--node); border: 1.5px solid var(--field);
  box-shadow: 0 0 0 1px var(--node); display: block;
}

/* the day table gets the mockup's roomier rows in the wide lane */
.board-2col .gcol-wide .ckt { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.board-2col .gcol-wide .ckt-title { font-size: var(--t20); }

@media (max-width: 1100px) {
  .board-2col { grid-template-columns: minmax(0, 1fr); }
  .board-2col .gcol-side::before, .board-2col .gcol-side::after { display: none; }
}

/* the rail's rows size to their content, and the SPARE height collects in one
   place above the circuit-view block. Without this the grid stretched every
   row on a tall screen and the "follow-through mentor" pill rendered as a
   200px empty box — a bordered void nobody drew on purpose. */
.rail { align-content: start; }
.rail > * { align-self: start; }
.rail .rail-cv { margin-top: auto; align-self: end; }

/* -------------------------------------------------- v4.3 — the profile page
   D-082 gave the page three things it did not have: a box to write your own
   fact, a collapsed list of removed ones, and a way to clear the lot. R0
   still — no character, no accent colour on the destructive half. */
.prof-add, .prof-clear { margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--keyline); }
.prof-add .field, .prof-add .actions { margin-top: var(--s2); }
.prof-gone { margin-top: var(--s3); }
.prof-gone > summary { cursor: pointer; padding: 0.4rem 0; }
.prof-gone .fact-text { color: var(--muted); }
/* the removed list is quieter than the live one, and says so without relying
   on the colour to say it — the word "Removed" is the heading above it */
.fact-gone { opacity: .82; }
.prof-clear .btn-3 { border-color: var(--keyline); }

/* ------------------------------------------- v4.4 — pinning and the keep
   D-083. The pin control sits with Edit and Remove; the keep is a quiet
   text button under the person's own message, present only where a post is
   possible. Both stay out of the way until wanted — R1's rule is that
   nothing decorates the model's text, and neither of these touches it. */
.fact-acts { flex-wrap: wrap; }
.msg-keep { margin-top: 0.35rem; }
.msg-keep-btn {
  font-family: var(--font-mono); font-size: var(--t11); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  background: none; border: 0; padding: 0.2rem 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--keyline);
  text-underline-offset: 3px;
}
.msg-keep-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }
.msg-keep-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* =========================================================================
   v5 — THE ALMANAC (2026-09-03, D-103).

   One identity across three surfaces: mentrox.ai, this cockpit, and whatever
   pocket edition comes later. The rule is one line — **Mentrox is printed,
   not lit** — and everything below is that rule applied.

   Appended after v4 on purpose, exactly as v4 was appended after v3.3:
   delete this block and the Warm Paper board returns intact. That property is
   worth more than a tidy file, because it is what makes a skin reversible.

   What this layer removes, and it is deliberate: the gold. Gold light on the
   wire and the week was v4's answer to "make it feel rewarding", and it was
   the founder's own approved mockup, so this is a change to a decision rather
   than a fix to a mistake. The stamp replaces it. A closed block is STAMPED —
   an inked impression, the thing a ledger clerk does when a line is settled —
   and an open one simply has no stamp yet. That is a reward you can feel, it
   is not a score, and it survives deuteranopia without a hue, which gold
   never quite did (a gold node and a cream one differ by lightness alone).

   Two papers, one ink, and no third colour anywhere:
     the SHEET   oat  #EDE4CE printed in #16211E
     the RAIL    night #17231D printed in #EDE4CE
   Both carry the site's own paper textures — the same two PNG tiles the
   almanac prints on — so the surfaces are literally the same stock.
   ========================================================================= */

@font-face {
  font-family: "Bevan";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/bevan-400-latin.woff2") format("woff2");
}

:root {
  /* the stocks */
  --oat: #EDE4CE;
  --oat-dim: #DCD1B5;
  --night: #17231D;

  --field: var(--oat-dim);      /* the gutter the sheet is laid on */
  --plate: var(--oat);          /* every panel is a printed panel */
  --ink: #16211E;
  --muted: #4A5145;             /* 76% ink over oat — 5.6:1, measured */
  --keyline: #16211E;           /* a panel's edge is drawn in ink, as on the site */
  --hair: rgba(22, 33, 30, .22);  /* the rule BETWEEN rows, one step back */

  --rail-ink: var(--night);
  --rail-paper: var(--oat);
  --rail-dim: #A8B5A4;          /* oat stepped back, still 4.5:1 on night */
  --rail-rule: #567262;         /* the site's own night keyline, 3:1 */

  /* Actions are ink. There is no accent hue in this world, which is what
     makes the R0 rule ("no accent colour") trivially true here rather than
     policed. The offset under a button is the press's own, in ink. */
  --action: var(--ink);
  --on-action: var(--oat);
  --press: rgba(22, 33, 30, .30);

  /* Status stops carrying a hue at all. The word is the state, the stamp is
     the fact that it closed, and neither needs a colour to be read. */
  --status-done: var(--ink);
  --status-neutral: var(--muted);

  /* v4 tokens that still have readers; pointed at ink so nothing gilds. */
  --gold: var(--ink);
  --gold-soft: var(--oat);
  --gold-glow: transparent;
  --node: var(--ink);
  --trace: var(--hair);
  --sage: var(--oat); --sage-edge: var(--hair);
  --amber: var(--oat); --amber-edge: var(--hair);
  --card-shadow: none;

  --font-display: "Bevan", "Clarendon", Rockwell, Georgia, serif;
}

/* Bevan is one weight and has no axes. Every Fraunces-era declaration of
   weight or variation has to be undone in one place, or the fallback serif
   renders bold and the page loses its voice the moment the font is late. */
h1, h2, h3, .wordmark, .greet-h, .now-title, .ckt-title, .plan-title,
.rail-line, .stop-eg, .trend-h {
  font-variation-settings: normal;
  font-weight: 400;
  font-style: normal;
}

body {
  background: var(--field) url("/static/grain.png") repeat;
  background-size: 128px 128px;
  color: var(--ink);
}

/* v4's gold wash over the top right of the paper. There is no light in this
   world, so there is nothing to wash. */
main::before { display: none; }

/* ------------------------------------------------------------ the sheet */
/* Panels are printed panels: square, ruled in ink, sitting on the stock with
   no shadow under them. Nothing floats, because nothing is lit. */
.board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead) {
  border-radius: 0;
  border: 1.5px solid var(--keyline);
  box-shadow: none;
  background: var(--plate);
  background-image: url("/static/grain.png");
  background-size: 128px 128px;
  padding: var(--s2) var(--s3) var(--s3);
}
.board .phead { border-radius: 0; padding: 0.6rem var(--s2); }
.board .plan-card { border-style: dashed; }

/* the trace-and-node between cards: this world has no wires */
.panels > *::before, .panels > *::after,
.board-2col .gcol-side::before, .board-2col .gcol-side::after { display: none; }

/* section heads: mono, uppercase, ruled under — the almanac's own label */
.board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note) > .sec,
h2.sec {
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1.5px solid var(--keyline);
  padding-bottom: 0.5rem;
  margin-bottom: var(--s2);
}

/* --------------------------------------------------------- the greeting */
.greet-h {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: none;
}
.greet-line { color: var(--muted); font-style: normal; font-family: var(--font-body); }
.greet-star { display: none; }        /* the mockup has no star, and a star is a mark */
.greet .registry, .summary { color: var(--muted); }

/* ------------------------------------------------------------- the rail */
/* The one dark stock on the screen. Square, ruled in the night keyline, with
   the same tooth the site's night panels carry. */
.rail {
  border-radius: 0;
  border: 1.5px solid var(--rail-rule);
  background: var(--rail-ink) url("/static/tooth.png") repeat;
  background-size: 128px 128px;
  box-shadow: none;
  padding: var(--s3) var(--s2);
}
.rail::before { display: none; }      /* the gold circuit frame */
.rail .brand .mark { color: var(--rail-paper); }
.rail .wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: var(--t25);
}
.rail-plate { color: var(--rail-dim); letter-spacing: 0.22em; }
.rail-plate2 { border-color: var(--rail-rule); border-radius: 0; color: var(--rail-dim); }

/* the arch and the gold nameplate: a printed plate has a ruled edge, not a
   dome of light */
.rail-fig { padding: 0.6rem 0 0; }
.rail-fig::before { display: none; }
.rail .rail-art {
  max-width: 10rem;
  border: 1.5px solid var(--rail-rule);
  filter: none;                       /* v3's drop shadows: nothing floats */
}
.rail-cap { margin-top: 0.7rem; }
.rail-name {
  background: var(--rail-paper);
  color: var(--rail-ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.24rem 0.7rem 0.2rem;
  letter-spacing: 0.24em;
  font-family: var(--font-mono);
  font-size: var(--t11);
}
.rail-motto { color: var(--rail-dim); }
.rail-line { color: var(--rail-dim); font-style: normal; font-family: var(--font-body); }
.rail-cv-h { color: var(--rail-dim); }

/* the nav: a stamped word for where you are, quiet mono for everywhere else */
.rail .rail-nav a {
  border-radius: 0;
  border: 1.5px solid transparent;
  color: var(--rail-dim);
  padding: 0.5rem 0.75rem;
}
.rail .rail-nav a:hover {
  color: var(--rail-paper);
  background: none;
  border-color: var(--rail-rule);
}
.rail .rail-nav a.on {
  background: var(--rail-paper);
  color: var(--rail-ink);
  border-color: var(--rail-paper);
  box-shadow: none;
  font-weight: 500;
}

/* --------------------------------------------------------- the day table */
/* The hour rail: the same device the site prints down its left margin, and
   here it is load-bearing — the times ARE the day. A dotted rule with a tick
   at each block, in place of v4's lit wire and glowing nodes. */
.board .ckt {
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
}
.board .ckt::before {
  border-left: 0;
  width: 2px;
  left: 9px;
  background-image: repeating-linear-gradient(
    to bottom, var(--hair) 0 3px, transparent 3px 9px);
}
.board .ckt-closed::before {
  background-image: none;
  border-left: 2px solid var(--ink);
}
.board .ckt-node {
  width: 11px; height: 2px;
  left: 4px; top: 1.55rem;
  border: 0; border-radius: 0;
  background: var(--ink);
  box-shadow: none; outline: none;
}
.board .ckt-closed .ckt-node { background: var(--ink); box-shadow: none; }
.board .ckt-current .ckt-node { width: 15px; height: 3px; left: 2px; outline: none; box-shadow: none; }
.board .ckt-ic { display: none; }     /* v4's gold icon chip */
.board .ckt-time { color: var(--muted); font-weight: 500; }
.board .ckt-title {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--t20);
  line-height: 1.15;
}

/* THE STAMP. A closed block is stamped; an open one is not, and that
   difference is the whole of the reward. It is a box in ink with the word
   inside it, tilted a degree the way a hand-pressed stamp lands — never a
   colour, never a score, never a count. */
.board .ckt-state {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--t11);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.3rem 0.6rem 0.24rem;
  transform: rotate(-1.4deg);
}
.board .ckt:nth-child(2n) .ckt-state { transform: rotate(1deg); }
.board .ckt-state.inferred { font-style: italic; opacity: .8; }
/* nothing is stamped until it is settled: an unanswered block carries the
   word alone, so the stamp cannot be mistaken for a mark against you */
.board .ckt.s-pending .ckt-state {
  border: 0; padding: 0; transform: none; color: var(--muted);
}
.board .state-word { text-transform: uppercase; }
.board .s-done .state-word, .board .s-rolled .state-word,
.board .s-split .state-word, .board .s-pending .state-word { color: inherit; }
.board .ckt-current { border-radius: 0; }
.ckt-nowlabel { color: var(--muted); }

/* the block actions: small ink-outline buttons, square */
.btn-3 {
  border-radius: 0;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: none;
}
.btn-3:hover { transform: none; box-shadow: none; background: rgba(22, 33, 30, .07); }

/* --------------------------------------------------------------- the week */
/* Squares, not lit dots — and the counts stay, because seven filled circles
   with no numbers is a row that reads like a chain, which is the one shape
   this product is against. */
.dot {
  width: 1.05rem; height: 1.05rem;
  border-radius: 0;
  background: transparent;
  border: 1.5px solid var(--ink);
  box-shadow: none;
  transition: none;
}
.dot.on { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.dot.today, .dot.on.today { box-shadow: none; outline: 1.5px solid var(--ink); outline-offset: 2px; }
.board .wd-count { color: var(--muted); }
.week-total { border-top-color: var(--hair); }
.sq { border-radius: 0; border-color: var(--ink); }

/* ------------------------------------------------------------- patterns */
.pat {
  border-radius: 0;
  border: 1.5px solid var(--hair);
  background: none;
  padding: 0.6rem 0.75rem;
}
.pat-basis { color: var(--muted); }

/* ------------------------------------------------------------- tomorrow */
.plan-time { color: var(--muted); }
.plan-title { font-family: var(--font-display); font-style: normal; font-size: var(--t16); }
.plan-row { border-bottom-color: var(--hair); }

/* -------------------------------------------------------------- buttons */
/* The site's own button: ink face, oat letters, square, with the press's
   offset under it. No gradient, no lift, nothing lit. */
.btn, .btn-2 {
  border-radius: 0;
  background: var(--ink);
  color: var(--on-action);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--press);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform .08s linear, box-shadow .08s linear;
}
.btn:hover, .btn-2:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--press);
  filter: none;
}
.btn:active, .btn-2:active { transform: translate(4px, 4px); box-shadow: none; }
.sheet.wide > .actions .btn-2 {
  background: none; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none;
}

/* --------------------------------------------------------- the composer */
.say textarea, .field input, .field select, .field textarea {
  border-radius: 0;
  background: var(--plate);
  border: 1.5px solid var(--hair);
  box-shadow: none;
  transition: none;
}
.say textarea:focus, .field :is(input, select, textarea):focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: none;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 0; }

/* --------------------------------------------------- the conversation (R1) */
/* Ruled boxes, the way the site typesets a thread — and nothing is drawn
   AROUND the model's text that is not drawn around the person's. What tells
   them apart is the weight of the rule, which is the lightest difference that
   still reads, and the name above each message, which was always there. */
.msg-b {
  border-radius: 0;
  background: var(--plate);
  border: 1px solid var(--hair);
}
.msg-out .msg-b { background: var(--plate); border: 2px solid var(--ink); }
.msg-in .msg-b { background: var(--plate); border: 1px solid var(--hair); }
.msg-mark { color: var(--muted); }

/* --------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-2, .btn-3 { transition: none; }
  .btn:hover, .btn-2:hover, .btn-3:hover { transform: none; }
}

/* ---------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .rail { border-radius: 0; }
  .board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note) {
    border-radius: 0; padding: var(--s2);
  }
  .greet-h { font-size: 1.7rem; }
  .dot { width: 0.95rem; height: 0.95rem; }
}

/* Printing the cockpit should give you the ledger, not a dark rectangle. */
@media print {
  body, .board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note) {
    background: #fff !important; color: #000 !important;
  }
  .rail { background: #fff !important; color: #000 !important; border-color: #000 !important; }
}

/* ------------------------------------------------- v5, the last of the wire
   The trace-and-node grammar was v3's, and v4 kept it: a dotted line running
   between the cards with a filled node where it lands. The almanac has no
   wires — panels sit on the stock and the rules between them are the printed
   ones. These are the pseudo-elements the first v5 pass missed, found by
   walking the rendered page for anything still painting. */
.board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead) > :is(.sec, .registry:first-child)::before,
.board :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead) > :is(.sec, .registry:first-child)::after,
.board .gcol > :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead)::before,
.board .gcol > :is(.panel, .now, .plan-card, .mentor-lock, .pat-note, .phead)::after,
.board .gcol-b::before, .board .gcol-b::after,
.board .gcol-c::before, .board .gcol-c::after,
.pat-note .sec::before, .pat-note .sec::after,
.ledger-head::before, .ledger-head::after {
  content: none;
  display: none;
}

/* the icon chip is hidden, but its glyph still carried v4's gold — a colour
   that cannot paint today is still a colour the next reader has to reason
   about, and `color.py`'s sibling sweep greps the file, not the screen */
.ckt-ic, .ckt-ic svg { color: var(--ink); }

/* --------------------------------------------------- v5.1 — the second pass
   Everything here came from looking at the six pages rendered, not from the
   mockup: the mockup shows one screen and this skin has to hold twelve. */

/* A document page is ONE printed panel on the gutter, which is exactly what
   the site does with its privacy, terms and guide pages. Without this the
   long-form pages read on the dim gutter stock — the darker of the two — for
   no reason, while the board's panels get the bright one. `.wide` is the
   board and keeps its own panels. */
main > .sheet:not(.wide) {
  background: var(--plate) url("/static/grain.png") repeat;
  background-size: 128px 128px;
  border: 1.5px solid var(--keyline);
  padding: var(--s3) clamp(var(--s2), 3vw, var(--s4)) var(--s4);
}

/* The registry line belongs ABOVE the greeting, the way a printed ledger
   heads its page — the mockup puts it there and the markup cannot, because
   the heading has to come first for a screen reader. Order, not markup. */
.ledger-head.greet { display: flex; flex-direction: column; }
.ledger-head.greet > .registry { order: -1; margin: 0 0 0.5rem; }

/* Bevan is a woodtype: superb at a headline, wrong for a sentence somebody
   has to read carefully, and it has no italic at all. Quoted voice lines and
   any long serif text go back to the body face. */
.stop-eg, .rail-line, .greet-line, .pat-text {
  font-family: var(--font-body);
}
.stop-eg { font-style: italic; }

/* the hour rail, readable: the site's own tick spacing, in ink rather than
   in a hairline that vanishes on a bright screen */
.board .ckt::before {
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ink) 45%, transparent) 0 2px,
    transparent 2px 8px);
}

/* the stamp, at the size a stamp is: it is the one moment of finish on the
   page and it was reading as a caption */
.board .ckt-state {
  font-size: var(--t12);
  padding: 0.38rem 0.7rem 0.32rem;
  border-width: 2px;
}

/* switches and the tone dial are instruments, not pills */
.switch-ui { border-radius: 0; }
.switch-ui::after { border-radius: 0; }
.stop { border-radius: 0; }

/* the fieldsets that group settings: printed boxes like everything else */
fieldset { border-radius: 0; border-color: var(--hair); }
legend {
  font-family: var(--font-mono); font-size: var(--t11);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* ---------------------------------------------------- v5.2 — the R2 screens
   The front door, the empty day and the ten onboarding steps. They took the
   site's own engraved plates in place of the Pasture die-cuts (D-103), and a
   plate is a taller drawing than a sticker was — at the sticker's sizing the
   figure filled half the screen and the sentence under it read as a caption.
   Sizing is capped here rather than in the markup so the next swap of art is
   one filename. */
.empty-art, .signin-art {
  filter: none;                  /* a printed plate does not float */
  max-height: 13rem;
  width: auto;
  margin-inline: auto;
}
.signin-art { max-height: 17rem; }

/* the example conversations: the site's typeset transcript, square-ruled */
.bub {
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--t14);
}
.bub-them {
  background: none;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--hair);
}
.bub-you {
  background: none;
  border: 1px solid var(--ink);
  border-right: 3px solid var(--ink);
}

/* ------------------------------------------- v5.3 — the destructive pairing
   Found by looking at /account/delete rather than by reasoning: v5 made the
   primary button a solid ink face, and the destructive one already was one,
   so "Delete account and all data" and "Keep my account" became two identical
   dark slabs side by side. On the one screen where the two choices differ
   most, they looked the same.

   The fix keeps the ruling (destructive is solid ink, never a colour — there
   is no colour here to reach for) and makes the SAFE choice an outline of the
   same size and the same 44px target. An outline is quieter, not suppressed:
   it stays full width, full height and at full contrast, which is the line
   between a hierarchy and a dark pattern (SAF-L7). Scoped by a class on that
   one button rather than by `:has()`, so a browser without `:has()` gets the
   distinction too — the whole point is that it cannot be missed. */
.btn-quiet {
  background: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-quiet:hover { background: rgba(22, 33, 30, .07); transform: none; box-shadow: none; }
.btn-quiet:active { transform: translate(1px, 1px); }

/* the destructive face carries no press offset: it is not a button that
   springs, it is one that ends something */
.btn-danger { box-shadow: none; border-radius: 0; }
