@font-face { font-family: Montserrat; src: url('/montserrat.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --ink: #dcece2; --muted: #8fa999; --faint: #ffffff0f; --line: #ffffff14; --accent: #a1f6cc; --panel: #ffffff05; }
* { box-sizing: border-box; }
body { margin: 0; background: #000; color: var(--ink); font: 700 14px Montserrat, system-ui, sans-serif; }
main { max-width: 1080px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 18px 40px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; color: var(--accent); }
h2 { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
#updated { margin: 0; color: var(--muted); font-size: 11px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.tile span { display: block; color: var(--muted); font-size: 11px; }
.tile strong { display: block; margin: 8px 0 6px; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.panel { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 14px; min-width: 0; }
.panel h2 { margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
button { font: inherit; font-size: 11px; color: var(--accent); background: #a1f6cc0b; border: 1px solid #a1f6cc22; border-radius: 9px; padding: 6px 12px; cursor: pointer; }
.chart { position: relative; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 10px; }
.tip { position: absolute; pointer-events: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0b0f0d; font-size: 11px; line-height: 1.6; white-space: nowrap; transform: translate(-50%, -100%); }
.tip b { color: var(--ink); }
.tip span { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--faint); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: 10px; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); font-size: 12px; margin: 0; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:last-child { grid-column: span 2; } .split { grid-template-columns: 1fr; } }
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.login { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.login h1 { margin-bottom: 10px; }
.login label { color: var(--muted); font-size: 11px; }
.login input { font: inherit; font-size: 16px; color: var(--ink); background: #000; border: 1px solid #b5f7d422; border-radius: 11px; padding: 12px 14px; outline: none; }
.login input:focus { border-color: #a1f6cc66; }
.login button { min-height: 44px; font-size: 13px; margin-top: 6px; }
.error { display: none; margin: 4px 0 0; color: #f6a1a1; font-size: 11px; }
.login-page:has(#wrong:target) #wrong, .login-page:has(#wait:target) #wait { display: block; }
header .logout { color: var(--muted); font-size: 11px; text-decoration: none; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.averages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.averages strong { display: block; font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.averages span { color: var(--muted); font-size: 11px; }
