:root { --bg: #0a0b0f; --surface: #13151b; --line: #2a2e39; --text: #f2f3f6; --muted: #9aa0b1; --accent: #d6ff3f; --bad: #ff8a6b; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
header, .range, main, #message, #signin { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 18px; }
h1 { font-size: 20px; margin: 0; } h1 span { color: var(--accent); }
h2 { font-size: 15px; margin: 0 0 10px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
button, input { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
button { cursor: pointer; }
button[aria-current="page"] { background: var(--accent); color: #10130a; border-color: var(--accent); font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.banner { background: #ffd23f; color: #1a1400; font-weight: 800; text-align: center; padding: 8px; }
.range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
main { padding-bottom: 40px; display: grid; gap: 16px; margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.tile b { display: block; font-size: 30px; line-height: 1.2; }
.tile small, .note { color: var(--muted); }
.up { color: var(--accent); } .down { color: var(--bad); }
.chart { width: 100%; height: 140px; display: block; }
.chart rect { fill: var(--accent); }
.chart rect:hover { fill: #fff; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 600; }
#map { height: 420px; border-radius: 12px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }
#message { color: var(--bad); }
.item { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.item p { margin: 0; flex: 1 1 320px; overflow-wrap: anywhere; }
