/* ══════════════════════════════════════════
   Black-Gold Design System
   Inspired by Airbnb's generous, single-accent
   marketplace language. Rausch → Gold.
   ══════════════════════════════════════════ */

:root {
  /* ── Canvas ── */
  --bg-canvas: #08080a;
  --bg-surface: #0f0f14;
  --bg-card: #16161e;
  --bg-card-hover: #1e1e28;
  --bg-elevated: #22222e;
  --bg-input: #12121a;
  --bg-overlay: rgba(0, 0, 0, 0.72);
  --bg-toast: #1c1c28;

  /* ── Gold Accent (replaces Airbnb Rausch) ── */
  --gold: #c9a050;
  --gold-hover: #d4af37;
  --gold-active: #b8903a;
  --gold-bright: #e8c547;
  --gold-dim: #a08030;
  --gold-surface: rgba(201, 160, 80, 0.08);
  --gold-border: rgba(201, 160, 80, 0.18);
  --gold-glow: rgba(201, 160, 80, 0.12);
  --gold-gradient: linear-gradient(135deg, #c9a050 0%, #d4af37 50%, #e8c547 100%);
  --gold-gradient-subtle: linear-gradient(180deg, rgba(201,160,80,0.12) 0%, rgba(201,160,80,0.02) 100%);

  /* ── Text ── */
  --text-primary: #e8e4db;
  --text-secondary: #b0a890;
  --text-muted: #706850;
  --text-inverse: #0a0a0a;
  --text-link: #c9a050;

  /* ── Borders ── */
  --border-subtle: rgba(201, 160, 80, 0.06);
  --border-default: rgba(201, 160, 80, 0.12);
  --border-strong: rgba(201, 160, 80, 0.22);
  --border-active: rgba(201, 160, 80, 0.45);

  /* ── Semantic ── */
  --up: #4caf84;
  --up-bg: rgba(76, 175, 132, 0.1);
  --up-border: rgba(76, 175, 132, 0.25);
  --down: #e05555;
  --down-bg: rgba(224, 85, 85, 0.1);
  --down-border: rgba(224, 85, 85, 0.25);
  --info: #5b9bd5;
  --info-bg: rgba(91, 155, 213, 0.1);
  --warn: #d4a030;
  --warn-bg: rgba(212, 160, 48, 0.1);

  /* ── Radius (Airbnb-inspired: soft) ── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Spacing (8px base) ── */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 64px;

  /* ── Shadows (single tier + flat) ── */
  --shadow-card: 0 1px 0 rgba(201, 160, 80, 0.04), 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 2px 0 rgba(201, 160, 80, 0.06), 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(201, 160, 80, 0.08);

  /* ── Typography ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201, 160, 80, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(201, 160, 80, 0.28); }

/* ═══ PAGE SHELL ═══ */
.page-shell {
  padding: var(--space-lg);
  min-height: 100vh;
}

.top-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* ═══ PANEL (card surface) ═══ */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.sidebar { padding: var(--space-lg); }
.content  { padding: var(--space-xl); }

.sidebar, .content {
  min-height: 200px;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; line-height: 1.25; color: var(--text-primary); }
h2 { font-size: 18px; line-height: 1.3; color: var(--text-primary); }
h3 { font-size: 16px; line-height: 1.35; color: var(--text-primary); }
.muted { color: var(--text-muted); font-size: 13px; }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--gold); }
.text-up { color: var(--up); }
.text-down { color: var(--down); }
.text-mono { font-family: var(--font-mono); font-size: 13px; }

/* ═══ VIEW SWITCHER ═══ */
.view-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: 3px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
}
.view-tab {
  flex: 1;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.view-tab:hover { color: var(--text-primary); }
.view-tab.active {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  font-weight: 600;
}

/* ═══ INPUT / FORM ═══ */
.input-group {
  display: flex;
  gap: 0;
  margin-top: var(--space-base);
}
.input-group input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus { border-color: var(--gold); }
.input-group input::placeholder { color: var(--text-muted); letter-spacing: 0; }
.input-group .btn-gold { padding: 0 14px; font-size: 13px; }
.btn-gold {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--gold-gradient);
  color: var(--text-inverse);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-gold:active { filter: brightness(0.95); transform: translateY(0); }
.btn-gold:disabled { filter: grayscale(0.6); cursor: not-allowed; transform: none; }

/* ── Button variants ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-full); background: var(--bg-card); color: var(--text-primary); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-outline-gold { border-color: var(--border-active); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold-surface); }
.btn-danger { border-color: var(--down-border); color: var(--down); }
.btn-danger:hover { background: var(--down-bg); }
.btn-success { border-color: var(--up-border); color: var(--up); }
.btn-success:hover { background: var(--up-bg); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }

/* ═══ STOCK LIST ═══ */
.stock-list { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-lg); }
.stock-item {
  padding: var(--space-md) var(--space-base);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.stock-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-default);
}
.stock-item.active {
  border-color: var(--border-active);
  background: var(--gold-gradient-subtle);
  box-shadow: 0 0 0 1px rgba(201, 160, 80, 0.08);
}
.stock-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}
.stock-item-head strong {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.stock-item-meta { margin-top: 5px; font-size: 12px; }

/* ── Status badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-success { background: var(--up-bg); color: var(--up); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-danger  { background: var(--down-bg); color: var(--down); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-gold    { background: var(--gold-surface); color: var(--gold); }

/* ═══ CONTENT HEADER ═══ */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-base);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
}
.content-header h1 { font-size: 24px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }

/* ═══ METRICS GRID ═══ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}
.metric-card {
  padding: var(--space-base);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
}
.metric-card:hover { border-color: var(--border-default); }
.metric-card .muted { font-size: 12px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.metric-card > div:last-child {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* ═══ SECTION BOX ═══ */
.section-box {
  margin: var(--space-lg) 0;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.section-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-base);
  margin-bottom: var(--space-lg);
}
.section-box-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ═══ HIGHLIGHT CARDS (support/resistance/stop-loss) ═══ */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-base);
}
.highlight-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s;
}
.highlight-card:hover { border-color: var(--border-default); transform: translateY(-2px); }
.highlight-card .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.highlight-card strong {
  display: block;
  margin-top: var(--space-sm);
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.highlight-card.support { border-left: 3px solid var(--up); }
.highlight-card.resistance { border-left: 3px solid var(--warn); }
.highlight-card.stop-loss { border-left: 3px solid var(--down); }

/* ═══ PROBABILITY BAR ═══ */
.probability-card {
  margin-top: var(--space-base);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.probability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-base);
  margin-bottom: var(--space-md);
}
.probability-values {
  display: flex;
  gap: var(--space-base);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.probability-values span { white-space: nowrap; }
.probability-bar {
  display: flex;
  overflow: hidden;
  min-height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
}
.probability-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-inverse);
  white-space: nowrap;
  transition: width 0.4s ease;
}
.probability-segment.buy  { background: linear-gradient(90deg, #c9a050, #d4af37); }
.probability-segment.hold { background: linear-gradient(90deg, #5b6b8a, #6b7b9a); }
.probability-segment.sell { background: linear-gradient(90deg, #4a7a63, #5a8a73); }
.probability-explanation { margin-top: var(--space-md); line-height: 1.65; }

/* ═══ PRIMARY RISK CARD ═══ */
.primary-risk-card {
  margin-top: var(--space-base);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--down-bg);
  border: 1px solid var(--down-border);
}
.primary-risk-card .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.primary-risk-card strong { display: block; margin-top: var(--space-sm); line-height: 1.6; font-weight: 500; }

/* ═══ FACTOR SCORE CARDS ═══ */
.factor-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-base);
}
.factor-score-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s;
}
.factor-score-card:hover { border-color: var(--border-default); transform: translateY(-1px); }
.factor-score-card.strong {
  border-color: var(--down-border);
  background: linear-gradient(180deg, var(--down-bg) 0%, var(--bg-surface) 100%);
}
.factor-score-card.good {
  border-color: var(--up-border);
  background: linear-gradient(180deg, var(--up-bg) 0%, var(--bg-surface) 100%);
}
.factor-score-card.weak {
  border-color: rgba(212, 160, 48, 0.3);
  background: linear-gradient(180deg, var(--warn-bg) 0%, var(--bg-surface) 100%);
}
.factor-score-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.factor-score-badge {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}
.factor-score-value {
  margin-top: var(--space-md);
  font-size: 36px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}
.factor-score-meta { margin-top: var(--space-sm); font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ═══ RECOMMENDATION HEADER ═══ */
.recommendation-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-base);
  align-items: flex-start;
  margin-bottom: var(--space-base);
}
.recommendation-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.recommendation-score {
  min-width: 140px;
  padding: var(--space-base) var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: right;
}
.recommendation-score .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.recommendation-score > div:last-child {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--gold);
}

/* ═══ INDICATOR GRID ═══ */
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-base);
}
.indicator-item {
  padding: var(--space-md) var(--space-base);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.indicator-item .muted { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.indicator-item strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}
.indicator-item strong:empty::after { content: '--'; color: var(--text-muted); font-weight: 500; }

/* ═══ SIGNALS & WARNINGS ═══ */
.signal-list, .warning-list { display: grid; gap: 6px; margin-top: var(--space-base); }
.signal-item, .warning-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-base);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  line-height: 1.55;
}
.warning-item { background: var(--down-bg); border-color: var(--down-border); }

/* ═══ CHART ═══ */
.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-base);
  padding: var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.chart-toolbar .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.chart-toolbar .period-group {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}
.period-btn {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.period-btn:hover { color: var(--text-primary); }
.period-btn.active {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  font-weight: 600;
}
.chart-box { height: 520px; margin-top: var(--space-base); }

/* ═══ COMPANY INFO ═══ */
.company-box {
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  line-height: 1.7;
}
.company-box h3 { margin-top: var(--space-lg); }
.company-box h3:first-child { margin-top: 0; }

/* ═══ NEWS LIST ═══ */
.news-list { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.news-item {
  padding: var(--space-base) var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s;
  line-height: 1.65;
}
.news-item:hover { border-color: var(--border-default); }
.news-item a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.news-item a:hover { color: var(--gold-hover); text-decoration: underline; }

/* ═══ DATA TABLE STYLE (trader positions, trades) ═══ */
.data-list { display: grid; gap: 6px; }
.data-item {
  padding: var(--space-md) var(--space-base);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  line-height: 1.65;
  transition: border-color 0.15s;
}
.data-item:hover { border-color: var(--border-default); }
.data-item strong { color: var(--text-primary); }

/* ═══ FIELD CARD (subscription settings) ═══ */
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-base);
}
.field-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-base);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.field-card .muted { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.field-card input[type="number"] {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.field-card input[type="number"]:focus { border-color: var(--gold); }
.field-card .btn-gold { border-radius: var(--radius-full); height: 44px; }

/* ═══ NUMBER INPUT ═══ */
.num-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-input);
  overflow: hidden;
}
.num-input-wrap input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  text-align: center;
}
.num-input-wrap input:focus { background: rgba(201,160,80,0.04); }
.num-input-wrap:focus-within { border-color: var(--gold); }
.num-btn {
  width: 32px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.num-btn:hover { color: var(--gold); }

/* ═══ EMPTY STATE ═══ */
.empty-state {
  padding: var(--space-xxl);
  text-align: center;
  color: var(--text-muted);
}
.empty-state .muted { font-size: 14px; }

/* ═══ LOADING OVERRIDE ═══ */
.el-loading-mask {
  background: var(--bg-overlay) !important;
  backdrop-filter: blur(4px);
}
.el-loading-spinner .path { stroke: var(--gold) !important; }
.el-loading-spinner .el-loading-text { color: var(--text-secondary) !important; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 1081px) {
  .top-grid { min-height: calc(100vh - 48px); }
  .sidebar, .content {
    height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}
@media (max-width: 1080px) {
  .top-grid { grid-template-columns: 1fr; }
  .page-shell { padding: var(--space-base); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight-grid,
  .field-grid,
  .factor-score-grid,
  .indicator-grid { grid-template-columns: 1fr; }
  .recommendation-head,
  .content-header,
  .section-box-head { flex-direction: column; align-items: flex-start; }
  .recommendation-score { text-align: left; }
  .sidebar, .content { height: auto; overflow: visible; padding: var(--space-base); }
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr; }
  .probability-head { flex-direction: column; }
  .chart-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.section-box, .metrics, .highlight-grid, .news-list > *, .data-list > * {
  animation: fadeIn 0.35s ease-out;
}
