/* ============================================================================
   QUIET CUSTODY — the calm body below the chrome.

   Everything here is translated from the picked mockup
   (`.planning/client-intent/mockups/web-direction-2.html`, ratified as the web
   direction by DR-SIGIL-090 §1): two panes, generous rhythm, soft cards, plain
   words. The mockup's own annotation furniture (amber dashed tags, frame heads,
   the jump bar) is NOT product UI and is not translated.

   ⭐ WHAT THIS FILE IS FOR, BEYOND THE SHELL: the room view, the composer, the
      evidence drawer and the rooms rail are authored as JavaScript by later acts
      (W3/W4/W5) — but their visual grammar is CSS, and CSS is this tree's W1
      half. So the grammar is landed HERE, complete and commented, and those acts
      wire it instead of inventing a second look. Classes below that nothing
      renders yet say so in their own comment.
   ============================================================================ */

/* --- the app region under the header --------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ⭐⭐ [DR-SIGIL-130 EN-12] THE ROOMS SCREEN IS THE WINDOW'S HEIGHT, SO THE CONVERSATION SCROLLS IN ITS OWN
   BOX. Every rule below was written for a pane bounded by the window — `.msgs` and `.rooms` scroll
   (`overflow-y: auto` under `min-height: 0`), the header and composer are `flex: none`, and js/room.js
   `renderTranscript` keeps a reader at the bottom by reading `.msgs`' own scroll position — but the chain
   above them only ever said `min-height: 100dvh` (css/app-shell.css, the suite chrome, untouched here), a
   floor and never a height. Measured over this sheet in a headless Chrome at 1280×800: the document grew
   to 1,561px, `.msgs` never scrolled, the composer sat at y=1561 below the fold, the room header scrolled
   away with the transcript, and the stick-to-bottom read a box that could not scroll. The mockup's
   two panes (Frame C) and its phone frame's "100dvh discipline" (Frame G) are the record.
   Scoped to the Rooms screen alone: the You, Notices and welcome screens stay documents that scroll as
   pages. No z-index, no clip — the chrome popovers and every sheet keep their layers (checks 26/27).
   ⚠ AND ONLY IN A WINDOW TALL ENOUGH TO HOLD THE FIXED PARTS WITH ROOM TO READ: measured at 320×568, the
   chrome, the shell strip, the room header and the composer left the conversation 28px, and at 375×667
   143px. Those fixed parts measure ~330px above the 640px fold and ~520px below it (the header and the
   strip wrap), so the gate is width-aware — 600px of height at desk width, 760px at phone width — and
   below it the screen stays the page that scrolls, as it always was. */
@media (min-width: 641px) and (min-height: 600px), (min-height: 760px) {
  body:has(> main.app > #screen-rooms:not([hidden])) { height: 100dvh; }
}

/* A quiet one-line strip under the chrome where the SHELL reports its own state
   (the client core loaded / is loading / faulted). It is the four-answer
   discipline applied to the surface's own dependency: "the core did not load" is
   a FAULT and says so; it never renders as an app with nothing in it. */
.shell-strip {
  font-size: var(--text-fine);
  font-family: var(--mono);
  color: var(--text-muted);
  padding: 6px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--deep);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.shell-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.shell-strip.quiet { color: var(--tone-quiet); }
.shell-strip.progress { color: var(--tone-progress); }
.shell-strip.good { color: var(--text-muted); }
.shell-strip.fault { color: var(--tone-fault); }
.shell-strip.unknown { color: var(--tone-unknown); }

/* ⭐ [the iteration-2 web fix round, item 6(b)] THE SHELL'S PERSISTENT BANNER ROW, under the strip — today the
   rooms seal's failure alone (js/onboarding.js `roomsSealBanner`). The banner inside wears the four-answer
   register's own `.banner.answer-fault` face unchanged; this row only gives it the strip's place (a static
   flex row, `flex: none`, no z-index — check 26's scale is untouched) and a breath before the page. */
.shell-banner { flex: none; padding-bottom: 12px; }

/* ============================================================================
   TWO PANES — rooms rail + main pane. At the fold they become one pane, which is
   the mockup's Frame G: the same components at every width.
   ============================================================================ */
/* [DR-SIGIL-130 EN-12 — supersede-never-delete: `background: var(--void);` here painted an opaque ground
   over the estate's aurora wash (css/app-shell.css `body::before`), so the Rooms screen was the one
   flat black field in the app while the You screen, which paints no ground, wore the wash. The body
   beneath is the same --void, so nothing changes but the 1.5–3% aurora showing through — no new colour,
   no new layer.] */
.appbody {
  display: grid;
  grid-template-columns: var(--rail-width) 1fr;
  flex: 1;
  min-height: 0;
  background: transparent;
}
@media (max-width: 860px) {
  .appbody { grid-template-columns: 1fr; }
  /* One pane at phone width: the rail is the screen until a room is chosen, and
     the main pane takes over once one is. The shell sets `data-pane` on .appbody;
     W3/W4 drive it. */
  .appbody[data-pane='rooms'] .thread { display: none; }
  .appbody[data-pane='room'] .rooms { display: none; }
}

.rooms {
  border-right: 1px solid var(--border);
  padding: var(--gap-lg) 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}
.rooms .rh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 4px;
}
.rooms .rh h2 {
  font-family: var(--chrome);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1px;
}
/* ⭐⭐ [DR-SIGIL-130 EN-12] THE TWO MOUNTS THE RAIL RENDERS INTO CARRY THE RAIL'S RHYTHM. `.rooms` is a
   column with a 10px gap, but js/rooms.js draws the cards into `#rooms-list` and the pills into
   `#rooms-actions` — two plain boxes the stylesheet never named — so the gap never reached a card, and
   each card (a `<button>`, inline-block by default) shrank to its own content. Measured over this sheet
   before the pass: cards 281–371px wide in a 292px rail, touching edge to edge, the wide ones running
   under the conversation pane, and the preview line's ellipsis never firing because its no-wrap text set
   the card's minimum width. The mockup's rail is a column of equal soft cards; that is now what draws. */
#rooms-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#rooms-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* The mockup's "+ New room" pill. NOT DRAWN IN THIS BUILD — creating a room needs
   the rooms screen and the in-group naming convention, and a control that cannot
   act is not drawn. Its face lives here so W3 wires this grammar rather than
   inventing a second one the day the control can finally act. */
.newroom {
  font-size: 12.5px;
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

/* The room card (W3 renders these). A 2-member group is DRESSED as a direct
   conversation and 3+ as a room — presentation only, the same MLS object. */
.rcard {
  /* [EN-12] a block the full width of the rail — see `#rooms-list` above. */
  display: block;
  width: 100%;
  min-width: 0;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, background-color 0.15s;
}
.rcard:hover { border-color: rgba(0, 200, 255, 0.25); }
/* [EN-12] the keyboard's ring, in the house `.btn` focus register — the card is a button. */
.rcard:focus-visible { outline: 2px solid rgba(0, 200, 255, 0.6); outline-offset: 2px; }
.rcard[aria-current='true'] { border-color: rgba(0, 200, 255, 0.4); background: rgba(0, 200, 255, 0.05); }
.rcard .nm { font-weight: 600; font-size: var(--text-lead); display: flex; align-items: center; gap: 8px; }
/* [EN-12] The title (a claim) leads; the truth key settles to the card's right edge rather than running
   on from it, and drops to its own line, still right-aligned, under a title too long to share one. */
.rcard .nm { flex-wrap: wrap; row-gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.rcard .nm .hex { margin-left: auto; font-weight: 400; }
/* ⭐ THE TRUTH KEY. A title is a claim — a local name, or an identity nobody has
   verified — and the group id is the one thing about a room that is not. It rides
   both places a room is named (the rail card and the room header), so the face is
   declared once rather than under one of them. */
.hex { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }
.rcard .last {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rcard .meta { font-size: var(--text-fine); color: var(--text-dim); margin-top: 5px; display: flex; gap: 10px; align-items: center; }

.lock { font-size: var(--text-fine); color: var(--mint); }

/* The subscription's wave state, as a pill. Four states, four faces. */
.pillstate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-fine);
  border-radius: 999px;
  padding: 1px 9px;
  border: 1px solid currentColor;
}
.pillstate .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pillstate.wave-opening { color: var(--wave-opening); }
.pillstate.wave-catchingup { color: var(--wave-catchingup); }
.pillstate.wave-live { color: var(--wave-live); }
.pillstate.wave-ended { color: var(--wave-ended); }
.pillstate.fault { color: var(--answer-fault); }

/* ============================================================================
   THE MAIN PANE — room header, banners, transcript, composer. Rendered by W4.
   ============================================================================ */
/* ⭐ [OPEN-234] `position: relative` makes the pane the anchor box for the two panels that mount
   LAST in it (the room menu and the header door's evidence drawer). It forms no stacking context
   (no z-index — check 26(f)), so the panels win on DOCUMENT ORDER over the E1 rows' relative ring
   glyphs, which is the sheets' own rule. */
/* ⭐ [DR-SIGIL-130 EN-12 — the W9 drop offsets TRUED; supersede-never-delete: `--tro-h: 94px` here and
   `112px` at phone width were the W9 act's estimates (EN-1/EN-4 named them so). Measured over this sheet
   in a headless Chrome on the two-row header: 90.4px at every width above the 640px fold, then 82–163px
   below it depending on how many rows the title, the buttons and the facts wrap into. `--tro-h` is the
   header's HEIGHT now, measured per band (the `.rm-pop`/`.ev-pop` 6px margin is the drop beneath it),
   and it is the FALLBACK: where the browser has anchor positioning the two panels read the header's real
   bottom edge instead (the guarded block after `.ev-pop`), because a height that depends on content and
   width has no one right number.] */
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; --tro-h: 91px; }

/* ⭐ THE THREE BOXES THE ROOM VIEW MOUNTS INTO, AND WHY THEY EXIST AT ALL.
   `.thread` is a column flex container and its children below were authored as its
   DIRECT children (`flex: none` on `.tro`, `.banner`, `.namerow`, `.composer`;
   `flex: 1` on `.msgs`). W4 renders four of them into stable wrapper boxes instead,
   so that an arriving message can re-render the banners without rebuilding the
   field or the textarea somebody is typing in — a re-render that ate a half-typed
   message would be the surface losing a person's words.

   The wrappers therefore have to CARRY the flex behaviour the wrapped elements
   declare, or the grammar quietly changes shape the day a window is short: a
   wrapper defaults to `flex: 0 1 auto`, which is shrinkable, while everything it
   wraps was authored `flex: none`. Declared here so that what the markup does and
   what the stylesheet says stay one thing.
   ⭐ [OPEN-234 — supersede-never-delete: `.namebox` retired. The two rows it wrapped (the naming
   editor and the disappearing control) moved into the ⋯ Room menu's own sections (js/room.js),
   which keep the same rebuild-on-signature discipline; nothing draws `.namebox` any more, and the
   declaration below keeps only the two wrappers that still mount.] */
.bannerbox, .composerbox { flex: none; min-height: 0; }
/* ⭐ [OPEN-234] the alarms band's bare note lines (the node/page alarm arms, the read's own notes)
   take the pane's inset — they sat flush against the pane edge before the menu act (the mockup
   pass's Q3g(ii) finding, plate 01 draws the quirk faithfully). */
.bannerbox > .note { margin: 8px 26px 0; }

/* [DR-SIGIL-130 EN-12 — supersede-never-delete: `padding: 14px 26px 10px;` and `gap: 6px 14px;`. The
   mockup's own header rhythm (`.tro { padding: 16px 26px 12px }`, Frame C), and a row gap that lets
   the facts row read as its own line under the title row rather than pressed against it.] */
.tro {
  padding: 16px 26px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  flex: none;
}
.tro h2 { font-family: var(--chrome); font-weight: 400; font-size: 18px; letter-spacing: 0.5px; }
.tro .sub { font-size: 12px; color: var(--text-muted); width: 100%; }
.tro .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* ⭐⭐ [DR-SIGIL-130 W9 — findings WF-10/11] THE HEADER IN TWO ROWS (js/room.js renderHeader): who
   the room is and what a person can press on the first, the room's quiet facts on the second. The
   grouping and the spacing are the act's; every string, door and accessible name is the one the
   single row drew. ⛔ No z-index here either (check 26(f)): nothing in the header stacks. */
.tro-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
.tro-id h2 { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.tro-meta {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
  min-height: 20px;
  font-size: var(--text-fine);
  color: var(--text-muted);
}
.tro-meta:empty { display: none; }
/* The live stream's chip and its one control, kept side by side (renderBanners: "continue the
   stream" lives beside the wave pill, and is not drawn twice). */
.tro-wave { display: inline-flex; align-items: center; gap: 8px; }
/* Header buttons sit at the facts' scale rather than the page's — the same faces, compact. */
.tro .btn { padding: 6px 14px; font-size: 13px; }
.tro .btn.rm-kebab { padding: 4px 13px; font-size: 16px; line-height: 1.35; }
.tro-wave .btn { padding: 2px 10px; font-size: var(--text-fine); }
/* The phone-width "‹ Rooms" return (the mockup's Frame G). It is the control that
   moves `.appbody[data-pane]` back to the rail; W3/W4 draw it, and only at the
   width where one pane is showing — at desk width both panes are on screen and a
   back control would point at something already visible. */
.backlink {
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  color: var(--cyan);
  cursor: pointer;
  padding: 0;
  display: none;
}

/* ⭐ THE FOUR ANSWERS AS FOUR BANNERS (the mockup's Frame D in this direction's
   voice). One class per answer, never shared: a fault does not wear the empty
   state's face, and "not yet ready" is neither. */
.banner {
  margin: 14px 26px 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: var(--text-note);
  border: 1px solid;
  flex: none;
}
.banner b { color: var(--text); font-weight: 600; }
/* [EN-12] A banner's detail line sits a breath under its sentence rather than touching it — in the
   alarms band and in the two panels alike (the panels zero their bare notes; a banner's own note is
   not one of those). */
.banner > .note,
.rm-sec .banner > .note,
.ev-pop .banner > .note { margin-top: 4px; }
.banner.answer-served { border-color: rgba(0, 255, 180, 0.25); background: rgba(0, 255, 180, 0.04); color: var(--text-muted); }
.banner.answer-empty { border-color: rgba(0, 200, 255, 0.25); background: rgba(0, 200, 255, 0.04); color: var(--text-muted); }
.banner.answer-notready { border-color: rgba(120, 134, 160, 0.3); background: rgba(120, 134, 160, 0.05); color: var(--text-muted); }
.banner.answer-fault { border-color: rgba(255, 68, 102, 0.35); background: rgba(255, 68, 102, 0.05); color: var(--text); }
/* The named-gap band (R6-G3): history is covered but not served — it is neither
   an answer nor a failure, and it keeps its own face. */
.banner.gap { border-color: rgba(255, 170, 48, 0.35); background: rgba(255, 170, 48, 0.05); color: var(--text); }

.msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--gap-lg) 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.day { align-self: center; font-size: var(--text-fine); color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* --- a message ------------------------------------------------------------- */
/* ⭐⭐ [DR-SIGIL-130 EN-12 — the design pass: ONE QUIET LINE PER MESSAGE. Supersede-never-delete: the
   three rules below read `.m { max-width: 66%; }`, `.m.them { align-self: flex-start; }` and
   `.m.me { align-self: flex-end; }`, and the children stacked as blocks — so an own line drew its
   bubble, then the timer mark, the delivery word, the receipt ladder and "Delete…" on FOUR rows of
   microtext, and somebody's line its name, bubble, timer and "Delete…" on four. That stack is the
   "big black background with lots of text" the operator named (WF-12); the picked mockup
   (web-direction-2.html Frame C) draws a bubble and one quiet line.
   THE GRAMMAR, CSS ONLY — no element, string, class or order in the DOM changes (the renderers in
   js/room.js and every exercise leg over them are untouched):
     · `.m` is a WRAPPING ROW. `.m::before` is a zero-height, full-basis flex item that forces the
       one line break, and `order` places each child either side of it.
     · SOMEBODY ELSE'S line (`.m.them`): the name, its unattested badge, the timer mark and "Delete…"
       on the one line ABOVE the bubble — the mockup's `.who` row, carrying the line's other facts.
     · THIS DEVICE'S line (`.m.me`): the bubble, then the one line BELOW it — the timer mark, the
       delivery word (still the button that opens the evidence drawer), the ✓/✓✓ ladder
       (DR-SIGIL-121 — the mockup's old glyph set is superseded, EN-12) and "Delete…".
     · Everything that is a SENTENCE or a PANEL — the submit note, the not-sent block, the evidence
       drawer and the delete drawer — takes a full row after the line (`order: 3`), so a drawer still
       opens one tap deep, directly under what opened it.
   ⚠ Visual order equals DOM order within the line; the one divergence is "Delete…", which sits on
   the line while an OPEN evidence drawer sits under it — focus walks the word, the drawer it
   opened, then "Delete…", which is the order that drawer reads in. With every drawer closed (the
   resting room) visual and focus order are one.] */
.m {
  max-width: 66%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}
.m.them { align-self: flex-start; justify-content: flex-start; }
.m.me { align-self: flex-end; justify-content: flex-end; }
/* The break between the bubble and its line — empty, zero-height, a full row by itself. */
.m::before { content: ''; flex: 0 0 100%; height: 0; margin-top: 5px; order: 1; }
.m > .bub { min-width: 0; max-width: 100%; }
.m.them > .bub { order: 2; }
.m.me > .ttl,
.m.me > .status,
.m.me > .rcpt,
.m.me > .msgact { order: 2; }
.m > .note,
.m > .drawer,
.m > div.status { order: 3; flex-basis: 100%; }
.m.me > .note { text-align: right; }
.m .who { font-size: 12px; color: var(--text-muted); margin: 0 4px; display: flex; gap: 7px; align-items: center; }
.m .who .n { font-weight: 600; color: var(--cyan); }

/* ⭐ IDENTITY IS DATA UNTIL THE SEAL LANDS (R6-G4 / DR-SIGIL-090 §4). This tag is
   the word "unattested" (DR-SIGIL-099 §4 — one word on every surface) — an
   explicit statement, never an implied verdict. There is deliberately NO
   "verified" class in this sheet: the treatment a core-computed verdict will wear
   does not exist yet, so no surface can reach for it by accident. It arrives with
   P4a and with nothing else.
   ⭐⭐ [2026-10-29, RULING ADDENDUM 3 — OF-2, THE BADGE QUIETS; supersede-never-delete. This rule read:
     .idtag { font-size: 10px; color: var(--text-muted); border: 1px dotted rgba(255, 255, 255, 0.25);
              border-radius: 4px; padding: 0 5px; cursor: help; }
   — a bordered pill. The tag now draws only at the KEPT sites (the admission prompt, the redeem sheet's
   identity lines, the Members rows, the evidence drawer's sender row), and there in the ruled QUIET
   treatment: small dim text, no bordered pill. The word is unchanged ("unattested", js/render.js), its
   tooltip is unchanged and still the help cursor's reason, and there is still no verified face here.] */
.idtag {
  font-size: 10px;
  color: var(--text-dim);
  cursor: help;
}

.bub { border-radius: 14px; padding: 10px 15px; font-size: var(--text-lead); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.m.them .bub { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 5px; }
.m.me .bub {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.13), rgba(120, 80, 255, 0.13));
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-top-right-radius: 5px;
}

/* ⭐ THE FIVE DELIVERY STATES AS ONE QUIET WORD. Five classes, five tokens; the
   words themselves are in js/state.js so one file owns the vocabulary. Tapping
   the word opens the evidence drawer (W5) — the calm word never REPLACES the
   ledger, it opens it. */
.status { font-size: var(--text-fine); margin: 4px 6px 0; text-align: right; background: none; border: 0; font-family: inherit; }
/* [EN-12] On the message's one line the word takes the line's spacing, not its own; the not-sent
   block (a `div.status` with its sentences) keeps a full row under the bubble. */
.m > .status { margin: 0; }
.m > div.status { margin: 0 6px; }
/* ⚠ THE HAND ONLY WHERE THERE IS SOMETHING TO OPEN. `statusWord()` renders a
   BUTTON when the evidence drawer is wired and a plain SPAN when it is not (W5 is
   its own act) — so the pointer cursor is scoped to the button. A span that looked
   clickable would be a control that cannot act, drawn. */
button.status { cursor: pointer; }
/* ⭐ THE DOOR READS AS A DOOR. The status WORD gets a dotted underline (the
   classic "there is more behind this" signal) and the trailing hint is muted
   and brightens with the word on hover/focus — so the evidence drawer is
   discoverable without a tour. The hint is aria-hidden: the button itself is the
   control, and a screen reader hears the word, not the decoration. */
button.status { text-decoration: underline dotted var(--tone-quiet, currentColor); text-underline-offset: 3px; }
button.status .evhint { text-decoration: none; color: var(--tone-quiet); font-size: 0.9em; }
button.status:hover, button.status:focus-visible { filter: brightness(1.25); outline: none; }
button.status:hover .evhint, button.status:focus-visible .evhint { color: inherit; }
.status.state-pending { color: var(--state-pending); }
.status.state-submitted { color: var(--state-submitted); }
.status.state-accepted { color: var(--state-accepted); }
.status.state-refused { color: var(--state-refused); font-weight: 600; }
.status.state-faulted { color: var(--state-faulted); font-weight: 600; }
/* [WAVE DR-131 web package B] a commit's two states since the merge-at-position act. */
.status.state-sequenced { color: var(--state-sequenced); }
.status.state-superseded { color: var(--state-superseded); }
/* A taxonomy member this surface does not know: it says so, loudly and honestly,
   rather than picking the nearest word. */
.status.state-unknown { color: var(--tone-unknown); font-weight: 600; }

/* ⭐ RESERVED — AI PROVENANCE AND propose→approve (critic item 11).
   AI participation is the IMMEDIATE follow-on rung (DR-SIGIL-077 §3) and is NOT
   built here. This is its reserved slot in the message grammar: a row between the
   bubble and the status word, empty and taking no space today, so the next rung
   adds provenance and an approval affordance WITHOUT reflowing a freshly-picked
   surface. Nothing renders it in this build; do not repurpose it. */
.m .m-provenance { display: none; font-size: var(--text-fine); color: var(--text-muted); margin: 4px 6px 0; }
.m .m-approval { display: none; margin: 6px 0 0; }
/* [EN-12] Under the one-line grammar the reserved slot keeps its promise by order: a full row in the
   break's own place — between the bubble and the status line on this device's lines. Still drawn by
   nothing. */
.m .m-provenance,
.m .m-approval { order: 1; flex-basis: 100%; }

/* ⭐ THE DELETE DOOR (R-010 acts HE9 + HE10) — the evidence door's quiet register, on every placed
   line: a muted, dotted-underline word that opens the delete drawer (step one of two). It deletes
   nothing itself; the drawer says what each choice does and holds the act's own button.
   ⭐ [DR-SIGIL-130 W9 — supersede-never-delete: "a muted, dotted-underline word" is the record. The
   finding (WF-11) was that it did not read as something to press, so it wears a TRUE BUTTON SHAPE
   now: a small outlined pill in the house's ghost register, its words unchanged ("Delete…", the
   ellipsis kept — it still opens a step, never acts). Still quiet: muted until hovered or focused,
   and its open state says so.] */
/* ⭐ [DR-SIGIL-130 EN-12 — supersede-never-delete: this rule read `margin: 5px 4px 0;` and `padding: 2px
   11px;`, followed by `.m.me .msgact { margin-left: auto; }` — the door drew on its own row under every
   line. It sits ON the line now, so it takes the line's spacing and a padding one step smaller to sit at
   the line's height. Its border, colour and every hover, focus and press state are WF-11's, unchanged:
   the true button shape is the finding's answer, and quieting it further is the operator's perceptual
   call, not this pass's. It is never hidden — a door a touch screen cannot find is not a door.] */
.m .msgact {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  padding: 1px 10px;
  font: inherit;
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.m .msgact:hover,
.m .msgact:focus-visible { color: var(--text); border-color: rgba(0, 200, 255, 0.45); background: rgba(0, 200, 255, 0.06); outline: none; }
.m .msgact:focus-visible { box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.3); }
.m .msgact:active { background: rgba(0, 200, 255, 0.12); }
.m .msgact[aria-expanded='true'] { color: var(--text); border-color: rgba(255, 68, 102, 0.45); }

/* ⭐⭐ THE REPLY QUOTE (2026-11-04, the reply web leg — .planning/REPLY-TO-MESSAGE-DESIGN-2026-11-04.md §8): the
   answered line's label and first ~120 characters, ABOVE a reply's bubble (and in the composer's strip). A quiet
   left-ruled block in the house's surface register; resolved, it is a button that scrolls to the line, so it wears
   the pointer; unresolved (`.reply-quote-absent`), it is the core's ruled sentence in a dimmer face and is no control.
   It takes a full row of the message's wrapping line, directly above the bubble: on somebody's line the bubble sits
   after the break (`order: 2`), so the quote takes the bubble's order and comes first in the DOM; on an own line the
   bubble opens the line, so the quote is ordered ahead of everything (`order: -1`). The snippet is clamped to two
   lines: the words are data, never laid out at full length here. */
.reply-quote {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 0;
  border-left: 2px solid rgba(0, 200, 255, 0.45);
  border-radius: 6px;
  font: inherit;
  font-size: var(--text-fine);
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
}
button.reply-quote { cursor: pointer; }
button.reply-quote:hover,
button.reply-quote:focus-visible { color: var(--text); background: rgba(0, 200, 255, 0.06); outline: none; }
.reply-quote-absent { border-left-color: var(--border-lit); color: var(--text-dim); font-style: italic; }
.m > .reply-quote { flex-basis: 100%; }
.m.them > .reply-quote { order: 2; }
.m.me > .reply-quote { order: -1; }
.reply-who { font-weight: 600; color: var(--cyan); }
.reply-snippet {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* The composer's strip: the quote, then its Cancel, on one row above the box. */
.reply-to { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.reply-to > .reply-quote { flex: 1 1 auto; }
.reply-to .msgact {
  background: transparent;
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  padding: 1px 10px;
  font: inherit;
  font-size: var(--text-fine);
  color: var(--text-muted);
  cursor: pointer;
}
.reply-to .msgact:hover,
.reply-to .msgact:focus-visible { color: var(--text); border-color: rgba(0, 200, 255, 0.45); outline: none; }

/* ⭐⭐ THE PER-MESSAGE TIMER MARK (DR-SIGIL-130 W3 — finding WF-16): how long a timed word has left on
   this device, subtle under its bubble (js/states.js `timerMark`). A small ring drawn by the face — no
   glyph in the words — and a calmer, dotted ring for a keep-until-read word still waiting to be read
   here, because no timer runs for it yet. */
/* [EN-12 — supersede-never-delete: `margin: 4px 6px 0;` here, and `.m.me .ttl { margin-left: auto; }`
   below, set the mark on its own row. It is an item on the message's one line now.] */
.m .ttl {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  font-size: var(--text-fine);
  color: var(--text-dim);
}
.m .ttl::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
}
.m .ttl.waiting::before { border-style: dotted; border-right-color: currentColor; }

/* ⭐⭐ THE RECEIPT LADDER (wave DR-130 W2 — DR-SIGIL-121 §1): sent → delivered → read on this device's own
   lines, the double-check idiom — one check, two checks, two checks in the read colour (js/state.js
   `RECEIPT_STATES` carries the glyph, the word that is its accessible name, and the sentence that is its
   tooltip). Quiet, beside the line; NO time is drawn, because none exists. A line the core answers nothing
   for draws no mark at all (js/states.js `receiptMark`).
   [EN-12 — supersede-never-delete: `display: block;` and `margin: 2px 6px 0 auto;` put the ladder on its
   own row under the delivery word. It stands BESIDE the word on the one line now — the mockup's
   "Accepted ✓" register, with the DR-SIGIL-121 ladder in place of the superseded glyph.] */
.m .rcpt {
  display: inline-block;
  width: fit-content;
  margin: 0;
  font-size: var(--text-fine);
  line-height: 1.2;
  letter-spacing: -0.18em;
  color: var(--text-dim);
  cursor: help;
}
.m .rcpt.rcpt-sent { color: var(--text-dim); }
.m .rcpt.rcpt-delivered { color: var(--text-muted); }
.m .rcpt.rcpt-read { color: var(--cyan); }

/* ⭐ THE CALM LEAVING STATE (wave DR-130 W8 — EN-5 F1's ruled words): in the composer's place while this
   device is leaving a room, and at the top of the room menu's leave-or-remove section. A state, not an
   alarm — the quiet panel face, never the fault banner's. */
.leaving {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px dashed var(--border-lit);
  border-radius: 10px;
  background: var(--deep);
  color: var(--text-muted);
  font-size: var(--text-fine);
}
.leaving b { color: var(--text); font-weight: 600; }
.leaving .note { margin: 0; }

/* System rows — CommitMerged and friends, rendered as human sentences (W4).
   [DR-SIGIL-130 EN-12 — supersede-never-delete: `border-radius: 999px;` and `padding: 3px 14px;` drew the
   mockup's pill for its one short sentence, and the rows this build draws are often two or three
   sentences (the disappearing setting with its ruled origin sentence) — a full-width stadium. The radius
   is now half a one-line row's height, so a short row is still exactly the pill and a long one is a
   soft card, and the measure is capped so a long sentence reads as lines rather than one band across
   the pane. Same face, same words.] */
.sysline {
  align-self: center;
  max-width: min(92%, 680px);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 16px;
  text-align: center;
}

/* The evidence drawer (W5) — the mono facts one deliberate tap away. */
.drawer {
  margin: 6px 0 0;
  background: var(--deep);
  border: 1px solid rgba(120, 80, 255, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
}
.drawer h5 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.drawer .kv { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; }
.drawer .k { color: var(--text-muted); font-family: var(--mono); font-size: 10.5px; }
.drawer .v { font-family: var(--mono); font-size: 10.5px; color: var(--text); overflow-wrap: anywhere; }
/* The one control inside the drawer: the elided byte strings, in full and back. */
.drawer .more {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-fine);
  color: var(--text-muted);
  text-decoration: underline dotted;
  cursor: pointer;
}

/* ⭐ THE SEALED SLOT — permanently dashed, and fillable by NOTHING except a
   verdict computed IN THE CORE (DR-SIGIL-090 §4). It is styled here and filled
   only from a `SigilSeal`, whose constructor no browser can reach; js/evidence.js
   is the one module that reads one and check 18 measures that. The dashed border
   stays in both states: a verdict is a verdict, and this box never becomes an
   ordinary panel because the answer came back yes. */
.drawer .sealed-slot {
  margin-top: 8px;
  border: 1px dashed rgba(120, 134, 160, 0.4);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: var(--text-fine);
  color: var(--text-dim);
}

/* ⭐ THE SIX SEAL WORDS (W5) — the chip's size, in the drawer, wearing the tone
   each answer honestly has. The faces are RE-USED from the ruled sets on purpose
   (README honesty rule 6): the root's yes wears the accepted face, a no about a
   credential the refusal face, a fault the fault face, a not-yet the not-ready
   one, an authoritative empty the empty one, and "this device cannot ask" the
   quiet one. No token is minted for this taxonomy and it is NOT in FACE_DISTINCT:
   no ruling names it, and a surface that minted one would be deciding R6-G11's
   classes from a stylesheet. The seventh word does not exist and has no face. */
.drawer .sealword { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; }
.drawer .sealword.state-accepted { color: var(--state-accepted); }
.drawer .sealword.state-pending { color: var(--state-pending); }
.drawer .sealword.state-refused { color: var(--state-refused); }
.drawer .sealword.state-faulted { color: var(--state-faulted); }
.drawer .sealword.answer-empty { color: var(--answer-empty); }
.drawer .sealword.answer-notready { color: var(--answer-notready); }
/* And an answer this surface has no word for says so, loudly — the same treatment
   every other taxonomy's unknown member gets. */
.drawer .sealword.state-unknown { color: var(--tone-unknown); }

/* --- the composer (W4) ----------------------------------------------------- */
.composer { border-top: 1px solid var(--border); padding: 14px 26px; background: var(--deep); flex: none; }
.composer .row1 { display: flex; gap: 12px; align-items: flex-end; }
.composer textarea {
  flex: 1;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: var(--text-lead) / 1.5 var(--sans);
  padding: 11px 15px;
  min-height: 46px;
  resize: none;
}
.composer .send {
  background: linear-gradient(95deg, #00c8ff, #7850ff 62%);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
}
/* [EN-12 — supersede-never-delete: `gap: 16px` was the column gap AND, once the three facts wrap, a
   16px gap between their lines — a loose band of fine print under the box. The lines now sit at the
   reading rhythm; the columns keep their 16px.] */
.composer .row2 { margin-top: 7px; font-size: var(--text-fine); color: var(--text-dim); display: flex; gap: 3px 16px; flex-wrap: wrap; }
.composer .row2 b { color: var(--text-muted); font-weight: 500; }

/* --- the in-group naming editor (W3) --------------------------------------
   A full-width row UNDER the room header rather than a child of it, and that is
   structural rather than cosmetic: the header re-renders every time a message
   arrives, and a field somebody is typing into must not be rebuilt under them.
   It holds the field, its two controls, and whatever the core's name fence
   refused — in the core's own sentence.
   ⭐ [OPEN-234 — supersede-never-delete: the PLACEMENT sentence above is the record, not the
   layout. The row no longer sits under the room header — it mounts inside the ⋯ Room menu's
   "Room name" section (the operator's M1 pick; js/room.js) — and the STRUCTURAL half survives
   the move unchanged: the menu section is rebuilt only on its own signature, so a live stream
   still never rebuilds the field somebody is typing into. The rules below now style the row
   wherever it mounts, and `.rm-sec .namerow` strips the pane inset inside the menu.] */
.namerow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 26px 0;
  flex: none;
}
.namerow .field { flex: 1; min-width: 220px; width: auto; }
.namerow .note { width: 100%; margin: 0; }
.namerow .banner { width: 100%; margin: 4px 0 0; }
@media (max-width: 640px) {
  .namerow { padding: 8px 16px 0; }
}

/* ============================================================================
   ⭐⭐ OPEN-234 — THE ROOM MENU AND THE HEADER'S EVIDENCE DOOR (the operator's
   ruled pick, 2026-10-13: layout M1 per the mockup plates 02–03, Evidence B,
   riders RM-01/RM-03a/Q3a.1). Every face below is built from tokens this sheet
   already declares; the values are the picked plates', translated
   (`SelarysAtlas/estate/working-sets/sigil-room-menu-mockups/`).

   ⛔ NO Z-INDEX ANYWHERE IN THIS BLOCK, AND THAT IS THE LAW, NOT AN OVERSIGHT
   (check 26(f)): the two panels mount LAST in the pane and win on document
   order — the sheets' own rule. The accepted cost of the M1 pick is named in
   the pick record: the disappearing editor SCROLLS inside the anchored panel.
   ============================================================================ */

/* The ⋯ control (RM-01 gives it its accessible name, "Room menu"). */
.rm-kebab { padding: 11px 15px; font-size: 16px; line-height: 1.35; letter-spacing: 1px; position: relative; }
/* The closed-menu pending signal: a small dot, NO WORDS — the app's submitted
   colour while a setting made inside the menu waits on the node, red once
   refused. The sentence itself stays with its control inside the menu. */
.rm-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--state-submitted);
  box-shadow: 0 0 0 2px var(--void);
}
.rm-dot.refused { background: var(--state-refused); }

/* The timer at rest (Q3b): the status line's own bold lead as a quiet door into
   the menu — drawn only while a timer is on, nothing when off. */
.ddoor {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-fine);
  color: var(--text-muted);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.ddoor:hover, .ddoor:focus-visible { color: var(--text); outline: none; }

/* Evidence B's header words — the house evidence-door register (the delivery
   word's own dotted underline and muted " · evidence ▾" hint) at room scale.
   Each word wears ITS OWN entry's face; the chip only ever carries calm words,
   because alarms never move off the conversation. */
.evdoor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-fine);
  white-space: nowrap;
  cursor: pointer;
}
.evdoor .fd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.evdoor .fd.answer-served { background: var(--answer-served); }
.evdoor .fd.answer-empty { background: var(--answer-empty); }
.evdoor .fd.answer-notready { background: var(--answer-notready); }
.evdoor .w { text-decoration: underline dotted var(--tone-quiet); text-underline-offset: 3px; }
.evdoor .w.answer-served { color: var(--answer-served); }
.evdoor .w.answer-empty { color: var(--answer-empty); }
.evdoor .w.answer-notready { color: var(--answer-notready); }
/* [AMENDED at the deploy-#10 prep — supersede-never-delete. "Each word wears ITS OWN entry's
   face" above drew Served and Ordered in one mint: the history table re-uses the ruled faces,
   so Ordered's entry face IS answer-served. The pick says "each in its own colour" (OPEN-234
   QUESTIONS.md, Q2 · B), so the chip adds the `ordered` modifier to that arm (js/room.js) and it
   wears --text, the house's settled-evidence colour — the word of every evidence banner
   (`.banner b`) and the completed segments of the invite evidence ring. Not cyan (that is the
   empty face, and B exists so a healthy room is told apart from an empty one), not violet (that
   is --tone-unknown, the face of a state this surface does not know), never an alarm colour. No
   token is minted. These two rules sit AFTER the answer faces on purpose: equal specificity, so
   the order is what lets the modifier win — check 6 reads the resolved colours.] */
.evdoor .fd.ordered { background: var(--text); }
.evdoor .w.ordered { color: var(--text); }
.evdoor .sep { color: var(--text-dim); }
.evdoor .evhint { color: var(--tone-quiet); }
.evdoor[aria-expanded='true'] .evhint,
.evdoor:hover .evhint,
.evdoor:focus-visible .evhint { color: var(--text-muted); }
.evdoor:hover, .evdoor:focus-visible { filter: brightness(1.25); outline: none; }

/* The anchored menu panel (M1, plates 02–03). It scrolls: the pick's named,
   accepted cost once the disappearing editor opens inside it. */
.rm-pop {
  position: absolute;
  top: var(--tro-h);
  /* [EN-12] the drop beneath the header — the M1 plate's own 6px (plate 03: a ~74px header, top 80px).
     The evidence drawer takes the same 6px from the house `.drawer` margin. */
  margin-top: 6px;
  right: 26px;
  width: 460px;
  max-width: calc(100% - 52px);
  /* [EN-12 — supersede-never-delete: `max-height: calc(100% - 100px);`, a cap that assumed the old 94px
     drop. Tied to the same token as the top now: the header, the 6px drop and a 12px foot, so a tall
     panel ends inside the pane at every band (measured: the old cap ran 45px past a bounded pane at
     390px). */
  max-height: calc(100% - var(--tro-h) - 18px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rm-title { font-family: var(--chrome); font-size: var(--text-note); letter-spacing: 0.4px; color: var(--text); }
.rm-x { background: none; border: 0; color: var(--text-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.rm-x:hover, .rm-x:focus-visible { color: var(--text); outline: none; }
.rm-sec { padding: 12px 14px; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.rm-sec:last-child { border-bottom: 0; }
/* A section with nothing to say draws nothing — the naming section on a direct
   conversation (the control is not offered there, as ever). */
.rm-sec:empty { display: none; }
.rm-sec .banner { margin: 0; }
.rm-sec .note { margin: 0; }
.rm-sec .namerow { padding: 0; }
.rd-label { font-family: var(--chrome); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
/* ⭐ [the iteration-2 web fix round, item 8] THE MEMBERS SECTION — one quiet row per leaf: the label (a name
   the core filed beside its unattested badge, or the identity's own label), and this device's own entry
   marked. The About section's reading size and voice; a long hex label wraps rather than widening the panel. */
.rd-members { list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); }
.rd-member { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.rd-mname { color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.rd-you { font-family: var(--chrome); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.rd-about { display: grid; gap: 5px; font-size: 12px; color: var(--text-muted); }
.rd-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-id .t { font-family: var(--chrome); font-size: 15px; color: var(--text); letter-spacing: 0.4px; }

/* The header door's evidence drawer (Evidence B) — the house .drawer face,
   anchored under the words. No close word: a second tap on the door closes it. */
.ev-pop {
  position: absolute;
  top: var(--tro-h);
  left: 26px;
  width: min(560px, calc(100% - 52px));
  /* [EN-12 — supersede-never-delete: `max-height: calc(100% - 110px);` — the same truing as `.rm-pop`'s.] */
  max-height: calc(100% - var(--tro-h) - 18px);
  overflow-y: auto;
  display: grid;
  gap: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.ev-pop .banner { margin: 0; }
.ev-pop .note { margin: 0; }

/* ⭐⭐ [DR-SIGIL-130 EN-12] THE TWO PANELS HANG FROM THE HEADER'S REAL EDGE where the browser can say
   where that is. The header names itself an anchor and both panels read its bottom; the token above
   stays the fallback twice over — for a browser without anchor positioning (the whole block is skipped,
   and `top: var(--tro-h)` stands), and inside `anchor()` for a header that is somehow not there.
   ⛔ STILL NO Z-INDEX, AND THE MOUNT ORDER IS UNCHANGED (checks 26(f)/(g)): an anchor moves where a
   panel sits, never what it paints over — the panels still mount last in the pane and win on document
   order. ⚠ The name is one name on both sides; check 38 reads them for parity. */
@supports (top: anchor(--a bottom)) {
  .tro { anchor-name: --sigil-room-head; }
  .rm-pop,
  .ev-pop { top: anchor(--sigil-room-head bottom, var(--tro-h)); }
}

/* Rider Q3a.1: the re-lead with the send gate's own reasons beneath it. */
.gatelead { width: 100%; display: grid; gap: 2px; }

/* The 320px grammar (OPEN-214's bar): the same components, anchored to the pane
   edges, and the two header doors allowed to wrap instead of forcing a scrollbar. */
@media (max-width: 640px) {
  .rm-pop { right: 16px; left: 16px; width: auto; max-width: none; }
  .ev-pop { left: 16px; right: 16px; width: auto; }
  .ddoor { white-space: normal; text-align: left; }
  .evdoor { white-space: normal; flex-wrap: wrap; text-align: left; }
}

/* ============================================================================
   PAGES — welcome, you, notices. Cards, statements, mono boxes.
   ============================================================================ */
.page { padding: 30px; display: grid; gap: var(--gap-lg); align-content: start; overflow-y: auto; }
.page.narrow { max-width: 680px; margin: 0 auto; width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
/* Four across — the shape the mockup's Frame D lays the four answers out in, for
   any later act that needs to show the taxonomy side by side rather than in situ. */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) {
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .page { padding: 20px 16px; }
}

.card { background: var(--deep); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.card h2, .card h3 { font-family: var(--chrome); font-weight: 400; font-size: 16px; letter-spacing: 0.5px; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: var(--text-note); margin-bottom: 10px; max-width: 64ch; }
.card p:last-child { margin-bottom: 0; }
.card p b { color: var(--text); font-weight: 500; }
.card.pending { border-style: dashed; }

.statement {
  border: 1px solid rgba(255, 170, 48, 0.3);
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  padding: 14px 18px;
  background: rgba(255, 170, 48, 0.04);
  font-size: 14px;
  color: var(--text);
}

.mono-box {
  font-family: var(--mono);
  font-size: var(--text-fine);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 8px 0;
}

/* A single-line text field — the profile name (W6), the invite code and the
   welcome (W7). One face for every field this product will ever ask for, landed
   here so three later acts do not arrive at three different inputs. */
.field {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: var(--text-lead) / 1.5 var(--sans);
  padding: 11px 15px;
}
.field:focus { outline: none; border-color: rgba(0, 200, 255, 0.35); }
.field.mono { font-family: var(--mono); font-size: var(--text-fine); }
.field::placeholder { color: var(--text-dim); }

/* The acknowledgment row (the mockup's Frame B): a statement the reader has to
   tick rather than scroll past. It is amber because what it acknowledges is a loss
   nobody can undo — the device-loss statement it sits under is rendered VERBATIM
   from the core's own constant, never paraphrased into this markup. */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; }
.check .box {
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(255, 170, 48, 0.6);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--warning);
}

.stepnum {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(120, 80, 255, 0.15);
  border: 1px solid rgba(120, 80, 255, 0.4);
  color: #9b7aff;
  font-size: var(--text-note);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex: none;
}

.btn {
  display: inline-block;
  background: linear-gradient(95deg, #00c8ff, #7850ff 62%);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn.ghost { background: transparent; border: 1px solid rgba(0, 200, 255, 0.3); color: var(--cyan); }
.btn.danger { background: transparent; border: 1px solid rgba(255, 68, 102, 0.4); color: var(--error); }
/* ⭐⭐ [DR-SIGIL-130 W9 — finding WF-11] ONE PRESSABLE REGISTER. The three button faces had no hover,
   focus or pressed state at all, so nothing told a person a control would act until it did. Every
   `.btn` now answers the pointer and the keyboard the same way, in its own colour: a lift on hover,
   a visible focus ring, a press on :active, and a lit state while it holds something open. */
.btn { transition: filter 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn:hover { filter: brightness(1.12); }
.btn.ghost:hover { filter: none; background: rgba(0, 200, 255, 0.08); border-color: rgba(0, 200, 255, 0.55); }
.btn.danger:hover { filter: none; background: rgba(255, 68, 102, 0.08); border-color: rgba(255, 68, 102, 0.65); }
.btn:focus-visible { outline: 2px solid rgba(0, 200, 255, 0.6); outline-offset: 2px; }
.btn.danger:focus-visible { outline-color: rgba(255, 68, 102, 0.65); }
.btn:active { transform: translateY(1px); }
.btn.ghost[aria-expanded='true'] { background: rgba(0, 200, 255, 0.12); border-color: rgba(0, 200, 255, 0.55); }
.newroom:hover,
.newroom:focus-visible { background: rgba(0, 200, 255, 0.08); border-color: rgba(0, 200, 255, 0.55); outline: none; }
.newroom:focus-visible { box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.3); }
.newroom:active { transform: translateY(1px); }

/* ============================================================================
   W6 — THE CEREMONY, THE SETTINGS AND THE DIAGNOSTICS PANE.

   Four containers and nothing decorative. The cards, the statement box, the
   check row, the step numbers, the fields and the buttons were all already here
   (the grammar W1 landed for exactly this act); what W6 adds is the shapes that
   hold them: a labelled form row, a row of controls, a monospace block for the
   log, and the LOUD panel the send-for-investigation flow lives in.
   ============================================================================ */

/* A labelled control. The label is small and quiet; the field it names does the
   talking, and both stack at every width because a settings form that reflowed
   into two columns would put a label above the wrong box at 390px. */
.formrow { display: grid; gap: 6px; margin: 12px 0; }
.formrow label { font-size: var(--text-fine); color: var(--text-muted); }
.formrow .btnrow { margin-top: 0; }
.formrow .btnrow .field { flex: 1; min-width: 160px; width: auto; }

/* A row of controls. Wraps rather than compresses: a button that shrank to fit
   would be a control whose words no longer read. */
.btnrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }

/* The diagnostics log, as the block a person actually reads before deciding
   anything. Monospace because every line is a record, scrollable because the
   buffer is bounded rather than short, and it wraps — a horizontal scrollbar is
   how the one interesting line stays off screen. */
.logbox {
  font-family: var(--mono);
  font-size: var(--text-fine);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 10px 0;
  color: var(--text-muted);
  max-height: 260px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

/* ⭐ THE LOUD PANEL — the one place in this product that is deliberately not
   calm. It is the amber register the device-loss statement uses, because both
   are moments where a person is about to do something they cannot take back:
   here, showing a file to somebody else. A quiet treatment would be the design
   contradicting the ruling (DR-SIGIL-090 §7(e): never automatic, never quiet). */
.loud {
  border: 1px solid rgba(255, 170, 48, 0.35);
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  background: rgba(255, 170, 48, 0.04);
  padding: 14px 16px;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  font-size: var(--text-note);
  color: var(--text-muted);
}
.loud .lt { color: var(--text); font-weight: 600; font-size: var(--text-lead); }
.loudrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.loudrow label { font-size: var(--text-fine); color: var(--text); }
.loudrow .field { flex: 1; min-width: 140px; width: auto; }

/* ============================================================================
   ⭐⭐ OPEN-212 — THE YOU SCREEN AS A STATUS-FIRST DASHBOARD (variant C, the
   operator's pick on the #6 glass, BOTH widths: the phone frame is this same
   build at narrow width, not a second design).

   Translated from the picked frames
   (`SelarysAtlas/estate/working-sets/sigil-you-mockups/`,
   `C-dashboard-desktop.html` / `C-dashboard-phone.html`); every value is the
   mockup's and every colour resolves to a token this tree already declares. Three
   named deviations, each forced by this tree's own rules rather than taste:
     · THE NAMES ARE SCOPED. The mockup's `.status`, `.tile`, `.act` and `.chev`
       would collide here: `.status` is the delivery word's face, and a `.chev`
       face is FORBIDDEN by check 19(h4) (the chevron is the future switcher's). So
       every face is `.dash-*`, and the row's arrow is the `›` glyph in `.dash-go`.
     · NO ICONS IN THE ACT ROWS. The mockup draws inline SVG line icons; this tree
       builds every element through `el()`, which makes HTML elements and has no
       SVG path, and an icon font would be a fetch. The rows are verbs and hints.
     · NO MONOGRAM SEAL IN THE HEADER. The glyph has ONE derivation, in
       js/actingas.js (DR-SIGIL-103 §4(c); check 19(h5)), and that module imports
       this screen's reader — importing it back would cycle the graph (check 13),
       and deriving it again here would be a second producer. The header carries
       the id and its badge, which is the fact the seal stands for.

   ⛔ NOTHING HERE DECLARES A Z-INDEX (check 26(f)). The scrim and the sheets stack
      by DOCUMENT ORDER inside the page — js/settings.js mounts the dashboard, then
      the scrim, then every sheet — and the page plane itself rides `--z-sheet`
      while a sheet is open (css/app-shell.css, THE LAYERING RULE).
   ============================================================================ */

/* The column widens for the dashboard; the first-run flow keeps the narrow one. */
.page.narrow:has(> #you-profile > .you-dash) { max-width: 1080px; }
/* [DR-SIGIL-130 EN-12] the picked frame's own breathing room under the last list (`.you-c`'s 90px foot),
   so the sign-out row is never the page's last pixel. */
.page.narrow:has(> #you-profile > .you-dash) { padding-bottom: 72px; }
.you-dash { display: grid; gap: var(--gap-lg); }

/* --- the state header --------------------------------------------------------- */
.dash-status {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border-lit);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(120, 80, 255, 0.08), rgba(0, 200, 255, 0.025) 55%, var(--deep));
}
.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.dash-idrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 6px; }
.dash-id { font-family: var(--mono); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.dash-idrow .ubadge { letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--chrome); white-space: nowrap; }
.dash-who p { color: var(--text-muted); font-size: var(--text-note); max-width: 62ch; }
.dash-who p b { color: var(--text); font-weight: 500; }

/* The hand-off, condensed (H-21). */
.dash-ready {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 180, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 255, 180, 0.03);
}
.dash-ready b { color: var(--text); font-size: var(--text-note); font-weight: 600; }
.dash-ready-t { grid-column: 2; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.dash-ready .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; padding: 6px 12px; font-size: 12.5px; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(0, 255, 180, 0.6); }

/* The fault slot (H-20) — in the header, above the tiles, never collapsed. */
.dash-attention { display: grid; gap: 12px; }
.dash-notice { display: grid; }
.dash-fault > .card {
  border-color: rgba(255, 68, 102, 0.3);
  background: linear-gradient(180deg, rgba(255, 68, 102, 0.04), var(--deep));
}

/* The six status tiles. Each is a button: it opens the card behind its value. */
.dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14, 16, 24, 0.85);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.dash-tile:hover,
.dash-tile:focus-visible { border-color: rgba(0, 200, 255, 0.32); outline: none; }
/* [DR-SIGIL-130 EN-12] the keyboard sees a tile it is on: the house focus ring (`.newroom`'s), not only
   the hover tint a pointer also produces. */
.dash-tile:focus-visible { box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.3); }
.dash-tile-text { flex: 1; min-width: 0; display: grid; gap: 1px; align-content: start; }
.dash-k { font-family: var(--chrome); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.dash-v { font-size: 16px; font-weight: 600; color: var(--text); }
.dash-v.mono { font-family: var(--mono); font-size: 12.5px; padding: 3px 0 2px; overflow-wrap: anywhere; }
.dash-v.on { color: var(--mint); }
.dash-s { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.dash-s-warn { color: var(--warning); }
.dash-tile.dash-warn { border-color: rgba(255, 68, 102, 0.35); }
.dash-tile.dash-warn .dash-v { color: var(--error); }
.dash-go { flex: none; color: var(--text-dim); font-size: 18px; line-height: 1; }

/* --- Know this, and the two lists ---------------------------------------------- */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap-lg); align-items: start; }
.dash-label { font-family: var(--chrome); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.dash-know { border-color: rgba(255, 170, 48, 0.2); }
.dash-know .statement { margin: 6px 0 10px; }
.dash-more > summary { width: fit-content; padding: 2px 0; font-size: 12.5px; color: var(--cyan); cursor: pointer; }
.dash-more-body { padding: 10px 0 2px; }
.dash-right { display: grid; gap: 14px; }
.dash-list { padding: 14px 0 2px; border: 1px solid var(--border); border-radius: 14px; background: var(--deep); overflow: hidden; }
.dash-list > .dash-label { padding: 0 16px; }
.dash-act {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.dash-act:hover,
.dash-act:focus-visible { background: rgba(255, 255, 255, 0.022); outline: none; }
/* [EN-12] the same inset ring the two switches already wear, on every act row. */
.dash-act:focus-visible { box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.4); }
.dash-act-text { flex: 1; min-width: 0; display: grid; }
.dash-act-v { font-size: 14px; }
.dash-act-h { font-size: 12px; color: var(--text-muted); }
.dash-act.danger .dash-act-v { color: #ff8ea3; }
/* ⭐ [DR-SIGIL-130 §5 — W4] the verbosity switch: the act row's own face, with an on/off pill where the
   other rows draw their arrow — it flips in place and opens no sheet. */
.dash-toggle {
  flex: none;
  min-width: 42px;
  text-align: center;
  font-size: var(--text-fine);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  padding: 2px 9px;
}
.dash-toggle.on { color: var(--mint); border-color: rgba(0, 255, 180, 0.4); background: rgba(0, 255, 180, 0.06); }
.dash-switch:focus-visible { box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.4); }
.dash-switch:focus-visible .dash-toggle,
.dash-switch:hover .dash-toggle { border-color: rgba(0, 200, 255, 0.5); }

/* --- the sheets ------------------------------------------------------------------
   A drawer at desk width, a bottom sheet at phone width. Two kinds share one face:
   `.you-sheet` (drawn by js/settings.js, always a sheet) and the two STATIC cards
   in index.html, which are sheets only while the dashboard is the screen — on the
   first-run screen they are the inline cards they always were, so every face below
   that would change them is scoped to the dashboard being present. */
.sheet-scrim { position: fixed; inset: 0; background: rgba(3, 4, 8, 0.62); }
/* ⭐ [L7 act A9] the invite sheets' scrim — the same face, its own name: `.sheet-scrim` is drawn by
   js/settings.js alone (check 26(g)), and the invite scrim is drawn by js/invite.js alone. */
.inv-scrim { position: fixed; inset: 0; background: rgba(3, 4, 8, 0.62); }
.sheet-grab { display: none; }
.you-sheet,
.inv-sheet,
.page:has(> #you-profile > .you-dash) > .you-sheet-static {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-left: 1px solid var(--border-lit);
  border-radius: 0;
  background: var(--void);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
}
.you-sheet:focus,
.inv-sheet:focus,
.you-sheet-static:focus { outline: none; }
.you-sheet .sheet-head,
.inv-sheet .sheet-head,
.page:has(> #you-profile > .you-dash) > .you-sheet-static .sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--deep);
}
.you-sheet .sheet-title,
.inv-sheet .sheet-title,
.page:has(> #you-profile > .you-dash) > .you-sheet-static .sheet-title {
  margin: 0;
  font-family: var(--chrome);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.4px;
}
.sheet-x {
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sheet-x:hover,
.sheet-x:focus-visible { color: var(--text); }
.you-sheet .sheet-body,
.inv-sheet .sheet-body {
  flex: 1;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px 18px 34px;
  overflow-y: auto;
}
/* A static card's body is its prose, so it reads like a card on the sheet's ground. */
.page:has(> #you-profile > .you-dash) > .you-sheet-static .sheet-body {
  flex: 1;
  padding: 18px 22px 34px;
  overflow-y: auto;
}

/* --- the fold: one column, then the phone frame ---------------------------------- */
@media (max-width: 860px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dash-status { padding: 14px; border-radius: 16px; gap: 14px; }
  .dash-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dash-id { font-size: 15px; }
  .dash-who p { font-size: 12.5px; }
  .dash-ready { max-width: none; grid-template-columns: auto minmax(0, 1fr) auto; }
  .dash-ready-t { display: none; }
  .dash-ready .btn { grid-column: auto; margin: 0; }
  .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dash-tile { padding: 10px 8px 10px 11px; }
  .dash-v { font-size: 15px; }
  .dash-s { font-size: 11.5px; }

  /* The bottom sheet: 90% of the window, rounded on top, a grab bar above its head. */
  .you-sheet,
  .inv-sheet,
  .page:has(> #you-profile > .you-dash) > .you-sheet-static {
    top: auto;
    left: 0;
    width: auto;
    height: 90dvh;
    border-left: 0;
    border-top: 1px solid var(--border-lit);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
  }
  .you-sheet .sheet-grab,
  .inv-sheet .sheet-grab,
  .page:has(> #you-profile > .you-dash) > .you-sheet-static .sheet-grab {
    display: block;
    flex: none;
    width: 40px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: 2px;
    background: var(--text-dim);
  }
  .you-sheet .sheet-head,
  .inv-sheet .sheet-head,
  .page:has(> #you-profile > .you-dash) > .you-sheet-static .sheet-head { background: var(--void); }
}

/* --- the welcome / signed-out card (the estate's branded signed-out card) ---- */
.hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hero-card {
  width: 460px;
  max-width: 100%;
  padding: 44px 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.hero-card .mark-lg { width: 58px; height: 58px; display: block; margin: 0 auto 18px; }
.hero-word {
  font-family: var(--chrome);
  font-weight: 600;
  font-size: var(--text-note);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  background: linear-gradient(95deg, #00c8ff, #7850ff 58%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 26px;
}
.hero-h { font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.hero-sub { font-size: 13.5px; line-height: 1.55; color: rgba(224, 232, 240, 0.55); margin: 0 auto 20px; max-width: 340px; }
.hero-sub b { color: var(--text); font-weight: 500; }
/* The sign-in seam's honest state — a SENTENCE, not a button. See index.html. */
.seam {
  border: 1px dashed rgba(120, 134, 160, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: left;
}
.seam b { color: var(--text); font-weight: 600; }
.hero-foot { margin-top: 20px; font-size: var(--text-fine); color: var(--text-dim); }
.hero-foot a { color: var(--text-muted); }

/* --- honest empty states --------------------------------------------------- */
.empty {
  border: 1px dashed rgba(120, 134, 160, 0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: var(--text-note);
  display: grid;
  gap: 8px;
  align-content: start;
}
.empty .et { color: var(--text); font-weight: 600; font-size: var(--text-lead); }
.empty.centred { margin: auto; max-width: 42ch; text-align: left; }

.note { font-size: 12.5px; color: var(--text-muted); }
.note a { color: var(--cyan); }

/* ============================================================================
   THE NOTICE SET (L9 ACT-2) — the §3.4 faces for the one screen that is reachable
   with no account.

   ⭐ EVERY CLASS `notices-include.sh` EMITS IS DECLARED HERE, not just the ones
      the tree draws today. check 14 reads index.html's classes, so a face that
      only appears once the generator has run would be an UNSTYLED notice set on
      the day it lands — which is precisely the "a banner with no banner" failure
      check 14 was written for, delayed by one build.

   ⚠ A NOTICE SET IS A READING SURFACE, NOT A TABLE. 148 rows at monospace width
      is a wall; the rows are therefore a flowing list with the crate name leading
      and the grant trailing, so a reader scanning for "what is MPL here" finds it
      without a horizontal scroll on a phone.
   ============================================================================ */

/* The absent state. Dashed, like `.card.pending`, because it is the same kind of
   fact: a thing that is owed and not here, said out loud rather than drawn as an
   empty list that looks finished. */
.noticeset { display: grid; gap: 10px; }
.noticeset-absent {
  border: 1px dashed var(--border-lit);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: var(--text-note);
}
.noticeset-absent b { color: var(--warning); font-weight: 500; }

/* The generated head: the counts, the release and the payload digest the set was
   composed over — so a reader can tell WHICH build's notices they are reading. */
.noticeset-head {
  font-family: var(--mono);
  font-size: var(--text-fine);
  color: var(--text-muted);
  line-height: 1.6;
  /* [the iteration-2 web fix round, item 5(d) — supersede-never-delete: this read `word-break: break-word;`,
     the deprecated alias] the emergency guard for an unbreakable run, in its standard spelling. */
  overflow-wrap: anywhere;
}

/* The group heading. The two KINDS are kept apart on the surface because the
   record keeps them apart: a package has a lockfile row, a pinned version and a
   registry checksum; the condition-6 rows have none of those and are recorded by
   provenance — so a reader scanning one group is reading one kind of claim. */
.noticeset-group {
  font-family: var(--chrome);
  font-size: var(--text-note);
  color: var(--text);
  letter-spacing: 0.4px;
  margin-top: 14px;
}

/* ⭐ [the iteration-2 web fix round, item 5(c)] THE SPECIFICITY REPAIR. Both lines above are <p>s inside a
   `.card`, and `.card p` (0-1-1) outranks a lone class (0-1-0) — so the head was really drawn at `.card p`'s
   13px under its 64ch cap (≈440px of mono, wrapping at two-thirds of the card), and the group heading in
   `.card p`'s muted colour instead of its own. Re-stated at 0-2-1 so each rule above is what renders: the
   head at its fine size across the card's full measure, the group heading in the text colour. Values only —
   no class added, nothing in the generated regions touched. */
.card p.noticeset-head { font-size: var(--text-fine); color: var(--text-muted); max-width: none; }
.card p.noticeset-group { color: var(--text); max-width: none; }

.notice-rows { display: grid; gap: 2px; margin-top: 8px; list-style: none; }
.notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-fine);
}
.notice-row:last-child { border-bottom: 0; }
.notice-name { font-family: var(--mono); color: var(--text); }
.notice-ver { font-family: var(--mono); color: var(--text-muted); }
/* The grant is the fact a reader came for, so it reads as a value rather than as
   prose — and MPL is not coloured differently here: a notice set that highlighted
   one licence class would be editorialising about licences on a notice surface. */
.notice-grant { font-family: var(--chrome); color: var(--cyan); letter-spacing: 0.4px; }
/* [the iteration-2 web fix round, items 5(a) + 5(b) — supersede-never-delete: this read
   `.notice-ev { color: var(--text-dim); flex: 1 1 24ch; min-width: 0; }`]
   (b) THE EVIDENCE TAKES ITS OWN FULL-WIDTH LINE. At a 24ch basis it stayed on the first line whenever 24ch
       remained there and wrapped below when not, so its soft-wrapped continuation lines hung from wherever
       flex had placed it — a different indent per row, set by the crate name, version and declared
       expression before it (blake3's long one most of all). At 100% every row has one silhouette: name ·
       version · grant · declared on the first line, the evidence paragraph beneath, flush left.
   (a) AND IT WRAPS ANYWHERE. Its text ends in an unbreakable 64-hex sha256 (and a 40-hex commit on the
       generated-source rows) that overflowed the card and clipped at every width, a phone's most of all —
       the tree's own answer for an unbreakable run, as `.mono-box` already wears it. */
.notice-ev { color: var(--text-dim); flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.notice-pos { color: var(--text-dim); font-family: var(--mono); }
/* ⭐ [the iteration-2 web fix round, item 5(e)] THE SOURCE OFFER'S LONG MONO FILENAMES WRAP AT PHONE WIDTH —
   the crate-archive names (the longest is the uniffi internal-macros archive) and the offer-manifest names
   in the group headings are single unbreakable runs. `anywhere` only breaks a run that cannot fit, which is
   a phone's measure: at desk width every name still sits on one line. */
.notice-rows .notice-name,
.noticeset-group .notice-name { overflow-wrap: anywhere; }

/* The MPL covered set — three rows, hand-authored because three measured rows are
   a ruling (L9 §2.2) rather than a projection of a table. */
.mpl-set { display: grid; gap: 4px; list-style: none; margin: 4px 0 12px; }
.mpl-set li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.mpl-crate { font-family: var(--mono); color: var(--text); font-size: var(--text-note); }
.mpl-ver { font-family: var(--mono); color: var(--text-muted); font-size: var(--text-fine); }
.mpl-grant { font-family: var(--chrome); color: var(--cyan); font-size: var(--text-fine); letter-spacing: 0.4px; }

/* The licence itself. `pre-wrap` so the verbatim line breaks are kept AND a phone
   does not get a horizontal scrollbar over a legal document; the block scrolls in
   its own box so 353 lines of licence do not push the rest of the page away. */
.licence-text {
  font-family: var(--mono);
  font-size: var(--text-fine);
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
  /* ⭐ [the iteration-2 web fix round's micro-round — the Lead's ruling: the fence on these blocks protects
     their TEXT BYTES (check 4's digests), which a style rule changes none of] An unbreakable run in a licence
     (the Apache text's own address line is the longest) set the notices page's one shared grid column to its
     min-content at phone width, so every card stood a few pixels past the screen's edge. `anywhere` breaks
     such a run only where it cannot fit; at desk width every line wraps exactly as it did. */
  overflow-wrap: anywhere;
}

/* ============================================================================
   PHONE WIDTH — the mockup's Frame G, whose whole claim is "already a phone app
   at heart": the SAME components, re-rhythmed, never a second design. Nothing
   below changes what is drawn or what any state says; it changes padding and
   reading size so a 390px screen gets the same grammar without a horizontal
   scrollbar. W1 owes "renders at phone and desk widths", so this block is part of
   the shell rather than something W3/W4 discover they need.
   ============================================================================ */

/* ≤ the fold: one pane is showing, so the return-to-rooms control has a job. */
@media (max-width: 860px) {
  .backlink { display: inline-block; }
}

@media (max-width: 640px) {
  /* [EN-12] measured 82–139px between 341px and 640px (three rows from 500px down): the fallback takes
     the taller, so a panel without anchor positioning never covers the header's facts row. */
  .thread { --tro-h: 140px; }
  .tro { padding: 12px 16px 8px; }
  .tro h2 { font-size: 16px; }
  .banner { margin: 10px 14px 0; font-size: 12px; }
  .msgs { padding: 14px 16px; gap: 12px; }
  .m { max-width: 82%; }
  .bub { font-size: 13.5px; }
  .status { font-size: 10.5px; }
  .composer { padding: 10px 14px; }
  .composer textarea { min-height: 38px; font-size: 13.5px; }
  .composer .send { padding: 10px 16px; font-size: 13px; }
  .rooms { padding: 14px 12px; }
  .hero { padding: 16px; }
  .hero-card { padding: 34px 24px 28px; }
  /* The drawer becomes a full-width block rather than a bubble-width one: at this
     size the mono evidence is unreadable inside 82% of a phone.
     [EN-12 — supersede-never-delete: this read `.drawer { margin-left: -6px; margin-right: -6px; }`,
     which also widened the header's anchored evidence drawer past the menu panel's 16px insets. Scoped
     to the message drawers it was written for, and under the one-line grammar the drawer is a flex row
     of its own, so its basis grows by the two margins it gives back.] */
  .m > .drawer { margin-left: -6px; margin-right: -6px; flex-basis: calc(100% + 12px); }
  .drawer .kv { grid-template-columns: 84px 1fr; }
}
/* [EN-12] the narrowest phones: the header's facts row wraps once more (measured 163px at 320px). */
@media (max-width: 340px) {
  .thread { --tro-h: 164px; }
}

/* ============================================================================
   ⭐⭐ L7 ACT A9 — THE INVITE SCREENS (W7): the create sheet (1A), the redeem sheet
   (2A) and the pending invitation as inline timeline rows (3C-E1) — the operator's
   picks (DR-SIGIL-114 §4; DR-SIGIL-115 §1), translated from the picked frames
   (`SelarysAtlas/estate/working-sets/sigil-invite-mockups/`). Every value is the
   mockup's and every colour is a token this tree already declares (or that token's
   rgba, the way the rest of this sheet writes them). js/invite.js draws every face here, and nothing else does.

   Named deviations, each forced by this tree's own rules rather than taste:
     · THE RING LADDER IS A FACE, NOT AN SVG. The frames draw G-01…G-08 as inline SVG
       arcs; this tree builds every element through `el()`, which makes HTML elements.
       So the ring is a conic gradient of four arcs with gaps, masked to a thin ring —
       never closed, never filled, never green (pg23) — and the tick, slash and bar
       are a pseudo-element of its wrapper. Its accessible name rides the wrapper.
     · THE STEPS (2A's wait) WEAR THE RING, NOT THE MINT DOT. E-B5: a filled mint dot
       is the pg23-forbidden class; the build note says to draw the ring ladder.
     · NO TOAST. A toast that leaves on its own needs a timer, and this tree holds
       exactly one (check 22); "Copied." is a quiet line in the sheet instead.
     · NO Z-INDEX ANYWHERE BELOW (check 26(f)). The scrim and the sheet stack by
       document order inside `#invite-sheets`, and the page plane rides `--z-sheet`
       while the scrim is drawn (css/app-shell.css, the wearer's selector).
   ============================================================================ */

/* The mount generates no box: `.appbody` is a two-column grid, and the sheets are
   fixed overlays (or hidden), so neither may take a cell. */
.inv-mount { display: contents; }

/* --- the sheets' insides ------------------------------------------------------- */
.inv-label { font-family: var(--chrome); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
/* ⛔ THE CODE ITSELF: TEXT, selectable, never markup (R006P W7's forbidden column). */
.inv-code {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-lit);
  border-radius: 12px;
  padding: 14px 14px;
  user-select: all;
  overflow-wrap: anywhere;
}
/* ⭐⭐ [2026-10-30, WAVE DR-131 R-B1 ② — THE LINK, PROMOTED; supersede-never-delete.] The link is the code's
   PEER now (js/invite.js createSheet draws it directly under the code, with its own Copy and Share), so it
   wears the code's own face — the same surface, solid lit border and radius, readable text in the text
   colour — at a size a long address can wrap in. The fine-print face it replaces read, verbatim:
     .inv-link { font-family: var(--mono); font-size: var(--text-fine); color: var(--text-muted);
                 overflow-wrap: anywhere; background: var(--surface); border: 1px dashed var(--border-lit);
                 border-radius: 8px; padding: 7px 10px; user-select: all; }
     .inv-linkbox { display: grid; gap: 6px; }
   — and the box sat below the facts list. */
.inv-link {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--border-lit);
  border-radius: 12px;
  padding: 12px 14px;
  user-select: all;
}
.inv-linkbox { display: grid; gap: 8px; }
/* ⭐ THE QR DOOR (DR-SIGIL-119 §3). The pane's colours are the PICKED FRAME'S OWN, fixed rather than
   themed, because a scanner needs the pattern's contrast in both themes — the canvas paints its own
   light ground and quiet zone; the padding and radius here are the frame's pane around it. */
.inv-qr { display: grid; justify-items: center; }
.inv-qr-cells { display: block; background: #e8eef5; padding: 12px; border-radius: 12px; max-width: min(100%, 280px); height: auto; image-rendering: pixelated; }
.inv-facts { list-style: none; display: grid; gap: 7px; font-size: var(--text-note); color: var(--text-muted); }
.inv-facts li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.inv-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); margin: 7px 0 0 3px; opacity: 0.8; }
.inv-lead { font-size: var(--text-note); color: var(--text); max-width: 62ch; }
.inv-sub { font-size: 12px; color: var(--text-muted); }
.inv-said { font-size: var(--text-note); color: var(--text); border-left: 3px solid var(--mint); padding: 2px 0 2px 10px; }
.inv-more > summary { width: fit-content; font-size: 12.5px; color: var(--cyan); cursor: pointer; }
.inv-more > p { padding-top: 6px; }
.inv-block { display: grid; gap: 10px; }
/* ⛔ THE ONE FAILURE STATE. It re-uses the refusal face — a "no" — and mints no token. */
.inv-fail {
  border: 1px solid rgba(255, 68, 102, 0.35);
  background: rgba(255, 68, 102, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  font-size: var(--text-note);
  color: var(--text-muted);
}
.inv-fail .ft { color: var(--text); font-weight: 600; font-size: var(--text-lead); }
.inv-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--deep);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  font-size: var(--text-note);
  color: var(--text-muted);
}
.inv-row b { color: var(--text); font-weight: 600; }
/* The redeemer's wait: one row per step the protocol has, each with its ring. */
.inv-steps { display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--deep); }
.inv-step {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  font-size: var(--text-note);
  color: var(--text-muted);
}
.inv-step:first-child { border-top: 0; }
.inv-step.now { color: var(--text); }
.inv-step .w { font-size: var(--text-fine); text-align: right; color: var(--cyan); }
/* D8's data at admission: the key a request arrived with — elided, mono, a fact and not a verdict. */
.inv-key { font-family: var(--mono); font-size: var(--text-fine); color: var(--text-muted); overflow-wrap: anywhere; }
.inv-answer { display: grid; gap: 4px; padding: 8px 0; border-top: 1px dashed rgba(120, 134, 160, 0.3); }
/* T-17 — the rail card's count of this room's codes (never a member list). A card carrying one lets its
   meta row wrap and gives the count its own line, so the wave pill beside it is never squeezed. */
.inv-count { color: var(--cyan); flex-basis: 100%; }
.rcard .meta:has(.inv-count) { flex-wrap: wrap; row-gap: 3px; }
.inv-unbound { margin-top: 12px; }
.inv-unbound-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 12px; }

/* --- 3C-E1: the invitation as inline timeline events -------------------------------
   A LOCAL ROW: this device's invite record, drawn in the transcript's own flow. It
   keeps the house system row's register (centred, muted, the word in bold) with a
   DASHED hairline — the hairline says "not the room's history". The ROOM's own rows
   keep the house `.sysline`, solid. */
.ev {
  align-self: center;
  max-width: 92%;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  border: 1px dashed rgba(120, 134, 160, 0.35);
  border-radius: 16px;
  padding: 6px 14px 6px 10px;
  text-align: left;
}
.ev .tx { min-width: 0; }
.ev .t1 b,
.ev-card .t1 b { color: var(--text); font-weight: 600; }
.ev-idn { font-family: var(--mono); font-weight: 600; color: var(--text); }
/* the provenance line: the row's own microline — where it comes from, and its quiet doors */
.evm { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: var(--text-fine); color: var(--text-dim); }
.ev-tag {
  font-family: var(--chrome);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dim);
  border: 1px dotted var(--text-dim);
  border-radius: 4px;
  padding: 0 5px;
}
.ev-tag.oob { color: var(--text-muted); border-style: dashed; border-color: rgba(120, 134, 160, 0.6); }
/* a quiet door — the house `.msgact` register (a muted word, dotted underline) */
.ev-door {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-fine);
  color: var(--text-muted);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ev-door:hover,
.ev-door:focus-visible { color: var(--text); outline: none; }
.ev-ledger .status { margin: 0; text-align: left; display: inline; }
.ev-note { align-self: center; max-width: 560px; font-size: var(--text-fine); color: var(--text-muted); text-align: center; }
.ev-stack { align-self: center; display: grid; gap: 4px; justify-items: center; max-width: 92%; }
.ev-drawer { align-self: center; width: 100%; max-width: 560px; }
/* the event card — the admission, a multiplicity, a refusal: the system row's family, widened */
.ev-card {
  align-self: center;
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(120, 80, 255, 0.45);
  background: rgba(120, 80, 255, 0.06);
  border-radius: 14px;
  padding: 11px 16px 12px;
  font-size: var(--text-note);
  color: var(--text-muted);
}
.ev-card.refused { border-color: rgba(255, 68, 102, 0.35); background: rgba(255, 68, 102, 0.05); }
.ev-card .t1 { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.ev-card .who-ask { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.ev-card .btnrow { margin-top: 4px; }

/* --- the ring ladder (G-01…G-08) ---------------------------------------------------
   Four arcs with their gaps kept. Lit arcs use the text tone; violet means an identity,
   as data, is arriving (the custody violet); cyan the house's submitted state; red the
   house's refusal. Never closed, never filled, never green. */
.ev-g {
  --a1: var(--text-dim);
  --a2: var(--text-dim);
  --a3: var(--text-dim);
  --a4: var(--text-dim);
  position: relative;
  flex: none;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.ev-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -36deg,
    var(--a1) 0deg 72deg, transparent 72deg 90deg,
    var(--a2) 90deg 162deg, transparent 162deg 180deg,
    var(--a3) 180deg 252deg, transparent 252deg 270deg,
    var(--a4) 270deg 342deg, transparent 342deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.7px), #000 calc(100% - 1.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.7px), #000 calc(100% - 1.6px));
}
.g-made { --a1: rgba(224, 232, 240, 0.8); }
.g-outside { --a1: rgba(224, 232, 240, 0.8); --a2: rgba(224, 232, 240, 0.8); }
.g-outside::after { content: ''; position: absolute; right: -3px; top: 6px; width: 4px; border-top: 1.5px solid rgba(224, 232, 240, 0.8); }
.g-asked { --a1: rgba(224, 232, 240, 0.8); --a2: rgba(224, 232, 240, 0.8); --a3: var(--violet); }
.g-adding { --a1: rgba(224, 232, 240, 0.8); --a2: rgba(224, 232, 240, 0.8); --a3: rgba(224, 232, 240, 0.8); --a4: var(--cyan); }
.g-added { --a1: rgba(224, 232, 240, 0.8); --a2: rgba(224, 232, 240, 0.8); --a3: rgba(224, 232, 240, 0.8); --a4: rgba(224, 232, 240, 0.8); }
.g-refused { --a1: rgba(224, 232, 240, 0.8); --a2: rgba(224, 232, 240, 0.8); --a3: rgba(224, 232, 240, 0.8); --a4: var(--error); }
.g-refused::after { content: ''; position: absolute; left: 1px; right: 1px; top: 6.5px; border-top: 1.5px solid var(--error); transform: rotate(-45deg); }
.g-expired { opacity: 0.45; }
.g-closed { --a1: var(--text-dim); --a2: var(--text-dim); --a3: var(--text-dim); --a4: var(--text-dim); }
.g-closed::after { content: ''; position: absolute; left: 3px; right: 3px; top: 6.5px; border-top: 1.5px solid var(--text-muted); }

@media (max-width: 640px) {
  .inv-code { font-size: 15px; letter-spacing: 0.06em; }
  .ev { max-width: 100%; }
}

/* ===========================================================================
   ⭐⭐ WAVE DR-131 WEB PACKAGE B (2026-10-30) — the "Your devices" view, the carried-row mark, the onboarding
   name notice and the receipts legend. The calm register: quiet text, the house's own boxes and buttons reused,
   one dashed edge for the two-steps that weigh something.
   =========================================================================== */
.dv-pane { display: flex; flex-direction: column; gap: var(--gap); }
.dv-pane h3 { margin: var(--gap) 0 0; font-size: var(--text-lead); }
.dv-pane h4 { margin: 4px 0 0; font-size: var(--text-note); color: var(--text); }
.dv-part { border-top: 1px solid var(--border); padding-top: var(--gap); display: flex; flex-direction: column; gap: 8px; }
.dv-key { display: flex; flex-direction: column; gap: 4px; }
.dv-key-label { font-size: var(--text-fine); color: var(--text-muted); }
.dv-key-text { font-family: var(--mono); font-size: var(--text-note); letter-spacing: 0.04em; overflow-wrap: anywhere; user-select: text; }
.dv-weighty { border: 1px dashed var(--border-lit); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.dv-siblings, .dv-carry { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dv-sibling { display: flex; gap: 8px; align-items: baseline; }
.dv-sibling-name { color: var(--text); }
.dv-carry-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.dv-carry-room { color: var(--text); }
.dv-carry-word { font-size: var(--text-note); color: var(--text-muted); }
.carried-from { font-size: var(--text-fine); color: var(--text-muted); margin-bottom: 2px; }
.name-notice { color: var(--warning); }
.dash-receipts { display: flex; flex-direction: column; gap: 4px; }
.dash-legend { margin: 0 0 4px; font-size: 12px; color: var(--text-muted); }
