/* Second Brain Dashboard — ribbon.css (layer: app)
   The room's grid and the top bar: brand, state dot, ribbon-widgets, places
   toolbar, sun/moon arc with wake-up/wind-down buttons.
   Loads after tokens.css and components.css; see docs/design-system.md. */

@layer app {

/* ── the room: header spans, rail | center | ledger (v7 grid) ─────────── */
.app {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "top" "ledger" "center";
  /* Cosmos ground. The ruled-paper texture this replaces came from the
     ledger lineage and was the last piece of ink-on-paper still visible after
     the token port: a room built out of navy and one orange, with notebook
     lines ruled across it. The sky is fixed so it holds still while anything
     above it scrolls. Approved boards: the canvas, Cosmos night and daybreak. */
  background-image: var(--sky), var(--ground);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
/* ONE desktop room, from 1000px up. There used to be two: a two-column
   "center ledger" from 1000 and a three-column "rail center ledger" from 1200,
   on the theory that the rail earns its column only where there is room. But
   nothing HID the rail in between, and an item whose grid-area names a track
   that does not exist is auto-placed rather than dropped — so between 1000 and
   1199 the rail invented a fourth column, landed under the ledger, and left the
   conversation crushed into a third of the window. A layout with a band in it
   that nobody looks at is a layout with a bug in it.
   The columns are clamped instead (tokens.css): at 1366 they are exactly the
   240 and 336 they were, and at 1000 they narrow rather than orphan a panel.
   Dan, 2026-09-01. */
@media (min-width: 1000px) {
  .app {
    grid-template-columns: var(--rail-w) 1fr var(--ledger-w);
    /* auto, never a number. This row was pinned at 60px in four places, true
       right up until the sky took a line of its own above the brand and made
       the header 130 tall. A fixed grid row does not fail loudly: the header
       just grows THROUGH whatever is under it, so the brand landed on the
       rail's heading and the tool icons floated over the globe. */
    grid-template-rows: auto 1fr;
    grid-template-areas: "top top top" "rail center ledger";
  }
  /* An empty rail must not hold its column open. Until a brain has places to
     list, that column is dead space with no border and no heading in it, and
     what it does is shift the tab strip, the thread and the composer off the
     middle of the window. It reads as a layout that failed rather than as a
     panel that is not needed yet, and a brand-new brain is the ONLY state in
     which a member sees it, so it is the first impression the interface
     makes. The room goes back to the conversation. */
  body.no-rail .app { grid-template-columns: 0 1fr var(--ledger-w); }
  /* the rail's own display rule lives in rail.css, at this same breakpoint:
     one file owns whether the rail is a column, and it is the rail's */
}
/* A grid item's min-height defaults to auto, so a column taller than its track
   pushes the track open and the whole page grows a scrollbar rather than the
   column scrolling inside itself. This page is meant to hold one screen; the
   ledger grew past it the day the globe went in. Outside the media query
   because a phone stacks the same items and has less room to lose, not more. */
.app > .rail, .app > .ledger, .app > .center, .app > main { min-height: 0; }

/* ── top ribbon ───────────────────────────────────────────────────────── */
.top {
  grid-area: top;
  display: flex;
  /* flex-END, not centre. Centring was invisible while the tallest thing in this
     bar was a 32px glyph; with an 84px mark every control centred itself against
     THAT and the icons ended up floating in the middle of the bar instead of
     sitting near the rule. The mark is free to be tall; nothing else should
     follow it upward. */
  align-items: flex-end;
  gap: 10px;
  min-height: 60px;
  padding: 6px var(--space-4);
  /* the header sits ON the sky, as on the approved boards. A raised bar with
     its own fill cuts the room in two and puts a horizon where the design has
     none; one hairline is all the separation it needs */
  background: transparent;
  border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
  position: relative; /* the tab drawer hangs from here */
}
.top .spacer { flex: 1; }

/* ── the mark (2026-08-25) ────────────────────────────────────────────────
   The lockup replaced the two-lobe placeholder glyph AND the name stack beside
   it. One drawing, one colour, inheriting `color` — that is what going
   monochrome bought: Cosmos paints it white, Daybreak paints it ink, and there
   is no second palette to keep in sync. The word beside the ball is "Astrolabe"
   until the member names their brain, and then it is REPLACED by that name,
   drawn from the same alphabet inside the same SVG. */
/* The mark is the only thing in here now. The awake/asleep caption moved to the
   rail heading, where it answers the question "Your brain" is already asking,
   and the height it was costing went to the mark. The header row is auto, so the
   brand sets the ribbon's height rather than being clipped by it, and it is free
   to run wider than the rail column beneath it. */
.brand {
  display: flex; align-items: center;
  cursor: pointer; margin-right: var(--space-4); min-width: 0; flex-shrink: 0;
  /* it was a <div> with a click handler until the a11y pass, which made the
     brain's identity page mouse-only. As a <button> it needs the chrome off */
  border: 0; padding: 0; background: none; color: inherit; font: inherit;
}
/* the mark hangs its descenders past the rule, so it must not be clipped and
   must paint over the room below rather than under it */
.brand { position: relative; z-index: 2; }
/* the mark is drawn after first paint, so the empty box holds the drawn
   mark's footprint: its height down to the baseline app.js hangs it from.
   .8656 is the lockup's baseline for a name with a descender, the tighter of
   its two, so a name without one still grows the ribbon a few pixels */
.brand { --mark-h: 64px; }
.brand .mark { display: flex; align-items: flex-end; color: var(--ink); min-height: calc(var(--mark-h) * .8656); }
.brand .mark svg { display: block; height: var(--mark-h); width: auto; overflow: visible; }
/* Hover does NOT recolour the mark (Dan, 2026-08-30). It used to go --pen
   whole, which was the only answer it had; now it sparkles for as long as the
   cursor is on it, and flipping the entire lockup orange underneath that reads
   as a state change rather than as the mark noticing you. The letters keep
   their ink and the motion carries the whole reply. */
@media (max-width: 1200px) { .brand { --mark-h: 54px; } }
@media (max-width: 900px)  { .brand { --mark-h: 44px; } }

/* ── the sparkle cycle ───────────────────────────────────────────────────
   Static sparkle reads as a defect: nothing explains why one node is bigger, so
   the eye files it as a rendering error. Motion supplies the reason and the same
   irregularity becomes life.

   One 26s loop carrying TWO events — a subtle ripple, then much later a strong
   one — so it is sometimes barely there and sometimes obvious without needing
   two mechanisms. Most of the loop is flat, which is the point: this lives in a
   header somebody is trying to work in front of.

   `r` animates on an SVG circle, so a node grows IN PLACE on its own grid cell.
   The lattice never moves, so the letterforms stay exactly as legible as they
   are at rest. Column-derived delays (set in nodetype.js) make each event sweep
   left to right as one gesture rather than firing at random. */
/* Two events, fired rarely and at random by nodetype.js animate() rather than
   on a constant loop (Dan, 2026-08-25): a PULSE RUSH sweeps the whole mark left
   to right (per-node delay set in JS off the node's x), and a SPARKLE twinkles a
   scatter of nodes. Both scale IN PLACE via transform, so they are independent of
   the dot radius and the lattice never moves — the letterforms stay legible.
   Most of the time nothing animates at all. */
/* ── scope: wherever the lockup is, not just the ribbon (Dan, 2026-08-30) ─
   The onboarding arc shows the SAME node lattice, built by the same
   buildMarkSvg, in its own modal. These rules were keyed to .brand alone, so
   adding al-tw to the arc's circles was a silent no-op: right markup, right
   classes, no rule to match. `:is()` takes the specificity of its most
   specific argument and both of these are one class, so nothing below shifts.

   `.al-host` is the neutral door for any other surface that shows the
   lockup and wants its motion (a layer's card, say): wear the class, get the
   same nodes moving the same way, no name of that surface in this file.

   The asleep rule further down stays .brand-only on purpose. It exists to
   stop the ribbon's AMBIENT beat, and the arc has no ambient beat to stop. */
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .globe-nodes circle,
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .wordmark circle { transform-box: fill-box; transform-origin: center; }
@keyframes al-pulse   { 0% { transform: scale(1); } 45% { transform: scale(1.5); }  100% { transform: scale(1); } }
@keyframes al-twinkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.75); } }
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-pz { animation: al-pulse .55s ease-out both; }
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-tw { animation: al-twinkle .7s ease-in-out both; }
/* ── some of them shine (Dan, 2026-08-30) ─────────────────────────────────
   A scatter of the nodes already chosen for a beat also carry a warm halo, so
   the gesture has depth in it rather than every node doing one identical
   thing. The same depth the running call's detail box wears (thread.css).

   INTEGRATED, never a second animation. Same durations, same easings and the
   same scale keyframes as the two rules above, with only a filter added.
   nodetype.js hangs `al-gl` on nodes it is ALREADY lighting, in the same pass,
   and they keep the per-node animation-delay it already set. So there is no
   new sequencing, no new timing, no second beat to drift out of step with the
   first, and the mark's rare 45s to 2min cadence is untouched. Change a
   duration above and change it here in the same edit.

   The shadow starts at ZERO BLUR in the same colour rather than fading up
   from transparent: a zero-blur shadow sits entirely behind its own opaque
   circle and so cannot be seen, which buys the fade for free and avoids
   interpolating a colour through grey on the way in. */
@keyframes al-pulse-glow {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 0 var(--pen)); }
  45%  { transform: scale(1.5);  filter: drop-shadow(0 0 2.5px var(--pen)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 0 var(--pen)); }
}
@keyframes al-twinkle-glow {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0 var(--pen)); }
  50%      { transform: scale(1.75); filter: drop-shadow(0 0 3px var(--pen)); }
}
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-pz.al-gl { animation: al-pulse-glow .55s ease-out both; }
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-tw.al-gl { animation: al-twinkle-glow .7s ease-in-out both; }
/* ── asleep, a hand still gets an answer, drowsily (Dan, 2026-08-30) ──────
   The same twinkle at a quarter speed. Not a different gesture and not a
   consolation prize: a sleeping brain is still there, and a mark that ignores
   a cursor entirely reads as broken rather than as resting.

   DURATION ONLY, never the shorthand, and that is load-bearing twice over.
   The reduced-motion rule below sets `animation: none` at lower specificity
   than this; overriding only the duration leaves its animation-NAME of none
   intact, so stilling the room still stills the room. Restating the shorthand
   here would quietly undo it.

   Must sit after the .al-gl rules: same specificity, so the later declaration
   is what makes a glowing node slow down too.

   4x, and nodetype.js holds the same 4 for the delay spread and the cleanup.
   Change one and change both, or the classes get stripped mid-animation. */
:is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-tw.al-zzz { animation-duration: 2.8s; }
/* Asleep the mark does not twinkle AT anybody: the ambient beat declines in
   nodetype.js, and this is the belt to that pair of braces. The hover answer
   is carved out by name, so the only motion a sleeping mark can make is one a
   member's own cursor asked for. A glowing node carries .al-pz or .al-tw too,
   so its halo stops here with everything else. */
body.brain-asleep .brand .al-pz,
body.brain-asleep .brand .al-tw:not(.al-zzz) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-pz, :is(.brand, .arcx, .store-brand, .seed-host, .al-host) .al-tw { animation: none; }
}

/* The eyes ARE the state. Dan's rule: never change their shape, they are either
   there or they are not. Awake, both open. Drowsy, they blink. Asleep, they are
   simply gone and the ball keeps turning over quietly. Nothing else moves. */
.brand .eyes circle { transition: opacity .45s ease; }
body.brain-asleep .brand .eyes circle { opacity: 0; }
body.brain-drowsy .brand .eyes circle { animation: al-blink 5.5s ease-in-out infinite; }
@keyframes al-blink {
  0%, 88%, 100% { opacity: 1; }
  92%, 96%      { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.brain-drowsy .brand .eyes circle { animation: none; opacity: .55; }
}

/* The word (brand or chosen name) is part of the mark's own SVG, not a separate
   element, so there is nothing to size or align here: it shares the ball's grid
   and cannot drift out of step with it. */
/* the first-chat pulse: the brain inviting you to make it yours, on its own
   attribute so a mid-arc discovery repaint can't wipe it */
.brand[data-namenudge] .mark { color: var(--invite); animation: arc-invite 8s ease-in-out infinite; }
.brand[data-namenudge]:hover .mark { animation-play-state: paused; }
/* the twinkle beside the name after first light: a small four point star at
   the lockup's upper right that glints now and then, in the pen */
.soul-twinkle { display: none; position: absolute; right: -14px; top: 4px; width: 12px; height: 12px; pointer-events: none;
  background: var(--pen); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: soul-twinkle 3.2s ease-in-out infinite; }
.brand[data-soultwinkle] .soul-twinkle { display: block; }
@keyframes soul-twinkle { 0%, 60%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; } 72% { transform: scale(1.25) rotate(45deg); opacity: 1; } 84% { transform: scale(.8) rotate(90deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .soul-twinkle { animation: none; opacity: .9; } }
/* #120: the mark says which ENVIRONMENT, not only which brain — a fixture
   must never be mistakable for someone's real life, so this stays loud */
.env-badge {
  margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-xs);
  font: 700 var(--text-xs) var(--body); letter-spacing: 0.08em;
  color: var(--ember); background: var(--ember-wash); vertical-align: middle;
  border: 1px solid var(--ember);
}
.state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--ink-3);
}
.state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.state .dot.awake { background: var(--moss); }
.state .dot.asleep { background: var(--ember); }
/* Working is awake, breathing. It was briefly the terminal's neon and Dan
   called it: "a little too loud". He is right, and the reason is worth keeping.
   This dot sits beside the brain's own name at the top of the rail and is in
   the corner of your eye the entire time you are reading. The phosphor is a
   costume that works on a screen you chose to look at; up here it was a
   machine yelling. Moss that breathes says the same thing and lets you keep
   reading. */
.state .dot.busy { animation: breathe 1.6s ease-in-out infinite; }

.ribbon-widgets { display: flex; align-items: center; gap: 7px; }

/* places are quiet chrome (v6 ribbtn): no box until you reach for one */
.places { display: flex; align-items: center; gap: 4px; }
.places .sep { width: 1px; height: 22px; background: var(--rule); margin: 0 4px; }
/* --ink-2, not --ink-3. Dan, 2026-08-23: the ribbon icons need "better
   visibility up there so darker toward black". They were at tertiary ink,
   which is the level meant for LABELS beside something else that carries the
   meaning. Up here the icon IS the whole control: there is no word next to it,
   so a member who cannot read the glyph has nothing to fall back on. Tertiary
   was quiet in the dark theme and genuinely faint on daybreak. */
.places .icon-btn { border-color: transparent; background: none; color: var(--ink-2); }
/* Hover is the chat tabs' hover (Dan, 2026-10-07): the icon keeps its own ink
   and a soft glow rises from its foot, the same gradient and opacity as
   .tab::before (components.css), in the ink an unplaced tab glows in. No box,
   no colour change. The sun and the bed on the arc take it too. */
.places .icon-btn { position: relative; isolation: isolate; }
body:not(.arc-0) :is(.places, .arc-wrap) .icon-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .2s ease;
  background: radial-gradient(75% 80% at 50% 100%,
    color-mix(in srgb, var(--ink-2) 40%, transparent) 0%, transparent 80%);
}
body:not(.arc-0) :is(.places, .arc-wrap) .icon-btn:hover::before,
body:not(.arc-0) :is(.places, .arc-wrap) .icon-btn:focus-visible::before { opacity: .85; }
@media (prefers-reduced-motion: reduce) { :is(.places, .arc-wrap) .icon-btn::before { transition: none; } }
.places .icon-btn:hover { border-color: transparent; background: none; color: var(--ink-2); }
/* The More button belongs to the phone bar alone. Above 719 the places are on
   the ribbon where they have always been, and a door to the room you are
   already standing in is one more thing to explain. The phone block near the
   foot of this file turns it back on; it is later in the file, so it wins the
   specificity tie on source order. */
.top > .more { display: none; }
/* ...until the wide bar runs out of room. Then app.js sets .crowded, which
   holds the bar to one row and moves what does not fit into the same sheet the
   phone uses; this is the phone's More button, worn the phone's quiet way */
.top.crowded { flex-wrap: nowrap; }
.top.crowded > .more {
  display: grid; flex: none;
  border-color: transparent; background: none; color: var(--ink-2);
}
.top.crowded > .more:hover { border-color: transparent; background: none; color: var(--ink-2); }
.top.crowded > .more[aria-expanded="true"] { border-color: var(--rule); background: var(--paper); color: var(--pen-ink); }

/* sun/moon arc: the day's position, drawn not polled. The ritual buttons at
   its ends are round and float free (v6 ritbtn) — a glow when owed, a moss
   corner dot when done, instead of boxed due/done states */
/* Promoted to its own centred row on 2026-08-23 and put back the same evening,
   at Dan's call, after seeing it: a big sky pushed the brand and the tools onto
   a second line and made the whole header top-heavy for the sake of two buttons
   that are already easy to find. The invitation on beat one did not need the
   size to work; the ring below does that job on its own. */
.arc-wrap { display: flex; align-items: center; gap: 0; position: relative; height: 40px; }
/* overflow visible: near either end of the day the travelling dot sits low on
   the arc, and the drawing's own edge cut its bottom flat (2026-10-16) */
.arc { width: 116px; height: 30px; align-self: flex-end; overflow: visible; }
/* Not `--rule`: that is the hairline that separates two things, and this line
   IS a thing. It is the day, walked. On daybreak it had all but disappeared. */
.arc .path { fill: none; stroke: var(--arc-line); stroke-width: 1.6; stroke-dasharray: 3 5; }
.arc .body { fill: var(--arc-body); opacity: .8; }
/* the small digital clock that sits under the arc (2026-10-21) */
.arc .clock { font-family: var(--data); font-size: var(--text-clock); font-variant-numeric: tabular-nums; letter-spacing: .02em; fill: var(--ink-3); pointer-events: none; }
.arc-wrap .icon-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  /* PADDING 0, and it is the whole centring fix. A button keeps the
     browser's own 6px of side padding unless told otherwise, which in a 26px
     circle leaves a 12px box for a 16px icon. Grid lays that overflow out to
     the right, so the sun and the bed both sat about 1.5px off centre. The
     32px ribbon icons never showed it because their box still fits. */
  padding: 0;
  /* Glass, like the tabs, and a touch deeper because these sit ON the arc
     rather than beside it. A solid `--paper-up` disc read as two stickers
     punched over the sky. */
  border: 1px solid var(--coin-edge);
  background: var(--coin);
  backdrop-filter: var(--tab-blur);
  -webkit-backdrop-filter: var(--tab-blur);
  color: var(--ink-2);
  position: relative; z-index: 2;
}
.arc-wrap .icon-btn:hover { border-color: var(--coin-edge); color: var(--ink-2); }
/* the migration nudge: a normal ribbon icon in the same grey as its neighbours,
   so the row reads as one set. It only exists once the brain is awake and
   vanishes when dismissed, so its presence is the offer; it never has to shout
   in a second colour. */
.icon-btn.migrate { color: var(--ink-2); }
.icon-btn.migrate:hover { color: var(--ink-2); border-color: transparent; background: none; }
.icon-btn.migrate[hidden] { display: none; }
/* the restart: a member control since 2026-10-05, drawn like every other
   icon on the ribbon (it was muted while it was a developer's) */
.icon-btn.devrestart[hidden] { display: none; }
/* from a phone the restart is the desk's (#712): the icon stays, in the
   unavailable ink, with no hover glow to suggest a tap */
.icon-btn.devrestart:disabled { color: var(--ink-3); cursor: default; }
.icon-btn.devrestart:disabled::before { display: none; }
.arc-wrap .icon-btn svg { width: 16px; height: 16px; }  /* 26px less 2px border is 24px: an even icon centres on whole pixels at any zoom (#114) */
.arc-wrap .icon-btn.sun { margin-right: -7px; }
.arc-wrap .icon-btn.bed { margin-left: -7px; }
/* owed: a soft glow beside the arc, not a boxed alarm. In the reading room
   the owed ritual is a HIGHLIGHT, the way a Kindle marks a passage: a reed
   wash behind a dark-ochre glyph and a hairline in the same ink, breathing
   as a wash rather than a light (--due-*). Night keeps paper, ember, glow. */
.arc-wrap .icon-btn.due {
  color: var(--ember); border-color: var(--due-edge, currentColor); background: var(--due-bg);
  animation: ritglow 3.4s ease-in-out infinite;
}
.arc-wrap .icon-btn.due.sun { color: var(--due-sun); }
@keyframes ritglow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--due-glow) 34%, transparent); }
  50%      { box-shadow: 0 0 var(--due-glow-blur) var(--due-glow-spread) color-mix(in srgb, var(--due-glow) 30%, transparent); }
}
/* an idea day (the sun and the bed, every few days at the member's pace):
   a slow soft halo in the invitation's colour, never ember, never an alarm */
.arc-wrap .icon-btn.idea { color: var(--invite); animation: ritidea 6s ease-in-out infinite; }
.arc-wrap .icon-btn.idea:hover { animation-play-state: paused; }
@keyframes ritidea {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%      { box-shadow: 0 0 12px 1px var(--invite-glow, color-mix(in srgb, var(--invite) 35%, transparent)); }
}
@media (prefers-reduced-motion: reduce) { .arc-wrap .icon-btn.idea { animation: none; box-shadow: 0 0 8px var(--invite-glow, transparent); } }
body.bed-away #railwindbtn { display: none; }
/* done: quiet moss, a corner dot as the receipt. Daybreak's receipt is brass,
   the instrument's own metal (--brass is unset in night, which keeps moss). */
.arc-wrap .icon-btn.done { color: var(--brass, var(--moss)); background: var(--paper-up); border-color: transparent; }
.arc-wrap .icon-btn.done::after {
  content: ""; position: absolute; right: 1px; bottom: 1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass, var(--moss)); border: 1.5px solid var(--paper-up);
}


/* ── the phone bar: ONE ROW ────────────────────────────────────────────────
   It was three (identity + arc, then help, then a scrolling toolbar) and it
   measured 171px of a 844px-tall phone before the conversation started. The
   toolbar was the worst of the three: ten buttons flex-SHRANK to 32px each in
   a 370px row, so they were under the touch floor on the axis a thumb cares
   about AND still overflowed — the import button was off the right edge at
   390, the theme toggle at 360, "Where you left off" at 320, with no scroll
   bar to say so. A row nobody can see the end of is not a row.

   So the bar carries only what a phone glances at: who this is, the day's two
   rituals (the one pair that wears `.due`, which is the phone's one glanceable
   fact), and one More button. Everything else moves — really moves, in the
   DOM — into #moresheet, and comes back up here above 719px.

   The places, the pinned rituals and the help button are hidden HERE as well
   as moved, so there is no flash of the old three-row bar between first paint
   and the move; once app.js has run these selectors match nothing. */
@media (max-width: 719px) {
  .arc-wrap .arc { display: none; }
  /* the negative margins tuck sun/bed into the arc's ends — with no arc
     between them they'd stack the two buttons on top of each other */
  .arc-wrap .icon-btn.sun { margin-right: 0; }
  .arc-wrap .icon-btn.bed { margin-left: 0; }
  .arc-wrap { gap: var(--space-2); flex: none; order: 4; height: auto; }
  .top {
    padding: var(--space-1) var(--space-3);
    gap: var(--space-2);
    width: 100%; max-width: 100vw; box-sizing: border-box;
    /* nowrap is the whole rule. Everything else in here only decides what is
       allowed on the row it forces. */
    flex-wrap: nowrap;
    align-items: center;
    /* the base 60px floor was drawn for a bar with a 64px mark in it */
    min-height: 0;
  }
  .top .spacer { display: none; }
  /* the brand is the only thing allowed to shrink, and it shrinks before it
     wraps: min-width 0 is what lets a flex item go under its content size */
  .brand { order: 1; flex: 0 1 auto; min-width: 0; margin-right: 0; min-height: var(--control-touch); }
  .brand .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* --control, the size of every other thing on this bar. At 38 the mark was
     the tallest object in a row built for fingers and set the bar's height by
     itself; at a control's height it sits in the row rather than defining it. */
  .brand { --mark-h: var(--control); }
  .brand .mark svg { max-width: 100%; }
  /* a count of things waiting for the member is not a place; it stays where
     it can be seen. Hidden in the markup until there is a number in it. */
  .top > .approvals { order: 2; flex: none; }
  /* The chair sits with the sun and bed on the right (Dan, 2026-10-24): beside
     the name it read as part of the identity, not one of the room's helpers.
     It takes the push to the right from the arc, and draws a touch under the
     arc's 16px icons rather than at the phone's 18px default. */
  .top > .chair { order: 3; flex: none; margin-left: auto; }
  .top > .chair svg { width: 15px; height: 15px; }
  /* Quiet chrome, like the places it opens — it was the only boxed control on
     a bar of round ones and read as the loudest thing up here, which is
     backwards: More is the least interesting button on the phone bar. It
     takes its box when it is open, and only then. */
  .top > .more {
    order: 5; flex: none; display: grid;
    border-color: transparent; background: none; color: var(--ink-2);
  }
  .top > .more[aria-expanded="true"] { border-color: var(--rule); background: var(--paper); color: var(--pen-ink); }
  /* moved into #moresheet by app.js; hidden here for the paint before that.
     The environment badge goes with them: it is two words and a border that
     wrapped to two lines at 360px, and #120 asks that a fixture never be
     mistakable for someone's real life — which the first row of the sheet
     satisfies, one tap from the mark it is a caption for. */
  .top > .places,
  .top > .ribbon-widgets,
  .top > .help,
  .brand .env-badge { display: none; }
}

/* ── the sheet: one row shape, three kinds of tenant ───────────────────────
   The places, the map's two doors and the help mark are all `.icon-btn`s, so
   they are all one selector here: a full-width row, so nothing shrinks and
   nothing scrolls off the way it did on the bar. The words come from each
   button's own `aria-label` rather than from a second list written here — the
   label is already the short name of the thing ("The store", "Where you left
   off", "Find anything"), already what a screen reader says, and a
   `content: attr()` label cannot drift from it.

   `::before` with an order, not `::after`, because `[data-tip]:hover::after`
   is the tooltip and would replace the words with a sentence the moment a
   mouse touched one. */
/* a ribbon, not a list: each chip is as wide as its own words, and a row
   holds as many as fit before the next (Danny, 2026-09-19) */
.moresheet .places,
.moresheet .ribbon-widgets,
.moresheet .strip {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch;
  gap: var(--space-2); overflow: visible; width: 100%;
}
.moresheet .places .sep { display: none; }
/* the map's two doors stand in for a ledger only a phone hides */
@media (min-width: 720px) { .moresheet .strip { display: none; } }
.moresheet .panel-body .icon-btn {
  display: flex; align-items: center; justify-content: flex-start;
  gap: var(--space-3);
  width: auto; flex: 0 1 auto; height: auto; min-height: var(--control-touch);
  padding-inline: var(--space-3);
  border-color: var(--rule); background: none;
}
.moresheet .panel-body .icon-btn svg { order: 1; flex: none; }
.moresheet .panel-body .icon-btn::before {
  content: attr(aria-label);
  order: 2;
  font: var(--text-base)/1.3 var(--body);
  color: var(--ink);
  text-align: left;
}
.moresheet .panel-body .icon-btn:hover,
.moresheet .panel-body .icon-btn:focus-visible { background: var(--paper); border-color: var(--rule); }
/* the map first, then the room, then the way to read it. The help button is
   not IN the places row and must not be: the legend it opens builds its rows
   from every .places button's own data-tip, and a help button that lists
   itself is a mirror facing a mirror. It is a sibling. */
.moresheet > .panel-body > .strip { margin-bottom: var(--space-2); }
.moresheet > .panel-body > .help { margin-top: var(--space-2); color: var(--ink-3); }
/* a pinned ritual already carries its own words, so it needs only the width.
   max-width and the name's ellipsis keep one long name from pushing the row
   past the sheet's edge: the row wraps, and a pill wider than a whole row
   shortens its words rather than running off (#701) */
.moresheet .ribbon-widgets .ribbon-widget { width: auto; max-width: 100%; min-width: 0; min-height: var(--control-touch); justify-content: flex-start; }
.moresheet .ribbon-widgets .ribbon-widget .rw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* A coin with its own app icon carries the class `app`, and so does the room
   itself: `.app` above is the page's grid, with height 100%, width 100% and
   the fixed sky as its background. Inside this sheet nothing else outranked
   it, so each app coin grew to the pill's width and the full height of the
   window and painted a slab of the sky: the dark and light vertical bands
   drawn over the sheet on a phone (#701, seen in Firefox on Android and
   reproduced in Chromium). The wide bar (boards.css) and the rail (rail.css)
   already say the coin's own size and face; this is the sheet's copy. */
.moresheet .ribbon-widgets .ribbon-widget .icon.app {
  position: relative; display: grid;
  width: 20px; height: 20px; max-width: none; flex: none;
  background: var(--app-bg); background-attachment: scroll;
  overflow: hidden;
}
.moresheet .ribbon-widgets .ribbon-widget .icon.app svg {
  position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: none;
}
.moresheet .ribbon-widgets:empty { display: none; }
/* the fixture warning, first thing in the sheet and still loud (#120) */
.moresheet .env-badge { align-self: flex-start; margin: 0 0 var(--space-3); }

/* mobile browsers move the URL bar; dvh tracks the visible height where vh
   and percent-of-body report the largest, so the composer never hides
   behind chrome. Desktop resolves identically */
@supports (height: 100dvh) {
  /* Divide by the UI zoom. dvh reports the full viewport in CSS px and does not
     shrink under html{zoom}, so a bare 100dvh renders 1.5x the viewport and
     scrolls the whole page. --ui-zoom keeps this reciprocal to the zoom, and the
     base .app{height:100%} above already fits because percent chains through the
     zoomed body. */
  .app { height: calc(100dvh / var(--ui-zoom, 1)); }
}

/* ── the sidebars' edges drag (Dan, 2026-10-19) ───────────────────────────
   "the sidebars to be able to be adjustable in a similar way as the paired
   orchestration columns": the hairline between a sidebar and the
   conversation is a handle, the same band-with-a-grip the paired divider is
   (paired.css .pair-divider), and side-widths.js moves --rail-w-set and
   --ledger-w-set. A double-click puts a sidebar back. Only where the room has
   three columns: below 1000px the sidebars are not columns to size. */
.side-grip { display: none; }
@media (min-width: 1000px) {
  .rail, .ledger { position: relative; }
  .side-grip {
    display: block; position: absolute; top: 0; bottom: 0; width: 9px;
    cursor: col-resize; touch-action: none;
    /* over anything a layer lays across a column: a repository chat covers
       the globe sidebar with its own world (fixed, at 30), and the edge
       stopped answering there (Dan, 2026-10-19). Under every full view. */
    z-index: calc(var(--z-view) - 1);
  }
  .side-grip[data-side="rail"] { right: 0; }
  /* the rail pads every child it holds (rail.css); a handle is not content */
  .app > .rail > .side-grip { padding: 0; }
  .side-grip[data-side="ledger"] { left: 0; }
  /* the grip itself, at the middle of the line, and only when it is wanted */
  .side-grip::after {
    content: ''; position: absolute; top: 50%; width: 5px; height: 28px;
    transform: translateY(-50%); opacity: 0; transition: opacity .15s ease;
    background: radial-gradient(circle, var(--ink-3) 1px, transparent 1.5px) center / 5px 7px repeat-y;
  }
  .side-grip[data-side="rail"]::after { right: 0; }
  .side-grip[data-side="ledger"]::after { left: 0; }
  .side-grip:hover::after, body.side-dragging .side-grip::after { opacity: 1; }
  body.side-dragging, body.side-dragging * { user-select: none; cursor: col-resize !important; }
  /* a streamed page or a canvas would swallow the pointer mid-drag */
  body.side-dragging iframe, body.side-dragging .browse-view { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .side-grip::after { transition: none; } }

} /* @layer app */

/* A grip stays visible when a layer hides what a column holds. A repository
   chat lays its own world over the globe sidebar and hides the column's
   children (visibility: hidden, so the column keeps its size), and a hidden
   element takes no pointer: the edge looked like it was there and did not
   drag (Dan, 2026-10-19, twice). OUTSIDE the layer, because the rule that
   hides it is unlayered and would beat any layered one; it wins here on
   specificity. */
.app > aside.ledger > .side-grip, .app > nav.rail > .side-grip { visibility: visible; }

/* The bed's count: how much would be stranded if you walked away now.
   It pulses, gently, and only while something is waiting. A badge that sits
   there at zero is furniture; one that appears when there is something to put
   away is a signal. The breath is slower than the due-glow's and shallower,
   because this is a reminder at the end of a day, not an alarm. */
.arc-wrap .icon-btn.bed { position: relative; }
/* Its FACE (size, fill, number, ring) is shared with the tab dots and lives
   in components.css, so the two cannot drift apart. What stays here is only
   what is the bed's own: where it sits on the coin, and its breath.

   The fill is --tally, not ember: a count is good news, this place has things
   in it. Ember means DUE here and read as gold-brown on paper, the one note
   this room does not have. */
/* SAME OVERLAP AS A CHAT TAB'S DOT. Dan, 2026-09-18: nudge it up and to the
   right so the bed's count sits on its coin the way a tab's count sits on its
   tab. The tab dot anchors to the top-right corner and is pushed out by
   translate(35%, -40%) of a 15px dot, which is 5px out and 6px up; the same
   offsets are written here as top/right instead of a transform, because the
   transform on this one belongs to the breath (and to the hover that stills
   it, which sets transform: none).

   Pushed out again the same day: at the tab's own offsets the badge still sat
   over the headboard, and Dan asked for more of the bed to be visible under
   it. A tab dot overlaps a wide rectangle where there is nothing to cover; a
   26px coin holding a drawing has no such room, so this one clears the corner
   rather than matching a number that was measured on a different shape. */
.bed-count {
  position: absolute; top: -9px; right: -8px;
  display: grid; place-items: center;
  animation: bedbreath 4.6s ease-in-out infinite;
}
@keyframes bedbreath {
  0%, 100% { opacity: .78; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .bed-count { animation: none; } }
/* Pointing at the bed settles the badge to its rest size, so a member who
   moves the cursor onto it to read the number sees it hold still rather than
   seeming to react to the mouse. The breath is an ambient signal, not a hover
   effect. Dan, 2026-08-24: "it grows and moves away when I mouse over." */
.arc-wrap .icon-btn.bed:hover .bed-count { animation-play-state: paused; transform: none; }

/* ── how hard the moon asks (Astrolabe 5.8) ──────────────────────────────
   Periwinkle, the same colour the sun invites with on the first morning, so
   the two rituals read as one gesture at the two ends of a day. Ember is not
   available for this: in this palette ember means DUE, which is a deadline,
   and a wind-down is an invitation.

   Two speeds only. A scale with five rates is a scale nobody can read; two
   says "there is a bit here" and "there is a lot here", which is the whole of
   what a member needs off a glance. */
#bedbtn[data-nudge] {
  color: var(--invite);
  animation: bed-ask 9s ease-in-out infinite;
}
#bedbtn[data-nudge="high"] { animation-duration: 3.6s; }
@keyframes bed-ask {
  0%, 100% { box-shadow: 0 0 0 0 var(--invite-glow); opacity: .8; }
  50%      { box-shadow: 0 0 14px 2px var(--invite-glow); opacity: 1; }
}
/* one breathing thing per button. The badge is already a signal by existing
   and by its number; while the button itself is asking, the badge holds still
   rather than adding a second rhythm to the same 26 pixels. */
#bedbtn[data-nudge] .bed-count { animation: none; }
#bedbtn[data-nudge]:hover { animation-play-state: paused; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #bedbtn[data-nudge] { animation: none; opacity: .95; }
}

.tab-drawer .row .m { flex: none; font: var(--text-xs)/1 var(--data); color: var(--ink-3); }

/* ── the first-run arc (Astrolabe 5.1 to 5.3) ─────────────────────────────
   Dan's frame is game design, not onboarding: "they give you some sense of
   some controls and space, but you go out and do the obvious first things
   first." Three beats, each earned by an action, and never a tour.

   The hiding lives here rather than in JavaScript so that a member whose arc
   endpoint fails gets their WHOLE dashboard rather than none of it: no class
   on the body, nothing hidden.

   Everything fades IN. Nothing ever fades out, because the only direction this
   goes is forward, and something that appears and then leaves again reads as a
   fault rather than a reveal. */

/* Beat zero: the ritual, and nothing else at all.
   Dan, 2026-08-23: "the first arc experience should be the wake-up button so
   it's clear that should be the routine from the start, and the chat isn't even
   visible."

   This is a stronger claim than the old beat one made. That one said "it's just
   you and this magic chat", and a blank box is a blank box: it asks the member
   to think of something. This says the day here STARTS somewhere, and the first
   thing they ever do is the thing they will do every morning after. The room
   opens when they press it.

   One button on an otherwise empty screen only works if it is unmissable, so
   for this beat alone the sun leaves its corner and stands in the middle of the
   ribbon, glowing on the same eight-second breath everything else in this build
   invites on. */
body.arc-0 .tabs,
body.arc-0 .rail,
body.arc-0 .ledger,
body.arc-0 .ribbon-widgets { display: none; }
/* The chat is hidden on beat zero UNLESS the invitation is open: then the
   composer is the whole point of the screen, so the sheet shows and waits for
   the member's own words while the sun stays quiet. A terminal shows it too:
   a sign-in on a brand-new brain opens one here, and hiding the sheet hid the
   link it was telling the member to open */
body.arc-0:not([data-hello]):not(.terminal):not(.brain-asleep) .sheet { display: none; }
/* the empty-thread "say something" line is noise while the invitation is up:
   the line above the box is already the ask, said better */
body[data-hello="ask"] .panes .hello { display: none; }
/* "Say something below" is a line for an EMPTY conversation, and it was
   hanging above the member's own first message: the rule that hid it was
   keyed to the invitation state, which ends the moment they send. Keyed to
   the structure instead — the pane having anything else in it — so it cannot
   come back through some future state nobody thought to add here. */
.panes .hello:not(:only-child) { display: none; }

/* ── BEAT ZERO IS A SPHERE (2026-09-19) ──────────────────────────────────
   The invitation asks a stranger to say what is on their plate, and the whole
   promise is that they watch it become a place. So the place has to be on
   screen BEFORE they speak, empty and turning, or the first light they make has
   nowhere to land. Only the globe: the ledger's panels, vessel and course all
   stay away until the arc hands them over in their own time.

   `.ledger` is display:none at arc-0 through the layer rule at the foot of
   ledger.css, which is where the override has to answer it from. */
body.arc-0[data-hello="ask"] .ledger,
body[data-hello="world"] .ledger {
  display: flex;
  background: none;
  border: 0;
}
body.arc-0[data-hello="ask"] .ledger > .head,
body.arc-0[data-hello="ask"] .ledger > .body,
body.arc-0[data-hello="ask"] .ledger .globe > :not(.globe-sky),
body.arc-0[data-hello="ask"] .ledger .globe-sky > :not(canvas),
body[data-hello="world"] .ledger > .head,
body[data-hello="world"] .ledger > .body,
body[data-hello="world"] .ledger .globe > :not(.globe-sky),
body[data-hello="world"] .ledger .globe-sky > :not(canvas) { display: none; }
/* and the rest of the room keeps waiting: the reveal is the only thing
   happening, and a rail sliding in beside it is a second thing */
body[data-hello="world"] .rail,
body[data-hello="world"] .ribbon-widgets { display: none; }
/* Stacked at every width, which is the one place in this build the sphere is
   not a side panel. It is the thing the member is looking at and the box is
   directly under it, so speaking and the light arriving are one glance apart.
   A side column would put the causality in peripheral vision, which is where
   this whole moment goes to die. */
body.arc-0[data-hello="ask"] .app,
body[data-hello="world"] .app {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "ledger" "center";
}
body.arc-0[data-hello="ask"] .ledger .globe,
body[data-hello="world"] .ledger .globe { flex: 1; min-height: 0; }
body.arc-0[data-hello="ask"] .ledger .globe-sky,
body[data-hello="world"] .ledger .globe-sky {
  min-height: 0; flex: 1;
  display: flex; align-items: center; justify-content: center;
}
/* Square, and never taller than the room left over the composer. */
body.arc-0[data-hello="ask"] .ledger canvas,
body[data-hello="world"] .ledger canvas {
  width: auto; height: 100%;
  max-width: min(100%, 44dvh); max-height: 44dvh;
  aspect-ratio: 1; margin-inline: auto;
}
/* The reveal state keeps the sphere above and gives the rest to the
   conversation, which now has their own message in it and is about to have an
   answer. The globe is smaller than at beat zero because it is no longer the
   only thing on screen; it is still the thing being watched. */
body[data-hello="world"] .app { grid-template-rows: auto minmax(0, 36dvh) 1fr; }
body[data-hello="world"] .ledger canvas { max-width: min(100%, 34dvh); max-height: 34dvh; }
/* ── "YOU GAVE THIS TO ME" (2026-09-20) ──────────────────────────────────
   The one instant thing that happens on Send, and it is deliberately not a
   semantic one. No spinner, no "Analyzing…", no fake light standing in for a
   note that does not exist yet: those are all progress theater, and progress
   theater is the opposite of what this moment is for.

   What it is instead: the world takes a breath. A single soft swell and a
   half-step of light, once, over about a second. It says the handoff landed
   and it says nothing whatsoever about understanding, which is exactly the
   truth at that instant — the scribe has not answered yet.

   On the canvas rather than in the renderer on purpose: the sphere's own
   drawing has no business knowing about Send, and a filter plus a transform is
   a GPU frame's work rather than a change to how the world is computed. */
.ledger canvas.received { animation: world-received 1100ms cubic-bezier(.22,.61,.36,1) 1; }
@keyframes world-received {
  0%   { transform: scale(1);     filter: brightness(1); }
  32%  { transform: scale(1.014); filter: brightness(1.16); }
  100% { transform: scale(1);     filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  /* the light still says it; nothing moves */
  .ledger canvas.received { animation: world-received-calm 900ms ease-out 1; }
  @keyframes world-received-calm {
    0%, 100% { filter: brightness(1); }
    35%      { filter: brightness(1.14); }
  }
}

/* the conversation is empty here, so the centre is the invitation line and the
   box, sitting under the world rather than filling the screen beside it */
body.arc-0[data-hello="ask"] .center { justify-content: flex-end; }
body.arc-0[data-hello="ask"] .sheet { flex: none; }
body.arc-0[data-hello="ask"] .sheet .panes { display: none; }
/* Out of the absolute centring it uses when it is the ONLY thing on the screen.
   Here there is a sphere above it and a box under it, and it belongs in the
   line between them: one sentence, then the place to answer it. */
body.arc-0[data-hello="ask"] .arc-hello {
  position: static;
  transform: none;
  width: auto;
  margin: 0 auto var(--space-3);
  max-width: 44rem;
}
/* The arc's beats below redraw the grid with no area for the globe, and each
   is (0,2,1) after the world's own grid above, so it lost on source order and
   the globe fell into an implicit corner cell. :not(:where()) keeps them at
   (0,2,1): while the world is up they step aside, and nothing else moves */
body.arc-0:not(:where([data-hello="world"])) .app {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "top" "center";
}
/* Beat zero shows the WHOLE sky, not just the sun. Dan, 2026-08-23: "a new
   arc experience person just sees the wake up, the sun icon, the arc, the dot
   in the arc, and the wind down up top". Seeing the moon on day one is the
   point: it says the day has two ends before anybody has lived one. It simply
   does not glow, because exactly one thing is ever asking.

   No centring hack survives here either. The sky is centred on its own row for
   every member now, so beat zero inherits that instead of faking it with
   position:absolute and a negative-margin correction. */
/* The whole invitation, now that the size is gone: a soft breath on the button
   itself and one ring leaving it, over and over, until it is pressed. This is
   the ONLY thing on the beat-zero screen that moves, which is what makes a 26px
   button impossible to miss without being 44. It exists on beat zero alone, so
   it is a thing that happens once in the life of a brain. */
body.arc-0:not([data-hello="ask"]) #sunbtn {
  color: var(--invite);
  animation: arc-invite 8s ease-in-out infinite;
}
body.arc-0:not([data-hello="ask"]) #sunbtn::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--invite);
  animation: sun-ring 2.8s cubic-bezier(.16,.84,.44,1) infinite;
  pointer-events: none;
}
@keyframes sun-ring {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
body.arc-0 #sunbtn:hover,
body.arc-0 #sunbtn:focus-visible { animation-play-state: paused; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  body.arc-0 #sunbtn { animation: none; opacity: .95; }
  body.arc-0 #sunbtn::before { animation: none; opacity: .5; }
}
/* The one line, centred in the room the chat will fill. It stays up while the
   invitation is open now: it IS the invitation, and the composer under it is
   empty on purpose, so taking the words away would leave a stranger with a
   turning sphere and a blank box and no idea what is wanted. It goes when the
   first message is sent and the conversation answers for itself. */
body.arc-0:not([data-hello]):not(.brain-asleep) .arc-hello,
body.arc-0[data-hello="ask"]:not(.brain-asleep) .arc-hello { display: block; }

/* Beat one: the chat alone. "It's just you and this magic chat." */
body.arc-1 .rail,
body.arc-1:not(:where([data-hello="world"])) .ledger { display: none; }
body.arc-1:not(:where([data-hello="world"])) .app {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "top" "center";
}

/* Beat two: the left rail is awake, and the right is still to come. */
body.arc-2:not(:where([data-hello="world"])) .ledger { display: none; }
/* Below the desktop breakpoint the rail has no column at all, so beat two is
   the chat with a drawer and the arc simply has nothing to reveal there. The
   width below must be the SAME breakpoint the rail shows at: reserve the column
   anywhere the rail can appear, or the arc reintroduces the phantom-column bug
   the room's grid was just cured of. */
body.arc-2:not(:where([data-hello="world"])) .app {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "top" "center";
}
@media (min-width: 1000px) {
  body.arc-2:not(:where([data-hello="world"])) .app {
    grid-template-columns: var(--rail-w) 1fr;
    grid-template-areas: "top top" "rail center";
  }
  /* ...unless there is no rail to arrive. This beat reserves the rail's column
     so the rail can animate INTO it, which is right when a rail exists and
     wrong when one does not: an empty 240px column pushes the conversation
     120px off the middle of the window, and the arc is precisely when nobody
     has any places yet, so it is the state most members meet it in. It beat
     the general no-rail rule on source order alone, both being (0,2,1). */
  body.arc-2.no-rail:not(:where([data-hello="world"])) .app {
    grid-template-columns: 1fr;
    grid-template-areas: "top" "center";
  }
}

/* The rails arrive rather than appearing. Slow enough to be noticed, short
   enough not to be waited on: this is a reveal, not an animation somebody has
   to sit through. */
@keyframes arc-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
body.arc-2 .rail,
body.arc-3 .ledger { animation: arc-arrive .9s cubic-bezier(.16,.84,.44,1) both; }
@media (prefers-reduced-motion: reduce) {
  body.arc-2 .rail, body.arc-3 .ledger { animation: none; }
}

/* Rituals arrive LATE (5.5). The ribbon's tools are the last thing a
   first-timer needs and the first thing that makes the room look busy, so they
   are not there until the arc is done. The sun is the exception Dan named: it
   may be the first thing anybody ever presses, so it stays. */
body.arc-running .places,
body.arc-running #helpbtn,
body.arc-running #bedbtn,
body.arc-running .arc-wrap .arc { visibility: hidden; }
/* Beat zero waits for the member (Danny, 2026-08-26, first fresh-brain walk):
   the model chip is a working-surface accessory, and a first-timer picking a
   model before their first Send is exactly the too-much Dan named. It arrives
   when the arc ends, like the rest of the room. The whole split control hides,
   not just the button: the button alone left an empty frame and a chevron once
   it moved inside #mindswitch. Settings stays visible from the start (Dan,
   2026-10-06, answering #344 on #388: "Settings is fine to appear") */
body.arc-0 #mindswitch,
body.arc-0 #mindnote { visibility: hidden; }
/* ...except on beat zero, which IS the sky. The rule above hides the moon and
   the arc through beats one to three, where the room is filling up and two
   ritual controls would be two more things to explain. Beat zero has nothing
   else on it, so the whole sky shows and only the sun asks. */
body.arc-0 #bedbtn,
body.arc-0 .arc-wrap .arc { visibility: visible; }
/* The migration button is the exception in .places: someone arriving with an
   old vault needs it on day one, so it stays visible through the whole arc while
   the rest of the place-nav is still hidden. Its own `hidden` attribute (JS)
   still governs whether it exists at all; this only defeats the arc's blanket
   visibility:hidden on .places. */
body.arc-running #migratebtn { visibility: visible; }
/* Light/dark is the same exception for a different reason: a member who finds
   the default dark room hard to read needs the switch on the first screen,
   not after the arc (accessibility, issue 220) */
body.arc-running #themebtn { visibility: visible; }

/* -- one new thing at a time (Astrolabe 5.4) -----------------------------
   Dan, 2026-08-23: after the arc, "there's just another single new thing to
   explore with that gentle glow inviting a click".

   So the ribbon does NOT fill up when the arc ends. Each control waits its
   turn, arrives on its own once there has been real use in between, and glows
   until it has been pressed once. Exactly one is ever glowing: two glowing
   things is a choice, and a choice is not an invitation. */
/* Data attributes rather than classes: the ritual painter assigns className
   wholesale on these buttons, so a class here was wiped the next time a ritual
   changed state and the wind-down button reappeared out of turn. */
[data-arc-hidden] { display: none !important; }

@keyframes arc-invite {
  0%, 100% { opacity: .55; filter: none; }
  50%      { opacity: 1; filter: drop-shadow(0 0 6px var(--invite-glow)); }
}
/* Eight seconds, the same breath the uncharted sailboat takes, because they
   are the same gesture at two scales and a second rhythm in the same room
   would read as two things asking. */
/* the seatbelt: an airplane lap belt, straps either side of a big lift latch.
   Buckled while it asks first; unbuckled (latch lifted, the right strap
   fallen away) while it does not. Global, so the copy a window wears at its
   head draws buckled too. */
.belt-loose, .belt-flap-open { display: none; }
:is(#seatbeltbtn, .belt-mark).is-off :is(.belt-strap, .belt-flap) { display: none; }
:is(#seatbeltbtn, .belt-mark).is-off :is(.belt-loose, .belt-flap-open) { display: inline; }

[data-undiscovered] {
  color: var(--invite);
  animation: arc-invite 8s ease-in-out infinite;
}
[data-undiscovered]:hover, [data-undiscovered]:focus-visible { animation-play-state: paused; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-undiscovered], .brand .name[data-namenudge] { animation: none; opacity: .95; }
}

/* One thing at a time on any screen a member reads, and on beat one the one
   thing is the composer. A tab strip with a single tab in it is chrome that
   explains nothing. */
/* display, not visibility: hidden-but-present left a 47px band of nothing
   under the ribbon, and "just you and this magic chat" does not have a band of
   nothing in it. */
body.arc-1 .tabs { display: none; }

/* The way back to the names of things. It is the last thing on the ribbon and
   the quietest: this is a door, not an announcement, so it sits at --ink-3
   until it is hovered or open. While it IS open it holds the pen, because the
   card it opened is on screen and the member needs to see which press to undo. */
/* It sits with the other ribbon icons and it IS one of them, so it takes their
   exact treatment: no border, no fill, the same grey. Inheriting the base
   .icon-btn instead gave it a box the five icons beside it do not have, and a
   boxed question mark at the end of an unboxed row reads as a different KIND of
   control rather than one more of the same. */
#helpbtn {
  margin-left: 2px;
  border-color: transparent; background: none; color: var(--ink-2);
}
#helpbtn:hover { border-color: transparent; background: none; color: var(--ink-2); }
#helpbtn.on { color: var(--here-ink); }

/* ── the lands (Astrolabe 14) ────────────────────────────────────────────
   A region's own colour, as a dot on its row, matching the coastline the
   globe draws for it. Small and low-contrast on purpose: this is a key, not
   a status. Eight dots that shout would turn the rail into a legend, and the
   rail is a list of places. */
.proj .land {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  opacity: var(--land-dot-rest);
  /* THE LEGEND NODE (reading room, 2026-09-26). The land's hue drawn down
     toward the ink so it holds 3:1 on mint, inside a faint ring of its own
     light: a node and its halo, the same object the globe draws, so the rail
     reads as the map's key rather than a category list. The name beside it
     stays in ink. Night sets the mix to 100% and the ring to 0, which is the
     plain land colour it always had. JS sets --l on every dot it paints, so
     the mix never falls back to nothing; !important because the dot's
     background is painted inline.
     DEEPENED, NOT GREYED (Daybreak, 2026-09-27): mixed toward black in oklch,
     which keeps the hue and most of the chroma, where mixing toward the navy
     ink in oklab pulled every land toward the same muddy blue. */
  background: color-mix(in oklch, var(--l) var(--land-dot-mix), black) !important;
  box-shadow: 0 0 0 var(--land-ring-w) color-mix(in oklab, var(--l) 24%, transparent);
}
.proj:hover .land { opacity: 1; }
/* ── "you are here" is the land's own dot (Dan, 2026-09-04) ───────────────
   The active row used to carry a SECOND dot, orange, hanging in the gutter
   beside this one. Two dots side by side made the row say "here" twice in two
   colours, and the orange said it in the brain's colour rather than in the
   colour of the place. So the place's own dot says it: full strength, a halo
   in its own hue, and a little larger.

   Scaled by TRANSFORM rather than by width and height, so the flex box it sits
   in never changes size and the name beside it cannot shift by a pixel as
   rows go in and out of active. Growing the box would have jittered the whole
   column on every tab switch, which is the one thing this row must not do.

   `filter: none` is the vibrancy: --land-on-paper dims these toward the page
   so eight resting dots read as a key rather than a light show, and the active
   one is exactly the one that has earned its full colour back. */
.proj.active .land {
  opacity: 1;
  transform: scale(1.4);
  filter: none;
  /* night: a 7px glow. The reading room: a crisp ring in the land's hue, so
     selection is a shape change as well as a colour one. */
  box-shadow: 0 0 var(--land-on-blur) var(--land-on-ring) color-mix(in oklab, var(--l, currentColor) var(--land-on-mix), transparent);
}
.proj .land { transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
@media (prefers-reduced-motion: reduce) { .proj .land { transition: none; } }
/* ── and BUSY is a different fact from selected (Dan, 2026-09-04) ─────────
   The rule above is "you are here". This one is "the brain is working in
   there", which can be true of a place while you are reading somewhere else,
   and it is the only mark in this column that says so.

   So it outranks the active state: brighter still and larger still. It does
   NOT breathe (Dan, 2026-09-04, on the first cut, which did): "a quick locked
   expansion", held for as long as the work lasts, and back to its ordinary
   appearance when the member moves to another chat or closes that one.

   Which is the better call and it is worth saying why. This column is read
   PAST, not looked at, and a pulse there is a thing in the corner of the eye
   that never resolves. The state being reported is also not a rhythm — the
   brain is either working in that land or it is not — so a steady size says it
   exactly, where a beat implies a progress the dot cannot actually see. The
   tab's own mark is already the moving one; this is its still counterpart.

   The expansion rides the .18s transition declared above, so it snaps in and
   holds rather than easing forever, and it returns the same way. Nothing here
   needs a reduced-motion carve-out: that rule already drops the transition,
   which leaves this an instant size change, which is exactly right. */
.proj.working .land {
  opacity: 1;
  filter: none;
  transform: scale(1.62);
  box-shadow: 0 0 calc(var(--land-on-blur) * 10 / 7) calc(var(--land-on-ring) * 1.5) color-mix(in oklab, var(--l, currentColor) var(--land-on-mix), transparent);
}


/* a store listing taken down: it still works, and it reads as set aside */
.ribbon-widget.withdrawn { opacity: .5; }
.ribbon-widget.withdrawn:hover { opacity: .8; }

/* The apps that move into the side rail (RAIL_APPS) sit in the top bar in the
   page itself, so before the first render placed them they flashed there on
   every load (Dan, 2026-10-16). Until then they take no room in the bar;
   where there is no rail they come back once placed. */
body:not(.apps-placed) .top :is(#ritualsbtn, #ideasbtn, #musicbtn, #railtasksbtn, #railcalbtn, #brushbtn, #dreambtn) { display: none; }

/* ── the chair (Dan, 2026-10-15) ─────────────────────────────────────────
   Quiet chrome like the places icons, sitting just after the mark. It rocks
   back on its legs: ONCE when it has done something worth a look (.wag), and
   on a loop with long still stretches only when it needs a click (.needs).
   The loop is mostly stillness on purpose; a thing that never stops moving
   is a thing the eye learns to ignore. */
.top > .chair { border-color: transparent; background: none; color: var(--ink-2); flex: none; position: relative; }
.top > .chair:hover { color: var(--ink); border-color: transparent; background: none; }
.top > .chair svg { transform-origin: 70% 90%; }
.top > .chair.wag svg { animation: chairwag 1.1s ease-in-out 1; }
/* a need wears the warm end, orange, never the theme's ink (Dan, 2026-10-15:
   yellow, orange and red, "something is up here and I could use a hand") */
.top > .chair.needs { color: var(--chair-warm-2); }
.top > .chair.needs svg { animation: chairneed 7s ease-in-out infinite; }
@keyframes chairwag {
  0%, 100% { transform: rotate(0); }
  18% { transform: rotate(-14deg); }
  36% { transform: rotate(9deg); }
  54% { transform: rotate(-6deg); }
  72% { transform: rotate(3deg); }
}
@keyframes chairneed {
  0%, 22%, 100% { transform: rotate(0) translateY(0); }
  3% { transform: rotate(-16deg) translateY(-1px); }
  6% { transform: rotate(12deg); }
  9% { transform: rotate(-12deg) translateY(-1px); }
  12% { transform: rotate(9deg); }
  15% { transform: rotate(-5deg); }
  18% { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .top > .chair svg { animation: none !important; } }
/* the sparkle: the parachute's own (panels.css, .giftbtn.awaiting), a soft
   halo pulse and six glints twinkling around the chair in turn, big, small,
   big, small. Pine green and white when it has done a job (.glow, three beats,
   chairSparkle); yellow, orange and red for as long as it needs a hand. */
.top > .chair.glow {
  --g1: var(--chair-pine); --g2: var(--chair-white); --g3: var(--chair-pine); --g4: var(--chair-white); --g5: var(--chair-pine); --g6: var(--chair-white);
  --chair-halo: color-mix(in srgb, var(--chair-pine) 45%, transparent);
}
.top > .chair.needs {
  --g1: var(--chair-warm-1); --g2: var(--chair-warm-2); --g3: var(--chair-warm-3); --g4: var(--chair-warm-1); --g5: var(--chair-warm-2); --g6: var(--chair-warm-3);
  --chair-halo: color-mix(in srgb, var(--chair-warm-2) 45%, transparent);
}
/* the welcome, from day two until it has been heard (.intro, openChairIntro):
   gold, a slower glimmer, and it gives way to a job done or a need */
.top > .chair:is(.intro, .invite):not(.glow):not(.needs):not(.working) {
  --g1: var(--chair-gold); --g2: var(--chair-gold-light); --g3: var(--chair-gold-deep); --g4: var(--chair-gold-light); --g5: var(--chair-gold); --g6: var(--chair-gold-light);
  --chair-halo: color-mix(in srgb, var(--chair-gold) 50%, transparent);
  color: var(--chair-gold-ink);
}
/* at work (saving, or sending to the backup): the same glints, slower and
   without the halo's pulse, for as long as the work lasts */
.top > .chair.working:not(.glow):not(.needs) {
  --g1: var(--chair-pine); --g2: var(--chair-white); --g3: var(--chair-pine); --g4: var(--chair-white); --g5: var(--chair-pine); --g6: var(--chair-white);
  --chair-halo: color-mix(in srgb, var(--chair-pine) 40%, transparent);
}
/* news from another computer, waiting to be brought in (.news, 2026-11-16):
   a small pine dot by the top corner (inside the round button, which clips
   its own corners), drawn once and never animated, so it reads
   at a glance and costs nothing a frame. A need or a job done wears over it */
.top > .chair.news:not(.needs):not(.glow) {
  background: radial-gradient(circle at calc(100% - 6.5px) 7.5px, var(--chair-pine) 0 2.5px, transparent 3px) no-repeat;
}
.top > .chair.news:not(.needs):not(.glow):hover { background: radial-gradient(circle at calc(100% - 6.5px) 7.5px, var(--chair-pine) 0 2.5px, transparent 3px) no-repeat; }
/* glints and halo are drawn once and only scaled and faded: animating
   box-shadow or under a filter repaints every frame (about 25% page and 45%
   graphics CPU for this one button, measured 2026-11-12) */
.top > .chair { --beat: 3.4s; --runs: infinite; }
.top > .chair.glow { --beat: 2.6s; --runs: 3; }
.top > .chair.needs { --beat: 2.6s; --runs: infinite; }
.top > .chair::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 14px 1px var(--chair-halo, transparent); opacity: 0;
}
.chair-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; display: none; }
.chair-sparks i {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--c); box-shadow: 0 0 2.5px var(--chair-halo); scale: 0;
  animation: chair-glint var(--beat) ease-in-out calc(var(--beat) * var(--o)) var(--runs);
}
.chair-sparks i:nth-child(1) { --s: 3.4px; --c: var(--g1); --o: .03; translate: -11px -5px; }
.chair-sparks i:nth-child(2) { --s: 1.8px; --c: var(--g2); --o: .12; translate: -5px -12px; }
.chair-sparks i:nth-child(3) { --s: 3.8px; --c: var(--g3); --o: .21; translate: 10px -10px; }
.chair-sparks i:nth-child(4) { --s: 1.6px; --c: var(--g4); --o: .30; translate: 13px 1px; }
.chair-sparks i:nth-child(5) { --s: 3px;   --c: var(--g5); --o: .39; translate: 9px 9px; }
.chair-sparks i:nth-child(6) { --s: 1.8px; --c: var(--g6); --o: .48; translate: -8px 9px; }
.top > .chair:is(.intro, .invite, .working, .glow, .needs) .chair-sparks { display: block; }
/* the halo's soft blur costs graphics on every change, so it pulses in 16
   steps: about half the GPU of a smooth pulse, and slow enough to read as one */
.top > .chair:is(.intro, .invite, .glow, .needs)::before { animation: chair-halo var(--beat) steps(16) var(--runs); }
.top > .chair.working:not(.glow):not(.needs)::before { animation: none; }
@keyframes chair-halo { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes chair-glint { 0%, 18%, 100% { scale: 0; } 9% { scale: 1; } }
.top > .chair.needs:hover::before, .top > .chair.needs:hover .chair-sparks i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .top > .chair::before, .chair-sparks i { animation: none !important; }
  /* still, a few glints stay lit so the state still shows */
  .top > .chair .chair-sparks i:is(:nth-child(1), :nth-child(3), :nth-child(5)) { scale: .7; }
  .top > .chair.working:not(.glow):not(.needs) .chair-sparks i:nth-child(3) { scale: 0; }
  .top > .chair:is(.glow, .needs) .chair-sparks i:nth-child(3) { --c: var(--g2); }
  .top > .chair:is(.glow, .needs) .chair-sparks i:nth-child(5) { --c: var(--g3); }
  .top > .chair.glow:not(.needs)::before { opacity: .75; }
}
/* the window it opens: its line big, its plain explanation quiet under it */
.board-modal.chair-say .bm-title { font-size: 1.35em; line-height: 1.25; text-wrap: balance; }
/* the one plain line under the chair's headline: body type, quieter, short */
.board-modal.chair-say .chair-line { margin: var(--space-2) auto 0; max-width: 34ch; text-align: center; text-wrap: balance;
  font: var(--text-md)/1.5 var(--body); color: var(--ink-2); }
/* three choices (Not now, Send anyway, Talk it through) each stay on one line, wrapping as buttons, never as words */
.board-modal.chair-say .bm-foot { flex-wrap: wrap; justify-content: flex-end; }
/* a yes-or-no question: its two answers centred under the words (Dan, 2026-10-16) */
.board-modal.chair-say.chair-ask .bm-foot { justify-content: center; }
.board-modal.chair-say .bm-foot .bm-btn { white-space: nowrap; }
/* the explainer: short parts, each a heading and a few lines */
/* the walk-through: room under the title, a calm height for each screen */
.board-modal.chair-explain .belt-step { margin-top: var(--space-6); height: auto; min-height: 11rem; }
.board-modal.chair-explain .belt-blocks > * + * { margin-top: var(--space-4); }
.board-modal.chair-explain .belt-dot.on { background: var(--ink-2); }
/* what the keeper kept lately (chairKeptSection, paintKeepSaves). A chat is
   a heading: its glyph, its name in ink, its time quiet at the right. Its notes
   sit under it, indented to the name, each a quiet row with a page glyph that
   washes on hover. Hairlines between chats, nothing boxed, no coloured edge */
.board-modal.chair-say .chair-kept { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--rule-soft); text-align: left; }
.board-modal.chair-say .chair-kept[hidden] { display: none; }
.chair-kept-head { margin: 0 0 var(--space-2); font: 600 var(--text-xs)/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kept-list { display: flex; flex-direction: column; }
.kept-chat { padding: var(--space-2) 0; }
.kept-chat + .kept-chat { border-top: 1px solid var(--rule-soft); }
.kept-chat-head { display: flex; align-items: center; gap: var(--space-2); padding: 4px 0; }
.kept-chat-icon { flex: none; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: var(--radius-round); background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.kept-chat-icon svg { width: 13px; height: 13px; }
.kept-chat-name { flex: 1; min-width: 0; font: 600 var(--text-md)/1.3 var(--body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kept-chat-when { flex: none; font: var(--text-xs)/1 var(--body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kept-note {
  display: flex; align-items: center; gap: var(--space-2); width: 100%;
  margin: 1px 0 0; padding: 5px var(--space-2) 5px calc(22px + var(--space-2));
  border: 0; border-radius: var(--radius-md); background: none; cursor: pointer; text-align: left;
  font: var(--text-md)/1.4 var(--body); color: var(--ink-2); transition: background .15s, color .15s;
}
.kept-note:hover { background: var(--hover-wash); color: var(--ink); }
.kept-note-icon { flex: none; display: inline-flex; color: var(--ink-3); }
.kept-note-icon svg { width: 14px; height: 14px; }
.kept-note-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.board-modal.chair-say .bm-btn.chair-kept-all { display: block; margin: var(--space-2) 0 0 auto; min-height: 0; padding: 4px 0; border: 0; background: none;
  font: 500 var(--text-sm) var(--body); color: var(--ink-2); }
.board-modal.chair-say .bm-btn.chair-kept-all:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* Recent saves, the save card widened: a calmer size than the soul's workspace */
.agent-card.keep-card[data-view="space"] { width: min(880px, 100%); height: min(640px, calc(100dvh / var(--ui-zoom, 1) - 2 * var(--veil-pad, var(--space-5)))); }
.keep-saves .kept-chat { padding: var(--space-3) 0; }
/* "How I do this" sits apart from the nod, quiet, at the far left */
.board-modal.chair-say .bm-btn.chair-how { margin-right: auto; color: var(--ink-2); }

@layer app {
/* ── chat focus (Dan, 2026-10-23) ───────────────────────────────────────
   Not the run page's focus mode (a live card's steps beside its chat): this
   one is the conversation alone. The tab's tray carries the way in (app.js
   setChatFocus); the rail, the ledger, the ribbon's controls and the other
   tabs step aside, the wordmark stays upper left, and one quiet mark upper
   right is the way back. The class lives on body, never in the brain: it
   is a way of looking, not something the member's files hold. */
:root body.chat-focus .app {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "top" "center";
}
body.chat-focus :is(.app > .rail, .app > .ledger, .center > .tabs) { display: none !important; }
body.chat-focus .top { border-bottom: 0; }
body.chat-focus .top > :not(.brand) { display: none !important; }
body.chat-focus .sheet { border-top: 0; font-size: var(--text-base); }
body.chat-focus .box .txt { font-size: var(--text-base); }
@media (max-width: 719px), (hover: none) and (pointer: coarse) {
  body.chat-focus .box .txt { font-size: var(--text-touch); }
}
.chat-focus-x { display: none; }
body.chat-focus .chat-focus-x {
  display: inline-flex; align-items: center; justify-content: center;
  position: fixed; top: var(--space-3); right: var(--space-4); z-index: 40;
  width: var(--control); height: var(--control); padding: 0;
  border: 0; border-radius: var(--radius-round); background: none; cursor: pointer;
  color: var(--ink-3); transition: color .15s ease, background .15s ease;
}
body.chat-focus .chat-focus-x:hover,
body.chat-focus .chat-focus-x:focus-visible { color: var(--ink); background: var(--hover-wash); }
.chat-focus-x svg { width: 18px; height: 18px; }
/* the room clears in one breath rather than snapping */
body.chat-focus .app { animation: chat-focus-in .28s ease-out both; }
@keyframes chat-focus-in { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.chat-focus .app { animation: none; } }
}
