/* ============================================================
   System visual — Variants B (lanes) and C (case file)
   Uses tokens declared in hero.css.
   ============================================================ */

/* ===================== VARIANT B — LANES ===================== */
.sysB-outer{ position: relative; width: 100%; }
.sysB-ano{
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  font-weight: 400;
}
.sysB-ano .ln{ height: 1px; background: var(--ghost); display: inline-block; }
.sysB-ano.top-r{ top: -22px; right: 4px; }
.sysB-ano.top-r .ln{ width: 32px; }
.sysB-ano.bot-l{ bottom: -22px; left: 4px; }
.sysB-ano.bot-l .ln{ width: 32px; }

.sysB{
  position: relative;
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
}
/* Right-edge fade — gradient overlay instead of mask-image, so child text
   keeps subpixel anti-aliasing (mask promotes to a composite layer and
   falls back to grayscale AA, which reads as "softer" text). */
.sysB::after{
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 18%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    color-mix(in oklab, var(--bg) 0%, transparent) 0%,
    var(--bg) 100%
  );
  z-index: 5;
}

/* ============ HEAD — identity + throughput ============
   Mono ribbon sitting on canvas — no bg, no bottom border. Reads as
   a dateline above the visual, not as a card chrome strip. */
.sysB-head{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 4px 2px 14px;
  border-bottom: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: nowrap;
}
.sysB-head .id{
  display:flex; align-items:center; gap: 8px; color: var(--fg);
  white-space: nowrap;
  min-width: 0;
}
.sysB-head .id .sq{ width:6px; height:6px; background: var(--fg); border-radius: 1px; flex: 0 0 auto; }
.sysB-head .id .id-name{ font-weight: 500; }
.sysB-head .id .sep{ color: var(--faint); }
.sysB-head .id .id-meta{
  color: var(--muted);
  font-weight: 400;
  font-size: 10.5px;
  white-space: nowrap;
}

.sysB-head .throughput{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.sysB-head .tp{
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.sysB-head .tp-k{
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.sysB-head .tp-v{
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.012em;
}
.sysB-head .tp-u{
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--muted-2);
}

.sysB-head .head-live{
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
.sysB-head .head-live .hl-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--state-pos);
}

/* ============ STAGE LABELS ============
   Hairline-thin row sitting on canvas. Decimal section numbering
   (0.1 / 0.2 / 0.3) rather than slash-numbered eyebrows. */
.sysB-stages{
  display: grid;
  grid-template-columns: 1fr 28px 1.4fr 28px 1fr;
  align-items: center;
  padding: 8px 0 14px;
  border-bottom: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  position: relative;
}
.sysB-stages::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-soft);
}
.sysB-stages .sg{
  display: inline-flex; align-items: baseline; gap: 8px;
  letter-spacing: 0;
  white-space: nowrap;
}
.sysB-stages .sg-n{
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.sysB-stages .sg-t{
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.sysB-stages .sg:nth-child(3){ justify-content: center; }
.sysB-stages .sg:nth-child(5){ justify-content: flex-end; }
.sysB-stages .sg-arrow{
  display: grid; place-items: center;
  color: var(--ghost);
}

/* ============ BODY — 3 lanes ============
   Lanes sit on canvas — no per-lane card, hairline column rules between. */
.sysB-body{
  display: grid;
  grid-template-columns: 1fr 28px 1.4fr 28px 1fr;
  align-items: stretch;
  border-bottom: 0;
  background: transparent;
}
.sysB-body .lane{
  padding: 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  border-right: 1px solid var(--line-soft);
}
.sysB-body .lane:last-child{ border-right: 0; }
.sysB-body .flow-arrow{ border-right: 1px solid var(--line-soft); }

.lane-engine{
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--canvas-tint) 60%, transparent) 0%, transparent 70%);
}

.lane-head{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
}
.lane-head .lane-t{
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.014em;
  color: var(--fg);
  font-weight: 500;
}
.lane-head .lane-s{
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.45;
}

/* lane footer pip */
.lane-foot{
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
}
.lane-foot strong{ color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.lane-foot .lf-dot{
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ghost);
}
.lane-foot.lf-out.live .lf-dot{ background: var(--state-pos); }
.lane-foot.lf-out.live{ color: var(--fg); }

/* flow arrows in gutters */
.flow-arrow{
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ghost);
}
.flow-arrow .ln{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform: translateY(-0.5px);
}
.flow-arrow svg{ position: relative; z-index: 1; background: var(--bg); padding: 0 3px; }
.flow-arrow.live{ color: var(--state-pos); }
.flow-arrow.live .ln{ background: var(--state-pos); opacity: 0.55; }

/* ============ LANE 1 — queue ============ */
.queue{ display: flex; flex-direction: column; gap: 6px; }
.q-card{
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: transparent;
  transition: border-color .35s ease, transform .35s ease, opacity .35s ease, background .35s ease;
}
.q-card.s-pending{ opacity: 0.6; }
.q-card.s-done{ opacity: 0.78; }
.q-card.s-active{
  border-color: var(--line);
  background: var(--surface);
  transform: translateX(2px);
}
/* outcome tints — sit on the active and done cards by their decision */
.q-card.o-ok.s-done   { border-left: 2px solid color-mix(in oklab, var(--state-pos) 70%, transparent); }
.q-card.o-warn.s-done { border-left: 2px solid color-mix(in oklab, #c8851a 70%, transparent); }
.q-card.o-rej.s-done  { border-left: 2px solid color-mix(in oklab, #c14a3e 70%, transparent); opacity: 0.65; }
.q-card.o-ok.s-active   { border-left: 2px solid var(--state-pos); }
.q-card.o-warn.s-active { border-left: 2px solid #c8851a; }
.q-card.o-rej.s-active  { border-left: 2px solid #c14a3e; }

.q-thumb{
  position: relative;
  width: 50px; height: 66px;
  background: var(--canvas-tint);
  border-radius: 6px;
  overflow: hidden;
  display: grid; place-items: center;
}
.q-thumb .asset-video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-thumb-ph{
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.q-thumb .q-kind{
  position: absolute;
  bottom: 3px; left: 3px;
  font-family: var(--font-sans);
  font-size: 8px;
  background: rgba(23,23,23,0.78);
  color: #FAFAF8;
  padding: 1.5px 4px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.q-meta{
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding-top: 1px;
}
.q-meta .q-handle{
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-meta .q-row{
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.q-meta .q-row .dot{
  width: 2px; height: 2px; border-radius: 50%; background: var(--ghost);
}
.q-state-row{ margin-top: 3px; }
.q-pill{
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  padding: 2px 7px 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  text-transform: lowercase;
  white-space: nowrap;
}
.q-pill::before{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ghost);
}
/* analyzing — pulse green */
.q-pill.p-active{ color: var(--fg); border-color: var(--line-strong); }
.q-pill.p-active::before{
  background: var(--state-pos);
}
/* outcome pills */
.q-pill.p-out.o-ok{
  color: var(--state-pos);
  border-color: color-mix(in oklab, var(--state-pos) 30%, var(--line));
  background: color-mix(in oklab, var(--state-pos) 5%, var(--surface));
}
.q-pill.p-out.o-ok::before{ background: var(--state-pos); }
.q-pill.p-out.o-warn{
  color: #8a5908;
  border-color: color-mix(in oklab, #c8851a 30%, var(--line));
  background: color-mix(in oklab, #c8851a 7%, var(--surface));
}
.q-pill.p-out.o-warn::before{ background: #c8851a; }
.q-pill.p-out.o-rej{
  color: #8b2e26;
  border-color: color-mix(in oklab, #c14a3e 30%, var(--line));
  background: color-mix(in oklab, #c14a3e 6%, var(--surface));
}
.q-pill.p-out.o-rej::before{ background: #c14a3e; }
.q-pill.p-pending{ color: var(--muted-2); }

/* ============ LANE 2 — content analytics (analyze panel) ============
   Honest "scanning" treatment. Three signal tracks reveal as the
   scrubber walks across, no fabricated stats. */
.analyze{
  margin-top: 2px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s ease, background .35s ease;
}
.analyze.live{
  border-color: var(--line);
  background: var(--surface);
}

.analyze .az-head{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}
.analyze .az-label{
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
}
.analyze .az-clip{
  color: var(--muted);
}
.analyze .az-tag{
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.analyze .az-streams{
  position: relative;
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 2px 0 0;
}

.analyze .az-stream{
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  height: 14px;
}
.analyze .az-name{
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.analyze .az-strip{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

/* Frames — short ticks distributed across the strip. Heights are set
   inline per-asset; key-frames get a darker tint. */
.analyze .az-strip--frames{
  gap: 0;
  justify-content: space-between;
  align-items: flex-end;
}
.analyze .az-tick{
  width: 1px;
  background: var(--ghost);
  opacity: 0;
  flex: 0 0 1px;
  transition: opacity .25s ease, background .25s ease;
}
.analyze .az-tick--key{ background: var(--muted-2); }
.analyze.live .az-tick{
  opacity: 1;
  animation: azReveal 1.2s ease-out forwards;
}

/* Audio — pseudo-waveform of vertical bars. Count varies by asset, so
   each bar flexes to fill. */
.analyze .az-strip--audio{
  gap: 1px;
  align-items: center;
  justify-content: space-between;
  height: 14px;
}
.analyze .az-wav{
  flex: 1 1 0;
  min-width: 1px;
  max-width: 3px;
  background: var(--muted-2);
  border-radius: 1px;
  opacity: 0.18;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity .25s ease, transform .25s ease;
}
.analyze.live .az-wav{
  animation: azWave .8s ease-out forwards;
}

/* Transcript — short word-shaped pills. Widths set inline; if the
   asset has more words than fit, the strip clips (overflow:hidden on
   .az-strip), which reads as "transcript continues". */
.analyze .az-strip--text{
  gap: 3px;
  align-items: center;
  justify-content: flex-start;
  height: 14px;
}
.analyze .az-word{
  flex: 0 0 auto;
  height: 4px;
  background: var(--ghost);
  border-radius: 2px;
  opacity: 0;
  transition: opacity .3s ease;
}
.analyze.live .az-word{
  animation: azWord .6s ease-out forwards;
}

/* Scrubber — vertical hairline that walks the strip */
.analyze .az-scrub{
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: calc(56px + 10px);
  width: 1px;
  background: var(--state-pos);
  opacity: 0;
  pointer-events: none;
}
.analyze.live .az-scrub{
  animation: azScrub 2.4s ease-in-out forwards;
}

@keyframes azReveal{
  from{ opacity: 0; }
  to  { opacity: 1; }
}
@keyframes azWave{
  from{ opacity: 0.18; transform: scaleY(0.4); }
  to  { opacity: 0.85; transform: scaleY(1);   }
}
@keyframes azWord{
  from{ opacity: 0; }
  to  { opacity: 1; }
}
@keyframes azScrub{
  0%   { opacity: 0;   left: calc(56px + 10px); }
  6%   { opacity: 0.9; }
  94%  { opacity: 0.9; }
  100% { opacity: 0;   left: 100%; }
}
.score-list-b{
  display: flex; flex-direction: column; gap: 0;
}
.score-b{
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  transition: opacity .35s ease;
}
.score-b:last-child{ border-bottom: 0; }
.score-b-top{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.score-b .k{
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.score-b .v{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1;
}
.score-b .v i{
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
  font-weight: 400;
  margin-left: 1px;
}
.score-b .bar{
  position: relative; height: 4px; background: var(--line); border-radius: var(--r-bar); overflow: hidden;
}
.score-b .bar i{
  position: absolute; top:0; left:0; bottom:0;
  background: var(--muted-2);
  transition: width 1s cubic-bezier(.6,.05,.2,1);
  border-radius: var(--r-bar);
}
.score-b.sig .bar i{ background: var(--state-pos); }
.score-b.sig .v{ color: var(--fg); }
.score-b .note{
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  text-wrap: pretty;
  min-height: 1.2em;
}
.score-b.pending .k,
.score-b.pending .v,
.score-b.pending .note{ color: var(--faint); }
.score-b.pending .bar i{ width: 0 !important; }

/* ============ decision ============ */
.decision{
  margin-top: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 13px 14px;
  display: flex; flex-direction: column; gap: 7px;
  background: transparent;
  transition: border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.decision::before{
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ghost);
  transition: background .3s ease;
}
.decision.live{ border-color: var(--line); }

/* default (paid/affiliate/whitelist) — green tint when live */
.decision.d-paid.live,
.decision.d-affiliate.live,
.decision.d-whitelist.live{
  background: color-mix(in oklab, var(--state-pos) 4%, var(--surface));
}
.decision.d-paid.live::before,
.decision.d-affiliate.live::before,
.decision.d-whitelist.live::before{ background: var(--state-pos); }

/* re-test — amber tint */
.decision.d-retest.live{
  background: color-mix(in oklab, #c8851a 5%, var(--surface));
  border-color: color-mix(in oklab, #c8851a 18%, var(--line));
}
.decision.d-retest.live::before{ background: #c8851a; }

/* disqualify — muted red tint */
.decision.d-disqualify.live{
  background: color-mix(in oklab, #c14a3e 4%, var(--surface));
  border-color: color-mix(in oklab, #c14a3e 18%, var(--line));
}
.decision.d-disqualify.live::before{ background: #c14a3e; }

.decision .d-row{
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.decision .d-k{ color: var(--muted); letter-spacing: 0.08em; }
.decision.live .d-k{ color: var(--fg); }
.decision .d-stat{ color: var(--muted-2); }
.decision.d-paid.live .d-stat,
.decision.d-affiliate.live .d-stat,
.decision.d-whitelist.live .d-stat{ color: var(--state-pos); }
.decision.d-retest.live .d-stat{ color: #8a5908; }
.decision.d-disqualify.live .d-stat{ color: #8b2e26; }

.decision .d-body{
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--fg);
  letter-spacing: -0.014em;
  font-weight: 500;
}
.decision .d-arr{
  display: inline-block;
  color: var(--faint);
  font-size: 14px;
  font-weight: 400;
}
.decision.d-paid.live .d-arr,
.decision.d-affiliate.live .d-arr,
.decision.d-whitelist.live .d-arr{ color: var(--state-pos); }
.decision.d-retest.live .d-arr{ color: #8a5908; }
.decision.d-disqualify.live .d-arr{ color: #8b2e26; }

.decision .d-why{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ LANE 3 — channels ============ */
.channels{ display:flex; flex-direction: column; gap: 6px; }
.ch{
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex; flex-direction: column; gap: 5px;
  background: transparent;
  position: relative;
  transition: border-color .35s ease, transform .35s ease, opacity .35s ease, background .35s ease;
  opacity: 0.74;
}
.ch.active{
  border-color: var(--line);
  background: var(--surface);
  opacity: 1;
  transform: translateX(-2px);
}
.ch.active::after{
  content:"";
  position: absolute;
  left: -1px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--state-pos);
  border-radius: 1px;
}

/* Re-test channel — visually a "hold" lane, dashed border treatment */
.ch-retest{
  border-style: dashed;
  background: color-mix(in oklab, #c8851a 2.5%, var(--surface));
}
.ch-retest .ch-name{ color: var(--fg); }
.ch-retest .m-v{ color: var(--muted); }

/* When the re-test channel is active, use amber treatment instead of green */
.ch.ch-retest.active{
  border-style: solid;
  border-color: color-mix(in oklab, #c8851a 35%, var(--line));
  background: color-mix(in oklab, #c8851a 5%, var(--surface));
}
.ch.ch-retest.active::after{ background: #c8851a; }
.ch.ch-retest.active .m-v{ color: #8a5908; }
.ch.ch-retest.active .m-delta{ color: #8a5908; }
.ch.ch-retest.active .ch-tag{
  color: #8a5908;
  border-color: color-mix(in oklab, #c8851a 35%, var(--line));
  background: color-mix(in oklab, #c8851a 8%, var(--surface));
}
.ch.ch-retest.active .ch-tag::before{ background: #c8851a; }

/* When the lane is in rejected mode, dim ALL channels except the re-test
   dash card so the user immediately reads "nothing routed". */
.lane-out.out-rejected .ch{ opacity: 0.42; }
.lane-out.out-rejected .ch::after{ display: none; }

.ch .ch-top{
  display:flex; align-items:center; justify-content:space-between;
  gap: 8px;
  min-width: 0;
}
.ch .ch-name{
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
.ch .ch-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ghost);
  transition: background .3s ease;
  flex: 0 0 auto;
}
.ch .ch-tag{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--state-pos);
  padding: 2px 6px 2px 4px;
  border: 1px solid color-mix(in oklab, var(--state-pos) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in oklab, var(--state-pos) 5%, var(--surface));
  display: inline-flex; align-items: center; gap: 4px;
  flex: 0 0 auto;
}
.ch .ch-tag::before{
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--state-pos);
}

.ch .ch-sub{
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
}
.ch .ch-metric{
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  gap: 10px;
}
.ch .m-l{ display: inline-flex; align-items: baseline; gap: 8px; }
.ch .m-k{
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ch .m-v{
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.018em;
  color: var(--fg);
  line-height: 1;
}
.ch.active .m-v{ color: var(--state-pos); }
.ch .m-delta{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ch.active .m-delta{ color: var(--state-pos); }

/* Rejected banner — appears in lane-out when the decision is disqualify */
.out-reject-banner{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid color-mix(in oklab, #c14a3e 30%, var(--line));
  background: color-mix(in oklab, #c14a3e 6%, var(--surface));
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--fg);
}
.out-reject-banner .orb-tag{
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b2e26;
  padding: 2px 7px;
  border: 1px solid color-mix(in oklab, #c14a3e 35%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
.out-reject-banner .orb-body{ color: var(--muted); }

/* lane-foot in rejected state */
.lane-foot.lf-out.live.rej{ color: var(--fg); }
.lane-foot.lf-out.live.rej .lf-dot{ background: #c14a3e; }
.lane-foot.lf-out.live.rej strong{ color: #8b2e26; }

/* ============ FOOT — caption row ============ */
.sysB-foot{
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 18px;
  padding: 14px 2px 4px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0;
  border-top: 0;
}
.sysB-foot .cap{ display: flex; align-items: baseline; gap: 8px; }
.sysB-foot .cap-n{
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.sysB-foot .cap.mid{ justify-content: center; }
.sysB-foot .cap:last-child{ justify-content: flex-end; text-align: right; }

/* responsive */
@media (max-width: 920px){
  .sysB-body,
  .sysB-stages{
    grid-template-columns: 1fr;
  }
  .sysB-stages .sg-arrow{ display: none; }
  .sysB-stages .sg:nth-child(3),
  .sysB-stages .sg:nth-child(5){ justify-content: flex-start; }
  .sysB-body .lane{
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sysB-body .flow-arrow{
    border-right: 0;
    border-bottom: 1px solid var(--line);
    transform: rotate(90deg);
    height: 36px;
  }
  .sysB-foot{ grid-template-columns: 1fr; }
  .sysB-foot .cap.mid,
  .sysB-foot .cap:last-child{ justify-content: flex-start; text-align: left; }
}


/* ===================== VARIANT C — CASE FILE ===================== */
.sysC-outer{ position: relative; width: 100%; }
.sysC-ano{
  position: absolute;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  font-weight: 400;
}
.sysC-ano .ln{ height: 1px; background: var(--ghost); display: inline-block; width: 32px; }
.sysC-ano.top-r{ top: -22px; right: 4px; }
.sysC-ano.bot-l{ bottom: -22px; left: 4px; }

.sysC{
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sysC-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  gap: 12px;
}
.sysC-head .id{ display:flex; align-items:center; gap: 8px; color: var(--fg); }
.sysC-head .id .sq{ width:6px; height:6px; background: var(--fg); border-radius: 1px; }
.sysC-head .id .sep{ color: var(--faint); }
.sysC-head .id .phase{ color: var(--muted); }
.sysC-head .meta{ display:flex; align-items:center; gap: 12px; }
.sysC-head .meta .live{
  display:inline-flex; align-items:center; gap: 6px; color: var(--fg);
}
.sysC-head .meta .live::before{
  content:""; width:5px; height:5px; border-radius:50%;
  background: var(--state-pos);
}

.sysC-body{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-bottom: 1px solid var(--line);
}
.case-asset{
  padding: 20px;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  gap: 18px;
  min-width: 0;
  align-items: start;
}
.case-story{
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}

/* LEFT — annotated asset */
.ca-thumb{
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--canvas-tint);
  border-radius: var(--r-thumb);
  overflow: hidden;
}
.ca-thumb .asset-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-thumb);
  background: #0e0e0c;
}
.ca-thumb .badge{
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  background: rgba(23,23,23,0.78);
  color: #FAFAF8;
  padding: 3px 7px;
  border-radius: var(--r-badge);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 4;
}

/* numbered pin dots anchored on the asset */
.pin-dot{
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--state-pos);
  color: #FAFAF8;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--state-pos) 16%, transparent);
  transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  z-index: 3;
}
.pin-dot.show{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* right-side gutter — numbered callout cards */
.ca-annotations{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ann{
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 10px 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .45s ease, transform .45s ease, border-color .3s ease;
}
.ann.show{ opacity: 1; transform: translateX(0); }
.ann .ann-n{
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--state-pos);
  color: #FAFAF8;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  margin-top: 1px;
}
.ann .ann-body{
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.ann .ann-k{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0;
  word-break: break-word;
}
.ann .ann-note{
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  text-wrap: pretty;
}

.ca-meta{
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
}
.ca-meta .cm-l{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ca-meta .cm-handle{
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.ca-meta .cm-sub{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.ca-meta .cm-r{
  text-align: right;
  display: flex; flex-direction: column; gap: 2px;
}
.ca-meta .cm-k{
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ca-meta .cm-v{
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
}

/* RIGHT — story */
.story{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.story .st{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0.5;
  transition: opacity .35s ease;
}
.story .st.live{ opacity: 1; }
.story .st-head{
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.story .st-head .st-n{
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.story .st.live .st-head{ color: var(--fg); }
.story .st-body{
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: -0.012em;
  color: var(--fg);
  line-height: 1.45;
  text-wrap: pretty;
}
.story .st-body.action{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.story .st-body.action::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--state-pos);
}

.story .st-outcome{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
}
.story .oc{
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.story .oc:last-child{ border-right: 0; }
.story .oc-k{
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.story .oc-v{
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.story .oc-v .sig{
  color: var(--state-pos);
  font-size: 10px;
  margin-right: 3px;
  vertical-align: 1px;
}

.loop{
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--muted);
}
.loop .loop-arrow{
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg);
  font-size: 11px;
}

.sysC-foot{
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 14px;
  padding: 11px 18px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
}
.sysC-foot .cap{ display: flex; align-items: center; gap: 8px; }
.sysC-foot .cap::before{
  content:""; width:4px; height:4px; border-radius:50%; background: var(--ghost);
}
.sysC-foot .cap.mid{ justify-content: center; }
.sysC-foot .cap:last-child{ justify-content: flex-end; }

@media (max-width: 820px){
  .sysC-body{ grid-template-columns: 1fr; }
  .case-asset{
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr;
  }
  .sysC-foot{ grid-template-columns: 1fr; }
  .sysC-foot .cap.mid, .sysC-foot .cap:last-child{ justify-content: flex-start; }
}
