:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #607089;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --line: #dce3ec;
  --brand: #b7192e;
  --brand-dark: #8f1021;
  --info: #155eef;
  --success: #067647;
  --warning: #b54708;
  --danger: #b42318;
  --focus: #7f56d9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.5; }
a { color: var(--info); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 2px;
}
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { background: #111827; color: #fff; padding: .8rem clamp(1rem, 4vw, 3rem); display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: .65rem; align-items: center; font-weight: 800; letter-spacing: .03em; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .55rem; background: var(--brand); }
.nav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.nav a, .nav button { color: #fff; background: transparent; border: 0; padding: .65rem .75rem; min-height: 44px; border-radius: .5rem; text-decoration: none; font: inherit; cursor: pointer; }
.nav a[aria-current="page"], .nav a:hover, .nav button:hover { background: #263244; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.narrow { width: min(680px, calc(100% - 2rem)); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 800; font-size: .78rem; }
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 72ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 8px 30px rgba(20,32,51,.06); padding: clamp(1rem, 3vw, 1.6rem); }
.stack { display: grid; gap: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.button { appearance: none; border: 1px solid transparent; border-radius: .6rem; min-height: 44px; padding: .65rem 1rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button-danger { background: var(--danger); color: #fff; }
.button[disabled] { opacity: .55; cursor: not-allowed; }
label { display: grid; gap: .35rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #98a2b3; border-radius: .55rem; padding: .65rem .75rem; font: inherit; background: #fff; color: var(--ink); }
input[type="checkbox"] { width: 1.2rem; min-height: 1.2rem; }
.field-help { color: var(--muted); font-size: .9rem; font-weight: 400; }
.status { border-left: 5px solid var(--info); padding: .9rem 1rem; border-radius: .5rem; background: #eff8ff; }
.status-success { border-color: var(--success); background: #ecfdf3; }
.status-warning { border-color: var(--warning); background: #fffaeb; }
.status-danger { border-color: var(--danger); background: #fef3f2; }
.status-muted { border-color: #667085; background: #f2f4f7; }
.status h2, .status h3 { margin-bottom: .25rem; font-size: 1rem; }
.status p { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li { border-top: 4px solid var(--line); padding-top: .5rem; color: var(--muted); font-size: .85rem; }
.steps li[aria-current="step"], .steps li[data-complete="true"] { border-color: var(--brand); color: var(--ink); font-weight: 700; }
.metric { font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; background: #101828; color: #f2f4f7; padding: .8rem; border-radius: .55rem; }
.footer { color: var(--muted); border-top: 1px solid var(--line); padding: 1rem; text-align: center; }
[data-network-state] { position: sticky; bottom: 0; background: #7a2e0e; color: white; text-align: center; padding: .65rem; z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; }
  .nav a, .nav button { flex: 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-top: 0; border-left: 4px solid var(--line); padding: .35rem .7rem; }
  table.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; }
  table.responsive tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  table.responsive td { border: 0; padding: .25rem 0; }
  table.responsive td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

