/* Capitol Ledger — dark federal-ledger terminal.
   Chart/data colors are the validated dark-mode dataviz palette. */

:root {
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #212120;
  --ink: #f4f2ec;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --hairline: rgba(255, 255, 255, 0.09);
  --grid: #2c2c2a;
  --brass: #c8a24a;
  --brass-dim: rgba(200, 162, 74, 0.14);
  --buy: #3987e5;
  --buy-dim: rgba(57, 135, 229, 0.16);
  --sell: #e66767;
  --sell-dim: rgba(230, 103, 103, 0.15);
  --up: #0ca30c;
  --down: #e66767;
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

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

body {
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(200, 162, 74, 0.06), transparent 70%),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--brass); }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(13, 13, 13, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark-icon { font-size: 18px; transform: translateY(-1px); }
.wordmark em { font-style: italic; color: var(--brass); }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--brass); background: var(--brass-dim); }

.topbar-search input {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 16px;
  width: 210px;
  outline: none;
}
.topbar-search input:focus { border-color: var(--brass); }
.topbar-search input::placeholder { color: var(--muted); }

/* ---------- page scaffold ---------- */
.page { max-width: 1380px; margin: 0 auto; padding: 28px; }

.page-title, .section-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.page-title { font-size: 28px; margin-bottom: 20px; }
.section-title { font-size: 19px; margin: 28px 0 12px; }

.footer {
  max-width: 1380px;
  margin: 40px auto 0;
  padding: 20px 28px 36px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
.main-col { min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}

/* ---------- stat tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.tile-value {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.tile-value.tile-date { font-size: 22px; padding-top: 5px; }
.tile-plus { color: var(--muted); font-size: 20px; }
.tile-sub { font-size: 12px; color: var(--muted); }

.ink-up { color: var(--up); }
.ink-down { color: var(--down); }
.buy-ink { color: var(--buy); }
.sell-ink { color: var(--sell); }

/* ---------- filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.filters select, .filters input, .watch-add select, .watch-add input {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
}
.filters select:focus, .filters input:focus { border-color: var(--brass); }
.filter-ticker { width: 90px; text-transform: uppercase; }
.filters button, .watch-add button {
  background: var(--brass-dim);
  border: 1px solid rgba(200, 162, 74, 0.4);
  border-radius: 7px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
}
.filters button:hover, .watch-add button:hover { background: rgba(200, 162, 74, 0.25); }
.filters-reset { font-size: 13px; color: var(--muted); margin-left: 4px; }
.search-note { color: var(--ink-2); font-size: 13px; margin-bottom: 10px; }

/* ---------- tables ---------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow-x: auto;
}
table.trades { width: 100%; border-collapse: collapse; font-size: 13px; }
.trades th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 11px 12px 9px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.trades td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  white-space: nowrap;
}
.trades tbody tr:last-child td { border-bottom: none; }
.trades tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.trades .num, .trades th.num { text-align: right; }
.trades .col-asset {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  color: var(--ink-2);
}
.trades .empty { text-align: center; color: var(--muted); padding: 28px; }

.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.quiet:hover { color: var(--brass); }

td.mono a, .ticker-link { color: var(--buy); font-weight: 500; }
td.mono a:hover, .ticker-link:hover { color: var(--brass); }

/* member cell */
.member-cell .chip { display: inline-block; margin: 3px 0 0 34px; }
.member-link { display: flex; align-items: center; gap: 8px; min-width: 0; }
.member-name {
  font-weight: 500;
  color: var(--ink);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-link:hover .member-name { color: var(--brass); }

.avatar {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--brass);
  letter-spacing: 0.03em;
}
.avatar-lg { width: 76px; height: 76px; border-radius: 12px; }
.avatar-lg .avatar-fallback { font-size: 24px; }

/* chips & pills */
.chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-D { border-color: rgba(57, 135, 229, 0.45); color: #86b6ef; }
.chip-R { border-color: rgba(230, 103, 103, 0.45); color: #ec9a9a; }
.chip-I { border-color: rgba(144, 133, 233, 0.5); color: #a9a0ee; }
.chip-committee { border-color: rgba(200, 162, 74, 0.35); color: var(--brass); }
.chip-staff { border-color: rgba(25, 158, 112, 0.5); color: #4fc39a; }
.chip-judge { border-color: rgba(201, 133, 0, 0.55); color: #e0a83c; }
.chip-exec { border-color: rgba(213, 81, 129, 0.5); color: #e08db0; }
.leaders-note { max-width: 760px; margin-bottom: 16px; }

.pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 5px;
}
.pill small { font-weight: 500; opacity: 0.75; text-transform: lowercase; }
.pill-buy { background: var(--buy-dim); color: #86b6ef; }
.pill-sell { background: var(--sell-dim); color: #ec9a9a; }
.pill-exch { background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }

/* returns */
.ret { font-family: var(--mono); font-size: 12.5px; font-weight: 500; display: block; }
.ret.up { color: var(--up); }
.ret.down { color: var(--down); }
.ret-sub { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ret-na { color: var(--grid); }

/* ---------- panels & charts ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px;
}
.panel-wide { margin-bottom: 8px; }
.panel h2 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; }
.chart-legend .swatch {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px;
}
.swatch-buy { background: var(--buy); }
.swatch-sell { background: var(--sell); }
.chart-activity, .chart-spark { width: 100%; height: auto; display: block; }
.bar-group:hover rect { opacity: 0.8; }
svg text { font-family: var(--mono); }

/* rank lists */
.rank-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.rank-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  min-width: 0;
}
.rank-list li:last-child { border-bottom: none; }
.rank-list .member-link { flex: 1; min-width: 0; }
.rank-list .member-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px;
}
.rank-num { margin-left: auto; color: var(--brass); font-weight: 500; }
.rank-detail { font-size: 11.5px; }
.rank-list .ticker-link { font-size: 13px; }

/* ---------- alerts ---------- */
.alerts {
  background: linear-gradient(90deg, var(--brass-dim), transparent 60%), var(--surface);
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-left: 3px solid var(--brass);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.alerts h2 {
  font-family: var(--serif); font-size: 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.alerts-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.alerts ul { list-style: none; padding: 0; font-size: 13px; }
.alerts li { padding: 3px 0; }
.alerts a { color: var(--ink); font-weight: 500; }
.alerts a:hover { color: var(--brass); }

/* ---------- profile pages ---------- */
.profile-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 22px;
}
.profile-id { flex: 1; min-width: 0; }
.profile-head h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; }
.profile-chips { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }

.ticker-badge {
  font-size: 24px; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--buy);
}

.watch-btn {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  white-space: nowrap;
}
.watch-btn:hover { border-color: var(--brass); color: var(--brass); }
.watch-btn.watching {
  background: var(--brass-dim);
  border-color: rgba(200, 162, 74, 0.5);
  color: var(--brass);
}

/* watchlist page */
.watch-items { list-style: none; padding: 0; margin-bottom: 12px; }
.watch-items li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 13px;
}
.watch-items li:last-child { border-bottom: none; }
.remove-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 12px; padding: 2px 6px;
}
.remove-btn:hover { color: var(--sell); }
.watch-add { display: flex; gap: 6px; }
.watch-add select { flex: 1; min-width: 0; }

/* logout link */
.logout {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
}
.logout:hover { color: var(--sell); border-color: rgba(230, 103, 103, 0.4); }

/* login page */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 36px 30px 30px;
  text-align: center;
}
.login-logo { border-radius: 16px; margin-bottom: 14px; }
.login-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}
.login-title em { font-style: italic; color: var(--brass); }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.login-error {
  color: #ec9a9a;
  background: var(--sell-dim);
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.login-card form { display: flex; flex-direction: column; gap: 10px; }
.login-card input {
  background: var(--page);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}
.login-card input:focus { border-color: var(--brass); }
.login-card button {
  background: var(--brass-dim);
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: 9px;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
}
.login-card button:hover { background: rgba(200, 162, 74, 0.25); }

/* pager */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 16px 0 4px;
  font-size: 13px;
}
.pager a { color: var(--brass); font-weight: 500; }

/* unreadable / scanned filings list */
.unreadable-filings { margin-top: 20px; }
.unreadable-filings h2 { color: var(--ink); }
.filing-list { list-style: none; padding: 0; margin-top: 10px; }
.filing-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.filing-list li:last-child { border-bottom: none; }
.filing-link { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.filing-date { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; }
.filing-title {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filing-link:hover .filing-title { color: var(--ink); }
.filing-open { color: var(--brass); font-size: 12px; flex: 0 0 auto; white-space: nowrap; }

/* ================= Mobile (phone is the primary surface) ================= */
@media (max-width: 640px) {
  /* Header: brand row + horizontally-scrollable nav underneath */
  .topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .wordmark { font-size: 18px; }
  .wordmark-icon { font-size: 16px; }
  .topbar-search { display: none; }
  .logout { order: 2; margin-left: auto; }
  .nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; font-size: 13px; }

  .page {
    padding: 16px 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .page-title { font-size: 23px; }
  .section-title { font-size: 17px; }

  /* Stat tiles: 2-up and compact so content is reachable */
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .tile { padding: 12px 12px 10px; }
  .tile-value { font-size: 21px; }
  .tile-value.tile-date { font-size: 16px; }
  .tile-label { font-size: 10px; }

  /* Filters: bigger touch targets, two per row */
  .filters { gap: 7px; }
  .filters select, .filters .filter-ticker { flex: 1 1 44%; min-width: 0; padding: 9px 10px; }
  .filters button { flex: 1 1 44%; padding: 9px; }
  .filters-reset { flex: 1 1 100%; text-align: center; }

  /* Feed: turn the trades table into stacked cards */
  .cards-wrap { border: none; background: transparent; overflow: visible; border-radius: 0; }
  table.trades.cards, table.trades.cards tbody { display: block; }
  table.trades.cards thead { display: none; }
  table.trades.cards tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  table.trades.cards td {
    display: block;
    padding: 4px 0;
    border: none;
    text-align: right;
    white-space: normal;
    max-width: none;
    overflow: hidden;              /* contain the floated label */
    font-size: 13.5px;
  }
  table.trades.cards td::before {
    content: attr(data-label);
    float: left;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 2px;
  }
  /* Member cell becomes the card header */
  table.trades.cards td.member-cell {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 0 9px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  table.trades.cards td.member-cell::before { content: none; }
  table.trades.cards td.member-cell .chip { margin: 0; }
  .member-name { max-width: 200px; }
  /* Asset name is redundant with the ticker on a small screen */
  table.trades.cards td.col-asset { display: none; }
  table.trades.cards td.empty { text-align: center; }
  table.trades.cards td.empty::before { content: none; }

  /* Profile pages stack; watch button goes full-width */
  .profile-head { flex-wrap: wrap; gap: 12px; }
  .profile-head h1 { font-size: 23px; }
  .profile-id { flex: 1 1 60%; min-width: 0; }
  /* Long committee names must wrap, not force horizontal scroll */
  .profile-chips .chip { white-space: normal; }
  .watch-form { order: 3; width: 100%; }
  .watch-btn { width: 100%; }
  .ticker-badge { font-size: 20px; padding: 14px 16px; }

  .panel { padding: 14px; }
  .pager { padding: 14px 0; gap: 24px; }
  .pager a { padding: 6px 4px; }

  /* Secondary tables (Members/Tickers/Leaders): drop low-priority columns */
  .hide-mobile { display: none !important; }
  .trades:not(.cards) td, .trades:not(.cards) th { padding: 9px 8px; }
  .trades:not(.cards) .member-cell .chip { margin-left: 34px; }
}

/* ---------- Unusual trades ---------- */
.page-lede {
  color: var(--ink-2);
  max-width: 62ch;
  margin: -12px 0 22px;
  font-size: 14.5px;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
.filter-check input { accent-color: var(--brass); margin: 0; }

/* Conflict strength. Direct is filled so it carries at a glance; the weaker
   tiers step down to outline-only rather than competing for attention. */
.flag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid transparent;
  vertical-align: middle;
}
.flag-direct { background: rgba(224, 168, 60, 0.18); color: #e8b855; border-color: rgba(224, 168, 60, 0.5); }
.flag-sector { color: var(--brass); border-color: rgba(200, 162, 74, 0.35); }
.flag-broad  { color: var(--muted); border-color: var(--hairline); }

.trades .col-conflict { max-width: 260px; white-space: normal; }
.conflict-cttee {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conflict-cttee:hover { color: var(--brass); }

.late-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--sell-dim);
  color: #ec9a9a;
  font-family: var(--mono);
  font-size: 11px;
}

.kind-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.score {
  font-weight: 500;
  color: var(--brass);
  font-size: 13.5px;
}

.panel-note {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.panel-note:last-child { margin-bottom: 0; }
.panel-note .flag { font-size: 9.5px; padding: 1px 5px; }

@media (max-width: 640px) {
  /* The conflict is the reason this tab exists -- unlike Asset on the feed,
     it stays visible when the table collapses into cards. */
  table.trades.cards td.col-conflict { max-width: none; }
  .unusual-table .conflict-cttee { display: inline; margin-left: 6px; }
  .page-lede { font-size: 13.5px; margin-bottom: 18px; }
}

/* date range: its own row under the filter selects */
.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-basis: 100%;
  flex-wrap: wrap;
  padding-top: 4px;
}
.date-range-label, .date-range-sep {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.date-range-sep { text-transform: none; letter-spacing: 0; }
.date-range input[type="date"] {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 6px 8px;
  color-scheme: dark;
}
.date-range input[type="date"]:focus { border-color: var(--brass); outline: none; }
.filters select:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 640px) {
  .date-range { gap: 6px; }
  .date-range input[type="date"] { flex: 1 1 auto; min-width: 0; }
}
