/* Gnomon's own client.
 *
 * The design language is the one the product has had all along, and the three
 * rules that carry it are stated once here rather than repeated per component:
 * one paper, no elevation (surfaces are separated by hairlines, never by lift
 * or shadow), and no radius (a pill is the single exception, and it is 999px
 * rather than something in between).
 *
 * TWO PAPERS, ONE LANGUAGE. For a long time there was no dark variant, on the
 * argument that the paper IS the identity. The owner asked for one, and the
 * honest way to give it is not a second product but the same product on dark
 * paper: every colour below is a token, the dark block redefines every token
 * and nothing else, and the one accent stays the same ochre. If a component
 * needs a colour that is not a token, that is the bug — palette.test.js pins
 * both palettes against the same list so neither can drift from the other. */

@font-face {
  font-family: 'Inter Tight';
  src: url('../font/inter-tight.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* `hidden` beats layout, everywhere.
 *
 * The UA rule for `[hidden]` is `display: none`, which any `display: flex/grid`
 * on a class outranks — so a hidden element kept showing, and five components
 * had each grown their own `.x[hidden] { display: none }` patch. One rule at the
 * root deletes all five and the whole class of bug: the next flex component with
 * a `hidden` attribute is correct without knowing this. */
[hidden] { display: none !important; }

/* THREE TEXT TONES ON LIGHT PAPER, FOUR ON DARK.
 *
 * The light paper is warm and close in value, and it will not carry four
 * readable text tones: measured against `--panel`, `#000` is 15.1:1 and
 * `--ink-muted` is 6.6:1, which leaves room for exactly ONE more tone above
 * the 4.5:1 floor. The old fourth and fifth (`#6f6b66` at 3.8, `#9e978e` at
 * 2.1) were below it — every eyebrow, timestamp and unit in the product was
 * unreadable, and so was the ochre Gnomon speaks in, at 2.0:1.
 *
 * So `--ink-subtle` and `--ink-faint` resolve to the SAME value on light
 * paper. Both names survive because dark paper has the range for four, and
 * because the hierarchy those names describe is real — it is just carried by
 * size, case and tracking (11px uppercase tracked +0.08em against 15px
 * sentence case) rather than by a grey nobody can read. Dark paper keeps four
 * distinct tones.
 *
 * `--ochre` is unchanged: it is the identity, and every MARK drawn in it — the
 * dial's now line, a live dot, a bar — is a shape, not text, so the 4.5:1 floor
 * does not apply. `--ochre-text` is the same accent taken down to a readable
 * value, and it is what every `color:` reaches for. */
:root {
  --page: #f0e9e3;
  --panel: #e3d9ce;
  --ink: #000;
  --ink-muted: #4a4743;
  --ink-subtle: #635f5b;
  --ink-faint: #635f5b;
  --superseded: #c9c2b9;
  --ochre: #d98a2b;
  --ochre-text: #86551b;
  --navy: #002643;
  --green: #056423;
  --border: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.36);
  --divider: rgba(0, 0, 0, 0.08);
  /* The hover wash and the dial's not-yet shadow: the two translucent inks.
     Tokens, so dark paper can wash with light instead of with more black. */
  --wash: rgba(0, 0, 0, 0.045);
  --wash-strong: rgba(0, 0, 0, 0.06);
  /* The board's ground, and the card standing on it: in light the card is the
     lighter paper on a slightly sunken desk; in dark the card is the lifted
     one. Same two names, so a card reads as forward on both papers. */
  --ground: #e9e1d9;
  --card: #f0e9e3;
  /* The ground is paper, and paper is never one flat value: a fine weave, a lit
     corner, and a far corner falling away. Three translucent tokens rather than
     three colours, so the same four gradients draw a light sheet and a dark one. */
  --paper-fibre: rgba(0, 0, 0, 0.014);
  --paper-lit: rgba(255, 255, 255, 0.72);
  --paper-shade: rgba(0, 0, 0, 0.055);
  /* One easing and three durations. A component that invents its own timing is
     a bug — the whole product should move like one thing. */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Dark paper. Warm, not black — the same grain as the light paper, turned down.
   Ink and paper swap roles; the ochre stays, a shade brighter so it carries the
   same weight against the darker ground; navy becomes a blue that can be seen.
   Two selectors, one block: the system's preference unless the owner has
   chosen, and the owner's choice when they have. */
:root[data-theme='dark'],
:root:not([data-theme='light']):where(.dark-by-system) { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page: #1b1917;
    --panel: #26231f;
    --ink: #f0e9e3;
    --ink-muted: #cfc7bd;
    --ink-subtle: #a8a097;
    --ink-faint: #8f8982;
    --superseded: #4a4640;
    --ochre: #e6a04a;
    --ochre-text: #e6a04a;
    --navy: #8fbbe8;
    --green: #5cc27a;
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.4);
    --divider: rgba(255, 255, 255, 0.09);
    --wash: rgba(255, 255, 255, 0.05);
    --wash-strong: rgba(255, 255, 255, 0.08);
    --ground: #1b1917;
    --card: #232019;
    /* Dark paper is lit from the same corner, far more faintly: on a near-black
       ground a white wash reads as haze long before it reads as light. */
    --paper-fibre: rgba(255, 255, 255, 0.016);
    --paper-lit: rgba(255, 255, 255, 0.05);
    --paper-shade: rgba(0, 0, 0, 0.42);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --page: #1b1917;
  --panel: #26231f;
  --ink: #f0e9e3;
  --ink-muted: #cfc7bd;
  --ink-subtle: #a8a097;
  --ink-faint: #8f8982;
  --superseded: #4a4640;
  --ochre: #e6a04a;
  --ochre-text: #e6a04a;
  --navy: #8fbbe8;
  --green: #5cc27a;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.4);
  --divider: rgba(255, 255, 255, 0.09);
  --wash: rgba(255, 255, 255, 0.05);
  --wash-strong: rgba(255, 255, 255, 0.08);
  --ground: #1b1917;
  --card: #232019;
  --paper-fibre: rgba(255, 255, 255, 0.016);
  --paper-lit: rgba(255, 255, 255, 0.05);
  --paper-shade: rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}
:root[data-theme='light'] { color-scheme: light; }

/* ── The glass ────────────────────────────────────────────────────────────
   How much a card frosts what is behind it, as ONE token every blurring
   surface reaches for — the head, the tool row, the ghost, a notice, a walk,
   and the card in front. The owner sets it in Settings or from Find, and it is
   kernel state like the paper, so every open tab agrees.

   `off` is `none`, not `blur(0px)`: a zero blur still makes the browser keep a
   backdrop layer and re-sample it on every frame, and that sampling was the
   board's hottest cost. Off has to actually cost nothing. */
:root { --glass-blur: blur(14px) saturate(1.1); }
:root[data-blur='soft'] { --glass-blur: blur(6px) saturate(1.05); }
:root[data-blur='off'] { --glass-blur: none; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; letter-spacing: inherit; color: inherit; }

/* ── The shell ───────────────────────────────────────────────────────────
   A rail, a canvas that scrolls, and an input bar that never leaves. The bar
   is in the grid rather than floating over the canvas, so nothing is ever
   hidden behind it. */
.shell {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'floor';
  height: 100%;
  /* Paper over paper: the head, the cards, the tools and the chat are the same
     paper, thinned; blur is spent only where a reading sits, and how much of it
     is the owner's switch (see `--glass-blur` at the top of this sheet). */
  --glass: color-mix(in srgb, var(--card) 72%, transparent);
  --head-h: 0px;
}
/* `overflow: clip`, not hidden: the folded chat sits past the right edge, and a
   focus() inside it must not be able to scroll the page after it. */
.floor { grid-area: floor; position: relative; min-height: 0; display: grid; overflow: clip; }

/* ── The rail ────────────────────────────────────────────────────────────*/
.rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 18px 22px 16px;
}
.rail-head { display: flex; align-items: center; gap: 8px; padding: 0 6px 12px; }
.mark { display: inline-flex; color: var(--ochre-text); }
.rail-title { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }

.rail-row { display: flex; gap: 6px; }
.new {
  flex: 1;
  height: 32px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.new:hover { background: var(--wash-strong); }

/* The conversation, pinned. Deliberately NOT a `.session` row: the point is
   that the owner can tell at a glance which of these is the colleague they
   talk to and which are disposable questions, so it differs in weight, in
   border, and in carrying a presence dot and a last-said line that a thread
   row never has. */
.companion {
  display: block;
  width: 100%;
  margin-top: 12px;
  /* A left rule rather than a box, and no radius: the sheet's whole look is
     hairlines and square corners (guarded by palette.test.js). Weight comes
     from the standing rule on the left, which is the mark's own shape. */
  border: 0;
  border-left: 2px solid var(--ink-faint);
  background: var(--wash);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.companion:hover { background: var(--wash-strong); }
.companion[aria-current='true'] { background: var(--panel); border-left-color: var(--ink); }
.companion-line { display: flex; align-items: center; gap: 7px; }
.companion-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
/* Lit when the thread is live, hollow when it is not. Presence is the one thing
   a colleague has that a transcript does not. */
.companion-dot { width: 6px; height: 6px; border: 1px solid var(--ink-faint); flex: none; }
.companion-dot[data-live='true'] { background: var(--green); border-color: transparent; }
.companion-said {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-faint);
}
.companion-meter { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.companion-bar { flex: 1; height: 3px; background: var(--divider); overflow: hidden; }
.companion-fill { display: block; height: 100%; width: 0; background: var(--ink-faint); transition: width 240ms ease; }
/* Past the point dsh compacts, the bar stops being neutral. Not an alarm — a
   compaction is normal and lossless-ish — but the owner should be able to see
   that the next turn is carrying a summary rather than the whole exchange. */
.companion-fill[data-over='true'] { background: var(--ochre); }
.companion-tokens { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-faint); }

/* Attached images, waiting in the composer. Square like everything else. */
.attached { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 2px 8px; }
.attached-chip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--divider); padding: 3px 4px 3px 3px; }
.attached-thumb { width: 30px; height: 30px; object-fit: cover; display: block; }
.attached-name { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.attached-drop { border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; }
.attached-drop:hover { color: var(--ink); }
.attached-note { font-size: 12.5px; color: var(--ink-muted); }

/* A chip that is currently the filter. Inverted rather than outlined: the
   sheet has no radius and no lift, so weight is the only signal available. */
.act.act-on { background: var(--ink); color: var(--page); }

.companion-acts { display: flex; gap: 6px; margin-top: 6px; }
.companion-acts .foot-act { flex: 1; }

/* Names the list for what it holds, now that the conversation is not in it. */
.rail-label {
  padding: 16px 6px 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rail-list { flex: 1; min-height: 0; overflow-y: auto; }
.session {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  padding: 8px 6px;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-muted);
  cursor: pointer;
  /* Two lines, then stop. A rail whose rows are three sentences long is an
     index nobody scans. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.session:hover { background: var(--wash); }
.session[aria-current='true'] { background: var(--panel); color: var(--ink); }
.session-none { padding: 8px 6px; font-size: 13px; color: var(--ink-faint); }

/* The foot's own rules live at the end of this sheet, beside the views they
   open. Nothing here — an earlier declaration would only be something the
   later one has to undo. */

/* ── The canvas ──────────────────────────────────────────────────────────
   The conversation is a stack of surfaces. Prose is one of them, not the
   container the others sit inside. */
.canvas {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 16px;
  outline: 0;
}
.stack { max-width: 780px; margin: 0 auto; }

.empty { max-width: 560px; margin: 12vh auto 0; color: var(--ink-faint); }
.empty p { margin: 0; font-size: 17px; line-height: 1.45; }
.empty-sub { margin-top: 6px !important; font-size: 15px !important; }

.turn { padding-top: 26px; content-visibility: auto; contain-intrinsic-size: auto 240px; }
.turn:first-child { padding-top: 0; }
/* A hairline between turns: the thread is a row of exchanges, not one page. */
.turn + .turn { margin-top: 26px; border-top: 1px solid var(--divider); }

/* The owner's own words, in the owner's voice: full ink, a step up from the
   answer, so the question is read as a question and not as a caption. */
.said {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  white-space: pre-wrap;
}
.said::before { content: 'You'; display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-text); }

/* A folded turn: the opening lines, then a soft edge and "Read the whole answer".
   Its tool rows and plan go with it — they were the working, not the answer. */
.turn[data-folded] > .prose { max-height: 8.5em; overflow: hidden; mask-image: linear-gradient(var(--ink) 55%, transparent); -webkit-mask-image: linear-gradient(var(--ink) 55%, transparent); }
.turn[data-folded] > .prose ~ .prose,
.turn[data-folded] > .work, .turn[data-folded] > .tool-detail, .turn[data-folded] > .cmd, .turn[data-folded] > .plan { display: none; }
.more { font-size: 13px; margin-top: 2px; }
/* Markdown now, not preformatted text — its own rules are at the end of this
   sheet, beside the elements the parser produces. */
.prose { margin: 0 0 4px; }
.prose:empty { display: none; }

/* What it is doing, while it does it. One row per tool, greyed once the call
   comes back — the owner watches the answer being assembled from the record
   rather than watching a spinner and taking it on faith. */
.work { display: grid; gap: 1px; margin: 10px 0 4px; }
.work:empty { display: none; }
/* One line per call: dot · what it is doing · on what · what came back · time.
   The verb carries the row; everything after it is quieter and may be cut. */
.tool { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-subtle); }
.tool-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; border: 0; background: transparent; padding: 3px 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tool-main > .dot { align-self: center; }
.tool-verb { flex: none; }
.tool-arg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-faint); }
.tool-gist { flex: none; color: var(--ink-faint); }
.tool-gist:empty { display: none; }
.tool-gist::before { content: '→ '; }
.tool-time { flex: none; margin-left: auto; padding-left: 8px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.tool[data-done] { color: var(--ink-faint); }
.tool[data-failed] .tool-verb { text-decoration: line-through; }
.tool[data-failed] .tool-gist { color: var(--ink-muted); }
.tool-main:hover, .tool-main[aria-expanded='true'] { color: var(--ink); }
.tool-main:focus-visible { outline: 1px solid var(--border-strong); outline-offset: 2px; }
/* What dsh did around the turn (a compaction, a retry, a /command, a past
   approval): one line, quieter than a tool row, the status after a dot. */
.log-line { display: flex; align-items: baseline; gap: 4px; min-width: 0; padding: 3px 0; font-size: 12px; color: var(--ink-faint); }
.log-line-label { flex: none; color: var(--ink-subtle); }
.log-line-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-line-status:empty { display: none; }
.log-line-status::before { content: '· '; }
.log-line[data-failed] .log-line-status { color: var(--ink-muted); }
/* Stop ends this one call. Quiet until needed: it appears only once a call is slow. */
.tool-stop { flex: none; height: 22px; padding: 0 9px; border: 1px solid var(--border-strong); background: transparent; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.tool-stop:hover { background: var(--wash); }
.tool-stop:disabled { color: var(--ink-faint); cursor: default; }
.dot { width: 6px; height: 6px; flex: none; background: var(--ochre); animation: breath 1.6s ease-in-out infinite; }
.tool[data-done] .dot, .cmd[data-done] .dot { background: var(--ink-faint); animation: none; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-subtle); margin-top: 10px; }
.tool-detail, .cmd-line, .cmd-out, .approval-cmd {
  margin: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
}
.tool-detail { margin: 6px 0 4px; padding: 10px 12px; border: 1px solid var(--border); color: var(--ink-subtle); font-family: inherit; white-space: normal; display: grid; gap: 12px; max-height: 420px; }
/* The drawn result (json-view.js): labelled sections, fields as a two-column list, rows as a table. */
.jv-sec { display: grid; gap: 6px; min-width: 0; }
.jv-head { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.jv-fields { display: grid; grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: 13px; }
.jv-fields dt { color: var(--ink-faint); }
.jv-fields dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.jv-fields .jv-fields { font-size: 12px; }
.jv-text { color: var(--ink); }
.jv-quiet { color: var(--ink-faint); }
.jv-list { color: var(--ink); overflow-wrap: anywhere; }
.jv-more { color: var(--ink-faint); font-size: 12px; }
.jv-table-wrap { overflow-x: auto; max-width: 100%; }
.jv-table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.jv-table th { text-align: left; font-weight: 500; color: var(--ink-faint); padding: 0 14px 4px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.jv-table td { padding: 3px 14px 3px 0; color: var(--ink); border-bottom: 1px solid var(--divider); vertical-align: top; max-width: 28ch; overflow-wrap: anywhere; }
.jv-toggle { justify-self: start; font-size: 12px; }
.jv-raw { margin: 0; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-subtle); }
/* The shell: the command IS the content, so it draws as a block in the turn,
   not as a chip. Command on top, the answer under it once it comes back. */
.cmd { margin: 10px 0 2px; border-left: 2px solid var(--border-strong); padding: 6px 10px 8px; }
.cmd-head { display: flex; align-items: center; gap: 6px; font: inherit; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; border: 0; background: transparent; padding: 0; cursor: pointer; }
.cmd-head:hover { color: var(--ink-muted); }
.cmd-head > .tool-time { margin-left: auto; letter-spacing: 0; text-transform: none; }
.cmd-head > .tool-stop { letter-spacing: 0; text-transform: none; }
/* A folded answer gets a mark that turns when it opens. */
.cmd-head::after { content: '▸'; font-size: 9px; opacity: 0.7; }
.cmd-head[aria-expanded='true']::after { content: '▾'; }
.cmd[data-done] .dot { background: var(--ink-faint); animation: none; }
.cmd[data-failed] { border-left-color: var(--ochre); }
.cmd-line { color: var(--ink); }
.cmd-out { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--divider); color: var(--ink-muted); }
.approval-cmd { margin: 8px 0 0; padding: 6px 10px; background: var(--page); color: var(--ink); max-height: 160px; }
.fail { font-size: 14px; color: var(--ink-muted); margin-top: 10px; }
/* The owner stopped the turn. Quiet, and NOT styled as a failure: pressing Stop
   is a normal thing to do, and a red-ish note would read as an apology for it.
   Their reason sits beside it in their own words, which is the half that makes
   the next turn make sense. */
.stopped { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--ink-faint); margin-top: 10px; padding-left: 13px; border-left: 2px solid var(--border); }
.stopped-note { color: var(--ink-subtle); font-style: italic; }

@keyframes breath { 0%, 100% { opacity: 0.35 } 50% { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* The plan (`todo_write`): the model's own list of steps, at the head of the
   turn, replaced whole on every write. Reads as a checklist, not a card —
   done steps recede, the current one carries the ochre dot the work rows use. */
.plan { list-style: none; margin: 10px 0 4px; padding: 0 0 0 13px; border-left: 2px solid var(--border); display: grid; gap: 3px; }
.plan-step { position: relative; font-size: 13px; line-height: 1.45; color: var(--ink-subtle); padding-left: 16px; }
.plan-step::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--border-strong); }
.plan-step[data-status='in_progress'] { color: var(--ink); }
.plan-step[data-status='in_progress']::before { background: var(--ochre); animation: breath 1.6s ease-in-out infinite; }
.plan-step[data-status='completed'] { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.plan-step[data-status='completed']::before { background: var(--ink-faint); }
.turn[data-ended] .plan-step:not([data-status='completed']) { color: var(--ink-faint); }
.turn[data-ended] .plan-step:not([data-status='completed'])::before { background: none; border: 1px solid var(--border-strong); box-sizing: border-box; animation: none; }
.turn[data-ended] .plan-step:not([data-status='completed'])::after { content: ' · not marked done'; }

/* ── Approvals ───────────────────────────────────────────────────────────
   Drawn in the canvas, in the turn it belongs to, rather than as a modal. The
   decision is about something the assistant is doing right there, and taking
   over the screen to ask would separate the question from its context. */
.approval {
  border: 1px solid var(--border-strong);
  background: var(--panel);
  padding: 12px 14px 13px;
  margin: 14px 0 2px;
  animation: rise 180ms var(--ease) both;
}
.approval-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-text);
}
.approval-tool { font-size: 17px; margin: 7px 0 0; }
.approval-why { font-size: 13px; color: var(--ink-subtle); margin: 4px 0 0; }
.approval-acts { display: flex; gap: 8px; margin-top: 11px; }
.act {
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  background: var(--page);
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.act:hover:not(:disabled) { background: var(--ink); color: var(--page); }
.act:disabled { color: var(--ink-faint); border-color: var(--border); cursor: default; }
.approval[data-settled] .approval-acts { display: none; }
.approval-outcome { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* ── A handover ──────────────────────────────────────────────────────────
   A file Gnomon made. Shares the approval card's frame on purpose: both are
   the assistant holding something out to the owner and waiting, and they are
   the only two things in the canvas that ask for a hand rather than an eye.
   Quieter, though — an approval blocks a turn, a deliverable just sits there. */
.deliverable {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 11px 14px 12px;
  margin: 14px 0 2px;
  animation: rise 180ms var(--ease) both;
}
.deliverable-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.deliverable-file + .deliverable-file { margin-top: 9px; }
/* The file name carries the affordance, so it is the one underlined thing in
   the card and it stays legible at a glance — a long generated name wraps
   rather than pushing the card wide. */
.deliverable-name {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.deliverable-name:hover { text-decoration-color: var(--ink); }
.deliverable-why { font-size: 13px; color: var(--ink-subtle); margin: 3px 0 0; }

/* ── The bar ─────────────────────────────────────────────────────────────
   Always present. Asking is never a mode you enter. */
.bar {
  grid-area: bar;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 32px 18px;
  border-top: 1px solid var(--border);
  background: var(--page);
}
/* The mode line: one row above the field, ochre dot, and the way out. */
.bar-mode { flex: 0 0 100%; display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--ink-subtle); margin: -2px 0 -4px; animation: rise 200ms var(--ease) both; }
.bar-mode-dot { width: 6px; height: 6px; background: var(--ochre); align-self: center; }
.bar-mode-out { font-size: 12px; color: var(--ink-faint); }
.bar-mode-out:hover { color: var(--ink); }
.bar[data-answering] .input { caret-color: var(--ochre); }
.bar:focus-within { border-top-color: var(--ink); }
.input {
  flex: 1;
  min-height: 34px;
  max-height: 168px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 20px;
  line-height: 34px;
  letter-spacing: -0.02em;
  resize: none;
  overflow-y: auto;
  max-width: 640px;
  margin-left: auto;
}
.input::placeholder { color: var(--ink-faint); }
.send {
  flex: none;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  margin-right: auto;
  transition: background 120ms var(--ease);
}
.send:hover:not(:disabled) { background: var(--wash-strong); }
.send:disabled { border-color: var(--border); color: var(--ink-faint); cursor: default; }

/* ── Surfaces ────────────────────────────────────────────────────────────
   The renderer colours from the MARK, so a component can never invent
   certainty the data does not have: observed is ink, derived and inferred are
   ochre, absent is the superseded grey. A null value draws as an em dash and a
   2px stub — a gap in the record, never a zero. */
.surface {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 16px 0 6px;
  animation: rise 200ms var(--ease) both;
}
.surface-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.surface-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.surface-because { font-size: 12px; color: var(--ink-faint); }
.surface-body { padding-top: 12px; }
.surface-note { font-size: 13px; color: var(--ink-subtle); padding-top: 12px; max-width: 62ch; line-height: 1.45; }
.surface-fail { font-size: 13px; color: var(--ink-faint); padding: 6px 0; }
/* A surface the tool refused. It stays on the record — the model tried, and
   hiding the attempt would make a turn that took two goes look like one — but
   as one faint line, because nothing was drawn and there is nothing here to read. */
.surface-refused { font-size: 12px; color: var(--ink-faint); padding: 2px 0; }
.axis { display: flex; font-size: 12px; color: var(--ink-faint); padding-top: 6px; }
.axis span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 14px; font-size: 12px; color: var(--ink-muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 5px; display: inline-block; background: var(--ink); }

table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--divider); }
table.grid th { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* The header is the sort control. It inherits the header's own type rather than
   looking like a button, because it is not one more thing on the page — it is
   the column label, which happens to be clickable. The caret appears only on
   the column actually sorted, so a table nobody has touched carries no chrome. */
/* A cell the fold could study now, against one it is waiting on. Green is the
   product's "verified" tone and this is the same claim: the thresholds pass. */
.gap-ready { color: var(--green); }
.gap-waiting { color: var(--ink-subtle); }
/* How much of a goal's correctable error has burnt off, against the bar it must
   clear to close as learned. A track rather than a number because the number is
   in nats, which means nothing on sight; the exact pair is in the tooltip. */
.goal-bar { display: block; position: relative; width: 90px; height: 6px; background: var(--panel); border-bottom: 1px solid var(--border); }
.goal-fill { position: absolute; inset: 0 auto 0 0; background: var(--ochre); }

.grid-sort { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.grid-sort:hover { color: var(--ink); }
table.grid th[aria-sort='ascending'] .grid-sort::after { content: ' ↑'; }
table.grid th[aria-sort='descending'] .grid-sort::after { content: ' ↓'; }
table.grid th[aria-sort='ascending'], table.grid th[aria-sort='descending'] { color: var(--ink); }
/* Acts inside a table cell stay on one line. `.proposal-chips` is
   `display: contents` in its own context, so in a narrow last column the two
   verbs stacked and the row grew to two lines — Goals showed every row as a
   pair of half-width buttons under each other. The cell is as wide as its
   verbs and no wider. */
table.grid td > .proposal-chips { display: flex; gap: 6px; justify-content: flex-end; }
table.grid td:has(> .proposal-chips) { white-space: nowrap; width: 1%; padding-left: 12px; }

/* A row that answers for itself. The summary row keeps the table's own type and
   gains only a pointer and the open marker — an eight-column row with a chevron
   rail down the side would be the icon rail DESIGN.md rules out. The fold is
   indented to the width of that marker so the detail reads as belonging to the
   row above it rather than as a new section. */
tr.grid-openable { cursor: pointer; }
tr.grid-openable:hover > td, tr.grid-openable:focus-visible > td { background: var(--panel); }
/* The mark sits on EVERY row of a foldable table, so they all start at the same
   place. A row the record has nothing to add to keeps its gutter and takes the
   quiet mark; with no mark at all it lost the indent and stepped out of line. */
tr.grid-row > td:first-child { position: relative; padding-left: 14px; }
tr.grid-row > td:first-child::before { content: '›'; position: absolute; left: 0; color: var(--ink-faint); transition: transform 120ms ease; display: inline-block; }
tr.grid-quiet > td:first-child::before { content: '·'; color: var(--ink-faint); opacity: 0.5; }
tr.grid-openable.is-open > td:first-child::before { transform: rotate(90deg); }
tr.grid-openable.is-open > td { background: var(--panel); border-bottom-color: transparent; }
/* The fold carries the shared moment detail at reading width, not at table
   width. A table cell is as wide as the table, and the detail appended bare
   into one stretched its label/value lines across the whole card with a chasm
   in the middle — the same mistake as a paragraph in a column. */
tr.grid-fold > td { padding: 2px 10px 14px 14px; background: var(--panel); }

/* The brief. Wide on purpose: it opens under a row that is already the width of
   the card, so the facts run ACROSS rather than down. Only the two lines of
   language are capped at a reading width; the strip of counts uses the room. */
.moment-brief { display: grid; gap: 8px; }
.mb-sentence { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); max-width: 76ch; }
.mb-read { margin: 0; padding-left: 11px; border-left: 2px solid var(--ochre); font-size: 13.5px; line-height: 1.45; color: var(--ink-subtle); max-width: 76ch; }
.mb-quote { margin: 0; padding: 1px 0 1px 11px; border-left: 2px solid var(--border-strong); font-size: 13.5px; line-height: 1.45; color: var(--ink); max-width: 76ch; }
.mb-facts { display: flex; flex-wrap: wrap; gap: 3px 20px; font-size: 13px; color: var(--ink-subtle); }
.mb-fact { display: inline-flex; align-items: center; gap: 6px; }
.mb-fact > .icon { color: var(--ink-faint); }

/* Icons. `icons.js` says why they look like this; these two rules are all the
   CSS they need. Sized in `em` and nudged onto the baseline, so an icon grows
   with the text it marks instead of being positioned against it. */
.icon { flex: none; vertical-align: -0.13em; }
.icon-label { display: inline-flex; align-items: baseline; gap: 6px; }
.icon-label > .icon { align-self: center; color: var(--ink-faint); }

/* flow — DOM columns, not an SVG graph: the labels have to wrap and stay
   selectable, and a hand-rolled SVG label engine is a worse version of what
   the browser already does. Scrolls sideways rather than shrinking. */
.flow { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.flow-col { flex: none; display: flex; flex-direction: column; gap: 8px; }
.flow-arrow { flex: none; display: inline-flex; align-items: center; color: var(--ink-subtle); }
/* A column, so the kind sits under the label rather than running on from it. */
.flow-node {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 168px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.flow-label { font-size: 14px; line-height: 1.3; }
.flow-kind { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }

/* gauge-row — the tick is what the row is for. A bar without a baseline is a
   number with decoration. */
.gauges { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.gauge-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.gauge-label { font-size: 14px; color: var(--ink-muted); }
.gauge-value { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge-unit { font-size: 13px; color: var(--ink-subtle); margin-left: 3px; }
.gauge-track { position: relative; height: 8px; margin-top: 6px; background: var(--panel); border-bottom: 1px solid var(--border); }
.gauge-fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
/* Over the bar, so it stays visible when the value passes it — the case the
   whole surface exists to show. */
.gauge-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--navy); }
.gauge-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 5px; font-size: 12px; color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

@media (max-width: 960px) {
  .strip { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .canvas { padding: 20px 18px 8px; }
  .bar { padding: 10px 18px 14px; }
  .ask { padding: 12px 18px 13px; }
  /* The strip made the whole PAGE scroll sideways: every item is `flex: none`
     and `nowrap`, so at 390px the row measured 463px and took the document
     with it. On a phone the lead is the only item that has to survive whole —
     it says what the owner is doing — so it is the one allowed to shrink and
     ellipsis, and the rest wrap under it. */
  .strip { flex-wrap: wrap; gap: 2px 14px; padding: 9px 18px 8px; }
  .strip > * { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .strip-now { flex: 1 1 100%; }
  .strip-now > span:last-child { overflow: hidden; text-overflow: ellipsis; }
}

/* ── The rail's foot ─────────────────────────────────────────────────────
   Two entries and a picker. Six instrument rows here would make the rail the
   index of an app the owner does not have — the six live behind one entry,
   because they are the same question asked from different sides. */
.rail-foot { flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--divider); }
.foot {
  border: 0;
  background: transparent;
  padding: 6px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
}
.foot:hover { background: var(--wash); }
.foot[aria-current='true'] { background: var(--panel); color: var(--ink); }

.model { position: relative; margin-top: 4px; border-top: 1px solid var(--divider); padding-top: 4px; }
/* The button reads like the other foot rows — a hairline above, a wash on
   hover — with the provider as an eyebrow over the model's name. */
.model-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.model-pick:hover, .model-pick[aria-expanded='true'] { background: var(--wash); }
.model-provider { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.model-provider:empty::before { content: 'Model'; }
.model-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-muted);
}
.model-pick:hover .model-name, .model-pick[aria-expanded='true'] .model-name { color: var(--ink); }
/* The menu: one sheet of paper above the button, hairline-bordered, no lift.
   It opens upward because the foot sits at the bottom of the rail. */
.model-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 2px);
  z-index: 20;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  background: var(--page);
  border: 1px solid var(--border-strong);
  padding: 4px 0;
}
.model-group { padding: 8px 10px 3px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.model-group + .model-group { border-top: 1px solid var(--divider); }
.model-opt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 10px 5px 20px;
  text-align: left;
  font: inherit;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
}
.model-opt:hover, .model-opt:focus-visible { background: var(--wash); color: var(--ink); outline: none; }
.model-opt[aria-selected='true'] { color: var(--ink); }
/* The current one carries the ochre: a small square, not a check, the same
   mark the dial uses for now. */
.model-opt[aria-selected='true']::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--ochre);
}
.model-opt-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.model-opt-desc { font-size: 11px; color: var(--ink-faint); white-space: normal; }
.model-empty { padding: 8px 10px; font-size: 12px; color: var(--ink-faint); }

/* ── The command bar ─────────────────────────────────────────────────────*/
.summon-key { margin-left: 4px; padding: 0 4px; border: 1px solid var(--border); font-size: 9px; letter-spacing: 0; color: var(--ink-faint); }
.palette-veil { position: fixed; inset: 0; z-index: 20; display: grid; align-content: start; justify-items: center; padding-top: 12vh; background: color-mix(in srgb, var(--ground) 55%, transparent); animation: fade 120ms var(--ease) both; }
.palette { width: min(560px, calc(100% - 32px)); border: 1px solid var(--border-strong); background: var(--page); animation: rise 160ms var(--ease) both; }
.palette-field { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 14px 16px; font: inherit; font-size: 24px; font-weight: 300; letter-spacing: -0.025em; color: var(--ink); outline: 0; }
.palette-field::placeholder { color: var(--ink-faint); }
.palette-list { display: grid; padding: 6px 0; max-height: 50vh; overflow: auto; }
/* A heading per kind, held at the top of the list while its rows scroll under
   it, so you always know which part of the board you are looking at. */
.palette-cap { position: sticky; top: 0; z-index: 1; padding: 10px 16px 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre-text); background: var(--page); }
.palette-cap:first-child { padding-top: 4px; }
.palette-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-left: 2px solid transparent; background: transparent; padding: 7px 16px 7px 14px; font: inherit; font-size: 15px; text-align: left; color: var(--ink); cursor: pointer; }
/* Where Enter will land: an ochre edge, the row lit, and the return mark itself
   on the right — the key you would press, drawn on the thing it acts on. */
.palette-row[aria-selected='true'] { border-left-color: var(--ochre); background: var(--wash-strong); color: var(--ochre-text); }
/* No colour of its own: the mark is a character, and the selected row it only
   ever shows on is already ochre ink. Reaching for `--ochre` here set a text
   colour from the fill token, which is the one thing the palette rule forbids. */
.palette-go { flex: none; font-size: 13px; opacity: 0; }
.palette-row[aria-selected='true'] .palette-go { opacity: 1; }
.palette-row { scroll-margin-top: 28px; }
.palette-none { padding: 14px 16px; font-size: 14px; color: var(--ink-faint); }
/* The keys, written down along the foot. */
.palette-foot { display: flex; gap: 18px; border-top: 1px solid var(--border); padding: 7px 16px; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); }
.palette-hint { display: inline-flex; align-items: center; gap: 6px; }
.palette-hint kbd { border: 1px solid var(--border-strong); padding: 0 5px; font: inherit; font-size: 11px; line-height: 16px; color: var(--ink-muted); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .palette-veil, .palette { animation: none; } }

/* ── Today, as the canvas's zero state ───────────────────────────────────*/
/* The brief: one sentence at reading size, then the shelf. No head, no dial. */
.brief { border-bottom: 0; padding: 6px 0 0; }
.brief-line { margin: 0; font-size: 28px; font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
/* The count of what waits, as a door to Left for you — not a second copy of it. */
.brief-left { margin: 14px 0 0; font-size: 15px; }
/* A page in Gnomon's browser, live: the page's bar, the step Gnomon just took,
   then the page itself, fitted whole into whatever height the card has left. */
.browser { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; padding: 8px 12px 12px; box-sizing: border-box; }
.browser-head { display: flex; align-items: baseline; gap: 12px; min-width: 0; font-size: 12px; }
.browser-go { flex: none; font-size: 12px; }
.browser-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.browser-status { flex: none; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.browser[data-state='live'] .browser-status { color: var(--ochre-text); }
.browser-step { margin: 0; font-size: 15px; color: var(--ink); }
.browser-view { flex: 1; min-height: 240px; display: flex; border: 1px solid var(--divider); background: var(--page); outline: 0; }
.browser-view:focus-visible, .browser-view:focus { border-color: var(--ochre); }
.browser-live { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; cursor: default; user-select: none; }
.browser-gone { margin: auto; padding: 24px; text-align: center; }
/* Today's answer to the moment of the day: the question, then a few rows. */
.brief-moment { margin-top: 18px; max-width: 72ch; }
.brief-moment .row { font-size: 14px; }
/* The leave note is a sentence, so it takes the reading width, not a name field's. */
.brief-moment .resume-note { max-width: 34rem; font-size: 14px; }
/* Work's standing seats: a short key, then text that wraps inside the card. */
.work-line { display: grid; grid-template-columns: minmax(8em, 11em) minmax(0, 1fr); gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--divider); font-size: 14px; line-height: 1.4; }
.work-line-key { color: var(--ink); font-variant-numeric: tabular-nums; }
.work-line-text { color: var(--ink-muted); min-width: 0; overflow-wrap: anywhere; }
/* Left for you: what is answered folds under one quiet line. */
.shelf-answered { margin-top: 14px; border-top: 1px solid var(--divider); padding-top: 8px; }
.shelf-answered > summary { cursor: pointer; font-size: 12px; color: var(--ink-muted); list-style-position: inside; }
.shelf-answered > summary:hover, .shelf-answered > summary:focus-visible { color: var(--ink); }
.shelf-answered[open] > summary { margin-bottom: 8px; }
.brief .shelf { margin-top: 22px; }
.today { padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 10px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.observed { font-size: 13px; color: var(--ink-faint); }
.numeral { font-size: 26px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* The plate is a strip: 1000×150 rendered into 82px, which is why the dial's
   own geometry carries a hairline floor (see dial.js). */
.plate svg { display: block; width: 100%; height: 82px; }
.dial-empty { font-size: 14px; color: var(--ink-faint); padding: 18px 0; }
.today-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding-top: 14px; }
.today-cols > .col:first-child { border-right: 1px solid var(--divider); padding-right: 40px; }
.col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }

.row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 15px; border-bottom: 1px solid var(--divider); }
.row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-value { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.row-faint, .row-faint .row-value { color: var(--ink-faint); }
/* Derived, provisional, unsure — the grammar's one hue for all three. */
.row-weak { color: var(--ochre-text); }
.notice { font-size: 15px; line-height: 1.5; padding: 5px 0; color: var(--ink-muted); border-bottom: 1px solid var(--divider); }

/* A row that loads a question into the bar. It is a <button> for the keyboard
   and the screen reader and looks exactly like the row it replaced: the
   affordance is the hover, not a chevron. A page whose every line advertises
   being clickable stops being a page you can read. */
.row-ask {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.row-ask.row { display: flex; }
/* A restore link is a row like any other: the underline would be the only one on Today. */
a.row-ask { color: inherit; text-decoration: none; }
.row-ask:hover { background: var(--wash); box-shadow: -8px 0 0 var(--wash), 8px 0 0 var(--wash); }
.row-ask:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.none { font-size: 13px; color: var(--ink-faint); padding: 6px 0; }

/* ── Today, the rest of it ──────────────────────────────────────────────
   Every block below the dial is a projection of a route that already existed.
   The grammar stays the same — hairline rows, one ochre, ink in three tones —
   and motion is spent on arrival only: a row rises once, a bar grows once, a
   number counts up once. Nothing loops. */
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.col-head .col-title { margin: 0; }
.col-hint { flex: none; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--ink-faint); font-size: 13px; }
.chip { display: inline-block; margin-left: 8px; padding: 0 5px; font-size: 11px; line-height: 16px; color: var(--ink-subtle); border: 1px solid var(--border); vertical-align: 2px; font-variant-numeric: tabular-nums; }
.row-ask:hover .chip { border-color: var(--border-strong); color: var(--ink); }

/* Nothing inside Today may be wider than Today.
 *
 * A grid or flex child defaults to `min-width: auto`, which means a long
 * unbroken string — a repository path, a shelf card's title — makes its track
 * wider than the container instead of shrinking inside it. On a phone that
 * pushed the block to 416px in a 354px column, and because `.today` clips for
 * its fold transition the overflow was not scrollable: it was simply gone off
 * the right edge. `min-width: 0` restores shrinking; the ellipsis says a name
 * was cut rather than letting it end mid-word against the edge. */
.today-cols > .col, .shelf, .shelf-cards, .shelf-card, .shelf-head, .shelf-fold, .shelf-fold-inner, .shelf-body { min-width: 0; }
.moment-meta, .col-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Arrival. `--i` is the row's index; each one lands a beat after the last. */
/* The stagger says "these arrived together", and after a dozen rows the eye
   has the idea — so the step is capped rather than run to the end of a list
   that may be sixty long. 22ms is the number DESIGN.md states; `.arrive` said
   45 because nothing was reading it. */
.arrive { animation: rise 320ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
/* A card that drew itself again with a newer reading (read.js keepCurrent) has
   already arrived: its rows change in place, they do not rise a second time. */
[data-redrawn] :is(.arrive, .goal, .sb, .fact-line, .person) { animation: none; }

/* The share bar under a project row: a hairline of paper, ink to the share. The
   width is set after mount, so the growth is the animation. */
.row { position: relative; flex-wrap: wrap; }
.share { flex: 0 0 100%; order: 9; height: 2px; margin-top: 4px; background: var(--wash-strong); overflow: hidden; }
.share-fill { display: block; height: 100%; width: 0; background: var(--ink-muted); transition: width 720ms var(--ease); }
.share-faint .share-fill { background: var(--ink-faint); }
.row-ask:hover .share-fill { background: var(--ochre); }

/* Focus: three tones of one ink, laid end to end. */
.focus { display: block; padding: 8px 0 22px; border-bottom: 0; }
.focus-track { display: flex; height: 8px; gap: 2px; }
.focus-seg { position: relative; display: block; min-width: 2px; transition: filter 160ms var(--ease); }
.focus-deep { background: var(--ink); }
.focus-steady { background: var(--ink-subtle); }
.focus-shallow { background: var(--superseded); }
.focus-seg-label { position: absolute; top: 12px; left: 0; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); white-space: nowrap; }
.focus:hover .focus-seg { filter: brightness(1.15); }
.focus.row-ask:hover { background: transparent; box-shadow: 0 0 0 var(--wash); }
.focus:hover .focus-seg-label { color: var(--ink-muted); }

/* The second pair of columns: in play, and just now. */
.today-cols-2 { margin-top: 18px; }
.moment { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 14px; }
.moment-when { flex: none; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; width: 42px; }
.moment-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.moment-intent { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.moment-meta { font-size: 11px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moment-dot { flex: none; width: 6px; height: 6px; background: var(--superseded); align-self: center; transition: transform 160ms var(--ease); }
.moment-dot.focus-deep { background: var(--ink); }
.moment-dot.focus-steady { background: var(--ink-subtle); }
.moment:hover .moment-dot { transform: scale(1.5); }

/* Files today: same rows as projects, a monospace name. */
.files { margin-top: 18px; }
.file-name { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.file-row { font-size: 14px; }

/* The week: eight columns, today in ochre, the rest ink. Height is the
   animation, and the label is the only text until you hover. */
.week { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--divider); }
.wk + .wk { margin-top: 18px; }
.wk .grid td { vertical-align: middle; }
.wk-active { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.wk-active .share { flex: 1; order: 0; margin: 0; height: 3px; }
.wk-h { font-variant-numeric: tabular-nums; color: var(--ink-muted); font-size: 12px; min-width: 2.5ch; text-align: right; }
.wk-today { color: var(--ochre-text); }
.share-today .share-fill { background: var(--ochre); }

/* Usually next: one line of habit. */
.forecast { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.forecast-eyebrow { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.forecast-next { color: var(--ink); }
.forecast-from { color: var(--ink-faint); font-size: 12px; }

/* The gate's day: said / held / dropped, and the last thing it kept back. */
.held { display: flex; flex-direction: column; gap: 3px; padding: 7px 0; border-bottom: 1px solid var(--divider); }
.held-counts { display: flex; align-items: baseline; gap: 4px 6px; font-size: 13px; }
.held-n { color: var(--ink); font-variant-numeric: tabular-nums; }
.held-l { color: var(--ink-faint); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 6px; }
.held-last { font-size: 12px; color: var(--ink-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The shelf folds. An answered card is a title; the chevron says it opens. */
.shelf-cards { display: grid; gap: 0; }
.shelf-card { padding: 10px 0 8px; gap: 0; }
.shelf-chev { flex: none; width: 6px; height: 6px; border-right: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); transform: rotate(-45deg); transition: transform 200ms var(--ease), border-color 160ms var(--ease); margin-right: 2px; align-self: center; }
.shelf-card[data-open='true'] .shelf-chev { transform: rotate(45deg); border-color: var(--ink); }
.shelf-head { align-items: center; }
.shelf-head .shelf-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-title:hover { color: var(--ochre-text); }
.shelf-mark { font-size: 11px; font-variant: small-caps; letter-spacing: 0.06em; color: var(--ink-faint); white-space: nowrap; }
.shelf-ask { font-size: 12px; opacity: 0; transition: opacity 160ms var(--ease); }
.shelf-card:hover .shelf-ask, .shelf-ask:focus-visible { opacity: 1; }
.shelf-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease), opacity 220ms var(--ease); opacity: 0; }
.shelf-card[data-open='true'] .shelf-fold { grid-template-rows: 1fr; opacity: 1; }
.shelf-fold-inner { overflow: hidden; display: grid; gap: 8px; padding-top: 6px; }
.shelf-card[data-open='false'] .shelf-fold-inner { padding-top: 0; }

/* ── Untracked time: proposals ──────────────────────────────────────────
   A card is a question with the answer half-filled in: the place, the time it
   took, what it looked like, and the projects already in use as chips — the
   guess first, in ochre. Deciding settles the card into one line and folds it,
   the same fold the shelf uses, so a decided proposal is a title, not a card. */
.proposals { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--divider); }
.proposals-why { margin: 0 0 8px; font-size: 13px; color: var(--ink-subtle); }
.proposal-cards { display: grid; gap: 0; }
.draft-body { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.45; margin: 8px 0; color: var(--ink); max-width: 68ch; }
.draft-evidence { margin: 4px 0 6px; padding-left: 16px; font-size: 12px; color: var(--ink-subtle); line-height: 1.4; }
.draft-judge { margin-top: 4px; font-variant-numeric: tabular-nums; }
.proposal { padding: 10px 0 10px 12px; border-left: 2px solid var(--border-strong); border-bottom: 1px solid var(--divider); transition: border-left-color 240ms var(--ease), opacity 240ms var(--ease); }
.proposal:hover { border-left-color: var(--ochre); }
.proposal-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.proposal-kind { flex: none; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--border); padding: 0 5px; line-height: 16px; align-self: center; }
.proposal-label { flex: 1; min-width: 0; border: 0; border-bottom: 0; padding: 0; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proposal-label.row-ask:hover { color: var(--ochre-text); background: transparent; box-shadow: 0 0 0 var(--wash); }
.proposal-time { flex: none; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.proposal-min { color: var(--ink-muted); font-size: 14px; }
/* Scope rows: the whole place, then each part that took its own time. A radio
   set drawn as rows, because the label is the content and the time is why you
   would pick it. */
.proposal-hint { font-size: 12px; color: var(--ink-subtle); margin: 0 0 4px; }
.proposal-scopes { display: grid; gap: 0; margin: 0 0 8px; }
.proposal-scope {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  padding: 5px 6px 5px 16px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.proposal-scope:hover { background: var(--wash); color: var(--ink); }
.proposal-scope[aria-pressed='true'] { color: var(--ink); }
.proposal-scope[aria-pressed='true']::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--ochre);
}
.proposal-scope:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.scope-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-path { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.scope-meeting { color: var(--navy); }
.scope-time { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.proposal-scope[aria-pressed='true'] .scope-time { color: var(--ink-muted); }
.proposal-titles { margin: 6px 0 0; padding: 0 0 0 14px; font-size: 12px; color: var(--ink-subtle); line-height: 1.5; }
.proposal-titles li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proposal-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.proposal-chips { display: contents; }
.chip-pick { border: 1px solid var(--border); background: transparent; padding: 3px 9px; font: inherit; font-size: 12px; color: var(--ink-muted); cursor: pointer; transition: background 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease); }
.chip-pick:hover { border-color: var(--border-strong); color: var(--ink); }
.chip-pick[aria-pressed='true'] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip-pick-suggested { border-color: var(--ochre); }
.chip-pick-suggested[aria-pressed='true'] { background: var(--ochre); border-color: var(--ochre); color: var(--page); }
.proposal-other { flex: 1; min-width: 120px; max-width: 220px; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 3px 2px; font: inherit; font-size: 12px; color: var(--ink); outline: 0; }
.proposal-other:focus { border-bottom-color: var(--ink); }
.proposal-other::placeholder { color: var(--ink-faint); }
.proposal-acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.proposal-track:not(:disabled) { background: var(--ink); color: var(--page); border-color: var(--ink); }
.proposal-track:not(:disabled):hover { background: var(--ochre); border-color: var(--ochre); }
.proposal-fail { font-size: 12px; color: var(--ochre-text); }
.proposal-outcome { flex: 0 0 100%; font-size: 13px; color: var(--ink-faint); animation: rise 200ms var(--ease) both; }
.proposal-fold { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 320ms var(--ease), opacity 220ms var(--ease); }
.proposal-fold-inner { overflow: hidden; }
.proposal[data-folded] .proposal-fold { grid-template-rows: 0fr; opacity: 0; }
.proposal[data-settled] { border-left-color: var(--border-strong); }
.proposal-kept { border-left-color: var(--green) !important; }
.proposal-kept .proposal-label { color: var(--ink-muted); }
.proposal-dim { opacity: 0.5; }

@media (max-width: 720px) {
  .today-cols { grid-template-columns: 1fr; gap: 14px 0; }
  .today-cols > .col:first-child { border-right: 0; padding-right: 0; }
}

/* ── The Ledger and the Instruments ──────────────────────────────────────
   The canvas showing something other than a conversation. They borrow one
   another's grammar on purpose: a second visual language for the same kind of
   thing would say these are different kinds of thing, and they are not. */
.view { max-width: 880px; margin: 0 auto; }
.view-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.view-when { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); align-self: baseline; }
.view-title { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.tab {
  border: 0;
  background: transparent;
  padding: 4px 9px;
  font-size: 13px;
  color: var(--ink-faint);
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-current='true'] { background: var(--panel); color: var(--ink); }
.view-body { padding: 16px 0 40px; }
/* The Engine room: one head for every tab (the strip, the span on the right),
   and the tabs stacked in one cell so a new tab draws over the old one. */
.engine-head { align-items: center; padding-bottom: 8px; }
/* Every tab the card's full width. Trust, Calibration, Lab and Trace lift the
   880px reading cap for their pictures (`.view:has(…)`), Cost and Reach kept
   it — so the frame changed width from tab to tab and the page jumped
   sideways. One width for all; prose inside keeps its own 78ch measure. */
.view.engine { max-width: none; }
.tab-stack { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Full width, no auto margins: a grid item with `margin: auto` shrinks to its
   narrowest content — one word per line, and a Cost tab too thin to count as
   on screen, so it never started reading. The outer view does the centring. */
.tab-stack > * { grid-area: 1 / 1; min-width: 0; width: 100%; max-width: none; margin: 0; }
.tab-next { opacity: 0; pointer-events: none; }
.tab-stack > :not(.tab-next) { transition: opacity 160ms var(--ease); }
/* Still showing the old answer while the new one is read: dim it, after a beat,
   so a fast read never flickers and a slow one never looks frozen. The same for
   a card re-reading after the span moved (`rereadAll` sets aria-busy). */
.tab-stack:has(> .tab-next) > :not(.tab-next),
.view[aria-busy='true'], .view-body[aria-busy='true'] { animation: rereading 200ms var(--ease) 150ms both; }
/* An animation, not a transition: the old tab is re-inserted into a new stack,
   and an inserted node has no "before" style to transition from. */
@keyframes rereading { to { opacity: 0.5; } }

/* The two bands of instruments. A band name is an eyebrow, the tabs sit beside
   it, and the pair reads as one line — the label is not a heading over a
   section, it is the name of the row it belongs to. */
.bands { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.band { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.band-name {
  flex: none;
  width: 112px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 720px) {
  .band { gap: 2px; }
  .band-name { width: auto; flex-basis: 100%; }
}

/* A page that is about to be, rather than the word "Reading…" left standing on
   its own. It breathes on the one accent, so the wait reads as Gnomon working
   and not as a page that rendered empty. */
.reading { font-size: 13px; color: var(--ink-faint); padding: 10px 0; animation: breath 1.6s ease-in-out infinite; }

.panel { padding: 16px 0; border-bottom: 1px solid var(--divider); }
.panel:last-child { border-bottom: 0; }
.panel-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; }
.panel-row { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--divider); }
.panel-row:last-child { border-bottom: 0; }
.panel-label { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-muted); }
.panel-value { font-size: 15px; font-variant-numeric: tabular-nums; }
.panel-hint { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.panel-note { font-size: 13px; color: var(--ink-subtle); line-height: 1.45; max-width: 62ch; margin: 10px 0 0; }

/* The calibration bins. The bar is how many predictions fell in a band; the
   mark is how often they came true. The two lining up IS calibration. */
.bins { display: flex; flex-direction: column; gap: 6px; }
.bin { display: grid; grid-template-columns: 64px 1fr 130px; align-items: center; gap: 10px; }
.bin-label, .bin-n { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.bin-track { position: relative; height: 10px; background: var(--panel); }
.bin-fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.bin-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ochre); }
/* Reliability deciles under a self-evaluation row: the same bin, folded under its row. */
.bins-tight { gap: 3px; padding: 6px 0 4px; }
.bins-tight .bin { grid-template-columns: 64px 1fr 90px; }
.bins-tight .bin-track { height: 6px; }

@media (max-width: 720px) {
  .today-cols { grid-template-columns: 1fr; gap: 18px; }
  .today-cols > .col:first-child { border-right: 0; padding-right: 0; }
  .bin { grid-template-columns: 54px 1fr; }
  .bin-n { grid-column: 2; }
}

/* ── Gnomon's own question ───────────────────────────────────────────────
   Above the bar, not inside the canvas. It is not part of any conversation:
   the rule asked it, it survives a session switch, and it is waiting on the
   owner wherever they happen to be looking. Sitting where the answer gets
   typed is the whole point — the composer below it IS the "something else". */
.ask {
  grid-area: ask;
  border-top: 1px solid var(--border-strong);
  background: var(--panel);
  padding: 12px 32px 13px;
  animation: rise 200ms var(--ease) both;
}
.ask-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; max-width: 780px; margin: 0 auto; }
.ask-head {
  flex: none;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-text);
}
.ask-q { flex: 1; min-width: 260px; font-size: 17px; line-height: 1.35; margin: 5px 0 0; }
.ask-why { flex-basis: 100%; font-size: 13px; color: var(--ink-subtle); margin: 0; }
.ask-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.choice {
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  background: var(--page);
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.choice:hover:not(:disabled) { background: var(--ink); color: var(--page); }
.choice:disabled { color: var(--ink-faint); border-color: var(--border); cursor: default; }
/* Deliberately not a button: the escape from the closed set must be available
   without competing with the answers Gnomon actually proposed. */
.choice-own {
  border: 0;
  background: transparent;
  padding: 0 2px;
  font-size: 13px;
  color: var(--ink-subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.choice-own:hover:not(:disabled) { color: var(--ink); }

/* ── The surfaces index ──────────────────────────────────────────────────
   Not a tab beside the conversation — a lens ON it. A session's surfaces are
   already in the canvas in the order they were drawn, so the useful thing is
   to hide everything else, not to build a second list that can disagree. */
.lens {
  position: sticky;
  top: -24px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto -6px;
  padding: 6px 0 8px;
  background: var(--page);
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
  color: var(--ink-faint);
}
.lens-toggle {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--ink-subtle);
  cursor: pointer;
}
.lens-toggle:hover { color: var(--ink); }
.lens-toggle[aria-pressed='true'] { background: var(--panel); color: var(--ink); }
/* :has, so a turn that contributed no surface leaves no empty gap behind. */
body[data-lens='surfaces'] .turn > *:not(.surface) { display: none; }
body[data-lens='surfaces'] .turn:not(:has(.surface)) { display: none; }
body[data-lens='surfaces'] .today { display: none; }

/* ── Prose ───────────────────────────────────────────────────────────────
   The model answers in Markdown, so the canvas renders Markdown. These rules
   exist to make it read like the rest of the product rather than like a README:
   the same hairlines, the same one accent, no borrowed blue for links. */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { font-size: 19px; line-height: 1.45; margin: 0 0 12px; }
.prose ul, .prose ol { font-size: 19px; line-height: 1.45; margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 0 0 4px; }
/* A nested list is a continuation of its parent item, not a new block. */
.prose li > ul, .prose li > ol { margin: 4px 0 0; }
.prose li:last-child { margin-bottom: 0; }
.md-h { font-weight: 500; letter-spacing: -0.02em; margin: 18px 0 8px; }
.prose h1.md-h { font-size: 24px; }
.prose h2.md-h { font-size: 20px; }
.prose h3.md-h, .prose h4.md-h, .prose h5.md-h, .prose h6.md-h {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.md-hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.md-quote {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 2px solid var(--border-strong);
  color: var(--ink-muted);
}
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.86em;
  background: var(--panel);
  padding: 1px 5px;
}
.md-pre {
  margin: 0 0 12px;
  padding: 11px 13px;
  background: var(--panel);
  border-left: 2px solid var(--border-strong);
  overflow-x: auto;
}
/* Inside a block, the panel IS the background — a second one would box it. */
.md-pre code { background: transparent; padding: 0; font-size: 13px; line-height: 1.5; }
.md-table { overflow-x: auto; margin: 0 0 12px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ochre); }
.prose a:hover { background: var(--panel); }

/* A `board:` link: a place on this screen, not a page elsewhere. It reads as a
   link so the sentence still scans, and carries a small mark so the owner can
   tell "this moves the board" from "this leaves". */
.board-link {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
  text-decoration-color: var(--ochre);
}
.board-link::after { content: ' ⌖'; color: var(--ochre-text); text-decoration: none; }
.board-link:hover { background: var(--panel); text-decoration-style: solid; }
.prose del { color: var(--ink-faint); }

/* ── The presence strip ──────────────────────────────────────────────────
   One line, always at the top, never scrolls away. It is fed by the live
   channel, not by anything the owner asked — the kernel folds what they are
   doing on every event, and this is the first place that knowledge has ever
   been shown to them. Today collapses INTO it once a conversation starts. */
.strip-home { max-width: 1180px; margin: 0 auto; }
.strip-home:has(.strip:not([hidden])) { margin-bottom: 14px; }
/* On the board there is no head to sit in, so the strip becomes the board's
   own top bar — the mirror of `.board-foot`. It needs its own layer and its
   own ground, or the cards paint straight over it; and `insets()` in stage.js
   measures it, so a framed card is parked below it instead of under it. */
.board > .strip-home {
  position: absolute;
  top: 10px;
  left: 12px;
  right: calc(var(--ghost-w, 0px) + 12px);
  z-index: 5;
  max-width: none;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: right 320ms var(--ease);
}
.board > .strip-home .strip { padding: 0; border-top: 0; }
/* Nothing in it — hidden, or moved into the Today card: an empty bar is worse than no bar. */
.board > .strip-home:not(:has(.strip:not([hidden]))) { display: none; }
.brief-now { margin-top: 12px; }
.brief-now .strip { justify-content: flex-start; margin: 0; }
.strip {
  display: flex;
  align-items: baseline;
  /* One line. The facts on the left never shrink; Gnomon's last words take what
     is left and truncate. It wrapped before because the words item carried
     nowrap text and a percentage max-width, so flex put the whole item on a
     second row instead of shrinking it. Narrow screens wrap, by media query. */
  flex-wrap: wrap;
  gap: 4px 18px;
  min-width: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--ink-subtle);
  animation: rise 220ms var(--ease) both;
}
.strip > * { flex: none; white-space: nowrap; }
/* Status on the left, what asks or opens on the right, the middle empty. */
.strip-right { margin-left: auto; }
.strip-now { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink); }
/* The owner's own read, asked in the strip: a word and three small acts, settling into the tap. */
.strip-self { display: inline-flex; align-items: center; gap: 5px; }
.strip-self-ask { color: var(--ink-faint); font-size: 12px; }
.strip-now .dot { animation-duration: 2.4s; }
.strip-now[data-idle] .dot { background: var(--ink-faint); animation: none; }
.strip-now[data-flow] .dot { background: var(--green); }
.strip-day { color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.strip-day b { font-weight: 500; color: var(--ink); }
/* The last thing Gnomon said on its own. Ochre, because it is Gnomon's voice
   and not a reading; clickable, because the words came from a conversation the
   owner can open. */
.strip-held { color: var(--ink-faint); }
/* A job in progress. Ochre dot because it is Gnomon acting, not a reading;
   Stop is the owner's one act on it and sits inside the same phrase. */
.strip-work { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink); font-variant-numeric: tabular-nums; }
.strip-stop { border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; color: var(--ink-subtle); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.strip-stop:hover:not(:disabled) { color: var(--ink); }
.strip-stop:disabled { color: var(--ink-faint); cursor: default; text-decoration: none; }

/* The ears. Quiet at rest like every other reading in the strip, but a live
   microphone is the one state in here that is about other people, so listening
   gets the breathing ochre dot and full-strength ink — the same weight the
   strip gives Gnomon acting, because it is. `Ears off` is the deliberate mute
   and reads faintest of the three: it is the absence of a capability. */
.strip-ears { display: inline-flex; align-items: baseline; gap: 7px; border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; color: var(--ink-subtle); cursor: pointer; font-variant-numeric: tabular-nums; }
.strip-ears .dot { animation: none; background: var(--ink-faint); align-self: center; }
.strip-ears:hover:not(:disabled) { color: var(--ink); }
.strip-ears:disabled { cursor: default; }
.strip-ears.is-on { color: var(--ink); }
.strip-ears.is-on .dot { background: var(--ochre); animation: breath 1.6s ease-in-out infinite; }
.strip-ears.is-muted { color: var(--ink-faint); }

/* Today folding into the strip. Height and opacity together, then removal:
   the information does not disappear, it moves up. */
.today { transition: max-height 320ms var(--ease), opacity 220ms var(--ease), margin 320ms var(--ease); overflow: hidden; }
.today[data-collapsing] { max-height: 0 !important; opacity: 0; margin-bottom: 0; padding: 0; border-bottom-width: 0; }

/* ── Gnomon, unprompted ──────────────────────────────────────────────────
   What it decided to say on its own, drawn in the canvas as it arrives. Not a
   turn — nobody asked — so it is not inside one: it sits between turns with
   its own head, the way a colleague leaning over would. */
.unprompted {
  margin: 22px 0 6px;
  padding: 12px 14px 13px;
  border-left: 2px solid var(--ochre);
  background: var(--panel);
  animation: rise 220ms var(--ease) both;
}
.unprompted-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-text);
}
.unprompted-when { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.unprompted .prose p, .unprompted .prose li { font-size: 17px; }
.unprompted-acts { display: flex; gap: 8px; margin-top: 10px; }

/* ── Selecting sessions ──────────────────────────────────────────────────*/
.select {
  flex: none;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 13px;
  color: var(--ink-subtle);
  cursor: pointer;
}
.select:hover { color: var(--ink); border-color: var(--border-strong); }
.select[aria-pressed='true'] { background: var(--panel); color: var(--ink); border-color: var(--border-strong); }

/* In select mode a row is a label around a checkbox: the whole row toggles,
   the box shows the state, and the keyboard gets it for free. */
.session-pick { display: flex; align-items: flex-start; gap: 9px; padding: 8px 6px; border-bottom: 1px solid var(--divider); cursor: pointer; }
.session-pick:hover { background: var(--wash); }
.session-pick[data-picked] { background: var(--panel); }
.session-pick input { margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.session-pick span {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.session-pick[data-picked] span { color: var(--ink); }
.session-pick[data-archived] span { color: var(--ink-faint); font-style: italic; }
/* A session Gnomon itself is using cannot be deleted; the row says so before the
   owner tries, not after. */
.session-pick[data-protected] span::after { content: ' · in use'; font-style: normal; color: var(--ink-faint); font-size: 12px; }

.rail-actions { display: flex; align-items: center; gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--divider); }
.rail-count { flex: 1; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.foot-act {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.foot-act:hover:not(:disabled) { background: var(--ink); color: var(--page); }
.foot-act:disabled { color: var(--ink-faint); border-color: var(--border); cursor: default; }
/* Danger is not red here. It is the one control that asks twice, and the second
   state — filled ink, naming the count — is the warning. */
.foot-act-danger[data-arm] { background: var(--ink); color: var(--page); }

.archived-toggle {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 6px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  color: var(--ink-faint);
  cursor: pointer;
}
.archived-toggle:hover, .archived-toggle[aria-pressed='true'] { color: var(--ink); }

/* ── Habits ──────────────────────────────────────────────────────────────
   Day-end as a strip of ticks, one per day, height = how late. A slope here
   is bedtime drift — the one thing no surprise detector can see. */

/* ── Reach ───────────────────────────────────────────────────────────────*/
.reach-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.reach-head .panel-title { margin: 0; }
.reach-meta { font-size: 12px; color: var(--ink-faint); }
/* The one pill in the product, and it is 999 rather than something in between. */
.pill { font-size: 11px; letter-spacing: 0.04em; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink-subtle); }
.pill[data-on] { background: var(--ink); color: var(--page); border-color: var(--ink); }

/* The strip's count of what was noticed today. A button, because the number is
   an invitation to go and see — it opens the Unsaid tab. */
.strip-count { border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; color: var(--ink-subtle); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.strip-count:hover { color: var(--ink); }


/* ── Micro-interactions ──────────────────────────────────────────────────
   One easing, a handful of durations, and a rule: motion means something
   changed, never decoration. Every button presses; every arrival rises; every
   settlement fades its controls and lets the outcome take their place. Under
   prefers-reduced-motion all of it collapses to a frame, and nothing is lost —
   no meaning lives only in the movement. */
.act, .choice, .new, .send, .foot, .tab, .select, .lens-toggle, .strip-count, .row-ask, .session, .session-pick, .foot-act {
  transition: background 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease), transform 80ms var(--ease), opacity 160ms var(--ease);
}
.act:active, .choice:active, .new:active, .send:active:not(:disabled), .foot:active, .select:active, .foot-act:active { transform: translateY(1px); }

/* What the owner said arrives like everything else does. */
.said { animation: rise 180ms var(--ease) both; }

/* Settling: the acts fade and the outcome rises into their place, so the eye
   is told "this is done" rather than having the buttons vanish under it. */
@keyframes settle-out { to { opacity: 0; transform: translateY(-4px); } }
.approval[data-settled] .approval-acts { display: flex; animation: settle-out 140ms var(--ease) both; pointer-events: none; }
.approval-outcome, .unprompted-outcome { animation: rise 200ms var(--ease) 100ms both; }
.unprompted-outcome { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* ── A question, answered ────────────────────────────────────────────────
   When the owner answers Gnomon's question, the seat leaves and the exchange
   moves up into the chat as a block: what was asked, and — when it was a tap —
   what was answered. The typed answer follows as the owner's own said. It
   arrives with a short ochre pulse on its edge, so the eye finds where the seat
   went. Still interactive: the question is a row that asks why. */
.asked {
  position: relative;
  margin: 22px 0 10px;
  padding: 12px 14px 12px;
  border-left: 2px solid var(--ochre);
  background: var(--panel);
  animation: rise 260ms var(--ease) both, asked-pulse 900ms var(--ease) 120ms both;
}
@keyframes asked-pulse { 0% { box-shadow: -8px 0 0 var(--wash), 8px 0 0 var(--wash); } 30% { box-shadow: -3px 0 0 var(--wash-strong), 0 0 0 var(--wash); } 100% { box-shadow: 0 0 0 var(--wash); } }
.asked-head { display: flex; align-items: baseline; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-text); }
.asked-when { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.asked-q { display: block; width: 100%; margin: 6px 0 0; padding: 2px 0; border: 0; border-bottom: 0; background: transparent; font: inherit; font-size: 17px; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; transition: color 160ms var(--ease); }
.asked-q:hover { color: var(--ochre-text); box-shadow: 0 0 0 var(--wash); }
.asked-why { font-size: 13px; color: var(--ink-subtle); margin: 4px 0 0; }
.asked-a { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--ink-muted); animation: rise 220ms var(--ease) 180ms both; }
.asked-a-label { flex: none; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.asked-foot { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; opacity: 0; transition: opacity 160ms var(--ease); }
.asked:hover .asked-foot, .asked:focus-within .asked-foot { opacity: 1; }
/* The seat leaving: it sinks toward the chat above, then goes. */
.ask[data-leaving] { animation: sink 220ms var(--ease) both; }
.unprompted[data-settled] { border-left-color: var(--border-strong); }
.unprompted[data-settled] .unprompted-head { color: var(--ink-faint); }

/* A tool row finishing: the dot stops breathing and dims, over a beat. */
.tool .dot { transition: background 240ms var(--ease); }

/* Gnomon's question leaving the seat once answered. */
@keyframes sink { to { opacity: 0; transform: translateY(6px); } }
.ask[data-leaving] { animation: sink 160ms var(--ease) both; }

/* The strip's values change under the owner's eyes every 30 seconds; a soft
   crossfade keeps a jump from reading as a glitch. */
.strip > * { transition: opacity 200ms var(--ease); }

/* Keyboard focus is visible everywhere, in ink, one hairline out. */
:where(button, [href], input, select, textarea):focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.input:focus-visible { outline: 0; }

@media (prefers-reduced-motion: reduce) {
  .said, .approval-outcome, .unprompted-outcome, .approval[data-settled] .approval-acts, .ask[data-leaving] { animation-duration: 1ms !important; }
}

/* ── Verdicts ─────────────────────────────────────────────────────────────
   The owner's hand on the record: two small acts that settle into one word. */
.verdicts { display: inline-flex; gap: 6px; align-items: center; }
.act-small { padding: 2px 8px; font-size: 12px; }
/* UC1: a promise's four acts sit quiet until the row is looked at. */
.promise-acts { display: inline-flex; gap: 4px; flex-shrink: 0; opacity: 0.55; transition: opacity 160ms ease-out; }
.row:hover .promise-acts, .promise-acts:focus-within { opacity: 1; }
.verdict-done { color: var(--ink-subtle); font-size: 12px; font-variant: small-caps; letter-spacing: 0.04em; }
button.link { background: none; border: 0; padding: 0; color: var(--ochre-text); font: inherit; cursor: pointer; text-align: left; }
button.link:hover { text-decoration: underline; }
.panel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.panel-head .panel-title { margin: 0; }

/* The shelf — what Gnomon made while the owner was away (views.js shelfSection). */
.shelf { margin-top: 28px; display: grid; gap: 14px; }
.shelf-working { color: var(--ink-subtle); font-size: 0.92em; }
.shelf-card { border-top: 1px solid var(--divider); padding-top: 12px; display: grid; gap: 8px; }
.shelf-card-dim { opacity: 0.45; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shelf-title { font-weight: 600; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; font-weight: 600; }
.shelf-when { color: var(--ink-subtle); font-size: 0.8em; white-space: nowrap; }
.shelf-body { font-size: 0.95em; max-width: 68ch; }
.shelf-body p { margin: 6px 0; }

/* A canvas surface: the model's own drawing, in a frame that runs nothing (surfaces.js canvas). */
.canvas-frame { display: block; width: 100%; border: 0; border-top: 1px solid var(--divider); background: transparent; }
.shelf-card-kept .shelf-title { color: var(--ink-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   THE STAGE — the instrument, as a HUD on paper.

   Same paper, same three inks, same one ochre. What changed is the grammar:
   the page is no longer a document with a rail beside it but a stage with one
   thing in focus and the rest waiting in the wings, small and live, pushed
   back in depth. Frames carry corner brackets and a graduated rule; readings
   are large, light numerals over small tracked labels; figures lie on tilted
   plates and bars stand up off a floor. Nothing lifts — there is still no
   shadow anywhere — depth is done with the one thing that does not lie about
   a flat plane, which is perspective.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── The head ────────────────────────────────────────────────────────────*/
/* The head floats over the wall: one strip of glass, the board running under it. */
.head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7;
  height: var(--head-h);
  display: grid;
  /* NAMED, not auto-placed. `reading-what` is hidden whenever nothing is in
     flight, and a hidden grid item is display:none — so with bare columns every
     later child slid one track left, the flexible `1fr` landed on the MASCOT,
     and the strip was squeezed into a content-width track with a few hundred
     pixels of dead glass sitting to the right of the gnomon. Named areas pin
     each child to its own track, so a missing reading leaves an empty column
     instead of reshuffling the head. */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: 'summons reading ruler mascot';
  align-items: center;
  gap: 0 20px;
  padding: 0 10px 0 6px;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
/* What the page is reading, written on the head's own bottom rule: a 2px ochre
   run that sweeps while a route is in flight, with the routes named above its
   right end. It replaces nothing and covers nothing — a card that is still
   reading keeps its own "Reading…" — it answers the other question, which is
   whether the page is waiting on the machine or has simply finished. */
.reading-line {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9;
  height: 2px;
  pointer-events: none;
}
.reading-run {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.reading-run::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: var(--ochre);
  animation: reading-sweep 1100ms var(--ease) infinite;
}
/* Its own column in the head's grid, between the summons and the presence
   strip — never absolutely placed, so it cannot land on top of the strip's
   own line, and it takes no room at all when there is nothing to read. */
.reading-what {
  grid-area: reading;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre-text);
  white-space: nowrap;
}
@keyframes reading-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(294%);
  }
}
/* The sweep is the only thing saying "still working", so it is not one of the
   three permitted loops — it stops the moment the reading lands. Reduced
   motion gets a still ochre rule instead, present for exactly as long. */
@media (prefers-reduced-motion: reduce) {
  .reading-run::before {
    animation: none;
    width: 100%;
  }
}
.summons { grid-area: summons; display: flex; align-items: center; gap: 2px; }
.summon {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  padding: 2px 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 120ms var(--ease), border-color 120ms var(--ease), background 120ms var(--ease);
}
.summon:hover { color: var(--ink); border-color: var(--border-strong); }
.summon[aria-current='true'] { color: var(--ink); background: var(--panel); }
.summon[aria-current='true']::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; background: var(--ochre); }
.summon-paper { margin-left: 6px; }
.summon-paper span { margin-left: 6px; color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 12px; }
.menu-host { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 4;
  min-width: 190px;
  padding: 4px 0 6px;
  background: var(--page);
  border: 1px solid var(--border-strong);
  animation: rise 160ms var(--ease) both;
}
.menu-group { padding: 8px 12px 3px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
}
.menu-item:hover { background: var(--wash); color: var(--ink); }

/* The strip, re-seated: no rule of its own any more — the head has one.
   It takes the head's flexible track and packs to the far end of it, so the
   readings finish flush against the gnomon and the slack falls in ONE place —
   between the summons and the first reading, where a gap means something:
   navigation on one side, what is happening on the other. Spreading the slack
   across the gaps instead was worse; with five readings on a wide screen it
   put 134px between each and the line stopped reading as a line.

   The gap itself scales with the window, so a wide screen gets air rather than
   the same 14px clump it had before. */
.strip { grid-area: strip; border-bottom: 0; padding: 0; animation: none; overflow: hidden; font-size: 11px; gap: 0 clamp(16px, 1.9vw, 34px); justify-content: flex-end; white-space: nowrap; }
/* Too long a line fades out at its start rather than cutting a word: the newest facts sit at the right, by the gnomon. */
.strip { mask-image: linear-gradient(90deg, transparent, var(--ink) 40px); }

/* ── The gnomon ──────────────────────────────────────────────────────────
   A rod on a plate, casting the shadow the sun would. Everything it does is
   a mood the state sets: it leans in while you type, its shadow sweeps while
   it thinks, its tip lights while it speaks or has a question. */
.mascot { border: 0; background: transparent; padding: 0 2px; cursor: pointer; display: inline-flex; color: var(--ink); }
.mascot svg { display: block; overflow: visible; height: 22px; width: auto; }
.gn-plate { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.gn-tick { stroke: var(--ink-faint); stroke-width: 1; }
.gn-rod { transform-box: view-box; transform-origin: 36px 34px; transition: transform 360ms var(--ease), opacity 400ms var(--ease); }
.gn-rod line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: square; }
.gn-tip { fill: var(--ink-faint); transform-box: fill-box; transform-origin: center; transition: fill 240ms var(--ease), transform 240ms var(--ease); }
.gn-shadow { stroke: var(--ink-faint); stroke-width: 2.5; stroke-linecap: square; opacity: 0.5; transform-box: view-box; transform-origin: 36px 34px; transition: opacity 400ms var(--ease); }
.gn-night .gn-shadow { opacity: 0; }
.mascot:hover .gn-rod { transform: rotate(-4deg); }
.mascot[data-mood='listening'] .gn-rod { transform: rotate(-9deg); }
.mascot[data-mood='thinking'] .gn-shadow { animation: sweep 2.6s ease-in-out infinite alternate; opacity: 0.7; }
.mascot[data-mood='speaking'] .gn-tip { fill: var(--ochre); animation: breath 1.1s ease-in-out infinite; }
.mascot[data-mood='asking'] .gn-tip { fill: var(--ochre); transform: scale(1.7); }
.mascot[data-mood='away'] .gn-rod, .mascot[data-mood='away'] .gn-shadow { opacity: 0.3; }
@keyframes sweep { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }

/* ── The board ───────────────────────────────────────────────────────────
   One space, in depth. The viewport has the perspective; the world carries
   the camera (translate + scale); each card sits at translate3d(x, y, z), so
   a card pushed back recedes and drifts slower when the world pans — real
   parallax from the one thing that does not lie about a flat plane. */
.board {
  position: relative;
  /* clip, never hidden: a focus() inside a card that hangs past the edge would
     scroll a hidden box, and the wall would scroll with it, leaving a bare
     strip of ground — the "weird box" of 2026-09-12. */
  overflow: clip;
  min-height: 0;
  perspective: 2000px;
  perspective-origin: 50% 40%;
  --zoom: 1;
  isolation: isolate;
  background-color: var(--ground);
}
/* Blur is spent once, on the card in front: a blur on every card multiplies
   the re-sampling by the number of cards, and that is what ran hot. The rest
   are thin paper with no blur. */
.pane[data-front], .drill { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
/* …and not even then, while the camera is travelling. A backdrop blur and a
   grayscale filter are both re-sampled on every frame of a pan, zoom or glide,
   for cards that are sliding past too fast to read. They come back the moment
   the camera rests, which is the moment anyone looks. */
.board.moving .pane[data-front] { -webkit-backdrop-filter: none; backdrop-filter: none; }
.board.moving .pane[data-back] { filter: none; }
.board-field { background: var(--glass); }
.pane { --glass: color-mix(in srgb, var(--card) 80%, transparent); }
/* A card in front is a shade more solid: the one being read should not fight its ground. */
.pane[data-front] { --glass: color-mix(in srgb, var(--card) 88%, transparent); }
/* ── The wall picker ──────────────────────────────────────────────────────
   Thumbs in a grid under the head. Hover shows a wall on the board; the kept
   one carries the ochre rule. */
.walls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 5px; padding: 8px 0 2px; max-height: 46vh; overflow: auto; }
.wall { padding: 0; border: 1px solid var(--border); background: var(--wash); aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; }
.wall img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall:hover { border-color: var(--border-strong); }
.wall[aria-checked='true'] { outline: 2px solid var(--ochre); outline-offset: -1px; }
.walls-grid[data-busy] { cursor: progress; }
.walls-grid[data-busy] .wall { pointer-events: none; }

/* ── The ground ───────────────────────────────────────────────────────────
   The space behind the cards is PAPER, not a photograph — the desk the sheet
   of cards lies on, drawn the way the rest of the product is drawn: from the
   two palettes, so it is one ground with two papers rather than one picture
   that only ever suited one of them. A photograph was also the one surface in
   the product a card could not be guaranteed to read against: it brought its
   own contrast, and every glass value here was picked to survive it.

   Four layers, in paint order: a fine weave at 1px, then the sheet's own
   uneven tone — lit at the top-left, falling away at the bottom-right, which
   is what keeps it from reading as a flat fill. It stands still and never
   re-renders; the cards are what moves. */
.board::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--ground);
  background-image:
    repeating-linear-gradient(90deg, var(--paper-fibre) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, var(--paper-fibre) 0 1px, transparent 1px 4px),
    radial-gradient(120% 100% at 16% 0%, var(--paper-lit) 0%, transparent 62%),
    radial-gradient(130% 110% at 88% 100%, var(--paper-shade) 0%, transparent 68%);
}
.world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  transform-style: preserve-3d;
  transition: transform 520ms var(--ease);
}
.board.no-anim .world { transition: none; }

/* A frame: hairline box, four corner brackets, a graduated rule under the
   head. All background — no extra elements, no shadow. */
.pane {
  --bracket: 11px;
  --bk: var(--ink);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  /* head · remark (usually absent) · body */
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--bk), var(--bk)) 0 0 / var(--bracket) 1px,
    linear-gradient(var(--bk), var(--bk)) 0 0 / 1px var(--bracket),
    linear-gradient(var(--bk), var(--bk)) 100% 0 / var(--bracket) 1px,
    linear-gradient(var(--bk), var(--bk)) 100% 0 / 1px var(--bracket),
    linear-gradient(var(--bk), var(--bk)) 0 100% / var(--bracket) 1px,
    linear-gradient(var(--bk), var(--bk)) 0 100% / 1px var(--bracket),
    linear-gradient(var(--bk), var(--bk)) 100% 100% / var(--bracket) 1px,
    linear-gradient(var(--bk), var(--bk)) 100% 100% / 1px var(--bracket),
    var(--glass);
  background-repeat: no-repeat;
  outline: 0;
  cursor: default;
  transition: transform 420ms var(--ease), width 320ms var(--ease), height 320ms var(--ease), opacity 320ms var(--ease), border-color 160ms var(--ease);
}
.pane.dragging { transition: none; }
/* ── Leaving a card ──────────────────────────────────────────────────────
   Two fingers past the end of a card lean it the way you are pushing, and
   take the colour out of it as the next one gets closer. Let go early and it
   springs home on an overshoot curve; carry on and the board steps. The lean
   is the only warning there is, so it has to be visible before the jump. */
.pane { translate: var(--pull-x, 0) var(--pull-y, 0); }
.pane[data-pull] {
  transition: transform 420ms var(--ease), width 320ms var(--ease), height 320ms var(--ease), border-color 160ms var(--ease);
}
/* The card goes quiet as the next one gets closer. Folded into `--pull-fade`
   because opacity here is already the depth's and the zoom's to spend. */
.pane { --pull-fade: 1; }
.pane[data-pull] { --pull-fade: calc(1 - var(--pull-t, 0) * 0.12); }
/* Springing home: a little past the mark and back, the way a held thing settles. */
.pane:not([data-pull]) { transition: translate 420ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 420ms var(--ease), width 320ms var(--ease), height 320ms var(--ease), opacity 320ms var(--ease), border-color 160ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .pane { translate: none; } }
.pane:focus-visible, .pane[data-selected], .pane[data-front] { border-color: var(--border-strong); }
.pane[data-selected] { --bracket: 18px; --bk: var(--ochre); }
/* The card in front wears a breath of the accent in its head; the ones in the
   back lose colour and their body goes quiet — a touch on the head brings them forward. */
.pane[data-front] .pane-head { background-color: color-mix(in srgb, var(--ochre) 9%, var(--card)); }
.pane[data-back] { filter: grayscale(0.45); }
.pane[data-back] .pane-head { cursor: pointer; }
.pane[data-back]:hover { filter: grayscale(0.1); }
/* Gnomon's own cards carry its voice on the left edge. */
.pane[data-by='gnomon'] { border-left: 2px solid var(--ochre); }
.pane[data-back] .pane-body { pointer-events: none; user-select: none; }
.pane-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 4px 8px 4px;
  border-bottom: 1px solid var(--border);
  cursor: grab;
  user-select: none;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 12px) 14px 100% / calc(100% - 28px) 3px no-repeat;
}
.pane.dragging .pane-head { cursor: grabbing; }
.pane-title { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-reading { margin-left: auto; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pane-acts { display: inline-flex; gap: 4px; align-self: center; }
/* What the card is set to (a date, a tab, a query): quiet outlined chips beside the reading, cleared with one press. */
.pane-filters { display: inline-flex; align-items: center; gap: 4px; align-self: center; min-width: 0; }
.pane-filter { border: 1px solid var(--border-strong); padding: 0 6px; font-size: 11px; line-height: 16px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.pane-filter-x { border: 0; background: transparent; padding: 0 2px; font: inherit; font-size: 13px; line-height: 16px; color: var(--ink-faint); cursor: pointer; transition: color 120ms var(--ease); }
.pane-filter-x:hover, .pane-filter-x:focus-visible { color: var(--ink); }
.pane-act { position: relative; width: 18px; height: 18px; border: 0; background: transparent; padding: 0; color: var(--ink-faint); cursor: pointer; transition: color 120ms var(--ease); }
.pane-act:hover { color: var(--ink); }
.pane-dock::before { content: ''; position: absolute; inset: 5px 4px 4px; border: 1px solid currentColor; border-bottom-width: 3px; }
.pane[data-back] .pane-dock::before { border-bottom-width: 1px; border-top-width: 3px; }
.pane-x::before, .pane-x::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.pane-x::after { transform: rotate(-45deg); }
/* No `content-visibility` or `contain: paint` on cards: under a transformed,
   perspective world Chrome painted them where layout last had them, not where
   the camera put them — a card's body drew as a bare slab beside the framed
   one. The chat's turns keep the skip; they scroll normally. */
/* Depth (a receded card) dims it; and once the camera is close (zoom past 1:2),
   every card but the front one fades a little, so a neighbour peeking in at the
   edge reads as the next card in the row, not as a stray box. */
.pane { opacity: calc(var(--depth, 1) * var(--pull-fade) * (1 - clamp(0, (var(--zoom, 1) - 0.5) * 0.7, 0.4))); transition: opacity 240ms var(--ease), transform 420ms var(--ease), width 420ms var(--ease), height 420ms var(--ease); }
/* A card slides to its new place when the row re-tiles (one closed, one moved); under the hand it follows at once. */
.pane.dragging, .board.no-anim .pane { transition: opacity 240ms var(--ease); }
.pane[data-front] { opacity: calc(var(--depth, 1) * var(--pull-fade)); }
/* Row THREE, named out loud, and the two above it likewise.
   The frame is `auto auto minmax(0,1fr)` — head, remark, body — but the remark
   is `hidden` on almost every card, and a hidden element is not a grid item at
   all. So the body fell back to the second track, which is `auto`: it sized to
   its content and left the whole flexible third track standing empty beneath
   it. On a card whose content was taller than the space, that read as a list
   chopped off with a band of dead card under it — the cut the owner kept
   seeing on the strata. Naming the rows makes the body's track the flexible
   one whether or not the remark is there. */
.pane-head { grid-row: 1; }
.pane-remark { grid-row: 2; }
/* Cards scroll up and down, never sideways: whatever runs a few pixels past the edge is clipped, not a scrollbar. */
.pane-body { grid-row: 3; position: relative; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; }
/* A code block inside a card wraps rather than scrolling sideways on its own. */
.pane-body .md-pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }
/* A drill: the detail behind a name, laid over the card it was opened from.
   Glass over glass, so the layer beneath is still felt; Back peels it. */
.drill { position: absolute; inset: 0; overflow: auto; padding: 6px 10px 10px; background: var(--glass); animation: rise 180ms var(--ease) both; }
/* A drill is laid over the card's OWN content, which is still there and still
   as tall as it was. Left scrollable, the card scrolls that buried content
   instead of the drill: the wheel moves the layer off the top of the frame and
   the detail appears to be uncroppable and unscrollable at once. While a drill
   is open the card holds still and the drill is the only thing that scrolls —
   which is also what makes `inset: 0` mean the full height of the frame. */
.pane-body:has(> .drill) { overflow: hidden; }
.drill-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
.drill-back { font-size: 13px; flex: none; }
.drill-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 400; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drill-when:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .drill { animation: none; } }
/* Tight, like an editor pane: the frame is the margin. */
.pane-body > .today, .pane-body > .view, .pane-body > .explore, .pane-body > .entity, .pane-body > .moment-detail, .pane-body > .day-detail, .pane-body > .empty { padding: 6px 10px 10px; }
.pane-body > .today { max-width: 980px; margin: 0 auto; border-bottom: 0; }
.today-part .shelf, .today-part .proposals, .today-part .week { margin-top: 0; padding-top: 0; border-top: 0; }
.today-part .shelf-card:first-child { border-top: 0; }
/* Today's moment, brief and In passing, leading Left for you while Today is off
   the board; with Today on the board they are Today's, and this copy is gone. */
.shelf-lead { display: grid; gap: 14px; }
.shelf-lead > .brief-moment { margin-top: 0; }
.shelf-lead:has(> :not([hidden])) { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--divider); }
#world:has(> .pane[data-pane='today']) .shelf-lead { display: none; }
.pane-body > .rail { max-width: 560px; margin: 0 auto; }
.pane-body > .empty { margin: 10vh auto 0; }
.pane-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 55%, var(--border-strong) 55%, var(--border-strong) 62%, transparent 62%, transparent 78%, var(--border-strong) 78%, var(--border-strong) 85%, transparent 85%); }

/* A note: bare text on the paper, in the hand that wrote it. */
.note { height: 100%; padding: 6px 10px; }
.note-text { display: block; width: 100%; height: 100%; border: 0; background: transparent; padding: 0; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); resize: none; outline: 0; }
.note-text::placeholder { color: var(--ink-faint); }

/* A group: a dashed hairline around its members and a label to drag them by. */

/* The tools: one quiet row at the foot of the board. */
/* One bar of glass at the foot, not a row of separate boxes. */
.board-tools {
  position: absolute;
  left: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2px 4px;
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.board-hint { flex: 1 1 auto; min-width: 0; margin-right: 6px; padding: 4px 6px; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-act {
  border: 0;
  background: transparent;
  padding: 6px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 120ms var(--ease), border-color 120ms var(--ease), background 120ms var(--ease);
}
.board-act:hover:not(:disabled) { color: var(--ochre-text); background: var(--wash); }
.board-act:disabled { color: var(--ink-faint); border-color: var(--divider); cursor: default; }
.board-field { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 4px 6px; font: inherit; font-size: 13px; color: var(--ink); outline: 0; width: 150px; }
.board-menu { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; }


/* ── Figures in depth ────────────────────────────────────────────────────
   Two kinds. A PLATE is a drawing (the dial, a chart, the gauges, the bins):
   it lies tilted on the stage and leans with the pointer, and comes flat to
   you under the hand. A FLOOR holds bars that STAND: the week, the day-ends.
   `--px`/`--py` are the pointer, set on the stage, read here. */
.plate, .surface-body:has(> svg), .gauges, .bins, .focus-track {
  transform: perspective(1400px) rotateX(calc(10deg + var(--py, 0) * -8deg)) rotateY(calc(var(--px, 0) * 7deg));
  transform-origin: 50% 100%;
  transition: transform 260ms var(--ease);
}
.plate:hover, .surface-body:has(> svg):hover, .gauges:hover, .bins:hover, .focus-track:hover { transform: perspective(1400px) rotateX(0) rotateY(0); }
.plate { padding-top: 10px; }

/* When each day ended — said, not drawn.

   This was a strip of leaning slabs, and the owner's verdict was the shortest
   in the audit: "I don't like this one at all with its 3d aspects". Redrawing
   it honestly is what showed that no chart of it can read: nineteen of
   twenty-one nights fall inside sixteen minutes of each other, because the
   sample is clipped at local midnight. Nineteen identical dots is not a
   picture. So the panel is a sentence, its exceptions, and the caveat that
   explains the shape — which is what "say the thing" means when the thing
   is that the measurement is wrong. */
.dayend { display: grid; gap: 8px; }
.dayend-say { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 72ch; }
.dayend-rest { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; max-width: 22rem; }
.dayend-rest li { display: grid; grid-template-columns: minmax(0, 1fr) 4rem; gap: 10px; font-size: 13px; color: var(--ink-muted); }
.dayend-rest-at { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; }
/* Gnomon explaining its own measure, so it takes Gnomon's colour. */
.dayend-caveat { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ochre-text); max-width: 72ch; }

/* ── Readings ────────────────────────────────────────────────────────────
   Large, light, tabular numerals over small tracked labels. */
.numeral { font-size: 40px; font-weight: 300; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.today-head { align-items: flex-end; padding-bottom: 14px; }
.observed { display: inline-flex; align-items: baseline; gap: 8px; }
.gauge-value { font-weight: 300; font-size: 28px; }
.view-title { font-weight: 300; font-size: 26px; letter-spacing: -0.03em; }

/* ── Doors ───────────────────────────────────────────────────────────────
   Any name that opens its own pane says so with an underline in the
   hairline tone, ochre under the hand. */
.door { cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color 120ms var(--ease); }
.door:hover, .door:focus-visible { text-decoration-color: var(--ochre); }
.door:focus-visible, .door-mark:focus-visible, .row-door:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.door-pair { display: inline-flex; align-items: center; }
/* A person the calendar sent as a bare address: drawn as the guess it is. */
.inferred { color: var(--ochre-text); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.door-mark { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: 1px solid var(--ink-faint); cursor: pointer; transition: border-color 120ms var(--ease), background 120ms var(--ease); }
.door-mark:hover { border-color: var(--ink); background: var(--ochre); }
.row-door { cursor: pointer; }
.row-door:hover { background: var(--wash); }
.row-door .panel-value { color: var(--ink-muted); font-size: 13px; }

/* A figure in the transcript, and its place while it is on the stage. */
.surface-head .stage-act {
  margin-left: auto;
  border: 1px solid var(--border);
  background: transparent;
  padding: 1px 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}
.surface-head .stage-act:hover { color: var(--ink); border-color: var(--ink); }
.surface-stub { display: flex; gap: 10px; align-items: baseline; margin: 14px 0 6px; padding: 6px 12px; border-left: 2px solid var(--border); font-size: 12.5px; color: var(--ink-faint); }
.pane-body > .surface { padding: 6px 10px 10px; border: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.pane-body > .surface .surface-body { min-height: 0; display: grid; align-content: center; }
.pane-body > .surface .surface-body > svg { width: 100%; max-height: 100%; }
.pane-body > .surface .stage-act { display: none; }
/* The frame's head already names it. */
.pane-body > .surface > .surface-head { display: none; }

/* ── Explore ─────────────────────────────────────────────────────────────*/
.explore { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.explore-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; border-bottom: 1px solid var(--border-strong); padding-bottom: 8px; }
.explore-field { flex: 1; min-width: 240px; border: 0; background: transparent; padding: 0; font: inherit; font-size: 24px; font-weight: 300; letter-spacing: -0.025em; color: var(--ink); outline: 0; }
.explore-field::placeholder { color: var(--ink-faint); }
.explore-bar:focus-within { border-bottom-color: var(--ink); }
.explore-field::-webkit-search-cancel-button { display: none; }
.explore-hint { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }

/* One search: the reading, then the corpora it was read from. */
.found-all { display: grid; gap: 22px; }
.found { display: grid; gap: 2px; }
.found-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border-strong); padding-bottom: 5px; }

/* Gnomon's own voice, in the block it wears everywhere else: the 2px ochre
   rule over sunken paper. Not a new container — the same one the unprompted
   block and the question seat already use. */
.found-reading {
  padding: 12px 15px 13px;
  border-left: 2px solid var(--ochre);
  background: var(--panel);
  animation: rise 220ms var(--ease) both;
}
.found-reading-head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-text);
}
.found-reading-text { font-size: 17px; line-height: 1.45; color: var(--ink); margin: 6px 0 0; max-width: 68ch; }
/* Waiting on the model. It is a sentence that is not there yet, not an error
   and not a spinner, so it says so in the register a missing value uses. */
.found-reading[data-waiting] .found-reading-text { color: var(--ink-faint); }
.found-reading[data-unavailable] { border-left-color: var(--border-strong); }
.found-reading[data-unavailable] .found-reading-head { color: var(--ink-faint); }
.found-reading[data-unavailable] .found-reading-text { font-size: 13px; color: var(--ink-subtle); }

.hits { display: grid; gap: 0; }
.hit {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 2px 16px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  padding: 9px 0 10px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  animation: rise 240ms var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 30ms);
  transition: background 120ms var(--ease);
}
.hit:hover { background: var(--wash); box-shadow: -8px 0 0 var(--wash), 8px 0 0 var(--wash); }
.hit-kind { grid-row: 1 / span 3; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
/* The label and the instant on one baseline: a hit says WHAT it is first and
   WHEN it was second, and the time is never repeated in the evidence line. */
.hit-line { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.hit-label { font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-when { flex: none; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.hit-text { font-size: 13px; line-height: 1.45; color: var(--ink-subtle); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }
.hit[data-open] .hit-text { -webkit-line-clamp: unset; display: block; }
/* A conversation hit carries no score: that index is a literal text match, and
   a bar drawn from a ranking that was never computed would be a lie a reader
   cannot catch. Two rows, not three. */
.hit-said .hit-kind { grid-row: 1 / span 2; }
.hit-said .hit-label { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.hit-score { display: block; height: 2px; width: 120px; margin-top: 4px; background: var(--wash-strong); }
.hit-score-fill { display: block; height: 100%; background: var(--ink-muted); }
.roster { display: grid; gap: 14px; }
.roster-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.roster-kind {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 84px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 12px 7px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 120ms var(--ease), background 120ms var(--ease), color 120ms var(--ease);
}
.roster-kind:hover { border-color: var(--border-strong); color: var(--ink); }
.roster-kind[aria-pressed='true'] { background: var(--panel); border-color: var(--border-strong); color: var(--ink); }
.roster-kind-n { font-size: 24px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; text-transform: none; }
.roster-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.roster-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  padding: 6px 0;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  animation: rise 240ms var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 18ms);
}
.roster-item:hover { color: var(--ink); background: var(--wash); box-shadow: -6px 0 0 var(--wash), 6px 0 0 var(--wash); }
.roster-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-n { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* An entity: its facts as a timeline, current first. */
.entity, .moment-detail, .day-detail { max-width: 880px; margin: 0 auto; }

/* ── A moment, drawn once ────────────────────────────────────────────────
   Stacked blocks, not a field dump: one sentence, the reading marked AS a
   reading, the owner's own words quoted, then the evidence. Shared by the
   moment card, the day and the strata, so the shape is learned once. */
.moment-detail { display: grid; gap: 14px; align-content: start; }
.md-head { display: grid; gap: 3px; }
.md-sentence { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); max-width: 62ch; }
.md-when { margin: 0; font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); }
.md-intent .found-reading-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
/* The reading is inferred and the page says so where the reading is, not in a
   legend somewhere else. */
.md-flag { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: none; }
.md-narrative { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-subtle); max-width: 68ch; }
.md-block { display: grid; gap: 5px; }
.md-title { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
/* First-party evidence: what the owner actually said. It gets the voice rule
   and the largest type on the page after the sentence itself. */
.md-quote { margin: 0; padding: 2px 0 2px 13px; border-left: 2px solid var(--border-strong); font-size: 15px; line-height: 1.5; color: var(--ink); max-width: 64ch; }
/* Which copy of the speech this is, and the two acts on it. The badge is not
   decoration: the cleaned copy is a model's reading until the owner accepts it,
   and the two are otherwise indistinguishable. */
.md-heard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.md-heard-acts { display: flex; gap: 6px; flex: none; }
.md-quote[data-copy='raw'] { color: var(--ink-subtle); }
.md-focus, .md-cost { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-subtle); }
.md-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.md-chip { font-size: 11px; letter-spacing: 0.02em; color: var(--ink-faint); border: 1px solid var(--divider); padding: 1px 6px; }
/* A day: the numbers, then every moment in it as a row. The rows are the
   `.moment` grammar Today already uses, so nothing new is learned here. */
.day-detail .moment { border-bottom: 1px solid var(--divider); }
.day-detail .moment:last-child { border-bottom: 0; }
.day-projects { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.day-more { font-size: 12px; padding: 8px 0 0; }
/* What a sensor saw, one line each. A comma run hides that these are separate
   observations; a list says how many there were without counting them out. */
.saw { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.saw li { font-size: 13px; line-height: 1.45; color: var(--ink-subtle); padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-head { flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.entity-head .act { margin-left: auto; }
.facts { display: grid; gap: 0; }
/* ── A stacked block ─────────────────────────────────────────────────────
   Long text down the page, not across it. A table column is the wrong
   container for a paragraph: every cell is as narrow as the widest column
   allows, so a two-line question and a six-line answer both wrap into a
   ribbon. The body carries the rule, because the body is the part worth
   reading. */
.blocks { display: grid; }
.sb { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.sb:last-child { border-bottom: 0; }
.sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sb-headline { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); max-width: 72ch; }
.sb-body { padding-left: 13px; border-left: 2px solid var(--border-strong); }
.sb-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.sb-sub { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-subtle); max-width: 76ch; }
.sb-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.sb-chip { font-size: 11px; letter-spacing: 0.02em; color: var(--ink-faint); border: 1px solid var(--divider); padding: 1px 6px; }
/* A block that went wrong says so in its rule, not with a colour word. */
.sb[data-tone='wrong'] .sb-body { border-left-color: var(--ochre); }
.sb[data-tone='quiet'] .sb-headline { color: var(--ink-subtle); }

/* ── A belief, as a sentence ─────────────────────────────────────────────
   `usesTool → Code` was the storage, printed. This is the same fact said out
   loud, with what stands behind it underneath: where it came from, how often
   the record corroborated it, how sure, since when. */
.fact-line { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.fact-line:last-child { border-bottom: 0; }
.fact-said { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.fact-sentence { font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.fact-because { margin: 0; font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); }
/* What the owner said themselves, marked — it outranks anything inferred and
   the page should not make them work out which is which. */
.fact-line[data-owner='true'] .fact-sentence { font-weight: 500; }
.fact-line[data-owner='true'] .fact-because { color: var(--ochre-text); }
.fact-line.fact-gone .fact-sentence { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--border-strong); }
/* The opacity fade that used to live here is gone: a control that disappears
   at rest is a hidden affordance, and the row control rule near `.mem-open`
   now covers both `.fact-acts` and `.verdicts` with the word kept and the box
   taken. */

.fact {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto auto auto;
  gap: 0 16px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  animation: rise 240ms var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 22ms);
}
.fact-pred { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-obj { min-width: 0; overflow-wrap: anywhere; }
.fact-when, .fact-from { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pane-body { container-type: inline-size; }
/* A narrow card stacks a fact: the predicate above, the object full width, the when tucked away. */
@container (max-width: 560px) {
  .fact { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .fact-pred { grid-column: 1 / -1; }
  .fact-when { display: none; }
  .fact-add { grid-template-columns: minmax(0, 1fr); }
}
.fact-acts { display: inline-flex; gap: 4px; opacity: 0; transition: opacity 120ms var(--ease); }
.fact:hover .fact-acts, .fact-acts:focus-within, .fact-acts:has(.verdict-done) { opacity: 1; }
.fact-add { grid-template-columns: 150px minmax(0, 1fr) auto; border-bottom: 1px solid var(--border-strong); }
.fact-field { border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 3px 0; font: inherit; font-size: 13px; color: var(--ink); outline: 0; min-width: 0; }
.fact-field:focus { border-bottom-color: var(--ink); }
.fact-field::placeholder { color: var(--ink-faint); }
.entity-head .act { margin-left: auto; }
.fact-gone { color: var(--ink-faint); }
.fact-gone .fact-obj { text-decoration: line-through; text-decoration-color: var(--border-strong); }
.moment-detail .cmd-head { margin: 0; }
.moment-detail .md-pre { margin: 8px 0 0; }

/* ── Small screens ───────────────────────────────────────────────────────
   One column: the wings become a row under the focus, flat. */
@media (max-width: 960px) {
  .board { perspective: none; }
  .board-hint { display: none; }
  /* Two columns here, so the head's four-column areas have to be restated or
     they name tracks that no longer exist and every child piles into cell one.
     The strip drops to its own row and packs left again: wrapped lines cannot
     be justified without tearing holes in them. */
  /* Three stacked rows cannot live in a 28px head. It was fixed at that height
     while the strip sat on its own row below, so the summons and the readings
     were drawn over each other and the board started underneath both. The head
     grows to its rows here, and `--head-h` — which is what everything below
     offsets itself by — grows with it. */
  .shell { --head-h: 62px; }
  .head { height: auto; min-height: var(--head-h); grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'summons mascot' 'reading reading' 'strip strip'; gap: 6px 14px; padding: 8px 14px; }
  .strip { flex-wrap: wrap; justify-content: flex-start; mask-image: none; }
  .summons { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .numeral { font-size: 30px; }
  .pane-body > .today, .pane-body > .view, .pane-body > .explore, .pane-body > .entity, .pane-body > .moment-detail, .pane-body > .day-detail { padding: 16px 16px 24px; }
  .hit { grid-template-columns: minmax(0, 1fr); }
  .hit-kind { grid-row: auto; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .plate, .surface-body:has(> svg), .gauges, .bins, .focus-track { transform: none; }
  .world, .pane { transition: none; }
}

/* ── The sundial ─────────────────────────────────────────────────────────
   Today's face is the instrument the product is named for: hours along a
   half-circle, the gnomon standing at the centre, its shadow on the hour. The
   face is a plate — tilted at rest, flat under the hand — and a time machine:
   the shadow follows the pointer, the ruler under it changes the day. */
.sundial { display: grid; gap: 6px; margin: 0 auto 10px; max-width: 900px; }
.sd-stage {
  position: relative;
  container-type: inline-size;
  transform: perspective(1400px) rotateX(calc(14deg + var(--py, 0) * -8deg)) rotateY(calc(var(--px, 0) * 6deg));
  transform-origin: 50% 100%;
  transition: transform 320ms var(--ease);
}
.sd-stage:hover { transform: perspective(1400px) rotateX(0) rotateY(0); }
.sd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sd-notyet { fill: var(--wash); }
.sd-energy { fill: color-mix(in srgb, var(--ochre) 16%, var(--card)); }
.sd-energy-line { fill: none; stroke: var(--ochre); stroke-width: 2.5; stroke-linejoin: round; }
.sd-floor { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.sd-rim { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.sd-tick-h { stroke: var(--ink); stroke-width: 1.5; }
.sd-tick-q { stroke: var(--border-strong); stroke-width: 1; }
.sd-hour { fill: var(--ink-faint); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; transition: fill 160ms var(--ease); }
.sd-hour-lit { fill: var(--ink); }
.sd-meeting { stroke: var(--navy); stroke-width: 3; opacity: 0.55; }
.sd-work { fill: none; stroke: var(--ink); stroke-width: 5; }
.sd-moment { fill: none; stroke-width: 10; cursor: pointer; transition: stroke-width 160ms var(--ease); outline: 0; }
.sd-moment.sd-deep { stroke: var(--ink); }
.sd-moment.sd-steady { stroke: var(--ink-subtle); }
.sd-moment.sd-shallow { stroke: var(--superseded); }
.sd-moment:hover, .sd-moment.sd-lit { stroke-width: 18; }
.sd-moment:focus-visible { stroke: var(--ochre); }
.sd-shadow { stroke: var(--ink-faint); stroke-width: 4; stroke-linecap: square; opacity: 0.55; transform-box: view-box; transform-origin: 600px 520px; }
.sd-pinned .sd-shadow { stroke: var(--ink); opacity: 0.85; }
.sd-tip { fill: var(--ochre); }
:root[data-mood='thinking'] .sd-shadow { animation: sd-sweep 2.6s ease-in-out infinite alternate; }
@keyframes sd-sweep { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* The gnomon on the face. The same figure as the head's, standing where the shadow starts. */
.sd-gnomon { position: absolute; left: 50%; top: calc(520 / 560 * 100%); width: 4.4%; aspect-ratio: 40 / 60; transform: translate(-50%, -100%); pointer-events: none; }
.sd-gnomon svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 93%; transition: transform 360ms var(--ease), opacity 400ms var(--ease); }
.sd-plate { fill: var(--page); stroke: var(--border-strong); }
.sd-rod { stroke: var(--ink); stroke-width: 3; stroke-linecap: square; }
.sd-rodtip { fill: var(--ink-faint); transition: fill 240ms var(--ease), transform 240ms var(--ease); transform-box: fill-box; transform-origin: center; }
:root[data-mood='listening'] .sd-gnomon svg { transform: rotate(-7deg); }
:root[data-mood='speaking'] .sd-rodtip { fill: var(--ochre); animation: breath 1.1s ease-in-out infinite; }
:root[data-mood='asking'] .sd-rodtip { fill: var(--ochre); transform: scale(1.6); }
:root[data-mood='away'] .sd-gnomon svg { opacity: 0.35; }


/* The reading, in the open middle of the face. */
.sd-reading { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.4cqw; text-align: center; pointer-events: none; width: 40%; white-space: nowrap; }
.sd-numeral { font-size: 5.4cqw; }
.sd-date { font-size: max(9px, 1.15cqw); }
.sd-of { font-size: max(10px, 1.4cqw); }
.sd-date { color: var(--ink-faint); }
.sd-read-hour { fill: var(--ink); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sd-read-what { fill: var(--ink-muted); font-size: 14px; }

/* The day ruler: a native range drawn as a graduated rule. Fourteen ticks, one
   per day, the thumb an ochre square, the weekday initials beneath. */
.sd-ruler { display: grid; gap: 0; padding: 0 5px; }
.sd-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background:
    repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px calc((100% - 1px) / 13)) 0 4px / 100% 8px no-repeat,
    linear-gradient(var(--border), var(--border)) 0 12px / 100% 1px no-repeat;
  cursor: pointer;
}
.sd-range::-webkit-slider-runnable-track { height: 16px; background: transparent; }
.sd-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; margin-top: 3px; background: var(--ochre); border: 0; }
.sd-range::-moz-range-track { height: 16px; background: transparent; }
.sd-range::-moz-range-thumb { width: 10px; height: 10px; background: var(--ochre); border: 0; border-radius: 0; }
.sd-range:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.sd-days { display: flex; justify-content: space-between; padding-top: 3px; }
.sd-day { width: 10px; text-align: center; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); transition: color 160ms var(--ease); }
.sd-day-today { color: var(--ochre-text); }
.sd-day-shown { color: var(--ink); font-weight: 500; }
.sundial[data-today='false'] .sd-numeral { color: var(--ink-muted); }

@media (max-width: 720px) {
  .sd-read-what { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-stage { transform: none; }
}

/* ── The conversation card ───────────────────────────────────────────────
   The conversation is a card (the `chat` pane). `#ghost` keeps its old id and
   class so every seam still resolves; here it only fills its card's body:
   the transcript scrolls, Gnomon's question and the composer stay at the foot. */
.ghost {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
}
.pane[data-pane='chat'] > .pane-body { padding: 0; overflow: hidden; }
.ghost-toggle { display: none; }
.ghost { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.thread-bar { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.thread-pick { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; border: 0; background: transparent; padding: 4px 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.thread-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-pick-mark { flex: none; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.thread-pick-mark::after { content: ' ▾'; }
.thread-pick[aria-expanded='true'] .thread-pick-mark::after { content: ' ▴'; }
.thread-pick:hover .thread-pick-mark, .thread-pick[aria-expanded='true'] .thread-pick-mark { color: var(--ink); }
/* The thread list, laid over the transcript's own row so the composer stays put. */
.ghost > .thread-picker { grid-row: 2; grid-column: 1; z-index: 2; min-height: 0; overflow: auto; background: var(--card); border-bottom: 1px solid var(--border); }
.thread-picker > .rail { padding: 12px 16px 16px; }
.thread-bar .act { height: 26px; padding: 0 10px; font-size: 12px; }
/* Where a side thread joined the conversation. */
.brought { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; padding-top: 8px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-subtle); }
.brought-label, .followup-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
/* A follow-up line is a later Gnomon line: the label sits on its own row, clear of the reply above. */
.followup-label { display: block; margin: 14px 0 2px; }
/* The seat's old grid names would open a second column here; in the card they are plain rows. */
.ghost > .canvas, .ghost > .ask, .ghost > .bar { grid-area: auto; grid-column: 1; }
.ghost > .thread-bar { grid-row: 1; }
.ghost > .canvas { grid-row: 2; }
.ghost > .ask { grid-row: 3; }
.ghost > .bar { grid-row: 4; }
.ghost > .canvas { height: auto; min-width: 0; padding: 14px 20px 12px; overflow-x: hidden; }
.ghost .prose { overflow-wrap: anywhere; }
.ghost .md-pre, .ghost .md-table { max-width: 100%; }
html, body { overflow: clip; }
/* One reading column for the whole card: the messages, Gnomon's question and
   the composer share its width and its centre. */
.ghost { --measure: 42rem; }
.ghost .stack { max-width: var(--measure); }
.ghost .bar, .ghost .ask { padding-inline: max(16px, calc((100% - var(--measure)) / 2)); }
.ghost .prose p, .ghost .prose ul, .ghost .prose ol { font-size: 16px; line-height: 1.55; }
.ghost .bar { padding-block: 10px 14px; border-top: 1px solid var(--border); background: transparent; }
.ghost .input { max-width: none; margin-left: 0; font-size: 17px; line-height: 28px; min-height: 28px; }
.ghost .send { margin-right: 0; height: 30px; }
.ghost .ask { padding-block: 12px; }
.ghost .ask-inner { max-width: none; }
.ghost .lens { top: -18px; max-width: none; }
.ghost .empty { margin: 8vh 0 0; }

/* ── Gnomon pointing ─────────────────────────────────────────────────────
   A walk step, a focus with words, a notice: Gnomon's own voice, in the chat,
   with a door to the card it means. The board only edges that card. */
.point { display: grid; gap: 4px; margin: 10px 0 6px; padding: 8px 10px; border: 1px solid transparent; }
.point[tabindex] { cursor: pointer; }
.point[tabindex]:hover, .point[tabindex]:focus-visible { background: var(--wash); outline: none; }
.point[data-current] { border-color: var(--border-strong); }
.point-n { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ochre-text); font-variant-numeric: tabular-nums; }
.point-text p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.point[data-kind='aside'] .point-text p { font-size: 13px; color: var(--ink-subtle); }
.point-cards { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.point-card { border: 0; padding: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink-subtle); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; cursor: pointer; }
.point-card::before { content: '→ '; text-decoration: none; display: inline-block; margin-right: 2px; }
.point-card:hover { color: var(--ink); text-decoration-color: currentColor; }
.point-acts { display: flex; gap: 6px; margin-top: 4px; }
.point-acts .act { height: 28px; padding: 0 12px; font-size: 13px; }
.walk-say { display: grid; margin: 10px 0 6px; }
.walk-say > .point { margin: 0; }
.walk-say > .point-acts { padding-left: 10px; }
/* A question with choices: the options are buttons, one line of your own below. */
.question { display: grid; gap: 14px; margin: 10px 0 6px; padding: 10px 12px; border: 1px solid var(--border-strong); }
.question-item { display: grid; gap: 8px; }
.question-detail { font-size: 13px; color: var(--ink-subtle); }
.question-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.question-choice { display: grid; gap: 2px; min-height: 32px; padding: 6px 12px; border: 1px solid var(--border-strong); background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.question-choice:hover:not(:disabled) { background: var(--wash); }
.question-choice[data-suggested] { border-color: var(--ochre); }
.question-choice[data-chosen] { background: var(--wash); border-color: var(--ink); }
.question-choice:disabled:not([data-chosen]) { color: var(--ink-faint); border-color: var(--border); cursor: default; }
.question-choice-sub { font-size: 12px; color: var(--ink-faint); }
.question-own { height: 30px; padding: 0 10px; border: 1px solid var(--border); background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.question-own:focus { outline: none; border-color: var(--border-strong); }
.question[data-answered] .question-own { display: none; }
.question-said { margin: 0; font-size: 14px; color: var(--ink); }
.question-said::before { content: 'You said: '; color: var(--ink-faint); }

/* @ a thread: the matching threads, just above the composer. */
.mention-menu { display: grid; margin-bottom: 6px; border: 1px solid var(--border-strong); background: var(--card); max-height: 220px; overflow: auto; }
.mention { border: 0; border-bottom: 1px solid var(--divider); background: transparent; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention:first-child { background: var(--wash); }
.mention:hover { background: var(--wash); }
/* Choices stack: each carries a reason, and a column reads faster than a wrap. */
.question-choices { display: grid; }

.turns { position: relative; }
.turns-pick { border: 0; background: transparent; padding: 4px 0; font: inherit; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); cursor: pointer; }
.turns-pick:hover, .turns-pick[aria-expanded='true'] { color: var(--ink); }
.turns-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; width: min(420px, 70vw); max-height: 360px; overflow: auto; display: grid; border: 1px solid var(--border-strong); background: var(--card); }
.turns-none { padding: 8px 10px; font-size: 13px; color: var(--ink-faint); }
/* The top of a long thread: the recent turns are drawn, the rest wait behind one act. */
.earlier { padding: 4px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--divider); font-size: 12.5px; }
/* The meter moves from the thread list into the chat's own bar. */
.thread-bar .companion-meter { display: flex; align-items: center; gap: 6px; min-width: 7rem; margin-top: 0; }

/* The card being talked about, on the board: an ochre edge for a moment, no words. */
.pane[data-pointed] { border-color: var(--ochre); }
/* Finished tool lines fold into one once there are three. */
.work-fold { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 3px 0; font: inherit; font-size: 13px; color: var(--ink-faint); cursor: pointer; text-align: left; }
.work-fold::before { content: ''; width: 6px; height: 6px; flex: none; background: var(--ink-faint); }
.work-fold::after { content: '▸'; font-size: 9px; }
.work-fold[aria-expanded='true']::after { content: '▾'; }
.work-fold:hover { color: var(--ink); }
.work:has(> .work-fold):not([data-open]) > .tool[data-done] { display: none; }
/* Useful / Not now / Wrong: on the latest answer, or when the pointer is on one. */
.ghost .stack > .turn:not(:last-child) .verdicts { opacity: 0; transition: opacity 160ms var(--ease); }
.ghost .stack > .turn:hover .verdicts, .ghost .stack > .turn:focus-within .verdicts { opacity: 1; }
/* Floating, the conversation shows only the turn in progress. */
.float-chat .stack > :not(:last-child) { display: none; }

/* ── The floating conversation ───────────────────────────────────────────
   The chat card's own #ghost, lifted over the board while Gnomon talks
   somewhere else. Solid paper and a strong hairline: it sits over cards, so it
   must read as a separate sheet without a shadow. */
.float-chat {
  position: fixed;
  right: 16px;
  bottom: 60px;
  z-index: 8;
  width: min(440px, calc(100vw - 32px));
  height: min(52vh, 520px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--border-strong);
  animation: rise 180ms var(--ease) both;
}
.float-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
.float-name { flex: 1; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.float-chat:not([data-talking]) .float-dot { animation: none; background: var(--ink-faint); }
.float-x { width: 24px; height: 24px; border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; position: relative; }
.float-x::before, .float-x::after { content: ''; position: absolute; left: 7px; right: 7px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.float-x::after { transform: rotate(-45deg); }
.float-x:hover { color: var(--ink); background: var(--wash); }
.float-chat .ghost { --measure: 100%; }
.float-chat .ghost > .thread-bar { display: none; }
.float-chat .ghost > .canvas { padding: 10px 14px 8px; }
.float-chat .ghost .prose p, .float-chat .ghost .prose ul, .float-chat .ghost .prose ol { font-size: 14px; line-height: 1.5; }
.float-chat .ghost .input { font-size: 15px; line-height: 24px; min-height: 24px; }
.float-chat .ghost .bar { padding: 8px 12px 10px; }
.float-chat .ghost .model, .float-chat .ghost .perm { display: none; }
.chat-away { padding: 28px 24px; font-size: 13px; color: var(--ink-faint); }

/* ── Gnomon's voice over the board ───────────────────────────────────────
   A caption: one line, ochre rule, gone after a while. A walk: a small card
   at the top of the board the owner pages through — the play-by-play. */
/* A thin ROW that arrives on the board.
   Not a panel over it: the camera opens a band of space at the top of what the
   owner is looking at, this drops into it from above, and the space closes
   behind it. It lives in the world, so it belongs to the board and pans with
   it — but stage.js sizes it from screen pixels through the camera's scale
   (`--band` is 1/zoom), so it reads the same at any zoom. A notice that cannot
   be read has failed at the one thing it does. */
.notice {
  position: sticky;
  top: 0;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  min-height: 54px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--ochre);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  animation: notice-in 300ms var(--ease) both;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.notice-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  /* Two lines at most: this is a row, and a row that grows to fit its text is
     a card. Anything longer belongs in the conversation. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* The owner's replies. Sized through `--band` like everything else in the row,
   so they stay a thumb's width at any zoom. The first one is the one Gnomon
   expects, in ink rather than muted — a question with no leaning answer is
   two identical buttons and a pause. */
.notice-act {
  flex: none;
  padding: 4px 10px;
  font-size: 11px;
  border-width: 1px;
}
.notice-act-first { color: var(--ochre-text); border-color: var(--ochre); }
/* An `ask` has no clock, so it leans on the eye instead: a heavier left rule. */
.notice[data-kind='ask'] { border-left-width: 5px; }
.notice-x {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 120ms var(--ease);
}
.notice-x:hover { color: var(--ink); }
.notice-x::before,
.notice-x::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.notice-x::after { transform: rotate(-45deg); }
/* The countdown, as a thing you can watch: the full width of the row at the
   start, nothing at the end. Linear, because a clock does not ease. */
.notice-run {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ochre);
  transform-origin: left;
  animation-name: notice-run;
  animation-timing-function: linear;
  animation-fill-mode: both;
}
/* In from above, out the same way — it is a row arriving, not a box fading. */
@keyframes notice-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes notice-run {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.notice[data-gone] { opacity: 0; clip-path: inset(0 0 100% 0); }
@media (prefers-reduced-motion: reduce) {
  /* The five seconds still pass; they are just not animated into a moving
     thing, and the row appears rather than drops. */
  .notice { animation: none; }
  .notice-run { animation: none; }
}
.walk {
  position: fixed;
  left: 12px;
  bottom: 52px;
  z-index: 6;
  width: min(420px, calc(100% - var(--ghost-w, 0px) - 24px));
  display: grid;
  gap: 8px;
  padding: 10px 14px 12px;
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--ochre);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  animation: rise 240ms var(--ease) both;
}
.walk-head { display: flex; align-items: baseline; gap: 10px; }
.walk-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre-text); }
.walk-count { margin-left: auto; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.walk-head .pane-act { align-self: center; }
.walk-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.walk-acts { display: flex; gap: 6px; justify-content: flex-end; }
.walk-next { color: var(--ink); border-color: var(--border-strong); }
.board-act-danger[data-arm] { background: var(--ink); color: var(--page); border-color: var(--ink); }
@media (max-width: 720px) {
  /* The notice needs nothing here: stage.js measures the viewport for it. */
  .walk { width: calc(100% - 28px); }
}

/* ── Kanban ──────────────────────────────────────────────────────────────*/
.kb { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 12px; padding: 6px 10px 10px; height: 100%; min-height: 0; }
.kb-col { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.kb-items { display: grid; gap: 0; align-content: start; overflow-y: auto; }
.kb-item {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--divider);
  background: transparent;
  padding: 9px 4px 10px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.kb-item:hover { background: var(--wash); }
.kb-item:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.kb-title { font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kb-sub { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ── The Work card ───────────────────────────────────────────────────────
   Gnomon's work, one block per turn, one row per call. The plan above it is
   the owner's to edit. A waiting question lands here too. */
.work-card { padding: 6px 10px 10px; display: grid; gap: 18px; align-content: start; }
/* The four seats. Each is a ruled section, not a box: the card is the only
   frame, and a section inside a frame is a hairline and an eyebrow. */
.work-seat { display: grid; gap: 8px; }
.work-seat + .work-seat { border-top: 1px solid var(--border); padding-top: 14px; }
.work-seat-title { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.work-seat-body { display: grid; gap: 10px; }
/* The standing: four readings, then one line of plain words. Small for a
   reading (24px) because this card is mostly a list and the numbers frame it
   rather than lead it. */
.work-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.work-stat { display: grid; gap: 1px; }
.work-stat-n { font-size: 24px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.work-standing-line { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-subtle); max-width: 62ch; }
/* A job that is not the open one: waiting above, closed below, one grammar. */
.work-jobs { display: grid; gap: 0; }
.work-job { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--divider); }
.work-job-mark { width: 7px; height: 7px; align-self: center; border: 1px solid var(--ink-faint); }
.work-job[data-mark='waiting'] .work-job-mark { border-color: var(--ochre); }
.work-job[data-mark='shelved'] .work-job-mark { background: var(--ink); border-color: var(--ink); }
.work-job[data-mark='failed'] .work-job-mark, .work-job[data-mark='timed-out'] .work-job-mark { background: var(--ochre); border-color: var(--ochre); }
.work-job-what { display: grid; gap: 1px; min-width: 0; }
.work-job-title { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-job-why { font-size: 11.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-job[data-mark='on'] .work-job-mark { background: var(--ink); border-color: var(--ink); }
.rule-acts { display: flex; gap: 6px; align-self: start; }
.rule-row .work-job-why { white-space: normal; }
.rule-row .work-job-mark { align-self: start; margin-top: 7px; }
.rule-edit { grid-column: 2 / -1; display: grid; gap: 8px; padding: 6px 0 4px; }
.rule-spec { width: 100%; resize: vertical; padding: 8px 10px; border: 1px solid var(--border); background: var(--page); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: 1.5; color: var(--ink); }
.rule-spec:focus-visible { border-color: var(--ink); outline: none; }
.rule-edit .panel-note { margin: 0; }
.work-job-meta { font-size: 11.5px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* `nothing` is the outcome that means the job found no reason to speak. It is
   not a failure and not a find, so it stays the faint hollow mark. */
/* The job: Gnomon working on its own, at the top of the card. */
.job { display: grid; gap: 8px; padding: 6px 0 12px; border-bottom: 1px solid var(--border-strong); }
.job-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.job-head .dot { align-self: center; animation-duration: 2s; }
.job-title { font-size: 17px; font-weight: 400; letter-spacing: -0.005em; color: var(--ink); }
.job-meta { font-size: 12px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.job-stop { margin-left: auto; }
.job-steps { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 4px; }
.job-none { margin: 0; font-size: 13px; color: var(--ink-faint); }
.work-plan .col-head { margin-bottom: 4px; }
.work-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.work-step { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; }
.work-step::before { content: ''; flex: none; width: 7px; height: 7px; border: 1px solid var(--ink-faint); align-self: center; }
.work-step[data-status='completed']::before { background: var(--ink); border-color: var(--ink); }
.work-step[data-status='in_progress']::before { background: var(--ochre); border-color: var(--ochre); animation: breath 1.6s ease-in-out infinite; }
.work-step[data-status='skipped'] { color: var(--ink-faint); }
.work-step[data-status='skipped'] .work-step-text { text-decoration: line-through; text-decoration-color: var(--border-strong); }
.work-step-text { flex: 1; min-width: 0; }
.work-step-acts { display: inline-flex; gap: 2px; opacity: 0; transition: opacity 120ms var(--ease); align-self: center; }
.work-step:hover .work-step-acts, .work-step:focus-within .work-step-acts { opacity: 1; }
.work-step-up::before { content: ''; position: absolute; left: 6px; top: 7px; width: 5px; height: 5px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.work-step-skip::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: currentColor; }
.work-plan-add { width: 100%; border: 0; border-bottom: 1px solid var(--divider); background: transparent; padding: 6px 0; font: inherit; font-size: 13px; color: var(--ink); outline: 0; }
.work-plan-add:focus { border-bottom-color: var(--ink); }
.work-plan-add::placeholder { color: var(--ink-faint); }
.work-turn { border-top: 1px solid var(--border); }
.work-summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 6px; cursor: pointer; list-style: none; font-size: 12px; color: var(--ink-muted); }
.work-summary::-webkit-details-marker { display: none; }
.work-summary::before { content: ''; width: 6px; height: 6px; border-right: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); transform: rotate(-45deg); align-self: center; transition: transform 160ms var(--ease); }
.work-turn[open] > .work-summary::before { transform: rotate(45deg); }
.work-when { font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.work-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-row { display: grid; grid-template-columns: 6px auto minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; padding: 5px 0; border-top: 1px solid var(--divider); font-size: 12.5px; }
.work-row .dot { align-self: center; }
.work-row[data-done] .dot { animation: none; background: var(--ink-faint); }
.work-row[data-failed] .dot { background: var(--ochre); }
.work-row[data-failed] .work-out { color: var(--ochre-text); }
.work-name { font-weight: 500; color: var(--ink); white-space: nowrap; }
.work-arg { color: var(--ink-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; }
.work-out { grid-column: 2 / 4; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-out:empty { display: none; }
.work-ms { grid-column: 4; grid-row: 1; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-ask { margin-top: 8px; padding: 10px 12px; border-left: 2px solid var(--ochre); background: var(--panel); display: grid; gap: 6px; }
.work-ask .eyebrow { color: var(--ochre-text); }
.work-ask-q { margin: 0; font-size: 15px; line-height: 1.35; }

/* ── Notes as Markdown, and the web on the board ─────────────────────────*/
.note-md { height: 100%; cursor: text; font-size: 15px; line-height: 1.5; color: var(--ink); overflow: auto; }
.note-md > :first-child { margin-top: 0; }
.note-md p, .note-md ul, .note-md ol { margin: 0 0 10px; }
.note-md .md-h { margin: 12px 0 6px; }
/* The page takes the card. `max-height: 38%` on the excerpt resolved against an
   `auto` grid track, which is to say against nothing, so the reading was cut at
   an unpredictable place with no sign it had been. The excerpt is capped in
   lines now and scrolls; the frame takes everything left. */
.web { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; height: 100%; padding: 12px 14px 14px; }
/* The site's own bar — a different thing from the words under it, so it looks
   like one: quieter, ruled off, domain first. */
.web-head { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--ink-faint); padding-bottom: 7px; border-bottom: 1px solid var(--divider); }
.web-domain { color: var(--ink-muted); font-weight: 500; letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-stamp { font-variant-numeric: tabular-nums; }
.web-link { margin-left: auto; flex: none; color: var(--ink-muted); text-decoration-color: var(--border-strong); }
.web-excerpt { font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); max-height: 14em; overflow: auto; }
.web-excerpt p { margin: 0 0 6px; }
.web-frame { width: 100%; height: 100%; border: 1px solid var(--border); background: var(--page); }
.web-refused { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-faint); }
/* Refused: the frame goes, and the reading takes the room it was holding —
   the excerpt IS the card then, not a caption above an empty rectangle. */
.web[data-frame='refused'] { grid-template-rows: auto minmax(0, 1fr) 0 auto; }
.web[data-frame='refused'] .web-frame { display: none; }
.web[data-frame='refused'] .web-excerpt { max-height: none; }
.web:not([data-frame='refused']) .web-refused { display: none; }
.web:not([data-frame='held']) .web-hold { display: none; }
.web[data-frame='held'] .web-frame { display: none; }
.web-hold { justify-self: start; align-self: start; }

/* The walk's dwell note. */
.walk-gone { font-size: 12px; color: var(--ochre-text); }
.walk-dwell { margin-right: auto; align-self: center; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em; }

/* ── Strata ──────────────────────────────────────────────────────────────
   The fortnight as a core sample: layers, newest on top, one cell an hour.
   Drawn at one unit per pixel into the box it was measured against, and flat:
   this is a card of labels, and a leaning layer resamples every one of them.
   The borehole is the one loud reading, in the row under it. */
/* The strata is a picture, not a text column, so it takes the whole card in
   both directions. `.view`'s 880px reading cap is right for prose and was
   wrong here twice over: it left a third of the card empty, and — because the
   drawing used to be a fixed 1200-wide viewBox squeezed into it — it is what
   shrank every label to about eight pixels. The picture is now drawn at one
   user unit per pixel, so it must be given the box it is measured against. */
.view:has(> .view-body > .strata) { max-width: none; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.view:has(> .view-body > .strata) > .view-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.strata { display: grid; gap: 10px; grid-template-rows: auto minmax(0, 1fr) auto auto; flex: 1; min-height: 0; }
.strata-head { display: flex; align-items: baseline; gap: 12px; }
.strata-sub { font-size: 12px; color: var(--ink-faint); }
/* No lean. The slab used to tilt with the pointer like the other plates, and
   a rotated layer is composited off its pixel grid: every label came out soft.
   The card's own subject is depth, so it cost the one thing it was for — the
   relief in the layers says it, and says it sharply. */
.strata-slab { min-height: 0; }
/* Inside Rhythm the strata sit above other sections in a scrolling card, so they take a height of their own instead of the card's. */
.rhythm-card .strata { flex: none; }
.rhythm-card .strata-slab { height: clamp(320px, 52vh, 520px); }
.strata-svg { display: block; width: 100%; height: 100%; }
.strata-hour { font-size: 13px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
/* The word over each right-hand column. `26c` and `15sw` were a unit the owner
   could not say out loud — named once at the top, with a bar under each number
   so there is something in the picture to check it against. */
.strata-unit { font-size: 14px; fill: var(--ink-faint); }
.strata-bar { fill: var(--ink-muted); }
.strata-faint-bar { fill: var(--ink-faint); }
.strata-grid { stroke: var(--divider); stroke-width: 1; }
.strata-layer { cursor: pointer; outline: 0; }
/* The sample settles, once, when the fortnight lands: each hour's band grows
   up off the floor it stands on — sediment laid down, which is the card's own
   metaphor rather than a fade borrowed from somewhere else. Two staggers
   compose, the layer's and the hour's, so the sweep runs diagonally and is
   over inside 570ms.
   Only the BARS move. The whole layer used to `rise` as well, which meant the
   empty frame the card draws while the fortnight is still loading vanished and
   came back — the grid blinking is not news, the data arriving is.
   Gated on `[data-settle]`, which `strata.js` sets on the first drawing that
   has data and drops after. Every paint rebuilds these nodes, so an ungated
   animation replayed the whole thing each time the card was resized. */
.strata-svg[data-settle] .strata-cell {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: strata-settle 260ms var(--ease) both;
  animation-delay: calc(min(var(--i, 0), 12) * 18ms + var(--h, 0) * 5ms);
}
@keyframes strata-settle { from { transform: scaleY(0.04); } to { transform: scaleY(1); } }
.strata-bed { fill: var(--wash); }
/* Invisible, and the reason the hover does not stutter: see strata.js. */
.strata-hit { fill: transparent; }
.strata-floor { stroke: var(--divider); stroke-width: 1; }
/* Two readings, two marks, and only ONE of them is loud. The borehole is the
   ochre box down an hour; the layer under the hand is a whisper across the
   grid, so the crossing still has a subject. Drawn with the same box in the
   same ochre and both read as the answer, which is one answer too many. */
.strata-frame { fill: var(--wash-strong); stroke: var(--ink-faint); stroke-width: 1; pointer-events: none; opacity: 0; transition: opacity 160ms var(--ease); }
/* The right-hand numbers are a small table beside the picture, not more of it:
   each value lights as its OWN box, because the three are three readings. */
.strata-box { fill: var(--wash-strong); stroke: var(--ink-faint); stroke-width: 1; pointer-events: none; opacity: 0; transition: opacity 160ms var(--ease); }
/* Reading the DAY draws the band over the grid and takes its three numbers up
   into the ochre the day label is already in — a colour, not a second set of
   boxes, because a box is how a CELL answers and the day is not a cell.
   Reading ONE number boxes that cell alone. A cell sits inside the layer, so
   the layer is hovered too: `:not(:has(…))` is what tells the two apart, and
   it is written as one condition rather than as a rule that turns the band
   back off, because rules at equal specificity are decided by file order. */
.strata-layer:hover:not(:has(.strata-count:hover)) .strata-frame, .strata-layer:focus-visible .strata-frame,
.strata-count:hover .strata-box { opacity: 1; }
.strata-layer:hover:not(:has(.strata-count:hover)) .strata-num,
.strata-layer:focus-visible .strata-num { fill: var(--ochre-text); }
.strata-layer:hover:not(:has(.strata-count:hover)) .strata-bar,
.strata-layer:focus-visible .strata-bar { fill: var(--ochre); }
.strata-count { cursor: default; }
.strata-cell { fill: var(--ink); transition: opacity 640ms var(--ease); }
.strata-blind .strata-bed { fill: none; stroke: var(--border); stroke-dasharray: 3 3; }
.strata-missing .strata-bed { fill: none; stroke: var(--border); }
.strata-meeting { fill: var(--ochre); }
.strata-deep { fill: var(--ink); }
.strata-day { font-size: 15px; fill: var(--ink-muted); font-variant-numeric: tabular-nums; }
.strata-layer:hover .strata-day { fill: var(--ochre-text); }
.strata-num { font-size: 14px; fill: var(--ink-muted); font-variant-numeric: tabular-nums; }
.strata-faint { fill: var(--ink-faint); }
.strata-hole { fill: var(--ochre); fill-opacity: 0.16; stroke: var(--ochre); stroke-width: 1; pointer-events: none; transition: x 120ms var(--ease), opacity 200ms var(--ease); }
.strata-bore { min-height: 1.4em; font-size: 14px; color: var(--ink); padding: 6px 0 4px; border-top: 1px solid var(--divider); font-variant-numeric: tabular-nums; }
/* The five readings' worth of height, held from the first frame. The list
   arrives after the dials do, and it used to arrive as ONE line and finish as
   five: the slab is the flexible row, so every line that landed took height
   off the picture and redrew the whole sample smaller under the owner's eye.
   Five 14px lines at 1.4, plus four 4px gaps. `insights()` can return at most
   five, so the box never has to grow. */
.strata-insights { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; align-content: start; min-height: calc(5 * 1.4 * 14px + 4 * 4px); }
.strata-insights li { font-size: 14px; line-height: 1.4; color: var(--ink-muted); padding-left: 14px; position: relative; }
.strata-insights li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--ochre); }
@media (prefers-reduced-motion: reduce) {
  .strata-svg[data-settle] .strata-cell { animation: none; }
}

/* ── A lens ──────────────────────────────────────────────────────────────
   A view Gnomon composed over one read tool, drawn live. The foot says what
   it reads and when it last did. */
/* A column, not a stack pinned to the top: the graph used to take a third of
   the height at full width and leave the rest of the card empty. The body takes
   what is left and scrolls inside it, so a lens fills the card it was given. */
.lens { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.lens-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); flex: 0 0 auto; }
.lens-body { min-height: 0; flex: 1 1 auto; overflow: auto; }
.lens-stat { display: flex; align-items: baseline; gap: 12px; padding: 12px 0 4px; }
.lens-dots { display: grid; }
.lens-foot { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); font-variant-numeric: tabular-nums; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
/* Says the card re-reads. A lens pasted as board text cannot wear this. */
.lens-live { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); border: 1px solid var(--divider); padding: 0 4px; }

/* ── Settings ────────────────────────────────────────────────────────────
   A card like any other: a name, a line about what it decides, and the
   choices as one row of pills. Nothing here is a modal. */
.settings { padding: 6px 10px 10px; display: grid; gap: 2px; align-content: start; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 9px 0; border-bottom: 1px solid var(--divider); }
.set-name { display: grid; gap: 1px; min-width: 0; }
.set-label { font-size: 15px; color: var(--ink); }
.set-hint { font-size: 12px; color: var(--ink-faint); line-height: 1.35; }
.set-warn { color: var(--ochre-text); }
.set-opts { display: flex; gap: 2px; flex: none; }
.set-opt {
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.set-opt:hover { color: var(--ink); background: var(--wash); }
.set-opt[aria-checked='true'] { color: var(--ink); border-color: var(--border-strong); background: var(--wash-strong); }
.set-opt:focus-visible { outline: 1px solid var(--ink); outline-offset: 1px; }
/* A level not earned yet (W5 step 10): present, so the owner sees it exists, and not pressable. */
.set-opt:disabled, .set-opt:disabled:hover { cursor: not-allowed; opacity: 0.5; color: var(--ink-faint); background: transparent; }
/* A macOS grant: a dot and a word, on the setup page and in Settings. */
.grant-state { font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-muted); }
.grant-state::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); }
.grant-state[data-state='on'] { color: var(--green); }
.grant-state[data-state='on']::before { background: var(--green); }
.grant-state[data-state='off'] { color: var(--ochre-text); }
.grant-state[data-state='off']::before { background: var(--ochre); }
.set-perm { display: flex; align-items: center; gap: 12px; flex: none; }
/* A narrow card: the switch goes under its name instead of past the edge. */
@container (max-width: 480px) {
  .set-row { grid-template-columns: minmax(0, 1fr); }
  .set-perm, .set-opts { flex-wrap: wrap; }
}
a.set-opt { text-decoration: none; }
/* What the chosen level actually means, in Gnomon's own words. */
.set-said { margin: 6px 0 2px; padding-left: 11px; border-left: 2px solid var(--ochre); font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.set-sep { height: 10px; }
/* A section of the card: the system's frame label, with the air above it and the hairline under it. */
.set-title { margin: 22px 0 0; padding: 0 0 7px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); border-bottom: 1px solid var(--border); }
/* A refinement of the row above it (the night shift's caps, hearing meetings): set in, on its own rule. */
.set-row[data-under] { margin-left: 14px; padding-left: 12px; border-left: 1px solid var(--divider); }
/* What waits for a restart, and the restart itself. Stands above the rows while there is something to say. */
.set-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 2px; padding: 9px 12px; background: var(--card); border: 1px solid var(--border-strong); position: sticky; top: 0; z-index: 1; }
.set-wait[hidden] { display: none; }
.set-wait .grant-state { white-space: normal; line-height: 1.4; }
.set-row[data-changed] .set-label::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: middle; border-radius: 999px; background: var(--ochre); }
.set-note { margin: 8px 0 0; }
.set-text { align-items: center; gap: 6px; }
.set-input { width: min(300px, 60vw); padding: 4px 8px; font: inherit; font-size: 13px; color: var(--ink); background: var(--page); border: 1px solid var(--border-strong); }
.set-input::placeholder { color: var(--ink-faint); }
.set-input:focus-visible { outline: 1px solid var(--ink); outline-offset: 1px; }
.set-foot { margin: 10px 0 0; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* The owner asked for stillness. Same stop the machine's own setting makes,
   from the record rather than from the OS, so every tab is still together. */
:root[data-motion='reduced'] *,
:root[data-motion='reduced'] *::before,
:root[data-motion='reduced'] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
:root[data-motion='reduced'] .plate,

/* ── The composer's own row ──────────────────────────────────────────────
   What Gnomon thinks with, what you can hand it, and Say. The model sits here
   rather than in the rail's foot because it is a property of the turn you are
   about to take, not of the list of threads. */
/* Its own row under the field. `.bar` wraps, and without a full-width basis
   this row rode up beside the textarea and squeezed it to half the measure. */
.bar-acts { flex: 0 0 100%; display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.bar-spacer { flex: 1; }
.bar-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.bar-act svg { width: 16px; height: 16px; display: block; }
.bar-act:hover { color: var(--ink); background: var(--wash); }
.bar-act:focus-visible { outline: 1px solid var(--ink); outline-offset: 1px; }
/* Recording: the one moment the composer is doing something on its own. */
.bar-act[aria-pressed='true'] { color: var(--ochre-text); border-color: var(--ochre); }
.bar-act[aria-pressed='true'] svg { animation: breath 1.4s ease-in-out infinite; }
.bar-act[data-busy] { color: var(--ink-faint); pointer-events: none; }
.bar-act[data-busy] svg { animation: breath 1s ease-in-out infinite; }
/* In the composer the picker is a quiet chip, and its menu opens upward. */
/* The picker's hairline belongs to the rail's foot, where it separates the
   model from the rows above it. In the composer there is nothing above it, so
   it drew a stub rule over one flex item and nothing else. */
.bar-acts .model { position: relative; min-width: 0; margin-top: 0; border-top: 0; padding-top: 0; }
.bar-acts .model-pick { max-width: 240px; }

/* How much this turn may do on its own. Ask is the quiet default and reads like
   the rest of the composer's furniture; Auto takes the ochre border the record
   button takes, because both are states where something is happening without
   the owner's hand on it. No fill and no breathing dot: Auto is a standing
   permission, not an act in progress, and it must not compete with the ears in
   the strip, which IS one. */
.perm {
  flex: none;
  height: 28px;
  /* A hairline in BOTH states. Borderless it read as a stray word rather than a
     control — the owner looked straight past it — and a switch nobody finds is
     a switch that does not exist. */
  border: 1px solid var(--border);
  background: transparent;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 120ms var(--ease), background 120ms var(--ease), border-color 120ms var(--ease);
}
.perm:hover:not(:disabled) { color: var(--ink); background: var(--wash); }
.perm:focus-visible { outline: 1px solid var(--ink); outline-offset: 1px; }
.perm:disabled { cursor: default; }
.perm.is-auto { color: var(--ochre-text); border-color: var(--ochre); }

/* The owner's remark on a card: a line under its head, on the ochre rule that
   marks a voice rather than a reading. The card carries a mark in its head so
   a remarked card is findable when it is small. */
.pane-say::before { content: ''; position: absolute; inset: 5px 4px 6px; border: 1px solid currentColor; border-bottom-color: transparent; }
.pane-say::after { content: ''; position: absolute; left: 5px; bottom: 4px; width: 4px; height: 4px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.pane[data-remarked] .pane-say { color: var(--ochre-text); }
.pane-remark { padding: 5px 10px 6px; border-bottom: 1px solid var(--divider); }
.remark-text {
  display: block;
  width: 100%;
  border: 0;
  border-left: 2px solid var(--ochre);
  background: transparent;
  padding: 0 0 0 9px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-muted);
  text-align: left;
  cursor: text;
}
.remark-text:hover { color: var(--ink); }

/* Peek: the whole screen steps back to a whisper so the wall can be judged on
   its own. EVERY card goes back by the same amount and in the same way — the
   settings card included, which used to be exempt and so kept a full sheet of
   paper over the very thing being chosen. One rule, no special case for the
   card that happens to hold the picker.
   The thumbs stay lit: they are what is being chosen between, and a grid of
   ghosts cannot be chosen from. The board's tool row stays lit too — it
   carries the Esc hint, and Esc is the way out of a peek.
   Only opacity moves — nothing is hidden and nothing loses its hit area, so
   hovering and clicking through the whisper work exactly as they did. */
:root[data-peek] .pane:not([data-pane='settings']) { opacity: 0.08; }
:root[data-peek] .ghost { opacity: 0.12; }
:root[data-peek] .head { opacity: 0.12; }
/* The settings card whispers to the same 0.08 as every other card — but by its
   PARTS, not as one element. An ancestor's opacity is a group, and two things
   inside have to sit brighter than the card holding them: the thumbs, because
   a wall cannot be chosen from a grid of ghosts, and the Peek switch, because
   it is the way back. So the card's paper goes and its rows whisper, while the
   wall row's own controls stay lit. */
:root[data-peek] .pane[data-pane='settings'] {
  /* Its paper is KEPT, not removed — the card has to read as the same card as
     the one beside it. A neighbour at `opacity: 0.08` shows its paper at 8% of
     the 80% glass, its bracket marks at 8% of full ink, and its hairline at 8%
     of the border. Those are the three numbers below, applied to the tokens
     instead of to the element, so the thumbs inside can still sit brighter
     than the card holding them. */
  --glass: color-mix(in srgb, var(--card) 6%, transparent);
  --bk: color-mix(in srgb, var(--ink) 8%, transparent);
  border-color: color-mix(in srgb, var(--border) 8%, transparent);
  /* The card is the FRONT card, so it carries the 14px glass — and that film
     lay over the whole wall, which is the one thing peek exists to show. A
     neighbour at 0.08 shows almost none of its own blur, so neither does this.
     The grid below takes it instead, at the size of the images. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-peek] .set-row { border-bottom-color: transparent; }
:root[data-peek] .pane[data-pane='settings'] > .pane-head,
:root[data-peek] .set-body > *:not(.set-wall),
:root[data-peek] .set-wall > .set-row > .set-name { opacity: 0.08; }
/* The glass, exactly around the images — and around the Peek switch, which is
   the way back and has to stay readable over whatever wall is behind it. A
   ground for them to be read against, ending where they end. */
:root[data-peek] .set-wall .set-opts,
:root[data-peek] .walls-grid {
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
:root[data-peek] .set-wall .set-opts { padding: 3px 4px; }
:root[data-peek] .wall { opacity: 0.9; transition: opacity 140ms var(--ease); }
:root[data-peek] .wall:hover,
:root[data-peek] .wall:focus-visible,
:root[data-peek] .wall[aria-checked='true'] { opacity: 1; }

/* ── The board's foot ────────────────────────────────────────────────────
   One thin bar over the board's bottom edge: the gnomon, Find, the day
   ruler, where-you-are, then the board's tools at the right. `.board-foot`,
   not `.foot` — that class is already a rail button (l.643).
   ponytail: the tools keep their own rules; here they only stop floating. */
.board-foot {
  position: fixed;
  left: 12px;
  right: calc(var(--ghost-w, 0px) + 12px);
  bottom: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: right 320ms var(--ease);
}
.board-foot .mascot { width: 26px; height: 26px; margin-right: 6px; flex: none; }
/* Signed out: the one line that says why nothing on the page reads any more. */
.foot-out { flex: none; margin-right: 10px; font-size: 12px; color: var(--ochre-text); white-space: nowrap; }
.foot-out code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--ink); }
/* In the foot the toolbar is a flex item: it must be allowed to shrink (min-width: 0), or its hint text
   pushes LOAD past the window's right edge, as it did at 1512 px. The hint inside ellipsizes. */
.board-foot .board-tools { position: static; left: auto; bottom: auto; margin-left: auto; flex: 0 1 auto; min-width: 0; max-width: none; border: 0; padding: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* WHEN the board is looking. One control, so it reads as one thing: four
   presets and a ruler for a single day, sharing a rule and a gap. */
.span { display: flex; align-items: center; gap: 2px; flex: none; margin-left: 14px; }
.span-chip {
  border: 0;
  padding: 2px 7px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.span-chip:hover { color: var(--ink); }
.span-chip[aria-pressed='true'] { color: var(--ink); background: var(--panel); }
.ruler { width: 150px; flex: none; display: grid; align-self: center; margin: 0 14px 0 8px; padding-left: 10px; border-left: 1px solid var(--divider); }
.ruler .sd-range { height: 12px; background-position: 0 2px, 0 9px; }
.ruler .sd-range::-webkit-slider-runnable-track { height: 12px; }
.ruler .sd-range::-webkit-slider-thumb { width: 8px; height: 8px; margin-top: 2px; }
.ruler .sd-days { padding-top: 0; }
.ruler .sd-day { width: 8px; font-size: 8px; }
.ruler .sd-day-shown { color: var(--ink); }
/* Where you are. One tick per card; the one in focus is filled. */
.map { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.map-lane { display: flex; gap: 3px; }
.map-tick { width: 14px; height: 3px; flex: none; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; transition: background 160ms var(--ease), height 160ms var(--ease); }
.map-tick:hover { background: var(--ink-muted); }
.map-tick[aria-current='true'] { background: var(--ochre); height: 6px; }
@media (max-width: 720px) { .ruler, .map { display: none; } }

/* ── Goals ───────────────────────────────────────────────────────────────
   A goal is a foldable ROW, not a stacked block. The first build put the why,
   a meta line and four buttons on every one of thirteen goals at rest, and the
   owner read it in one look: "a lot of information shown at once". So closed is
   one line — mark, name, state, small facts — and the paragraph, the lists and
   the verbs wait inside. The same three sizes a moment comes in.

   The state word is a word, not a colour. `--tone-*` tints it only enough to be
   found while scanning; the word carries the meaning and comes from `status.js`
   like every other status on the board. */
.goal-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.goal-panel-head .panel-note { margin: 0; }
.goal-panel-head .act { flex: none; }
.goal-list { display: grid; }

.goal { border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.goal:last-child { border-bottom: 0; }
/* A grid, not a flex row, for three reasons. The nudge needs to sit under the
   name on a second line without pushing the columns around; the state wants a
   column of its OWN, because the eye scanning thirteen goals is scanning for
   states and a state that floats to wherever its name ends is thirteen words at
   thirteen x positions; and the trail must begin and end at the same x on every
   row or the column of them is thirteen pictures instead of one. Every track
   after the name is fixed, which is what holds both of those still. */
.goal-line { display: grid; grid-template-columns: auto minmax(0, 1fr) 5.5rem 6rem 200px; align-items: baseline; gap: 2px 10px; padding: 9px 0; cursor: pointer; list-style: none; }
/* Each summary is its own grid, which is why these are numbers rather than
   `max-content`: tracks do not align across thirteen separate grids. */
/* Below this the trail is the first thing to go: it is the nicety, the name and
   the state are the card. */
@media (max-width: 860px) { .goal-trail-cell, .goal-legend { display: none; } .goal-line { grid-template-columns: auto minmax(0, 1fr) 5.5rem 6rem; } }

.goal-line::-webkit-details-marker { display: none; }
.goal-line:hover { background: var(--wash); }
/* The mark sits at the same place on every row and turns when the row opens —
   the one piece of motion here, and it says the row moved. */
.goal-caret { flex: none; display: inline-flex; color: var(--ink-faint); transition: transform 140ms var(--ease), color 140ms var(--ease); }
.goal[open] > .goal-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.goal-line:hover .goal-caret { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .goal-caret { transition: none; } }
.goal-name { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.goal-state { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.goal-state[data-tone='open'] { color: var(--ochre-text); }
.goal-state[data-tone='done'] { color: var(--green); }
.goal-state[data-tone='bad'] { color: var(--ink); }
/* The small facts, pushed to the far edge so the names stay one readable column
   down the left and the numbers line up down the right. */
.goal-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: 2px 14px; white-space: nowrap; font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.goal-open { display: grid; gap: 12px; padding: 2px 0 16px 21px; }
.goal-open-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); }
.goal-open .sb-body { padding-left: 13px; border-left: 2px solid var(--border-strong); }

/* Four ways to change a state, on thirteen rows, was fifty-two bordered boxes
   drawn over the thing the owner came to read. They live inside the fold now —
   a verb belongs where you went to act — and they still keep their word at rest
   and take the box under the hand. */
.goal-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.goal-acts .act { border-color: transparent; color: var(--ink-faint); transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.goal:hover .goal-acts .act, .goal:focus-within .goal-acts .act { border-color: var(--border-strong); color: var(--ink-muted); }
.goal-acts .act:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--page); }
@media (prefers-reduced-motion: reduce) { .goal-acts .act { transition: none; } }
.goal-said { font-size: 12px; color: var(--ink-subtle); }

/* A child is one step in, under the parent that claims it. The rule is the
   claim: without it the indent reads as a stray margin. */
.goal-child { padding-left: 18px; border-left: 1px solid var(--border); }
/* Quiet for a fortnight. The row keeps every word it had — it is greyed, not
   hidden, because a goal nobody has touched is still a goal they said. The one
   loud thing on it is the question, because a question is Gnomon speaking. */
.goal[data-tone='quiet'] .goal-name, .goal[data-tone='quiet'] .goal-state { color: var(--ink-subtle); }
.goal-nudge { grid-column: 2 / -1; margin: 1px 0 0; font-size: 13px; line-height: 1.5; color: var(--ochre-text); max-width: 72ch; }

/* ── Adding one ──────────────────────────────────────────────────────────
   A form is a question, so it takes the tone the client already gives a
   question: `--panel`, the sunken paper the question seat and the approval use.
   That is what separates it from the list under it — not a border, and
   certainly not a shadow.

   The two text fields are underlines, like every other field on the board, and
   they are sized to what goes in them rather than to the card: a goal is a
   sentence, so the name gets a reading width and the larger type, and the why
   gets the same width one step down. The row under them is the small print —
   a date, a parent, and the one verb. */
/* The goals card's form, shared with the asks card's routing door: both are a
   question put to the owner in a panel of fields, and one set of declarations
   is cheaper than a second that drifts out of step with it. */
:is(.goal-form, .question-form) { display: grid; gap: 14px; margin: 6px 0 4px; padding: 16px 18px 18px; background: var(--panel); }
:is(.goal-form-row, .question-form-row) { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 20px; }
.goal-field { display: grid; gap: 4px; min-width: 0; }
.goal-field > span { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); transition: color 120ms var(--ease); }
.goal-field:focus-within > span { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .goal-field > span { transition: none; } }
:is(.goal-form, .question-form) .proposal-other { width: 100%; max-width: none; background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 4px 2px; color: var(--ink); }
/* A goal IS its name, so the name is the one thing set at reading size. */
:is(.goal-form, .question-form) > .goal-field:first-child .proposal-other { font-size: 19px; font-weight: 300; letter-spacing: -0.01em; padding-bottom: 6px; }
/* One width for both, in rem rather than in ch: 56ch of 19px type and 56ch of
   15px type are two different pixel widths, and two underlines ending at two
   different x is the ragged edge this form had. */
:is(.goal-form, .question-form) > .goal-field .proposal-other { max-width: 34rem; }
:is(.goal-form-row, .question-form-row) .goal-field { flex: 0 1 auto; }
.goal-form-row .proposal-other { min-width: 9rem; max-width: 11rem; }
/* The routing door's name field is a person or a project, not two words of
   date, so it takes the reading width the claim beneath it takes. */
.question-form-row .proposal-other { min-width: 12rem; max-width: 22rem; }
/* The picker is as wide as its widest goal name otherwise — 870px of select for
   two words of answer. */
:is(.goal-form, .question-form) .select { height: 30px; max-width: 22rem; width: 100%; color: var(--ink); }
:is(.goal-form, .question-form) .act { flex: none; }
:is(.goal-form, .question-form) .act-on { background: var(--ink); color: var(--page); border-color: var(--ink); }
:is(.goal-form, .question-form) .act-on:hover:not(:disabled) { background: var(--ochre); border-color: var(--ochre); color: var(--page); }
:is(.goal-form, .question-form) .panel-note { margin: 0; }
/* The box ring belongs to a control that has a box. On an underline field it
   draws a rectangle around something with no rectangle, which is what the
   global `:where(...)` rule did here. The underline inks instead, and the label
   above it goes full ink — two changes, both unmissable, both made of the
   field's own material. */
:is(.goal-form, .question-form) :is(input, select):focus-visible { outline: 0; }
/* Hung off the FIELD, not the input: the label and the control are one thing,
   and lighting both from one state is what makes the focus unmissable without a
   box. It also means the indicator cannot half-apply. */
:is(.goal-form, .question-form) .goal-field:focus-within .proposal-other { border-bottom-color: var(--ink); }
:is(.goal-form, .question-form) .goal-field:focus-within .select { border-color: var(--ink); }

/* ── A goal's fold: the steps, and the commits ────────────────────────────
   Two lists, kept apart under their own heads, because they are not the same
   list even when one was derived from the other. The steps are the work as the
   owner thinks of it; the commits are the record's evidence, with the hash and
   the date the steps leave out.

   The mark IS the control. A tick beside a button that changes the tick would
   be two things saying one thing, so the mark is the button: one tap moves the
   step on. Its shape carries the state — hollow, half, filled, struck — and the
   hover title says the word, because a mark never replaces a word. */
.goal-part { display: grid; gap: 4px; }
.goal-part-title { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 10px; align-items: baseline; }
.goal-part-note { text-transform: none; letter-spacing: 0.02em; color: var(--ink-subtle); }
.goal-derived { margin: 0 0 2px; font-size: 12px; line-height: 1.45; color: var(--ochre-text); max-width: 62ch; }

.goal-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.goal-step { display: flex; align-items: baseline; gap: 9px; padding: 3px 0; }
.goal-step-text { font-size: 14px; line-height: 1.45; color: var(--ink); max-width: 66ch; }
.goal-step-mark { flex: none; width: 12px; height: 12px; padding: 0; background: transparent; border: 1px solid var(--border-strong); color: var(--ink); cursor: pointer; align-self: center; }
/* Weight goes on what is IN HAND, not on what is finished. Seven filled squares
   for seven done steps made the completed work the loudest mark on the card and
   left the one step being worked on indistinguishable from the ones not started.
   So `doing` is the full-ink half-square, and `done` recedes to the tone its
   struck-through text already uses. */
.goal-step[data-state='doing'] .goal-step-mark { background: linear-gradient(to right, currentColor 50%, transparent 50%); border-color: currentColor; }
.goal-step[data-state='done'] .goal-step-mark { background: var(--superseded); border-color: var(--superseded); }
.goal-step[data-state='done'] .goal-step-text { color: var(--ink-subtle); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.goal-step[data-state='skip'] .goal-step-mark { background: transparent; border-style: dashed; }
.goal-step[data-state='skip'] .goal-step-text { color: var(--superseded); }
.goal-step-drop { margin-left: auto; flex: none; background: transparent; border: 0; padding: 0 2px; font: inherit; font-size: 14px; line-height: 1; color: transparent; cursor: pointer; }
.goal-step:hover .goal-step-drop, .goal-step:focus-within .goal-step-drop { color: var(--ink-faint); }
.goal-step-drop:hover { color: var(--ink); }
.goal-step-add { margin-top: 3px; border: 0; border-bottom: 1px solid var(--divider); background: transparent; padding: 3px 0 3px 21px; font: inherit; font-size: 14px; color: var(--ink); outline: 0; max-width: 40ch; }
.goal-step-add:focus { border-bottom-color: var(--ink); }
.goal-step-add::placeholder { color: var(--ink-faint); }

.goal-commits { list-style: none; margin: 0; padding: 0; display: grid; }
.goal-commit { display: flex; align-items: baseline; gap: 10px; padding: 2px 0; font-size: 13px; line-height: 1.45; }
.goal-commit-hash { font-family: ui-monospace, SF Mono, Menlo, monospace; font-size: 11px; color: var(--ink-faint); flex: none; }
.goal-commit-text { color: var(--ink-muted); overflow-wrap: anywhere; }
.goal-commit-when { margin-left: auto; flex: none; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* ── A goal's life, on the list's one axis ────────────────────────────────
   The list could say when a goal last moved and not how long it had been
   going, which is the question anyone reading a list of intentions is actually
   asking — "Sep 11" is the same four characters whether the goal was born and
   died that day or has been running since the 8th and is still open now.

   So every row draws its own life against ONE scale, and the column of them is
   a picture of the whole quarter: goals born together, goals that stopped,
   goals still reaching the right-hand edge. Hairlines only, which is the house
   rule anyway, and the one ochre mark is the present moment — the same thing
   ochre means on the dial. */
.goal-trail-cell { display: flex; align-items: center; height: 1em; }
.goal-trail { overflow: visible; }
.trail-axis { stroke: var(--divider); stroke-width: 1; }
.trail-life { stroke: var(--border-strong); stroke-width: 1; }
/* Two marks, two questions. Tall and full ink is the owner giving the goal
   attention; short and faint is work landing on its branch, which is not the
   same thing — a goal can have plenty of one and none of the other. */
.trail-mark { stroke-width: 1; shape-rendering: crispEdges; }
.trail-said { stroke: var(--ink); }
.trail-did { stroke: var(--ink-faint); }
.trail-now { fill: var(--ochre); }
.goal[data-tone='quiet'] .trail-life { stroke: var(--divider); }
.goal[data-tone='quiet'] .trail-said { stroke: var(--ink-subtle); }

/* Named once, at the head — a legend on each of thirteen rows is thirteen
   legends. */
.goal-legend { display: flex; align-items: baseline; gap: 16px; padding: 14px 0 12px; font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); }
.goal-legend-span { font-variant-numeric: tabular-nums; }
.goal-legend-key { display: flex; align-items: center; gap: 5px; }
.goal-legend-key > span + .lk { margin-left: 9px; }
.lk { flex: none; display: inline-block; }
.lk-said { width: 1px; height: 10px; background: var(--ink); }
.lk-did { width: 1px; height: 5px; background: var(--ink-faint); }
.lk-now { width: 4px; height: 4px; border-radius: 999px; background: var(--ochre); }
.lk-met { width: 1px; height: 10px; background: var(--ink); }

/* ── People ──────────────────────────────────────────────────────────────
   The same foldable row the goals card landed, with its own tracks. Third
   surface on this shape; if a fourth appears it wants extracting rather than
   copying a fourth time.

   The trail is the one picture this record can honestly draw. A relationship
   map was asked for — size by frequency, colour by recency — and the live data
   refuses it: the busiest colleague appears in four meetings and most appear in
   one, so "size" has three values, and the co-attendance graph is 554 pairs of
   which 510 have weight one, almost all minted by three all-hands invitations.
   That is a hairball with no structure in it. What the record DOES hold richly
   is when: ten August to now. So each person's meetings go on the list's one
   shared axis, and the column of them answers the question the owner actually
   asked — who have I not seen in a fortnight — by eye, in one pass. */
.person { border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.person:last-child { border-bottom: 0; }
/* Every track after the name is fixed, so the trail begins and ends at the same
   x on all thirty rows — the whole reason to draw it on a row at all. */
.person-line { display: grid; grid-template-columns: auto minmax(0, 1fr) 7rem 2.5rem 200px; align-items: baseline; gap: 2px 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.person-line::-webkit-details-marker { display: none; }
.person-line:hover { background: var(--wash); }
.person[open] > .person-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.person-line:hover .goal-caret { color: var(--ink); }
.person-name { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
/* How long ago, in the words the question was asked in. A date is a lookup. */
.person-ago { font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); white-space: nowrap; }
/* Cold is not an error, so it is not loud — it is the plain ink the rest of the
   card reserves for what it is sure of, which is exactly what this is. */
.person-ago[data-cold] { color: var(--ink-subtle); }
/* A picture that says WHEN retires the date beside it. Fourteen rows reading
   "today" one under the other was fourteen words saying what fourteen marks at
   the right-hand end of the trail had already said, and the one row that WAS
   the answer to "who haven't I seen?" was lost among them. So the word is kept
   only where the trail cannot be trusted to carry it: a cold row, and a person
   with no meeting to draw. Hidden rather than dropped, so the track stays put
   and a reader still gets every word — and shown again below 860px, where the
   trail itself is the first thing to go. */
@media (min-width: 861px) { .person-ago:not([data-cold]) { visibility: hidden; } }
.person-met { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; }
.person-trail-cell { display: flex; align-items: center; height: 1em; }
/* Two marks, two questions, as on the goals trail. A full-ink tick is a room
   THIS person was in — on their own line, and again on each meeting row, since
   it is the same fact pulled out. A faint one is somebody else who happened to
   be in it: context under the subject, not a second subject. Drawn at the same
   weight, the fold read as eight identical trails with nothing to look at. */
.trail-met { stroke: var(--ink); }
.trail-with { stroke: var(--ink-faint); }
/* Below this the trail goes and the word beside it comes back — the two are
   complementary queries and they must flip together. This block sits AFTER the
   base rules on purpose: at equal specificity the later declaration wins, and
   written above them the query silently did nothing. */
@media (max-width: 860px) { .person-trail-cell { display: none; } .person-line { grid-template-columns: auto minmax(0, 1fr) 7rem 2.5rem; } }

/* The rooms you were in with them, and who else was in each.

   Both lists END on the 200px trail track, which is where the header line's
   trail ends too — neither grid has right padding, so the two columns align
   exactly whatever the fold's left indent is. That alignment is the whole
   point: a mark in the fold sits directly under the mark it belongs to on the
   line above, so the reader can see WHICH meeting each tick is without being
   told, and can see at a glance whose marks sit under every one of this
   person's. That is a working relationship drawn rather than counted. */
.person-met-list, .person-with-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.person-met-list li, .person-with-list li { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 200px; align-items: center; gap: 10px; }
@media (max-width: 860px) { .person-met-list li, .person-with-list li { grid-template-columns: minmax(0, 1fr) 5rem; } }
.person-met-title, .person-with-name { min-width: 0; overflow-wrap: anywhere; }
.person-met-when, .person-with-count { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
/* An unnamed attendee is a real person in a real room, so the row stays and the
   count is real — but it is the one row the reader cannot act on, so it recedes
   whole rather than shouting a hash. */
.person-with-list li[data-unnamed] .person-with-name { color: var(--ink-faint); font-style: italic; }
/* The finding, said before it is drawn. "Every time, also in the room: …" is
   the whole point of the picture under it, and a reader should not have to
   count marks to get there. */
.person-with-lead { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); max-width: 72ch; }
.person-with-more, .person-alone { margin: 0; font-size: 12px; color: var(--ink-faint); }
.person-pick { max-width: 14rem; }
/* The duplicate question, on the closed line. Ochre because it is Gnomon
   speaking, which is what ochre means everywhere in this client — and it is the
   one thing allowed to make a row two lines tall, for the same reason the
   goals card's stale nudge is. */
.person-nudge { grid-column: 2 / -1; margin: 1px 0 0; font-size: 13px; line-height: 1.5; color: var(--ochre-text); max-width: 72ch; }

/* One bucket for the unnamed, not eight rows at the top of the list: it is the
   same question eight times. Inside, the MEETING leads and the hash is not
   shown at all — "Pitch prep, 21 Aug" is a question the owner can answer and
   `person-c0ffee0003` is not. */
.person-bucket .person-name { color: var(--ochre-text); }
.person-ghosts { display: grid; gap: 10px; }
.person-ghost { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 14rem auto; align-items: baseline; gap: 4px 12px; font-size: 13px; color: var(--ink-muted); }
.person-ghost-clue { min-width: 0; overflow-wrap: anywhere; }
.person-ghost-when { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .person-ghost { grid-template-columns: minmax(0, 1fr); } }

/* ── Rituals ───────────────────────────────────────────────────────────────

   A habit is a stretch of work at about the same time, for about the same
   thing. The card used to lead with `Claude → Warp → Chrome, seen 123×`, which
   has no when, no what-for and no length — nothing in it to grab.

   The picture is ONE CLOCK shared down the column, each ritual laying its usual
   window on it. Reading the column top to bottom IS the shape of a day, which
   is the day-arc the audit asked for, drawn as a column rather than as a second
   hero picture: I13 (Rhythm) owns the stacked day-arcs, and two arcs on one
   board from two different data sources is the confusion DESIGN.md opens by
   refusing. Every track after the name is fixed, so the band begins and ends at
   the same x on every row — the whole reason to draw it on a row at all. */
/* The rituals escape the 880px reading cap, for the same reason the strata
   does: the clock is a picture and a picture is not a text column. Inside 880
   the axis got 220px — nine pixels an hour, a two-hour ritual drawn 18px wide,
   and nineteen of them indistinguishable. Worse, once the clock took the room
   it needs, the name track was squeezed and every ritual wrapped onto three
   lines, which is the opposite of the one-line row this list is built on.
   The cap has to come off `.view`, where it is set — lifting it on the panel
   alone does nothing. The prose keeps its own cap, because prose is prose. */
.view:has(.ritual-list) { max-width: none; }
.view:has(.ritual-list) .panel-lead, .view:has(.ritual-list) .panel-note, .view:has(.ritual-list) .ritual-call { max-width: 78ch; }
.ritual-list { display: grid; }
.ritual { border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.ritual:last-child { border-bottom: 0; }
.ritual-line { display: grid; grid-template-columns: auto minmax(0, 1fr) 7.5rem 16rem 380px; align-items: baseline; gap: 2px 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.ritual-line::-webkit-details-marker { display: none; }
.ritual-line:hover { background: var(--wash); }
.ritual[open] > .ritual-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.ritual-line:hover .goal-caret { color: var(--ink); }
.ritual-name { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
/* The hours in words as well as in the band. A number in a chart carries its
   word, and a band on an axis cannot be read to the minute — the owner asked
   for "09:10–10:00" by name. Tabular, so the column reads down. */
.ritual-hours { font-size: 12px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ritual-facts { font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ritual-clock-cell { display: flex; align-items: center; height: 1em; }
/* The hour labels, on the clock track and at the same x as the bands below.
   A shared axis with nothing naming it asks the reader to guess the scale. */
.ritual-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: baseline; gap: 10px; padding: 0 0 4px; }
.ritual-head-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }
.ritual-hour { position: absolute; top: 0; left: var(--at); transform: translateX(-50%); font-size: 10px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
/* The band is the usual window; the tick on its left edge is where it typically
   begins. A wide band with the tick hard left starts on time and runs long; a
   wide band with the tick adrift happens whenever. Ochre is now, and it is the
   only colour on the picture — the same mark the dial puts on the current hour,
   and what makes the column answer "am I on my usual path" without a word. */
.clock-axis { stroke: var(--divider); stroke-width: 1; }
.clock-band { fill: var(--border-strong); }
.clock-start { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.clock-now { stroke: var(--ochre); stroke-width: 1; shape-rendering: crispEdges; }
/* The stale question, on the closed line: ochre because it is Gnomon speaking,
   and the one thing allowed to make a row two lines tall — inside the fold it
   would be invisible on every row the owner has not opened, which is all of
   them, and a ritual that stopped a month ago is the row they came to see. */
.ritual-nudge { grid-column: 2 / -1; margin: 1px 0 0; font-size: 13px; line-height: 1.5; color: var(--ochre-text); max-width: 72ch; }
/* Inside the fold: the raw sequence demoted to evidence, the weekday shape, and
   what the model said these sittings were for. */
.ritual-apps, .ritual-trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 13px; color: var(--ink-muted); }
.ritual-week { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ritual-week li { display: grid; justify-items: center; gap: 3px; width: 2.1rem; }
.ritual-week-bar { display: block; width: 100%; height: 14px; background: linear-gradient(to top, var(--border-strong) var(--fill), var(--divider) var(--fill)); }
.ritual-week-day { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-faint); }
.ritual-week li[data-none] .ritual-week-day { color: var(--divider); }
/* A model wrote these, so they take the ochre rule the whole client uses for
   anything Gnomon said rather than recorded. */
.ritual-intents { display: grid; gap: 4px; margin: 0; padding: 0 0 0 13px; list-style: none; border-left: 2px solid var(--ochre); font-size: 13px; line-height: 1.5; color: var(--ink-muted); max-width: 72ch; }
/* The forecast, with its own precision on its face rather than in a footnote. */
.ritual-call { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.ritual-call-lead { color: var(--ink-muted); }
.ritual-call-odds { color: var(--ink-subtle); font-size: 13px; }
.ritual-call-none strong { color: var(--ochre-text); }
/* What the taxonomy cannot tell apart — the owner's config to fix, so it is
   stated plainly and not dressed as an error. */
.ritual-blind { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; max-width: 30rem; }
.ritual-blind li { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: 10px; font-size: 13px; color: var(--ink-muted); }
.ritual-blind-n { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; text-align: right; }
/* Below this the clock goes, for the same reason the people trail does: it is
   the first thing that stops being legible. This block sits AFTER the base
   rules on purpose — at equal specificity the later declaration wins, and
   written above them the query silently does nothing. */
@media (max-width: 860px) {
  .ritual-clock-cell { display: none; }
  .ritual-line { grid-template-columns: auto minmax(0, 1fr) 7.5rem; }
  .ritual-facts { grid-column: 2 / -1; }
  .ritual-head { display: none; }
}

/* ── Asks ────────────────────────────────────────────────────────────────
   The fifth surface on the foldable row, and the one whose subject is Gnomon
   rather than the owner: every question it has put to them, and whether asking
   was worth it. Closed is a line; the answer, the verdict and the routing door
   wait inside, which is the rule the goals card set after shipping thirteen
   stacked blocks standing open.

   The clock escapes the 880px reading cap, for the same two reasons the
   rituals do: inside 880 the axis gets about 220px, which is nine pixels an
   hour and makes every wait under half an hour the same mark; and once it has
   the room it needs, the question track is squeezed and a question of twenty
   words wraps onto three lines. The cap comes off `.view`, where it is set.
   The prose above keeps its own cap, because prose is prose. */
/* A picture takes the card, in both directions, so the reading cap comes off
   `.view` itself where it is set. And the card becomes its own CONTAINER: the
   row below is sized against the PANE the owner dragged, never the window.
   Measured 2026-09-22 — a window query fired at 1600 while the card sat in a
   1120px pane, so the row kept all six tracks and the question came out at
   195px, four words and an ellipsis. A card inside a resizable pane cannot ask
   the window how much room it has. */
.view:has(.question-list) { max-width: none; container-type: inline-size; container-name: asks; }
.view:has(.question-list) :is(.panel-lead, .panel-note, .question-census p) { max-width: 78ch; }
.question-census { display: grid; gap: 4px; margin: 0 0 14px; }
.question-census p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }
.question-list { display: grid; }
.question { border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.ask:last-child { border-bottom: 0; }
/* Every track after the question is fixed, so the clock begins and ends at the
   same x on every row — the whole reason to draw a picture on a row at all. */
.question-line { display: grid; grid-template-columns: auto minmax(13rem, 1.4fr) minmax(0, 0.8fr) 9.5rem 13rem 380px; align-items: baseline; gap: 2px 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.question-line::-webkit-details-marker { display: none; }
.question-line:hover { background: var(--wash); }
.question[open] > .question-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.question-line:hover .goal-caret { color: var(--ink); }
/* One line, and clipped rather than wrapped: Gnomon's questions are templates
   whose first eight words say which template it is, and forty-eight of them
   each taking three lines is the wall this card was redesigned out of. The
   whole question is in the fold's meta, one click away. */
.question-question { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A track of its own, so a column of states is scanned rather than read. */
/* 9.5rem, measured: `expired unanswered` is the longest word this vocabulary
   can put here, and at 7rem it wrapped and made that one row two lines tall.
   The word is `status.js`'s and is not shortened to fit a track. */
/* What the answer holds, in Gnomon's colour, because a proposal is a model's
   reading and ochre means exactly that everywhere on this client. It gets more
   room than the question: the question's subject is four words and the finding
   is a sentence. One line, clipped — the whole of it is in the fold. */
.question-gist { min-width: 0; display: flex; align-items: baseline; gap: 7px; font-size: 13px; line-height: 1.4; color: var(--ochre-text); white-space: nowrap; overflow: hidden; }
.question-gist > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* A strut, the same one the hour labels need and for the same reason: a cell
   with no line box in it has no height, so a row whose answer nobody has read
   yet came out five pixels shorter than the one row that had a proposal. A
   column of rows is scanned against its own uniform height. */
.question-gist::before { content: '\200B'; }
/* "nothing to keep" is a reading too, and it recedes whole rather than shouting
   in ochre beside the rows that found something. */
.question-gist[data-tone='quiet'] { color: var(--ink-faint); font-style: italic; }
.question-gist-more { flex: none; font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.question-state { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.question-state[data-tone='bad'] { color: var(--ochre-text); }
.question-facts { font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.question-clock-cell { display: flex; align-items: center; height: 1em; }
/* This pair must sit after BOTH clock-cell rules: `:is()` takes the
   specificity of one class, so at equal weight source order decides, and
   written above them `display: flex; height: 1em` silently wins back. */
/* The hour labels sit on the SAME baseline as the column's name beside them,
   and getting that needs a strut. An absolutely-positioned row has no baseline
   to give: a block with no line box in it baselines on its own bottom margin
   edge, so `align-items: baseline` put the row's FLOOR level with the label's
   baseline and left every hour floating seven pixels high — measured on the
   asks head, hours at 268.3 against a label baseline of 275.4. A zero-width
   space gives the row one real line box at the hours' own size, and the hours
   hang from `top: 0` onto that same line. Height must be `auto` with it: the
   clock cell sets `1em`, which at this font-size is ten pixels and clips. */
:is(.ritual-hours-row, .question-hours-row) { position: relative; display: block; height: auto; font-size: 10px; }
:is(.ritual-hours-row, .question-hours-row)::before { content: '\200B'; }
/* The hour labels, on the clock track and at the same x as the bands below. */
/* The head shares the ROW's trailing tracks, so its label stands over the
   column it names rather than hard against the first hour. Three tracks, not
   five: the leading flexible one stands in for the caret, the question and the
   state together, and because the two trailing tracks and the gap are the same
   fixed numbers in both grids, the facts column begins at the same x on the
   head as it does on every row. */
.question-head { display: grid; grid-template-columns: minmax(0, 1fr) 13rem 380px; align-items: baseline; gap: 10px; padding: 0 0 4px; }
.question-head-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
/* Inside the fold: the answer with its rule, what it became, and the verbs. */
.question-open { display: grid; gap: 10px; padding: 2px 0 16px 21px; }
.question-open .sb { padding-top: 0; border-bottom: 0; }
.question-becames { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; max-width: 60rem; }
.question-became { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.question-became[data-tone='quiet'] { color: var(--ink-faint); text-decoration: line-through; }
.question-became-gone { font-size: 11px; letter-spacing: 0.03em; color: var(--ochre-text); text-decoration: none; }
/* The model's second and third readings: a sentence, and its own Keep. Same
   ink as `.question-became` so a proposal and the fact it might become read as
   one family, with the ochre rule saying which one a model wrote. */
.question-extras { display: grid; gap: 6px; margin: 0; padding: 2px 0 2px 11px; border-left: 2px solid var(--ochre); list-style: none; max-width: 60rem; }
.question-extra { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.question-extra-said { font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); }
/* The one number this card exists to move, where it can be read in a glance.
   Not a percentage: see the comment on `.question-ratio` in views.js. */
.question-ratio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 6px; font-size: 15px; line-height: 1.4; color: var(--ink-muted); }
.question-ratio strong { font-weight: 500; color: var(--ink); }
.question-ratio strong[data-tone='quiet'] { color: var(--ink-faint); }
.question-ratio > span { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); }
.question-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* Four verbs on forty-eight rows is the goals card's fifty-two buttons again,
   so the same answer: the word at rest in a quiet ink, the box back under the
   hand or the keyboard. Hung off the ROW rather than the strip, so opening a
   question is already enough to see that it can be judged. */
.question-acts .act { border-color: transparent; color: var(--ink-faint); transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.question:hover .question-acts .act, .question:focus-within .question-acts .act { border-color: var(--border-strong); color: var(--ink-muted); }
.question-acts .act:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--page); }
@media (prefers-reduced-motion: reduce) { .question-acts .act { transition: none; } }
/* The question and the gist share one line only while both can be READ. The
   three trailing tracks are 740px of fixed width, so in a 1000px pane the two
   of them were fighting over 250 and the question came out as "How did
   "Stand-up -..." — four words and an ellipsis, which is the template wall
   this card was redesigned out of, with the subject lost as well. Below this
   the gist takes its own line under the question and keeps every word.
   Placed by hand, because auto-flow puts a two-column span on row two and
   then pushes the state word into column one. */
@container asks (max-width: 1240px) {
  .question-line { grid-template-columns: auto minmax(0, 1fr) 9.5rem 380px; }
  .question-line > .question-question { grid-area: 1 / 2 / 2 / 3; }
  .question-line > .question-state { grid-area: 1 / 3 / 2 / 4; }
  /* Row one only, beside the question it belongs to. Spanning both rows would
     take the second line's right half away from the facts, which then clip. */
  .question-line > .question-clock-cell { grid-area: 1 / 4 / 2 / 5; }
  /* The gist and the small facts share ONE second line — not two, or a row is
     three lines tall and fifty-one of them is the wall this card was
     redesigned out of. The date and the wait go down there rather than holding
     13rem of the first line: the question is what the eye scans this column
     for, and the clock beside it already draws the hour and the wait. */
  /* Still one line, and still clipped. It has the row's full width to itself
     down here, so wrapping buys a second line for a handful of characters and
     costs every row its uniform height — measured: one row at 57px in a column
     of 52s, which is the thing a column of rows is scanned against. */
  .question-line > .question-gist { grid-area: 2 / 2 / 3 / 3; }
  .question-line > .question-facts { grid-area: 2 / 3 / 3 / 5; }
  /* The head has to move with the row or it stops naming anything. Two tracks
     here, not three: the flexible one stands in for the caret, the question
     and the state exactly as it did for three tracks above, and because the
     trailing 380px and the gap are the same number in both grids the hours
     land over the marks they name. Drawn wrong, all of them pile up in a few
     pixels at the right edge — measured 2026-09-22 on a 1120px pane. */
  .question-head { grid-template-columns: minmax(0, 1fr) 380px; }
  /* Two tracks means two children. The head's leading empty cell exists to
     stand in for the caret at the wide layout; here the label does that job,
     and left in place it pushed the clock onto a second row where it drew at
     zero width and stacked every hour at one x. */
  .question-head > span:first-child { display: none; }
  /* And the label goes: the facts are on the row's second line now, so there
     is no column here for "asked · held" to stand over. */
  .question-head-label { visibility: hidden; }
}
/* Below this the clock goes, for the same reason the rituals' does: it is the
   first thing that stops being legible. Keyed on the CARD's own width like the
   query above it, and placed after the base rules on purpose — at equal
   specificity the later declaration wins, and written above them the query
   silently does nothing, which is a bug this client has already had. */
@container asks (max-width: 860px) {
  .question-clock-cell { display: none; }
  /* Three tracks, every cell placed by hand: auto-flow puts a two-column span
     on row two and then pushes the state word into column one. */
  .question-line { grid-template-columns: auto minmax(0, 1fr) 9.5rem; }
  .question-line > .question-question { grid-area: 1 / 2 / 2 / 3; }
  .question-line > .question-state { grid-area: 1 / 3 / 2 / 4; }
  .question-line > .question-gist { grid-area: 2 / 2 / 3 / 4; }
  .question-line > .question-facts { grid-area: 3 / 2 / 4 / 4; }
  .question-head { display: none; }
}
}

/* ── Memory ──────────────────────────────────────────────────────────────
   The fourth surface on the foldable row, and the point where the shared
   parts stopped being copied: the caret, the trail cell, the legend and its
   keys are the goals card's own classes, reused. Only the tracks are new,
   because tracks are the one thing a foldable row cannot share — each list
   names different columns.

   The old card was a three-column table, and the owner's verdict on it was
   "the hardest page to browse". Reading one belief meant leaving the list and
   coming back through a "← All" button; now the row opens under itself and the
   list never moves. */
.mem-identity { display: grid; gap: 3px; }
.mem-identity-sub { color: var(--ink-faint); }

/* Search first, which was the audit's second ask. Underline, not a box: it is
   a field on a list, not a form, so it takes the shape a field takes here. */
.mem-search { width: 100%; max-width: 30rem; margin: 2px 0 10px; padding: 6px 0; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--border-strong); }
.mem-search::placeholder { color: var(--ink-faint); }
.mem-search:focus { outline: none; border-bottom-color: var(--ochre); }
.mem-search::-webkit-search-cancel-button { filter: grayscale(1); opacity: 0.5; }

.mem-row { border-bottom: 1px solid var(--divider); animation: rise 220ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 22ms); }
.mem-row:last-of-type { border-bottom: 0; }
/* Name flexes, kind and count are fixed, and the trail is last and fixed — so
   its axis begins and ends at the same x on all 221 rows, which is the whole
   reason to draw a picture per row at all. */
.mem-line { display: grid; grid-template-columns: auto minmax(0, 1fr) 5rem 11rem 200px; align-items: baseline; gap: 2px 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.mem-line::-webkit-details-marker { display: none; }
.mem-line:hover { background: var(--wash); }
.mem-line:hover .goal-caret { color: var(--ink); }
.mem-row[open] > .mem-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.mem-name { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.mem-kind { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.mem-count { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.mem-open { padding: 2px 0 14px 26px; }
/* Reading width is not card width. A belief is a sentence, and the fold gave it
   the whole 834px the row has — about 95 characters, half again what a line
   should be. The row keeps the card; the prose inside it does not. The card's
   own 880px `.view` cap stays, unlike the habits card's: the trail gets its
   full 200px here and the name track still measures 365px with no wrap, so
   there is nothing to escape for. */
.mem-open .facts { max-width: 44rem; }
/* Useful and Wrong on every belief is the goals card's fifty-two buttons again:
   ten beliefs on one name is twenty bordered boxes drawn over the ten sentences
   the owner opened the row to read. Same answer — the word stays at rest in a
   quiet ink, the box comes back under the hand or the keyboard.

   And it covers BOTH emitters. A belief is drawn from two places — `verdictActs`
   in views.js wraps its buttons in `.verdicts`, explore.js wraps its own in
   `.fact-acts` — and the two had different behaviour at rest: one bordered,
   one faded to `opacity: 0`. Neither is the house rule, and a control that
   fades out entirely is the hidden affordance DESIGN.md refuses. One rule for
   both, so the same control on two surfaces is the same control. */
.fact-line .verdicts .act { border-color: transparent; color: var(--ink-faint); transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.fact-line .fact-acts .act { border-color: transparent; color: var(--ink-faint); transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.fact-line:hover .verdicts .act, .fact-line:focus-within .verdicts .act,
.fact-line:hover .fact-acts .act, .fact-line:focus-within .fact-acts .act { border-color: var(--border-strong); color: var(--ink-muted); }
.fact-line .verdicts .act:hover:not(:disabled), .fact-line .fact-acts .act:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--page); }
@media (prefers-reduced-motion: reduce) { .fact-line .verdicts .act, .fact-line .fact-acts .act { transition: none; } }
/* The door out to explore, which is where "everything about X" lives (D-J/M).
   It sits under the beliefs because the beliefs are this card's subject. */
.mem-door { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ink-muted); }
/* The proof sits on the evidence line, in the evidence line's ink, because it
   is one more piece of evidence and not a second sentence. */
.fact-because { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fact-proof { color: var(--ink-faint); }
.fact-proof:hover { color: var(--ink); }
/* Below this the trail goes first — it is the nicety, the name and the count
   are the card. Written BELOW the rule it overrides, which is what makes it
   apply at all. */
@media (max-width: 860px) {
  .mem-line { grid-template-columns: auto minmax(0, 1fr) 5rem 11rem; }
}

/* ── The Unsaid ──────────────────────────────────────────────────────────
   The one card on this board whose picture is NOT a band per row, and that is
   deliberate. Five cards already put a mark for each row on a shared
   horizontal axis; drawn that way the Unsaid card was indistinguishable from
   the asks card beside it, and the owner said so on sight. It also answered
   the wrong question — a band per row says where THIS decision sat, and the
   card exists to ask where the BAR should sit, which is about all of them at
   once. So the axis stands up, the three outcomes become columns facing it,
   and the rows underneath carry a number instead of a picture.

   Its own container, like the asks card and for the same measured reason: a
   pane is dragged to whatever width the owner wants and a window query gets an
   answer about somewhere else. */
.view:has(.gate-list) { max-width: none; container-type: inline-size; container-name: unsaid; }
.view:has(.gate-list) :is(.panel-lead, .panel-note, .gate-census p) { max-width: 78ch; }
.gate-census { display: grid; gap: 4px; margin: 0 0 14px; }
.gate-census p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }
/* The headline, in the asks card's own shape: two counts and a dot, never a
   percentage — a ratio of a subset of a subset invites the reader to work out
   what the denominator was. */
.gate-ratio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 6px; font-size: 15px; line-height: 1.4; color: var(--ink-muted); }
.gate-ratio strong { font-weight: 500; color: var(--ink); }
.gate-ratio > span { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); }
/* Today's budget is a day's fact on a card pinned to the record, so it reads
   as an aside rather than as a fifth finding. */
.gate-today { color: var(--ink-faint); }

/* ── The ladder ──────────────────────────────────────────────────────────
   Height in `px`, never a percentage: a percentage of an indefinite track is a
   percentage of nothing. Tall enough that the band between the two bars has
   room to separate — at 240 every mark below the bar landed in forty pixels. */
.ladder-figure { margin: 0 0 16px; }
.ladder-slab { height: 380px; }
.ladder { display: block; width: 100%; height: 100%; overflow: visible; }
.ladder-caption { margin: 8px 0 0; max-width: 78ch; font-size: 12px; line-height: 1.55; color: var(--ink-faint); }
/* The overlap is GROUND, not a mark: it is not a thing that happened, it is
   the shape of the things that did. */
.ladder-overlap { fill: var(--wash); }
.ladder-overlap-label,
.ladder-axis-label,
.ladder-head { font-size: 11px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ladder-head { letter-spacing: 0.06em; text-transform: uppercase; }
.ladder-axis { stroke: var(--border-strong); stroke-width: 1; shape-rendering: crispEdges; }
/* Every grid line is one doubling of the bar, which is one notch of the
   owner's noticing dial. Near-silent: it is the unit, not the subject. */
.ladder-grid { stroke: var(--divider); stroke-width: 1; shape-rendering: crispEdges; }
/* Two rules, and only one of them is loud. The bar every candidate met is the
   subject; the interrupting bar applies to a subset the record cannot name, so
   it is a reference rather than a claim about the marks around it. */
.ladder-bar { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.ladder-bar-quiet { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 4; shape-rendering: crispEdges; }
.ladder-divide { stroke: var(--divider); stroke-width: 1; shape-rendering: crispEdges; }
/* The bars are named on the RIGHT, where they cannot be read as one more grid
   number, and in the ink of the rule they belong to. */
.ladder-bar-name { font-size: 11px; fill: var(--ink); letter-spacing: 0.02em; }
.ladder-bar-name-quiet { fill: var(--ink-faint); }
/* Ochre is Gnomon's voice, so what it said is ochre — here and on the row. */
.ladder-mark { fill: var(--border-strong); cursor: pointer; }
.ladder-mark[data-outcome='said'] { fill: var(--ochre); }
.ladder-mark[data-outcome='held'] { fill: var(--ink-subtle); }
.ladder-mark:hover, .ladder-mark:focus-visible { fill: var(--ink); outline: none; }

.gate-list { display: grid; }
.gate-row { border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
/* Where the picture sends you. Short, and only to say something arrived. */
.gate-row-lit { background: var(--wash); }
/* Every track after the observation is fixed, so the weight column and the
   date read down the list as columns rather than as thirteen x positions. */
.gate-line { display: grid; grid-template-columns: auto minmax(0, 1fr) 5.5rem 4rem 5rem; align-items: baseline; gap: 2px 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.gate-line::-webkit-details-marker { display: none; }
.gate-line:hover { background: var(--wash); }
.gate-row[open] > .gate-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.gate-line:hover .goal-caret { color: var(--ink); }
.gate-what { font-size: 14px; line-height: 1.4; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A column of states is scanned, so it gets a track of its own rather than
   floating to wherever the observation happens to end. */
.gate-outcome { font-size: 12px; font-variant: small-caps; letter-spacing: 0.04em; color: var(--ink-subtle); }
.gate-outcome[data-outcome='said'] { color: var(--ochre-text); }
.gate-outcome[data-outcome='dropped'] { color: var(--ink-faint); }
/* The number the picture above is made of, right-aligned so the decimal points
   line up and the column can be read as a column. The side it fell on is the
   one thing a bare number cannot say. */
.gate-weight-value { font-size: 13px; text-align: right; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.gate-weight-value[data-side='over'] { color: var(--ink-muted); }
.gate-when { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* The bar, as a place in the list as well as a rule on the picture. */
.gate-rule { display: flex; align-items: baseline; gap: 10px; padding: 14px 0 4px; border-top: 1px solid var(--border-strong); }
.gate-rule:first-child { border-top: 0; padding-top: 0; }
.gate-rule-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }

/* A fold adds: the observation, the outcome, the weight and the date are all
   on the line above, so what goes in here is the arithmetic, what it was
   computed from, and the one verdict the owner can give. It runs ACROSS. */
.gate-open { padding: 2px 0 14px; }
.gate-why { margin: 0 0 8px; max-width: 72ch; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }
.gate-terms { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; }
.gate-term { display: grid; gap: 1px; }
.gate-term-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.gate-term-value { font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.gate-term-sum .gate-term-value { color: var(--ink); }
.gate-evidence { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.gate-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-faint); }
.gate-key { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.gate-acts { margin-top: 10px; }

/* Below this the date goes, then the weight — in that order, because the
   number is what the row still has to say once the picture above is the only
   comparison. Keyed on the CARD's own width, and written after the base rules
   so that at equal specificity the later declaration wins. */
@container unsaid (max-width: 760px) {
  .gate-line { grid-template-columns: auto minmax(0, 1fr) 5.5rem 4rem; }
  .gate-line > .gate-when { display: none; }
}
@container unsaid (max-width: 560px) {
  .gate-line { grid-template-columns: auto minmax(0, 1fr) 4rem; }
  .gate-line > .gate-outcome { display: none; }
  .ladder-slab { height: 300px; }
}

/* ── Trust ───────────────────────────────────────────────────────────────
   A calendar, and the seventh picture on this board that is deliberately not
   a mark-per-row on a shared axis. Two reasons, both in `coverage-grid.js`:
   six lists already use that shape, and a weekday rhythm is a question you ask
   DOWN a column, which a strip of 47 bars cannot answer. */
.cov-figure { margin: 4px 0 0; }
/* No height and no cap. The drawing measures the width it was GIVEN and takes
   its own height back from that — the owner's verdict on a 520px-capped,
   250px-tall first draw was "doesn't scale well", and they were right twice
   over: two thirds of a wide card was empty paper, and the weekday names
   collided because the cells were narrower than their own labels. A picture
   takes the card, in both directions. */
.cov-slab { width: 100%; }
.cov { display: block; width: 100%; overflow: visible; }
.cov-head { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--ink-faint); }
/* The rhythm, as a number under the day it belongs to — a column's median. */
.cov-head-median { font-size: 10px; fill: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.cov-week { font-size: 9px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
/* A hole is an OUTLINE, an observation is a FILL. "The daemon was not running"
   and "the daemon watched almost nothing" are different claims, and a shared
   shade would say the first was the second — which is the day this card is for. */
.cov-hole { fill: none; stroke: var(--divider); stroke-width: 1; }
.cov-cell { fill: var(--ink); cursor: pointer; }
/* The box ring belongs to a control that has a box, and this one is a shape in
   an SVG — the global outline drew a blue rectangle the owner saw on the first
   pass. Replaced, never removed: the cell takes the ochre the ring for today
   already uses, which is made of the picture's own material. */
.cov-cell:hover, .cov-cell:focus-visible { fill: var(--ochre); outline: none; }
.cov-cell:focus-visible { fill-opacity: 1; }
/* Today is a ring, not a darker square: the fill is already carrying the hours
   and one mark cannot answer two questions. */
.cov-today { fill: none; stroke: var(--ochre); stroke-width: 1.5; }
.cov-picked { margin: 8px 0 0; min-height: 1.4em; font-size: 13px; color: var(--ink-muted); }
.cov-says { display: grid; gap: 4px; margin: 10px 0 0; max-width: 78ch; }
.cov-says p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }
/* The only genuine health signal in the record, so it is not a pale square the
   eye can skip past. */
.cov-gaps { color: var(--ochre-text); }

/* The roster: grouped by what makes a sensor speak, because that is the only
   thing that makes its silence readable. Never ranked by silence — see the
   note at the top of `sensors.js`. */
.sensor-group { margin: 14px 0 0; }
.sensor-group-head { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.sensor-group-note { margin: 2px 0 6px; max-width: 78ch; font-size: 12px; line-height: 1.55; color: var(--ink-faint); }
.sensor-list { margin: 0; padding: 0; list-style: none; }
.sensor { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 7rem; align-items: baseline; gap: 2px 12px; padding: 5px 0; border-top: 1px solid var(--divider); }
.sensor-name { font-size: 13px; color: var(--ink); }
.sensor-does { font-size: 13px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A column of states is scanned, so it takes a track of its own. */
.sensor-heard { font-size: 12px; text-align: right; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
/* A sensor the owner has left off recedes whole — it is not quiet, it is not
   running, and greying only the time would read as a pale row. */
.sensor[data-off='yes'] :is(.sensor-name, .sensor-does, .sensor-heard) { color: var(--ink-faint); }

/* A picture takes the card, in both directions — so `.view`'s 880px reading
   cap comes off HERE, where it is set, and the prose keeps its own cap below.
   Measured: with the cap on, the calendar drew at 860 inside a 1120px pane and
   left 240px of paper beside it. And the card is its own container, so the
   roster row is sized against the PANE rather than the window. */
.view:has(.sensor-list) { max-width: none; container-type: inline-size; container-name: trust; }
.view:has(.sensor-list) :is(.panel-lead, .panel-note, .cov-says p, .sensor-group-note) { max-width: 78ch; }
@container trust (max-width: 620px) {
  .sensor { grid-template-columns: minmax(0, 1fr) 7rem; }
  .sensor > .sensor-name { grid-area: 1 / 1 / 2 / 2; }
  .sensor > .sensor-heard { grid-area: 1 / 2 / 2 / 3; }
  .sensor > .sensor-does { grid-area: 2 / 1 / 3 / 3; white-space: normal; }
}

/* ── Calibration ─────────────────────────────────────────────────────────
   The canonical picture for this question, and nothing else on this board
   looks like it: claimed across, observed up, and a diagonal that means "I
   meant exactly what I said". THREE of them, one per forecaster, never one
   pooled — calibration is a property of a forecaster, and three averaged is
   three curves laid on top of each other. */
.view:has(.rel-grid) { max-width: none; container-type: inline-size; container-name: calib; }
.view:has(.rel-grid) :is(.panel-lead, .panel-note, .rel-says, .rel-coverage) { max-width: 78ch; }
/* The notes under the grid are a second voice, not a continuation of it. */
.view:has(.rel-grid) .panel-note { margin-top: 16px; line-height: 1.6; }
/* Every gap in this block was opened after the owner's verdict on the first
   draw — "text feels very tight on each other". A panel of small multiples is
   four stacked text blocks per column, and at 6px between them the caption,
   the figures and the warning read as one paragraph with odd line breaks. */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 34px 40px; margin: 20px 0 0; }
.rel-figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.rel-head { display: grid; gap: 3px; }
.rel-target { font-size: 14px; color: var(--ink); }
.rel-who { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
/* Height in px, never a percentage of an indefinite track — and square-ish,
   because a plot whose two axes are the same unit is lying if one is stretched. */
.rel-slab { height: 226px; }
.rel { display: block; width: 100%; height: 100%; overflow: visible; }
.rel-axis { stroke: var(--divider); stroke-width: 1; shape-rendering: crispEdges; }
/* The reference is the SUBJECT here, so it is the one line in full ink. */
.rel-ideal { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
/* The distance from honest, drawn, so the eye measures the error rather than
   the mark's absolute position. */
.rel-error { stroke: var(--border-strong); stroke-width: 1; }
.rel-mark { fill: var(--border-strong); cursor: pointer; }
/* Ochre is Gnomon's voice, and a mark off the line is Gnomon having said
   something it did not mean. Under- and over-confidence are different faults
   and the fill tells them apart without a legend: hollow hedged, solid
   overclaimed. */
.rel-mark[data-lean='under'] { fill: none; stroke: var(--ochre); stroke-width: 1.5; }
.rel-mark[data-lean='over'] { fill: var(--ochre); }
.rel-mark:hover, .rel-mark:focus-visible { fill: var(--ink); stroke: var(--ink); outline: none; }
.rel-tick, .rel-label { font-size: 9px; fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rel-says { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }
.rel-coverage { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ochre-text); }
.rel-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.rel-fact { display: grid; gap: 4px; }
.rel-fact-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.rel-fact-value { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rel-fact-value[data-tone='quiet'] { color: var(--ink-faint); font-size: 13px; }
.rel-picked { margin: 18px 0 0; min-height: 1.4em; font-size: 13px; color: var(--ink-muted); }
/* Raw stats folded, which is what the audit asked for: a table of cells is
   the model's own storage and belongs one click away from the reading. */
.rel-history { margin: 14px 0 0; }
.rel-history > summary { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); cursor: pointer; }
.rel-history > summary:hover { color: var(--ink); }

/* ── Lab ─────────────────────────────────────────────────────────────────
   Five rows, no picture. A study's life is one to two days against the
   twenty-one it was allowed, and a number says that better than three pixels
   on a seven-week axis — the chart rule pointed at prose. */
/* The cap comes off for the LIST — six short columns, one of which is the
   number the card turns on ("2 days of the 21 allowed") — and the prose keeps
   its own below. With the cap on, the card's own container measured 860 and
   fired its narrow query, dropping the lifespan and the date off every row. */
.view:has(.study-list) { max-width: none; container-type: inline-size; container-name: lab; }
.view:has(.study-list) :is(.panel-lead, .panel-note, .study-question, .study-why, .study-finding) { max-width: 78ch; }
.study-list { display: grid; margin: 16px 0 0; }
.study { border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
/* The name is capped rather than given the slack: at `1fr` a five-word label
   sat alone in half the card and pushed its own outcome word to the far side,
   so the two halves of one claim were 300px apart. The slack goes to the LAST
   track, where the date can float right. */
.study-line { display: grid; grid-template-columns: auto minmax(10rem, 22rem) 6rem 13rem 8rem minmax(4rem, 1fr); align-items: baseline; gap: 2px 14px; padding: 9px 0; cursor: pointer; list-style: none; }
.study-line::-webkit-details-marker { display: none; }
.study-line:hover { background: var(--wash); }
.study[open] > .study-line .goal-caret { transform: rotate(90deg); color: var(--ink-muted); }
.study-label { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The outcome word and the evidence under it are ONE claim, so they sit side
   by side in two tracks rather than one being folded away. "Answered" alone is
   the card repeating something the record does not support. */
.study-outcome { font-size: 12px; font-variant: small-caps; letter-spacing: 0.04em; color: var(--ink-subtle); }
.study-outcome[data-tone='good'] { color: var(--ochre-text); }
.study-outcome[data-tone='live'] { color: var(--ink); }
.study-evidence, .study-life, .study-when { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.study-when { text-align: right; }
.study-open { padding: 2px 0 16px; display: grid; gap: 8px; }
.study-question { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.study-why { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }
/* A missing conclusion is not an empty cell — it is the card's own finding, so
   it takes words and the quiet ink rather than a blank. */
.study-finding { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); border-left: 2px solid var(--ochre); padding-left: 10px; }
.study-finding[data-tone='quiet'] { color: var(--ink-faint); border-left-color: var(--divider); }
.study-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-faint); }

@container lab (max-width: 860px) {
  .study-line { grid-template-columns: auto minmax(0, 1fr) 6rem 12rem; }
  .study-line > .study-life { display: none; }
  .study-line > .study-when { display: none; }
}

/* ── Reach ───────────────────────────────────────────────────────────────
   A permission surface, so every mark has to be traceable to the gate's own
   verdict. Nothing here is a tone chosen for a word the card made up. */
.view:has(.reach-ladder) { container-type: inline-size; container-name: reach; }
.view:has(.reach-ladder) :is(.panel-lead, .panel-note, .reach-warning) { max-width: 78ch; }
.reach-group { margin: 12px 0 0; }
.reach-group-head { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.reach-line { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 4px 12px; margin: 0 0 4px; font-size: 13px; line-height: 1.55; }
.reach-line-verdict { font-variant: small-caps; letter-spacing: 0.04em; }
.reach-line-tools { color: var(--ink-muted); }
.reach-depends { color: var(--ink-faint); }
/* The two rungs of the permission chip, side by side in one cell, because a
   tool's fate at Ask and its fate at Auto are one claim about one tool. */
.reach-ladder { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.reach-rung { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.reach-rung-word { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.reach-rung-verdict, .reach-line-verdict { font-size: 12px; }
/* Three tones for the gate's three verdicts. `open` is the one that should
   give a reader pause on an outward tool, so it takes the ochre — this is the
   one card where "it just runs" is the loud state, not the calm one. */
:is(.reach-rung, .reach-line-verdict)[data-tone='open'] { color: var(--ochre-text); }
:is(.reach-rung, .reach-line-verdict)[data-tone='gated'] { color: var(--ink-muted); }
:is(.reach-rung, .reach-line-verdict)[data-tone='shut'] { color: var(--ink-faint); }
.reach-kind { font-size: 12px; color: var(--ink-faint); }
.reach-kind[data-read] { color: var(--ink-muted); }
/* The sentence about deleting without a prompt. It is the one thing on this
   card an owner most needs to have read, so it is not a table cell. */
.reach-warning { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--ochre); font-size: 13px; line-height: 1.55; color: var(--ink-muted); }

/* ── Rhythm ──────────────────────────────────────────────────────────────
   Stacked day-arcs on one 24-hour clock. The seventh list on this board with
   a mark per row on a shared axis — and the one case where that shape is the
   answer rather than a habit, because the question IS "do my days line up",
   which is a question you can only ask by stacking them. */
.view:has(.arc-list) { max-width: none; container-type: inline-size; container-name: rhythm; }
.view:has(.arc-list) :is(.panel-lead, .panel-note, .arc-today) { max-width: 78ch; }
.arc-today { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.arc-list { display: grid; margin: 16px 0 0; }
/* Every track after the date is fixed, so midnight is at the same x on every
   row — the only reason to stack them. */
.arc-line { display: grid; grid-template-columns: 7.5rem 420px 7rem 4.5rem; align-items: center; gap: 2px 14px; padding: 3px 0; animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 22ms); }
.arc-line[data-today='yes'] .arc-when { color: var(--ochre-text); }
.arc-when { font-size: 12px; color: var(--ink-muted); }
.arc-cell { display: flex; align-items: center; height: 18px; }
.arc-span-text, .arc-active { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.arc-active { text-align: right; }
.arc-head { display: grid; grid-template-columns: 7.5rem 420px 7rem 4.5rem; gap: 14px; padding: 12px 0 2px; }
.arc-hours { position: relative; display: block; height: auto; }
.arc-hours::before { content: '\200B'; }
.arc-axis { stroke: var(--divider); stroke-width: 1; }
/* The watched underlay sits BEHIND the span, paler, because it answers a
   different question — how much of that time Gnomon was running — and a day
   watched for two of its twelve hours must not look like one fully seen. */
/* One cell per local hour, opacity by that hour's own share. A day TOTAL
   cannot draw this: Gnomon often runs more hours than the owner works, so a
   share of the span is above 1 on an ordinary day and the underlay came out
   full width on every row. */
.arc-watched { fill: var(--ink); }
.arc-span { fill: var(--border-strong); }
.arc-line[data-today='yes'] .arc-span { fill: var(--ochre); }
.arc-cap { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
/* An end the record does not know is an ARROW, never a bar. Nine of forty-one
   days ran across midnight, and drawn plain they read as somebody who began at
   midnight and worked till midnight. */
.arc-open { fill: none; stroke: var(--ink-faint); stroke-width: 1.5; }
.arc-now { stroke: var(--ochre); stroke-width: 1; shape-rendering: crispEdges; }

@container rhythm (max-width: 700px) {
  .arc-line, .arc-head { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .arc-line > .arc-span-text, .arc-line > .arc-active { display: none; }
}

/* ── Trace ────────────────────────────────────────────────────────────────
   The composition bar takes the card in both directions, so `.view`'s 880px
   reading cap comes off HERE, where it is set — five-column tables inside an
   880px box put "Effects" and "Each" on top of each other. The prose keeps its
   own cap, and the card is its own container so anything that reshapes is
   asked about the PANE rather than about the window. */
.view:has(.trace-bar) { max-width: none; container-type: inline-size; container-name: trace; }
.view:has(.trace-bar) :is(.panel-lead, .panel-note, .trace-key-says) { max-width: 78ch; }

/* One band per family at its true share. `flex-grow` IS the proportion, so it
   is exact at every width with nothing to measure and nothing to redraw. The
   1px floor understates a band under a pixel rather than inventing one — see
   `compositionBar`. */
.trace-bar { display: flex; height: 16px; margin: 14px 0 0; border-bottom: 1px solid var(--border); }
.trace-band { min-width: 1px; }

.trace-legend { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.trace-key { display: grid; grid-template-columns: 10px minmax(0, 14rem) 9rem; align-items: baseline; gap: 4px 12px; }
.trace-swatch { width: 10px; height: 10px; }
.trace-key-label { font-size: 14px; color: var(--ink); }
.trace-key-value { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-muted); text-align: right; }
/* The sentence runs under the three, on the label's own track, so a legend of
   four keys reads as four rows and not as a table with a paragraph in a cell. */
.trace-key-says { grid-column: 2 / -1; font-size: 13px; color: var(--ink-subtle); line-height: 1.45; }

/* The exact journal line. Storage belongs in the fold, never on the row. */
.trace-raw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-subtle); margin: 0; overflow-wrap: anywhere; }
.trace-kin ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.trace-kin li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 12px; font-size: 13px; }
.trace-kin-rule { color: var(--ink-muted); }

@container trace (max-width: 560px) {
  .trace-key { grid-template-columns: 10px minmax(0, 1fr); }
  .trace-key-value { grid-column: 2 / -1; text-align: left; }
  .trace-kin li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ── The bedtime band ─────────────────────────────────────────────────────
   On the day arcs' own axis and quieter than them: the arcs are the subject,
   this is the summary underneath. Midnight is the only reference on it — the
   owner has said there is no target bedtime, so there is no target line. */
.bedtime-half { fill: var(--ink); fill-opacity: 0.3; }
.bedtime-half.is-thin { fill-opacity: 0.12; }
.bedtime-mid { stroke: var(--ink); stroke-width: 2; }
.bedtime-midnight { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.arc-line[data-thin='yes'] { color: var(--ink-subtle); }

/* Said: a day of speech, or one meeting of it. The bar steps the day; the
   meeting chips narrow it to the calendar's own window. */
.said { display: grid; gap: 10px; }
.said-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.said-day { font-size: 17px; font-weight: 300; letter-spacing: -0.015em; color: var(--ink); min-width: 13ch; }
.said-step { border: 0; background: transparent; padding: 0 4px; font: inherit; font-size: 15px; color: var(--ink-muted); cursor: pointer; }
.said-step:hover { color: var(--ink); }
.said-step:disabled { color: var(--ink-faint); cursor: default; }
.said-field { margin-left: auto; min-width: 180px; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 2px 0; font: inherit; font-size: 13px; color: var(--ink); outline: 0; }
.said-field:focus { border-bottom-color: var(--ink); }
.said-field::placeholder { color: var(--ink-faint); }
.said-meets { display: flex; flex-wrap: wrap; gap: 6px; }
.said-meet { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--border); background: transparent; padding: 5px 10px; font: inherit; font-size: 12px; color: var(--ink-muted); cursor: pointer; transition: border-color 120ms var(--ease), background 120ms var(--ease), color 120ms var(--ease); }
.said-meet:hover { border-color: var(--border-strong); color: var(--ink); }
.said-meet[aria-pressed='true'] { background: var(--panel); border-color: var(--border-strong); color: var(--ink); }
.said-meet-at { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.said-list { display: grid; }
.said-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--divider); animation: rise 240ms var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 18ms); }
.said-at { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; padding-top: 1px; }
.said-text { font-size: 14px; line-height: 1.45; color: var(--ink); max-width: 72ch; }
.said-lang { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.said-more { justify-self: start; margin-top: 8px; }

/* The Work card set to a view or a job: that seat's title, or that row, lit
   in the accent — the card stays whole, because it is live. */
.work-seat[data-focused] > .work-seat-title { color: var(--ochre-text); }
.work-job[data-focused] { background: var(--wash); box-shadow: -8px 0 0 var(--wash), 8px 0 0 var(--wash); }
