@font-face {
  font-family: "integralcf";
  src: url("https://www.geoff.ai/_next/static/media/cfextrabold-s.p.0ts02z8o9a7nh.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Geoff public brand tokens (site CSS / meta) */
  --bg: #0b0b0e;
  --bg-elevated: rgba(24, 24, 27, 0.86);
  --bg-panel: linear-gradient(165deg, rgba(24, 24, 27, 0.94), rgba(11, 11, 14, 0.96));
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(39, 39, 42, 0.95);
  --line-strong: rgba(255, 214, 10, 0.28);
  --accent: #ffd60a;
  --accent-soft: rgba(255, 214, 10, 0.12);
  --accent-glow: rgba(255, 214, 10, 0.22);
  --green: #60a5fa;
  --green-bright: #93c5fd;
  --green-soft: rgba(59, 130, 246, 0.14);
  --green-glow: rgba(59, 130, 246, 0.28);
  --heat: #34d399;
  --heat-bright: #6ee7b7;
  --cyan: #67e8f9;
  --danger: #ef4444;
  --warn: #facc15;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-display: "integralcf", "Arial Black", Impact, sans-serif;
  --font-ui: Inter, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --grid-line: rgba(255, 214, 10, 0.035);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

.matrix {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 10% -8%, rgba(255, 214, 10, 0.1), transparent 58%),
    radial-gradient(ellipse 40% 36% at 92% 4%, rgba(59, 130, 246, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(11, 11, 14, 0.2), rgba(11, 11, 14, 0.78) 42%, #0b0b0e 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      var(--grid-line) 31px,
      var(--grid-line) 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 31px,
      var(--grid-line) 31px,
      var(--grid-line) 32px
    );
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 3px
  );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(280px, 1.5fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 14, 0.88);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 214, 10, 0.06);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0b0b0e;
  background: var(--accent);
  border: 1px solid rgba(255, 214, 10, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 24px var(--accent-glow);
}

.brand-mark svg { width: 18px; height: 18px; }

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
  font-weight: 700;
}

.brand-short { display: none; }

.tag {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-banner {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 214, 10, 0.08), transparent 42%),
    var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 214, 10, 0.08);
}

.brand-banner-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-banner-line {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.brand-banner-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.gauge-inline {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02) 55%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.tube-h {
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

.mercury-h {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.temp-block {
  display: grid;
  line-height: 1.05;
  text-align: right;
}

.temp-block strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.temp-block span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spark { width: 110px; height: 32px; opacity: 0.95; }

.pump-panel {
  overflow: hidden;
}

.pump-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.pump-stat {
  display: grid;
  gap: 0.12rem;
  min-width: 5.5rem;
  padding: 0.48rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.04);
}

.pump-stat em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pump-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--green-bright);
}

.pump-stat.hot strong { color: #fda4af; }

.pump-chart-wrap {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.12), transparent 42%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(74, 222, 128, 0.04) 11px,
      rgba(74, 222, 128, 0.04) 12px
    ),
    rgba(0, 0, 0, 0.42);
  padding: 0.65rem 0.5rem 0.4rem;
  overflow: hidden;
}

.pump-chart-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(110, 231, 183, 0.07) 48%, transparent 100%);
  animation: tapeScan 7.5s linear infinite;
  opacity: 0.7;
}

@keyframes tapeScan {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}

.pump-chart {
  width: 100%;
  height: auto;
  display: block;
  min-height: 120px;
}

.pump-bar {
  transition: opacity 200ms ease;
}

.pump-chart-wrap:hover .pump-bar { opacity: 0.55; }
.pump-chart-wrap:hover .pump-bar:hover { opacity: 1; }

.pump-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.45rem;
  padding: 0 0.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.pump-legend i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.pump-legend .lg-heat { background: #34d399; }
.pump-legend .lg-agent { background: #67e8f9; border-radius: 999px; }
.pump-legend .lg-crazy { background: linear-gradient(90deg, #fb7185, #fbbf24); }

.pump-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.heat-panel {
  overflow: hidden;
}

.heat-shell {
  --heat-cell: 12px;
  --heat-gap: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.1), transparent 45%),
    rgba(0, 0, 0, 0.42);
  padding: 0.85rem 0.9rem 0.7rem;
  overflow-x: auto;
}

.heat-months {
  display: grid;
  grid-auto-flow: column;
  gap: var(--heat-gap);
  margin: 0 0 0.35rem calc(1.7rem + var(--heat-gap));
  min-width: max-content;
  height: 0.95rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heat-months span {
  white-space: nowrap;
}

.heat-body {
  display: flex;
  align-items: start;
  gap: var(--heat-gap);
  min-width: max-content;
}

.heat-doy {
  display: grid;
  grid-template-rows: repeat(7, var(--heat-cell));
  gap: var(--heat-gap);
  width: 1.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  align-content: start;
}

.heat-doy span {
  display: flex;
  align-items: center;
  height: var(--heat-cell);
  line-height: 1;
}

.heat-grid {
  display: grid;
  gap: var(--heat-gap);
  align-content: start;
}

.heat-week {
  display: grid;
  grid-template-rows: repeat(7, var(--heat-cell));
  gap: var(--heat-gap);
}

.heat-cell {
  width: var(--heat-cell);
  height: var(--heat-cell);
  border-radius: 2px;
  border: 1px solid rgba(74, 222, 128, 0.08);
  padding: 0;
  margin: 0;
  appearance: none;
  display: block;
  cursor: default;
  transition: transform 120ms ease, outline-color 120ms ease;
}

button.heat-cell {
  cursor: help;
}

button.heat-cell:hover,
button.heat-cell:focus-visible {
  transform: scale(1.18);
  outline: 1px solid rgba(110, 231, 183, 0.7);
  outline-offset: 1px;
  z-index: 1;
  position: relative;
}

.heat-cell.pad {
  visibility: hidden;
  border-color: transparent;
  background: transparent;
}

.heat-cell.lvl0 { background: rgba(52, 211, 153, 0.07); }
.heat-cell.lvl1 { background: rgba(16, 185, 129, 0.38); border-color: rgba(52, 211, 153, 0.22); }
.heat-cell.lvl2 { background: rgba(16, 185, 129, 0.62); border-color: rgba(52, 211, 153, 0.32); box-shadow: 0 0 8px rgba(52, 211, 153, 0.15); }
.heat-cell.lvl3 {
  background: rgba(110, 231, 183, 0.88);
  border-color: rgba(110, 231, 183, 0.5);
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.35);
}
.heat-cell.lvl4 {
  background: linear-gradient(135deg, #fb7185, #fbbf24 55%, #6ee7b7);
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
  animation: cubePulse 2.4s ease-in-out infinite;
}

@keyframes cubePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.heat-scale {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heat-scale i {
  width: var(--heat-cell);
  height: var(--heat-cell);
  border-radius: 2px;
  border: 1px solid rgba(74, 222, 128, 0.12);
  display: inline-block;
}

.heat-scale .lvl0 { background: rgba(52, 211, 153, 0.08); }
.heat-scale .lvl1 { background: rgba(16, 185, 129, 0.35); }
.heat-scale .lvl2 { background: rgba(16, 185, 129, 0.58); }
.heat-scale .lvl3 { background: rgba(52, 211, 153, 0.82); }
.heat-scale .lvl4 { background: linear-gradient(135deg, #fb7185, #fbbf24 55%, #4ade80); }

@media (max-width: 760px) {
  .heat-shell {
    --heat-cell: 10px;
    --heat-gap: 2px;
    padding: 0.65rem 0.6rem 0.55rem;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 214, 10, 0.35);
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.22), rgba(255, 214, 10, 0.06));
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn svg { width: 14px; height: 14px; color: var(--accent); }

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 10, 0.65);
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.32), rgba(255, 214, 10, 0.1));
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

a.btn {
  text-decoration: none;
}

.btn-market {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-market:hover {
  border-color: rgba(74, 222, 128, 0.45);
}

.btn-label-short { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #64748b;
}

.pill.live::before {
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.pill.error::before { background: var(--danger); }

.pill.trust.shared {
  border-color: rgba(74, 222, 128, 0.45);
  color: var(--green-bright);
}

.pill.trust.shared::before {
  background: var(--green-bright);
}

.pill.trust.local {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}

.pill.trust.local::before {
  background: #fbbf24;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

.ico, .ico-wrap svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ico-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0b0b0e;
  background: var(--accent);
  border: 1px solid rgba(255, 214, 10, 0.45);
  flex: 0 0 auto;
}

.ico-wrap.sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.ico-wrap.sm svg { width: 14px; height: 14px; }

.shell {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 3.75rem;
}

.deck-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.55rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deck-label span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border: 1px solid rgba(255, 214, 10, 0.35);
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  letter-spacing: 0.04em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 1200px) {
  .metrics {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.metric {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(24, 24, 27, 0.96), rgba(11, 11, 14, 0.94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem 0.75rem;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.18rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 214, 10, 0.05);
  animation: rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.metric::before,
.metric::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(255, 214, 10, 0.45);
  pointer-events: none;
}

.metric::before {
  top: 5px;
  left: 5px;
  border-right: 0;
  border-bottom: 0;
}

.metric::after {
  right: 5px;
  bottom: 5px;
  border-left: 0;
  border-top: 0;
}

.metric:hover {
  border-color: rgba(255, 214, 10, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 214, 10, 0.08);
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.metric .k {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  font-family: var(--font-mono);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-shadow: none;
}

.metric em {
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.signal-deck {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  align-items: stretch;
}

.signal-deck > .panel {
  margin-bottom: 0;
  height: 100%;
}

@media (max-width: 980px) {
  .signal-deck {
    grid-template-columns: 1fr;
  }
}

.bar {
  margin-top: 0.4rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #059669, var(--green-bright));
  transition: width 600ms ease;
}

.story {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.95rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(110, 231, 183, 0.08);
  animation: rise 480ms ease both;
  position: relative;
  overflow: hidden;
}

.story::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #3b82f6);
  opacity: 0.9;
}

.story.tone-good { border-color: rgba(255, 214, 10, 0.35); }
.story.tone-warn { border-color: rgba(250, 204, 21, 0.45); }
.story.tone-muted { border-color: var(--line); }

.story-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green-bright);
  background: var(--green-soft);
  border: 1px solid var(--line-strong);
}

.story-icon svg { width: 20px; height: 20px; }

.story-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
}

.story #storySentence {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 48rem;
}

.story-temp {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 48rem;
}

.coverage-strip {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
}

.coverage-strip > summary.coverage-head {
  cursor: pointer;
  list-style: none;
}

.coverage-strip > summary.coverage-head::-webkit-details-marker {
  display: none;
}

.coverage-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.coverage-head #coverageMeta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.cov-chip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: var(--muted);
}

.cov-chip.live {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.4);
}

.cov-chip.skipped {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
}

.cov-chip.fail {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.4);
}

.coverage-notes {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.coverage-notes li {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.chip.guessed {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
}

.agent-desk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 8, 5, 0.55));
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  animation: rise 480ms ease both;
}

.agent-desk[hidden] { display: none; }

.agent-desk.status-busy,
.agent-desk.status-busy_cluster {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(5, 8, 5, 0.55));
}

.agent-desk.status-cluster {
  border-color: rgba(74, 222, 128, 0.4);
}

.agent-desk.status-quiet {
  opacity: 0.92;
}

.agent-desk-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green-bright);
  background: var(--green-soft);
  border: 1px solid var(--line-strong);
}

.agent-desk-icon svg { width: 20px; height: 20px; }

.agent-desk h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.agent-desk #agentSentence {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 48rem;
}

.agent-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.agent-signal {
  display: grid;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  min-width: 7rem;
  background: rgba(0, 0, 0, 0.25);
}

.agent-signal em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.agent-signal strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-bright);
}

.agent-cluster {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.agent-cluster li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
}

.agent-disclaimer {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  line-height: 1.4;
}

.feed-hint {
  margin: -0.15rem 0 0.55rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.panel {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 0.95rem 1rem 1.05rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(110, 231, 183, 0.06);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

/* ---- On-demand horsepower rack ---- */
.hp-panel { overflow: hidden; }

.price-panel { overflow: hidden; }

.cue-rail {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 900px) {
  .cue-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.cue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  margin-bottom: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(24, 24, 27, 0.95), rgba(11, 11, 14, 0.92));
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cue:has(.cue-text.hot) {
  border-color: rgba(255, 214, 10, 0.45);
  box-shadow: 0 0 22px rgba(255, 214, 10, 0.1), inset 0 0 0 1px rgba(255, 214, 10, 0.08);
}

.cue-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cue-text {
  margin: 0;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-text.hot {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 214, 10, 0.28);
}

.cue-link {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.cue-link:hover {
  text-decoration: underline;
}

.panel.fold {
  padding-block: 0.55rem;
}

.panel.fold > :not(summary) {
  margin-inline: 0;
}

.fold-summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
}

.fold-summary::-webkit-details-marker {
  display: none;
}

.fold-summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 700;
  margin-left: auto;
  padding-left: 0.75rem;
}

details[open] > .fold-summary::after {
  content: "−";
}

/* Dense value sheet — same bullish content, tighter packing */
.price-dense .price-sentence {
  margin: -0.1rem 0 0.55rem;
  font-size: 0.95rem;
  max-width: 44rem;
}

.price-dense .price-wins {
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.price-dense .price-win {
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  gap: 0.15rem;
}

.price-dense .price-win strong {
  font-size: 0.78rem;
}

.price-dense .price-win span {
  font-size: 0.68rem;
  line-height: 1.3;
}

.price-dense .price-plans {
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.price-dense .price-tier {
  padding: 0.7rem 0.7rem 0.65rem;
  border-radius: 14px;
  gap: 0.18rem;
}

.price-dense .price-tier h3 {
  font-size: 0.95rem;
  margin: 0.05rem 0 0;
}

.price-dense .price-amount {
  font-size: 1.35rem;
}

.price-dense .price-tokens {
  font-size: 0.72rem;
}

.price-dense .price-pitch {
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0.1rem 0 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-dense .price-yield-mini {
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.price-dense .price-yield-mini span {
  font-size: 0.68rem;
}

.price-dense .price-yield {
  margin-bottom: 0.65rem;
}

.price-dense .price-yield-head {
  margin-bottom: 0.4rem;
}

.price-dense .price-yield-head strong {
  font-size: 0.88rem;
}

.price-dense .price-yield-grid {
  gap: 0.4rem;
}

.price-dense .price-yield-grid article {
  padding: 0.55rem 0.65rem;
}

.price-dense .price-sheet-wrap {
  margin-bottom: 0.55rem;
}

.price-dense .apple-sheet th,
.price-dense .apple-sheet td {
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
}

.price-dense .price-limits {
  margin-bottom: 0.35rem;
}

.price-dense .price-limits-grid {
  gap: 0.35rem;
}

.price-dense .price-limit {
  padding: 0.45rem 0.55rem;
  font-size: 0.7rem;
}

.price-sentence {
  margin: -0.15rem 0 0.85rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.35;
  max-width: 40rem;
}

.price-wins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.price-win {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02));
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.price-win strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: var(--green-bright);
}

.price-win span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.price-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.price-tier {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  align-content: start;
}

.price-tier.highlighted {
  border-color: rgba(74, 222, 128, 0.45);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.12);
}

.price-badge {
  margin: 0;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

.price-tier h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-amount {
  margin: 0;
  color: var(--green-bright);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-tokens {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-tokens span {
  color: var(--ink);
  font-weight: 700;
}

.price-pitch {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  min-height: 2.4em;
}

.price-yield-mini {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.price-yield-mini span {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-yield-mini em {
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  /* Keep mixed case — "Videos (5 sec)" must not become "5S VIDEO" */
  text-transform: none;
}

.price-yield {
  margin-bottom: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
}

.price-yield-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.65rem;
}

.price-yield-head strong {
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.price-yield-head span {
  color: var(--muted);
  font-size: 0.72rem;
}

.price-yield-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.price-yield-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.2rem;
}

.price-yield-grid em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.price-yield-grid strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.price-yield-grid p {
  margin: 0.2rem 0 0;
  display: grid;
  gap: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.price-yield-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.price-sheet-wrap {
  overflow-x: auto;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.apple-sheet {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.78rem;
}

.apple-sheet th,
.apple-sheet td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.apple-sheet thead th {
  position: sticky;
  top: 0;
  background: rgba(8, 12, 8, 0.96);
  z-index: 1;
}

.apple-sheet th:first-child,
.apple-sheet td:first-child {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  width: 34%;
}

.apple-sheet .sh-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.apple-sheet .sh-price {
  display: block;
  margin-top: 0.12rem;
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.apple-sheet .hi {
  background: rgba(52, 211, 153, 0.06);
}

.apple-sheet .sheet-metric td strong {
  color: var(--green-bright);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.mark {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  font-weight: 700;
}

.mark.yes { color: var(--green-bright); font-size: 1rem; }
.mark.no { color: #4b5563; }

.price-limits-head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.price-limits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.price-limit {
  display: grid;
  gap: 0.12rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.7rem;
  color: var(--muted);
}

.price-limit.hi {
  border-color: rgba(74, 222, 128, 0.35);
}

.price-limit strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.price-source {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.price-source a {
  color: var(--green-bright);
  text-decoration: none;
}

.price-source a:hover { text-decoration: underline; }

.hp-sentence {
  margin: -0.15rem 0 0.85rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 46rem;
}

.hp-score {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hp-stat {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.hp-stat.wide { grid-column: span 2; }

.hp-stat em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-bright);
  font-variant-numeric: tabular-nums;
}

.hp-layer {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.hp-layer.muted { opacity: 0.92; }

.hp-layer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.hp-layer-label span {
  display: block;
  color: var(--green);
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
}

.hp-compute-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.hp-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.2rem;
}

.hp-pill.on { border-color: rgba(74, 222, 128, 0.28); }
.hp-pill.warn { border-color: rgba(251, 113, 133, 0.4); }
.hp-pill.busy { border-color: rgba(251, 191, 36, 0.45); }

.hp-pill em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-pill strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hp-pill span {
  color: var(--muted);
  font-size: 0.7rem;
}

.bar.tight {
  height: 4px;
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.bar.tight i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #059669, var(--green-bright));
}

.hp-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hp-lane {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
}

.hp-lane.on {
  border-color: rgba(74, 222, 128, 0.35);
  background:
    linear-gradient(160deg, rgba(16, 185, 129, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.22);
}

.hp-lane.off { opacity: 0.48; }

.hp-lane header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
}

.hp-lane h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hp-lane header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.hp-switch {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.hp-switch.on {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(16, 185, 129, 0.12);
}

.hp-switch.off {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.35);
}

.hp-lane-meta {
  margin: 0.55rem 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--green);
  letter-spacing: 0.04em;
}

.chips.dense {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.chips.dense .chip {
  font-size: 0.58rem;
  padding: 0.18rem 0.4rem;
}

.hp-brains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.hp-brain {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}

.hp-brain header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.hp-brain h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.hp-tag {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hp-tag.api { color: #86efac; }
.hp-tag.guess { color: #fde68a; }

.hp-brain p {
  margin: 0.35rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-tools-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.hp-tool-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.4rem;
}

.hp-tool {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
}

.hp-tool h3 { margin: 0; font-size: 0.78rem; }

.hp-tool span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--green);
  letter-spacing: 0.04em;
}

.hp-tool p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-blocked {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.4rem;
}

.hp-block {
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(251, 191, 36, 0.05);
}

.hp-block strong { display: block; font-size: 0.8rem; }

.hp-block span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.empty.soft { color: var(--muted); font-size: 0.78rem; }

.raw-drawer .pieces,
.raw-drawer .model-cards,
.raw-drawer .widget-grid,
.raw-drawer .models { margin-top: 0.85rem; }

@media (max-width: 1100px) {
  .hp-score { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-compute-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-layer { grid-template-columns: 1fr; gap: 0.45rem; }
}

@media (max-width: 720px) {
  .hp-score,
  .hp-compute-grid,
  .hp-lanes,
  .hp-tools-top { grid-template-columns: 1fr; }
}

.pieces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.piece {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  min-height: 176px;
  background: rgba(255, 255, 255, 0.02);
  animation: rise 460ms ease both;
}

.piece.tone-good { border-color: rgba(74, 222, 128, 0.28); }
.piece.tone-warn { border-color: rgba(251, 113, 133, 0.35); }

.piece-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.piece .plain {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.piece h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.piece .status {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--green-bright);
}

.piece.tone-warn .status { color: #fda4af; }
.piece.tone-muted .status { color: var(--muted); }

.piece .meaning {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

.piece ul {
  margin: 0.55rem 0 0;
  padding: 0 0 0 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.cap-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.cap-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  animation: rise 480ms ease both;
}

.cap-group.off { opacity: 0.42; }

.cap-group-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cap-group h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cap-group .count {
  margin: 0.35rem 0 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cap-group p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.cap-group .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.55rem;
}

.board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  align-items: start;
}

.board .panel {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.board .feed-panel {
  /* Feed owns the tall scroll column; glossary stays content-height. */
  height: 100%;
  align-self: stretch;
}

.board .panel-head { flex: 0 0 auto; }
.board .feed-hint { flex: 0 0 auto; }

.feed {
  display: grid;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-height: 480px;
  max-height: 640px;
  overflow: auto;
}

.queue-strip {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.queue-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.queue-strip-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.queue-strip-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.queue-feed {
  max-height: 18rem;
  overflow: auto;
}

.event.queue-item {
  opacity: 0.88;
}

.badge.queue {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
}

.event {
  display: grid;
  grid-template-columns: auto 5.2rem 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 420ms ease both;
}

.event.rank-whisper { opacity: 0.72; }
.event.rank-note { opacity: 0.88; }
.event.float {
  margin: 0.15rem 0;
  padding: 0.85rem 0.75rem;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.event.rank-crazy.float {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.07);
}
.event.rank-spike.float {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.07);
}

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

@media (prefers-reduced-motion: reduce) {
  .matrix { opacity: 0.1; }
  .scanlines { display: none; }
  .metric,
  .story,
  .agent-desk,
  .panel { animation: none !important; }
  .metric:hover { transform: none; }
  .heat-cell.lvl4 { animation: none; }
  .pump-chart-wrap::before { animation: none; display: none; }
}

.event-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--green-bright);
  background: var(--green-soft);
  border: 1px solid var(--line);
}

.event-ico svg { width: 15px; height: 15px; }

.event time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding-top: 0.35rem;
}

.event h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.event .take {
  margin: 0.28rem 0 0;
  color: var(--ink);
  line-height: 1.4;
  font-size: 0.8rem;
}

.event .tech {
  margin: 0.28rem 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  white-space: nowrap;
  height: fit-content;
  background: rgba(255, 255, 255, 0.02);
}

.badge.high, .badge.crazy { border-color: rgba(251, 113, 133, 0.45); color: #fda4af; }
.badge.medium, .badge.spike { border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.badge.move { border-color: rgba(96, 165, 250, 0.4); color: #93c5fd; }
.badge.low, .badge.info, .badge.note, .badge.whisper {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}
.badge.whisper { opacity: 0.75; }

.model-cards {
  display: grid;
  gap: 0.55rem;
  max-height: 460px;
  overflow: auto;
}

.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  animation: rise 480ms ease both;
}

.model-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.model-card .title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.model-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.model-card .role {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.model-card .use {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

.model-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.55rem;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  min-height: 122px;
  background: rgba(255, 255, 255, 0.02);
  animation: rise 500ms ease both;
}

.widget-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.widget h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.widget .meta {
  margin-top: 0.35rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.widget p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board .glossary-panel {
  height: auto;
  max-height: none;
  position: sticky;
  top: 0.75rem;
}

.glossary-panel .glossary {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  align-content: start;
}

.glossary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.glossary article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.glossary h3 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.glossary p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.5rem;
  font-size: 0.66rem;
  background: rgba(52, 211, 153, 0.05);
  color: var(--ink);
}

.chip.cap { border-color: rgba(74, 222, 128, 0.25); color: #bbf7d0; }
.chip.type { border-color: rgba(52, 211, 153, 0.35); color: var(--green-bright); }

.models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.7rem;
}

.raw-drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
}

.raw-drawer summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.raw-drawer summary::-webkit-details-marker { display: none; }

.empty {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.4rem 0;
}

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-wins,
  .price-plans,
  .price-limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-yield-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "gauge gauge";
    gap: 0.55rem 0.65rem;
    padding-inline: 0.85rem;
  }
  .brand-lockup {
    grid-area: brand;
    min-width: 0;
    overflow: hidden;
  }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .top-actions {
    grid-area: actions;
    gap: 0.4rem;
    justify-self: end;
    flex-shrink: 0;
  }
  .top-actions #connection { display: none; }
  .top-actions #trustMode {
    display: inline-flex;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
  .top-actions .btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
  }
  #pollBtn {
    padding: 0.5rem;
    width: 2.35rem;
    height: 2.35rem;
    justify-content: center;
  }
  #pollBtn svg { width: 15px; height: 15px; }
  .gauge-inline { grid-area: gauge; }
  .spark { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pieces, .cap-groups, .widget-grid, .glossary { grid-template-columns: 1fr; }
  .price-wins,
  .price-plans,
  .price-limits-grid { grid-template-columns: 1fr 1fr; }
  .price-yield-grid { grid-template-columns: 1fr; }
  .cue {
    grid-template-columns: auto 1fr;
  }
  .cue-link {
    grid-column: 2;
  }
  .price-amount { font-size: 1.25rem; }
  .event { grid-template-columns: auto 1fr; gap: 0.4rem 0.65rem; }
  .event time { grid-column: 2; padding-top: 0; }
  .event div { grid-column: 2; }
  .event .badge { grid-column: 2; justify-self: start; }
  .panel-head { flex-direction: column; align-items: start; }
  .panel-head p { text-align: left; }
  .story { grid-template-columns: 1fr; }
}
