:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: rgba(16, 21, 24, 0.92);
  --panel-strong: #11171a;
  --panel-soft: #151c20;
  --line: rgba(190, 210, 207, 0.13);
  --line-bright: rgba(190, 210, 207, 0.24);
  --text: #edf4f2;
  --muted: #879592;
  --muted-2: #5e6c69;
  --green: #39d6a1;
  --green-soft: rgba(57, 214, 161, 0.12);
  --red: #ff6b6f;
  --red-soft: rgba(255, 107, 111, 0.12);
  --amber: #f2b85b;
  --amber-soft: rgba(242, 184, 91, 0.12);
  --cyan: #62c5e8;
  --cyan-soft: rgba(98, 197, 232, 0.12);
  --violet: #9a8cff;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.08;
}

.ambient-a {
  top: -180px;
  right: 8%;
  background: var(--green);
}

.ambient-b {
  top: 38%;
  left: -220px;
  background: var(--cyan);
}

.shell {
  width: min(1720px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.identity,
.header-status,
.regime-lockup,
.chart-toolbar,
.panel-head,
.balance-label {
  display: flex;
  align-items: center;
}

.identity {
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(57, 214, 161, 0.45);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 500;
  box-shadow: inset 0 0 24px rgba(57, 214, 161, 0.08);
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.identity h1 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.header-status {
  gap: 16px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(57, 214, 161, 0.24);
  border-radius: 999px;
  background: rgba(57, 214, 161, 0.06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.live-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(57, 214, 161, 0.08);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.45; }
}

.time-block {
  display: grid;
  gap: 1px;
  text-align: right;
}

.time-block span {
  color: var(--muted);
  font-size: 10px;
}

.time-block strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--green);
  color: var(--green);
  transform: rotate(20deg);
}

.market-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(5, 1fr);
  margin: 22px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 18, 20, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.metric {
  display: grid;
  min-width: 0;
  min-height: 88px;
  padding: 16px 18px;
  align-content: center;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.pressure-card span,
.live-zone span,
.risk-box span,
.decision-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  white-space: nowrap;
}

.hero-metric strong {
  font-size: 25px;
}

.metric small,
.pressure-card small,
.risk-box small {
  margin-top: 1px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
}

.up,
.positive-text {
  color: var(--green) !important;
}

.down,
.negative-text {
  color: var(--red) !important;
}

main {
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  justify-content: space-between;
  gap: 16px;
}

.panel h2 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(300px, 0.95fr);
  gap: 14px;
}

.chart-panel {
  min-width: 0;
}

.chart-head {
  min-height: 76px;
  padding: 16px 18px 12px;
}

.chart-toolbar {
  gap: 14px;
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1113;
}

.segmented button {
  min-width: 37px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button.active {
  background: var(--panel-soft);
  color: var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.chart-reset {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

.chart-reset:hover,
.chart-reset:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle span {
  position: relative;
  width: 28px;
  height: 16px;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  background: #0a0e10;
  transition: 160ms ease;
}

.toggle span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: 160ms ease;
}

.toggle input:checked + span {
  border-color: rgba(57, 214, 161, 0.48);
  background: var(--green-soft);
}

.toggle input:checked + span::after {
  left: 14px;
  background: var(--green);
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  min-height: 32px;
  padding: 7px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chart-source {
  color: var(--muted-2);
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 568px;
  background:
    linear-gradient(180deg, rgba(57, 214, 161, 0.018), transparent 30%),
    #0a0f11;
  overflow: hidden;
}

#price-chart {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#price-chart.dragging {
  cursor: grabbing;
}

#price-chart:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: -2px;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  background: rgba(10, 15, 17, 0.74);
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.chart-loading[hidden] {
  display: none;
}

.chart-loading span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-bright);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 152px;
  padding: 9px 10px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  background: rgba(11, 16, 18, 0.96);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  pointer-events: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.chart-tooltip strong {
  color: var(--text);
  font-weight: 500;
}

.overlay-legend {
  display: flex;
  min-height: 42px;
  padding: 10px 18px;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.legend-item {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.legend-item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.legend-item.long { color: var(--green); }
.legend-item.anchor { color: var(--amber); }
.legend-item.cost { color: var(--cyan); }
.legend-item.confirm { color: var(--violet); }
.legend-item.short { color: var(--red); }

.decision-panel {
  display: flex;
  min-width: 0;
  padding: 20px;
  flex-direction: column;
}

.regime-lockup {
  gap: 11px;
  margin: 18px 0 14px;
}

.regime-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(242, 184, 91, 0.4);
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 18px;
}

.regime-lockup span {
  color: var(--muted);
  font-size: 10px;
}

.regime-lockup h2 {
  color: var(--amber);
}

.live-zone {
  display: grid;
  padding: 18px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: #0c1113;
}

.live-zone strong {
  margin: 4px 0 1px;
  font-size: 22px;
  font-weight: 600;
}

.live-zone small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.live-zone.zone-buy { border-color: rgba(57, 214, 161, 0.35); background: var(--green-soft); }
.live-zone.zone-sell { border-color: rgba(255, 107, 111, 0.35); background: var(--red-soft); }
.live-zone.zone-wait { border-color: rgba(242, 184, 91, 0.3); background: var(--amber-soft); }
.live-zone.zone-breakout { border-color: rgba(154, 140, 255, 0.36); background: rgba(154, 140, 255, 0.1); }

.decision-copy {
  margin: 18px 0;
}

.decision-copy h3 {
  margin: 5px 0 7px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.decision-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.risk-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.risk-box > div {
  display: grid;
  padding: 13px;
}

.risk-box > div + div {
  border-left: 1px solid var(--line);
}

.risk-box strong {
  color: var(--red);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
}

.bias-row {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 14px 0 0;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 11px;
}

.bias-row strong {
  text-align: right;
  font-weight: 500;
}

.neutral { color: var(--amber); }
.bearish { color: var(--red); }

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.execution-map {
  padding: 18px;
}

.fx-note,
.as-of {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.playbook-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.play-step {
  position: relative;
  min-height: 144px;
  padding: 17px;
  border-right: 1px solid var(--line);
  background: #0c1113;
}

.play-step:last-child {
  border-right: 0;
}

.play-step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--muted-2);
  content: "";
}

.play-step.buy::before { background: var(--green); }
.play-step.wait::before { background: var(--amber); }
.play-step.trim::before { background: var(--cyan); }
.play-step.sell::before,
.play-step.danger::before { background: var(--red); }

.play-step .range {
  font-family: var(--mono);
  font-size: 13px;
}

.play-step.buy .range { color: var(--green); }
.play-step.wait .range { color: var(--amber); }
.play-step.trim .range { color: var(--cyan); }
.play-step.sell .range,
.play-step.danger .range { color: var(--red); }

.play-step h3 {
  margin: 9px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.play-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.framework-grid,
.lower-grid,
.intel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.layers-panel,
.structure-panel,
.regime-panel,
.calendar-panel,
.events-panel,
.thesis-panel,
.news-panel {
  padding: 18px;
}

.status-chip,
.state,
.tag {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.status-chip {
  padding: 5px 9px;
}

.status-chip.warning {
  border: 1px solid rgba(242, 184, 91, 0.26);
  background: var(--amber-soft);
  color: var(--amber);
}

.layer-list {
  display: grid;
  margin-top: 14px;
}

.layer-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 63px;
  border-top: 1px solid var(--line);
}

.layer-code {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.layer-row h3,
.timeline-item h3,
.news-item h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.layer-row p,
.timeline-item p,
.news-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.state {
  padding: 4px 8px;
}

.state.elevated { background: var(--red-soft); color: var(--red); }
.state.watch { background: var(--amber-soft); color: var(--amber); }
.state.muted { background: rgba(135, 149, 146, 0.1); color: var(--muted); }

.pressure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.pressure-card {
  display: grid;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c1113;
}

.pressure-card:nth-child(2n) { border-right: 0; }
.pressure-card:nth-last-child(-n + 2) { border-bottom: 0; }

.pressure-card strong {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
}

.pressure-card.positive strong { color: var(--green); }
.pressure-card.negative strong { color: var(--red); }

.balance-bar {
  margin-top: 18px;
}

.balance-label {
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}

.bar {
  position: relative;
  height: 5px;
  margin-top: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--amber) 52%, var(--red));
  opacity: 0.55;
}

.bar i {
  position: absolute;
  top: -3px;
  left: 61%;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(237, 244, 242, 0.1);
}

.balance-bar p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.regime-track {
  display: flex;
  margin: 22px 0;
  align-items: center;
}

.regime-node {
  display: grid;
  width: 120px;
  gap: 2px;
}

.regime-node span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
}

.regime-node strong {
  font-size: 10px;
  font-weight: 600;
}

.regime-node small {
  color: var(--muted-2);
  font-size: 8px;
}

.regime-node.passed span {
  border-color: rgba(57, 214, 161, 0.35);
  background: var(--green-soft);
  color: var(--green);
}

.regime-node.current span {
  border-color: rgba(242, 184, 91, 0.42);
  background: var(--amber-soft);
  color: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 184, 91, 0.05);
}

.regime-node.current strong { color: var(--amber); }

.connector {
  width: 40px;
  height: 1px;
  margin: 0 6px 27px;
  background: var(--line-bright);
}

.connector.active {
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.trigger-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.trigger {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  min-height: 42px;
  padding: 8px 12px;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.trigger:last-child { border-bottom: 0; }
.trigger span { color: var(--muted-2); font-family: var(--mono); font-size: 9px; }
.trigger p { margin: 0; font-size: 10px; }
.trigger strong { color: var(--muted-2); font-size: 9px; font-weight: 500; }
.trigger.hit { background: var(--amber-soft); color: var(--text); }
.trigger.hit strong { color: var(--amber); }

.timeline {
  position: relative;
  display: grid;
  margin-top: 17px;
  gap: 16px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 65px;
  width: 1px;
  background: var(--line-bright);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 10px 1fr;
  gap: 11px;
  align-items: start;
}

.timeline-item time {
  padding-top: 1px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.timeline-item i {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border: 2px solid var(--panel-strong);
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 1px var(--line-bright);
}

.timeline-item.hot i { background: var(--green); }
.timeline-item.warning i { background: var(--red); }

.event-table {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.event-row {
  display: grid;
  grid-template-columns: 66px 1.4fr 1fr 0.8fr;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.event-row:last-child { border-bottom: 0; }
.event-row.header { min-height: 32px; background: #0c1113; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.event-row > span:first-child { font-family: var(--mono); }

.tag {
  width: fit-content;
  padding: 4px 7px;
}

.tag.strong { background: var(--green-soft); color: var(--green); }
.tag.weak { background: var(--red-soft); color: var(--red); }
.tag.neutral { background: rgba(135, 149, 146, 0.1); color: var(--muted); }

.thesis-panel blockquote {
  margin: 18px 0 14px;
  padding: 14px 0 14px 16px;
  border-left: 2px solid var(--amber);
  color: #cfd9d6;
  font-size: 12px;
  line-height: 1.75;
}

.thesis-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.thesis-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.thesis-list span {
  color: var(--muted-2);
  font-family: var(--mono);
}

.source-link {
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
}

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

.news-list {
  display: grid;
  margin-top: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  min-height: 66px;
  padding: 13px 10px;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: 150ms ease;
}

a.news-item:hover {
  padding-left: 15px;
  background: rgba(57, 214, 161, 0.035);
}

.news-item time,
.news-item > span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.news-item .verified { color: var(--green); }

footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 18px 3px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

footer p { max-width: 720px; margin: 0; text-align: right; }

.toast {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 11px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: #11181b;
  color: var(--text);
  font-size: 11px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .market-strip { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .primary-grid { grid-template-columns: minmax(0, 2.25fr) minmax(285px, 1fr); }
  .chart-wrap { height: 520px; }
  .playbook-track { grid-template-columns: repeat(3, 1fr); }
  .play-step:nth-child(3) { border-right: 0; }
  .play-step:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .play-step:nth-child(4) { grid-column: span 1; }
  .play-step:nth-child(5) { grid-column: span 2; }
  .regime-track { overflow-x: auto; padding-bottom: 5px; }
  .regime-node { min-width: 105px; }
}

@media (max-width: 880px) {
  .shell { width: min(100% - 24px, 760px); }
  .topbar { min-height: 82px; }
  .time-block { display: none; }
  .primary-grid,
  .framework-grid,
  .lower-grid,
  .intel-grid { grid-template-columns: 1fr; }
  .chart-panel { order: 0; }
  .decision-panel { min-height: 460px; }
  .chart-wrap { height: 480px; }
  .news-item { grid-template-columns: 105px 1fr; }
  .news-item > span { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 13px; }
  .shell { width: calc(100% - 16px); }
  .topbar { gap: 8px; }
  .identity h1 { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; }
  .live-pill { display: none; }
  .market-strip { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 76px; padding: 12px; }
  .metric:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n + 2) { border-bottom: 0; }
  .metric strong { font-size: 15px; }
  .hero-metric strong { font-size: 19px; }
  .chart-head { align-items: flex-start; flex-direction: column; }
  .chart-toolbar { width: 100%; justify-content: space-between; gap: 5px; }
  .segmented button { min-width: 32px; padding-inline: 5px; }
  .chart-source { display: none; }
  .chart-wrap { height: 430px; }
  .overlay-legend { gap: 12px; }
  .execution-map { padding: 15px; }
  .fx-note { display: none; }
  .playbook-track { grid-template-columns: 1fr; }
  .play-step:nth-child(n) { min-height: auto; grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .play-step:last-child { border-bottom: 0; }
  .layer-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .layer-row p { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .pressure-card { padding: 11px; }
  .event-row { grid-template-columns: 54px 1.3fr 0.9fr; }
  .event-row > span:last-child { display: none; }
  .news-item { grid-template-columns: 1fr; gap: 5px; }
  .regime-track { align-items: flex-start; }
  .connector { min-width: 20px; width: 20px; }
  footer { display: grid; gap: 8px; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
