:root {
  color-scheme: dark;
  --bg: #090b0d;
  --panel: #12161a;
  --panel-2: #171d22;
  --line: #263039;
  --text: #e7edf2;
  --muted: #8b98a5;
  --green: #32d583;
  --red: #ff5f57;
  --amber: #f6c453;
  --cyan: #4cc9f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.login-body {
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-shell {
  width: min(360px, 100%);
}

.login-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}

.login-brand {
  margin-bottom: 2px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.login-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c0f12;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.login-panel button {
  border: 1px solid var(--line);
  background: #1d252c;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  background: #0c0f12;
}

.brand {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--cyan);
}

.rail-button {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.rail-button.active, .rail-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}

.terminal {
  min-width: 0;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

h1, h2, p { margin: 0; }
h1 { font-size: 20px; }
h2 { font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: 0; }

#status { color: var(--muted); margin-top: 2px; }

.commandbar {
  display: flex;
  min-width: min(560px, 55vw);
  border: 1px solid var(--line);
  background: var(--panel);
}

.commandbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.commandbar button {
  border: 0;
  border-left: 1px solid var(--line);
  background: #1d252c;
  color: var(--text);
  padding: 0 16px;
  cursor: pointer;
}

.webcil-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #28636a;
  background: #15282b;
  color: #9de1df;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 2px 0 #103c40;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}

.webcil-link:hover { background: #1a3538; transform: translateY(-1px); box-shadow: 0 3px 0 #103c40; }
.webcil-link:active { transform: translateY(2px); box-shadow: none; }

.ticker-strip {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  gap: 8px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.ticker {
  flex: 0 0 150px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}

.scanner-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.scanner-tabs {
  display: flex;
  border: 1px solid var(--line);
  background: var(--panel);
}

.scanner-tab {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  cursor: pointer;
}

.scanner-tab:last-child { border-right: 0; }
.scanner-tab.active { color: var(--cyan); background: #0c0f12; }

.scanner-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}

.scanner-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.scanner-filters input {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 7px 8px;
}

.audio-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  grid-template-columns: none !important;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 7px 8px;
}

.audio-toggle input { width: auto; }

.ticker strong, .price { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ticker span { display: block; color: var(--muted); font-size: 12px; }
.up { color: var(--green); }
.down { color: var(--red); }
.hot { color: var(--amber); }

.workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(360px, .85fr);
  grid-template-rows: minmax(360px, auto) minmax(240px, 1fr);
  gap: 14px;
}

.workstation {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 310px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 148px);
}

.workstation[hidden] { display: none; }

.workstation-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 14px;
}

.workstation-top p,
.dom-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.timezone-select {
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.timezone-select select {
  min-width: 124px;
  border: 1px solid var(--line);
  background: #0c0f12;
  color: var(--text);
  padding: 7px 8px;
  font: inherit;
  text-transform: none;
}

.workstation-mode {
  display: inline-flex;
  align-self: center;
  border: 1px solid var(--line);
  background: #0c0f12;
}

.mode-button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font: inherit;
}

.mode-button:last-child { border-right: 0; }
.mode-button.active { background: #172229; color: var(--cyan); }

.feed-health {
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  gap: 2px 8px;
  min-width: 190px;
  border: 1px solid var(--line);
  background: #0c0f12;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.feed-health span,
.feed-health em {
  color: var(--muted);
  font-style: normal;
}

.feed-health em {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-spy-proxy strong { color: var(--cyan); }
.feed-ninjatrader-live strong { color: var(--green); }
.feed-ninjatrader-delayed strong,
.feed-ninjatrader-unknown strong,
.feed-ninjatrader-stale strong,
.feed-synthetic-fallback strong { color: var(--amber); }

.replay-connection {
  grid-template-columns: auto auto auto;
  align-items: center;
  min-width: 0;
}

.replay-connection strong { color: var(--amber); }
.replay-connection.feed-responded { border-color: var(--green); }
.replay-connection.feed-responded strong { color: var(--green); }
.replay-connection.feed-not-responding { border-color: var(--red); }
.replay-connection.feed-not-responding strong { color: var(--red); }
.replay-connection.feed-no-request-staged strong { color: var(--muted); }
.replay-connection button {
  padding: 3px 6px;
  font-size: 10px;
}

.protected-strip {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: min(520px, 54vw);
  border: 1px solid var(--line);
  background: #0c0f12;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.protected-strip span { color: var(--muted); }
.protected-strip strong { font-size: 14px; }
.protected-strip em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.protected-strip.risk-low strong { color: var(--green); }
.protected-strip.risk-elevated strong { color: var(--cyan); }
.protected-strip.risk-high strong { color: var(--amber); }
.protected-strip.risk-critical strong { color: var(--red); }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.range-chart-panel { grid-column: auto; }
.live-tick-chart-panel { grid-column: auto; }
.live-tick-chart-panel canvas { height: 160px; }

.chart-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.chart-title {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.chart-title span { color: var(--text); font-weight: 700; }
.chart-title strong { color: var(--cyan); }
.chart-title em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: 220px;
}

.breadth-chart-panel {
  grid-column: 1 / -1;
}

.stock-news-feed {
  display: grid;
  max-height: 220px;
  overflow: auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 4px 12px 10px;
}

.stock-news-feed .news-item {
  grid-template-columns: 56px minmax(0, 1fr) 112px;
  min-width: 0;
}

.stock-news-empty {
  grid-column: 1 / -1;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.stock-history-chart {
  display: block;
  width: 100%;
  height: 220px;
  background: #101419;
}

.breadth-chart {
  display: block;
  width: 100%;
  height: 190px;
  background: #101419;
}

.tick-chart-panel {
  grid-column: 1 / -1;
}

.tick-chart-panel canvas {
  height: 260px;
}

.dom-panel {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.dom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

#dom-last {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
}

.replay-clock {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #0c0f12;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.replay-clock[hidden] { display: none; }
.replay-clock span { color: var(--amber); }
.replay-clock strong { color: var(--text); }

.dom-table {
  display: grid;
  max-height: 520px;
  overflow: auto;
}

.dom-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  min-height: 28px;
  border-bottom: 1px solid #202830;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.dom-row > * {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 8px;
}

.dom-row strong {
  justify-content: center;
  border-left: 1px solid #202830;
  border-right: 1px solid #202830;
  color: var(--text);
}

.dom-row-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0c0f12;
  color: var(--muted);
  text-transform: uppercase;
}

.dom-row .bid { color: var(--green); }
.dom-row .ask { color: var(--red); justify-content: flex-start; }
.dom-row.at-last { background: #162430; }
.dom-row.at-last strong { color: var(--cyan); }

.replay-ticket {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.replay-ticket label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.replay-ticket .replay-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.replay-ticket select,
.replay-ticket input,
.replay-ticket button {
  min-width: 0;
  border: 1px solid var(--line);
  background: #0c0f12;
  color: var(--text);
  padding: 7px;
}

.replay-ticket input[type="range"] {
  width: 112px;
  padding: 0;
  accent-color: var(--cyan);
}

.replay-ticket output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.replay-ticket button {
  background: #151a1f;
  cursor: pointer;
}

.paper-ticket {
  display: grid;
  grid-template-columns: 72px repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.paper-ticket label,
.paper-journal label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.paper-ticket input,
.paper-journal select,
.paper-journal textarea {
  min-width: 0;
  border: 1px solid var(--line);
  background: #0c0f12;
  color: var(--text);
  padding: 7px;
}

.paper-ticket button,
.paper-journal button {
  min-width: 0;
  border: 1px solid var(--line);
  background: #151a1f;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.paper-ticket button.buy { border-color: rgba(50, 213, 131, 0.45); color: var(--green); }
.paper-ticket button.sell { border-color: rgba(255, 95, 87, 0.5); color: var(--red); }
.paper-ticket button:disabled { cursor: not-allowed; opacity: 0.45; }

.paper-ticket p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.paper-state {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.paper-state div {
  display: grid;
  gap: 4px;
  border-right: 1px solid #202830;
  border-bottom: 1px solid #202830;
  padding: 9px 10px;
}

.paper-state span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.paper-state strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.paper-state .gain { color: var(--green); }
.paper-state .loss { color: var(--red); }

.paper-journal {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.journal-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.paper-journal textarea {
  min-height: 68px;
  resize: vertical;
}

.paper-events {
  display: grid;
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 8px;
}

.paper-events p {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.paper-event {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 8px;
  border-bottom: 1px solid #202830;
  padding: 7px 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.paper-event span { color: var(--muted); }
.paper-event em {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.market-panel { grid-column: 1; grid-row: 1; }
.news-panel { grid-column: 1; grid-row: 2; }
.detail-panel { grid-column: 2; grid-row: 1; }
.pulse-panel { grid-column: 2; grid-row: 2; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head span { color: var(--muted); font-size: 12px; }

.focus-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeframe-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
}

.timeframe-tab {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 3px 7px;
  cursor: pointer;
  font-size: 12px;
}

.timeframe-tab:last-child { border-right: 0; }
.timeframe-tab.active { color: var(--cyan); background: #0c0f12; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 11px 14px; border-bottom: 1px solid #1e262d; text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-2); }

.range {
  height: 8px;
  background: #242c33;
  position: relative;
}

.range::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--pos) * 100%);
  background: var(--cyan);
}

#sparkline {
  width: 100%;
  height: 240px;
  display: block;
}

.focus-chart-hidden { display: none !important; }

.chart-controls {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 10px 0 2px;
}

.chart-controls input[type="range"] {
  accent-color: var(--cyan);
  flex: 1;
  min-width: 0;
}

.chart-controls button {
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 30px;
}

.chart-controls button:disabled {
  cursor: default;
  opacity: 0.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.news-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.news-impact {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #101419;
  padding: 12px;
}

.impact-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.impact-bar {
  height: 8px;
  background: #242c33;
}

.impact-bar i {
  display: block;
  height: 100%;
}

.impact-bar i.bullish { background: var(--green); }
.impact-bar i.neutral { background: var(--cyan); }
.impact-bar i.bearish { background: var(--red); }

.impact-row strong {
  text-align: right;
}

.news-feed {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #202830;
  color: var(--text);
  text-decoration: none;
}

.news-item span,
.news-item em {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
}

.news-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.news-item em {
  overflow: hidden;
  text-align: right;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: #0c0f12;
  color: var(--cyan);
  padding: 2px 5px;
  cursor: pointer;
}

.news-badge + .news-badge { margin-left: 4px; }
.news-badge:hover { color: var(--text); border-color: var(--cyan); }

.bullish { color: var(--green); }
.neutral { color: var(--cyan); }
.bearish { color: var(--red); }
.news-empty { color: var(--muted); font-size: 12px; }

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.pulse-stat {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pulse-stat:nth-child(2n) { border-right: 0; }
.pulse-stat span { display: block; color: var(--muted); font-size: 11px; }
.pulse-stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.event-feed {
  max-height: 360px;
  overflow: auto;
  padding: 8px;
}

.event {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #202830;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 980px) {
  .topbar { align-items: stretch; flex-direction: column; }
  .commandbar { min-width: 0; width: 100%; }
  .scanner-bar { grid-template-columns: 1fr; }
  .scanner-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { grid-template-columns: 1fr; }
  .workstation { grid-template-columns: 1fr; }
  .workstation-top { flex-direction: column; }
  .protected-strip { min-width: 0; width: 100%; }
  .dom-panel { grid-column: auto; grid-row: auto; }
  .market-panel, .news-panel, .detail-panel, .pulse-panel { grid-column: auto; grid-row: auto; }
  .news-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .terminal { padding: 10px; }
  .scanner-tabs { overflow: auto; }
  .scanner-filters { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .protected-strip { grid-template-columns: 1fr; }
  .protected-strip em { white-space: normal; }
  .chart-title { grid-template-columns: 1fr auto; }
  .chart-title em { grid-column: 1 / -1; text-align: left; }
  .paper-ticket { grid-template-columns: 1fr; }
  .journal-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
.mcp-status{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:700;color:#8c2c2c}.mcp-status i{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:#c0392b;box-shadow:0 0 0 2px #c0392b33}.mcp-status.connected{color:#237a48}.mcp-status.connected i{background:#25a55b;box-shadow:0 0 0 2px #25a55b33}.mcp-status.disconnected i{animation:mcpPulse 1.4s ease-in-out infinite}@keyframes mcpPulse{50%{box-shadow:0 0 0 5px #c0392b22}}
