:root {
  --ink: #0e1116;
  --ink-2: #3b4350;
  --muted: #6b7380;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --ok: #0f7b45;
  --ok-bg: #e6f5ec;
  --error: #b42318;
  --radius: 10px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f5; --ink-2: #c3c9d3; --muted: #8d95a3; --line: #2a303a;
    --bg: #0d1015; --bg-2: #151a21; --accent: #6b93ff; --accent-ink: #0d1015;
    --ok: #4ccf8a; --ok-bg: #12301f; --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.55; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: Newsreader, Georgia, serif; font-weight: 600; font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small, .small-print { font-size: .875rem; }
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a:not(.btn) { color: var(--ink-2); font-weight: 500; }
.brand { font-family: Newsreader, Georgia, serif; font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 54px; width: auto; }
.foot .brand img { height: 56px; }
@media (prefers-color-scheme: dark) { .brand img { background: #fff; border-radius: 10px; padding: 4px 10px; box-sizing: content-box; } }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 6px 12px; font-size: .875rem; }
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero.slim { padding: 48px 0 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.eyebrow a { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; margin: 24px 0 12px; flex-wrap: wrap; }
.section { padding: 48px 24px; }
.section > h2:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid.three p { color: var(--ink-2); margin: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; background: var(--bg); }
.card p { color: var(--ink-2); margin: 0 0 12px; }
.card.dashed { border-style: dashed; background: var(--bg-2); }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card-actions { margin-top: auto; display: flex; gap: 10px; padding-top: 6px; }
.pill { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.pill.live { color: var(--ok); background: var(--ok-bg); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.two-col > div > h2:first-child { margin-top: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-2); position: sticky; top: 88px; }
.ticks { padding-left: 1.1em; }
.ticks li { margin-bottom: .5em; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .4em; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tfoot td { font-weight: 600; border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 32px; padding-bottom: 64px; }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.toc a { color: var(--ink-2); }
.doc { min-width: 0; }
.doc h2:first-child { margin-top: 0; }
.doc h2 { scroll-margin-top: 88px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form button { align-self: start; }
.error { color: var(--error); font-weight: 500; font-size: .875rem; }
.alert { border: 1px solid var(--error); color: var(--error); border-radius: 8px; padding: 10px 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.prose h2 { font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-2); }
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; margin-top: 48px; }
.foot-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; max-width: 520px; }
.foot nav a { color: var(--ink-2); }
.small-print { margin-top: 20px; }
@media (max-width: 860px) {
  .two-col, .docs { grid-template-columns: 1fr; }
  .toc, .panel { position: static; }
  .toc { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 40px; }
}

.grid.three-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.card h4 { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card ul { margin: 0 0 8px; padding-left: 1.1em; color: var(--ink-2); }
.card li { margin-bottom: .35em; }
.prose h2 { margin-top: 1.8em; }
.prose table { margin: 12px 0; }

.dash-panel { align-items: stretch; }
.dash-panel h4 { margin: 14px 0 4px; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.dash-body { overflow-x: auto; font-size: .9rem; }
