/* SloganPrism — Spectral Typography Laboratory.
   ONE contrast rule, minimal !important: every surface sets --fg / --fg-muted
   / --title / --surface / --border on itself; components only ever reference
   those five custom properties. Put a component inside `.on-dark` (or a node
   that already redefines the tokens, e.g. .section--night) and every child
   recolors correctly with zero extra overrides. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --paper: #E4EAF4;
  --ink: #121522;
  --violet: #6554D9;
  --blue: #3676D8;
  --coral: #E9664A;
  --teal: #248E82;
  --gold: #D6A238;
  --success: #3BA779;
  --pending: #E1A43B;
  --risk: #D94E66;

  --card-light: #F3F6FC;
  --card-dark: #202536;
  --border-light: #B8C3D6;
  --border-dark: #3B4358;
  --title-light: #23252D;
  --title-dark: #F7F6F2;
  --body-light: #3A404C;
  --body-muted-light: #5C6270;
  --body-dark: #C7CDDA;
  --body-muted-dark: #98A0B8;

  /* Contrast tokens — redefined inside .on-dark and night surfaces only. */
  --fg: var(--body-light);
  --fg-muted: var(--body-muted-light);
  --title: var(--title-light);
  --surface: var(--card-light);
  --border: var(--border-light);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --announce-h: 36px;
  --header-h: 58px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
  --container: min(1120px, calc(100% - 2.5rem));
  --container-wide: min(1280px, calc(100% - 2rem));
  --radius-s: 3px;
  --radius-m: 7px;
  --radius-l: 11px;
  --shadow-soft: 0 10px 28px rgba(18, 21, 34, 0.1);
  --shadow-night: 0 16px 44px rgba(0, 0, 0, 0.4);
  --ease-spectral: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg);
  background-color: var(--paper);
  /* Cool spectral laboratory wash — wide horizontal frequency bands plus
     violet/blue/coral radial washes at low opacity. Not SurveyTwine's warm
     parchment dot grid, not TeamDune's diagonal cool hatch. */
  background-image:
    repeating-linear-gradient(180deg, rgba(54, 118, 216, 0.045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(101, 84, 217, 0.05) 119px 120px),
    radial-gradient(ellipse 84% 48% at 4% 2%, rgba(101, 84, 217, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 42% at 97% 6%, rgba(54, 118, 216, 0.08), transparent 52%),
    radial-gradient(ellipse 72% 44% at 95% 98%, rgba(233, 102, 74, 0.06), transparent 52%);
  background-size: 100% 34px, 120px 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--title);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 0.65em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 700; }

p { margin: 0 0 1em; color: var(--fg); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code { font-family: var(--font-mono); font-size: 0.92em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@keyframes spectral-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(101, 84, 217, 0); }
  50% { box-shadow: inset 0 0 0 3px rgba(101, 84, 217, 0.32); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flash-pulse {
  0%, 100% { background: rgba(214, 162, 56, 0.06); }
  50% { background: rgba(214, 162, 56, 0.22); }
}
@keyframes beam-sweep {
  from { background-position: -120px 0; }
  to { background-position: 120px 0; }
}

/* ————————————————— Layout shell ————————————————— */
.site-shell { min-height: 100dvh; display: flex; flex-direction: column; position: relative; isolation: isolate; padding-top: var(--site-top-h); }
.site-shell > main { flex: 1 1 auto; }

.container { width: var(--container); margin-inline: auto; }
.container--wide { width: var(--container-wide); margin-inline: auto; }

.section { padding: 1.5rem 0; position: relative; }
.section--tight { padding: 1.1rem 0; }
.section--docs { padding-top: 1.5rem; padding-bottom: 2rem; }
.section--docs .legal-body { max-width: 68ch; }

.section--night,
.on-dark {
  --fg: var(--body-dark);
  --fg-muted: var(--body-muted-dark);
  --title: var(--title-dark);
  --surface: var(--card-dark);
  --border: var(--border-dark);
}

.section--night {
  color: var(--fg);
  background:
    linear-gradient(135deg, rgba(32, 37, 54, 0.9) 0%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(59, 67, 88, 0.32) 0, rgba(59, 67, 88, 0.32) 1px, transparent 1px, transparent 74px),
    linear-gradient(180deg, #191d2c 0%, var(--ink) 100%);
}

.mt-s { margin-top: 0.75rem !important; }
.mt-m { margin-top: 1.5rem !important; }
.mt-l { margin-top: 2.5rem !important; }

.is-ok { color: var(--success) !important; }
.is-warn { color: var(--risk) !important; }
.is-active { border-color: var(--gold) !important; }
.is-inview { animation: spectral-pulse 0.65s var(--ease-spectral) forwards; }

/* ————————————————— Type utilities ————————————————— */
.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.6; color: var(--fg); max-width: 62ch; }

.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}

.hint-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  background: var(--surface);
  margin: 1rem 0 0;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.text-link { font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(54, 118, 216, 0.35); background: none; padding: 0; cursor: pointer; font-family: var(--font-sans); font-size: inherit; }
.text-link:hover { color: var(--ink); border-bottom-color: var(--gold); }
.on-dark .text-link, .section--night .text-link { color: #A9B8F2; }
.on-dark a:hover, .section--night a:hover,
.on-dark .text-link:hover, .section--night .text-link:hover { color: var(--gold); }

.linkish {
  background: none; border: none; padding: 0; font-weight: 700; color: var(--blue);
  cursor: pointer; font-family: var(--font-sans); font-size: 0.86rem;
  text-decoration: underline; text-decoration-color: rgba(54, 118, 216, 0.4);
}
.linkish:hover { color: var(--ink); }

/* Legend chips — used by projection + offset legends */
.legend-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-muted);
}
.legend-item::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--border); flex-shrink: 0; }
.legend-item--conflict::before, .legend-item--offset::before { background: var(--risk); }
.legend-item--aligned::before { background: var(--success); }
.legend-item--ghost::before { background: var(--pending); }
.legend-item--absent::before { background: var(--border); }

/* ————————————————— Site top: announce + header ————————————————— */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  width: 100%;
  min-height: var(--site-top-h);
  background: var(--card-light);
}

/* Clean spectral admit — centered one-line status + thin spectrum rail.
   Distinct from SurveyTwine thread and TeamDune terrain seam. */
.announce-bar--spectrum {
  position: relative;
  min-height: var(--announce-h);
  color: #C7CDDA;
  font-size: 0.8rem;
  background: #121522;
  border-bottom: none;
  overflow: hidden;
}
.announce-spectrum-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--violet) 0%,
    var(--blue) 28%,
    var(--teal) 52%,
    var(--gold) 76%,
    var(--coral) 100%
  );
  opacity: 0.9;
}
.announce-bar--spectrum .announce-bar-inner {
  width: var(--container-wide);
  margin-inline: auto;
  padding: 0.5rem 1rem;
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.announce-bar--spectrum .announce-text {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.7rem;
  line-height: 1.3;
  text-align: center;
}
.announce-bar--spectrum .announce-case {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #D6A238;
}
.announce-bar--spectrum .announce-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(199, 205, 220, 0.45);
  flex-shrink: 0;
}
.announce-bar--spectrum .announce-msg {
  color: #DCE1EE;
  font-weight: 500;
}
.announce-bar--spectrum .announce-action {
  color: #A99BFF;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 155, 255, 0.4);
}
.announce-bar--spectrum .announce-action:hover,
.announce-bar--spectrum .announce-action:focus-visible {
  color: #F0C36A;
  border-bottom-color: #F0C36A;
}

.site-header {
  min-height: var(--header-h);
  background: rgba(243, 246, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.header-inner {
  width: var(--container-wide);
  margin-inline: auto;
  padding: 0 1rem;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.header-actions { display: flex; align-items: center; gap: 0.65rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--title-light); }
.brand:hover, .brand:focus-visible { color: var(--violet); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; color: inherit; }
.brand-text span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--teal); text-transform: uppercase; }
.brand-name { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-slogan-inline { display: block; color: var(--teal); font-weight: 600; margin: 0.2rem 0 0.6rem; }
.brand-headline { margin-top: 0.15rem; }
.brand-desc { color: var(--fg); }
.brand-lockup { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.3rem; }
.brand-lockup h1 { margin: 0; }

.logo-mark { width: 2rem; height: 1.7rem; display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark--hero { width: clamp(3rem, 5vw, 3.9rem); height: clamp(2.5rem, 4.2vw, 3.2rem); }

.nav-main { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.15rem 0.25rem; }

.nav-link {
  font-size: 0.79rem;
  font-weight: 600;
  color: rgba(18, 21, 34, 0.75);
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--ink); background: rgba(243, 246, 252, 0.9); border-color: var(--border-light); }
.nav-link.is-active {
  color: var(--ink) !important;
  background: var(--card-light) !important;
  border-color: var(--border-light) !important;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.header-signin { font-size: 0.82rem; font-weight: 600; color: var(--body-light); text-decoration: none; }
.header-signin:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-light);
  background: var(--card-light);
  color: var(--ink);
  border-radius: var(--radius-s);
  padding: 0.35rem 0.55rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--paper);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { text-decoration: none; font-weight: 600; color: var(--body-light); padding: 0.5rem 0.65rem; border-radius: var(--radius-s); }
.mobile-nav a.is-active { background: var(--card-light); color: var(--ink); }

/* User menu */
.user-menu { position: relative; }
.user-avatar {
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--violet); color: #fff;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  cursor: pointer; display: grid; place-items: center;
}
.user-dropdown {
  --fg: var(--body-light); --fg-muted: var(--body-muted-light);
  --surface: var(--card-light); --border: var(--border-light);
  display: none; position: absolute; top: calc(100% + 0.6rem); right: 0;
  min-width: 228px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
  padding: 0.5rem; flex-direction: column; z-index: 50;
}
.user-dropdown.is-open { display: flex; }
.user-workspace-label {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-muted); padding: 0.35rem 0.6rem 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.3rem;
}
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 0.5rem 0.6rem; border-radius: var(--radius-s);
  color: var(--fg); text-decoration: none; font-size: 0.86rem; font-weight: 600;
  border: none; background: none; cursor: pointer; font-family: var(--font-sans);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--paper); color: var(--ink); }
.user-dropdown button[data-sign-out] { color: var(--risk); margin-top: 0.2rem; border-top: 1px solid var(--border); border-radius: 0; padding-top: 0.6rem; }

/* ————————————————— Buttons ————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem;
  padding: 0.65rem 1.15rem; border-radius: var(--radius-m); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(101, 84, 217, 0.3); }
.btn-primary:hover { background: #5445C4; box-shadow: 0 10px 24px rgba(101, 84, 217, 0.36); color: #fff; }

.btn-secondary { background: var(--card-light); color: var(--ink); border-color: var(--border-light); }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet); }
.section--night .btn-secondary, .on-dark .btn-secondary { background: rgba(101, 84, 217, 0.16); color: var(--title-dark); border-color: rgba(199, 205, 220, 0.4); }
.section--night .btn-secondary:hover, .on-dark .btn-secondary:hover { background: var(--violet); color: #fff; }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: rgba(101, 84, 217, 0.08); }
.section--night .btn-ghost, .on-dark .btn-ghost { color: var(--title-dark); border-color: rgba(199, 205, 220, 0.4); }

.btn-line { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-line:hover { background: rgba(101, 84, 217, 0.08); }

.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ————————————————— Spectrum Mast (page header) ————————————————— */
/* Full-width graduated frequency band, then a grid: kicker/title column,
   lead + action column, and an OPTIONAL side column. The `:has()` rule below
   only opens a 3rd track when a `.spectrum-mast-side` is actually present —
   never reserve empty grid space for a side panel that wasn't rendered. */
.spectrum-mast { position: relative; padding: 0 0 1.35rem; background: linear-gradient(180deg, #EDF1F9 0%, var(--card-light) 100%); border-bottom: 2px solid var(--violet); overflow: hidden; }
.spectrum-mast-band {
  height: 7px;
  background: repeating-linear-gradient(90deg,
    var(--violet) 0 10px, transparent 10px 14px,
    var(--blue) 14px 20px, transparent 20px 24px,
    var(--coral) 24px 27px, transparent 27px 34px,
    var(--gold) 34px 36px, transparent 36px 48px);
  opacity: 0.9;
}
.spectrum-mast--ink {
  --fg: var(--body-dark); --fg-muted: var(--body-muted-dark);
  --title: var(--title-dark); --surface: var(--card-dark); --border: var(--border-dark);
  background: linear-gradient(120deg, #191d2c 0%, var(--ink) 55%, #12151f 100%);
  border-bottom-color: var(--teal);
  color: var(--fg);
}
.spectrum-mast--ink .spectrum-mast-band {
  background: repeating-linear-gradient(90deg,
    var(--teal) 0 10px, transparent 10px 14px,
    var(--violet) 14px 20px, transparent 20px 24px,
    var(--gold) 24px 27px, transparent 27px 34px);
}

.spectrum-mast-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding-top: 1.35rem;
}
.spectrum-mast-grid:has(.spectrum-mast-side) {
  grid-template-columns: minmax(200px, 0.52fr) minmax(0, 1fr) minmax(220px, 0.48fr);
}

.spectrum-mast-kicker-col { min-width: 0; }
.spectrum-mast-kicker-col h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; }
.spectrum-mast-lead-col { min-width: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.spectrum-mast-lead-col .lead { margin: 0; max-width: 64ch; }
.spectrum-mast-action { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.spectrum-mast-side { min-width: 0; }

@media (max-width: 900px) {
  .spectrum-mast-grid, .spectrum-mast-grid:has(.spectrum-mast-side) { grid-template-columns: 1fr; }
}

/* Side panel — used inside spectrum-mast-side and standalone asides */
.side-panel {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  color: var(--fg);
}
.side-panel-chips { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.side-chip { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.82rem; padding: 0.4rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius-s); background: rgba(101, 84, 217, 0.06); }
.side-chip span { color: var(--fg-muted); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; }
.side-chip b { color: var(--title); }

/* Reusable CTA + hint row used at the bottom of most interactive sections */
.chamber-approve-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--border-light); }
.chamber-approve-row .hint-line { margin: 0; flex: 1 1 260px; }

/* ————————————————— Section headings ————————————————— */
.sec-head { margin-bottom: 1rem; }
.sec-head .lead { margin-top: 0.35rem; }

/* ————————————————— Workspace layout helpers ————————————————— */
/* .workspace-main is a SINGLE grid: the toolbar spans the full row, then
   content + aside sit as the second row of that same grid. Never place a
   label/grid/aside as siblings of a 2-col grid. */
.workspace { display: flex; flex-direction: column; gap: 0.9rem; }
.workspace-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.62fr);
  gap: 1rem;
  align-items: start;
}
.workspace-toolbar { grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; }
.workspace-content { min-width: 0; }
.workspace-aside { min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

@media (max-width: 1024px) { .workspace-main { grid-template-columns: 1fr; } }

/* ————————————————— Fact lines / status ————————————————— */
.fact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.fact-lines li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; }
.fact-lines span { color: var(--fg-muted); }
.fact-lines b { color: var(--title); font-weight: 600; }
.fact-lines--dark { --fg-muted: var(--body-muted-dark); }
.fact-lines--dark span { color: var(--body-muted-dark); }
.fact-lines--dark b { color: var(--title-dark); }

.code-block, .code-textarea {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  color: var(--fg); padding: 1rem 1.1rem; overflow-x: auto;
}
.code-block { white-space: pre; }
.code-textarea { width: 100%; resize: vertical; min-height: 8rem; white-space: pre; }

.webhook-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.86rem; }
.webhook-list li { padding: 0.55rem 0.7rem; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface); }
.webhook-notice { padding: 0.7rem 0.85rem; border-radius: var(--radius-m); border: 1px solid rgba(225, 164, 59, 0.4); border-left: 3px solid var(--pending); background: rgba(225, 164, 59, 0.08); font-size: 0.86rem; margin: 0.75rem 0 0; }

/* ————————————————— Forms ————————————————— */
.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; font-size: 0.85rem; font-weight: 700; color: var(--title); }
.form-stack { display: flex; flex-direction: column; gap: 0.9rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font-family: var(--font-sans); font-weight: 400; font-size: 0.9rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--surface); color: var(--fg);
}
textarea { font-family: var(--font-mono); font-size: 0.82rem; resize: vertical; min-height: 5.5rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }

.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 400; color: var(--fg); }
.checkbox-row input[type="checkbox"], .checkbox-row input[type="radio"] { accent-color: var(--violet); width: 1rem; height: 1rem; flex-shrink: 0; }
.checkbox-row small { display: block; color: var(--fg-muted); font-weight: 400; }
.cookie-row { align-items: flex-start; margin-bottom: 0.6rem; }

/* Custom English file picker — never rely on the native "Choose File" label. */
.file-picker { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.file-picker-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-picker-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem;
  border: 1px dashed var(--border) !important; border-radius: var(--radius-s);
  color: var(--title); font-weight: 700; font-size: 0.82rem; background: var(--surface); cursor: pointer;
}
.file-picker-btn:hover { border-color: var(--violet) !important; color: var(--violet); background: transparent; }
.file-picker-name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-muted); }

.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.source-chip {
  display: block; font-size: 0.84rem; padding: 0.6rem 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); color: var(--fg); cursor: pointer;
}
.source-chip b { display: block; color: var(--title); }
.source-chip span { display: block; font-size: 0.76rem; color: var(--fg-muted); margin-top: 0.15rem; }
.source-chip input { margin-right: 0.4rem; accent-color: var(--violet); }

@media (max-width: 640px) { .source-grid { grid-template-columns: 1fr; } }

/* ————————————————— Projection Hero (home) ————————————————— */
.projection-hero { padding: calc(var(--announce-h) + 1.25rem) 0 1.5rem; position: relative; }
.projection-hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 1.75rem; align-items: start; }

.projection-rail { display: flex; flex-direction: column; gap: 0.5rem; }
.projection-rail-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; margin: 0.5rem 0; }
.projection-signals { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.projection-signals li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; border-bottom: 1px dashed var(--border-light); padding-bottom: 0.35rem; }
.projection-signals span { color: var(--fg-muted); }
.projection-signals b { color: var(--title); }

.projection-stage {
  padding: 1.1rem 1.2rem;
  background: var(--card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.projection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.projection-surfaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.6rem; }
.projection-surface {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-light);
  background: rgba(54, 118, 216, 0.05);
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.15s var(--ease-spectral);
}
.projection-surface:hover { box-shadow: var(--shadow-soft); }
.projection-surface[data-state="aligned"] { background: rgba(59, 167, 121, 0.07); border-color: rgba(59, 167, 121, 0.4); }
.projection-surface-label { display: block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--body-muted-light); margin-bottom: 0.4rem; }
.projection-surface-text { font-family: var(--font-serif); font-size: 1rem; margin: 0; color: var(--title-light); }
.projection-surface-text--aligned { color: var(--title-light); }
.projection-surface-flag {
  display: inline-block; margin-top: 0.55rem; font-family: var(--font-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.18rem 0.45rem; border-radius: 999px;
  background: rgba(217, 78, 102, 0.14); color: var(--risk); font-weight: 700;
}
.projection-surface[data-state="aligned"] .projection-surface-flag { background: rgba(59, 167, 121, 0.16); color: var(--success); }

.projection-legend { display: flex; flex-wrap: wrap; gap: 0.85rem; padding-top: 0.2rem; }

/* Scroll readout — fades in via IntersectionObserver (home.js) ahead of the
   Align To Message Source conclusion below it. */
.projection-readout { padding: 0.9rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: rgba(59, 167, 121, 0.05); opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-spectral), transform 0.5s var(--ease-spectral); }
.projection-readout.is-inview { opacity: 1; transform: translateY(0); }
.projection-readout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.6rem; }
.projection-readout-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.78rem; }
.projection-readout-list li { padding: 0.35rem 0.5rem; border-radius: var(--radius-s); background: var(--card-light); border: 1px solid var(--border-light); color: var(--body-light); }
.projection-readout-list--is-ok li { border-left: 3px solid var(--success); }
.projection-readout-list--is-warn li { border-left: 3px solid var(--risk); }

@media (max-width: 768px) { .projection-readout-grid { grid-template-columns: 1fr; } }

.projection-conclusion {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  background: rgba(214, 162, 56, 0.07);
}
.projection-conclusion .mono-label { color: var(--gold); margin-bottom: 0.5rem; }
.projection-referenced { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--body-muted-light); }
.projection-stage-footer { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--body-muted-light); border-top: 1px solid var(--border-light); padding-top: 0.6rem; }

@media (max-width: 1024px) { .projection-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .projection-surfaces { grid-template-columns: 1fr; } }

/* ————————————————— Cinema Projection Wall (Home, current) —————————————————
   Full-bleed dark banner (brand + headline + single CTA, centered — no left
   rail beside an empty stage), a full-width filmstrip of 5 surfaces with the
   Align control as its own control bar, a horizontal meter-strip readout, a
   conclusion band, and a horizontal frequency legend. Replaces the old
   rail + stage + force-strip + 3-card depth grid template. */
.projection-banner {
  --fg: var(--body-dark); --fg-muted: var(--body-muted-dark);
  --title: var(--title-dark); --surface: var(--card-dark); --border: var(--border-dark);
  position: relative;
  overflow: hidden;
  color: var(--fg);
  /* site-shell already pads for fixed .site-top — do not re-add announce height */
  padding: 2.75rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(36, 142, 130, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 65% at 88% 100%, rgba(214, 162, 56, 0.12), transparent 60%),
    linear-gradient(160deg, #191d2c 0%, var(--ink) 55%, #12151f 100%);
}
.projection-banner-band {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--teal) 0 10px, transparent 10px 14px,
    var(--violet) 14px 20px, transparent 20px 24px,
    var(--gold) 24px 27px, transparent 27px 38px);
  opacity: 0.9;
}
.projection-banner-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; }
.projection-banner-brand { justify-content: center; margin-bottom: 0.15rem; }
.projection-banner-brand h1 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.4rem); color: var(--title-dark); }
.projection-banner-kicker { color: var(--body-muted-dark); }
.projection-banner-tagline { margin: 0; color: var(--teal); }
.projection-banner-headline { margin: 0.3rem auto 0; max-width: 20ch; font-size: clamp(2.1rem, 5vw, 3.3rem); color: var(--title-dark); }
.projection-banner-sub { margin: 0 auto; max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--body-dark); }
.projection-banner-actions { margin: 0.35rem 0 0.15rem; }
.projection-banner-signals { list-style: none; margin: 0.35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 0.8rem; }
.banner-signal { display: inline-flex; align-items: baseline; gap: 0.4rem; font-size: 0.82rem; padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid var(--border-dark); background: rgba(101, 84, 217, 0.14); }
.banner-signal span { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--body-muted-dark); }
.banner-signal b { font-weight: 700; color: var(--title-dark); }

@media (max-width: 640px) { .projection-banner { padding-top: 2rem; } }

/* Filmstrip — one horizontal row of 5 surfaces, full-width control bar above. */
.projection-filmstrip { border-bottom: 1px solid var(--border-light); }
.filmstrip-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.75rem; padding-bottom: 0.85rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--violet);
}

.filmstrip-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
.filmstrip-frame {
  padding: 0.9rem 0.85rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-light);
  background: rgba(54, 118, 216, 0.05);
  cursor: pointer;
  transition: box-shadow 0.15s var(--ease-spectral), border-color 0.15s var(--ease-spectral);
}
.filmstrip-frame:hover { box-shadow: var(--shadow-soft); }
.filmstrip-frame[data-state="aligned"] { background: rgba(59, 167, 121, 0.08); border-color: rgba(59, 167, 121, 0.45); }
.filmstrip-frame[data-state="aligned"] .projection-surface-flag { background: rgba(59, 167, 121, 0.16); color: var(--success); }

.filmstrip-legend { display: flex; flex-wrap: wrap; gap: 0.85rem; padding-top: 0.85rem; }

/* Horizontal meter-strip readout — a proportional bar plus a single wrapping
   row of tagged pills. NOT a 3-column card grid twin. */
.meter-strip {
  margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-m);
  border: 1px solid var(--border-light); background: rgba(54, 118, 216, 0.05);
  /* Visible by default — .is-inview only adds a light lift, never hides content */
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--ease-spectral), transform 0.5s var(--ease-spectral);
}
.meter-strip.is-inview { opacity: 1; transform: translateY(0); }
.meter-strip-track { display: flex; gap: 2px; height: 28px; margin: 0.65rem 0 0.8rem; border-radius: var(--radius-s); overflow: hidden; }
.meter-strip-seg {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: #fff; white-space: nowrap; text-overflow: ellipsis; padding: 0 0.4rem;
}
.meter-strip-seg--ok { background: var(--success); }
.meter-strip-seg--warn { background: var(--risk); }
.meter-strip-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.meter-pill { font-size: 0.78rem; padding: 0.4rem 0.65rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--card-light); color: var(--body-light); }
.meter-pill--ok { border-left: 3px solid var(--success); }
.meter-pill--warn { border-left: 3px solid var(--risk); }

.filmstrip-footer { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--body-muted-light); border-top: 1px solid var(--border-light); padding-top: 0.7rem; margin-top: 1rem; }

@media (max-width: 1024px) { .filmstrip-row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
@media (max-width: 560px) { .filmstrip-row { grid-template-columns: 1fr; } }

/* Conclusion band — full-width finding, distinct from the filmstrip section. */
.conclusion-band { background: rgba(214, 162, 56, 0.06); border-bottom: 1px solid var(--border-light); }
.conclusion-band-inner { border-left: 3px solid var(--gold); padding-left: 1.1rem; }
.conclusion-band-inner .mono-label { display: block; color: #9A6A12; margin-bottom: 0.5rem; }
.conclusion-band-text { font-size: 1.05rem; max-width: 76ch; }
.projection-referenced { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--body-muted-light); }

/* Horizontal frequency legend — Category / Promise / Outcome / Proof /
   Boundary as one banded row. NOT a repeat of the removed 3-card depth grid:
   no card backgrounds, no shadows — a graduated band plus flush dividers. */
.frequency-legend-band {
  height: 5px; margin: 0 0 1.1rem; border-radius: 3px;
  background: repeating-linear-gradient(90deg,
    var(--violet) 0 15% , var(--blue) 15% 30%, var(--teal) 30% 50%,
    var(--gold) 50% 70%, var(--coral) 70% 100%);
  opacity: 0.85;
}
.frequency-legend-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border-light); }
.frequency-legend-item { flex: 1 1 180px; padding: 1.1rem 1.25rem 0.2rem; border-left: 1px solid var(--border-light); }
.frequency-legend-item:first-child { border-left: none; }
.frequency-legend-item b { display: block; font-size: 0.92rem; color: var(--title-light); margin-bottom: 0.35rem; }
.frequency-legend-item p { margin: 0; font-size: 0.82rem; color: var(--body-muted-light); }
.frequency-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 0.6rem; }
.frequency-legend-dot--violet { background: var(--violet); }
.frequency-legend-dot--blue { background: var(--blue); }
.frequency-legend-dot--teal { background: var(--teal); }
.frequency-legend-dot--gold { background: var(--gold); }
.frequency-legend-dot--coral { background: var(--coral); }

@media (max-width: 900px) {
  .frequency-legend-item { flex: 1 1 45%; border-left: none; border-top: 1px solid var(--border-light); }
  .frequency-legend-item:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 560px) { .frequency-legend-item { flex: 1 1 100%; } }

/* Force strip (home) — retained, unused by current home layout */
.force-strip { background: var(--ink); padding: 1.1rem 0; }
.force-strip-inner { width: var(--container-wide); margin-inline: auto; padding: 0 1rem; }
.force-strip-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--body-muted-dark); margin-bottom: 0.75rem; }
.force-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.force-strip-node { padding: 0.75rem 0.85rem; border-radius: var(--radius-m); border: 1px solid var(--border-dark); background: var(--card-dark); }
.force-strip-node b { display: block; color: var(--title-dark); font-size: 0.86rem; margin-bottom: 0.3rem; }
.force-strip-node p { margin: 0; font-size: 0.8rem; color: var(--body-dark); }

@media (max-width: 900px) { .force-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .force-strip-grid { grid-template-columns: 1fr; } }

/* Home depth section */
.home-depth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.depth-card { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.depth-card .mono-label { margin-bottom: 0.4rem; }

@media (max-width: 900px) { .home-depth-grid { grid-template-columns: 1fr; } }

/* ————————————————— Audit Wizard (Audit Messaging) ————————————————— */
.audit-step-rail { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.audit-step-tab {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700;
  padding: 0.5rem 0.8rem; border-radius: var(--radius-s); border: 1px solid var(--border);
  background: var(--surface); color: var(--fg-muted); cursor: pointer;
}
.audit-step-tab.is-active { background: var(--violet); color: #fff; border-color: var(--violet); }
.audit-step-tab.is-done { border-left: 3px solid var(--success); }
.audit-pane { display: none; }
.audit-pane.is-active { display: block; animation: fade-up 0.3s var(--ease-spectral); }

.match-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
}
.match-row-q b { display: block; color: var(--title); font-size: 0.86rem; }
.match-row-q p { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--fg-muted); }
.match-row-note { font-size: 0.8rem; color: var(--fg-muted); }
.match-row-actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.match-confidence { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; padding: 0.2rem 0.45rem; border-radius: 999px; font-weight: 700; }
.match-confidence--high { background: rgba(217, 78, 102, 0.15); color: var(--risk); }
.match-confidence--medium { background: rgba(225, 164, 59, 0.16); color: var(--pending); }
.match-row--review { border-left: 3px solid var(--pending); }
.match-row--flagged { border-left: 3px solid var(--risk); }
.match-row.is-confirmed { border-left-color: var(--success); opacity: 0.85; }
.match-row.is-dismissed { opacity: 0.5; }

.scope-checklist { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.5rem; }
.scope-summary { padding: 0.8rem 0.95rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: rgba(101, 84, 217, 0.06); margin-top: 0.6rem; }
.scope-summary .mono-label { margin-bottom: 0.35rem; }
.scope-summary p { margin: 0; font-size: 0.86rem; }

@media (max-width: 768px) { .match-row { grid-template-columns: 1fr; } .match-row-actions { justify-content: flex-start; } }

/* ————————————————— Optical Workbench (Platform) ————————————————— */
.workbench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.7rem; }
.workbench-module { padding: 0.85rem 0.9rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); transition: opacity 0.2s; }
.workbench-module-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.workbench-module p { font-size: 0.86rem; margin: 0; }

.workbench-toggle { position: relative; display: inline-flex; cursor: pointer; }
.workbench-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.workbench-toggle-track { width: 34px; height: 19px; border-radius: 999px; background: var(--border); position: relative; transition: background 0.2s; display: block; }
.workbench-toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease-spectral); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.workbench-toggle input:checked + .workbench-toggle-track { background: var(--success); }
.workbench-toggle input:checked + .workbench-toggle-track::after { transform: translateX(15px); }
.workbench-toggle input:focus-visible + .workbench-toggle-track { outline: 2px solid var(--gold); outline-offset: 2px; }

.workbench-module:has(input:not(:checked)) { opacity: 0.68; border-color: var(--risk); }
.workbench-io { list-style: none; margin: 0.6rem 0 0; padding: 0.5rem 0.6rem; display: grid; gap: 0.3rem; background: rgba(101, 84, 217, 0.05); border-radius: var(--radius-s); }
.workbench-io li { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.76rem; }
.workbench-io span { color: var(--fg-muted); font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.workbench-io b { color: var(--title); font-weight: 600; text-align: right; }
.workbench-consequence { margin: 0.6rem 0 0; padding-top: 0.55rem; border-top: 1px dashed var(--border); font-size: 0.82rem; }
.consequence-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.16rem 0.4rem; border-radius: var(--radius-s); font-weight: 700; margin-right: 0.35rem;
  background: rgba(217, 78, 102, 0.14); color: var(--risk);
}

.workbench-output { margin-top: 0.9rem; padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: rgba(101, 84, 217, 0.05); }
.workbench-output-text { font-family: var(--font-serif); font-size: 1.1rem; color: var(--title); margin: 0.5rem 0 0.75rem; }

@media (max-width: 560px) { .workbench-grid { grid-template-columns: 1fr; } }

/* ————————————————— Statement Chamber (Message Source) ————————————————— */
.statement-chamber { display: flex; flex-direction: column; gap: 0.9rem; }
.chamber-stage { padding: 1.1rem 1.2rem; border-radius: var(--radius-l); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.chamber-sentence { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.5; margin: 0.5rem 0 0.75rem; color: var(--title-light); }
.chamber-phrase { cursor: pointer; border-bottom: 2px dashed var(--violet); padding: 0 0.1rem; border-radius: 2px; transition: background 0.15s; }
.chamber-phrase:hover, .chamber-phrase:focus-visible { background: rgba(101, 84, 217, 0.12); }
.chamber-phrase.is-active { background: rgba(101, 84, 217, 0.16); border-bottom-color: var(--gold); }
.chamber-phrase--unevidenced { opacity: 0.55; border-bottom-style: dotted; }
.chamber-phrase--unevidenced.is-active { opacity: 0.85; }
.chamber-hint-inline { margin: 0; font-size: 0.86rem; color: var(--body-muted-light); }
.unevidenced-flag { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--risk); font-weight: 700; }

.chamber-detail { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: rgba(36, 142, 130, 0.05); }
.chamber-detail-panel .mono-label { margin-bottom: 0.4rem; }
.chamber-detail-value { font-family: var(--font-serif); font-size: 1.05rem; color: var(--title-light); margin: 0 0 0.6rem; }

.chamber-boundary { padding: 0.9rem 1rem; border-radius: var(--radius-m); border: 1px solid rgba(217, 78, 102, 0.35); border-left: 3px solid var(--risk); background: rgba(217, 78, 102, 0.06); }
.boundary-alert-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.boundary-alert-list li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.84rem; }
.boundary-alert-list b { color: var(--risk); }
.boundary-alert-list span { color: var(--fg-muted); }

/* ————————————————— Silhouette Stage / Audience Refraction ————————————————— */
.silhouette-stage { display: grid; grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.1fr); gap: 1.1rem; align-items: start; }
.silhouette-rail { display: flex; flex-direction: column; gap: 0.55rem; }
.silhouette {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem; border-radius: var(--radius-m); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: left; font-family: var(--font-sans);
}
.silhouette b { display: block; font-size: 0.85rem; color: var(--title); }
.silhouette span { display: block; font-size: 0.72rem; color: var(--fg-muted); }
.silhouette.is-active { box-shadow: 0 0 0 2px var(--violet) inset; border-color: var(--violet); }
.silhouette-figure {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(160deg, var(--violet), var(--blue));
  position: relative;
}
.silhouette-figure::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 26px; height: 15px; border-radius: 13px 13px 0 0;
  background: linear-gradient(160deg, var(--violet), var(--blue));
}

.refraction-display { min-height: 12rem; }
.refraction-panel { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: rgba(233, 102, 74, 0.05); }
.refraction-promise { font-family: var(--font-serif); font-size: 1.1rem; color: var(--title); margin: 0.5rem 0 0.75rem; }

.refraction-summary { margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px dashed var(--border); display: grid; gap: 0.4rem; }
.refraction-summary-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; padding: 0.4rem 0.55rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border); }
.refraction-summary-row span { color: var(--fg-muted); font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.refraction-summary-row b { color: var(--title); font-weight: 600; text-align: right; }
.refraction-summary-row--deleted { opacity: 0.7; }
.refraction-summary-row--emphasized { border-left: 3px solid var(--gold); }
.refraction-summary-row--immutable { border-left: 3px solid var(--violet); background: rgba(101, 84, 217, 0.07); }

@media (max-width: 900px) { .silhouette-stage { grid-template-columns: 1fr; } .silhouette-rail { flex-direction: row; flex-wrap: wrap; } .silhouette { flex: 1 1 220px; } }

/* ————————————————— Typo Sequencer (Slogan Studio) ————————————————— */
.typo-sequencer { display: flex; flex-direction: column; gap: 0.85rem; }
.sequencer-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sequencer-tab {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-s); border: 1px solid var(--border);
  background: var(--surface); color: var(--fg-muted); cursor: pointer;
}
.sequencer-tab.is-active { background: var(--violet); color: #fff; border-color: var(--violet); }

.sequencer-panel { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); }
.sequencer-type { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: var(--title); margin: 0 0 1rem; }

.sequencer-metrics { display: flex; flex-direction: column; gap: 0.55rem; }
.metric-meter { display: grid; grid-template-columns: 130px 1fr 42px; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.metric-meter span { color: var(--fg-muted); }
.metric-meter-track { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; }
.metric-meter-fill { height: 100%; border-radius: 4px; background: var(--teal); }
.metric-meter-fill[data-drift-flag="true"] { background: var(--risk); }
.metric-meter b { text-align: right; color: var(--title); font-family: var(--font-mono); font-size: 0.78rem; }

.sequencer-legend { margin-top: 0.5rem; }
.sequencer-facts-toggle { display: inline-block; margin-top: 0.85rem; font-size: 0.8rem; }
.sequencer-facts { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }

/* Rhythm track — Slogan Studio's word-level Category/Action/Outcome/Contrast/
   Proof Signal sequencer. Distinct from the variant tabs below it. */
.rhythm-track-block { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.rhythm-track { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.track-word { display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.55rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--surface); transition: box-shadow 0.2s, border-color 0.2s; }
.track-word.is-emphasized { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(214, 162, 56, 0.25) inset; }
.track-word-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 0 0.15rem; }
.track-word-text { font-size: 0.86rem; color: var(--title-light); white-space: nowrap; }
.track-word-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.1rem 0.35rem; border-radius: 999px; font-weight: 700; }
.track-word-tag--category { background: rgba(101, 84, 217, 0.16); color: var(--violet); }
.track-word-tag--action { background: rgba(54, 118, 216, 0.16); color: var(--blue); }
.track-word-tag--outcome { background: rgba(59, 167, 121, 0.16); color: var(--success); }
.track-word-tag--contrast { background: rgba(233, 102, 74, 0.16); color: var(--coral); }
.track-word-tag--proof { background: rgba(214, 162, 56, 0.2); color: #9A6A12; }
.track-word-move, .track-word-emphasis { border: 1px solid var(--border-light); background: var(--card-light); color: var(--fg-muted); border-radius: var(--radius-s); cursor: pointer; font-size: 0.75rem; padding: 0.2rem 0.4rem; line-height: 1; }
.track-word-move:hover, .track-word-emphasis:hover { border-color: var(--violet); color: var(--violet); }
.track-word-emphasis { font-family: var(--font-sans); font-weight: 700; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.03em; }
.track-word.is-emphasized .track-word-emphasis { background: var(--gold); border-color: var(--gold); color: #3A2A05; }

@media (max-width: 640px) { .track-word-text { white-space: normal; } }

/* ————————————————— Claim Beam Workspace (Claim Governance) ————————————————— */
.claim-beam-workspace { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; }
.claim-pillar-rail { display: flex; flex-direction: column; gap: 0.5rem; }
.claim-pillar { padding: 0.65rem 0.8rem; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface); transition: box-shadow 0.2s, border-color 0.2s; }
.claim-pillar p { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--fg-muted); }
.claim-pillar.is-flagged { border-color: var(--risk); box-shadow: 0 0 0 1px var(--risk) inset; }

.claim-beam-main { display: flex; flex-direction: column; gap: 0.75rem; }
.claim-beam-display { position: relative; }
.claim-beam-run { display: none; flex-direction: column; gap: 0.75rem; }
.claim-beam-run.is-active { display: flex; animation: fade-up 0.25s var(--ease-spectral); }
.claim-beam-text { font-family: var(--font-serif); font-size: 1.15rem; color: var(--title); margin: 0; }
.claim-beam { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.beam-stage {
  flex: 1 1 100px; text-align: center; padding: 0.5rem 0.4rem; border-radius: var(--radius-s);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg-muted);
}
.beam-stage--clear { background: rgba(59, 167, 121, 0.14); color: var(--success); border-color: rgba(59, 167, 121, 0.4); }
.beam-stage--warn { background: rgba(225, 164, 59, 0.18); color: #9A6A12; border-color: rgba(225, 164, 59, 0.55); }
.beam-stage--break { background: rgba(217, 78, 102, 0.14); color: var(--risk); border-color: rgba(217, 78, 102, 0.4); }
.claim-beam-note { margin: 0; font-size: 0.86rem; }

.claim-repair-actions { margin-top: 0.7rem; padding-top: 0.65rem; border-top: 1px dashed var(--border); }
.claim-repair-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

@media (max-width: 900px) { .claim-beam-workspace { grid-template-columns: 1fr; } }

/* ————————————————— Format Transformation Stage (Channel Adaptation) —————
   Center source statement, a format selector row, the card grid, and an
   ALWAYS-visible side panel with per-format requirements + priority order.
   .format-stage-layout naming below covers the center+formats+side shape. */
.format-transform-stage { display: flex; flex-direction: column; gap: 1rem; }
.format-transform-source { padding: 1rem 1.15rem; border-radius: var(--radius-l); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); text-align: center; }
.format-transform-source-text { font-family: var(--font-serif); font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--title-light); margin: 0.5rem auto 0; max-width: 60ch; }

.format-transform-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr); gap: 1rem; align-items: start; }
.format-transform-main { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }

.format-select-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.format-select-btn { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; padding: 0.45rem 0.75rem; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface); color: var(--fg-muted); cursor: pointer; }
.format-select-btn.is-active { background: var(--violet); color: #fff; border-color: var(--violet); }

.format-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.format-card { padding: 0.9rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.format-card.is-selected { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet) inset; }
.format-card .mono-label { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.format-rule { font-size: 0.78rem; color: var(--fg-muted); margin: 0.3rem 0 0.6rem; }
.format-rendered { font-family: var(--font-serif); font-size: 1rem; color: var(--title); margin: 0 0 0.75rem; min-height: 2.6rem; }
.format-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.78rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.format-meta span { color: var(--fg-muted); margin-right: 0.2rem; }
.format-meta b { color: var(--title); font-family: var(--font-mono); }
.format-meta b.is-warn { color: var(--risk); }

.format-approval { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.12rem 0.4rem; border-radius: 999px; font-weight: 700; }
.format-approval--approved { background: rgba(59, 167, 121, 0.16); color: var(--success); }
.format-approval--pending { background: rgba(225, 164, 59, 0.18); color: #9A6A12; }

.format-side-panel { position: sticky; top: calc(var(--site-top-h) + 0.75rem); padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 0.85rem; }
.format-priority-block { padding-top: 0.65rem; border-top: 1px dashed var(--border-light); }
.format-priority-list { margin: 0.5rem 0 0; padding-left: 1.2em; display: grid; gap: 0.3rem; font-size: 0.84rem; color: var(--title-light); }

@media (max-width: 1024px) { .format-transform-body { grid-template-columns: 1fr; } .format-side-panel { position: static; } }

/* ————————————————— Recall Room (Message Testing) ————————————————— */
.recall-room { display: flex; flex-direction: column; gap: 0.9rem; }
.recall-stage { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px dashed var(--border); background: rgba(214, 162, 56, 0.06); text-align: center; }
.recall-stage-text { font-family: var(--font-serif); font-size: 1.2rem; color: var(--title); margin: 0.4rem 0 0.85rem; }
.recall-stage-text.is-flashing { animation: flash-pulse 0.55s var(--ease-spectral) 2; }

.recall-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.recall-question { padding: 0.9rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); }
.recall-target { font-size: 0.84rem; color: var(--fg-muted); margin: 0.3rem 0 0.65rem; }
.recall-responses { list-style: none; margin: 0.65rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.8rem; color: var(--fg-muted); }
.recall-responses li { padding: 0.4rem 0.55rem; border-radius: var(--radius-s); background: rgba(101, 84, 217, 0.05); }

/* Recall inputs — typed-from-memory fields revealed after the 5s flash. */
.recall-input-room { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); }
.recall-input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin: 0.65rem 0 0.85rem; }
.recall-input-field input { font-size: 0.86rem; }

/* Launch Recall Test — shareable link, audience, sample size, A/B versions. */
.recall-launch { padding: 1rem 1.1rem; border-radius: var(--radius-l); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.recall-launch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 0.65rem 0 0.85rem; }

.recall-compare { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px dashed var(--border-light); }
.recall-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.65rem; }
.recall-compare-card { padding: 0.85rem 0.95rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--surface); }
.recall-compare-text { font-family: var(--font-serif); font-size: 0.95rem; color: var(--title-light); margin: 0.4rem 0 0.65rem; }

@media (max-width: 640px) { .recall-compare-grid { grid-template-columns: 1fr; } }

/* ————————————————— Offset Timeline (Message Drift) ————————————————— */
.offset-timeline { display: flex; flex-direction: column; gap: 0.75rem; }
.offset-header { display: grid; grid-template-columns: 160px 1fr; gap: 0.75rem; align-items: center; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light); }
.offset-version-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.offset-version-tag { text-align: center; font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-muted); text-transform: uppercase; }

.offset-tracks { display: flex; flex-direction: column; gap: 0.5rem; }
.offset-track { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 0.75rem; }
.offset-track-label { font-size: 0.85rem; font-weight: 700; color: var(--title); }
.offset-track-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }

.offset-node {
  display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 2.4rem; padding: 0.4rem; border-radius: var(--radius-s);
  border: 1px solid var(--border-light); background: var(--card-light); cursor: pointer;
  transition: transform 0.15s var(--ease-spectral);
}
.offset-node:hover { transform: translateY(-1px); }
.offset-node b { font-size: 0.76rem; font-weight: 700; color: var(--title-light); }
.offset-node.is-active { box-shadow: 0 0 0 2px var(--violet) inset; }
.offset-node--aligned { border-left: 4px solid var(--success); }
.offset-node--offset { border-left: 4px solid var(--risk); background: rgba(217, 78, 102, 0.08); }
.offset-node--ghost { border-left: 4px solid var(--pending); background: repeating-linear-gradient(45deg, rgba(225, 164, 59, 0.16) 0 6px, rgba(225, 164, 59, 0.06) 6px 12px); }
.offset-node--absent { border-left: 4px solid var(--border-light); opacity: 0.5; }
.offset-ghost { position: absolute; inset: 2px; border: 1px dashed var(--pending); border-radius: var(--radius-s); pointer-events: none; }

.offset-legend { display: flex; flex-wrap: wrap; gap: 0.85rem; padding-top: 0.4rem; }

/* Node detail panel — filled from a clicked/focused .offset-node's data-*. */
.offset-detail { padding: 0.9rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); border-left: 3px solid var(--violet); background: rgba(101, 84, 217, 0.06); }

/* Start Drift Monitor — sources, owner, notification threshold. */
.drift-monitor-setup { padding: 1rem 1.1rem; border-radius: var(--radius-l); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.drift-monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; margin: 0.65rem 0 0.9rem; }
.checkbox-row-group { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.3rem; }

@media (max-width: 768px) {
  .offset-header, .offset-track { grid-template-columns: 1fr; }
  .offset-track-nodes, .offset-version-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ————————————————— Schema Console (Developers) ————————————————— */
.schema-console { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.schema-col { display: flex; flex-direction: column; gap: 0.6rem; }

.schema-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.schema-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--border); }
.schema-check-icon { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.schema-check--pass .schema-check-icon { background: var(--success); }
.schema-check--warn .schema-check-icon { background: var(--pending); }

.schema-render-list { display: flex; flex-direction: column; gap: 0.5rem; }
.schema-render-card { padding: 0.7rem 0.85rem; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface); font-size: 0.86rem; transition: border-color 0.2s; }
.schema-render-card p { margin: 0.3rem 0 0; }
.schema-render-card.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.schema-render-card.is-blocked { border-color: var(--risk); background: rgba(217, 78, 102, 0.08); }
.schema-render-card.is-blocked p { color: var(--risk); }

.schema-integrations { margin-top: 0.5rem; }
.schema-integration-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.schema-integration-chip { display: flex; flex-direction: column; gap: 0.15rem; font-family: var(--font-mono); font-size: 0.72rem; padding: 0.35rem 0.6rem; border-radius: var(--radius-s); border: 1px solid var(--border-light); background: var(--card-light); color: var(--body-light); }
.schema-integration-chip span { color: var(--body-muted-light); font-size: 0.68rem; }

@media (max-width: 900px) { .schema-console { grid-template-columns: 1fr; } }

/* ————————————————— Inventory Sheet (Pricing) ————————————————— */
.inventory-sheet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.1rem; align-items: start; margin-bottom: 1.1rem; }
.inventory-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.6rem; }
.inventory-fields input { max-width: 8rem; }
.inventory-counts { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.inventory-count-list { margin-top: 0.5rem; }
.inventory-note { font-size: 0.8rem; color: var(--body-muted-light); margin: 0.65rem 0 0; }

.plan-recommendation {
  padding: 1.1rem 1.2rem; border-radius: var(--radius-l); border: 1px solid var(--border-light);
  background: var(--card-light); box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem;
}
.plan-summary .mono-label { margin-bottom: 0.35rem; }
.plan-price { font-family: var(--font-serif); font-size: 2rem; color: var(--title-light); margin: 0 0 0.6rem; }
.plan-price span { font-family: var(--font-sans); font-size: 0.85rem; color: var(--body-muted-light); font-weight: 600; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.85rem; }
.plan-feats li { padding-left: 1.1rem; position: relative; }
.plan-feats li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan-quotas { display: grid; gap: 0.85rem; align-content: start; }
.plan-trial-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ladder-note { font-size: 0.78rem; color: var(--body-muted-light); margin: 0; }

@media (max-width: 1024px) { .inventory-sheet, .plan-recommendation { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .inventory-fields { grid-template-columns: 1fr; } }

/* ————————————————— About ————————————————— */
.about-spectral-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 1.75rem; align-items: start; }
.mission-sentence { padding: 0.75rem 0.95rem; border-left: 3px solid var(--gold); background: rgba(214, 162, 56, 0.08); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.about-keywords { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.about-keywords li { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--card-light); color: var(--body-muted-light); }

.force-map-grid { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.force-map-node { padding: 0.7rem 0.85rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); }
.force-map-node b { display: block; color: var(--title-light); font-size: 0.84rem; margin-bottom: 0.25rem; }
.force-map-node p { margin: 0; font-size: 0.8rem; color: var(--body-muted-light); }

.spectral-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.spectral-band-node { padding: 0.85rem 0.95rem; border-top: 3px solid var(--violet); background: var(--card-light); border-radius: 0 0 var(--radius-m) var(--radius-m); box-shadow: var(--shadow-soft); }
.spectral-band-node h3 { margin: 0.4rem 0 0.4rem; font-size: 1.05rem; }
.spectral-band-node p { margin: 0; font-size: 0.84rem; color: var(--body-light); }

.about-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.about-model-card { padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }
.about-model-card ul { margin: 0.5rem 0 0; padding-left: 1.2em; font-size: 0.86rem; }
.source-object-list { list-style: none; padding-left: 0 !important; display: grid; gap: 0.45rem; }
.source-object-list li {
  padding: 0.45rem 0.65rem; border-left: 3px solid var(--violet);
  background: rgba(101, 84, 217, 0.06); font-size: 0.84rem; color: var(--fg);
}
.about-not-note { font-size: 0.82rem; color: var(--body-muted-light); margin-top: 0.5rem; }

@media (max-width: 1024px) { .about-spectral-grid { grid-template-columns: 1fr; } .spectral-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-model-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .spectral-band { grid-template-columns: 1fr; } }

/* ————————————————— Security ————————————————— */
.boundary-groups { display: flex; flex-direction: column; gap: 1.25rem; }
.boundary-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.6rem; }
.boundary-card { padding: 0.85rem 0.95rem; border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); }
.boundary-card b { display: block; color: var(--title); font-size: 0.86rem; margin-bottom: 0.3rem; }
.boundary-card p { margin: 0; font-size: 0.84rem; color: var(--fg-muted); }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.86rem; }

@media (max-width: 768px) { .boundary-card-grid { grid-template-columns: 1fr; } }

/* ————————————————— Integrations ————————————————— */
.integrations-list { display: flex; flex-direction: column; gap: 0.6rem; }
.hub-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); }
.hub-row span { color: var(--body-muted-light); font-size: 0.84rem; }
.hub-row small { color: var(--body-muted-light); font-family: var(--font-mono); font-size: 0.72rem; }

@media (max-width: 768px) { .hub-row { grid-template-columns: 1fr; } }

/* ————————————————— Contact ————————————————— */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 1.75rem; align-items: start; }
.contact-form { max-width: 46ch; }
.contact-aside { padding: 1rem 1.1rem; border-radius: var(--radius-l); border: 1px solid var(--border-light); background: var(--card-light); box-shadow: var(--shadow-soft); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ————————————————— Help / changelog / status boilerplate ————————————————— */
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.help-list li a { display: block; padding: 0.8rem 1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); color: var(--title-light); text-decoration: none; font-weight: 600; }
.help-list li a:hover { border-color: var(--violet); color: var(--violet); }

.changelog { display: flex; flex-direction: column; gap: 1.1rem; }
.changelog article { padding-left: 1.1rem; border-left: 2px solid var(--border-light); }
.changelog time { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--body-muted-light); }
.changelog h3 { margin: 0.3rem 0 0.35rem; font-size: 1.05rem; }
.changelog p { margin: 0; }

.status-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.status-list i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.55rem; background: var(--border); }
.status-list i.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(59, 167, 121, 0.2); }

.legal-body { max-width: 68ch; color: var(--fg); }
.cookie-settings-panel { max-width: 46ch; margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 1px solid var(--border-light); background: var(--card-light); }

/* ————————————————— Footer ————————————————— */
.site-footer {
  --fg: var(--body-dark); --fg-muted: var(--body-muted-dark);
  --title: var(--title-dark); --surface: var(--card-dark); --border: var(--border-dark);
  background: var(--ink);
  color: var(--fg);
  padding-top: 2rem;
}

.footer-grid { width: var(--container-wide); margin-inline: auto; padding: 0 1rem 1.75rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer-col h4 { color: var(--title); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; font-family: var(--font-sans); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--fg); text-decoration: none; font-size: 0.86rem; }
/* Dark surface: override the global a:hover { color: var(--ink) } which would
   otherwise print black ink on Spectrum Black. Footer links go gold instead. */
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold); }

.footer-bar { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.footer-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.footer-bar-inner > span { font-size: 0.8rem; color: var(--fg-muted); }
.footer-tagline { flex: 1 1 320px; font-size: 0.8rem; color: var(--fg-muted); margin: 0; max-width: 56ch; }
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal a { color: var(--fg-muted); text-decoration: none; font-size: 0.8rem; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--gold); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ————————————————— Sign-in — Spectrum shell ————————————————— */
.auth-body { margin: 0; background: var(--paper); }
.auth-shell { min-height: 100dvh; display: grid; }
.auth-shell--spectrum { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }

.auth-frequency-track {
  --fg: var(--body-dark); --fg-muted: var(--body-muted-dark); --title: var(--title-dark);
  padding: clamp(2rem, 6vw, 4rem);
  display: flex; flex-direction: column; justify-content: center; gap: 0.85rem;
  background: linear-gradient(150deg, #191d2c 0%, var(--ink) 60%, #12151f 100%);
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.auth-frequency-track::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(101, 84, 217, 0.14) 42px 43px),
    repeating-linear-gradient(90deg, transparent 0 240px, rgba(214, 162, 56, 0.1) 240px 241px);
  pointer-events: none;
}
.auth-brand {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; margin-bottom: 0.4rem;
}
.auth-brand--light { color: #F7F6F2; }
.auth-brand--light .brand-name { font-size: 1.1rem; color: inherit; }
.auth-brand--light .logo-mark { color: #F7F6F2; }
/* Dark strip: override global a:hover { color: var(--ink) } (black-on-navy bug). */
.auth-frequency-track a:hover, .auth-frequency-track a:focus-visible { color: #F7F6F2; }
.auth-frequency-track .auth-brand--light:hover,
.auth-frequency-track .auth-brand--light:focus-visible,
.auth-frequency-track .auth-brand--light:hover .brand-name,
.auth-frequency-track .auth-brand--light:focus-visible .brand-name { color: var(--gold); }

.auth-frequency-kicker { position: relative; z-index: 1; color: var(--body-muted-dark); }
.auth-frequency-title { position: relative; z-index: 1; color: var(--title-dark); font-size: clamp(1.4rem, 2.8vw, 1.85rem); }
.auth-frequency-lead { position: relative; z-index: 1; color: var(--body-dark); max-width: 46ch; }

.spectrum-frequencies { position: relative; z-index: 1; display: grid; gap: 0.4rem; margin-top: 0.3rem; }
.spectrum-frequency { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: baseline; padding: 0.4rem 0.6rem; border-radius: var(--radius-s); border: 1px solid var(--border-dark); background: rgba(32, 37, 54, 0.75); }
.spectrum-frequency span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--gold); grid-row: 1 / 3; align-self: center; }
.spectrum-frequency b { font-size: 0.82rem; color: var(--title-dark); }
.spectrum-frequency em { font-style: normal; font-size: 0.74rem; color: var(--body-muted-dark); grid-column: 2; }

.auth-frequency-outcome { position: relative; z-index: 1; margin-top: 0.6rem; padding-top: 0.85rem; border-top: 1px solid var(--border-dark); }

.auth-form-pane { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 4rem); }
.auth-form-pane--paper { background: var(--paper); }
.auth-form-inner { max-width: 380px; width: 100%; margin-inline: auto; }
.auth-form-inner h2 { font-size: 1.55rem; }
.form-stack--underline input {
  border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 0.5rem 0.1rem;
}
.auth-submit { width: 100%; margin-top: 0.3rem; }
.auth-alt { font-size: 0.85rem; color: var(--body-muted-light); margin-top: 0.9rem; }
.auth-alt--secondary { font-size: 0.8rem; }
.auth-alt a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-alt a:hover, .auth-alt a:focus-visible { color: #2A5CAE; text-decoration: underline; text-underline-offset: 0.18em; }
.auth-form-pane--paper .btn-primary:hover { color: #fff; }
.auth-foot { margin-top: 1.5rem; font-size: 0.74rem; color: var(--body-muted-light); }

@media (max-width: 900px) { .auth-shell--spectrum { grid-template-columns: 1fr; } }

/* ————————————————— Responsive: nav/header ————————————————— */
@media (max-width: 1024px) {
  .nav-main { display: none; }
  .header-inner { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-sm, .header-signin { display: none; }
}
