:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #64706d;
  --paper: #f6f3ea;
  --surface: #fffdf7;
  --line: #dcd8cb;
  --primary: #136f63;
  --primary-dark: #0c4e47;
  --accent: #ec7a5c;
  --warning: #9c5b12;
  --danger: #a33a3a;
  --shadow: 0 10px 30px rgba(31, 44, 41, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--primary-dark); }
button, input, select { font: inherit; }
.shell { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.site-header { background: rgba(255,253,247,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.header-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 760; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
main { padding: 42px 0 72px; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: .78rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; margin-bottom: 12px; }
h2 { font-size: 1.3rem; }
.lede { max-width: 720px; color: var(--muted); font-size: 1.03rem; line-height: 1.6; }
.grid { display: grid; gap: 18px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.stat-value { display: block; margin-top: 8px; font-size: 1.55rem; font-weight: 760; letter-spacing: -.03em; }
.stat-meta { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 18px; }
.map { height: 410px; border-radius: 13px; background: #dfe9e5; overflow: hidden; }
.empty-map { height: 100%; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 30px; }
.status { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 11px; font-size: .82rem; background: #dcefe9; color: var(--primary-dark); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; padding: 11px 16px; background: var(--primary); color: white; text-decoration: none; cursor: pointer; font-weight: 680; }
.button:hover { background: var(--primary-dark); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form { max-width: 520px; }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field label { font-size: .86rem; font-weight: 650; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 11px 12px; }
.notice { border-left: 4px solid var(--accent); background: #fff3ec; padding: 14px 16px; border-radius: 8px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { max-width: 480px; text-align: center; }
.auth-card .brand { justify-content: center; font-size: 1.2rem; margin-bottom: 28px; }
.auth-card .brand img { width: 46px; height: 46px; }
.auth-card p { color: var(--muted); line-height: 1.6; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .88rem; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.footnote { font-size: .78rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .nav a:not(:last-child) { display: none; }
}

@media (max-width: 520px) {
  .shell { padding: 0 16px; }
  main { padding-top: 28px; }
  .stats { grid-template-columns: 1fr; }
}
