
:root {
  color-scheme: light dark;
  --bg: #f6f7f8; --surface: #fff; --text: #1c2126; --muted: #5d6771; --line: #dde1e5;
  --accent: #0b5cad; --accent-text: #fff; --danger: #b3261e; --notice: #e8f1fb; --error: #fbeaea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --surface: #1d2125; --text: #e7eaed; --muted: #a0a9b2; --line: #32383e;
    --accent: #6cb0f5; --accent-text: #0b1520; --danger: #f2877f; --notice: #1b2c3e; --error: #3e2020;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
a { color: var(--accent); }
header.site { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding: .75rem 1.25rem;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: 1.1rem; color: inherit; text-decoration: none; }
.brand img { display: block; height: 44px; max-width: 180px; object-fit: contain; }
nav.main { display: flex; gap: 1rem; flex: 1; }
nav.main a { text-decoration: none; padding: .25rem 0; }
nav.main a.active { font-weight: 600; border-bottom: 2px solid var(--accent); }
.account { display: flex; align-items: baseline; gap: .75rem; color: var(--muted); font-size: .9rem; }
main { max-width: 1100px; margin: 0 auto; padding: 1.25rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); font-size: .9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1.25rem; }
.card.narrow { max-width: 28rem; margin: 3rem auto; text-align: center; }
.card.narrow img { display: block; max-height: 120px; max-width: 100%; margin: 0 auto 1rem; }
.notice, .error { border-radius: 6px; padding: .6rem .8rem; margin-bottom: 1rem; }
.notice { background: var(--notice); }
.error { background: var(--error); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: .45rem .6rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 600; border-top: 2px solid var(--line); border-bottom: 0; }
form.filters, form.inline-fields { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
input, select, button, .button { font: inherit; padding: .35rem .6rem; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); }
button, .button { cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
form.inline { display: inline; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; align-items: center; }
.pills a { padding: .15rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.pills a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.pills .caption { color: var(--muted); font-size: .85rem; min-width: 4rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.spaced { margin-top: 1rem; }
.secret { font-family: ui-monospace, monospace; word-break: break-all; }
#live-map { height: 65vh; min-height: 320px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 1rem; }
.age-fresh { color: inherit; }
.age-stale { color: var(--muted); }
.age-old { color: var(--danger); }
.logo-preview { display: block; max-height: 80px; max-width: 240px; margin-bottom: .75rem; }
