/* app.css — Mirror's chrome + component system. Owner: m5 (Designer + Vision-Keeper).
   Plain CSS, no @import / no fetch (inlines into dist via bundle.mjs). Mobile-first (390px),
   scales up to desktop. Consumes tokens.css.

   HOW THE VIEWS USE THIS (m2 landing/mirror, m3 cross, m4 you/with):
   You should not need inline styles. Reach for the component classes below. The vocabulary:
     Layout      .view, .view--center, .stack, .measure, .measure-narrow
     Hero        .hero, .hero__eyebrow, .hero__title, .hero__lead, .hero__cta
     Step/act    .act, .act__eyebrow, .act__q (the one question), .prose
     Truth       .truth, .truth--self, .truth--peer, .truth__action, .truth__belief,
                 .truth__meta, .truth__vow, .truth__topic, .movement, .movement__arrow
     Form        .field, .field__label, .field__hint, input/textarea.input, .vow (affirm button)
     Buttons     .btn, .btn--primary, .btn--ghost, .btn--quiet, .btn--door
     Notices     .notice (the gentle "not yet" redirect message), .empty (empty state)
   Accent by author is automatic: .truth--self gets the sage ink, .truth--peer the clay ink.
   There is no class for a third person — by design (guardrail 2 / 5). */

/* ============================ reset / base ================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* a whisper of warmth so the paper reads like paper, not a white box */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 254, 251, 0.7), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--ink-self-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink-self); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

::selection { background: var(--ink-self-wash); color: var(--ink); }

/* ============================ app shell =================================== */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --- appbar: a thin, quiet top rule. Not a sticky engagement bar. --------- */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--shell-pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  /* fallback for engines without color-mix: still a paper-ish translucent bar */
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  position: sticky;
  top: 0;
  z-index: var(--z-bar);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
/* a tiny mirror mark: two facing arcs. pure CSS, no asset. */
.brand::before {
  content: "";
  width: 0.85em; height: 0.85em;
  border-radius: 50%;
  background:
    linear-gradient(105deg, var(--ink-self) 0 50%, var(--paper-raised) 50% 100%);
  box-shadow: inset 0 0 0 1.5px var(--ink-self-deep);
  flex: none;
}

/* --- nav: app.js fills this per stage; a pre-cross visitor sees no peer link. */
#nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
#nav a {
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: var(--fw-med);
  color: var(--ink-soft);
  text-decoration: none;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
#nav a:hover { color: var(--ink); background: var(--paper-sunk); }

/* mark the current route's nav link without JS by reading the body data-route.
   (app.js sets body[data-route]; the links are plain hrefs, so we style on hover
   and let the eyebrow on each view carry the "you are here" — kept simple + honest.) */

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ============================ view layout ================================= */
#view { display: flex; flex-direction: column; flex: 1 1 auto; }

.view {
  width: 100%;
  margin: 0 auto;
  padding: var(--s-7) var(--shell-pad) var(--s-8);
  animation: rise var(--dur-slow) var(--ease) both;
}
/* a centred single-act column (mirror / cross ceremonies, empty states) */
.view--center {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.measure        { max-width: var(--measure); margin-inline: auto; width: 100%; }
.measure-narrow { max-width: var(--measure-narrow); margin-inline: auto; width: 100%; }

/* vertical rhythm helper the views can lean on */
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-sm > * + * { margin-top: var(--s-2); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* the eyebrow label — the quiet all-caps "you are here / what this is" line */
.eyebrow, .hero__eyebrow, .act__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* reading prose */
.prose, .hero__lead, .act__q {
  font-family: var(--font-serif);
  color: var(--ink-soft);
}
.prose p + p { margin-top: var(--s-4); }

/* ============================ the landing (#/) ============================ */
/* The public hook. ONE thing on screen. No feed, no other person, no number.
   m2 owns the words; this is the stage they speak on. */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding-top: var(--s-6);
  padding-bottom: var(--s-7);
}
.hero__eyebrow { margin-bottom: calc(-1 * var(--s-3)); }
.hero__title {
  font-family: var(--font-serif);
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semi);
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 18ch;          /* short, breathing headline measure */
  text-wrap: balance;
}
.hero__lead {
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  max-width: 46ch;
}
.hero__cta { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* a faint editorial divider the landing can use between thoughts */
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s-6) 0;
}
/* a quiet aside / footnote the landing or cross page can use for "the why" */
.aside {
  font-size: var(--t-sm);
  color: var(--ink-faint);
  font-family: var(--font-sans);
  border-left: 2px solid var(--line-strong);
  padding-left: var(--s-4);
  line-height: var(--lh-body);
}

/* ============================ the act / ceremony ========================== */
/* mirror reflect step, cross step — one quiet question / one moment at a time */
.act { display: flex; flex-direction: column; gap: var(--s-5); }
.act__q {
  font-size: var(--t-h1);
  line-height: var(--lh-snug);
  color: var(--ink);
  font-weight: var(--fw-reg);
  max-width: 24ch;
  text-wrap: balance;
}

/* ============================ truth cards ================================= */
/* The truth is the only "card" in the product. Self = sage; peer = clay.
   It reads like a stamped note, not a social post (no avatars, no actions row,
   no like button — there is nothing to react with, by design). */
.truth {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.truth--self { border-left-color: var(--ink-self); background: var(--paper-raised); }
.truth--self.truth--mine { background: var(--ink-self-wash); }   /* the visitor's OWN, emphasised */
.truth--peer { border-left-color: var(--ink-peer); background: var(--paper-raised); }

.truth__topic {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.truth--self .truth__topic { color: var(--ink-self-deep); }
.truth--peer .truth__topic { color: var(--ink-peer); }

.truth__action {
  font-family: var(--font-serif);
  font-size: var(--t-lead);
  line-height: var(--lh-snug);
  color: var(--ink);
}
.truth__belief {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  line-height: var(--lh-body);
  padding-left: var(--s-4);
  border-left: 1.5px solid var(--line);
}
.truth__belief::before {
  content: "because ";
  font-style: normal;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.truth__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  color: var(--ink-faint);
}
.truth__who { font-weight: var(--fw-semi); color: var(--ink-soft); }
.truth--self .truth__who { color: var(--ink-self-deep); }
.truth--peer .truth__who { color: var(--ink-peer); }
.truth__vow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--ink-faint);
}
.truth__vow::before { content: "·"; }

/* belief-movement: author-declared then -> now (never inferred). A vertical journey. */
.movement { display: flex; flex-direction: column; gap: var(--s-3); }
.movement__step { position: relative; padding-left: var(--s-5); }
.movement__step::before {
  content: "";
  position: absolute; left: 6px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-self);
}
.movement__step--from::before { background: var(--ink-ghost); }
.movement__step:not(:last-child)::after {
  content: "";
  position: absolute; left: 9px; top: 1.2em; bottom: -0.6em;
  width: 1px; background: var(--line-strong);
}
.movement__label {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================ forms / the speak step ===================== */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__label {
  font-family: var(--font-sans);
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.field__hint {
  font-size: var(--t-xs);
  color: var(--ink-faint);
  line-height: var(--lh-body);
}

.input, input.input, textarea.input, select.input {
  width: 100%;
  font-family: var(--font-serif);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper-sunk);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { min-height: 5.5em; resize: vertical; }
.input::placeholder { color: var(--ink-ghost); font-style: italic; }
.input:hover { border-color: var(--ink-faint); }
.input:focus { border-color: var(--ink-self); background: var(--paper-raised); outline: none; box-shadow: var(--ring); }

/* the no-ill-will vow as an AFFIRM BUTTON (not a buried checkbox) — m2's brief.
   off = a quiet invitation; on = a settled, sage-filled commitment. */
.vow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--paper-raised);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-4);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  line-height: var(--lh-snug);
  transition: all var(--dur) var(--ease);
}
.vow__mark {
  flex: none;
  width: 1.4em; height: 1.4em;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.vow[aria-pressed="true"] {
  background: var(--ink-self-wash);
  border-color: var(--ink-self);
  color: var(--ink);
}
.vow[aria-pressed="true"] .vow__mark {
  background: var(--ink-self);
  border-color: var(--ink-self);
  color: #fff;
}
.vow[aria-pressed="true"] .vow__mark::before { content: "✓"; font-size: 0.8em; line-height: 1; }
.vow:hover { border-color: var(--ink-self); }

/* ============================ buttons ===================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: var(--fw-semi);
  line-height: 1;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink-self);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--ink-self-deep); color: #fff; box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-sunk); }

/* a low-key text-button for "not now" / back — never competes with the primary */
.btn--quiet {
  background: transparent;
  color: var(--ink-soft);
  padding-inline: var(--s-3);
  font-weight: var(--fw-med);
}
.btn--quiet:hover { color: var(--ink); }

/* the "door, not a funnel" CTA into the next step — generous, unhurried */
.btn--door {
  background: transparent;
  color: var(--ink-self-deep);
  border-color: var(--ink-self);
  padding: var(--s-4) var(--s-6);
  font-family: var(--font-serif);
  border-radius: var(--r-lg);
}
.btn--door:hover { background: var(--ink-self-wash); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ============================ notices / empty ============================= */
/* the gentle "not yet — earn it" message (e.g. a redirect landed you on #/cross).
   earthy, never alarming. there is no red in Mirror. */
.notice {
  background: var(--paper-sunk);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--whisper);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  color: var(--ink-soft);
  font-size: var(--t-sm);
  line-height: var(--lh-body);
}

.empty {
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-style: italic;
  padding: var(--s-7) var(--s-4);
  line-height: var(--lh-body);
}

/* the failsoft view-stub app.js renders before a sibling view exists */
.view-stub {
  max-width: var(--measure-narrow);
  margin: var(--s-8) auto;
  padding: var(--s-5);
  text-align: center;
  color: var(--ink-soft);
}
.view-stub h2 { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--ink-faint); }
.view-stub pre {
  font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-faint); white-space: pre-wrap; margin-top: var(--s-3);
}

/* ============================ responsive: desktop ========================= */
@media (min-width: 720px) {
  :root { --shell-pad: var(--s-7); }
  .appbar { padding-inline: var(--s-8); }
  .view { padding-block: var(--s-9) var(--s-9); }
  .hero { padding-top: var(--s-8); }
}

/* on a wide screen the landing hero gets even more air, but the measure caps
   line length so prose never sprawls — attention stays on the words. */
@media (min-width: 1100px) {
  .hero__title { font-size: var(--t-display); }
}

/* ============================ the cross surface (#/cross) =================
   THE HINGE — the consent ceremony (m3's view, cross.js). cross.js renders with
   its own .cross-* class vocabulary and carries NO inline fallback <style> (unlike
   the other views), so the global look is entirely m5's to supply here. Without
   these, the most important consent surface fell back to raw browser links — a
   coherence hole on the screen that matters most. Everything below binds the cross
   ceremony to the SAME calm system as the rest of Mirror: sage self-accent, warm
   paper cards, soft radii, the "absence is the mechanism" struck-through in-palette.
   Additive only — touches no view file. ------------------------------------ */

/* the cross view shares .view's centered measure-narrow column (a ceremony, not a
   dashboard) — keep its reading width intimate like the mirror. */
.view-cross {
  max-width: var(--measure);
  margin-inline: auto;
}
.cross-head { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
.cross-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-label); font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--ink-faint); margin: 0;
}
.cross-title {
  font-family: var(--font-serif);
  font-size: var(--t-h1); line-height: var(--lh-snug);
  font-weight: var(--fw-semi); letter-spacing: -0.01em;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.cross-sub {
  font-family: var(--font-serif);
  font-size: var(--t-lead); line-height: var(--lh-body);
  color: var(--ink-soft); margin: 0; max-width: 52ch;
}

/* the "why" — a sequence of plain statements; the argument IS the design. */
.cross-why-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-5); }
.cross-why-item { display: flex; flex-direction: column; gap: var(--s-2); }
.cross-why-h {
  font-family: var(--font-serif);
  font-size: var(--t-h2); line-height: var(--lh-snug);
  font-weight: var(--fw-semi); color: var(--ink); margin: 0;
}
.cross-why-body { font-family: var(--font-serif); color: var(--ink-soft); line-height: var(--lh-body); margin: 0; }
.cross-why-foot {
  font-family: var(--font-serif); color: var(--ink-soft); line-height: var(--lh-body);
  margin: var(--s-5) 0 0; padding-left: var(--s-4); border-left: 2px solid var(--ink-self);
}
.cross-note {
  font-size: var(--t-sm); color: var(--ink-faint); line-height: var(--lh-body);
  margin: var(--s-4) 0 0; max-width: 56ch;
}
.cross-note-deny { color: var(--whisper); }

/* button row + the cross buttons (map onto the global .btn look, kept local to the
   cross-* names cross.js actually emits) */
.cross-btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-6); }
.cross-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-sans); font-size: var(--t-body); font-weight: var(--fw-semi);
  line-height: 1; padding: var(--s-3) var(--s-5); border-radius: var(--r-md);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.cross-btn:active { transform: translateY(1px); }
.cross-btn-primary { background: var(--ink-self); color: #fff; box-shadow: var(--shadow-md); }
.cross-btn-primary:hover { background: var(--ink-self-deep); color: #fff; box-shadow: var(--shadow-lg); }
.cross-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cross-btn-ghost:hover { border-color: var(--ink); background: var(--paper-sunk); }
.cross-btn.is-disabled, .cross-btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; box-shadow: none; }

/* the cards (ceremony, inversion) — warm paper, soft, like everything else */
.cross-card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5);
  box-shadow: var(--shadow-sm); margin-top: var(--s-5);
}
.cross-card > h2 {
  font-family: var(--font-sans); font-size: var(--t-h2);
  font-weight: var(--fw-semi); color: var(--ink); margin: 0 0 var(--s-2);
}
.cross-card p { line-height: var(--lh-body); color: var(--ink-soft); }
.cross-phase { display: flex; flex-direction: column; gap: var(--s-4); }
.cross-phase h2 { font-family: var(--font-serif); font-size: var(--t-h2); font-weight: var(--fw-semi); color: var(--ink); margin: 0; }

/* the inversion — the ABSENCE made the mechanism (guardrail 3 made visible). The
   struck-through dead "add by username" is drawn in-palette: earthy, never alarming. */
.cross-inversion { border-left: 3px solid var(--whisper); }
.cross-inversion-h { color: var(--ink) !important; }
.cross-inversion-lede, .cross-inversion-foot { font-size: var(--t-sm); color: var(--ink-soft); line-height: var(--lh-body); }
.cross-inversion-foot { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cross-dead-add {
  position: relative; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  background: var(--paper-sunk); border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); margin: var(--s-4) 0; opacity: .8;
}
.cross-dead-label { font-family: var(--font-sans); font-size: var(--t-sm); font-weight: var(--fw-semi); color: var(--ink-faint); }
.cross-dead-field { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--ink-ghost); flex: 1 1 6rem; min-width: 4rem; }
.cross-dead-btn { font-family: var(--font-sans); font-size: var(--t-sm); color: var(--ink-ghost); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--s-1) var(--s-3); }
.cross-dead-strike { position: absolute; left: var(--s-3); right: var(--s-3); top: 52%; height: 2px; background: var(--line-strong); transform: rotate(-1.5deg); }
.cross-absence-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.cross-absence { display: grid; grid-template-columns: 1.2rem auto 1fr; gap: var(--s-1) var(--s-3); align-items: baseline; }
.cross-absence-x { color: var(--line-strong); font-weight: var(--fw-semi); text-align: center; }
.cross-absence-name { font-family: var(--font-sans); font-weight: var(--fw-semi); font-size: var(--t-sm); color: var(--ink); }
.cross-absence-why { grid-column: 2 / -1; font-size: var(--t-xs); color: var(--ink-faint); line-height: var(--lh-body); }

/* the progress rail — quiet dots, sage when done. NOT a gamified bar; it orients, it doesn't score. */
.cross-progress { list-style: none; margin: 0 0 var(--s-4); padding: 0 0 var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); border-bottom: 1px solid var(--line); }
.cross-step { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-sans); font-size: var(--t-xs); color: var(--ink-faint); }
.cross-step-dot { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; }
.cross-step.is-done .cross-step-dot { background: var(--ink-self); border-color: var(--ink-self); color: #fff; }
.cross-step.is-done .cross-step-label { color: var(--ink-soft); }
.cross-step.is-active .cross-step-label { color: var(--ink); font-weight: var(--fw-semi); }

/* the name/token inputs in the ceremony */
.cross-name-form, .cross-token-form { display: flex; flex-direction: column; gap: var(--s-3); }
.cross-name-label, .cross-token-label { font-family: var(--font-sans); font-size: var(--t-sm); font-weight: var(--fw-semi); color: var(--ink); display: flex; flex-direction: column; gap: var(--s-2); }
.cross-name-input, .cross-token-input {
  font-family: var(--font-serif); font-size: var(--t-body); color: var(--ink);
  background: var(--paper-sunk); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); width: 100%; box-sizing: border-box;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.cross-name-input:focus, .cross-token-input:focus { border-color: var(--ink-self); background: var(--paper-raised); outline: none; box-shadow: var(--ring); }

/* the bridge token — a held-up artefact, read face to face. Mono, generous, quiet. */
.cross-token {
  font-family: var(--font-mono); font-size: var(--t-h1); letter-spacing: 0.08em;
  color: var(--ink-self-deep); background: var(--ink-self-wash);
  border: 1px solid color-mix(in srgb, var(--ink-self) 22%, transparent);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5); text-align: center; margin: var(--s-2) 0;
}

/* the consent rows — a label-with-checkbox affirmation. on = sage-filled, settled. */
.cross-consent {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s-3); align-items: start;
  background: var(--paper-raised); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: var(--s-4); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cross-consent.is-on { background: var(--ink-self-wash); border-color: var(--ink-self); }
.cross-consent-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.cross-consent-mark {
  grid-row: 1 / span 2; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  border: 1.5px solid var(--ink-faint); display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; color: transparent; transition: all var(--dur) var(--ease);
}
.cross-consent.is-on .cross-consent-mark { background: var(--ink-self); border-color: var(--ink-self); color: #fff; }
.cross-consent-title { font-family: var(--font-sans); font-weight: var(--fw-semi); font-size: var(--t-body); color: var(--ink); display: block; }
.cross-consent-why { font-size: var(--t-sm); color: var(--ink-soft); line-height: var(--lh-body); display: block; margin-top: var(--s-1); }

/* the seal — the crossed moment. a sage check, settled. */
.cross-phase-sealed, .cross-crossed { align-items: flex-start; }
.cross-seal-mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ink-self); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-md);
}
.cross-whose { color: var(--node-color, var(--ink-self)); font-weight: var(--fw-semi); }
.cross-seal-before { font-size: var(--t-sm); color: var(--ink-faint); line-height: var(--lh-body); padding-left: var(--s-4); border-left: 2px solid var(--line); }
.cross-error {
  background: var(--paper-sunk); border: 1px solid var(--line-strong); border-left: 3px solid var(--whisper);
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4); color: var(--ink-soft); font-size: var(--t-sm); line-height: var(--lh-body);
}

/* ====================== nav: keep the threshold-aware links tidy =============
   on a narrow phone the third link ("Hand someone a mirror") could wrap into a
   ragged second line. Let the nav scroll horizontally instead of stacking, so the
   appbar stays one calm rule. The links never reveal an unearned surface (app.js
   gates that) — this is purely about keeping the bar from breaking. */
#nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
#nav::-webkit-scrollbar { display: none; }
#nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .appbar { gap: var(--s-3); }
  #nav a { padding-inline: var(--s-2); font-size: var(--t-xs); }
}
