
:root {
  --ink: #0e1015;
  --surface: #151821;
  --raised: #1a1d27;
  --text: #e8eaef;
  --muted: #8d93a3;
  --accent: #8c9bf7;
  --ok: #7ad1a0;
  --danger: oklch(0.72 0.17 25);
  --line: rgb(255 255 255 / 0.09);
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.shell { max-width: 440px; margin: 0 auto; padding: clamp(24px, 6vw, 56px) 20px 48px; }
.shell--wide { max-width: 760px; }
.shell--admin { max-width: 1120px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none;
}
.brand svg { width: 40px; height: 40px; }
.brand b { font-weight: 700; color: #ff7a59; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card + .card { margin-top: 16px; }
.grid > .card { margin-top: 0; }
.grid + .card { margin-top: 0; }
.after-card { margin: 16px 0 0; }
label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 500; }
input[type='email'], input[type='password'], input[type='text'], input[type='search'], select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ink); color: var(--text); font: inherit;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; font-size: 14px; font-weight: 400; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.button {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
  margin-top: 24px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--accent);
  color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:active { transform: translateY(1px); }
.button--quiet { background: var(--raised); color: var(--text); }
.button--danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.button--inline { width: auto; min-height: 40px; margin-top: 0; padding: 8px 14px; font-size: 14px; }
.notice { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.notice--error { border-color: var(--danger); color: var(--danger); }
.notice--ok { border-color: var(--ok); color: var(--ok); }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 14px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.topbar .brand { margin-bottom: 0; }
.topbar form { margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 0; }
.row:last-of-type { padding-bottom: 0; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 13px; white-space: nowrap; }
.tag--ok { color: var(--ok); }
.tag--bad { color: var(--danger); }
.num { font-variant-numeric: tabular-nums; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a[aria-current='page'] { background: var(--raised); color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { border-top: 0; color: var(--muted); font-weight: 500; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input { flex: 1 1 220px; }
.inline-form select { flex: 0 1 190px; width: auto; }
.inline-form input[type='date'] { flex: 0 1 190px; width: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--text); font: inherit; }
.inline-form label { margin: 0; }
.filter { margin-bottom: 16px; font-size: 14px; }
input[type='file'] { width: 100%; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--ink); color: var(--text); font: inherit; }
progress { width: 100%; height: 10px; margin-top: 16px; accent-color: var(--accent); }
code { padding: 2px 6px; border-radius: 6px; background: var(--raised); font-size: 13px; overflow-wrap: anywhere; }
.pre-line { white-space: pre-line; }
footer { margin-top: 28px; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .button:active { transform: none; } }
