:root {
  color-scheme: dark;
  --ink: #e9f0f8;
  --muted: #a7bbcf;
  --line: rgba(182, 207, 230, .17);
  --navy: #061b33;
  --navy-soft: #0b2949;
  --panel: rgba(12, 44, 76, .82);
  --gold: #dfbd78;
  --green: #82d5a3;
  --red: #ffadad;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 100% 0%, #174a76 0, transparent 34rem), linear-gradient(145deg, #041121, var(--navy));
}
.shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0 96px; }
.hero { max-width: 760px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .72rem; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(2.3rem, 6vw, 4.8rem); letter-spacing: -.055em; line-height: .98; }
h2 { margin-bottom: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.intro, .updated { color: var(--muted); line-height: 1.55; }
.updated { margin-bottom: 0; font-size: .86rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stats article, .panel { border: 1px solid var(--line); background: var(--panel); box-shadow: 0 18px 60px rgba(0, 0, 0, .16); }
.stats article { min-height: 118px; padding: 22px; border-radius: 16px; }
.stats span { display: block; color: var(--muted); font-size: .82rem; }
.stats strong { display: block; margin-top: 8px; color: var(--gold); font-size: 1.7rem; }
.panel { margin-top: 18px; padding: 25px; border-radius: 18px; }
.filters { display: flex; gap: 16px; align-items: end; }
label { display: grid; flex: 1; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #061b33; font: inherit; letter-spacing: normal; }
.section-title { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.result-count { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
th { padding: 0 12px 12px 0; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 16px 12px 16px 0; border-top: 1px solid var(--line); font-size: .91rem; }
td.price { color: var(--gold); font-size: 1rem; font-weight: 780; white-space: nowrap; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: rgba(130, 213, 163, .13); color: var(--green); font-size: .74rem; font-weight: 750; }
.status.unknown, .status.unavailable { background: rgba(255, 173, 173, .12); color: var(--red); }
.delta { color: var(--muted); white-space: nowrap; }
.delta.up { color: var(--red); }.delta.down { color: var(--green); }
.history-label { max-width: 560px; }
.chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 12px; min-height: 140px; margin-top: 25px; }
.chart-point { padding: 13px; border-radius: 10px; background: rgba(3, 17, 32, .42); border-left: 3px solid var(--gold); }
.chart-point time, .chart-point span { display: block; color: var(--muted); font-size: .75rem; }.chart-point strong { display: block; margin-top: 6px; color: var(--gold); }
.empty { color: var(--muted); }
@media (max-width: 700px) {
  .shell { width: min(100% - 22px, 1240px); padding-top: 38px; }
  .stats { grid-template-columns: 1fr; }.filters { display: grid; }.panel { padding: 18px; }
  .section-title { align-items: start; flex-direction: column; gap: 6px; }
}
