/* ============================================================
   CANDIDATE B SHELL — dark Discord-dominant overrides
   Load AFTER site/css/cinematic-v2.css (+ investor-layer.css)
   Scope: body.candidate-b on the cinematic homepage
   ------------------------------------------------------------
   Mission Control shell: dark gray/black, rocket-ops red accent.
   Discord simulation is the dominant proof object; marketing chrome
   stays quieter. Investor mode = Covert Field Manual density.
   Visibility rule inherited: nothing hidden without JS consent.
   ============================================================ */

/* ---- TOKEN REMAP (cream → ops console) -------------------- */
body.candidate-b {
  color-scheme: dark;

  --bg:           #09090b;
  --surface:      #141416;
  --fg:           #f4f4f5;
  --fg-alt:       #e4e4e7;
  --muted:        #a1a1aa;
  --border:       #3f3f46;
  --accent:       #e11d48;
  --accent-gold:  #fb7185;
  --walnut:       #71717a;
  --accent-hover: #be123c;

  --glass-bg:     rgba(12, 12, 14, 0.82);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur:   blur(16px) saturate(120%);

  /* Shell-specific aliases */
  --cb-shell:         #09090b;
  --cb-panel:         #18181b;
  --cb-panel-raised:  #1f1f23;
  --cb-line:          rgba(255, 255, 255, 0.1);
  --cb-line-strong:   rgba(255, 255, 255, 0.16);
  --cb-red:           #e11d48;
  --cb-red-glow:      #f43f5e;
  --cb-gray:          #a1a1aa;
  --cb-gray-dim:      #52525b;
  --cb-canvas-radius: 26px;
  --cb-canvas-bg:     #0b0c0e;
  --cb-discord-blurple: #5865f2;

  /* SVG layer tokens — keep figures readable on dark shell */
  --svg-cream:   #18181b;
  --svg-surface: #27272a;
  --svg-ochre:   #e11d48;
  --svg-walnut:  #d4d4d8;
  --svg-gold:    #fb7185;
  --svg-ink:     #fafafa;
  --svg-muted:   #a1a1aa;
  --svg-line:    rgba(255, 255, 255, 0.14);
}

/* ---- GLOBAL SHELL ----------------------------------------- */
body.candidate-b {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225, 29, 72, 0.14), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 72px),
    var(--cb-shell);
  color: var(--fg);
  overflow-x: hidden;
}

body.candidate-b::before {
  opacity: 0.035;
  mix-blend-mode: soft-light;
}

/* ---- PROGRESS BAR (red, not ochre) ------------------------ */
body.candidate-b .pipeline-progress {
  background: color-mix(in srgb, var(--cb-gray-dim) 55%, transparent);
}

body.candidate-b .pipeline-progress__fill {
  background: linear-gradient(90deg, var(--cb-red), var(--cb-red-glow));
  box-shadow: 0 0 12px color-mix(in srgb, var(--cb-red) 65%, transparent);
}

body.candidate-b .pipeline-progress__tick {
  border-left-color: color-mix(in srgb, var(--cb-gray-dim) 70%, transparent);
}

body.candidate-b .pipeline-progress__tick::after {
  color: color-mix(in srgb, var(--cb-gray) 70%, transparent);
}

body.candidate-b .pipeline-progress__tick.is-active::after {
  color: var(--cb-red-glow);
}

/* ---- HEADER — dark glass, Discord nav density ------------- */
body.candidate-b .cine-header {
  background: color-mix(in srgb, var(--cb-shell) 78%, transparent);
  border-bottom-color: var(--cb-line);
  height: 56px;
}

body.candidate-b .cine-header.is-condensed {
  background: color-mix(in srgb, var(--cb-shell) 94%, transparent);
  border-bottom-color: var(--cb-line-strong);
}

body.candidate-b .cine-logo {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.candidate-b .cine-logo span {
  color: var(--cb-red-glow);
}

body.candidate-b .cine-nav {
  gap: clamp(0.5rem, 1.6vw, 1.1rem);
}

body.candidate-b .cine-nav__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-gray);
}

body.candidate-b .cine-nav__link:hover {
  color: var(--fg);
}

body.candidate-b .cine-nav__cta {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--cb-red) 88%, #000);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(225, 29, 72, 0.28);
}

body.candidate-b .cine-nav__cta:hover {
  background: var(--cb-red);
}

/* ---- ACT TONALITY — quiet marketing, loud Discord -------- */
body.candidate-b .act--hero,
body.candidate-b .act--board,
body.candidate-b .act--pipeline,
body.candidate-b .act--sop,
body.candidate-b .act--studio {
  background: var(--cb-shell);
  color: var(--fg);
}

body.candidate-b .act--discord {
  background:
    radial-gradient(ellipse 90% 60% at 50% 40%, rgba(225, 29, 72, 0.08), transparent 70%),
    #050506;
  color: var(--fg);
}

body.candidate-b .act--cta {
  background: linear-gradient(180deg, #0c0c0e 0%, var(--cb-shell) 100%);
  color: var(--fg);
}

/* Subdue narrative chrome outside the Discord proof act */
body.candidate-b .act--hero .act-headline,
body.candidate-b .act--board .act-headline,
body.candidate-b .act--pipeline .act-headline,
body.candidate-b .act--sop .act-eyebrow,
body.candidate-b .act--studio .act-headline {
  opacity: 0.92;
}

body.candidate-b .act--hero .act-lead,
body.candidate-b .act--board .act-lead,
body.candidate-b .act--pipeline .act-lead,
body.candidate-b .act--studio .act-lead {
  color: var(--cb-gray);
  max-width: 48ch;
}

body.candidate-b .act-eyebrow {
  color: var(--cb-red-glow);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

body.candidate-b .act-headline em {
  color: var(--cb-red-glow);
  font-style: normal;
  font-weight: 600;
}

body.candidate-b .act--discord .act-headline {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  max-width: 22ch;
}

body.candidate-b .act--discord .act-lead {
  color: color-mix(in srgb, var(--fg) 72%, transparent);
  max-width: 52ch;
}

body.candidate-b .act--discord .act-stage {
  gap: clamp(1rem, 3vh, 2rem);
}

body.candidate-b .act--discord .act-layer--bg {
  max-width: 720px;
}

body.candidate-b .act--discord .act-layer--fore {
  width: min(100%, 1120px);
  margin-inline: auto;
}

/* Whisper optional SVG overlays so Discord canvas dominates */
body.candidate-b #svg-act3.svg-mount:not(:empty) {
  opacity: 0.35;
  mix-blend-mode: screen;
}

body.candidate-b #svg-hero svg-mount:not(:empty),
body.candidate-b #svg-command-board:not(:empty) {
  opacity: 0.55;
}

/* ---- FLOATING DISCORD CANVAS ------------------------------ */
body.candidate-b .alloy-discord-canvas {
  position: relative;
  width: min(100%, 1080px);
  margin-inline: auto;
  border-radius: var(--cb-canvas-radius);
  overflow: hidden;
  background: var(--cb-canvas-bg);
  border: 1px solid var(--cb-line-strong);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

body.candidate-b .alloy-discord-canvas__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a1b1f 0%, #121316 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.candidate-b .alloy-discord-canvas__lights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

body.candidate-b .alloy-discord-canvas__lights::before,
body.candidate-b .alloy-discord-canvas__lights::after,
body.candidate-b .alloy-discord-canvas__light {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.candidate-b .alloy-discord-canvas__lights::before {
  background: #52525b;
}

body.candidate-b .alloy-discord-canvas__lights::after {
  background: #27272a;
}

body.candidate-b .alloy-discord-canvas__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.candidate-b .alloy-discord-canvas__title::before {
  content: "◆ ";
  color: var(--cb-red-glow);
  opacity: 0.85;
}

body.candidate-b .alloy-discord-canvas__stage {
  position: relative;
  min-height: clamp(420px, 62vh, 680px);
  background: var(--cb-canvas-bg);
}

body.candidate-b .alloy-discord-canvas__stage .mount,
body.candidate-b .alloy-discord-canvas__stage #act1-discord-mount {
  min-height: inherit;
}

body.candidate-b .alloy-discord-canvas__stage .ds-app {
  min-height: inherit;
  height: 100%;
}

body.candidate-b .alloy-discord-canvas__xray {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0e0f11;
}

/* Bare mount fallback when canvas wrapper not yet applied */
body.candidate-b #act1-discord-mount.mount:not(.alloy-discord-canvas *) {
  border-radius: var(--cb-canvas-radius);
  overflow: hidden;
  border: 1px solid var(--cb-line-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  background: var(--cb-canvas-bg);
  min-height: clamp(420px, 62vh, 680px);
}

body.candidate-b .mount:empty {
  border-color: color-mix(in srgb, var(--cb-gray-dim) 55%, transparent);
  background: color-mix(in srgb, var(--cb-panel) 80%, transparent);
}

body.candidate-b .mount:empty::after {
  color: color-mix(in srgb, var(--cb-gray) 75%, transparent);
}

/* ---- AGENT ACTION BAR (Discord-like grouped CTAs) --------- */
body.candidate-b .agent-action-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px;
  border-radius: 10px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.candidate-b .agent-action-bar__btn,
body.candidate-b .agent-action-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.candidate-b .agent-action-bar__btn--secondary,
body.candidate-b .agent-action-bar a:not([class*="--primary"]) {
  color: var(--fg);
  background: #2b2d31;
}

body.candidate-b .agent-action-bar__btn--secondary:hover,
body.candidate-b .agent-action-bar a:not([class*="--primary"]):hover {
  background: #35373c;
}

body.candidate-b .agent-action-bar__btn--primary,
body.candidate-b .agent-action-bar a.agent-action-bar__btn--primary,
body.candidate-b .agent-action-bar a[class*="--primary"] {
  color: #fff;
  background: var(--cb-discord-blurple);
}

body.candidate-b .agent-action-bar__btn--primary:hover,
body.candidate-b .agent-action-bar a.agent-action-bar__btn--primary:hover,
body.candidate-b .agent-action-bar a[class*="--primary"]:hover {
  background: color-mix(in srgb, var(--cb-discord-blurple) 88%, #fff);
}

body.candidate-b .agent-action-bar__btn--danger,
body.candidate-b .agent-action-bar a.agent-action-bar__btn--danger {
  color: #fff;
  background: var(--cb-red);
}

body.candidate-b .agent-action-bar__btn:focus-visible,
body.candidate-b .agent-action-bar a:focus-visible {
  outline: 2px solid var(--cb-red-glow);
  outline-offset: 2px;
}

body.candidate-b .agent-action-bar__btn svg,
body.candidate-b .agent-action-bar a svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* CTA act: prefer action bar over floating pill */
body.candidate-b .act--cta .cine-nav__cta:not(.agent-action-bar *) {
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  background: var(--cb-discord-blurple);
}

/* ---- ACT 4 — TERRACE LAYER (x-ray embed chips) ------------ */
body.candidate-b .act--pipeline .terrace-layer {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin-top: clamp(1rem, 3vh, 1.75rem);
}

body.candidate-b .terrace-layer__panel,
body.candidate-b .terrace-layer__chip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 8px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--cb-gray-dim);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

body.candidate-b .terrace-layer__panel.is-active,
body.candidate-b .terrace-layer__chip.is-active {
  border-left-color: var(--cb-red);
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.12), #2b2d31 40%);
}

body.candidate-b .terrace-layer__label,
body.candidate-b .terrace-layer__chip-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-red-glow);
  white-space: nowrap;
}

body.candidate-b .terrace-layer__body,
body.candidate-b .terrace-layer__chip-body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--fg) 88%, transparent);
}

body.candidate-b .terrace-layer__meta {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-gray-dim);
}

/* Stacked receipt column beside pipeline schematic */
body.candidate-b .act--pipeline .act-layer--mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

body.candidate-b .alloy-slash-mount {
  grid-column: 1 / -1;
  width: min(100%, 920px);
  margin: 0 auto clamp(1rem, 2vh, 1.5rem);
  min-height: clamp(280px, 42vh, 480px);
}

body.candidate-b .alloy-terrace-stack {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.candidate-b .terrace-tool-loop {
  margin-top: 4px;
}

@media (max-width: 900px) {
  body.candidate-b .act--pipeline .act-layer--mid {
    grid-template-columns: 1fr;
  }
  body.candidate-b .alloy-terrace-stack {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---- SOP EMBEDS on dark shell ----------------------------- */
body.candidate-b .sop-embed {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  max-width: 64ch;
}

body.candidate-b .sop-embed__narrator em {
  color: var(--cb-red-glow);
  font-style: normal;
}

body.candidate-b .sop-embed .sop-mono,
body.candidate-b .sop-embed code {
  background: color-mix(in srgb, var(--cb-panel-raised) 90%, transparent);
  color: var(--cb-gray);
}

body.candidate-b .sop-embed__tech strong,
body.candidate-b .sop-embed .sop-callout strong {
  color: var(--fg);
}

body.candidate-b .sop-embed__ground-label::before {
  background: var(--cb-red);
}

body.candidate-b .sop-embed .sop-table-wrap {
  background: var(--cb-panel);
  border-color: var(--cb-line);
}

body.candidate-b .sop-embed .sop-table th {
  background: color-mix(in srgb, var(--cb-panel-raised) 85%, transparent);
  color: var(--cb-gray);
}

body.candidate-b .sop-embed .sop-callout {
  background: var(--cb-panel);
  border-color: var(--cb-line);
}

body.candidate-b .sop-embed__diagram {
  background: var(--cb-panel);
  border-color: var(--cb-line);
}

body.candidate-b .md-shape {
  fill: color-mix(in srgb, var(--cb-panel-raised) 90%, transparent);
  stroke: color-mix(in srgb, var(--cb-gray) 55%, transparent);
}

body.candidate-b .md-shape--decision {
  fill: color-mix(in srgb, var(--cb-red) 18%, transparent);
  stroke: color-mix(in srgb, var(--cb-red) 55%, transparent);
}

body.candidate-b .md-shape--terminal {
  fill: color-mix(in srgb, var(--cb-red-glow) 14%, transparent);
  stroke: color-mix(in srgb, var(--cb-red-glow) 48%, transparent);
}

body.candidate-b .md-node-text { fill: var(--fg); }
body.candidate-b .md-edge-label { fill: var(--cb-gray); }
body.candidate-b .md-edge-label-bg { fill: var(--cb-panel); }
body.candidate-b .md-loop-label { fill: var(--cb-red-glow); }

/* ---- INVESTOR MODE — Field Manual on dark shell ----------- */
body.candidate-b.investor-mode .ig-toggle {
  color: var(--cb-gray);
}

body.candidate-b.investor-mode .ig-toggle[aria-checked="true"] {
  color: var(--cb-red-glow);
}

body.candidate-b.investor-mode .ig-toggle__track {
  background: color-mix(in srgb, var(--cb-gray-dim) 45%, transparent);
  border-color: var(--cb-line);
}

body.candidate-b.investor-mode .ig-toggle[aria-checked="true"] .ig-toggle__track {
  background: linear-gradient(90deg, var(--cb-red), var(--cb-red-glow));
  border-color: transparent;
}

body.candidate-b.investor-mode .ig-toggle__thumb {
  background: var(--fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

body.candidate-b.investor-mode .ig-disclosure {
  font-size: 0.66rem;
  color: var(--cb-gray);
  background: var(--cb-panel);
  border-color: var(--cb-line);
  border-radius: 6px;
}

body.candidate-b.investor-mode .ig-disclosure:hover {
  color: var(--cb-red-glow);
  border-color: color-mix(in srgb, var(--cb-red) 45%, transparent);
  background: color-mix(in srgb, var(--cb-red) 10%, var(--cb-panel));
}

body.candidate-b.investor-mode .ig-disclosure__icon {
  color: var(--cb-red);
}

body.candidate-b.investor-mode .ig-disclosure__hint {
  color: var(--cb-red-glow);
}

body.candidate-b.investor-mode .ig-badge {
  color: var(--cb-gray);
  background: var(--cb-panel);
  border-color: var(--cb-line);
  border-radius: 6px;
}

body.candidate-b.investor-mode .ig-badge::before {
  background: var(--cb-gray-dim);
}

body.candidate-b.investor-mode .ig-badge strong {
  color: var(--fg);
}

body.candidate-b.investor-mode .ig-badge--parity {
  color: var(--cb-red-glow);
  background: color-mix(in srgb, var(--cb-red) 12%, var(--cb-panel));
  border-color: color-mix(in srgb, var(--cb-red) 35%, transparent);
}

body.candidate-b.investor-mode .ig-badge--parity::before,
body.candidate-b.investor-mode .ig-badge--parity strong {
  color: var(--cb-red-glow);
}

body.candidate-b.investor-mode .ig-badge--parity::before {
  background: var(--cb-red);
}

body.candidate-b.investor-mode .ig-limits {
  background: var(--cb-panel);
  border-color: var(--cb-line);
  border-left-color: var(--cb-red);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  max-width: 68ch;
}

body.candidate-b.investor-mode .ig-limits__label {
  color: var(--cb-red-glow);
}

body.candidate-b.investor-mode .ig-limits__label::before {
  background: var(--cb-red);
}

body.candidate-b.investor-mode .ig-limits__title {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.candidate-b.investor-mode .ig-limits__list li::before {
  color: var(--cb-red);
}

body.candidate-b.investor-mode .ig-limits__list strong {
  color: var(--fg);
}

body.candidate-b.investor-mode .sop-block__label,
body.candidate-b.investor-mode .act-eyebrow {
  letter-spacing: 0.14em;
}

body.candidate-b.investor-mode .act3-track {
  gap: clamp(1.5rem, 4vh, 3rem);
}

body.candidate-b.investor-mode .sop-embed {
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 8px;
}

body.candidate-b.investor-mode .sop-embed__narrator {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  max-width: none;
}

body.candidate-b.investor-mode .sop-embed__lead,
body.candidate-b.investor-mode .sop-embed__tech {
  font-size: 0.9rem;
  line-height: 1.55;
}

body.candidate-b.investor-mode .sop-embed__ground {
  border-top-style: solid;
  border-top-color: var(--cb-line);
}

/* ---- FOOTER ------------------------------------------------ */
body.candidate-b .cine-footer {
  background: #050506;
  color: var(--cb-gray);
  border-top: 1px solid var(--cb-line);
}

body.candidate-b .cine-footer__brand {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--fg);
}

body.candidate-b .cine-footer__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-gray-dim);
}

body.candidate-b .cine-footer__links a:hover {
  color: var(--cb-red-glow);
}

body.candidate-b .cine-footer__legal {
  border-top-color: var(--cb-line);
  color: color-mix(in srgb, var(--cb-gray-dim) 85%, transparent);
}

/* ---- SVG LAYER — visibility on dark bg ------------------- */
body.candidate-b .svg-node {
  --svg-node-bg: var(--cb-panel-raised);
  color: var(--fg);
  border-color: var(--cb-line-strong);
}

body.candidate-b .svg-node:hover {
  background: #35373c;
}

body.candidate-b .svg-node.is-expanded {
  background: var(--cb-red);
  border-color: var(--cb-red);
  color: #fff;
}

body.candidate-b .svg-node:focus-visible {
  outline-color: var(--cb-red-glow);
}

body.candidate-b .svg-callout {
  color: var(--fg);
  background: var(--cb-panel);
  border-color: var(--cb-line);
  border-left-color: var(--cb-red);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

body.candidate-b .svg-callout__head {
  font-family: var(--font-body);
  color: var(--fg);
}

body.candidate-b .svg-callout code {
  color: var(--cb-gray);
  background: var(--cb-panel-raised);
}

body.candidate-b .svg-refrain--gimmick {
  color: var(--fg);
}

body.candidate-b .svg-refrain--job {
  color: var(--cb-red-glow);
}

body.candidate-b .svg-refrain__strike {
  text-decoration-color: var(--cb-red);
}

body.candidate-b .svg-grunt-glyph {
  fill: var(--cb-panel-raised);
  stroke: var(--cb-gray);
}

body.candidate-b .svg-grunt-glyph [data-svg-mark] {
  fill: var(--cb-red-glow);
}

body.candidate-b .svg-act4 .svg-node-label {
  fill: var(--fg);
}

body.candidate-b .svg-act4 .svg-stage-label {
  fill: var(--cb-gray);
}

body.candidate-b .svg-pulse {
  fill: var(--cb-red);
}

/* ---- MOBILE — no horizontal overflow ---------------------- */
@media (max-width: 768px) {
  body.candidate-b .cine-header {
    height: auto;
    min-height: 52px;
    padding-block: 8px;
  }

  body.candidate-b .cine-nav__cta {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.68rem;
  }

  body.candidate-b .alloy-discord-canvas {
    border-radius: 20px;
    width: 100%;
  }

  body.candidate-b .alloy-discord-canvas__stage,
  body.candidate-b #act1-discord-mount.mount:not(.alloy-discord-canvas *) {
    min-height: clamp(360px, 58vh, 520px);
  }

  body.candidate-b .alloy-discord-canvas__chrome {
    padding-inline: 10px;
  }

  body.candidate-b .alloy-discord-canvas__title {
    font-size: 0.6rem;
  }

  body.candidate-b .agent-action-bar {
    width: 100%;
    justify-content: stretch;
  }

  body.candidate-b .agent-action-bar__btn,
  body.candidate-b .agent-action-bar a {
    flex: 1 1 auto;
    min-height: 40px;
    white-space: normal;
    text-align: center;
  }

  body.candidate-b .act--pipeline .act-layer--mid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.candidate-b .act--pipeline .terrace-layer {
    width: 100%;
  }

  body.candidate-b .act--discord .act-headline {
    max-width: none;
  }

  body.candidate-b .sop-embed,
  body.candidate-b.investor-mode .ig-limits {
    max-width: 100%;
  }
}

/* ---- REDUCED MOTION — all content reachable ---------------- */
@media (prefers-reduced-motion: reduce) {
  body.candidate-b .cine-anim .reveal,
  body.candidate-b .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.candidate-b .act-stage {
    min-height: auto;
    overflow: visible;
  }

  body.candidate-b .act-layer {
    transform: none !important;
    will-change: auto;
  }

  body.candidate-b .pipeline-progress__fill,
  body.candidate-b .agent-action-bar__btn,
  body.candidate-b .agent-action-bar a,
  body.candidate-b .ig-toggle__track,
  body.candidate-b .ig-toggle__thumb,
  body.candidate-b .sop-embed__ground.ig-animatable {
    transition: none !important;
  }
}
