/* 旺财 v3 — 专业金融终端风格 */
:root {
  /* 背景层次 */
  --bg-base: #0f1117;
  --bg-card: #181b24;
  --bg-card-hover: #1e2230;
  --bg-input: #13161e;
  --bg-tertiary: #111420;

  /* 边框 */
  --border: #282d3a;
  --border-light: #333a4a;

  /* 文字 - 高对比度 */
  --text-1: #f0f2f5;
  --text-2: #a0a8b8;
  --text-3: #636b7e;

  /* 涨跌色 - 中国标准 (红涨绿跌) */
  --green: #26a69a;
  --green-bg: rgba(38,166,154,0.10);
  --green-dim: #1e8c82;
  --red: #ef5350;
  --red-bg: rgba(239,83,80,0.10);
  --red-dim: #d44644;

  /* 强调色 */
  --orange: #ffab40;
  --orange-bg: rgba(255,171,64,0.10);
  --blue: #58a6ff;
  --blue-bg: rgba(88,166,255,0.10);
  --purple: #a78bfa;

  /* 尺寸 */
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.15);

  /* K线图颜色 */
  --chart-grid: #1e2330;
  --chart-axis: #252a36;
  --chart-label: #5c6478;
  --chart-tooltip-bg: #1a1f2b;
  --chart-tooltip-border: #252a36;
  --chart-tooltip-text: #e8ecf1;
  --chart-zoom-bg: #151821;
}

/* ── 亮色主题 ──────────────────────────────────────── */
[data-theme="light"] {
  --bg-base: #f5f6f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f3;
  --bg-input: #eef0f4;
  --bg-tertiary: #f0f2f5;

  --border: #e0e3e8;
  --border-light: #d0d4dc;

  --text-1: #1a1d24;
  --text-2: #5a6270;
  --text-3: #8a92a2;

  --green: #0d8c7f;
  --green-bg: rgba(13,140,127,0.08);
  --green-dim: #0a7569;
  --red: #d44040;
  --red-bg: rgba(212,64,64,0.08);
  --red-dim: #b83636;

  --orange: #e0952e;
  --orange-bg: rgba(224,149,46,0.08);
  --blue: #2b7de9;
  --blue-bg: rgba(43,125,233,0.08);
  --purple: #7c5ecf;

  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);

  --chart-grid: #eaecef;
  --chart-axis: #d8dbe0;
  --chart-label: #8a92a2;
  --chart-tooltip-bg: #ffffff;
  --chart-tooltip-border: #d8dbe0;
  --chart-tooltip-text: #1a1d24;
  --chart-zoom-bg: #f0f1f3;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────── */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--orange);
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.nav { display: flex; gap: 2px; }
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--blue); background: var(--blue-bg); }

/* ── Search ───────────────────────────────────────── */
.search-box {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.search-box input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-1);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.search-box input:focus { border-color: var(--blue); }
.search-box input::placeholder { color: var(--text-3); }
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  z-index: 200;
}
.search-results.show { display: block; }
.search-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-card-hover); }
.search-item .stock-name { font-weight: 600; font-size: 13px; }
.search-item .stock-code { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.search-item .market-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.tag-hk { background: var(--orange-bg); color: var(--orange); }
.tag-a { background: var(--blue-bg); color: var(--blue); }

.header-time { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Main ─────────────────────────────────────────── */
.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px;
  min-height: calc(100vh - 50px - 44px);
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border-light); }
.card-header {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header h2 { font-size: 15px; font-weight: 600; color: var(--text-1); }
.card-body { padding: 18px; }

/* ── Portfolio Switcher ─────────────────────────────── */
.pf-switcher {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
}
.pf-tab {
  padding: 7px 16px;
  border-radius: 5px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.pf-tab:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }
.pf-tab.active { color: var(--blue); background: var(--blue-bg); }

/* ── Watchlist Chips ───────────────────────────────── */
.watchlist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.watchlist-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  transition: all 0.15s;
}
.watchlist-chip:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.wl-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.wl-change { font-size: 12px; font-variant-numeric: tabular-nums; }

/* ── Summary Grid ─────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s;
}
.summary-card:hover { border-color: var(--border-light); }
.summary-card .label { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: 0.3px; }
.summary-card .value { font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.summary-card .sub { font-size: 12px; margin-top: 2px; color: var(--text-3); }

/* ── Table ────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: rgba(255,255,255,0.02); }
.data-table .clickable { cursor: pointer; }
.data-table .clickable:hover { color: var(--blue); }

/* ── Badges ───────────────────────────────────────── */
.badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.badge-profit { background: var(--red-bg); color: var(--red); }
.badge-loss { background: var(--green-bg); color: var(--green); }

/* ── Colors (中国标准: 红涨绿跌) ────────────────────── */
.positive { color: var(--red); }
.negative { color: var(--green); }
.neutral { color: var(--text-2); }

/* ── Stats Grid ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 14px 0;
}
.stat-cell {
  background: var(--bg-card);
  padding: 12px 14px;
  text-align: center;
}
.stat-cell .label { font-size: 11px; color: var(--text-3); margin-bottom: 2px; font-weight: 500; }
.stat-cell .value { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── PnL Bar ──────────────────────────────────────── */
.pnl-bar { height: 3px; border-radius: 2px; margin-top: 4px; min-width: 16px; max-width: 100px; }
.pnl-bar-pos { background: var(--red); }
.pnl-bar-neg { background: var(--green); }

/* ── Market Tags ──────────────────────────────────── */
.market-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; display: inline-block; }

/* ── Stock Link ───────────────────────────────────── */
.stock-link { text-decoration: none; color: inherit; transition: color 0.15s; }
.stock-link:hover { color: var(--blue); }
.stock-name { font-weight: 600; }
.stock-code { color: var(--text-3); font-size: 12px; margin-left: 5px; }

/* ── Tabs ─────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; margin-bottom: 16px; }
.tab {
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: none;
  border-radius: 5px;
  transition: all 0.15s;
}
.tab:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }
.tab.active { color: var(--blue); background: var(--blue-bg); }

/* ── Signal Cards ─────────────────────────────────── */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.signal-card:hover { border-color: var(--border-light); }
.signal-date { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.signal-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 5px;
  margin: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.signal-stock:hover { filter: brightness(1.15); }
.signal-buy-tag { background: var(--red-bg); border: 1px solid rgba(239,83,80,0.2); color: var(--red); }
.signal-sell-tag { background: var(--green-bg); border: 1px solid rgba(38,166,154,0.2); color: var(--green); }
.signal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.signal-meta-item { background: var(--bg-base); border-radius: 5px; padding: 10px 12px; }
.signal-meta-item .label { font-size: 11px; color: var(--text-3); font-weight: 500; }
.signal-meta-item .val { font-size: 14px; font-weight: 600; margin-top: 1px; }
.market-sentiment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Chart Container ──────────────────────────────── */
.chart-container { width: 100%; height: 420px; }
.chart-container-lg { width: 100%; height: 520px; }
.chart-container-sm { width: 100%; height: 220px; }

/* ── Detail Page ──────────────────────────────────── */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.detail-title { font-size: 22px; font-weight: 700; color: var(--text-1); }
.detail-price { font-size: 32px; font-weight: 700; margin: 6px 0; font-variant-numeric: tabular-nums; }
.detail-change { font-size: 15px; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
}
.meta-item .label { font-size: 11px; color: var(--text-3); font-weight: 500; }
.meta-item .value { font-size: 14px; font-weight: 600; margin-top: 1px; font-variant-numeric: tabular-nums; }

/* ── Tech Indicators ──────────────────────────────── */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.tech-item {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
}
.tech-item .name { font-size: 11px; color: var(--text-3); margin-bottom: 2px; font-weight: 500; }
.tech-item .val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Trade List ───────────────────────────────────── */
.trade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.trade-item:last-child { border-bottom: none; }
.trade-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.trade-buy { background: var(--red-bg); color: var(--red); }
.trade-sell { background: var(--green-bg); color: var(--green); }

/* ── Advice ───────────────────────────────────────── */
.advice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.advice-label { font-size: 11px; color: var(--text-3); margin-bottom: 4px; font-weight: 500; }
.advice-value { font-size: 15px; font-weight: 600; }

/* ── Report ───────────────────────────────────────── */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.report-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.report-stat {
  background: var(--bg-base);
  border-radius: 5px;
  padding: 12px;
  text-align: center;
}
.report-stat .label { font-size: 11px; color: var(--text-3); margin-bottom: 2px; font-weight: 500; }
.report-stat .value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── News Item ────────────────────────────────────── */
.news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 13px; font-weight: 500; line-height: 1.5; }
.news-date { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── Filter Bar ───────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 7px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-1);
  font-size: 13px;
  outline: none;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--blue); }
.btn {
  padding: 7px 16px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-1);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.btn-primary { background: var(--blue-bg); border-color: rgba(88,166,255,0.3); color: var(--blue); }
.btn-primary:hover { background: rgba(88,166,255,0.15); }
.watchlist-btn {
  padding: 6px 14px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}
.watchlist-btn:hover { border-color: var(--orange); color: var(--orange); }
.watchlist-btn.active { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }

/* ── Loading ──────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 32px;
  color: var(--text-3);
  font-size: 13px;
}
.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Price Flash ──────────────────────────────────── */
.price-up { animation: flash-r 0.5s; }
.price-down { animation: flash-g 0.5s; }
@keyframes flash-g { 0%,100%{color:inherit} 50%{color:var(--green)} }
@keyframes flash-r { 0%,100%{color:inherit} 50%{color:var(--red)} }

/* ── Watchlist Page ─────────────────────────────────── */
.wl-page { }
.wl-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.wl-title-row { display: flex; align-items: baseline; gap: 10px; }
.wl-page-title { font-size: 20px; font-weight: 700; color: var(--text-1); }
.wl-count { font-size: 13px; }
.wl-actions { display: flex; align-items: center; gap: 14px; }
.wl-add-box {
  position: relative;
}
.wl-add-box input {
  width: 280px;
  padding: 8px 14px 8px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-1);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.wl-add-box input:focus { border-color: var(--blue); }
.wl-add-box input::placeholder { color: var(--text-3); }
.wl-add-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
}
.wl-add-box .search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
}
.wl-add-box .search-results .already-added {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.wl-update-time { font-size: 12px; white-space: nowrap; }

.wl-empty {
  text-align: center;
  padding: 80px 20px;
}
.wl-empty-icon { font-size: 56px; margin-bottom: 16px; }
.wl-empty-text { font-size: 18px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.wl-empty-hint { font-size: 13px; color: var(--text-3); max-width: 360px; margin: 0 auto; line-height: 1.6; }

.wl-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.wl-table { margin: 0; }
.wl-row { transition: background 0.1s; }
.wl-row:hover { background: rgba(255,255,255,0.02); }
.wl-change-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  min-width: 64px;
  text-align: center;
}
.wl-change-cell.positive { background: var(--red-bg); }
.wl-change-cell.negative { background: var(--green-bg); }
.wl-remove-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}
.wl-remove-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-bg); }

@media (max-width: 768px) {
  .wl-topbar { flex-direction: column; align-items: flex-start; }
  .wl-actions { width: 100%; }
  .wl-add-box { flex: 1; }
  .wl-add-box input { width: 100%; }
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 14px 24px;
  color: var(--text-3);
  font-size: 11px;
  border-top: 1px solid var(--border);
}

/* ── Hamburger Menu Button (mobile only) ──────────────── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  order: -1;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-2);
  border-radius: 1px;
  transition: all 0.2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .header-inner {
    padding: 0 12px;
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
    min-height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .logo { order: 0; flex: 1; }
  .menu-btn { order: 1; }
  .theme-btn { order: 2; }
  .header-time { order: 3; width: 100%; text-align: right; padding-right: 4px; margin-top: -4px; font-size: 11px; }
  .search-box {
    order: 4;
    max-width: none;
    width: 100%;
    margin-top: 4px;
  }
  .nav {
    order: 5;
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 14px;
  }
  .main { padding: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-header { flex-direction: column; gap: 10px; }
  .data-table { font-size: 12px; }
  .data-table td, .data-table th { padding: 8px 10px; }
}

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
