:root {
  --bg: #f6f5f1; --surface: #ffffff; --ink: #1c1b18; --muted: #6b6860; --line: #e2dfd6;
  --accent: #1f5f4a; --ok: #1f7a4d; --bad: #b3372b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141412; --surface: #1e1d1a; --ink: #ecebe6; --muted: #9c998f; --line: #33312c; --accent: #6fc3a4; --ok: #6fc3a4; --bad: #e88578; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--accent); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topbar form { margin: 0; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.who { color: var(--muted); }
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 2px; }
.label { font-size: 13px; color: var(--muted); }
.value { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.value.ok { color: var(--ok); } .value.bad { color: var(--bad); }
.note { font-size: 13px; color: var(--muted); }
.login { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.login h1 { margin-bottom: 8px; }
label { font-size: 13px; color: var(--muted); margin-top: 6px; }
input[type=email], input[type=password] { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink); }
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
.login button { margin-top: 14px; padding: 10px; border: 0; border-radius: 7px; background: var(--accent); color: var(--surface); font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: 14px; }
.error { margin: 0; color: var(--bad); font-size: 14px; }
