/* ============================================================
   terminal.css — terminal theme rules, split out of overrides.css.
   Loaded after overrides.css (these are :root[data-theme="terminal"]
   rules, higher specificity, so file order is immaterial).
   ============================================================ */
:root[data-theme="terminal"] #mainSystem { font-size: 13px; line-height: 1.45; }:root[data-theme="terminal"] .stats-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--s-6);
}:root[data-theme="terminal"] .stat-card {
  padding: 13px 15px; border: none; border-radius: 0; box-shadow: none;
}:root[data-theme="terminal"] .stat-card:hover { transform: none; box-shadow: none; border-color: transparent; }:root[data-theme="terminal"] .stat-card .icon { display: none; }:root[data-theme="terminal"] .stat-card .label { font-size: 10.5px; letter-spacing: 0.08em; margin-bottom: 6px; }:root[data-theme="terminal"] .stat-card .value { font-size: 21px; font-weight: 600; margin-bottom: 3px; line-height: 1.1; }:root[data-theme="terminal"] .stat-card .change,
:root[data-theme="terminal"] .stat-card .sublabel { font-size: 11px; }:root[data-theme="terminal"] .stats-grid > .stat-card:first-child {
  background: var(--surface); border-color: var(--border); color: var(--text);
}:root[data-theme="terminal"] .stats-grid > .stat-card:first-child::after { background: none; content: none; }:root[data-theme="terminal"] .stats-grid > .stat-card:first-child .icon { display: none; }:root[data-theme="terminal"] .stats-grid > .stat-card:first-child .label,
:root[data-theme="terminal"] .stats-grid > .stat-card:first-child .sublabel,
:root[data-theme="terminal"] .stats-grid > .stat-card:first-child .change { color: var(--text-muted); }:root[data-theme="terminal"] .stats-grid > .stat-card:first-child .value {
  color: var(--accent-gold); font-size: 21px; font-variation-settings: normal;
}:root[data-theme="terminal"] .tabs { gap: 2px; border-bottom: none; align-items: center; margin-bottom: var(--s-5); }:root[data-theme="terminal"] .tab-group { gap: 2px; }:root[data-theme="terminal"] .tab {
  padding: 6px 11px; font-size: 12px; border-radius: var(--r-lg); border-bottom: none;
  margin-bottom: 0; letter-spacing: 0.04em; text-transform: uppercase;
}:root[data-theme="terminal"] .tab:hover:not(.active) { background: var(--surface-elevated); color: var(--text); }:root[data-theme="terminal"] .tab.active,
:root[data-theme="terminal"] .tab[aria-selected="true"],
:root[data-color-scheme="dark"][data-theme="terminal"] .tab.active,
:root[data-color-scheme="dark"][data-theme="terminal"] .tab[aria-selected="true"] {
  background: var(--surface-elevated); color: var(--accent-gold);
  border-bottom-color: transparent; box-shadow: inset 0 -2px 0 var(--accent-gold);
}:root[data-theme="terminal"] .tab .icon-svg { width: 13px; height: 13px; opacity: 0.7; }:root[data-theme="terminal"] .section-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-variation-settings: normal;
}:root[data-theme="terminal"] .chart-header { border-bottom: 1px solid var(--border); }:root[data-theme="terminal"] .chart-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-variation-settings: normal;
}:root[data-theme="terminal"] .header { box-shadow: none; }:root[data-theme="terminal"] .header::before { background: none; opacity: 0; }:root[data-theme="terminal"] th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 14px; color: var(--text-subtle);
}:root[data-theme="terminal"] td {
  padding: 9px 14px; font-family: var(--font-number); font-size: 12.5px; font-variant-numeric: tabular-nums;
}:root[data-theme="terminal"] tbody tr:hover td { background: var(--surface-elevated); }:root[data-theme="terminal"] .badge { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: var(--r-md); }:root[data-theme="terminal"] #triptychCard .stat-card { padding: 13px 15px; border-radius: var(--r-md); box-shadow: none; }:root[data-theme="terminal"] { --ledger-pad-v: 6px;  --ledger-pad-h: 11px; --ledger-font: 12px;   --ledger-zebra: var(--surface-muted); }@media (max-width: 760px) {:root[data-theme="terminal"] .stats-grid { grid-template-columns: repeat(2, 1fr); }}:root[data-theme="terminal"] .tab .icon-svg { display: none; }:root[data-theme="terminal"] .header {
  border-radius: 0; border-left: none; border-right: none; border-top: none;
  border-bottom: 1px solid var(--border); box-shadow: none; padding: 12px 18px;
}:root[data-color-scheme="dark"][data-theme="terminal"] .stat-card:not(:first-child) .value { color: #fff; }

/* ---- Investimentos tab: flatten the green-gradient hero (no marquee on a
   dense operator) and sharpen/densify the position cards; the inherited
   amber surface-hero-text reads as cohesive terminal amber on the flat dark. */
:root[data-theme="terminal"] .invest-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
:root[data-theme="terminal"] .invest-hero__glow { display: none; }
:root[data-theme="terminal"] .glance-card { border-radius: var(--r-md); padding: 12px 14px; }
:root[data-theme="terminal"] .glance-card:hover {
  transform: none; box-shadow: none;
  border-color: var(--border-strong); background: var(--surface-elevated);
}

/* ---- Liquidez cards: flat, sharp, mono numerals ---- */
:root[data-theme="terminal"] .liquidity-card { border-radius: var(--r-md); padding: 13px 15px; }
:root[data-theme="terminal"] .liquidity-amount { font-family: var(--font-number); }
:root[data-theme="terminal"] .liquidity-item {
  background: transparent; border-radius: 0; padding: 6px 0;
  border-bottom: 1px solid var(--border); font-family: var(--font-number);
}
:root[data-theme="terminal"] .liquidity-item:last-child { border-bottom: none; }
