/* ══════════════════════════════════════════════════════════════════════════
   TradeMaster — trading-terminal design system
   Cool near-black surfaces · one desaturated amber accent · mono numerals
   Green/red are reserved for P&L direction only.
   ══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jbmono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jbmono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* Surfaces — one cool gray family, tinted consistently */
  --bg: #0a0c10;
  --bg2: #0f1218;
  --bg3: #161a22;
  --bg-hover: #1a1f29;
  --border: #1d222c;
  --border-strong: #2a3040;

  /* Text */
  --text: #dde2ea;
  --text-muted: #828a99;
  --text-faint: #565e6d;

  /* Single brand accent — desaturated amber. Doubles as the paper-mode color. */
  --accent: #d9a45b;
  --accent-dim: rgba(217, 164, 91, 0.12);

  /* Semantic (P&L only) + categorical data colors */
  --green: #4cb782;
  --green-dim: rgba(76, 183, 130, 0.12);
  --red: #e0565b;
  --red-dim: rgba(224, 86, 91, 0.12);
  --yellow: #d9a45b;   /* legacy alias → accent */
  --blue: #6ca0dc;     /* categorical: trade decisions */
  --purple: #9d8cd8;   /* categorical: pattern study / AI mind */

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 2px rgba(2, 4, 8, 0.5), 0 8px 24px rgba(2, 4, 8, 0.35);

  --z-header: 100;
  --z-modal: 200;
  --z-toast: 300;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Faint grain so large dark areas don't read as flat digital voids */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-dim); color: var(--text); }

/* Scrollbars that match the surface family */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Keyboard accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: calc(var(--z-header) + 1);
  background: var(--bg3); color: var(--text); padding: 8px 14px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── Header ──────────────────────────────────────────────────────────────── */

header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px; height: 54px;
  background: rgba(15, 18, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: var(--z-header);
}

.header-left, .header-right { display: flex; align-items: center; gap: 12px; }

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--text); white-space: nowrap;
}
.logo .logo-mark { color: var(--accent); font-size: 15px; }

.header-center nav { display: flex; gap: 2px; }

.nav-link {
  position: relative;
  padding: 17px 12px 15px;
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

/* Status cluster */
.status-cluster {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; transition: background 0.3s ease; }
.status-dot.online { background: var(--green); box-shadow: 0 0 8px rgba(76, 183, 130, 0.6); }
.status-dot.offline { background: var(--red); }
.status-label { font-family: var(--mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Badges */
.badge {
  padding: 3px 9px; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
}
.badge-paper { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(217, 164, 91, 0.35); }
.badge-live { background: var(--red-dim); color: var(--red); border: 1px solid rgba(224, 86, 91, 0.4); }

/* Paper-mode strip — slim, quiet, same accent family */
.paper-banner {
  background: linear-gradient(90deg, var(--accent-dim), transparent 60%);
  border-bottom: 1px solid rgba(217, 164, 91, 0.18);
  color: var(--accent); text-align: center;
  padding: 4px 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

main { padding: 22px 24px 48px; max-width: 1440px; margin: 0 auto; position: relative; z-index: 2; }

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

/* ── Cards ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.18s ease;
}
.grid .card { margin-bottom: 0; }

.card-title {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 10px; letter-spacing: 0.02em;
}

.card-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }

.stat-value {
  font-family: var(--mono); font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

/* ── Tables — terminal style: mono, hairline rows, right-ready numerals ──── */

.table-container { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }

table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }

th {
  text-align: left; padding: 8px 10px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

td {
  padding: 9px 10px; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--text);
}
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: var(--bg3); }
tbody tr:last-child td { border-bottom: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.btn-primary { background: var(--accent); color: #14100a; }
.btn-primary:hover { background: #e4b16c; }

.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-faint); }

.btn-success { background: var(--green-dim); color: var(--green); border-color: rgba(76, 183, 130, 0.35); }
.btn-success:hover { background: rgba(76, 183, 130, 0.2); }

.btn-danger { background: var(--red-dim); color: var(--red); border-color: rgba(224, 86, 91, 0.35); }
.btn-danger:hover { background: rgba(224, 86, 91, 0.22); }

/* ── Forms ───────────────────────────────────────────────────────────────── */

input, select, textarea {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 7px 10px; font-family: var(--font); font-size: 13px;
  transition: border-color 0.15s ease;
}
input::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input:hover, select:hover { border-color: var(--text-faint); }

label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 5px; letter-spacing: 0.02em; }

.form-group { margin-bottom: 14px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

/* ── Symbol picker (searchable multi-select dropdown) ───────────────────── */

.sym-picker-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  background: var(--bg2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: 280px; overflow-y: auto;
}
.sym-picker-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border);
}
.sym-picker-row:last-child { border-bottom: none; }
.sym-picker-row:hover { background: var(--bg-hover); }
.sym-picker-row.disabled { cursor: default; opacity: 0.45; }
.sym-picker-row.disabled:hover { background: none; }
.sym-picker-row input[type="checkbox"] { flex-shrink: 0; }
.sym-picker-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); font-size: 9px; font-weight: 600; color: var(--text-muted);
  font-family: var(--mono); overflow: hidden;
}
.sym-picker-icon img { width: 100%; height: 100%; object-fit: contain; }
.sym-picker-info { flex: 1; min-width: 0; }
.sym-picker-symbol { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.sym-picker-name { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sym-picker-price { font-family: var(--mono); font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.sym-picker-empty { padding: 14px 10px; font-size: 12px; color: var(--text-faint); text-align: center; }

.sym-picker-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sym-picker-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent-dim); border: 1px solid rgba(217, 164, 91, 0.35); color: var(--accent);
  border-radius: 20px; padding: 3px 6px 3px 10px; font-family: var(--mono); font-size: 11.5px;
}
.sym-picker-chip button {
  background: none; border: none; color: inherit; cursor: pointer; font-size: 13px;
  line-height: 1; padding: 2px 4px; border-radius: 50%;
}
.sym-picker-chip button:hover { background: rgba(217, 164, 91, 0.25); }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ── Settings sub-tabs ───────────────────────────────────────────────────── */

.settings-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.settings-tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s ease;
}
.settings-tab-btn:hover { color: var(--text); }
.settings-tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.settings-pane { display: none; }
.settings-pane.active { display: block; }

/* ── Risk level slider ───────────────────────────────────────────────────── */

.risk-slider-wrap { padding: 6px 4px 2px; }
input[type="range"].risk-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, var(--green), var(--accent) 40%, #d97a4c 68%, var(--red));
  margin: 10px 0;
}
input[type="range"].risk-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); border: 3px solid var(--bg2);
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
}
input[type="range"].risk-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); border: 3px solid var(--bg2);
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
}
.risk-level-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); font-weight: 500; letter-spacing: 0.02em; }
.risk-level-labels span { cursor: pointer; }
.risk-level-labels span.active-low { color: var(--green); }
.risk-level-labels span.active-medium { color: var(--accent); }
.risk-level-labels span.active-high { color: #d97a4c; }
.risk-level-labels span.active-allin { color: var(--red); }
.risk-level-name { font-size: 15px; font-weight: 600; margin-top: 10px; }
.risk-level-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ── Semantic colors ─────────────────────────────────────────────────────── */

.green { color: var(--green); }
.red { color: var(--red); }
.yellow { color: var(--accent); }
.blue { color: var(--blue); }
.muted { color: var(--text-muted); }

.action-buy   { color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.action-sell  { color: var(--red); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.action-hold  { color: var(--text-faint); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.action-raise { color: var(--blue); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.action-lower { color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }

/* ── Meters ──────────────────────────────────────────────────────────────── */

.confidence-bar, .weight-bar {
  height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden;
}
.confidence-fill, .weight-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Charts ──────────────────────────────────────────────────────────────── */

.chart-container { position: relative; height: 260px; }

/* ── Insight / thought cards ─────────────────────────────────────────────── */

.insight-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  transition: border-color 0.18s ease;
}
.insight-card:hover { border-color: var(--border-strong); }

.category-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em;
}
.cat-pattern { background: rgba(157, 140, 216, 0.12); color: var(--purple); }
.cat-risk    { background: var(--red-dim); color: var(--red); }
.cat-timing  { background: rgba(108, 160, 220, 0.12); color: var(--blue); }
.cat-general { background: var(--bg3); color: var(--text-muted); }

.thought-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 8px;
}
.thought-symbol { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text); }
.thought-time { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.thought-text {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.65;
  white-space: pre-wrap; max-height: 180px; overflow-y: auto;
}

.scrollable { max-height: 620px; overflow-y: auto; }

/* ── Symbol manager ──────────────────────────────────────────────────────── */

.symbol-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  transition: border-color 0.15s ease;
}
.symbol-item:hover { border-color: var(--border-strong); }
.symbol-name { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.symbol-meta { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── States ──────────────────────────────────────────────────────────────── */

.loading { text-align: center; padding: 48px; color: var(--text-faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.loading::after { content: '…'; animation: pulse 1.2s ease infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.empty-state { text-align: center; padding: 40px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 26px; margin-bottom: 10px; opacity: 0.5; }
.empty-state p { font-size: 13px; max-width: 46ch; margin: 0 auto; line-height: 1.6; }

/* Page entry — subtle rise, GPU-friendly */
#page-content > * { animation: rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
#page-content > *:nth-child(2) { animation-delay: 0.04s; }
#page-content > *:nth-child(3) { animation-delay: 0.08s; }
#page-content > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

/* ── Modal ───────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; width: 100%; max-width: 440px;
  animation: rise 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ── Trade confirmation (human-in-the-loop veto gate) ───────────────────── */

.confirm-trade-modal {
  max-width: 480px;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(217, 164, 91, 0.25), var(--shadow);
}
.confirm-trade-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.confirm-trade-symbol { font-weight: 600; font-size: 15px; }
.confirm-trade-countdown {
  margin-left: auto; font-family: var(--mono); font-size: 13px;
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.confirm-trade-countdown.urgent { color: var(--red); }
.confirm-trade-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.confirm-trade-body .ct-reasoning {
  color: var(--text); margin-bottom: 12px; max-height: 140px; overflow-y: auto;
}
.confirm-trade-body .ct-stats {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px;
}
.confirm-trade-change-form {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.confirm-trade-change-form .form-group { margin-bottom: 0; }
.confirm-trade-actions { display: flex; gap: 8px; margin-top: 18px; }
.confirm-trade-actions .btn { flex: 1; }

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--z-toast);
  background: var(--bg3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  border-left: 2px solid var(--green);
  padding: 11px 16px; font-size: 13px; color: var(--text);
  box-shadow: var(--shadow); max-width: 380px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-error { border-left-color: var(--red); }

/* ── Pagination ──────────────────────────────────────────────────────────── */

#trades-pagination .btn, #signals-pagination .btn { font-family: var(--mono); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  main { padding: 16px 14px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  header { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .header-center { order: 3; width: 100%; overflow-x: auto; }
  .header-center nav { width: max-content; }
  .nav-link { padding: 10px 10px; border-bottom-width: 2px; }
  .status-cluster { padding: 4px 10px; }
  .stat-value { font-size: 20px; }
  .confirm-trade-change-form { grid-template-columns: 1fr; }
  .confirm-trade-actions { flex-direction: column; }
}

/* Native controls follow the accent */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* Expanded detail rows shouldn't inherit the row hover */
.trade-detail-row:hover, .signal-detail-row:hover { background: transparent; }
