:root {
  --bg: #0f1115; --card: #181b22; --line: #262a33; --text: #e7e9ee; --muted: #8a909c;
  --push: #3ecf8e; --ok: #5aa9ff; --watch: #f5b942; --slow: #ff6b5b; --unknown: #6b7280;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  max-width: 880px; margin-inline: auto;
}
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h1 { font-size: 20px; margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
main { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.card-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h2 { font-size: 17px; margin: 0; }
.plan { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.card-head .stamp { margin-left: auto; }
.error { color: var(--slow); font-size: 13px; margin: 6px 0; }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.win { padding: 10px 0; border-top: 1px solid var(--line); }
.win:first-of-type { border-top: 0; }
.win-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.win-label { font-weight: 600; }
.pct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.bar { position: relative; height: 10px; background: #0b0d11; border-radius: 99px; margin: 8px 0 6px; overflow: hidden; }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.tick { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); opacity: .7; }
.meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.verdict { font-weight: 600; }
.push { --c: var(--push); } .ok { --c: var(--ok); } .watch { --c: var(--watch); }
.slow_down, .exhausted { --c: var(--slow); } .unknown { --c: var(--unknown); }
.fill { background: var(--c); } .verdict { color: var(--c); }
.stale { opacity: .55; }
footer { margin-top: 18px; }
.counter .meta { margin-top: 4px; }
.push-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.push-bar[hidden] { display: none; }
button { font: inherit; color: #0f1115; background: var(--ok); border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.login { display: grid; gap: 10px; max-width: 360px; }
.login input { font: inherit; color: var(--text); background: #0b0d11; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.login .error { margin: 0; }
