:root {
  color-scheme: dark;
  --ink: #eefaff;
  --muted: #9bb6c5;
  --ocean-950: #061821;
  --ocean-900: #092430;
  --ocean-800: #103746;
  --panel: rgba(12, 42, 54, .88);
  --line: rgba(147, 220, 238, .18);
  --cyan: #65e4f4;
  --cyan-strong: #16bfd6;
  --gold: #ffc857;
  --green: #6ee7a8;
  --red: #ff8e86;
  --purple: #c9a7ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(22, 191, 214, .2), transparent 35rem),
    linear-gradient(180deg, var(--ocean-950), #071e29 55%, #06171f);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #b8f7ff; }
button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 24, 33, .9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
}
.brand span { color: var(--cyan); }

.top-actions { display: flex; align-items: center; gap: 10px; }
.version { color: var(--muted); font-size: .82rem; }
.share-button, .reset-button {
  border: 1px solid rgba(101, 228, 244, .34);
  border-radius: 999px;
  background: rgba(101, 228, 244, .1);
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 750;
}
.share-button:hover, .reset-button:hover { background: rgba(101, 228, 244, .18); }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0 72px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
}
.sidebar-label {
  margin: 12px 12px 3px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sidebar a {
  display: block;
  color: #c9dce5;
  text-decoration: none;
  border-radius: 12px;
  padding: 9px 12px;
}
.sidebar a:hover, .sidebar a[aria-current="page"] {
  color: white;
  background: rgba(101, 228, 244, .1);
}

main { min-width: 0; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.17; letter-spacing: -.025em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.4rem); }
h2 { margin: 52px 0 16px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { margin: 30px 0 8px; font-size: 1.18rem; }
.lede { max-width: 760px; margin: 16px 0 0; color: #c7dbe4; font-size: 1.08rem; }
.meta { margin: 16px 0 0; color: var(--muted); font-size: .88rem; }

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(16, 55, 70, .93), rgba(7, 29, 39, .96));
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -115px;
  width: 330px;
  height: 230px;
  border: 2px solid rgba(101, 228, 244, .18);
  border-radius: 50%;
  box-shadow: 0 -28px 0 rgba(101, 228, 244, .05), 0 -56px 0 rgba(101, 228, 244, .035);
  transform: rotate(-8deg);
  pointer-events: none;
}

.alert {
  margin: 24px 0;
  border: 1px solid rgba(255, 200, 87, .34);
  border-radius: var(--radius);
  background: rgba(255, 200, 87, .085);
  padding: 18px 20px;
}
.alert strong { color: #ffe2a3; }

.brief {
  margin-top: 24px;
  border-left: 4px solid var(--cyan-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(16, 55, 70, .62);
  padding: 20px 22px;
}
.brief h2 { margin: 0 0 10px; font-size: 1.25rem; }
.brief p:last-child, .brief ul:last-child { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover .card { border-color: rgba(101, 228, 244, .52); transform: translateY(-2px); }
.card-link .card { height: 100%; transition: .18s ease; }
.kicker { color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #d7e8ef;
  background: rgba(255,255,255,.035);
  font-size: .8rem;
  font-weight: 750;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.badge.confirmed::before { background: var(--green); }
.badge.field::before { background: var(--gold); }
.badge.verify::before { background: var(--purple); }

.callout {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 31, 42, .74);
  padding: 18px 20px;
}
.callout-title { display: block; margin-bottom: 5px; color: var(--cyan); font-weight: 850; }
.callout.warning { border-color: rgba(255, 142, 134, .32); }
.callout.warning .callout-title { color: var(--red); }

ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .38rem; }
.tight li + li { margin-top: .16rem; }

.start-here { border-color: rgba(101, 228, 244, .48); }
.big-steps li { margin-bottom: .8rem; }
.button-link {
  display: inline-block;
  border-radius: 12px;
  background: var(--cyan-strong);
  color: #03151c;
  padding: 11px 15px;
  font-weight: 850;
  text-decoration: none;
}
.advanced {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 31, 42, .65);
  padding: 16px 18px;
}
.advanced summary { color: #dffaff; font-weight: 850; cursor: pointer; }
.advanced[open] summary { margin-bottom: 14px; }

.dictionary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.term { border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 37, 49, .72); padding: 16px 18px; }
.term h2 { margin: 0 0 6px; color: var(--cyan); font-size: 1.08rem; }
.term p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: rgba(8, 31, 42, .7); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #dffaff; background: rgba(101, 228, 244, .08); font-size: .83rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--muted); }

.checklist { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.check-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 37, 49, .72);
  padding: 14px 16px;
}
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan-strong); }
.check-item:has(input:checked) { opacity: .62; }
.check-item:has(input:checked) span { text-decoration: line-through; }
.check-item small { display: block; color: var(--muted); margin-top: 2px; }

.template {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #04131a;
  color: #d8f6ff;
  padding: 18px;
  white-space: pre-wrap;
  font: .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 52px; }
.page-nav a { border: 1px solid var(--line); border-radius: 14px; padding: 15px; text-decoration: none; background: rgba(10, 37, 49, .68); }
.page-nav a:last-child { text-align: right; }

footer { border-top: 1px solid var(--line); color: var(--muted); padding: 24px 0; font-size: .85rem; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .sidebar { position: static; display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 10px; }
  .sidebar-label { display: none; }
  .sidebar a { white-space: nowrap; border: 1px solid var(--line); }
  .card-grid { grid-template-columns: 1fr; }
  .dictionary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar-inner, .shell, .footer-inner { width: min(100% - 22px, 1180px); }
  .version { display: none; }
  .share-button { padding: 7px 11px; }
  .hero { border-radius: 20px; padding: 25px 20px; }
  h1 { font-size: 2.35rem; }
  h2 { margin-top: 42px; }
  .page-nav { grid-template-columns: 1fr; }
  .page-nav a:last-child { text-align: left; }
}

@media print {
  .topbar, .sidebar, .share-button, .reset-button, footer { display: none !important; }
  body { color: #111; background: white; }
  .shell { display: block; width: 100%; padding: 0; }
  .hero, .card, .brief, .callout, .check-item, table { color: #111; background: white; box-shadow: none; }
  a { color: #111; }
}
