:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f0f2f5; --text: #0e1522; --muted: #5a6577; --border: #e1e5eb;
  --accent: #2456e6; --accent-ink: #ffffff; --accent-soft: #e8eefc; --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .04);
  --good: #0f7b4a; --good-bg: #e3f6ec; --warn: #9a5b00; --warn-bg: #fff1d6; --bad: #b42318; --bad-bg: #fde8e6;
  --info: #1d4fb8; --info-bg: #e6eefc; --mute: #5a6577; --mute-bg: #eceff3; --code-bg: #f1f3f7;
  --radius: 10px; --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e16; --surface: #111723; --surface-2: #171e2c; --text: #e7eaf0; --muted: #94a0b4; --border: #232c3d;
    --accent: #6c93ff; --accent-ink: #0a0e16; --accent-soft: #1a2542; --shadow: 0 1px 2px rgb(0 0 0 / .4);
    --good: #54d49a; --good-bg: #0f2a1f; --warn: #f2b84b; --warn-bg: #2c2210; --bad: #ff8a80; --bad-bg: #321513;
    --info: #8fb0ff; --info-bg: #15223f; --mute: #94a0b4; --mute-bg: #1b2332; --code-bg: #0d131e;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e16; --surface: #111723; --surface-2: #171e2c; --text: #e7eaf0; --muted: #94a0b4; --border: #232c3d;
  --accent: #6c93ff; --accent-ink: #0a0e16; --accent-soft: #1a2542; --shadow: 0 1px 2px rgb(0 0 0 / .4);
  --good: #54d49a; --good-bg: #0f2a1f; --warn: #f2b84b; --warn-bg: #2c2210; --bad: #ff8a80; --bad-bg: #321513;
  --info: #8fb0ff; --info-bg: #15223f; --mute: #94a0b4; --mute-bg: #1b2332; --code-bg: #0d131e;
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 5px; }
pre { background: var(--code-bg); padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 0; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--border); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 4px 10px 16px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; background: var(--warn-bg); color: var(--warn); border-radius: 999px; font-size: 12px; padding: 0 7px; font-weight: 600; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; font-size: 13px; }
.who { padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 28px 36px 64px; max-width: 1180px; width: 100%; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head .sub { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stat.attn .n { color: var(--warn); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.good { color: var(--good); background: var(--good-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.info { color: var(--info); background: var(--info-bg); }
.badge.muted { color: var(--mute); background: var(--mute-bg); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); }
td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.link:hover { background: var(--surface-2); }
.tablewrap { overflow-x: auto; margin: -6px -8px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; border: 1px solid transparent; }
.flash.ok { background: var(--good-bg); color: var(--good); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); margin-bottom: 14px; font-weight: 500; }
.notice.info { background: var(--info-bg); color: var(--info); }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.tabs a:hover { text-decoration: none; background: var(--surface-2); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; display: grid; place-items: center; font-size: 13px; margin-top: 1px; }
.steps li.done .dot { background: var(--good); border-color: var(--good); color: var(--surface); }
.steps li.done .t { color: var(--muted); text-decoration: line-through; }
.steps .t { font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: grid; gap: 12px; }
.timeline li { position: relative; padding-left: 14px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.timeline .t { font-weight: 600; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details pre { margin-top: 6px; max-height: 320px; }

.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check-list li { display: flex; gap: 8px; }
.check-list .ok { color: var(--good); font-weight: 700; }
.check-list .no { color: var(--bad); font-weight: 700; }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy pre { flex: 1; }
.inline-form { display: inline; }
.hero { border-left: 4px solid var(--warn); }
.hero.bad { border-left-color: var(--bad); }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; padding-bottom: 20px; font-size: 20px; }
.auth h1 { text-align: center; font-size: 22px; margin-bottom: 18px; }
.auth .alt { text-align: center; margin-top: 14px; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 6px; }
  .brand { padding: 4px 8px; }
  .nav { display: flex; gap: 2px; overflow-x: auto; flex: 1 1 100%; order: 3; }
  .nav a { white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; }
  .who { display: none; }
  .main { padding: 20px 16px 48px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2, .cols-3-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .nav a { transition: background .12s, filter .12s; } }
.block { width: 100%; justify-content: center; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mt-s { margin-top: 8px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.w-s { width: 140px; }
