/* ============================================================================
   THE SUITE CHROME — one compact top row, the estate's canonical shape.

   Lineage: `SelarysSionApp/public/css/app-shell.css` + the header markup the
   estate's apps share (Sentry is the canonical reference), restated here in
   Sigil's own tree rather than imported — this tree ships no third-party or
   cross-repo CSS, and an estate file copied without its provenance is a file
   nobody can re-derive. What is copied is the SHAPE: animated app mark →
   'SELARYS SIGIL' gradient wordmark → inline section tabs → identity-pill slot →
   gradient logout.

   ⭐ TWO SLOTS ARE ID-CONTRACTED AND LEFT EMPTY ON PURPOSE:
      `#session-status` and `#btn-logout` are painted ONLY by the estate identity
      modules (scope.js / shell.js), which land with the sign-in seam (W8) once
      the front-door name is ruled. Until then they carry `hidden` and draw
      nothing: a control that cannot act is not drawn (the estate's chrome rule),
      and a dead sign-in button would be the exact lie this surface exists to not
      tell.

   ⭐⭐ [AMENDED at OPEN-192, the estate app-chrome conformance sweep —
      supersede-never-delete; the block above is KEPT verbatim and nothing in it is
      weakened. `js/scope.js` LANDED: the front-door name was ruled (DR-SIGIL-095,
      2026-09-29) and the three addresses are live at the edge on both realms. So
      the faces below are no longer waiting for a painter — they have one, and it
      is exactly the one this file named. What changed in the markup is one
      attribute: `#session-status` now carries `.platform-slot` (a bare container)
      and the PILL is a `<button class="platform-pill">` scope.js builds inside it,
      because a clickable identity chip is the estate's standard and a `<div>` is
      not a control. The pill's own declaration is otherwise unchanged; it gained
      the button resets and the three inner spans the estate's chip carries.

      ⭐⭐ AND THE NAMES SAY *PLATFORM*, NOT "IDENTITY" — the operator's mid-flight
      ruling of 2026-09-30. This face was `.id-pill` / `.id-slot` for exactly one
      revision, and those names claimed identity IN GENERAL on a surface that has
      two identities. `.platform-pill` and `.platform-slot` name the plane they
      belong to, which leaves the OTHER plane's name free for the pill it is going
      to need. See THE RESERVED SIBLING SLOT below.

      Both slots still carry `hidden` in the markup and the rule above still
      governs them: an anonymous shell draws no pill.

      Three face families are new, and where each came from:
        · `.scope-detail*` / `.cap-pill` — the identity-scope popover. CLASS NAMES
          carried verbatim from `Spectral/public/js/scope.js` (its own faces live
          in that app's `css/scope.css`) so a future sync is a diff and not a
          rename; the VALUES are Sigil's Aurora tokens, because this tree declares
          its own faces and injects no stylesheet.
        · `.syndex-ri-btn` — the served report-issue button. Carried VERBATIM from
          `Spectral/public/css/app-shell.css`'s own "EXACT Sentry port" block, with
          one mechanical change: the scope selector is `.hdr-right` rather than
          `.header-right`, which is this tree's name for the same row.
        · `.plane-strip` / `.plane-line` — Sigil's OWN, and deliberately not the
          estate's `.so-*` signed-out card. The divergence and its reason are
          carried in index.html and in js/scope.js's SLO section: a platform
          sign-out does not take this app's data with it, so it does not take the
          surface either.]

   ⛔ NO VERSION CHIP anywhere on the page — the operator's glass ruling of
      2026-09-13. `/api/version` still answers and the deploy gates on it; nothing
      in the browser reads it. The sibling standard agrees: Spectral's and Sentia's
      header rows carry no version either.
   ============================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  /* 100dvh, not 100vh — the estate's iOS-Safari answer. */
  min-height: 100dvh;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ============================================================================
   ⭐⭐ THE LAYERING RULE — ONE RULED Z-SCALE, AND WHERE A POPOVER'S LAYER LIVES
   (OPEN-213, the operator's screenshots on the #6 glass, 2026-10-03).

   THE DEFECT IT ANSWERS, MEASURED RATHER THAN GUESSED — a headless Chrome over
   this tree, the real plane painting the real pills, every 8×4px of each open
   popover hit-tested (not the operator's glass, which stays the verdict): both
   chrome popovers declared `z-index: 40` and still lost to the page, because a
   z-index is only ever compared with its SIBLINGS IN ONE STACKING CONTEXT. Both
   popovers mount inside `.app-header`, which was `position: relative;
   z-index: 1` — a stacking context of its own, at 1. `main.app` (css/app.css)
   is ALSO a stacking context at 1, and it comes LATER in the document, so on the
   tie it painted on top: every pixel of either popover below the top of
   `main.app` belonged to the page (desktop: 384 of 3,984 samples of the scope
   popover survived, 357 of 6,018 of the profile popover). What survived was
   exactly the band over `.shell-strip` — a static row, painted beneath every
   positioned layer — which is the "only the top strip survives" the
   screenshots show. The 40 was never compared with the page at all.

   ⛔⛔ THE RULE: A POPOVER PAINTS AT THE LAYER OF THE STACKING CONTEXT IT MOUNTS
       IN, NEVER AT ITS OWN Z-INDEX. So the popover layer is not a number on the
       popover; it is the number on the container the popover mounts inside. For
       the chrome that container is `.app-header`, and it carries `--z-chrome`,
       which IS the popover layer. Both chrome popovers ride it by MOUNTING IN THE
       HEADER — each in the slot of the pill that opens it, as one move with that
       pill — and by nothing else.

   THE SCALE. The ROOT tier is the only set of z-indices ever compared with each
   other; every member is a direct child of <body> (or its ::before):
       --z-wash        0   body::before — the aurora, beneath everything
       --z-page        1   `main.app` (css/app.css) and `.plane-strip` — the
                           page plane. Each is its own context, so NOTHING inside
                           the page can climb above 1, whatever it declares
       --z-chrome     40   `.app-header` — the chrome row AND every popover it
                           mounts: THE POPOVER LAYER
       --z-front-door 60   `#front-door` — the blocking overlay covers
                           EVERYTHING, the popovers included. The ruled order is
                           front door > popovers > page, and it is this order

   And ONE member of the ROW tier, compared only with the header's own children
   and never with the page:
       --z-in-chrome   1   `.scope-detail`, `.acting-detail` — above any
                           positioned sibling in the row (both pill slots are
                           positioned, as the popovers' anchors)

   ⛔ FOR THE NEXT POPOVER: mount it inside the header and give it
      `--z-in-chrome`. Do NOT raise its own z-index — a bigger number inside a
      context capped at a smaller one is the exact defect this block exists to
      end — and do NOT add a root-tier member without placing it on this scale,
      below the front door. check.sh check 26 reads the scale's order, both
      mounts, and the absence of any z-index that is not a scale member.
   ⚠ THIS RULE IS ABOUT LAYER, NOT POSITION. Each popover is still anchored to
     its own slot (`top: calc(100% + 8px); right: 0`) and clamped by its own
     max-width; where it lands horizontally is the row's layout, not this scale.
     [OPEN-214: at narrow width the anchor becomes the header row itself — see
     THE ROW FOLDS below. The layer does not move with it: both popovers still
     mount inside `.app-header`, and a containing block is not a stacking context.]

   ⭐⭐ [EXTENDED at OPEN-212 — ONE NEW RUNG, and every word above is kept. The You
      screen became a status-first dashboard (variant C, the operator's pick) whose
      acts open SHEETS: modal panels over the page, a drawer at desk width and a
      bottom sheet at phone width. A sheet has to cover the chrome — the drawer runs
      the window's full height, and an open popover must not paint over a modal —
      and the front door still has to cover the sheet. So the Lead ruled one new
      member between the two:
       --z-sheet      50   the PAGE PLANE while it holds an open sheet. The sheets
                           and their scrim mount inside `#screen-you` — inside the
                           page — so they can never climb above the page's own
                           context; what rises is the page plane itself, from
                           `--z-page` to this member, for exactly as long as a sheet
                           is open (`.app:has(…)` below, a CSS fact rather than a
                           class a module writes). Inside the page the scrim and the
                           sheets declare NO z-index: they stack by document order,
                           the scrim after the dashboard and before every sheet.
      The ruled order is now front door > sheet > popovers (chrome) > page. What
      happens to a popover left open when a sheet opens, measured headless on this
      tree: the PLATFORM popover stays open BENEATH the sheet's scrim, covered rather
      than closed (0 of 720 hit-test samples reached it) — closing it from the custody
      graph would be one plane's module reaching into the other's (check 19(a)); the
      ACTING-AS popover closes, because opening a sheet repaints the You screen and
      every You paint already repaints that pill (js/app.js `refreshYou`). check 26
      reads the five-member order and that the page plane is the member's only
      wearer.] */
:root {
  --z-wash: 0;
  --z-page: 1;
  --z-chrome: 40;
  --z-sheet: 50;
  --z-front-door: 60;
  --z-in-chrome: 1;
}

/* ⭐ THE SHEET LAYER (OPEN-212) — the page plane rides `--z-sheet` while the You
   screen is showing and its scrim is drawn, which is exactly while a sheet is open.
   The selector is the whole condition: a hidden You screen (the person went back
   to Rooms) or a hidden scrim puts the page back on `--z-page`.
   ⭐ [EXTENDED at L7 act A9 — the packet's build note B1: "one condition added to that
   selector". The Rooms screen carries two sheets now (the invite code's create sheet and
   its redeem sheet), mounted in `#invite-sheets` inside the page with their own scrim
   (`.inv-scrim`, drawn by js/invite.js alone). The rung keeps ONE wearer — this rule, the
   page plane — and it is worn while EITHER screen shows an open scrim, and only then;
   the front door still covers it (check 26(g) reads both conditions).] */
.app:has(#screen-you:not([hidden]) .sheet-scrim:not([hidden]), #screen-rooms:not([hidden]) .inv-scrim:not([hidden])) {
  z-index: var(--z-sheet);
}

/* The calm aurora wash. Pure CSS gradients — no image, no request. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-wash);
  background:
    radial-gradient(ellipse at 25% 20%, rgba(0, 180, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(120, 80, 255, 0.025) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 255, 180, 0.015) 0%, transparent 40%);
}

/* --- the one header row ---------------------------------------------------- */
/* ⭐ THE HEADER IS THE POPOVER LAYER (THE LAYERING RULE above). It was
   `z-index: 1`, tied with the page and losing on document order; it now sits on
   the scale's chrome member, so both popovers it mounts paint over the page. */
.app-header {
  position: relative;
  z-index: var(--z-chrome);
  display: flex;
  /* ⭐ OPEN-214 — THE ROW FOLDS (see the block at the phone-width section). */
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  background: var(--deep);
  border-bottom: 1px solid rgba(120, 134, 160, 0.16);
  flex: none;
}

/* The mark links to the app's OWN home — never "back to Syndex". */
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 0;
  border-right: 1px solid var(--border-lit);
  flex-shrink: 0;
  text-decoration: none;
}

/* The mark BREATHES: assets/brand/sigil-mark-animated.svg is loaded as an
   ordinary <img>, which is how the estate animates its marks. Its motion is SMIL
   (SVG-as-image runs SMIL and ignores CSS keyframes) and it degrades to the
   static aurora mark with no fallback needed. */
.mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.wordmark {
  font-family: var(--chrome);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 5px;
  white-space: nowrap;
  background: linear-gradient(90deg, #00c8ff 0%, #7850ff 50%, #00ffb4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- section tabs ---------------------------------------------------------- */
.tabbar {
  display: flex;
  align-items: center;
  margin-left: 10px;
  /* ⭐ OPEN-214: the basis is the tabs' own width (`auto`), never 0 — so when the
     row runs out of room it is the right-hand group that drops to a line of its
     own, and the tabs are never the thing squeezed to nothing. It still grows to
     fill its line, and as a last resort (narrower than the logo and both tabs) it
     scrolls rather than pushing the page wider. */
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }

.tab {
  font-size: var(--text-note);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #8c97ab;
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-current='page'] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: linear-gradient(180deg, transparent 28%, rgba(0, 200, 255, 0.14));
}

/* --- the chrome's right-hand plane (painted by js/scope.js) ---------------- */
.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  /* ⭐ OPEN-214: the group keeps to the right of whatever line it is on, and it
     may shrink to that line and fold inside it — the pills on one line, the
     buttons on the next — rather than ever being wider than the viewport. On a
     wide window none of this fires: everything still fits one row. */
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
  min-width: 0;
  margin-left: auto;
  padding: 4px 0;
}

/* ⭐⭐ THE PILL REGION — A ROW THAT TAKES A SIBLING WITHOUT MOVING ANYTHING.
   (The operator's mid-flight ruling, 2026-09-30.)

   The platform pill is pill ONE OF A PAIR. A second, Sigil-specific pill is
   coming: the ACTING-AS pill, which names the message-plane profile a person is
   currently operating as — the self-rooted identity — in Sigil's own visual
   language (a ring/glyph vocabulary, deliberately a DIFFERENT visual class from
   the Sentry pill, because they are different kinds of fact). That pill is its own
   design pass with its own mockups and its own operator picks, and it is NOT
   built here.

   ⛔ WHAT IS BUILT HERE IS NON-FORECLOSURE, and it is the same discipline
      `css/app.css` keeps for the AI-provenance slot (README invariant 3): the
      region is a FLEX ROW WITH A GAP, not a right-anchored single element jammed
      against the edge, so adding the sibling costs no re-layout. Both pills read
      left-to-right in the order they are true in: who may be here, then who you
      are speaking as.

   ⛔ AND THE SLOT DRAWS NOTHING TODAY. `#acting-as-slot` is empty, carries
      `hidden`, occupies no space, and NO MODULE PAINTS IT — check.sh check 19
      measures all three. An unpainted reserved slot is what it looks like when
      this invariant is being kept; do not repurpose it, and do not let a later act
      put the acting-as identity somewhere else because the slot looked unused.

   ⭐⭐ [AMENDED at OPEN-193 / DR-SIGIL-103 — supersede-never-delete; every word
      above is KEPT and one clause of it is now superseded rather than weakened.
      THE DESIGN PASS RAN, the mockups were built, and the operator picked: the
      acting-as pill is **web variant C, the two-line pill** (DR-SIGIL-103 §1), and
      it is BUILT — its faces are declared below and `js/actingas.js` paints it.

      What is superseded is exactly one clause: *"NO MODULE PAINTS IT"*. ONE module
      does, and which one is the invariant now — `js/actingas.js`, the PRODUCT side
      of the chrome, never `js/scope.js`. The acting-as identity is the CUSTODY
      plane's fact, so it is painted from inside the custody graph; a chrome module
      on the platform plane drawing it would be the merge check 19 exists to
      prevent. check 19(g) reads that: the slot is named by `js/actingas.js` and by
      nothing else, and `js/scope.js` still may not name it at all.

      What is UNCHANGED: the markup's slot is still empty and still carries
      `hidden` (an anonymous device with no profile draws no pill, because a pill is
      a claim that this device holds an identity), and the row is still the flex row
      with a gap that takes the sibling without re-layout.]

   ⭐ THE HEIGHT IS RESERVED PERMANENTLY, AND IT IS RESERVED ON THE ROW (DR-SIGIL-103
      §1: *"minting a profile must never cause a visible reflow"*). `min-height`
      lives here rather than on `.acting-as-slot` on purpose: a `hidden` slot is
      `display:none` and spends nothing, so a reservation on the slot would reserve
      exactly when it is not needed and nothing when it is. The ROW is always
      present, so the row is what holds the space open.

      ⚠ THE NUMBERS, COMPUTED FROM THE DECLARED VALUES RATHER THAN MEASURED IN A
        BROWSER (the operator's glass pass is the measurement, and this comment does
        not pretend otherwise): the platform pill is 12px × 1.4 + 8px padding + 2px
        border ≈ 27px; the two-line pill is a 17px monogram row + a ~12.7px microline
        + 5px padding + 2px border ≈ 37px — the ~12px delta DR-SIGIL-103 names, and
        39px is the mockup's own figure for the pill, taken as the reservation with
        ~2px of headroom.

      ⚠ AND THE HONEST HALF, WHICH THE MOCKUP'S FLAG DID NOT HAVE THE LANDED SHEET
        IN FRONT OF IT TO SEE: on THIS chrome the header does not grow by those 12px
        and never did. `.app-header`'s height is set by `.hdr-logo` — 10px + a 28px
        mark + 10px = 48px — which is taller than either pill and taller than the
        reservation, so a 39px row changes the header by nothing today. The
        reservation is still permanent and still correct: it is what keeps the
        promise true if the logo or the tab metrics ever shrink, and it costs
        nothing to keep. The 12px is a pill-to-pill delta, not a header delta. */
.chrome-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 39px;
}

/* The bare container the platform pill is built into. It holds the popover too,
   so it is the positioning context for it — and nothing else. */
.platform-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* THE RESERVED SIBLING SLOT. It has a declaration so it is a real, named place
   rather than a comment somebody has to find — and the declaration gives it no
   size, no border and no ground, so an empty one is invisible and a `hidden` one
   is absent. The acting-as pill's own face lands with its design pass.
   [AMENDED at OPEN-193 — the design pass landed and the face is declared below.
   This declaration does not change: the slot stays a BARE container with no face
   of its own, exactly as `.platform-slot` is, because the pill carries the face
   and the slot carries the popover's positioning context and nothing else.] */
.acting-as-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(0, 200, 255, 0.05);
  /* The button resets: it is a control now, and it inherits the chrome's type
     rather than the user agent's. */
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  max-width: 44ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.platform-pill:hover { border-color: rgba(0, 200, 255, 0.45); }
.platform-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(0, 255, 180, 0.6);
  flex-shrink: 0;
}
.platform-pill .who { font-weight: 600; }
.platform-pill .sep { color: var(--text-dim); }
.platform-pill .role { color: var(--text-muted); }
.platform-pill .tenant { color: var(--text-muted); }

/* --- the identity-scope popover (class names: Spectral's, verbatim) --------- */
/* ⚠ Its z-index is the ROW tier's and is compared with the header's own children
   only — the layer it paints at over the page is `.app-header`'s (THE LAYERING
   RULE above). It was `40`, a number that never met the page. */
.scope-detail {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-in-chrome);
  width: 380px;
  max-width: min(380px, calc(100vw - 24px));
  max-height: 60vh;
  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.45);
  text-align: left;
  white-space: normal;
}
.scope-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.scope-detail-title {
  font-family: var(--chrome);
  font-size: var(--text-note);
  letter-spacing: 0.4px;
  color: var(--text);
}
.scope-detail-close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.scope-detail-close:hover { color: var(--text); }
.scope-detail-body { padding: 10px 12px 12px; }
.scope-kv {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  font-size: var(--text-fine);
  border-bottom: 1px solid var(--border);
}
.scope-kv:last-of-type { border-bottom: 0; }
.scope-k { flex: 0 0 34%; color: var(--text-muted); }
.scope-v { flex: 1 1 auto; color: var(--text); word-break: break-word; font-family: var(--mono); }
.cap-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.cap-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-lit);
  background: rgba(120, 80, 255, 0.08);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--text-fine);
}
/* ⭐ The one sentence that keeps the two planes two facts, wherever the popover
   is read. It is not decoration and it is not small print. */
.scope-plane-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: var(--text-fine);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ============================================================================
   ⭐⭐ THE ACTING-AS PILL — WEB VARIANT C, THE TWO-LINE PILL (DR-SIGIL-103 §1).

   Pill two of the pair. It names the MESSAGE-PLANE profile a person is currently
   acting as — the self-rooted identity, the thing that seals a message — and it
   is drawn in Sigil's OWN language, deliberately a different visual CLASS from
   the estate capsule eight pixels to its left, because the two are different
   kinds of fact and a reader must not have to be told which is which.

   ⭐ THE CLASS-SEPARATION THESIS, THREE MOVES, ZERO NEW VOCABULARY — the values
      are the picked mockup's (`SelarysAtlas/estate/working-sets/sigil-actingas-mockups/`,
      `web-variant-c-two-line.html`) and every colour resolves to a token this
      tree already declares:
        1. A SEAL SHAPE. `border-radius: 6px` against the platform pill's 999px.
           Shape is the difference that survives peripheral vision, a screenshot
           and a colour-blind reader — it is doing the work a colour could not.
        2. A DOTTED HAIRLINE, AND THE OUTLINE *IS* THE ATTESTATION STATE. It is
           `css/app.css`'s `.idtag` border (`1px dotted`) promoted to pill scale:
           arrived as data, nothing has verified it.
           ⛔ THE SOLID FORM IS RESERVED AND IS NOT DECLARED HERE. A solid outline
              is the core-verdict form, and nothing in this product can compute a
              verdict yet (DR-SIGIL-090 §4; R6-G4). Declaring its face would be a
              face waiting for a hand — the same reason `sealedSlot()` renders an
              empty state rather than a spinner. It lands with its filler or not
              at all.
        3. THE VIOLET CUSTODY GROUND — `rgba(120, 80, 255, …)`, the hue this tree
           already gives the evidence drawer (`css/app.css`), against the platform
           pill's cyan. Custody is violet here; the platform is cyan there.

   ⭐ THE TYPOGRAPHY IS WHAT MAKES IT VARIANT C: the profile id gets a line of its
      own, and a MICROLINE under it carries the relationship word and the ruled
      badge word together — `ACTING AS · UNATTESTED`. The relationship is stated
      permanently, in the chrome, in words, at a register that cannot be mistaken
      for a status. That is the state-3 argument the pick was made on: signed OUT
      with a profile present, this pill is alone in the row and still says what it
      is, with no neighbour needed for contrast.
   ============================================================================ */
.acting-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  /* The button resets — it is a control, and it inherits the chrome's type. */
  font-family: inherit;
  color: var(--text);
  line-height: 1.3;
  cursor: pointer;
  border-radius: 6px;
  border: 1px dotted rgba(120, 80, 255, 0.55);
  background: rgba(120, 80, 255, 0.07);
  padding: 2px 10px 3px;
  max-width: 24ch;
}
.acting-pill:hover { border-color: rgba(120, 80, 255, 0.9); }

/* Line one: the monogram seal and the profile id. */
.acting-pill .l1 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.acting-pill .pnm {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line two: the microline. One row of micro-type doing two jobs. */
.acting-pill .l2 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--chrome);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
/* ⭐⭐ [2026-10-29, RULING ADDENDUM 3 — OF-2: the acting-as chip drops its unattested pill
   (js/actingas.js draws the microline's relationship word alone). Supersede-never-delete — the two
   faces below are retired with the spans they dressed, and kept here as written:
     .acting-pill .l2 .dotsep { color: var(--text-dim); }
     ⭐ THE RULED WORD, AND IT IS THE LAST THING TO FOLD (DR-SIGIL-099 §4;
     DR-SIGIL-103 §4(d)). Its dotted underline is `.idtag`'s hairline again, at
     microline scale — the same primitive saying the same thing in a third place.
     .acting-pill .l2 .ua {
       color: var(--text-muted);
       border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
     }
   The state the word carried lives on the You screen's identity card and in the chip's popover
   (`.ubadge`, below), and the word stays in the chip's accessible name and tooltip.] */

/* ⭐ THE MONOGRAM SEAL. Dotted, like the pill's own outline, for the same reason.
   ⛔ ITS LETTERS COME FROM THE PROFILE ID AND FROM NOTHING ELSE (DR-SIGIL-103
      §4(c)). A key-derived identicon is REFUSED: a picture people learn to
      recognise is a verification affordance with no verdict behind it, which is
      the one thing this product may not draw. `js/actingas.js` derives it and
      says so at the function.
   ⚠ NAMED DEVIATION FROM THE MOCKUP, and it is the selector only: the mockup
     calls this `.ring`. A bare `.ring` claims a shape in general on a sheet that
     renamed `.id-pill`/`.id-slot` to `.platform-*` three weeks ago for exactly
     that reason (check 19(g) forbids the retired general names by name). Every
     value below is the mockup's, byte for byte; only the name is scoped. */
.acting-ring {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dotted rgba(255, 255, 255, 0.34);
}
.acting-ring.lg { width: 38px; height: 38px; font-size: 13px; }

/* --- the profile popover (the custody plane's own drawer) ------------------ */
/* ⚠ STRUCTURE FROM `.scope-detail`, FACE OF ITS OWN — which is the pick's whole
   point. The popover is positioned, clamped and shadowed exactly as the platform
   plane's is (those are necessities of a chrome popover, and the mockup drew its
   drawer inline so it needed none of them), and its VALUES are the mockup's: a
   410px drawer on a violet hairline. It does NOT re-use the `.scope-*` class
   names: those are the platform plane's faces, carried verbatim from Spectral so
   a future sync is a diff, and tying the two planes' faces together is the merge
   this whole pick is drawn to prevent.
   ⭐ [OPEN-213] AND IT RIDES THE SAME LAYER AS THE PLATFORM PLANE'S POPOVER — the
   one structural thing the two drawers share on purpose. Its z-index is the ROW
   tier's (`--z-in-chrome`, was `40`); the layer it paints at over the page is
   `.app-header`'s, because that is where it mounts (THE LAYERING RULE above). */
.acting-detail {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-in-chrome);
  width: 410px;
  max-width: min(410px, calc(100vw - 24px));
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid rgba(120, 80, 255, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: left;
  white-space: normal;
}
.ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.ad-title {
  font-family: var(--chrome);
  font-size: var(--text-note);
  letter-spacing: 0.4px;
  color: var(--text);
}
.ad-x {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  font-family: inherit;
}
.ad-x:hover { color: var(--text); }
.ad-body { padding: 11px 12px 12px; }
.ad-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.acting-detail .n { font-family: var(--mono); font-size: 13px; font-weight: 600; }
/* The badge, SHOWN rather than stated — the one place the ruled word wears a box
   instead of a microline. `.idtag`'s border again. */
.ubadge {
  font-size: 9.5px;
  color: var(--text-muted);
  border: 1px dotted rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.5;
}
.ad-kv {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  font-size: var(--text-fine);
  border-bottom: 1px solid var(--border);
}
.ad-kv:last-of-type { border-bottom: 0; }
.ad-k { flex: 0 0 36%; color: var(--text-muted); }
.ad-v { flex: 1 1 auto; color: var(--text); word-break: break-word; font-family: var(--mono); }
.ad-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: var(--text-fine);
  line-height: 1.55;
  color: var(--text-muted);
}
.ad-note b { color: var(--text); }
/* ⛔ THE ONE DOOR, AND IT IS A DOOR AND NOT A SWITCHER (DR-SIGIL-103 §4(a)). It
   points at the You screen's existing ceremony — the only act in this product
   that releases a profile — and it enumerates nothing. No chevron ships at this
   rung and no menu ever will: a dropdown listing a person's profiles re-creates
   at eye level the join CF-4 spends its whole budget designing out of the
   cryptography (DR-SIGIL-103 §4(b)). */
.ad-door {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--text-fine);
  color: var(--cyan);
  text-decoration: none;
}
.ad-door:hover { text-decoration: underline; }

.btn-logout {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(120, 80, 255, 0.2));
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: var(--cyan);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* Report-issue widget button — carried from Spectral/public/css/app-shell.css
   (its own header calls it an EXACT Sentry port of `report-issue.css
   .syndex-ri-btn`), scoped to the header so it beats the widget's injected
   defaults. The only change is the row's name: `.hdr-right` here,
   `.header-right` there. The widget injects these classes itself, which is why
   they are declared and never named by this tree's JavaScript. */
.hdr-right .syndex-ri-btn,
.hdr-right .syndex-ri-btn.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 26px;
  padding: 0;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18) 0%, rgba(120, 80, 255, 0.18) 100%);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 6px;
  line-height: 0;
  font-size: 14px;
  transition: all 0.2s;
}
.hdr-right .syndex-ri-btn:hover {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.3) 0%, rgba(120, 80, 255, 0.3) 100%);
  border-color: rgba(0, 200, 255, 0.4);
}
.hdr-right .syndex-ri-btn svg { width: 16px; height: 16px; display: block; }

/* --- the platform plane's own quiet line ----------------------------------- */
/* ⭐ NOT the estate's full-screen signed-out card, on purpose. A platform
   sign-out here ends a session and takes nothing else, so it gets a line and not
   a wall — index.html and js/scope.js both carry the reasoning. */
.plane-strip {
  position: relative;
  z-index: var(--z-page);
  padding: 8px 18px;
  background: rgba(0, 200, 255, 0.05);
  border-bottom: 1px solid rgba(0, 200, 255, 0.16);
  flex: none;
}
.plane-line {
  font-size: var(--text-note);
  line-height: 1.5;
  color: var(--text);
}
.plane-line b { color: var(--cyan); }

/* ============================================================================
   ⭐⭐ THE NOTICES ICON BUTTON (DR-SIGIL-108 §5) — the circled-ⓘ that replaces the
   Notices top-nav tab. It is sized and styled to MATCH the served report-issue
   button (.syndex-ri-btn above): the same 30×26 capsule, the same cyan/violet
   gradient and border, so the pair reads as one control group. It sits immediately
   to the issue button's LEFT (the widget injects before #btn-logout, this ships
   before both), and it is a plain hash link into the behind-login notices screen. */
.hdr-right .notices-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 26px;
  padding: 0;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18) 0%, rgba(120, 80, 255, 0.18) 100%);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s;
}
.hdr-right .notices-btn:hover {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.3) 0%, rgba(120, 80, 255, 0.3) 100%);
  border-color: rgba(0, 200, 255, 0.4);
}

/* ============================================================================
   ⭐⭐ THE FRONT DOOR — SIGIL'S OWN COLD-LOGIN / SIGNED-OUT CARD (DR-SIGIL-108).

   [SUPERSEDES the pre-108 "not the estate's full-screen card" posture above —
   supersede-never-delete; the .plane-strip block is KEPT for the record of why the
   SLO strip used to be a quiet line. DR-108 retired the anonymous shell for suite
   realms: a 401 (and a was-authenticated → 401 sign-out transition) now draws a
   BLOCKING card that replaces the app, which IS the estate's full-screen treatment,
   restated in this tree's own tokens and built through js/scope.js's el() helpers
   rather than an injected <style> + innerHTML string.]

   .front-door is the position:fixed, full-viewport overlay js/scope.js paints into;
   .so-* are the card faces (the estate's signed-out-card class family, carried as
   names so a future sync reads as a diff). The ground is the app's own --void, so
   the card reads as the whole window rather than a dialog floating over a usable
   app — because under DR-108 the app beneath is NOT usable without a session.

   [Addendum V: the cold-login card is retired — a signed-out arrival is carried to
   the suite's own sign-in, and the overlay holds `.so-hold` while it goes. What still
   mounts here: the ENDED, unreachable and sign-in-incomplete cards, and the
   shell-free notices panel (`.so-notices`) on the notices route.] */
/* ⭐ The top of THE LAYERING RULE's scale: above the chrome, so a blocking card
   covers an open popover too (front door > popovers > page). */
.front-door {
  position: fixed;
  inset: 0;
  z-index: var(--z-front-door);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: var(--void);
}
.so-card {
  width: 460px;
  max-width: 100%;
  margin: auto;
  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;
}
.so-mark { width: 58px; height: 58px; display: block; margin: 0 auto 18px; }
.so-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 22px;
}
.so-h { font-weight: 600; font-size: 20px; margin: 0 0 10px; }
.so-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(224, 232, 240, 0.6);
  margin: 0 auto 22px;
  max-width: 360px;
}
.so-sub b { color: var(--text); font-weight: 500; }
.so-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.so-card .so-actions .btn { width: 100%; }
.so-reassure {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
}
.so-reassure b { color: var(--text); }
/* ⭐⭐ [RETIRED at DR-SIGIL-108 Addendum V — `.so-foot` and `.so-foot a`, the face of
   the "Notices & source" link every card carried. The operator ruled notices locked
   behind login with NO pre-login link on any surface, so no card draws that foot and
   its face went with it.] */

/* ⭐⭐ THE HOLD (DR-SIGIL-108 Addendum V) — what the front door shows while a leg of
   the arrival is in flight. Dim, no copy, no link: the glyph alone at low opacity on
   the void ground, so the hop reads as one surface handing over to the suite's own
   sign-in form rather than as a loading screen with something to read. */
/* ⭐ [2026-11-04, THE INVITE-WAITING WORDS — supersede-never-delete: these two rules read
   `.so-hold { opacity: 0.35; margin: auto; }` and `.so-hold .so-mark { margin: 0 auto; }`. The dimming moved onto the
   mark itself — the hold with no invite draws exactly as before (the mark is all it holds) — so the one blessed line a
   hold may carry while an invite waits (`.so-invite-waiting`) is readable rather than drawn at a third of its ink.] */
.so-hold { margin: auto; text-align: center; }
.so-hold .so-mark { margin: 0 auto; opacity: 0.35; }
.so-invite-waiting {
  margin: 16px auto 0;
  max-width: 360px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(224, 232, 240, 0.78);
  text-align: center;
}
.so-card .so-invite-waiting { margin: 0 auto 22px; color: var(--text); }

/* ⭐⭐ THE SHELL-FREE NOTICES PANEL (DR-SIGIL-108 Addendum V) — the static notices
   screen's content, alone, mounted INTO the front door for a signed-out visitor who
   arrives directly on the notices route. It is a page, not a card: it fills the
   column the in-app notices screen uses (the copied `.page.narrow` keeps its own
   width), starts at the top rather than centring (it is far taller than any
   viewport), and scrolls with the overlay. Nothing of the app's chrome is beneath
   it that a reader could reach. */
.so-notices { width: 100%; align-self: flex-start; }

/* `hidden` must win over any display rule this sheet sets. */
[hidden] { display: none !important; }

/* --- phone width ----------------------------------------------------------- */
@media (max-width: 640px) {
  .app-header { padding: 0 12px; }
  .hdr-logo { border-right: 0; padding-right: 8px; gap: 8px; }
  .mark { width: 24px; height: 24px; }
  .wordmark { font-size: 12px; letter-spacing: 3px; }
  .tab { padding: 11px 10px; font-size: 12.5px; }
  /* ⭐ THE PILL FOLDS RATHER THAN BEING GATED. This surface is BUILT for the
     narrow viewport — the reason js/scope.js records for not carrying the
     estate's phone gate — so at phone width the pill keeps the fact a person
     needs (who they are) and drops the two that need the room (role, tenant).
     The full set is one tap away in the popover. */
  .platform-pill { max-width: 15ch; padding: 4px 9px; }
  .platform-pill .sep,
  .platform-pill .role,
  .platform-pill .tenant { display: none; }
  .btn-logout { padding: 5px 10px; }
  .plane-strip { padding: 8px 12px; }

  /* ⭐ THE ACTING-AS PILL'S FIRST FOLD. It narrows and tightens and keeps BOTH
     words: variant C is horizontally short enough to sit beside the folded
     platform pill at this width with no stacking, and the height it spends is
     height a phone app bar has anyway. */
  .acting-pill { max-width: 15ch; padding: 2px 8px 3px; }
}

/* --- the acting-as pill's second fold -------------------------------------- */
/* ⭐⭐ THE FOLD RULE, AS A RULE AND NOT A PER-WIDTH JUDGEMENT (DR-SIGIL-103 §4(d),
   applying DR-SIGIL-099 §4): when the row runs out of room the RELATIONSHIP word
   yields FIRST, the id truncates SECOND, and the `unattested` badge NEVER folds.
   `acting as` is this design pass's phrasing and is ruled nowhere; `unattested`
   is ruled on every surface that draws an identity. So the ordering is not taste,
   and stated as an ordering it survives the next three widths nobody has drawn.

   ⛔ VARIANT B's BADGE-LESS COMPACTION IS DRAWN-AND-REFUSED in the mockups so it
      cannot be rediscovered here. A rule that hid `.ua` at ANY width would be
      that refused form arriving as a media query — check.sh check 19(h) reads
      this block for exactly that.

   ⚠ THE WIDTH IS THIS SHEET'S AND THE MOCKUP DID NOT SUPPLY ONE: the two folds
     were drawn side by side at one 390px frame as TREATMENTS (fold 1 without the
     Logout button, fold 2 with it), so a real sheet has to choose a number. 440px
     is chosen so a 390px-class handset that IS signed in — Logout present, which
     is the crowded case the mockup's fold 2 drew — gets the folded microline,
     while the roomier 441–640px band keeps the whole phrase. The relationship
     survives in the tooltip and the accessible name either way, which is where
     the landed platform pill keeps its own folded facts too.

   ⭐ [2026-10-29, RULING ADDENDUM 3 — OF-2; supersede-never-delete, the rule above is the record
     of its day.] The chip draws no `unattested` word any more, so there is no badge for a fold to
     keep: at this width the microline's one word, the relationship, yields as before and the chip
     shows its id. The `.dotsep` selector below now dresses nothing and is left in place rather than
     re-cut. The ruled word stays in the chip's tooltip and accessible name, where the fold never
     reached it. Variant B's refusal stands for any badge a chip DOES draw. */
@media (max-width: 440px) {
  .acting-pill { max-width: 13ch; }
  .acting-pill .l2 .relword,
  .acting-pill .l2 .dotsep { display: none; }
}

/* ============================================================================
   ⭐⭐ THE ROW FOLDS (OPEN-214 — measured by the OPEN-213 fix act, 2026-10-03; it
   rode the OPEN-212 design build, so the chrome row and the You screen land as one
   perceptual pass).

   THE DEFECT: signed in WITH a profile at 390px the header was 524px wide. The row
   was one line that could not break, so the one element allowed to shrink — the
   tab bar, `flex: 1` with a ZERO basis — was squeezed to 0px (Rooms and You
   vanished), the ⓘ and Logout sat off-screen at x≈423/465, and both popovers,
   anchored to slots that had been pushed left, hung past the window's edges. The
   web surface is ruled narrow-viewport-native, so that was a defect, not a nicety.

   THE FIX IS THE ROW'S, AND IT HAS THREE MOVES (all three declared above, in the
   rules they belong to, and read by check 27):
     1. `.app-header` WRAPS. The row is allowed a second line.
     2. `.tabbar`'s basis is its own width (`1 1 auto`), so the line breaks in the
        right place: when the logo, the tabs and the right-hand group do not fit,
        the right-hand group drops to its own line instead of eating the tabs.
     3. `.hdr-right` keeps right on its line and may shrink to it and fold inside
        it — so even a window narrower than the pills plus the buttons gets a
        third line rather than a sideways scroll.
   ⛔ WHAT THIS IS NOT: the acting-as pill's OWN fold (the OPEN-193 rule just above,
      relationship first, badge never) is untouched — that governs the pill's
      internals; this governs the row it sits in. And nothing is HIDDEN to make it
      fit: the tabs, the ⓘ, the issue button and Logout are all still drawn at every
      width, because hiding one to win the width back would be the defect arriving
      as a rule. The platform pill's own face is not touched (check 19(h7)'s pins).

   AND THE POPOVERS' ANCHOR, AT NARROW WIDTH. A popover anchored to its own slot
   (`right: 0`, up to 410px wide) lands wherever the row put that slot — and on a
   folded row a slot can sit far enough left that the popover leaves the window.
   So below the width at which that can happen (760px: the platform pill at its
   44ch cap plus the buttons to its right plus a 380px popover), both slots stop
   being positioned and the popovers anchor to the HEADER instead — dropping below
   the whole row, inset 12px from each edge. ⚠ This changes a CONTAINING BLOCK, not
   a stacking context: both popovers still mount inside `.app-header` and still
   paint at its layer (THE LAYERING RULE), and check 26 still reads that chain. */
@media (max-width: 760px) {
  .platform-slot,
  .acting-as-slot { position: static; }
  .scope-detail,
  .acting-detail {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}
