/* arbtrage.com — v2 modern theme
   Built for day traders: information-dense, dark-first, professional typography.
   Fonts: Inter (UI) + IBM Plex Mono (numerics/tickers) loaded from base.html.
*/

:root {
  /* Surface palette — refined, slightly cooler than v1 */
  --bg:           #0b0d12;
  --bg-elevated:  #11141b;
  --panel:        #151923;
  --panel-hover:  #1a1f2b;
  --card:         #1c2230;
  --card-hover:   #232a3a;
  --line:         #232a38;
  --line-strong:  #2e3648;

  /* Ink */
  --ink:          #e8eaf0;
  --ink-soft:     #b6bcc8;
  --mute:         #7e879a;
  --mute-soft:    #525b6e;

  /* Brand + semantic */
  --accent:       #6488f0;
  --accent-soft:  #6488f01a;
  --up:           #4ade80;
  --up-soft:      #4ade8014;
  --down:         #ef4444;
  --down-soft:    #ef444414;
  --warn:         #fbbf24;
  --bmo:          #f5b142;
  --amc:          #8b5cf6;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 4px 12px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.25);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  --radius:    8px;
  --radius-lg: 12px;
  --radius-sm: 4px;

  /* Type */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ───────────────────────────── top navigation ───────────────────────────── */

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.topnav .brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.topnav .brand:hover { text-decoration: none; }
.topnav .brand .logo-mark {
  display: inline-block;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--amc) 100%);
  border-radius: 5px;
  position: relative;
}
.topnav .brand .logo-mark::after {
  content: '';
  position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px;
  background: var(--bg-elevated);
  border-radius: 3px;
}
.topnav .brand span.brand-text {
  color: var(--ink);
}
.topnav .brand .brand-dot { color: var(--accent); }

.topnav nav { display: flex; align-items: center; gap: 16px; }
.topnav nav a {
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 100ms, border-color 100ms;
}
.topnav nav a:hover { color: var(--ink); text-decoration: none; }
.topnav nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.topnav .nav-spacer { flex: 1; }
.topnav .nav-time {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}
.topnav .market-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--mute);
}
.topnav .market-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mute);
}
.topnav .market-status.open { color: var(--up); border-color: var(--up-soft); }
.topnav .market-status.open .dot { background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 2s infinite; }
.topnav .market-status.closed { color: var(--mute); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.topnav .nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
}
.topnav .nav-cta:hover { text-decoration: none; opacity: .9; }

main { padding: 0 24px; max-width: 1920px; margin: 0 auto; }

/* ───────────────────────────── page header ───────────────────────────── */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 20px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header .meta {
  color: var(--mute);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.page-header .meta strong { color: var(--ink); font-weight: 600; }
.page-header .meta .sep { margin: 0 8px; opacity: .5; }

/* ───────────────────────────── overview grid ───────────────────────────── */

.overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
  transition: border-color 100ms;
}
.panel:hover { border-color: var(--line-strong); }

.panel h2 {
  margin: 0 0 4px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.panel .sub {
  color: var(--mute);
  font-size: 11px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.panel.scatter-panel { grid-column: span 2; }
@media (max-width: 800px) {
  .panel.scatter-panel { grid-column: span 1; }
}

/* ───────────────────────────── tables (top-10 panels) ───────────────────────────── */

.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}
.ptable th {
  text-align: left;
  color: var(--mute);
  font-weight: 500;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 3px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ptable th.ra { text-align: right; }
.ptable td {
  padding: 5px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  vertical-align: middle;
}
.ptable tr:last-child td { border-bottom: none; }
.ptable tr:hover td { background: var(--panel-hover); }

.ptable td.tk {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.ptable td.tk a { color: var(--ink); text-decoration: none; }
.ptable td.tk a:hover { color: var(--accent); }

.ptable td.nm {
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
}
.ptable td.dt {
  color: var(--mute);
  font-size: 10.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ptable td.pct, .ptable td.px, .ptable td.iv-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  white-space: nowrap;
}
.ptable td.px { font-family: var(--font-mono); color: var(--ink); }

.pct.up   { color: var(--up); }
.pct.down { color: var(--down); }
.pct.flat { color: var(--mute); }

.iv-col.hot     { color: var(--warn); font-weight: 600; }
.iv-col.veryhot { color: var(--down); font-weight: 600; }
.iv-col.normal  { color: var(--ink); }
.iv-col.flat    { color: var(--mute); }

/* highlighted picks (call/put op top 3) */
.ptable.call-op tr.pick {
  background: linear-gradient(to right, rgba(74,222,128,0.10), transparent);
  box-shadow: inset 3px 0 0 var(--up);
}
.ptable.call-op tr.pick td.tk { color: var(--up); font-weight: 700; }
.ptable.put-op tr.pick {
  background: linear-gradient(to right, rgba(239,68,68,0.10), transparent);
  box-shadow: inset 3px 0 0 var(--down);
}
.ptable.put-op tr.pick td.tk { color: var(--down); font-weight: 700; }

/* ───────────────────────────── sector mix bars ───────────────────────────── */

.sbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 11px;
  padding: 3px 4px;
  border-radius: var(--radius-sm);
  position: relative;
}
.sbar:hover { background: var(--panel-hover); }
.sbar .sname {
  flex: 0 0 120px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.sbar .strack {
  flex: 1;
  background: var(--line);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.sbar .sfill {
  height: 100%;
  border-radius: 4px;
  transition: width 200ms;
}
.sbar .sct {
  flex: 0 0 30px;
  text-align: right;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.sbar .sec-pct {
  flex: 0 0 60px;
  text-align: right;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* ───────────────────────────── scatter ───────────────────────────── */

.scatter-svg .sc-pt {
  cursor: pointer;
  transition: r 100ms;
}
.scatter-svg .sc-pt:hover { r: 6; }

.sc-tip {
  display: none;
  position: fixed;
  z-index: 300;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ink);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  line-height: 1.5;
}
.sc-tip .t-sym {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.sc-tip .t-sec {
  display: inline-block;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--bg);
  font-weight: 700;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-tip .t-meta { color: var(--mute); font-size: 10.5px; margin-top: 3px; }
.sc-tip .t-vals {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.sc-tip .t-vals .lbl {
  color: var(--mute);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-tip .t-vals .val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-family: var(--font-mono);
}
.sc-tip .t-vals .val.up { color: var(--up); }
.sc-tip .t-vals .val.down { color: var(--down); }

/* ───────────────────────────── filter bar ───────────────────────────── */

.filters {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  position: sticky;
  top: 56px;
  z-index: 60;
  backdrop-filter: blur(8px);
}
.f-group { display: flex; align-items: center; gap: 6px; color: var(--mute); }
.f-group > label {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.f-group input[type=number] {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  width: 62px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  transition: border-color 100ms;
}
.f-group input[type=number]:focus {
  outline: none;
  border-color: var(--accent);
}
.f-group .to { color: var(--mute); font-size: 10px; }

.f-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: all 100ms;
}
.f-btn:hover { color: var(--ink); border-color: var(--mute); background: var(--card-hover); }
.f-btn.copied { color: var(--up); border-color: var(--up); }

.f-preset {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  min-width: 170px;
}
.f-preset:focus { outline: none; border-color: var(--accent); }

.f-sector-dd { position: relative; }
.f-sector-dd > summary {
  list-style: none;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  min-width: 140px;
  user-select: none;
  position: relative;
}
.f-sector-dd > summary::-webkit-details-marker { display: none; }
.f-sector-dd > summary::after {
  content: '▾';
  color: var(--mute);
  float: right;
  margin-left: 8px;
}
.f-sector-dd[open] > summary { border-color: var(--accent); }
.f-sector-list {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
}
.f-sector-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  transition: background 80ms;
}
.f-sector-list label:hover { background: var(--panel-hover); color: var(--ink); }

.f-status {
  color: var(--mute);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 11px;
}
.f-status .num { color: var(--ink); font-weight: 700; }

/* ───────────────────────────── weekly accordions ───────────────────────────── */

details.week { margin-bottom: 10px; }
details.week > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: background 100ms;
}
details.week > summary::-webkit-details-marker { display: none; }
details.week[open] > summary {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}
details.week > summary:hover { background: var(--panel-hover); }

.wleft { display: flex; align-items: center; gap: 8px; }
.chev {
  display: inline-block;
  color: var(--mute);
  transition: transform 150ms ease;
  font-size: 10px;
}
details.week[open] .chev { transform: rotate(90deg); }
.wcount {
  color: var(--mute);
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.wcount .num { color: var(--ink); font-weight: 700; }

details.week > .grid {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: start;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .grid { grid-template-columns: 1fr; } }

.day {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 120px;
}
.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.dow {
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.date { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.count {
  color: var(--mute);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.today .date { color: var(--accent); }
.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }

/* ───────────────────────────── stock cards ───────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mute);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 6px;
  transition: background 100ms;
}
.card:hover { background: var(--card-hover); }
.card.bmo { border-left-color: var(--bmo); }
.card.amc { border-left-color: var(--amc); }
.card.other { border-left-color: var(--mute); }

.row1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.ticker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.ticker a { color: var(--ink); text-decoration: none; }
.ticker a:hover { color: var(--accent); }
.cap {
  font-size: 10px;
  color: var(--mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.name {
  color: var(--ink-soft);
  font-size: 10.5px;
  margin: 2px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sector {
  display: inline-block;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row2, .row3 {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--mute);
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.row2 .est { color: var(--ink); font-weight: 500; }
.row2 .up, .row3 .up { color: var(--up); }
.row2 .down, .row3 .down { color: var(--down); }
.row2 .flat, .row3 .flat { color: var(--mute); }

.row3 {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}
.row3 .price {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
}
.row3 .stale { color: var(--mute); font-size: 9px; font-style: italic; }

.iv {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--mute);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.iv .ivpct { color: var(--ink); font-weight: 600; }
.iv .ivpct.hot { color: var(--warn); }
.iv .ivpct.veryhot { color: var(--down); }
.iv .strike, .iv .exp { color: var(--mute); font-family: var(--font-mono); }

/* 52w mini-gauge inside cards */
.r52 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--mute);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.r52 .rlo, .r52 .rhi { white-space: nowrap; flex-shrink: 0; }
.r52 .rbar {
  flex: 1;
  position: relative;
  height: 3px;
  background: linear-gradient(to right, var(--down) 0%, var(--mute) 50%, var(--up) 100%);
  border-radius: 2px;
}
.r52 .rdot {
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1.5px solid var(--card);
  box-sizing: content-box;
}
.r52 .rdot.hi { background: var(--up); }
.r52 .rdot.lo { background: var(--down); }

/* historical cards */
.hist-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mute);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 6px;
  transition: background 100ms;
}
.hist-card.beat  { border-left-color: var(--up); }
.hist-card.miss  { border-left-color: var(--down); }
.hist-actual {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 10.5px;
  margin-top: 4px;
}
.hist-actual .lbl {
  color: var(--mute);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hist-actual .val {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-mono);
}
.hist-actual .vs { color: var(--mute); font-size: 10px; font-family: var(--font-mono); }
.hist-yoy { font-size: 10px; font-variant-numeric: tabular-nums; margin-top: 2px; font-family: var(--font-mono); }
.hist-yoy.up { color: var(--up); }
.hist-yoy.down { color: var(--down); }
.hist-yoy.flat { color: var(--mute); }
.hist-react {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
}
.hist-react .lbl {
  color: var(--mute);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hist-react .val { font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.hist-react .val.up { color: var(--up); }
.hist-react .val.down { color: var(--down); }
.hist-react .val.flat { color: var(--mute); }

/* ───────────────────────────── section divider ───────────────────────────── */

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider .sub {
  color: var(--mute);
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* ───────────────────────────── backtest box ───────────────────────────── */

.backtest {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--mute);
  line-height: 1.5;
}
.backtest b { color: var(--ink); }
.backtest .up { color: var(--up); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.backtest .down { color: var(--down); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.backtest .flat { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.disclaimer {
  color: var(--mute);
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.4;
  font-style: italic;
}

/* ───────────────────────────── login card ───────────────────────────── */

.login-card {
  max-width: 400px;
  margin: 80px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.login-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.login-card .muted { color: var(--mute); font-size: 12px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.login-card label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.login-card input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-ui);
  text-transform: none;
  letter-spacing: 0;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-ui);
  margin-top: 6px;
  transition: opacity 100ms;
}
.login-card button:hover { opacity: 0.92; }

/* ───────────────────────────── footer ───────────────────────────── */

footer {
  padding: 30px 24px;
  color: var(--mute);
  font-size: 11px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background: var(--bg-elevated);
}
.footer-wrap {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-col h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 700;
}
.footer-col a { color: var(--mute); display: block; margin: 3px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--mute-soft);
  flex-wrap: wrap;
  gap: 8px;
}

/* ───────────────────────────── messages ───────────────────────────── */

.messages {
  list-style: none;
  padding: 10px 24px;
  margin: 0;
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.messages li.info { color: var(--accent); }
.messages li.error { color: var(--down); }

/* ───────────────────────────── filter empty state ───────────────────────────── */

.day.f-empty, .bucket.f-empty { display: none; }
