/* agstreet — light professional fintech theme */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --sidebar: #0e1b33;
  --sidebar-2: #14274a;
  --sidebar-text: #aebbd2;
  --sidebar-active: #ffffff;
  --text: #1a2233;
  --muted: #5b6b85;
  --border: #e6eaf0;
  --grid: #eef1f6;
  --accent: #1f5fd6;
  --accent-weak: #eaf0fc;
  --pos: #16a34a;
  --pos-weak: #e7f6ed;
  --neg: #dc2626;
  --neg-weak: #fdeaea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .06), 0 2px 10px rgba(16, 30, 54, .04);
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 74px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  transition: width .18s ease;
  z-index: 40;
}
.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px;
  white-space: nowrap;
  overflow: hidden;
}
.brand-mark {
  font-size: 22px;
  line-height: 1;
  filter: grayscale(.1);
}
.brand-text { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: .2px; }
.brand-text strong { color: #6aa0ff; font-weight: 700; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(31, 95, 214, .35); }
.nav-icon { font-size: 17px; width: 22px; text-align: center; flex: none; }

.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  font-size: 12px;
  color: #7e8db0;
  white-space: nowrap;
  overflow: hidden;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; flex: none; box-shadow: 0 0 0 3px rgba(46, 204, 113, .18); }

.collapse-btn {
  position: absolute;
  top: 22px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1;
}
.collapse-btn .chev { transition: transform .18s ease; }
.sidebar-collapsed .collapse-btn .chev { transform: rotate(180deg); }

/* hide labels when collapsed */
.sidebar-collapsed .nav-label,
.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-foot .nav-label { display: none; }
.sidebar-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .nav-item { justify-content: center; }
.sidebar-collapsed .sidebar-foot { justify-content: center; }

/* ---------- Main ---------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left .18s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-collapsed .main { margin-left: var(--sidebar-w-collapsed); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 246, 250, .85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-title { font-size: 19px; font-weight: 600; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.run-status { font-size: 12.5px; color: var(--muted); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-status.running { color: var(--accent); }
.run-status.ok { color: var(--pos); }
.run-status.err { color: var(--neg); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 95, 214, .28);
  transition: background .12s, transform .04s;
}
.btn-primary:hover { background: #1a52bd; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: default; box-shadow: none; }

.icon-btn { display: none; background: none; border: none; font-size: 20px; color: var(--text); cursor: pointer; }

.content { padding: 26px 28px 48px; max-width: 1240px; width: 100%; }

.as-of { margin: 0 0 18px; color: var(--muted); }
.empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card-value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { margin-top: 3px; font-size: 12px; color: var(--muted); }

.badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.up { color: var(--pos); background: var(--pos-weak); }
.badge.down { color: var(--neg); background: var(--neg-weak); }
.badge.flat { color: var(--muted); background: #eef1f6; }

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  margin-bottom: 22px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.panel-meta { font-size: 12.5px; color: var(--muted); }

.chart { width: 100%; height: 320px; }
.chart-tall { height: 460px; }

/* Futures OHLC crosshair readout */
.ohlc-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-height: 20px; margin: 2px 0 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ohlc-readout b { color: var(--text); font-weight: 700; font-size: 13px; }
.ohlc-readout .ohlc { color: var(--text); font-weight: 600; }
.ohlc-readout .ohlc em { color: var(--muted); font-style: normal; font-weight: 500; margin-right: 4px; }
.ohlc-readout .ohlc.pos { color: var(--pos); }
.ohlc-readout .ohlc.neg { color: var(--neg); }

/* Futures move-statistics panel */
.stat-grid { display: flex; flex-direction: column; gap: 12px; }
.stat-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.stat-period { align-self: center; min-width: 58px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat { flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value sup { font-size: 10px; font-weight: 600; }
.stat-value .pos { color: var(--pos); }
.stat-value .neg { color: var(--neg); }
.stat-sub { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.dist-tools { margin-top: 16px; }
.dist-chart { width: 100%; margin-top: 8px; }
.dist-svg { width: 100%; height: auto; display: block; }
.dist-tick { fill: var(--muted); font-size: 11px; font-family: Inter, sans-serif; }
.dist-cur { fill: var(--accent); font-size: 11px; font-weight: 700; font-family: Inter, sans-serif; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--grid); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; cursor: pointer; user-select: none; transition: opacity .12s; }
.legend-item:hover { opacity: .8; }
.legend-item.off { opacity: .38; }
.legend-item.off .lv { text-decoration: line-through; }
.legend-item i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.legend-item .lv { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.legend-date { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* segmented Absolute / % change toggle */
.panel-tools { display: flex; align-items: center; gap: 14px; }
.seg { display: inline-flex; background: #eef1f6; border-radius: 8px; padding: 2px; gap: 2px; }
.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: #fff; color: var(--accent); box-shadow: var(--shadow); }

/* ---------- Divergence reference ---------- */
.panel-intro { margin: 0 0 14px; color: var(--muted); max-width: 82ch; }
.scenario-wrap { border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; }
.scenario-table { width: 100%; border-collapse: collapse; }
.scenario-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 11px 14px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--border);
}
.scenario-table td { padding: 12px 14px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.scenario-table tbody tr:last-child td { border-bottom: none; }
.scenario-table tbody tr:hover { background: #f7f9fc; }
.scn-name { font-weight: 600; }
.scn-signal { color: var(--muted); min-width: 220px; }
.scenario-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.scenario-chip.up { color: var(--pos); background: var(--pos-weak); }
.scenario-chip.up-weak { color: #3f8f5f; background: #eef7f0; }
.scenario-chip.down { color: var(--neg); background: var(--neg-weak); }
.scenario-chip.flat { color: var(--muted); background: #eef1f6; }
.scenario-chip.low { color: #b45309; background: #fdf2e3; }

/* ---------- Table ---------- */
.table-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table thead th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  z-index: 1;
  text-align: right;
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table thead th:first-child { text-align: left; }
.data-table td { text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--grid); }
.data-table td.date { text-align: left; font-weight: 500; color: var(--muted); }
.data-table tbody tr:hover { background: #f7f9fc; }
.data-table tr.latest { background: var(--accent-weak); }
.data-table tr.latest td { font-weight: 600; color: var(--text); }
.data-table tr.latest td.date { color: var(--accent); }

/* ---------- Logs ---------- */
.log-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.log-picker label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.log-picker select {
  flex: 1;
  min-width: 280px;
  font: inherit;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.log-picker select:focus { outline: 2px solid var(--accent-weak); border-color: var(--accent); }

.status-badge { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; text-transform: capitalize; }
.status-badge.success { color: var(--pos); background: var(--pos-weak); }
.status-badge.failed { color: var(--neg); background: var(--neg-weak); }

.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; margin-bottom: 18px; }
.meta-grid > div { display: flex; flex-direction: column; gap: 2px; }
.meta-k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.meta-v { font-weight: 500; word-break: break-word; }

.log-detail-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 4px 0 8px; }
.log-detail {
  background: #0e1b33;
  color: #cdd9ef;
  border-radius: 8px;
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
  margin: 0;
}

/* ---------- Scrim (mobile) ---------- */
.scrim { display: none; position: fixed; inset: 0; background: rgba(14, 27, 51, .45); z-index: 35; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: var(--sidebar-w); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .collapse-btn { display: none; }
  .main { margin-left: 0; }
  .sidebar-collapsed .main { margin-left: 0; }
  .icon-btn { display: inline-block; }
  .sidebar-open .scrim { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 12px 16px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .run-status { display: none; }
}

/* ======================= Weather module ======================= */
.muted { color: var(--muted); }
.tool-label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tool-label select {
  font: inherit; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); cursor: pointer;
}

/* inline ⓘ explanations */
.info { position: relative; display: inline-flex; color: var(--accent); cursor: help; font-size: 13px; margin-left: 4px; vertical-align: middle; }
.info-pop {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: 300px; background: #0e1b33; color: #e6ecf7; border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(16, 30, 54, .28); z-index: 60; font-size: 12px; line-height: 1.5;
  font-weight: 400; opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none;
  display: flex; flex-direction: column; gap: 5px; text-align: left;
}
.info:hover .info-pop, .info:focus .info-pop, .info:focus-within .info-pop { opacity: 1; visibility: visible; }
.info-pop strong { color: #fff; font-size: 12.5px; }
.info-pop .info-what { color: #c7d2e6; }
.info-pop .info-line b { color: #9ec1ff; font-weight: 600; }
.info-pop .info-calc {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11px; line-height: 1.55; color: #dfe9ff;
  background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 6px 8px;
}
.info-pop .info-calc b { color: #9ec1ff; font-family: 'Inter', sans-serif; font-weight: 600; }

/* ENSO banner */
.enso-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px;
  border-radius: var(--radius); margin-bottom: 22px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow); font-size: 13px;
}
.enso-banner.skeleton { color: var(--muted); }
.enso-phase { font-weight: 700; }
.enso-oni { color: var(--muted); font-variant-numeric: tabular-nums; }
.enso-hint { color: var(--muted); }
.enso-nina { border-left: 4px solid #1d4ed8; }
.enso-nino { border-left: 4px solid #dc2626; }
.enso-neutral { border-left: 4px solid #94a3b8; }

/* crop gauges */
.crop-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gauge { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: #fbfcfe; }
.gauge-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gauge-label { font-weight: 600; font-size: 13px; }
.gauge-verdict { font-size: 15px; font-weight: 700; }
.gauge-up { color: var(--pos); } .gauge-down { color: var(--neg); }
.gauge-mid { color: #b45309; } .gauge-flat { color: var(--muted); }
.gauge-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* map */
.map { width: 100%; height: 440px; border-radius: 8px; border: 1px solid var(--border); z-index: 0; }
.popup strong { font-size: 13px; } .popup-crops { color: #5b6b85; font-size: 11.5px; margin: 2px 0 6px; }
.popup table { border-collapse: collapse; font-size: 12px; }
.popup td { padding: 2px 8px 2px 0; } .popup td:last-child { text-align: right; font-weight: 600; }
.popup-btn { margin-top: 8px; border: none; background: var(--accent); color: #fff; border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

/* alerts */
.alert { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.alert-frost { background: #eef4ff; } .alert-winterkill { background: var(--neg-weak); }
.alert-kind { font-weight: 700; text-transform: capitalize; min-width: 90px; }
.alert-date { margin-left: auto; color: var(--muted); font-size: 12px; }

/* region drill-down */
.rd-title { margin: 0 0 12px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; min-width: 120px; background: #fbfcfe; }
.chip-k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.chip-v { font-size: 18px; font-weight: 700; }
.rd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rd-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.rd-card h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.mini-chart { width: 100%; height: 240px; }
.soil-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.soil-track { height: 10px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.soil-fill { height: 100%; background: linear-gradient(90deg, #d97706, #1d4ed8); }
.soil-v { text-align: right; font-variant-numeric: tabular-nums; }
.soil-foot { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.dr-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--grid); font-size: 13px; }
.dr-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-frost { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.frost-chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.frost-frost { color: #1d4ed8; background: #eef4ff; } .frost-winterkill { color: var(--neg); background: var(--neg-weak); }

/* job badge (logs) */
.job-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; }
.job-baltic { color: #1f5fd6; background: var(--accent-weak); }
.job-weather { color: #0aa15f; background: #e7f6ed; }
.job-cot { color: #b45309; background: #fdf2e3; }
.job-futures { color: #9333ea; background: #f3e8ff; }
.job-futures_live { color: #7c3aed; background: #ede9fe; }

@media (max-width: 860px) {
  .crop-gauges { grid-template-columns: repeat(2, 1fr); }
  .rd-grid { grid-template-columns: 1fr; }
}

/* ---------- Login page ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--sidebar); }
.login-card { width: 100%; max-width: 340px; background: var(--surface); border-radius: 14px; box-shadow: 0 10px 40px rgba(8, 15, 30, .35); padding: 28px 26px; display: flex; flex-direction: column; }
.login-brand { display: flex; align-items: center; gap: 10px; }
.login-mark { font-size: 24px; }
.login-title { font-size: 20px; font-weight: 600; color: var(--text); }
.login-title strong { color: var(--accent); font-weight: 700; }
.login-sub { margin: 10px 0 18px; font-size: 13px; color: var(--muted); }
.login-error { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--neg); background: var(--neg-weak); padding: 8px 11px; border-radius: 8px; }
.login-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: #fff; }
.login-input:focus { outline: 2px solid var(--accent-weak); border-color: var(--accent); }
.login-btn { margin-top: 14px; width: 100%; justify-content: center; }

/* ---------- Logout link ---------- */
.logout-item { margin-top: 6px; }

/* ---------- Cross-Asset ---------- */
.zboard-wrap { overflow-x: auto; }
.zboard { width: 100%; border-collapse: collapse; font-size: 13px; }
.zboard th { text-align: right; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.zboard th:first-child { text-align: left; }
.zboard td { padding: 7px 10px; border-bottom: 1px solid var(--grid); }
.zboard .zname { font-weight: 600; color: var(--text); }
.zboard .znum { text-align: right; font-variant-numeric: tabular-nums; }
.zboard .zcell { font-weight: 700; border-radius: 5px; }
.zboard .znum.pos { color: var(--pos); }
.zboard .znum.neg { color: var(--neg); }
.zboard tr.zgroup td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); padding-top: 10px; }

.quad-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.quad-head .ohlc em { color: var(--muted); font-style: normal; font-weight: 500; margin-right: 5px; }
.regime-badge { font-size: 12px; font-weight: 700; color: #fff; padding: 3px 11px; border-radius: 999px; letter-spacing: .01em; }
