:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #14213d;
  --muted: #4a5568;
  --brand: #0b5fff;
  --brand-dark: #0847c2;
  --danger: #c1121f;
  --ok: #1b7f3b;
  --radius: 18px;
  font-size: 20px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  line-height: 1.55;
}
.topbar { padding: 1rem 1.25rem; background: var(--card); border-bottom: 1px solid #dbe2ec; }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; }
#nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 1.25rem; }
#nav:empty { display: none; }
#nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
#nav a:hover { background: #e6edf9; }
#nav a[aria-current="page"] { background: var(--brand); color: #fff; }
main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 2rem; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; font-size: 1.3rem; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 4px solid #ffbf00; outline-offset: 2px; }
.msg { padding: 1rem 1.25rem; border-radius: 12px; background: #e6edf9; }
.msg.error { background: #fde8ea; color: var(--danger); }
label { display: block; font-weight: 600; margin: 1rem 0 .25rem; }
input { width: 100%; min-height: 52px; padding: 0 .9rem; font-size: 1.1rem; border: 2px solid #b8c3d6; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid #dbe2ec; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
