/* Shellproof design system.
   Light-first, monochrome, generous whitespace; severity colours are the only
   saturated colours on the page. Dark mode via prefers-color-scheme or
   [data-theme]. No external fonts or requests. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f7f7f8;
  --bg-muted: #efeff1;
  --bg-inverse: #0b0b0c;
  --fg: #0a0a0b;
  --fg-2: #3f3f46;
  --fg-muted: #71717a;
  --fg-faint: #a1a1aa;
  --fg-inverse: #fafafa;
  --border: #e7e7ea;
  --border-strong: #d4d4d8;
  --ring: rgba(10, 10, 11, 0.12);
  --shadow-sm: 0 1px 2px rgba(10, 10, 11, 0.04);
  --shadow: 0 1px 2px rgba(10, 10, 11, 0.04), 0 8px 24px rgba(10, 10, 11, 0.06);
  --shadow-lg: 0 24px 64px rgba(10, 10, 11, 0.12);

  --sev-critical: #d92d20;
  --sev-critical-bg: #fef3f2;
  --sev-high: #e8590c;
  --sev-high-bg: #fff4ed;
  --sev-medium: #b54708;
  --sev-medium-bg: #fffaeb;
  --sev-low: #1570ef;
  --sev-low-bg: #eff8ff;
  --sev-info: #52525b;
  --sev-info-bg: #f4f4f5;
  --ok: #067647;
  --ok-bg: #ecfdf3;

  --term-bg: #0b0b0c;
  --term-fg: #e4e4e7;
  --term-muted: #71717a;
  --term-green: #4ade80;
  --term-red: #f87171;
  --term-amber: #fbbf24;
  --term-blue: #60a5fa;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --nav-h: 60px;
  --maxw: 1180px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b;
    --bg-subtle: #121214;
    --bg-muted: #1b1b1f;
    --bg-inverse: #fafafa;
    --fg: #f4f4f5;
    --fg-2: #d4d4d8;
    --fg-muted: #8b8b94;
    --fg-faint: #5c5c66;
    --fg-inverse: #0a0a0b;
    --border: #232328;
    --border-strong: #34343b;
    --ring: rgba(255, 255, 255, 0.16);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --sev-critical: #f97066;
    --sev-critical-bg: rgba(217, 45, 32, 0.14);
    --sev-high: #fd853a;
    --sev-high-bg: rgba(232, 89, 12, 0.14);
    --sev-medium: #fdb022;
    --sev-medium-bg: rgba(181, 71, 8, 0.16);
    --sev-low: #53b1fd;
    --sev-low-bg: rgba(21, 112, 239, 0.14);
    --sev-info: #a1a1aa;
    --sev-info-bg: rgba(255, 255, 255, 0.06);
    --ok: #47cd89;
    --ok-bg: rgba(6, 118, 71, 0.16);
    --term-bg: #050506;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-subtle: #121214;
  --bg-muted: #1b1b1f;
  --bg-inverse: #fafafa;
  --fg: #f4f4f5;
  --fg-2: #d4d4d8;
  --fg-muted: #8b8b94;
  --fg-faint: #5c5c66;
  --fg-inverse: #0a0a0b;
  --border: #232328;
  --border-strong: #34343b;
  --ring: rgba(255, 255, 255, 0.16);
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --sev-critical: #f97066;
  --sev-critical-bg: rgba(217, 45, 32, 0.14);
  --sev-high: #fd853a;
  --sev-high-bg: rgba(232, 89, 12, 0.14);
  --sev-medium: #fdb022;
  --sev-medium-bg: rgba(181, 71, 8, 0.16);
  --sev-low: #53b1fd;
  --sev-low-bg: rgba(21, 112, 239, 0.14);
  --sev-info: #a1a1aa;
  --sev-info-bg: rgba(255, 255, 255, 0.06);
  --ok: #47cd89;
  --ok-bg: rgba(6, 118, 71, 0.16);
  --term-bg: #050506;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
p a, li a, td a, .prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
p a:hover, li a:hover, td a:hover, .prose a:hover { text-decoration-color: var(--fg); }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0 0 1em; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.875em; }
:not(pre) > code {
  background: var(--bg-muted); border: 1px solid var(--border);
  padding: 0.1em 0.38em; border-radius: 6px; font-size: 0.84em; white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-pill); }
.skip-link:focus { left: 16px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.center { text-align: center; }
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }
.mono { font-family: var(--font-mono); }
.small { font-size: 13px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
}

/* ---------- top banner (incident) ---------- */
.incident-bar {
  background: var(--bg-inverse); color: var(--fg-inverse);
  font-size: 13px; line-height: 1.4; text-align: center; padding: 9px 16px;
}
.incident-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.incident-bar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sev-critical); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.25); } 50% { box-shadow: 0 0 0 6px rgba(217, 45, 32, 0.05); } }
@media (prefers-reduced-motion: reduce) { .incident-bar .dot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: 0.14em; font-size: 14px; }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--fg-muted); }
.nav-links a { padding: 6px 0; white-space: nowrap; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
@media (max-width: 1040px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px;
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--fg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  font: 500 14px/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--fg-2); color: var(--bg); }
.btn-secondary { background: var(--bg); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg-muted); }
.btn-ghost:hover { color: var(--fg); background: var(--bg-muted); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-danger { background: var(--sev-critical); color: #fff; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 5px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg);
  font-size: 13px; color: var(--fg-2); box-shadow: var(--shadow-sm);
}
.pill .tag { font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--sev-critical-bg); color: var(--sev-critical); }
.pill .arrow { color: var(--fg-faint); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 600 11px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  background: var(--sev-info-bg); color: var(--sev-info);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-plain::before { display: none; }
.sev-critical { background: var(--sev-critical-bg); color: var(--sev-critical); }
.sev-high { background: var(--sev-high-bg); color: var(--sev-high); }
.sev-medium { background: var(--sev-medium-bg); color: var(--sev-medium); }
.sev-low { background: var(--sev-low-bg); color: var(--sev-low); }
.sev-info { background: var(--sev-info-bg); color: var(--sev-info); }
.sev-ok { background: var(--ok-bg); color: var(--ok); }
.eyebrow { font-size: 13px; color: var(--fg-muted); margin-bottom: 14px; display: block; }
.label { font: 600 11px/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }

/* ---------- type ---------- */
.display { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; }
.tone { color: var(--fg-faint); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-muted); line-height: 1.55; max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }
.prose { font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.prose h2 { font-size: 28px; margin: 56px 0 16px; color: var(--fg); }
.prose h3 { font-size: 20px; margin: 36px 0 10px; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose strong { color: var(--fg); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 56px; }
.hero .pill { margin-bottom: 28px; }
.hero .lede { margin-top: 22px; }
.hero-actions { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.center .hero-actions { justify-content: center; }
.trust { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--fg-muted); }
.center .trust { justify-content: center; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--fg-faint); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; position: relative; overflow: hidden;
}
.card-plain { background: var(--bg); }
.card h3 { font-size: 17px; font-weight: 550; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }
.card-link { display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-muted); }
.card-foot .go { color: var(--fg-muted); transition: color 0.15s; }
.card-link:hover .card-foot .go { color: var(--fg); }
.card-icon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 18px; height: 18px; }
.stat { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; font-weight: 500; line-height: 1; }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--fg-muted); }

/* ---------- terminal ---------- */
.terminal {
  background: var(--term-bg); color: var(--term-fg); border-radius: var(--radius-lg);
  border: 1px solid #1f1f23; overflow: hidden; box-shadow: var(--shadow-lg);
  font: 13px/1.65 var(--font-mono);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1c1c20; color: var(--term-muted); font-size: 12px; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2f; display: inline-block; }
.terminal-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; white-space: pre; font-size: 12.5px; }
.t-dim { color: var(--term-muted); } .t-green { color: var(--term-green); } .t-red { color: var(--term-red); }
.t-amber { color: var(--term-amber); } .t-blue { color: var(--term-blue); } .t-bold { font-weight: 700; color: #fff; }

/* ---------- code blocks ---------- */
.code {
  position: relative; background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 0 0 1.2em; overflow: hidden;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--border); font: 500 12px/1 var(--font-sans); color: var(--fg-muted); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: var(--fg-2); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg); color: var(--fg-muted); font: 500 12px/1 var(--font-sans); cursor: pointer;
}
.copy-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }
.code > .copy-btn { position: absolute; top: 8px; right: 8px; }

/* ---------- callouts ---------- */
.callout { border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); padding: 16px 18px; background: var(--bg-subtle); margin: 0 0 1.2em; font-size: 15px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }
.callout-critical { border-left-color: var(--sev-critical); background: var(--sev-critical-bg); }
.callout-warn { border-left-color: var(--sev-medium); background: var(--sev-medium-bg); }
.callout-ok { border-left-color: var(--ok); background: var(--ok-bg); }
.callout-info { border-left-color: var(--sev-low); background: var(--sev-low-bg); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11.5px/1.2 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); background: var(--bg-subtle); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.mono, .table .mono { font-size: 13px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; color: var(--fg-muted); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg);
  font: 15px/1.4 var(--font-sans); transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 160px; padding: 12px 14px; font: 13px/1.6 var(--font-mono); resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 4px var(--ring); }
.input-mono { font-family: var(--font-mono); font-size: 14px; }
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 36px 20px; text-align: center;
  color: var(--fg-muted); background: var(--bg-subtle); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--fg); background: var(--bg-muted); color: var(--fg); }
.dropzone svg { width: 22px; height: 22px; margin: 0 auto 10px; }
.segmented { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-muted); border: 1px solid var(--border); gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; height: 30px; padding: 0 14px; border-radius: var(--radius-pill); font: 500 13px/1 var(--font-sans); color: var(--fg-muted); cursor: pointer; }
.segmented button[aria-pressed="true"], .segmented button.active { background: var(--bg); color: var(--fg); box-shadow: var(--shadow-sm); }

/* ---------- findings list (shared by checkers) ---------- */
.verdict { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--bg); }
.verdict-head { display: flex; align-items: flex-start; gap: 16px; }
.verdict-title { font-size: 22px; letter-spacing: -0.02em; font-weight: 550; }
.verdict-critical { border-color: color-mix(in srgb, var(--sev-critical) 40%, var(--border)); box-shadow: 0 0 0 4px var(--sev-critical-bg); }
.verdict-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); box-shadow: 0 0 0 4px var(--ok-bg); }
.findings { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.finding { border-bottom: 1px solid var(--border); }
.finding:last-child { border-bottom: 0; }
.finding > summary, .finding-head { list-style: none; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.finding > summary::-webkit-details-marker { display: none; }
.finding > summary:hover { background: var(--bg-subtle); }
.finding-title { font-size: 14.5px; font-weight: 500; }
.finding-loc { font: 12px/1.4 var(--font-mono); color: var(--fg-muted); overflow-wrap: anywhere; }
.finding-id { font: 11.5px/1 var(--font-mono); color: var(--fg-faint); }
.finding-body { padding: 4px 16px 18px 122px; font-size: 14px; color: var(--fg-2); }
.finding-body pre { white-space: pre-wrap; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; overflow-x: auto; }
@media (max-width: 640px) {
  .finding > summary, .finding-head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .finding-body { padding-left: 16px; }
}
.empty { text-align: center; padding: 48px 20px; color: var(--fg-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.progress { height: 4px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--fg); width: 0; transition: width 0.2s; }

/* ---------- console (checker app) ---------- */
.console { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - var(--nav-h)); }
.side { border-right: 1px solid var(--border); padding: 20px 12px; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; background: var(--bg); }
.side .label { padding: 16px 10px 8px; display: block; }
.side a, .side button.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  font: 14px/1.3 var(--font-sans); color: var(--fg-muted); background: none; border: 0; cursor: pointer; text-align: left;
}
.side a:hover, .side button.side-item:hover { color: var(--fg); background: var(--bg-subtle); }
.side a[aria-current="page"], .side button.side-item[aria-current="true"] { color: var(--fg); background: var(--bg-muted); font-weight: 500; }
.side svg { width: 16px; height: 16px; flex: none; }
.console-main { padding: 40px clamp(16px, 4vw, 56px) 96px; min-width: 0; }
.console-main > header { margin-bottom: 28px; }
.console-main > header h1 { font-size: 30px; letter-spacing: -0.025em; }
.console-main > header p { color: var(--fg-muted); margin: 8px 0 0; max-width: 640px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); padding: 22px; }
.panel + .panel { margin-top: 16px; }
@media (max-width: 880px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; gap: 4px; padding: 10px 12px; }
  .side .label { display: none; }
  .side a, .side button.side-item { width: auto; white-space: nowrap; flex: none; }
}

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; padding-top: 40px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; font-size: 14px; }
.docs-nav .label { display: block; margin: 18px 0 8px; }
.docs-nav a { display: block; padding: 5px 0; color: var(--fg-muted); }
.docs-nav a:hover, .docs-nav a.active { color: var(--fg); }
.docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 13px; }
.docs-toc a { display: block; padding: 4px 0; color: var(--fg-muted); }
.docs-toc a:hover { color: var(--fg); }
@media (max-width: 1100px) { .docs { grid-template-columns: 200px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 760px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs-nav { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; } }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); }
.timeline li.crit::before { border-color: var(--sev-critical); background: var(--sev-critical); }
.timeline time { display: block; font: 12.5px/1.3 var(--font-mono); color: var(--fg-muted); margin-bottom: 4px; }
.timeline strong { font-weight: 550; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 13px; color: var(--fg-muted); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 500; color: var(--fg); margin-bottom: 14px; letter-spacing: 0; }
.footer a { display: block; padding: 4px 0; color: var(--fg-muted); }
.footer a:hover { color: var(--fg); }
.footer-bottom { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg); color: var(--fg-muted); cursor: pointer; font: 12px/1 var(--font-sans); }
.theme-toggle:hover { color: var(--fg); }
.theme-toggle svg { width: 14px; height: 14px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.kbd { font: 11px/1 var(--font-mono); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px; color: var(--fg-muted); }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--fg-faint); font-size: 12px; margin: 24px 0; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-pill); font-size: 13px; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--border); font-size: 15px; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); }
.check-list li.done::before { background: var(--fg); border-color: var(--fg); }
.check-list input[type="checkbox"] { position: absolute; left: 0; top: 13px; width: 18px; height: 18px; margin: 0; opacity: 0; cursor: pointer; }
.versions-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.version-chip { font: 500 13px/1 var(--font-mono); padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg); }
