:root {
  color-scheme: dark;
  --bg: #070604;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --text: #f7f8f8;
  --muted: #8a8f98;
  --soft: #d0d6e0;
  --accent: #ff7a1a;
  --orange: #c94f00;
  --green: #20d49b;
  --red: #ff5d73;
  --amber: #f6a623;
  --blue: #58a6ff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 122, 26, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 14%, rgba(32, 212, 155, 0.12), transparent 28rem),
    linear-gradient(180deg, #0b0805 0%, #050403 100%);
  color: var(--text);
  line-height: 1.45;
}
button { font: inherit; color: inherit; }
code, .feed-score, .price-box { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.loading { color: var(--muted); padding: 24px; }
.preboot-shell { color: var(--text); }
.preboot-panel { background: #090909; }
.preboot-list { display: grid; gap: 8px; padding: 8px; }
.preboot-list i,
.preboot-chart,
.preboot-panel .exchange-tape span {
  display: block;
  min-height: 56px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(90deg, #0b0b0b, #11141b, #0b0b0b);
}
.preboot-chart { min-height: 100%; border: 0; }
.terminal-shell { min-height: 100vh; padding: 18px; }
.terminal-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 80px rgba(0,0,0,0.28);
}
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -0.04em; font-weight: 590; }
h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1; }
h2 { font-size: 18px; }
.pulse-copy { margin: 10px 0 0; color: var(--soft); }
.pulse-metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; color: var(--muted); }
.pulse-metrics span, .mode-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  font-size: 12px;
}
.pulse-metrics strong { color: var(--text); }
.mode-pill[data-mode="sample"] { color: #ffe7a3; border-color: rgba(246,200,95,0.28); }

.boundary-strip {
  margin: 12px 0;
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  font-size: 12px;
}
.env-problems { display: inline; margin: 0 0 0 8px; padding: 0; list-style: none; color: var(--amber); }
.env-problems li { display: inline; }

.terminal-layout { display: grid; grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.45fr); gap: 14px; align-items: start; }
.mvp-layout { display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(560px, 1.5fr) minmax(300px, 0.85fr); grid-template-areas: "left center right"; gap: 14px; align-items: start; }
.mvp-left-stack,
.mvp-center-stack,
.mvp-right-stack { display: grid; gap: 14px; min-width: 0; }
.mvp-left-stack { grid-area: left; }
.mvp-center-stack { grid-area: center; }
.mvp-right-stack { grid-area: right; }
.mvp-left-stack { position: sticky; top: 14px; }
.right-stack { display: grid; gap: 14px; }
.terminal-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 50px rgba(0,0,0,0.25);
  overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--border-soft); }
.panel-head > span { color: var(--muted); font-size: 12px; }
.feed-panel { position: sticky; top: 14px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.filter-chip {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
}
.filter-chip.active, .filter-chip:hover { color: var(--text); border-color: rgba(255,122,26,0.62); background: rgba(255,122,26,0.14); }
.feed-config-trigger {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,122,26,0.34);
  border-radius: 9px;
  background: rgba(255,122,26,0.08);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.feed-config-trigger:hover,
.feed-config-trigger.active { border-color: rgba(255,122,26,0.72); background: rgba(255,122,26,0.16); color: #fff; }
.feed-config-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.feed-config-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(10px);
}
.feed-config-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255,122,26,0.32);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,122,26,0.08), rgba(10,10,10,0.97) 26%), var(--panel);
  box-shadow: 0 30px 100px rgba(0,0,0,0.62), inset 0 1px 0 rgba(255,255,255,0.06);
}
.feed-config-head,
.feed-config-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.feed-config-head { border-bottom: 1px solid rgba(255,122,26,0.18); }
.feed-config-head h2 { margin: 0 0 5px; font-size: 18px; color: #fff; }
.feed-config-head p,
.feed-config-section-head p { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.5; }
.feed-config-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}
.feed-config-section { padding: 16px; display: grid; gap: 12px; }
.feed-config-section-head h3 { margin: 0 0 4px; color: var(--accent); font-size: 13px; letter-spacing: 0.04em; }
.source-option-grid { display: grid; gap: 8px; }
.source-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}
.source-option b { color: var(--muted); font-size: 12px; font-weight: 500; }
.source-option:hover,
.source-option.active { border-color: rgba(255,122,26,0.7); background: rgba(255,122,26,0.14); }
.source-option.active b { color: var(--accent); }
.feed-config-actions { border-top: 1px solid rgba(255,122,26,0.16); justify-content: flex-end; }
.config-primary,
.config-secondary {
  border: 1px solid rgba(255,122,26,0.5);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
}
.config-primary { background: var(--accent); color: #080808; font-weight: 700; }
.config-secondary { background: transparent; color: var(--soft); }
.feed-list { max-height: calc(100vh - 240px); min-height: 540px; overflow: auto; padding: 8px; scrollbar-color: rgba(255,122,26,0.5) transparent; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 20px), transparent 100%); }
.feed-live { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.feed-item {
  width: 100%;
  display: grid;
  grid-template-columns: 58px 1fr 48px;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.feed-item:hover, .feed-item.selected { background: rgba(255,255,255,0.045); border-color: var(--border); }
.feed-item.selected { box-shadow: inset 2px 0 0 var(--accent); }
.feed-rail { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.feed-rail b { display: block; margin-top: 4px; color: var(--text); font-size: 16px; }
.feed-body strong { display: block; color: var(--text); font-size: 14px; }
.feed-body em { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-style: normal; }
.feed-meta { display: block; color: #62666d; font-size: 11px; margin-bottom: 3px; }
.feed-score { color: var(--soft); font-size: 12px; align-self: center; text-align: right; }
.severity-critical .feed-rail b, .severity-critical .feed-score { color: var(--red); }
.severity-warning .feed-rail b, .severity-warning .feed-score { color: var(--amber); }
.severity-info .feed-rail b { color: var(--blue); }
.empty { padding: 16px; color: var(--muted); }

.price-box { text-align: right; }
.price-box strong { display: block; font-size: 21px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.chart-frame { padding: 10px 12px 2px; }
.tradingview-widget-shell { overflow: hidden; border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; background: #050505; }
.tradingview-widget-frame { width: 100%; min-height: 0; height: 100%; display: block; border: 0; background: #050505; }
.tradingview-fallback { min-height: 360px; display: grid; place-items: center; gap: 8px; padding: 28px; text-align: center; border: 1px dashed rgba(255,255,255,0.16); border-radius: 18px; background: #050505; color: var(--muted); }
.chart-frame .tradingview-widget-shell { aspect-ratio: 16 / 9; }
.chart-frame .tradingview-fallback { aspect-ratio: 16 / 9; min-height: 0; }
.tradingview-fallback strong { color: var(--text); font-size: 20px; }
.tradingview-fallback span { max-width: 360px; line-height: 1.6; }
.chart-note { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 12px; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.decision-grid div { padding: 12px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(255,255,255,0.025); }
.decision-grid span { display: block; color: var(--muted); font-size: 12px; }
.decision-grid strong { display: block; margin-top: 5px; }
.impact { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; }
.impact-high { color: var(--red); border-color: rgba(255,93,115,0.36); }
.impact-medium { color: var(--amber); border-color: rgba(246,200,95,0.36); }
.trigger { margin: 0; padding: 2px 16px 10px; color: var(--soft); }
.trigger span { color: var(--muted); }
.asset-state-card {
  margin: 0 16px 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--blue);
  border-radius: 13px;
  background: rgba(88,166,255,0.055);
}
.asset-state-card p { margin: 8px 0; color: var(--soft); font-size: 13px; line-height: 1.5; }
.asset-state-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.asset-state-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.asset-state-head span { color: var(--accent); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.asset-state-head strong { color: var(--text); }
.asset-state-head em { margin-left: auto; color: var(--muted); font-size: 11px; font-style: normal; }
.asset-state-heating_up,
.asset-state-signal_candidate { border-left-color: var(--amber); background: rgba(246,166,35,0.06); }
.asset-state-confirmed_signal { border-left-color: var(--red); background: rgba(255,93,115,0.06); }
.asset-state-stale { border-left-color: var(--muted); background: rgba(255,255,255,0.025); }
.reason-list { margin: 0; padding: 0 16px 16px 32px; color: var(--muted); font-size: 13px; }
.signal-history { padding: 0 16px 16px; }
.signal-history h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.signal-history h3 span { color: var(--accent); }
.signal-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.signal-history-item { padding: 10px 12px; border: 1px solid var(--border-soft); border-left-width: 3px; border-radius: 10px; background: rgba(255,255,255,0.025); }
.signal-history-item.severity-critical { border-left-color: var(--red); }
.signal-history-item.severity-warning { border-left-color: var(--amber); }
.signal-history-item strong { display: block; font-size: 13px; color: var(--text); }
.signal-history-item p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.signal-history-item.empty { border-style: dashed; color: var(--muted); font-size: 13px; }
.signal-history-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11px; color: var(--muted); }
.history-chip { padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; }
.history-status-active { color: var(--green); border-color: rgba(80,220,150,0.36); }
.history-status-resolved, .history-status-expired { color: var(--muted); }
.history-confidence { margin-left: auto; color: var(--accent); }
.watch-list { padding: 8px; display: grid; gap: 6px; }
.watch-row { display: grid; grid-template-columns: 56px 1fr 42px; gap: 10px; align-items: center; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.watch-row:hover, .watch-row.active { border-color: var(--border); background: rgba(255,255,255,0.04); }
.watch-row b { color: var(--text); } .watch-row span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .watch-row em { color: var(--accent); font-style: normal; text-align: right; }
.app-footer { color: #62666d; font-size: 12px; padding: 14px 2px 4px; }
.section-error { color: var(--red); }

@media (max-width: 980px) {
  .terminal-shell { padding: 10px; }
  .terminal-topbar { align-items: start; flex-direction: column; }
  .terminal-layout, .mvp-layout { grid-template-columns: 1fr; }
  .mvp-layout { grid-template-areas: "left" "center" "right"; }
  .feed-panel, .mvp-left-stack, .mvp-center-stack, .mvp-right-stack { position: static; }
  .feed-list { max-height: 520px; min-height: 360px; }
  .decision-grid { grid-template-columns: 1fr; }
}


.regime {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 10px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: clamp(22px, 3vw, 38px);
  vertical-align: baseline;
}
.regime-positive { color: var(--green); border-color: rgba(32,212,155,0.34); background: rgba(32,212,155,0.08); }
.regime-danger { color: var(--red); border-color: rgba(255,93,115,0.34); background: rgba(255,93,115,0.08); }
.regime-warning { color: var(--amber); border-color: rgba(246,200,95,0.34); background: rgba(246,200,95,0.08); }
.regime-neutral { color: var(--soft); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }

.event-list { display: grid; gap: 8px; }
.event-card {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 13px;
  background: rgba(255,255,255,0.018);
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.event-card:hover, .event-card.selected {
  background: rgba(255,255,255,0.052);
  border-color: rgba(255,122,26,0.42);
  transform: translateY(-1px);
}
.event-card.selected { box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(113,112,255,0.12); }
.event-top, .event-foot { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.event-type { color: var(--accent); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.event-time { color: #62666d; font-size: 11px; font-family: "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; flex: 0 0 auto; }
.event-card strong { display: block; color: var(--text); font-size: 14px; line-height: 1.35; }
.event-card em { color: var(--muted); font-size: 12px; font-style: normal; }
.asset-strip, .signal-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-strip span {
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  background: rgba(0,0,0,0.2);
  color: var(--soft);
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.signal-tag {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.028);
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-tag.severity-critical { color: var(--red); border-color: rgba(255,93,115,0.24); background: rgba(255,93,115,0.07); }
.signal-tag.severity-warning { color: var(--amber); border-color: rgba(246,200,95,0.24); background: rgba(246,200,95,0.07); }
.signal-tag.severity-info { color: var(--blue); border-color: rgba(88,166,255,0.2); }
.event-foot { color: #62666d; font-size: 11px; }
.event-foot b { color: var(--soft); font-family: "JetBrains Mono", ui-monospace, monospace; }
.event-card.severity-critical { border-color: rgba(255,93,115,0.18); }
.event-card.severity-warning { border-color: rgba(246,200,95,0.15); }

.chart-venue-switch { display: inline-flex; gap: 6px; margin-top: 6px; }
.venue-chip {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 11px;
}
.venue-chip.active, .venue-chip:hover { color: var(--text); border-color: rgba(255,122,26,0.62); background: rgba(255,122,26,0.14); }

.exchange-tape {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 16px 12px;
}
.exchange-tape span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}
.exchange-tape b { color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; }

@media (max-width: 640px) {
  .exchange-tape { grid-template-columns: repeat(2, 1fr); }
  .event-card { padding: 11px; }
}


.news-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.news-card.selected {
  border-color: rgba(255,122,26,0.42);
  background: rgba(255,122,26,0.055);
  box-shadow: inset 3px 0 0 var(--accent);
}
.news-source {
  margin: 0;
  color: #62666d;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.news-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.news-body {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}
.news-kind-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border: 1px solid rgba(255,122,26,0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.token-chip {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
  color: var(--soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  cursor: pointer;
}
.token-chip:hover, .token-chip.active {
  color: var(--text);
  border-color: rgba(32,212,155,0.48);
  background: rgba(32,212,155,0.1);
}
.news-card.severity-critical { border-color: rgba(255,93,115,0.22); }
.news-card.severity-warning { border-color: rgba(246,200,95,0.2); }

.market-state-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.market-regime {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  background: #0c0c0c;
  padding: 13px;
}
.market-regime strong {
  color: var(--accent);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.06em;
}
.market-regime span { color: var(--soft); }
.market-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.market-answer-grid article,
.important-signal {
  border: 1px solid var(--border-soft);
  background: #0b0b0b;
  padding: 12px;
}
.market-answer-grid p { margin: 0 0 6px; color: var(--accent); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.market-answer-grid strong { color: var(--text); font-size: 13px; line-height: 1.45; }
.important-signal-list { display: grid; gap: 8px; padding: 8px; }
.important-signal { display: grid; grid-template-columns: 86px 1fr; gap: 12px; }
.important-signal h3 { margin: 0 0 5px; font-size: 15px; }
.important-signal p { margin: 0; color: var(--soft); font-size: 13px; }
.important-signal em { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-style: normal; }
.signal-rank { display: grid; align-content: start; gap: 6px; }
.signal-rank b { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 18px; }
.signal-rank span { width: max-content; padding: 4px 7px; border: 1px solid var(--border-soft); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.important-signal.severity-critical { border-left: 3px solid var(--red); }
.important-signal.severity-warning { border-left: 3px solid var(--amber); }
.important-signal.severity-info { border-left: 3px solid var(--blue); }
@media (max-width: 720px) {
  .market-answer-grid { grid-template-columns: 1fr; }
  .market-regime { grid-template-columns: 1fr; }
  .important-signal { grid-template-columns: 1fr; }
}


.token-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.news-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
.token-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(0,0,0,0.26);
  color: var(--soft);
  cursor: pointer;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.token-tab b { font-size: 13px; color: var(--text); }
.token-tab span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.token-tab:hover, .token-tab.active {
  border-color: rgba(32,212,155,0.5);
  background: rgba(32,212,155,0.1);
}
.token-tab.active { box-shadow: inset 0 -2px 0 var(--green); }
.token-tab.token-critical { border-color: rgba(255,93,115,0.34); }
.token-tab.token-critical span { color: var(--red); }
.token-tab.token-warning { border-color: rgba(246,200,95,0.3); }
.token-tab.token-warning span { color: var(--amber); }
.token-tab.token-info span { color: var(--blue); }


.related-news-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
}
.related-news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: rgba(255,255,255,0.022);
}
.related-news-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.related-news-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.mini-token-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 150px;
}
.mini-token-row span {
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 7px;
  color: var(--soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}


.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.theme-row span {
  padding: 4px 7px;
  border: 1px solid rgba(255,122,26,0.28);
  border-radius: 999px;
  background: rgba(255,122,26,0.07);
  color: #ffc18a;
  font-size: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.selected-message {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}
.selected-message span,
.trigger span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.link-reason {
  color: var(--soft) !important;
}
.decision-themes {
  margin-top: 10px;
}


/* Brand pass: burnt-orange intelligence layer */
.terminal-topbar {
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 122, 26, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,122,26,0.025));
  border-color: rgba(255,122,26,0.16);
}
.eyebrow { color: var(--accent); }
.regime {
  border-color: rgba(255,122,26,0.34);
  background: rgba(255,122,26,0.10);
  color: #ff9150;
}
.regime-danger,
.regime-neutral,
.regime-positive,
.regime-warning {
  color: #ff9150;
  border-color: rgba(255,122,26,0.36);
  background: rgba(255,122,26,0.10);
}
.filter-chip.active,
.filter-chip:hover,
.token-tab:hover,
.token-tab.active {
  border-color: rgba(255,122,26,0.55);
  background: rgba(255,122,26,0.10);
}
.token-tab.active { box-shadow: inset 0 -2px 0 var(--accent); }
.news-card.selected {
  border-color: rgba(255,122,26,0.40);
  background: rgba(255,122,26,0.05);
  box-shadow: inset 3px 0 0 var(--accent);
}
.watch-row em { color: var(--accent); }
.mode-pill[data-mode="sample"] {
  color: #ffd0a8;
  border-color: rgba(255,122,26,0.32);
  background: rgba(255,122,26,0.07);
}


/* Bilingual pass */
.news-body span {
  display: inline-block;
  min-width: 38px;
  margin-right: 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-body-en {
  color: #9aa2ad;
  font-size: 12px;
  line-height: 1.42;
}
.news-body-en span { color: #ffb16f; }
.pulse-metrics span { white-space: nowrap; }


/* Professional terminal pass: remove AI-dashboard gloss, keep trader-grade density. */
:root {
  --bg: #030303;
  --panel: #0b0b0b;
  --panel-strong: #101010;
  --border: #242424;
  --border-soft: #1a1a1a;
  --text: #f2f2f2;
  --muted: #7f858c;
  --soft: #c5c9ce;
  --accent: #ff7a1a;
  --green: #00c087;
  --red: #f6465d;
  --amber: #f0b90b;
  --blue: #6b8fb8;
}
body {
  background: #030303;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Arial, sans-serif;
}
.terminal-shell { padding: 12px; }
.terminal-topbar,
.pro-topbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #090909;
  box-shadow: none;
}
.product-lockup h1,
h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.pulse-copy {
  margin-top: 7px;
  color: #a6abb1;
  font-size: 13px;
}
.app-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(255, 122, 26, 0.28);
}
.admin-topbar .product-lockup {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}
.admin-topbar .app-logo-mark { grid-row: 1 / span 3; }
.admin-topbar .product-lockup .eyebrow,
.admin-topbar .product-lockup h1,
.admin-topbar .product-lockup .pulse-copy { grid-column: 2; }
.regime-strip,
.pulse-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  border: 1px solid var(--border-soft);
  background: #060606;
}
.regime-strip span,
.pulse-metrics span,
.mode-pill {
  min-height: 30px;
  padding: 7px 10px;
  border: 0;
  border-left: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.regime-strip span:first-child,
.pulse-metrics span:first-child { border-left: 0; }
.regime-strip strong,
.pulse-metrics strong { color: var(--text); }
.regime,
.regime-danger,
.regime-neutral,
.regime-positive,
.regime-warning {
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: #17100a;
  color: var(--accent);
  font-size: 12px;
}
.boundary-strip,
.terminal-panel,
.news-card,
.related-news-item,
.decision-grid div,
.watch-row,
.exchange-tape span {
  border-radius: 4px;
  box-shadow: none;
}
.boundary-strip {
  margin: 8px 0 10px;
  background: #070707;
  border-color: var(--border-soft);
}
.terminal-layout { gap: 10px; grid-template-columns: minmax(380px, 0.82fr) minmax(620px, 1.45fr); }
.mvp-layout { gap: 10px; grid-template-columns: minmax(340px, 0.95fr) minmax(620px, 1.6fr) minmax(320px, 0.85fr); grid-template-areas: "left center right"; }
.mvp-center-stack .tradingview-widget-shell { aspect-ratio: 16 / 9; }
.mvp-center-stack .tradingview-widget-frame { height: 100%; min-height: 0; }
.right-stack { gap: 10px; }
.terminal-panel {
  background: #090909;
  border-color: var(--border);
}
.panel-head {
  padding: 11px 13px;
  background: #0c0c0c;
  border-bottom-color: var(--border);
}
.panel-head h2 { font-size: 16px; letter-spacing: -0.02em; }
.filter-row { padding: 10px 12px; background: #080808; }
.filter-chip {
  border-radius: 3px;
  background: #0b0b0b;
  border-color: var(--border);
}
.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  border-color: var(--accent);
  background: #15100b;
}
.feed-list { padding: 8px; scrollbar-color: #333 transparent; }
.news-card {
  gap: 8px;
  padding: 12px;
  background: #0b0b0b;
  border-color: var(--border-soft);
}
.news-card.selected {
  border-color: var(--accent);
  background: #100c08;
  box-shadow: inset 2px 0 0 var(--accent);
}
.news-card h3 { font-size: 14px; }
.news-body { font-size: 12.5px; color: #d3d6da; }
.news-body-en { color: #8d949b; }
.token-tab {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #070707;
}
.token-tab:hover,
.token-tab.active {
  border-color: var(--accent);
  background: #15100b;
}
.token-tab.active { box-shadow: inset 0 -2px 0 var(--accent); }
.theme-row span {
  border-radius: 3px;
  border-color: #3b2616;
  background: #120c07;
  color: #d99a63;
}
.exchange-tape { background: #070707; }
.exchange-tape span { background: #090909; }
.chart-frame { padding: 8px 12px 0; }
.close-line { stroke: var(--accent); stroke-width: 1.2; }
.decision-grid { padding: 12px 14px; gap: 8px; }
.decision-grid div { background: #0c0c0c; border-color: var(--border-soft); }
.related-news-list,
.watch-list { padding: 8px; }
.related-news-item { background: #0c0c0c; border-color: var(--border-soft); }
.watch-row { background: #090909; border-color: transparent; }
.watch-row:hover,
.watch-row.active { background: #101010; border-color: var(--border); }
.watch-row em { color: var(--accent); }
.app-footer { padding-top: 10px; }
@media (max-width: 980px) {
  .terminal-topbar, .pro-topbar { grid-template-columns: 1fr; }
  .regime-strip { justify-content: flex-start; }
  .terminal-layout, .mvp-layout { grid-template-columns: 1fr; }
  .mvp-layout { grid-template-areas: "left" "center" "right"; }
}


.filter-row {
  align-items: center;
  justify-content: space-between;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.language-group {
  margin-left: auto;
}
.language-chip.active {
  color: #fff;
  border-color: var(--accent);
  background: #17100a;
}
@media (max-width: 980px) {
  .filter-row { align-items: flex-start; flex-direction: column; }
  .language-group { margin-left: 0; }
}


/* Global language switch lives in top-right terminal controls. */
.top-right-stack {
  display: grid;
  justify-items: end;
  gap: 7px;
}
.top-language-select {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.top-language-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  background: #060606;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
  box-shadow: inset 0 -2px 0 var(--accent);
  white-space: nowrap;
}
.top-language-summary::-webkit-details-marker { display: none; }
.top-language-summary:hover { background: #17100a; }
.lang-caret { font-size: 10px; color: #8f969d; transition: transform 0.12s ease; }
.top-language-select[open] .lang-caret { transform: rotate(180deg); }
.top-language-menu {
  position: absolute;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  margin-top: 4px;
  border: 1px solid var(--border-soft);
  background: #060606;
}
.lang-option {
  min-height: 28px;
  padding: 6px 12px;
  border: 0;
  border-top: 1px solid var(--border-soft);
  background: transparent;
  color: #8f969d;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
.lang-option:first-child { border-top: 0; }
.lang-option:hover { color: #fff; background: #17100a; }
.admin-shell .terminal-topbar {
  border-color: rgba(255, 122, 26, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.16), rgba(255,255,255,0.028) 42%, rgba(0,0,0,0.18)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 26px 90px rgba(255, 91, 0, 0.12), 0 24px 80px rgba(0,0,0,0.3);
}
.admin-shell .terminal-panel {
  border-color: rgba(255, 122, 26, 0.16);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.055), rgba(255,255,255,0.026));
}
.admin-shell .panel-head {
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.13), rgba(255,255,255,0.015));
  border-bottom-color: rgba(255, 122, 26, 0.18);
}
.admin-shell .panel-head h2 { color: #fff7ed; }
.admin-home-link {
  justify-self: end;
  border: 1px solid rgba(255, 122, 26, 0.68);
  border-radius: 999px;
  color: #ffd6ad;
  padding: 8px 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  background: rgba(255, 122, 26, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.admin-home-link:hover { background: rgba(255, 122, 26, 0.22); }
.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.admin-status-card {
  padding: 12px;
  border: 1px solid rgba(255, 122, 26, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.09), rgba(255,255,255,0.025));
}
.admin-status-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--accent);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.admin-status-card span { color: var(--muted); font-size: 12px; }
.admin-terminal-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 14px;
  align-items: start;
}
.admin-right-stack { gap: 14px; }
.filter-row { justify-content: flex-start; }
.language-group { display: none; }
@media (max-width: 980px) {
  .top-right-stack { justify-items: start; }
}


/* Repo-local Backlog / My Development board. */
.dev-feed-panel { position: sticky; top: 14px; }
.dev-source {
  margin: 0;
  padding: 11px 16px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.dev-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.dev-summary span {
  border: 1px solid rgba(255, 122, 26, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffd6ad;
  background: rgba(255,122,26,0.075);
  font-size: 12px;
}
.dev-feed-list, .dev-review-list { display: grid; gap: 8px; overflow: auto; padding: 8px; scrollbar-color: rgba(255,122,26,0.5) transparent; }
.dev-feed-list { max-height: calc(100vh - 328px); min-height: 520px; }
.dev-review-list { max-height: 520px; }
.dev-feed-card, .dev-review-card {
  border: 1px solid rgba(255, 122, 26, 0.09);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.045), rgba(255,255,255,0.018));
}
.dev-feed-card:hover, .dev-review-card:hover { border-color: rgba(255,122,26,0.36); background: rgba(255,122,26,0.075); }
.dev-feed-card { box-shadow: inset 2px 0 0 rgba(255, 122, 26, 0.4); }
.dev-feed-card.status-in_progress { box-shadow: inset 2px 0 0 var(--accent); }
.dev-feed-card h3, .dev-review-card h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.35; }
.dev-feed-card p, .dev-review-card p { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.5; }
.dev-feed-card ul, .dev-review-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dev-card-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dev-no, .dev-status, .dev-priority {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.035);
  color: var(--soft);
}
.dev-no { color: #ffb86b; border: 1px solid rgba(255,122,26,0.48); background: rgba(255,122,26,0.13); }
.dev-status { border: 1px solid rgba(255,122,26,0.24); color: #ffd6ad; }
.dev-priority { color: var(--amber); border: 1px solid rgba(246,166,35,0.28); }
.review-only { color: #ffd6ad; border-color: rgba(255, 122, 26, 0.34); background: rgba(255,122,26,0.12); }
.dev-review-card { border-color: rgba(255,122,26,0.12); }
.proposal-fields { display: grid; gap: 8px; margin: 10px 0 0; }
.proposal-fields div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
.proposal-fields dt { color: var(--accent); font-size: 12px; }
.proposal-fields dd { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.45; }
.proposal-fields dd ul { margin-top: 0; }

/* Owner-only Admin Data Map. */
.data-map-intro { margin-bottom: 14px; }
.data-map-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(460px, 1.08fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.data-map-left-stack,
.data-map-right-stack { display: grid; gap: 14px; min-width: 0; }
.data-lineage-rail { display: grid; gap: 6px; padding: 8px; max-height: 760px; overflow: auto; scrollbar-color: rgba(255,122,26,0.5) transparent; }
.data-lineage-step { display: grid; gap: 6px; justify-items: stretch; }
.data-lineage-arrow { justify-self: center; color: var(--accent); font-size: 20px; line-height: 1; }
.data-registry-tabs .filter-row { border-bottom: 0; }
.data-map-tab b { color: var(--accent); font-weight: 600; margin-left: 4px; }
.data-map-group-wrap { display: none; }
.data-map-group-wrap.active { display: block; }
.data-registry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; max-height: 720px; overflow: auto; scrollbar-color: rgba(255,122,26,0.5) transparent; }
.data-node-card { border: 1px solid rgba(255,122,26,0.1); border-radius: 12px; padding: 12px; background: linear-gradient(135deg, rgba(255,122,26,0.04), rgba(255,255,255,0.018)); }
.data-node-card:hover { border-color: rgba(255,122,26,0.34); }
.data-node-card h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.28; overflow-wrap: anywhere; }
.data-node-card p { margin: 0; color: var(--soft); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.data-node-detail { display: grid; gap: 5px; margin: 10px 0 0; }
.data-node-detail div { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; }
.data-node-detail dt { color: var(--accent); font-size: 11px; }
.data-node-detail dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.data-node-topic { box-shadow: inset 2px 0 0 var(--blue); }
.data-node-indicator { box-shadow: inset 2px 0 0 var(--green); }
.data-node-spider,
.data-node-source { box-shadow: inset 2px 0 0 var(--accent); }
.data-node-consumer,
.data-node-producer { box-shadow: inset 2px 0 0 var(--amber); }
@media (max-width: 980px) { .admin-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .data-map-layout { grid-template-columns: 1fr; } .data-registry-list { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .admin-terminal-layout { grid-template-columns: 1fr; } .dev-feed-panel { position: static; } }

/* NewsLiquid-style 003 workbench: fixed viewport, thin chrome, local scroll wells. */
body:has(.terminal-shell:not(.admin-shell)) {
  overflow: hidden;
}
.terminal-shell:not(.admin-shell) {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr) 34px;
  gap: 0;
  padding: 0;
  background: #030303;
}
.terminal-shell:not(.admin-shell) .terminal-topbar,
.terminal-shell:not(.admin-shell) .pro-topbar {
  min-height: 45px;
  grid-template-columns: minmax(420px, 1fr) auto;
  padding: 0 14px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: #090909;
}
.terminal-shell:not(.admin-shell) .product-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.terminal-shell:not(.admin-shell) .app-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 auto;
}
.terminal-shell:not(.admin-shell) .product-lockup .eyebrow {
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
}
.terminal-shell:not(.admin-shell) .product-lockup h1 {
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}
.terminal-shell:not(.admin-shell) .pulse-copy {
  margin: 0;
  overflow: hidden;
  color: #8f949e;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-shell:not(.admin-shell) .top-right-stack {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}
.terminal-shell:not(.admin-shell) .pulse-metrics span,
.terminal-shell:not(.admin-shell) .mode-pill,
.terminal-shell:not(.admin-shell) .top-language-summary,
.terminal-shell:not(.admin-shell) .lang-option {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}
.terminal-shell:not(.admin-shell) .boundary-strip {
  display: none;
}
.terminal-shell:not(.admin-shell) .mvp-layout {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(360px, 23vw, 420px) minmax(720px, 1fr) clamp(340px, 23vw, 420px);
  gap: 1px;
  border-bottom: 1px solid var(--border);
  background: var(--border);
}
.terminal-shell:not(.admin-shell) .mvp-left-stack,
.terminal-shell:not(.admin-shell) .mvp-center-stack,
.terminal-shell:not(.admin-shell) .mvp-right-stack {
  min-height: 0;
  height: 100%;
  gap: 0;
  overflow: hidden;
  position: static;
  background: #090909;
}
.terminal-shell:not(.admin-shell) .mvp-center-stack {
  display: grid;
  grid-template-rows: minmax(360px, 4fr) minmax(150px, 1.7fr);
  gap: 1px;
  background: var(--border);
}
.terminal-shell:not(.admin-shell) .feed-panel,
.terminal-shell:not(.admin-shell) .mvp-right-stack {
  min-height: 0;
  overflow: hidden;
  scrollbar-color: rgba(255,122,26,0.5) transparent;
}
.terminal-shell:not(.admin-shell) .feed-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 0;
  border-radius: 0;
}
.terminal-shell:not(.admin-shell) .feed-list {
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.terminal-shell:not(.admin-shell) .mvp-right-stack {
  display: grid;
  grid-template-rows: minmax(210px, 0.95fr) minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  overflow: hidden;
}
.terminal-shell:not(.admin-shell) .mvp-right-stack > .terminal-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.terminal-shell:not(.admin-shell) .mvp-right-stack > .terminal-panel:hover,
.terminal-shell:not(.admin-shell) .mvp-right-stack > .terminal-panel:focus-within {
  overflow-y: auto;
}
.terminal-shell:not(.admin-shell) .mvp-right-stack .market-state-body,
.terminal-shell:not(.admin-shell) .mvp-right-stack .important-signal-list,
.terminal-shell:not(.admin-shell) .mvp-right-stack .watch-list,
.terminal-shell:not(.admin-shell) .mvp-right-stack .related-news-list {
  min-height: 0;
  overflow: auto;
}
.terminal-shell:not(.admin-shell) .mvp-right-stack .market-regime,
.terminal-shell:not(.admin-shell) .mvp-right-stack .market-answer-grid,
.terminal-shell:not(.admin-shell) .mvp-right-stack .important-signal {
  grid-template-columns: 1fr;
}
.terminal-shell:not(.admin-shell) .mvp-right-stack .market-answer-grid {
  gap: 1px;
}
.terminal-shell:not(.admin-shell) .terminal-panel {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  background: #090909;
}
.terminal-shell:not(.admin-shell) .panel-head {
  min-height: 52px;
  padding: 9px 12px;
}
.terminal-shell:not(.admin-shell) .panel-head h2 {
  font-size: 16px;
}
.terminal-shell:not(.admin-shell) .news-card h3,
.terminal-shell:not(.admin-shell) .important-signal h3 {
  font-size: 16px;
  line-height: 1.35;
}
.terminal-shell:not(.admin-shell) .news-body,
.terminal-shell:not(.admin-shell) .important-signal p,
.terminal-shell:not(.admin-shell) .trigger {
  font-size: 14px;
}
.terminal-shell:not(.admin-shell) .chart-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(240px, 1fr);
}
.terminal-shell:not(.admin-shell) .exchange-tape {
  padding: 0;
}
.terminal-shell:not(.admin-shell) .chart-frame {
  min-height: 0;
  display: grid;
  align-items: stretch;
  padding: 0;
}
.terminal-shell:not(.admin-shell) .mvp-center-stack .tradingview-widget-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}
.terminal-shell:not(.admin-shell) .mvp-center-stack .tradingview-widget-frame {
  height: 100%;
  min-height: 0;
}
.terminal-shell:not(.admin-shell) .decision-panel {
  min-height: 0;
  height: 100%;
  overflow: auto;
}
.terminal-shell:not(.admin-shell) .decision-panel .decision-grid {
  padding: 9px 12px;
}
.terminal-shell:not(.admin-shell) .decision-panel .decision-grid div {
  padding: 9px;
}
.terminal-shell:not(.admin-shell) .decision-panel .selected-message,
.terminal-shell:not(.admin-shell) .decision-panel .trigger {
  margin: 0;
  padding: 0 12px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-shell:not(.admin-shell) .decision-panel .reason-list {
  max-height: 34px;
  overflow: auto;
  padding-bottom: 6px;
}
.terminal-shell:not(.admin-shell) .decision-panel .signal-history {
  padding: 0 12px 10px;
}
.terminal-shell:not(.admin-shell) .app-footer {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-top: 1px solid var(--border);
  background: #090909;
  color: var(--muted);
}
.terminal-shell:not(.admin-shell) .chart-note {
  display: none;
}
@media (max-width: 1380px) {
  .terminal-shell:not(.admin-shell) .mvp-layout {
    grid-template-columns: 340px minmax(560px, 1fr) 340px;
  }
}
@media (max-width: 980px) {
  body:has(.terminal-shell:not(.admin-shell)) { overflow: auto; }
  .terminal-shell:not(.admin-shell) { height: auto; min-height: 100vh; overflow: visible; grid-template-rows: auto auto; }
  .terminal-shell:not(.admin-shell) .mvp-layout { grid-template-columns: 1fr; grid-template-areas: "left" "center" "right"; height: auto; overflow: visible; }
  .terminal-shell:not(.admin-shell) .mvp-left-stack,
  .terminal-shell:not(.admin-shell) .mvp-center-stack,
  .terminal-shell:not(.admin-shell) .mvp-right-stack { height: auto; overflow: visible; }
}


/* Signal Report research-copilot pass */
.signal-report-panel { border-color: rgba(255,122,26,0.18); }
.report-hero {
  margin: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,122,26,0.075), rgba(255,255,255,0.018));
}
.report-hero.severity-critical { border-left-color: var(--red); }
.report-hero.severity-warning { border-left-color: var(--amber); }
.report-hero h3 { margin: 8px 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -0.025em; }
.report-hero p { margin: 0; color: var(--soft); font-size: 13px; }
.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.report-metrics div,
.report-section {
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: rgba(0,0,0,0.24);
}
.report-metrics div { padding: 10px; }
.report-metrics span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.report-metrics strong { display: block; margin-top: 4px; color: var(--text); font-size: 18px; }
.report-section { margin: 0 12px 12px; padding: 12px; }
.report-section h3 { margin: 0 0 8px; color: var(--accent); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.report-section p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.5; }
.report-assets { display: grid; gap: 8px; }
.report-asset {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr 42px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(255,255,255,0.018);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.report-asset.active,
.report-asset:hover { border-color: rgba(255,122,26,0.48); background: rgba(255,122,26,0.08); }
.report-asset b,
.report-asset em { font-family: "JetBrains Mono", ui-monospace, monospace; }
.report-asset span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.report-asset em { color: var(--accent); font-style: normal; text-align: right; }
.report-asset p { grid-column: 1 / -1; color: var(--soft); font-size: 12px; }
.report-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.report-themes span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(255,122,26,0.24);
  border-radius: 999px;
  color: #ffc18a;
  font-size: 11px;
}
.report-themes em { color: var(--muted); font-style: normal; }
.report-context-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.report-context-list li { padding: 10px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(255,255,255,0.018); }
.report-context-list strong { display: block; color: var(--text); font-size: 13px; }
.report-context-list p { margin-top: 4px; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .report-metrics { grid-template-columns: 1fr; } .report-asset { grid-template-columns: 1fr auto; } }

.compat-markers { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compat-mvp-only {
  display: none !important;
}




/* Coherent Market Radar: one authoritative full-viewport square-corner app surface. */
:root {
  --fu-radius-card: 0;
  --fu-radius-panel: 0;
  --fu-radius-control: 0;
  --fu-radar-gap: clamp(6px, 0.85vh, 10px);
  --fu-radar-border: rgba(255,255,255,0.08);
  --fu-radar-border-hot: rgba(255,122,26,0.34);
  --fu-radar-orange-soft: rgba(255,122,26,0.095);
  --fu-font-micro: clamp(9.5px, 0.68vw, 10px);
  --fu-font-caption: clamp(11px, 0.76vw, 12px);
  --fu-font-body: clamp(12px, 0.82vw, 13px);
  --fu-font-title: clamp(13px, 0.9vw, 14px);
  --fu-font-strong: clamp(15px, 1vw, 16px);
  --fu-line-tight: 1.25;
  --fu-line-normal: 1.35;
}

body:has(.terminal-shell:not(.admin-shell):has(.dense-radar-panel)) {
  overflow: hidden;
  background: #030303;
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) {
  height: 100dvh;
  min-height: 560px;
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr);
  gap: var(--fu-radar-gap);
  overflow: hidden;
  padding: clamp(8px, 1vw, 14px);
  color: var(--text);
  font-size: var(--fu-font-body);
  line-height: var(--fu-line-normal);
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .terminal-topbar {
  min-height: 45px;
  padding: 0 14px;
  border-width: 0 0 1px;
  border-color: var(--border);
  border-radius: 0;
  background: #090909;
  box-shadow: none;
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .terminal-topbar h1 {
  font-size: 18px;
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .pulse-copy,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .boundary-strip,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .app-footer,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-head,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-controls,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-live-toggle,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-apply-sort,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-hold,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .radar-picks {
  display: none;
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-home,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-layout,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-left-stack,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-center-stack,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-right-stack {
  min-height: 0;
  height: 100%;
  display: grid;
  overflow: hidden;
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-left-stack,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-center-stack,
.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-right-stack {
  position: static;
}

.terminal-shell:not(.admin-shell):has(.dense-radar-panel) .compat-mvp-only {
  display: none !important;
}

.dense-radar-panel {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.radar-board {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(500px, 1.45fr) minmax(280px, 0.9fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "top-left top-center top-right"
    "bottom-left bottom-center bottom-right";
  align-items: stretch;
  gap: var(--fu-radar-gap);
}

.radar-slot-top-left { grid-area: top-left; }
.radar-slot-top-center { grid-area: top-center; }
.radar-slot-top-right { grid-area: top-right; }
.radar-slot-bottom-left { grid-area: bottom-left; }
.radar-slot-bottom-center { grid-area: bottom-center; }
.radar-slot-bottom-right { grid-area: bottom-right; }

.radar-column {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--fu-radius-panel);
  background: #090909;
}

.radar-primary {
  border-color: var(--border);
  box-shadow: inset 2px 0 0 var(--accent);
}

.radar-column-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #0c0c0c;
}

.radar-column-head h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fu-font-title);
  line-height: var(--fu-line-tight);
  letter-spacing: -0.01em;
}

.radar-column-head p {
  margin: 3px 0 0;
  color: #68717d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-caption);
  line-height: var(--fu-line-tight);
  letter-spacing: .04em;
}

.radar-column-head span {
  min-width: 28px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: var(--fu-radius-control);
  color: var(--muted);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-caption);
}

/* Each board owns one scroll well: the card grid plus its own status/load-more
   region scroll together, so infinite scroll and the manual fallback work per
   board without turning boards into tabs. */
.radar-well {
  min-height: 0;
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255,122,26,0.38) transparent;
  scroll-snap-type: y proximity;
  container-type: size;
}

.radar-grid {
  min-height: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: calc((100cqh - 20px) / 3);
  align-content: start;
  gap: 4px;
  overflow: visible;
  padding: 6px;
}

.radar-tile {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 18px minmax(42px, 1fr) 16px 16px;
  gap: 3px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-left: 2px solid rgba(255,122,26,0.36);
  border-radius: var(--fu-radius-card);
  background: #0b0b0b;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  scroll-snap-align: start;
}

.radar-tile:hover,
.radar-tile.open {
  border-color: var(--accent);
  background: #100c08;
  box-shadow: none;
}

.radar-tile:focus-visible,
.top-language-summary:focus-visible,
.lang-option:focus-visible,
.hotspot-open:focus-visible,
.hotspot-close:focus-visible {
  outline: 2px solid rgba(255,122,26,0.7);
  outline-offset: 2px;
}

.radar-tile.stage-surging { border-left-color: var(--green); box-shadow: inset 2px 0 0 rgba(0,192,135,0.9); }
.radar-tile.stage-cooling { border-left-color: var(--amber); box-shadow: inset 2px 0 0 rgba(240,185,11,0.86); }
.radar-tile.stage-risk { border-left-color: var(--red); box-shadow: inset 2px 0 0 rgba(246,70,93,0.9); }
.radar-tile.stage-diverging { border-left-color: var(--blue); box-shadow: inset 2px 0 0 rgba(88,166,255,0.8); }

.radar-tile .hotspot-card-head,
.radar-tile .hotspot-card-foot,
.hotspot-tile-meta {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.radar-tile .hotspot-card-head,
.radar-tile .hotspot-card-foot {
  justify-content: space-between;
}

.radar-tile .hotspot-card-foot {
  align-self: end;
}

.radar-tile .hotspot-identity {
  min-width: 0;
}

.radar-tile .hotspot-identity b {
  display: block;
  color: #fff7ef;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-strong);
  line-height: 1;
  letter-spacing: -0.04em;
}

.radar-tile .hotspot-identity span {
  display: block;
  max-width: 120px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--fu-font-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-heat {
  min-width: 32px;
  color: var(--accent);
  text-align: right;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-strong);
  line-height: 1;
}

.radar-tile .hotspot-reason {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #b8c0ca;
  font-size: var(--fu-font-body);
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.hotspot-tile-meta {
  flex-wrap: nowrap;
}

.hotspot-tile-meta strong {
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-caption);
  line-height: 1;
}

.radar-tile .hotspot-stage-tag,
.radar-tile .hotspot-opportunity-tag,
.radar-tile .hotspot-badge,
.radar-evidence {
  max-width: 86px;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--fu-radius-control);
  background: rgba(0,0,0,0.26);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-micro);
  line-height: var(--fu-line-tight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-tile .hotspot-opportunity-tag {
  color: #ffd1a8;
  border-color: rgba(255,122,26,0.18);
}

.radar-tile .hotspot-badge-row {
  display: inline-flex;
  min-width: 0;
  max-width: 104px;
  gap: 3px;
  overflow: hidden;
}

.radar-tile .badge-tag,
.radar-tile .badge-new {
  color: #bfffe9;
  border-color: rgba(32,212,155,0.22);
}

.radar-tile .badge-more {
  color: #ffc18a;
  border-color: rgba(255,122,26,0.2);
}

.radar-tile .badge-up,
.radar-tile .badge-down,
.radar-tile .badge-cooling {
  display: none;
}

.radar-tile .hotspot-open,
.hotspot-close {
  border-radius: var(--fu-radius-control);
}

.radar-tile .hotspot-open {
  padding: 3px 7px;
  border: 1px solid rgba(255,122,26,0.38);
  background: rgba(255,122,26,0.07);
  color: #ffb36e;
  cursor: pointer;
  font-size: var(--fu-font-micro);
  line-height: var(--fu-line-tight);
}

.radar-column .empty {
  min-height: 82px;
  margin: 6px;
  padding: 18px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--fu-radius-card);
  background: rgba(0,0,0,0.22);
  color: var(--muted);
  font-size: var(--fu-font-body);
}

.hotspot-detail-region {
  display: none;
}

.hotspot-detail-region[data-hotspot-detail]:not([data-hotspot-detail=""]) {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
  overflow: hidden;
  background: rgba(6,6,6,0.68);
  backdrop-filter: blur(7px) saturate(1.25);
}

.hotspot-detail-panel {
  width: min(980px, 96vw);
  max-height: min(860px, 92dvh);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,122,26,0.28);
  border-radius: var(--fu-radius-panel);
  background:
    linear-gradient(180deg, rgba(255,122,26,0.10), rgba(255,255,255,0.022) 120px),
    rgba(8,8,8,0.82);
  backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: 0 36px 120px rgba(0,0,0,0.64), inset 0 1px 0 rgba(255,255,255,0.06);
}

.hotspot-detail-panel .panel-head {
  border-bottom-color: rgba(255,122,26,0.18);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255,122,26,0.12), rgba(255,255,255,0.02)),
    rgba(8,8,8,0.72);
}

.hotspot-close {
  border: 1px solid rgba(255,122,26,0.32);
  background: rgba(255,122,26,0.08);
  color: #ffbf82;
  cursor: pointer;
}

.hotspot-detail-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  scrollbar-color: rgba(255,122,26,0.42) transparent;
}

.hotspot-detail-conclusion,
.hotspot-detail-metrics div,
.hotspot-detail-section,
.voice-group {
  border-radius: var(--fu-radius-panel);
}

.hotspot-detail-conclusion {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255,122,26,0.2);
  background: rgba(255,122,26,0.08);
  color: var(--text);
  font-size: 15px;
}

.hotspot-detail-conclusion span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: var(--fu-font-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hotspot-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.hotspot-detail-metrics div,
.hotspot-detail-section {
  padding: 10px;
  border: 1px solid var(--fu-radar-border);
  background: rgba(255,255,255,0.025);
}

.hotspot-detail-metrics span {
  display: block;
  color: var(--muted);
  font-size: var(--fu-font-caption);
  line-height: var(--fu-line-tight);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hotspot-detail-metrics strong {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fu-font-strong);
  line-height: 1;
}

.hotspot-detail-section h3,
.voice-group h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: var(--fu-font-title);
  line-height: var(--fu-line-tight);
  letter-spacing: -0.01em;
}

.hotspot-detail-section p,
.hotspot-detail-section li,
.voice-group li strong {
  color: var(--soft);
  font-size: var(--fu-font-body);
  line-height: var(--fu-line-normal);
}

.hotspot-detail-section p { margin: 0; }
.hotspot-detail-section ul { margin: 0; padding-left: 18px; }
.hotspot-detail-section li + li { margin-top: 6px; }
.hotspot-detail-stage { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }
.hotspot-detail-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hotspot-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }

.voice-group {
  padding: 10px;
  border: 1px solid var(--fu-radar-border);
  background: rgba(0,0,0,0.18);
}

.voice-group ul { margin: 0; padding-left: 0; list-style: none; }
.voice-group li + li { margin-top: 7px; }
.voice-group li strong { display: block; color: var(--text); }
.voice-group li span { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fu-font-caption); line-height: var(--fu-line-tight); }

.hotspot-changed { animation: hotspot-change 900ms ease-out; }
@keyframes hotspot-change {
  0% { box-shadow: 0 0 0 1px rgba(88,166,255,0.72), 0 0 22px rgba(88,166,255,0.18); }
  100% { box-shadow: none; }
}

@media (max-height: 780px) {
  body:has(.terminal-shell:not(.admin-shell):has(.dense-radar-panel)) { overflow: auto; }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 8px;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-home,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-layout,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-left-stack,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-center-stack,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-right-stack,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .dense-radar-panel,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .radar-board {
    height: auto;
    overflow: visible;
  }
  .radar-board {
    grid-template-rows: repeat(2, 330px);
    grid-auto-rows: 330px;
  }
  .radar-column { height: 330px; }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .terminal-topbar {
    padding: 8px 10px;
  }
  .radar-column-head {
    min-height: 34px;
    padding: 6px 8px;
  }
  .radar-grid {
    grid-template-rows: none;
    grid-auto-rows: calc((100cqh - 16px) / 2);
  }
  .radar-tile { padding: 5px; }
  .radar-tile .hotspot-reason { line-height: 15px; }
}

@media (max-width: 1280px) {
  .radar-board {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top-left top-center"
      "top-right bottom-left"
      "bottom-center bottom-right";
  }
}

@media (max-width: 900px) {
  body:has(.terminal-shell:not(.admin-shell):has(.dense-radar-panel)) { overflow: auto; }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .hotspot-home,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-layout,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-left-stack,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-center-stack,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .mvp-right-stack,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .dense-radar-panel,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .radar-board,
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .radar-column {
    height: auto;
    overflow: visible;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .terminal-topbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    height: auto;
    min-height: 45px;
    padding: 6px 10px;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .product-lockup {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .top-right-stack {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) .pulse-metrics {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .terminal-shell:not(.admin-shell):has(.dense-radar-panel) {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .radar-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "top-left" "top-center" "top-right" "bottom-left" "bottom-center" "bottom-right";
  }
  /* Six boards stack; each keeps a bounded scroll well so the page stays a
     scannable list of boards rather than one endless column. */
  .radar-well {
    height: 552px;
    max-height: 552px;
  }
  .radar-grid,
  .radar-slot-top-center .radar-grid,
  .radar-slot-bottom-center .radar-grid {
    min-height: 552px;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 132px;
  }
  .hotspot-detail-metrics,
  .hotspot-detail-columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-tile { transition: none; }
  .hotspot-changed,
  .live-dot { animation: none; }
}

/* Per-board status region: infinite scroll sentinel + manual load-more fallback. */
.hotspot-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hotspot-watch-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85em;
  padding: 2px 10px;
  cursor: pointer;
  border-radius: var(--fu-radius-control);
}
.hotspot-watch-toggle.watched {
  background: #1c1c1c;
}
.hotspot-detail-category-reason {
  font-size: 0.85em;
  opacity: 0.75;
  margin: 0 0 8px;
}
.hotspot-feed-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 8px;
  min-height: 36px;
  text-align: center;
  font-size: var(--fu-font-caption);
}
.hotspot-load-more {
  padding: 5px 14px;
  border-radius: var(--fu-radius-control);
  border: 1px solid rgba(255, 122, 26, 0.5);
  background: rgba(255, 122, 26, 0.12);
  color: inherit;
  font: inherit;
  font-size: var(--fu-font-caption);
  cursor: pointer;
}
.hotspot-load-retry {
  border-color: rgba(255, 90, 90, 0.6);
  background: rgba(255, 90, 90, 0.12);
}
.hotspot-feed-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.hotspot-feed-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 122, 26, 0.3);
  border-top-color: rgba(255, 122, 26, 0.9);
  animation: hotspot-feed-spin 0.8s linear infinite;
}
.hotspot-feed-end {
  opacity: 0.6;
  font-size: 0.85em;
}
.hotspot-feed-sentinel {
  width: 100%;
  height: 1px;
}
@keyframes hotspot-feed-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot-feed-spinner { animation: none; }
}
