/* UNION CAGE — public desk (Brand bar live28)
   Source of truth: docs/brand/PUBLIC-DESK-BAR.md
   True-black · frost glass · Brand frost OK · saturated agent accents (identity only)
   No purple chrome spam · Dig/Knock UI stays demoted
*/

:root {
  --bg: #070708;
  --void: #050506;
  --raised: #121214;
  --elevated: #18181b;

  --ink: #fafaf8;
  --mute: rgba(250,250,248,0.68);
  --dim: rgba(250,250,248,0.42);

  --frost: rgba(255,255,255,0.08);
  --frost-strong: rgba(18,18,20,0.82);
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);

  --live: #8fd6a8;
  --fund: #ffd56a;
  --act: #ffffff;
  --on-act: #0a0a0a;

  --type: 17px;
  --radius: 18px;
  --pad: 14px;
  --chrome-blur: blur(28px) saturate(1.25);
  --ease: cubic-bezier(.2,.8,.2,1);

  /* Agent seat colors — identity ONLY (chip/topo/msg hue); never chrome/CTAs */
  --seat-director: #ff3d6e;
  --seat-scout: #00e5ff;
  --seat-builder: #b8ff2e;
  --seat-wire: #ffb020;
  --seat-looper: #f472b6;
  --seat-director-glow: rgba(255,61,110,0.28);
  --seat-scout-glow: rgba(0,229,255,0.26);
  --seat-builder-glow: rgba(184,255,46,0.24);
  --seat-wire-glow: rgba(255,176,32,0.26);
  --seat-looper-glow: rgba(244,114,182,0.22);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--type);
  line-height: 1.45;
  min-height: 100%;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 70% 42% at 18% -18%, rgba(140,160,190,0.05), transparent 55%),
    var(--bg);
}

code, .runway-ca, .vote-tally, .model-chip, .model-chip-inline,
.topo-node, .art-count, .fund-contract {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

#app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 14px 36px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

#flash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.12), transparent 45%);
  transition: opacity 180ms var(--ease);
}
#flash.on { opacity: 1; animation: flashPulse 700ms ease-out; }
@keyframes flashPulse {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}

/* --- Brand --- */
.top { display: flex; flex-direction: column; gap: 10px; }
.brand h1 {
  font-size: clamp(1.85rem, 8vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
}
.hook {
  margin-top: 6px;
  font-size: clamp(15px, 2.4vw, 16px);
  color: var(--mute);
  max-width: 42ch;
  line-height: 1.4;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--frost);
}
.badge.live { color: var(--live); border-color: rgba(143,214,168,0.35); }
.badge.live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(143,214,168,0.45);
  animation: pulse 2s ease-in-out infinite;
}
.badge.heat { color: var(--mute); border-color: var(--line-strong); }
.badge.lane { color: var(--mute); border-color: var(--line-strong); }
.badge.lane[data-lane="degraded"],
.badge.lane.is-degraded {
  color: var(--fund);
  border-color: rgba(255,213,106,0.4);
  background: rgba(255,213,106,0.08);
}
.badge.research, .badge.arena-badge, .badge.degraded { display: none; } /* culled live23 */
.foot-detail {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* --- Frost card primitive --- */
.frost-card,
.runway-card,
.participate-card,
.experiments-card,
.pressure-card,
.econ-card,
.lab-card,
.arena-card,
.eval-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    var(--frost-strong);
  backdrop-filter: var(--chrome-blur);
  -webkit-backdrop-filter: var(--chrome-blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* --- Ticker --- */
.ticker-rail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--frost);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 7px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  animation: ticker 40s linear infinite;
}
.ticker-track .tk { white-space: nowrap; }
.ticker-track .tk-sep { opacity: 0.35; color: var(--mute); padding: 0 0.4rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Runway hero (brain battery) --- */
.runway-hero { margin: 0; }
.runway-card { padding: var(--pad) 16px; }
.runway-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.runway-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.runway-pill {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mute);
  background: var(--frost);
}
.runway-pill.is-live,
.runway-pill[data-live="1"] {
  background: var(--act);
  color: var(--on-act);
  border-color: var(--act);
}
.runway-title {
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-weight: 800;
  margin-top: 10px;
  line-height: 1.25;
  color: var(--ink);
}
.runway-title #runway-ticker { color: var(--fund); }
.runway-tagline {
  color: var(--mute);
  font-size: var(--type);
  margin: 6px 0 10px;
}
.runway-copy {
  color: var(--mute);
  font-size: 15px;
  margin: 0 0 12px;
  line-height: 1.45;
}
.battery-meter { margin: 8px 0 12px; }
.battery-shell {
  position: relative;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--void);
  overflow: hidden;
}
.battery-shell::after {
  content: "";
  position: absolute;
  right: -5px; top: 4px;
  width: 3px; height: 8px;
  border-radius: 0 2px 2px 0;
  background: var(--line-strong);
}
.battery-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,213,106,0.35), var(--fund));
  transition: width 0.6s var(--ease);
}
.battery-cells {
  position: absolute; inset: 0;
  display: flex; gap: 2px; padding: 2px;
  pointer-events: none;
}
.battery-cells i {
  flex: 1;
  border-right: 1px solid rgba(0,0,0,0.35);
}
.battery-cells i:last-child { border: 0; }
.battery-meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 8px; align-items: baseline;
}
.battery-pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--fund);
  font-variant-numeric: tabular-nums;
}
.battery-story { font-size: 13px; color: var(--dim); }
.runway-ca-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.runway-ca {
  font-size: 12px;
  background: var(--void);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--mute);
  max-width: 100%;
  overflow: auto;
}
.runway-trade, .runway-copy-btn, .export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--frost);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
/* Runway Trade/Copy stay frost-secondary; active white-invert is reserved for Dig/Knock. */
.runway-trade:hover, .runway-copy-btn:hover {
  background: var(--frost);
  color: var(--ink);
  border-color: var(--line-strong);
}
.export-btn:hover {
  background: var(--act);
  color: var(--on-act);
  border-color: var(--act);
}
.runway-loop {
  margin-top: 12px;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* --- CTA strip (quiet secondary — no sticky Knock·Dig·Vote dock) --- */
.cta-rail {
  padding: 4px 2px 2px;
  position: static;
  z-index: auto;
}
.cta-rail--quiet .cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  opacity: 0.85;
}
.cta-watch {
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cta-btn, .cta-link[data-cta] {
  display: none; /* game dock buttons removed live26; still demoted live27 */
}
.cta-link {
  color: var(--mute);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
}
.cta-link:hover { color: var(--ink); text-decoration: underline; }
.cta-sep { color: var(--dim); opacity: 0.5; }
/* POT demoted: secondary link under Runway — not sticky dock chrome */
.runway-pot,
.pot-chip {
  display: inline-block;
  margin-top: 10px;
  color: var(--mute);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
}
.runway-pot:hover,
.pot-chip:hover {
  color: var(--ink);
  text-decoration: underline;
  background: transparent;
}

/* --- Participate --- */
.participate-rail { margin: 0; scroll-margin-top: 12px; }
.participate-card { padding: 16px; }
.participate-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.participate-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 800;
}
.participate-pill {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: 3px 8px;
}
.participate-steps {
  margin: 0 0 14px;
  padding-left: 1.15em;
  color: var(--mute);
  font-size: var(--type);
  line-height: 1.5;
}
.participate-steps strong { color: var(--ink); font-weight: 800; }

.dig-form { margin-bottom: 12px; }
.dig-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
  font-weight: 700;
}
.dig-row { display: flex; gap: 8px; align-items: stretch; }
.dig-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  background: var(--frost);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: var(--type);
  outline: none;
}
.dig-row input::placeholder { color: var(--dim); }
.dig-row input:focus {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.dig-btn, .knock-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 96px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--act);
  background: var(--act);
  color: var(--on-act);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s var(--ease), transform 0.12s var(--ease), opacity 0.15s var(--ease);
}
.dig-btn:hover, .knock-btn:hover,
.dig-btn:focus-visible, .knock-btn:focus-visible {
  filter: brightness(0.92);
}
.dig-btn:active, .knock-btn:active,
.dig-btn.pulse, .knock-btn.pulse {
  filter: brightness(0.88);
  transform: scale(1.02);
  animation: actPulse 380ms var(--ease);
}
.dig-btn:disabled, .knock-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
@keyframes actPulse {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.02); opacity: 0.92; }
  100% { transform: scale(1); opacity: 1; }
}
.dig-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.4;
}

.knock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--frost);
}
.knock-row .knock-copy {
  flex: 1;
  min-width: 140px;
  font-size: 15px;
  color: var(--mute);
  line-height: 1.35;
}
.knock-row .knock-btn { min-width: 120px; }

.dig-outcome-card, .knock-outcome-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--frost-strong);
  animation: outcomeIn 360ms var(--ease);
}
.dig-outcome-card.fresh, .knock-outcome-card.fresh {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
@keyframes outcomeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.dig-outcome-h, .knock-outcome-h {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
  font-weight: 800;
}
.dig-outcome-body, .knock-outcome-body {
  font-size: var(--type);
  color: var(--ink);
  line-height: 1.4;
}
.knock-outcome-task {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mute);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.vote-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.vote-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vote-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
}
.vote-title { font-size: 18px; color: var(--ink); font-weight: 800; }
.vote-prompt {
  margin: 6px 0 12px;
  font-size: var(--type);
  color: var(--mute);
  line-height: 1.4;
}
.vote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vote-btn {
  appearance: none;
  min-height: 48px;
  min-width: 72px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--frost);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.vote-btn:hover { border-color: rgba(255,255,255,0.35); }
.vote-btn.on,
.vote-btn.selected,
.vote-btn:active {
  background: var(--act);
  color: var(--on-act);
  border-color: var(--act);
}
.vote-btn:disabled { opacity: 0.5; cursor: wait; }
.vote-tally {
  margin-top: 10px;
  font-size: 14px;
  color: var(--dim);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* --- Experiments (one live card) --- */
.lab-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.lab-rail--secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.lab-card { padding: 14px; background: var(--raised); backdrop-filter: none; }
.experiments-card {
  padding: 16px;
  border-color: var(--line-strong);
}
.lab-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.lab-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.lab-pill {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--mute);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.lab-pill.pending-jev { color: var(--mute); border-color: var(--line-strong); }
.lab-pill.jev { color: var(--live); border-color: rgba(143,214,168,0.4); }
.experiment-title, .provocation-title {
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  margin-top: 2px;
  color: var(--ink);
  line-height: 1.3;
}
.experiment-hyp, .provocation-dig {
  font-size: var(--type);
  color: var(--mute);
  margin: 8px 0 6px;
  line-height: 1.45;
}
.experiment-method {
  font-size: 15px;
  color: var(--dim);
  margin: 0 0 10px;
  line-height: 1.4;
}
.experiment-artifact {
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: var(--frost);
}
.experiment-board {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 140px;
  overflow: auto;
}
.experiment-board li {
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.experiment-board li.active { color: var(--ink); }
.experiment-board .exp-status {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--dim);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.experiment-board li.active .exp-status {
  border-color: var(--act);
  color: var(--on-act);
  background: var(--act);
}
.provocation-sources a {
  display: inline-block;
  font-size: 13px;
  color: var(--mute);
  margin-right: 8px;
}
.provocation-sources a:hover { color: var(--ink); }

.judgment { border-top: 1px solid var(--line); padding: 8px 0; }
.judgment:first-child { border-top: 0; }
.judgment.empty { color: var(--dim); font-size: 14px; }
.j-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); }
.j-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}
.j-label.jev { color: var(--live); border-color: rgba(143,214,168,0.4); }
.j-label.pending-jev { color: var(--mute); }
.j-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.j-chip {
  font-size: 13px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--mute);
}
.j-chip b { color: var(--ink); margin-right: 4px; font-weight: 700; }
.j-postable { font-size: 14px; color: var(--mute); line-height: 1.4; }
.model-chip-inline {
  display: inline-block;
  font-size: 10px;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
}

.topo-viz { margin-bottom: 8px; }
.topo-orbit {
  position: relative;
  width: 88px; height: 88px;
  margin: 4px auto 10px;
}
.topo-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  border: 1.5px solid var(--seat-director);
  color: var(--seat-director);
  background: rgba(255,61,110,0.12);
  box-shadow: 0 0 18px var(--seat-director-glow);
}
.topo-sat {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 10px currentColor;
}
.topo-sat[data-i="0"] { left: 50%; top: 4px; transform: translateX(-50%); background: var(--seat-scout); color: var(--seat-scout); box-shadow: 0 0 12px var(--seat-scout-glow); }
.topo-sat[data-i="1"] { right: 4px; top: 50%; transform: translateY(-50%); background: var(--seat-builder); color: var(--seat-builder); box-shadow: 0 0 12px var(--seat-builder-glow); }
.topo-sat[data-i="2"] { left: 50%; bottom: 4px; transform: translateX(-50%); background: var(--seat-wire); color: var(--seat-wire); box-shadow: 0 0 12px var(--seat-wire-glow); }
.topo-sat[data-i="3"] { left: 4px; top: 50%; transform: translateY(-50%); background: transparent; color: var(--seat-looper); border: 1px dashed rgba(244,114,182,0.85); box-shadow: inset 0 0 0 2px var(--seat-looper), 0 0 10px var(--seat-looper-glow); }
.topo-graph { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.topo-node {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--mute);
}
.topo-node.director { border-color: var(--seat-director); color: var(--seat-director); background: rgba(255,61,110,0.08); box-shadow: 0 0 10px var(--seat-director-glow); }
.topo-node.scout { border-color: var(--seat-scout); color: var(--seat-scout); background: rgba(0,229,255,0.08); box-shadow: 0 0 10px var(--seat-scout-glow); }
.topo-node.builder { border-color: var(--seat-builder); color: var(--seat-builder); background: rgba(184,255,46,0.08); box-shadow: 0 0 10px var(--seat-builder-glow); }
.topo-node.wire { border-color: var(--seat-wire); color: var(--seat-wire); background: rgba(255,176,32,0.08); box-shadow: 0 0 10px var(--seat-wire-glow); }
.topo-node.spawn { border-color: var(--mute); color: var(--ink); }
.topo-node.report { border-color: var(--live); color: var(--live); }
.topo-node.muted { color: var(--dim); }
.topo-node.looper,
.topo-node.staged {
  border-color: rgba(244,114,182,0.75);
  color: var(--seat-looper);
  border-style: dashed;
  background: rgba(244,114,182,0.1);
  box-shadow: 0 0 8px var(--seat-looper-glow);
}
.topo-edge { color: var(--dim); font-size: 12px; }
.topo-list { list-style: none; font-size: 14px; }
.topo-list li { padding: 6px 0; border-top: 1px solid var(--line); color: var(--mute); }
.topo-brief { color: var(--dim); font-size: 12px; margin-top: 2px; }
.topo-list li.staged-seat { color: var(--seat-looper); }
.topo-list li.staged-seat .topo-brief { color: rgba(244,114,182,0.78); }
.topo-list li.muted, .muted { color: var(--dim); }

/* --- Eval / Arena / Econ (quiet chrome) --- */
.eval-strip { padding: 12px 14px; }
.eval-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.eval-label, .arena-label, .econ-label, .pressure-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.eval-pill, .arena-pill, .econ-pill, .pressure-pill {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute);
}
.econ-pill.live { color: var(--live); border-color: rgba(143,214,168,0.35); }
.eval-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 6px;
}
.eval-stage {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: var(--frost);
  position: relative;
}
.eval-stage.active {
  border-color: var(--act);
  background: rgba(255,255,255,0.12);
}
.eval-stage .es-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
}
.eval-stage .es-detail { font-size: 13px; color: var(--mute); margin-top: 4px; line-height: 1.3; }

.arena-rail { margin: 0; }
.arena-card { padding: 12px 14px; }
.arena-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.arena-slots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.arena-slot, .arena-empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--frost);
  font-size: 14px;
  color: var(--mute);
}
.as-top { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.arena-chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--mute);
}
.arena-chip.model { color: var(--ink); }
.arena-chip.pending-jev { color: var(--mute); }
.arena-chip.jev { color: var(--live); border-color: rgba(143,214,168,0.4); }
.as-choice { font-size: 15px; color: var(--ink); font-weight: 700; }
.as-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.econ-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.econ-card { padding: 12px; min-height: 100px; background: var(--raised); backdrop-filter: none; }
.econ-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.econ-big, .fund-ticker-link {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  font-weight: 900;
  color: var(--fund);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.econ-copy, .econ-note {
  margin-top: 4px;
  font-size: 14px;
  color: var(--mute);
  line-height: 1.4;
}
.econ-loop {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
}
.split-bars {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  margin-top: 4px;
}
.split-bars span { display: block; height: 100%; }
.split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.split-legend i {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.pending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 96px;
  overflow: auto;
}
.pending-list li {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--line-strong);
  padding-left: 8px;
}
.pending-list .st {
  display: block;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- Pressure --- */
.pressure-rail { margin: 0; }
.pressure-card { padding: 12px 14px; }
.pressure-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pressure-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pressure-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143,214,168,0.5), var(--live));
  transition: width 0.6s var(--ease);
}
.pressure-card[data-lane="paid"] .pressure-fill {
  background: linear-gradient(90deg, rgba(255,213,106,0.45), var(--fund));
}
.pressure-card[data-lane="degraded"] .pressure-fill {
  background: linear-gradient(90deg, rgba(255,122,144,0.4), rgba(255,122,144,0.75));
}
.pressure-card[data-lane="paid"] .pressure-pill { color: var(--fund); border-color: rgba(255,213,106,0.4); }
.pressure-card[data-lane="degraded"] .pressure-pill { color: #ff7a90; border-color: rgba(255,122,144,0.4); }
.pressure-copy {
  margin: 8px 0 0;
  font-size: var(--type);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}
.pressure-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- Presence --- */
.presence-rail { display: flex; flex-direction: column; gap: 8px; }
.presence-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
}
.presence {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.agent-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--raised);
  min-height: 78px;
  transition: border-color 160ms var(--ease);
}
.agent-card.spawn {
  border-style: dashed;
  background: rgba(255,255,255,0.03);
}
.agent-card .aname {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.agent-card .avibe {
  margin-top: 5px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.35;
}
.agent-card .astatus {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
}
.agent-card.typing, .agent-card.thinking {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.agent-card.typing .astatus,
.agent-card.thinking .astatus { color: var(--ink); }
.agent-card.just-spawned { animation: spawnIn 420ms var(--ease); }
@keyframes spawnIn {
  from { opacity: 0.35; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* LOOPER staged seat — fuchsia identity (not chrome) */
.agent-card.staged,
.agent-card.looper-seat {
  border-style: dashed !important;
  border-color: rgba(232, 121, 249, 0.65) !important;
  background: linear-gradient(160deg, rgba(232, 121, 249, 0.08), var(--raised));
  box-shadow: inset 0 0 0 1px rgba(232, 121, 249, 0.12);
}
.agent-card.staged .aname,
.agent-card.looper-seat .aname { color: var(--seat-looper) !important; }
.agent-card.staged .astatus,
.agent-card.looper-seat .astatus { color: #f0abfc; }
.agent-card.staged .avibe,
.agent-card.looper-seat .avibe { color: rgba(232, 121, 249, 0.78); }

/* --- Desk grid / feed --- */
.desk-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  min-height: 42vh;
}
.feed-wrap, .work-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--raised);
  min-height: 40vh;
}
.feed-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.feed-label, .work-label {
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.feed-label-row .feed-label { padding: 0; border: 0; }
.feed-actions { display: flex; gap: 6px; }
.feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.work-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--void);
}
.panel-h {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
  font-weight: 700;
}
.panel ul { list-style: none; }
.panel li {
  font-size: 14px;
  line-height: 1.4;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ink);
}
.panel li:last-child { border-bottom: 0; }
.panel .meta {
  display: block;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.artifacts-panel { border-color: var(--line-strong); }
.art-count {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
  background: var(--frost);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 999px;
}
.art {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--frost);
}
.art .kind {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.art .title {
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
  color: var(--ink);
}
.art .body {
  margin-top: 4px;
  font-size: 14px;
  color: var(--mute);
  line-height: 1.45;
  white-space: pre-wrap;
  max-height: 9.5em;
  overflow: hidden;
}
.art .by {
  margin-top: 4px;
  font-size: 11px;
  color: var(--dim);
}
.art .receipt, .receipt {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fund);
  border-left: 2px solid rgba(255,213,106,0.45);
  padding-left: 8px;
}
.art .art-q {
  display: inline-flex;
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fund);
  border: 1px solid rgba(255,213,106,0.35);
  border-radius: 999px;
  padding: 1px 7px;
}
.art .art-sources { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.art .art-sources a {
  font-size: 12px;
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-strong);
}
.art .art-sources a:hover { color: var(--ink); }
.art-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid rgba(255,213,106,0.45);
  color: var(--fund);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.msg {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: start;
}
.msg .who {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding-top: 4px;
  text-transform: uppercase;
}
.msg .bubble {
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  word-break: break-word;
  color: var(--ink);
  border-left: 3px solid transparent;
  padding-left: 10px;
  border-radius: 0 10px 10px 0;
}
.msg[data-agent="director"] .bubble {
  border-left-color: var(--seat-director);
  background: linear-gradient(90deg, rgba(255,61,110,0.10), transparent 70%);
}
.msg[data-agent="scout"] .bubble {
  border-left-color: var(--seat-scout);
  background: linear-gradient(90deg, rgba(0,229,255,0.10), transparent 70%);
}
.msg[data-agent="builder"] .bubble {
  border-left-color: var(--seat-builder);
  background: linear-gradient(90deg, rgba(184,255,46,0.10), transparent 70%);
}
.msg[data-agent="wire"] .bubble {
  border-left-color: var(--seat-wire);
  background: linear-gradient(90deg, rgba(255,176,32,0.10), transparent 70%);
}
.msg[data-agent="looper"] .bubble {
  border-left-color: var(--seat-looper);
  background: linear-gradient(90deg, rgba(244,114,182,0.10), transparent 70%);
}
.msg[data-agent^="spawn"] .bubble,
.msg.spawn .bubble {
  border-left-color: #ff6bcb;
  background: linear-gradient(90deg, rgba(255,107,203,0.10), transparent 70%);
}
.msg.action .bubble {
  font-size: 15px;
  font-weight: 600;
  color: var(--mute);
  border-left: 2px solid var(--line-strong);
  padding-left: 8px;
}
.msg.heartbeat .bubble {
  color: var(--dim) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.msg .meta {
  grid-column: 2;
  font-size: 11px;
  color: var(--dim);
  margin-top: -2px;
}
.msg.is-new { animation: msgIn 280ms var(--ease); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.msg.streaming .bubble .cursor {
  display: inline-block;
  width: 0.4em;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.model-chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: 1px 7px;
  margin-bottom: 4px;
  background: var(--frost);
}
.msg-head { margin-bottom: 2px; }
.trace-slot { margin-top: 4px; }
.trace-drawer { font-size: 13px; color: var(--dim); }
.trace-drawer summary { cursor: pointer; color: var(--mute); }
.trace-body {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 4px;
  background: var(--void);
}
.feed-img, .art-img {
  display: none; /* privacy: renderImages false */
}

.foot {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.sep { opacity: 0.4; }

body.is-degraded #degraded-badge { display: inline-flex !important; }
body.inject-flash .knock-btn { filter: brightness(1.08); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-bottom: 8px; }
.socials a { color: var(--fund); text-decoration: none; font: 600 12px ui-monospace, monospace; }
.socials a:hover { color: var(--ink); text-decoration: underline; }

.fund-contract {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  color: var(--dim); font-size: 11px;
}
.fund-contract a { color: var(--mute); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.fund-contract button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--frost);
  color: var(--dim);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

/* Mobile-first ≤720 */
@media (max-width: 720px) {
  #app { padding: 12px 10px 36px; gap: 10px; }
  .econ-strip, .lab-rail--secondary, .arena-slots, .eval-stages, .desk-grid {
    grid-template-columns: 1fr;
  }
  .eval-stages { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .desk-grid { display: flex; flex-direction: column; }
  .feed-wrap { order: 1; }
  .work-wrap { order: 2; min-height: 36vh; display: block !important; }
  .dig-row { flex-direction: column; }
  .dig-btn, .knock-btn { width: 100%; }
  .cta-rail {
    position: static;
    margin-top: 2px;
  }
  .cta-inner { gap: 8px; }
  .cta-btn, .cta-link[data-cta] { display: none !important; }
  .cta-sep { display: none; }
  .runway-pot { margin-top: 8px; }
  .presence { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .runway-ca-row { flex-direction: column; align-items: stretch; }
  .runway-trade, .runway-copy-btn { width: 100%; }
  .ticker-track { animation-duration: 48s; }
}

@media (max-width: 420px) {
  .msg { grid-template-columns: 52px 1fr; }
  .badge { font-size: 9px; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .badge.live i, #flash.on, .dig-btn.pulse, .knock-btn.pulse,
  .agent-card.just-spawned, .msg.is-new, .battery-fill {
    animation: none !important;
    transition: none !important;
  }
}


/* live25 participate punch — demoted live26 (kept inert) */
.participate-pill { letter-spacing: 0.08em; }
.dig-btn, .knock-btn {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dig-outcome-card, .knock-outcome-card {
  border-style: solid;
  animation: outcomePop 280ms var(--ease);
}
@keyframes outcomePop {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.vote-btn { font-weight: 650; }
.agent-card.looper-seat .astatus::after {
  content: " · watches";
  opacity: 0.7;
  font-weight: 500;
}

/* live26/27 — spectator Dig/Knock/Vote demoted; hide if leftover markup */
.participate-rail,
.dig-form,
.knock-row,
.vote-panel,
.cta-btn,
.cta-link[data-cta] {
  display: none !important;
}


/* live28 — quiet frost steer vote + flywheel strips (no Dig/Knock arcade) */
.steer-vote {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--frost);
}
.steer-vote[hidden] { display: none !important; }
.steer-vote-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.steer-vote-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.steer-vote-prompt {
  font-size: 15px;
  color: var(--mute);
  font-weight: 600;
}
.steer-vote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.steer-vote-btn {
  min-height: 40px;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.steer-vote-btn:hover { border-color: rgba(255,255,255,0.35); }
.steer-vote-btn.selected,
.steer-vote-btn:active {
  background: var(--act, #fff);
  color: var(--on-act, #0a0a0a);
  border-color: transparent;
}
.steer-vote-btn:disabled { opacity: 0.5; cursor: wait; }
.steer-vote-tally {
  margin-top: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.flywheel-strip {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 6px;
}
.fly-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.35;
}
.fly-k {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  padding-top: 2px;
}
.fly-v { color: var(--mute); }


/* live29 — TOPICS dig board (1kpapers-style, frost, quiet) */
.topics-card {
  padding: 14px;
}
.topics-hook {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--mute);
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.topic-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--frost);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 160ms var(--ease, ease), border-color 160ms var(--ease, ease), color 160ms var(--ease, ease);
}
.topic-chip .tc-count {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--dim);
  font-weight: 500;
}
.topic-chip:hover {
  border-color: var(--line-strong);
}
.topic-chip.is-active {
  background: var(--act, #fff);
  color: var(--on-act, #0a0a0a);
  border-color: transparent;
}
.topic-chip.is-active .tc-count {
  color: rgba(10,10,10,0.55);
}
.topic-chip.is-hour:not(.is-active) {
  border-color: rgba(143,214,168,0.45);
  box-shadow: inset 0 0 0 1px rgba(143,214,168,0.15);
}
.topic-digs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
}
.topic-dig {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.topic-dig-title {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}
.topic-dig-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
}
.topic-dig-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--frost);
  color: var(--mute);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.topic-dig-empty {
  padding: 14px;
  color: var(--dim);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
@media (max-width: 720px) {
  .topic-digs { max-height: 280px; }
}


/* ── live31 money strip + battle board + looper art ── */
.money-strip {
  margin: 8px 0 10px;
  padding: 12px 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.money-h {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.money-label {
  font: 800 11px ui-monospace, monospace;
  letter-spacing: 0.14em; color: var(--fund);
}
.money-pill {
  font: 700 10px ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: var(--live);
  border: 1px solid rgba(143,214,168,0.35);
  border-radius: 999px; padding: 2px 8px;
}
.money-split {
  margin-left: auto;
  font: 700 11px ui-monospace, monospace;
  color: var(--mute);
}
.money-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.money-cell {
  padding: 10px 10px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  min-width: 0;
}
.money-cell .mk {
  display: block;
  font: 700 10px ui-monospace, monospace;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 4px;
}
.money-cell .mv {
  display: block;
  font: 900 clamp(1.05rem, 3.2vw, 1.45rem) ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.money-cell[data-k="brain"] .mv { color: var(--fund); }
.money-cell[data-k="fees"] .mv.dust { color: #ff9f43; }
.money-cell[data-k="fees"] .mv.ready { color: var(--live); }
.money-cell .ms {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.3;
}
.money-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.4;
}

.battle-board {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(184,255,46,0.06));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.battle-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.battle-title {
  font: 900 13px ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.battle-leader {
  font: 800 11px ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: var(--fund);
}
.battle-sub {
  margin: 4px 0 10px;
  font-size: 12px;
  color: var(--mute);
}
.battle-crews {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.battle-crew {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.28);
}
.battle-crew[data-crew="feedogs"] { border-color: rgba(0,229,255,0.35); }
.battle-crew[data-crew="braincrew"] { border-color: rgba(184,255,46,0.35); }
.battle-crew.winning {
  box-shadow: 0 0 0 1px rgba(255,213,106,0.45), 0 0 24px rgba(255,213,106,0.12);
}
.bc-name {
  font: 900 14px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
}
.battle-crew[data-crew="feedogs"] .bc-name { color: #00e5ff; }
.battle-crew[data-crew="braincrew"] .bc-name { color: #b8ff2e; }
.bc-tag { font-size: 12px; color: var(--mute); margin-top: 2px; }
.bc-pts {
  margin-top: 8px;
  font: 900 clamp(1.4rem, 4vw, 1.9rem) ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.bc-meta { margin-top: 4px; font-size: 11px; color: var(--dim); font-family: ui-monospace, monospace; }
.battle-vs {
  align-self: center;
  font: 900 12px ui-monospace, monospace;
  color: var(--dim);
  letter-spacing: 0.12em;
}
.battle-event {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--mute);
  min-height: 1.2em;
}

.agent-card.looper-seat {
  position: relative;
  overflow: hidden;
}
.agent-card.looper-seat .looper-art {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(244,114,182,0.45);
  float: right;
  margin: 0 0 6px 8px;
  background: #111;
}
.agent-card.looper-seat .aname .tok {
  font-weight: 700;
  opacity: 0.85;
  font-size: 0.85em;
  margin-left: 4px;
}
.agent-card.crew-feedogs { box-shadow: inset 0 0 0 1px rgba(0,229,255,0.18); }
.agent-card.crew-braincrew { box-shadow: inset 0 0 0 1px rgba(184,255,46,0.18); }

@media (max-width: 820px) {
  .money-grid { grid-template-columns: repeat(2, 1fr); }
  .battle-crews { grid-template-columns: 1fr; }
  .battle-vs { display: none; }
}


/* live33 — TRADE $CAGE CTA · FUND/TREASURY/COMPUTE USD + Jev action-picker · Knock gone */
.fund-usd-row, .compute-usd-row {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  margin: 6px 0 4px;
}
.fund-usd-row .fu, .compute-usd-row .cu {
  font: 600 12px ui-monospace, monospace;
  color: var(--mute);
}
.fund-usd-row .fu em, .compute-usd-row .cu { font-style: normal; color: var(--dim); }
.fund-usd-row .fu b, .compute-usd-row .cu b {
  color: var(--fund); font-weight: 900; margin-left: 4px;
}
.fund-usd-row .fu b.dust, #fund-fees.dust { color: #ff9f43; }
.treasury-usd {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 8px;
}
.treasury-usd .tu {
  font: 600 11px ui-monospace, monospace;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 5px;
}
.treasury-usd .tu i {
  width: 8px; height: 8px; border-radius: 2px; display: inline-block;
}
.treasury-usd .tu b { color: var(--ink); font-weight: 800; }
.treasury-usd .tu-unit {
  flex-basis: 100%;
  font-size: 10px; color: var(--dim); margin-top: 2px;
}
.pressure-usd {
  font: 700 11px ui-monospace, monospace;
  color: var(--fund);
  letter-spacing: 0.02em;
}
.knock-btn { display: none !important; } /* buried — lounge first */

.jev-signals {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.jev-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.jev-label {
  font: 800 11px ui-monospace, monospace;
  letter-spacing: 0.12em; color: var(--live);
}
.jev-pill {
  font: 700 10px ui-monospace, monospace;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
  color: var(--mute);
}
.jev-pill.jev { color: var(--live); border-color: rgba(143,214,168,0.45); }
.jev-pill.pending-jev { color: var(--mute); }
.jev-hook { margin: 0 0 10px; font-size: 13px; color: var(--mute); line-height: 1.4; }
.jev-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.jev-cell {
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  text-align: center;
}
.jev-cell .jk {
  display: block;
  font: 700 9px ui-monospace, monospace;
  letter-spacing: 0.1em; color: var(--dim);
  margin-bottom: 3px;
}
.jev-cell .jv {
  display: block;
  font: 900 1.05rem ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.flywheel-strip { display: grid; gap: 4px; }
.fly-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 12px;
  align-items: baseline;
}
.fly-k { font: 800 10px ui-monospace, monospace; letter-spacing: 0.08em; color: var(--dim); }
.fly-v { color: var(--mute); line-height: 1.35; }
@media (max-width: 820px) {
  .jev-grid { grid-template-columns: repeat(3, 1fr); }
}


/* live33 trade-buy */
.fund-trade-row, .money-trade-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
a.cta-trade, a.trade-buy, a#cta-trade, a#runway-trade, a#money-trade {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
  text-decoration: none !important;
}
a.trade-buy-alt.runway-trade, a#runway-trade {
  font-size: 12px;
  padding: 8px 14px;
}
.jev-label { letter-spacing: 0.1em; }


/* live36m — EXTERNAL ENCOUNTERS can't be missed (hard-refresh punch) */
.encounters-board {
  position: relative;
  margin: 14px 0 18px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 2px solid #00e5ff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,61,110,0.28), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(0,229,255,0.22), transparent 50%),
    linear-gradient(135deg, rgba(0,229,255,0.14), rgba(184,255,46,0.08) 55%, rgba(10,10,12,0.95));
  box-shadow:
    0 0 0 1px rgba(255,61,110,0.35),
    0 0 28px rgba(0,229,255,0.45),
    0 16px 48px rgba(0,0,0,0.45),
    inset 0 0 40px rgba(0,229,255,0.06);
  animation: encounters-pulse 2.6s ease-in-out infinite;
  overflow: hidden;
}
.encounters-board::before {
  content: "LIVE · EXTERNAL";
  position: absolute;
  top: 10px;
  right: 14px;
  font: 900 10px ui-monospace, monospace;
  letter-spacing: 0.14em;
  color: #0a0a0a;
  background: #b8ff2e;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(184,255,46,0.55);
}
.encounters-board .battle-title {
  color: #00e5ff;
  letter-spacing: 0.1em;
  font-size: 14px;
  text-shadow: 0 0 18px rgba(0,229,255,0.55);
}
.encounters-board #encounters-pill {
  background: #ff3d6e;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 14px rgba(255,61,110,0.55);
}
.encounters-board #encounters-sub {
  color: #e8ffe8;
  font-weight: 600;
}
.encounters-board a {
  color: #b8ff2e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.encounters-board a:hover { color: #fff; }
@keyframes encounters-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,61,110,0.3), 0 0 22px rgba(0,229,255,0.35), 0 16px 48px rgba(0,0,0,0.45); }
  50% { box-shadow: 0 0 0 1px rgba(0,229,255,0.55), 0 0 36px rgba(255,61,110,0.5), 0 16px 48px rgba(0,0,0,0.45); }
}
