:root {
  --bg: #0b1220;
  --surface: #121a2b;
  --surface-2: #18223a;
  --border: #243150;
  --text: #e7ecf5;
  --muted: #93a0ba;
  --accent: #19c3a0;
  --accent-ink: #04221b;
  --warn: #f0b44c;
  --danger: #ef6a6a;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb; --surface: #ffffff; --surface-2: #f0f3f8; --border: #dde3ee;
    --text: #0e1626; --muted: #5b6780; --accent: #0e9f83; --accent-ink: #ffffff;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; font-size: 18px; }
.logo-mark { width: 26px; height: 26px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 14px; }
nav a:hover, nav a.active { color: var(--text); }
main { padding: 32px 0 64px; }
h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat.primary .value { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn:disabled { opacity: 0.6; cursor: wait; }
form .field { margin-bottom: 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; }
.notice { border-left: 3px solid var(--warn); background: var(--surface-2); padding: 12px 14px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.pill.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--danger); }
.table-scroll { overflow-x: auto; }
.wall-frame { width: 100%; height: 820px; border: 0; border-radius: var(--radius); background: var(--surface); }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 700; margin-bottom: 10px; }
footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 13px; }
.auth { max-width: 400px; margin: 24px auto; }
@media (max-width: 600px) { nav a { margin-left: 10px; } .wall-frame { height: 720px; } .stat .value { font-size: 22px; } .card { padding: 16px; } }
