:root {
  /* Minimal black/white defaults (accent used sparingly for icons) */
  --bg: #000000;
  --bg2: #000000;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.5);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shot-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
  --shot-shadow-hover: 0 34px 110px rgba(0, 0, 0, 0.68);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1280px;
  --accent: #0ea5e9;
  --accent2: #38bdf8;
  --success: #e5e7eb;
  --danger: #fb7185;
  --nav-bg: rgba(0, 0, 0, 0.72);
  --menu-bg: rgba(0, 0, 0, 0.92);
  --menu-hover: rgba(255, 255, 255, 0.06);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  --sans: "IBM Plex Sans", "IBM Plex Sans Text", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (min-width: 1600px) {
  :root {
    --max: 1400px;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg2: #ffffff;
    --panel: rgba(0, 0, 0, 0.04);
    --panel2: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.07);
    --text: rgba(0, 0, 0, 0.86);
    --muted: rgba(0, 0, 0, 0.62);
    --faint: rgba(0, 0, 0, 0.46);
    --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
    --shot-shadow: 0 20px 55px rgba(2, 6, 23, 0.18);
    --shot-shadow-hover: 0 26px 75px rgba(2, 6, 23, 0.22);
    --accent: #0284c7;
    --accent2: #0ea5e9;
    --success: #111827;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --menu-bg: rgba(255, 255, 255, 0.96);
    --menu-hover: rgba(0, 0, 0, 0.04);
  }
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg2: #000000;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.5);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shot-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
  --shot-shadow-hover: 0 34px 110px rgba(0, 0, 0, 0.68);
  --accent: #0ea5e9;
  --accent2: #38bdf8;
  --success: #e5e7eb;
  --nav-bg: rgba(0, 0, 0, 0.72);
  --menu-bg: rgba(0, 0, 0, 0.92);
  --menu-hover: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #ffffff;
  --panel: rgba(0, 0, 0, 0.04);
  --panel2: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.07);
  --text: rgba(0, 0, 0, 0.86);
  --muted: rgba(0, 0, 0, 0.62);
  --faint: rgba(0, 0, 0, 0.46);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  --shot-shadow: 0 20px 55px rgba(2, 6, 23, 0.18);
  --shot-shadow-hover: 0 26px 75px rgba(2, 6, 23, 0.22);
  --accent: #0284c7;
  --accent2: #0ea5e9;
  --success: #111827;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --menu-bg: rgba(255, 255, 255, 0.96);
  --menu-hover: rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  /* Minimal OLED-style background (keep it subtle; avoid loud gradients) */
  background-color: var(--bg2);
  background-image:
    radial-gradient(1200px 700px at 50% -25%, rgba(255, 255, 255, 0.03), transparent 62%),
    radial-gradient(1000px 650px at 50% 125%, rgba(255, 255, 255, 0.018), transparent 60%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hicon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  fill: currentColor;
  flex: 0 0 auto;
}

.hicon.success {
  color: var(--accent);
}

.hicon.purple {
  color: var(--accent);
}

.hicon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  fill: currentColor;
  flex: 0 0 auto;
}

.btn-icon {
  padding: 10px 10px;
  min-width: 40px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel2);
  object-fit: cover;
}

.brand b {
  font-weight: 740;
  letter-spacing: -0.02em;
  font-size: 17pt;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, background 120ms ease;
}

.mobile-menu summary:hover {
  transform: translateY(-1px);
  background: var(--panel);
}

.mobile-menu[open] summary {
  background: var(--panel);
}

.mobile-menu .panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--border);
  background: var(--menu-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 60;
}

.mobile-menu .panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

.mobile-menu .panel a:first-child {
  border-top: none;
}

.mobile-menu .panel a .hint {
  color: var(--muted);
  font-size: 12px;
}

.mobile-menu .panel a:hover {
  background: var(--menu-hover);
}

.mobile-menu .panel a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 10%, var(--panel2));
  font-weight: 750;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--panel);
  color: color-mix(in srgb, var(--text) 76%, transparent);
  font-weight: 650;
  font-size: 14px;
  line-height: 1;
  transition: transform 120ms ease, background 120ms ease;
}
.pill:hover {
  background: color-mix(in srgb, var(--panel) 75%, var(--panel2));
  transform: translateY(-1px);
  color: var(--text);
}
.pill[aria-current="page"] {
  border-color: transparent;
  background: color-mix(in srgb, var(--text) 10%, var(--panel));
  color: var(--text);
  font-weight: 750;
}

.actions {
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--panel) 75%, var(--panel2));
}

.btn-primary {
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: color-mix(in srgb, var(--bg2) 96%, transparent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--text) 96%, transparent);
}

.btn-success {
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: color-mix(in srgb, var(--bg2) 96%, transparent);
}

.btn-success:hover {
  background: color-mix(in srgb, var(--text) 96%, transparent);
}

.btn-lg {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
}

.btn-ghost {
  color: var(--muted);
  border-color: transparent;
  background: var(--panel2);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--panel);
  color: var(--text);
}

.btn-cta {
  display: inline;
}

.hero {
  padding: 46px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.hero-grid-single {
  grid-template-columns: 1fr;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero p {
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 17px;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad {
  padding: 18px 18px 16px;
}

.meta {
  display: grid;
  gap: 12px;
}

.meta .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.k {
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.v {
  font-size: 13px;
  color: var(--text);
  text-align: right;
  font-weight: 600;
}

.section {
  padding: 26px 0;
}

.section[id] {
  scroll-margin-top: 96px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.section p.lead {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.feature b {
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 74%, transparent);
  line-height: 1.65;
  font-size: 15px;
}

.code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  overflow: auto;
  position: relative;
}

pre.code[data-has-copy="1"] {
  padding-top: 44px;
}

@media (prefers-color-scheme: light) {
  .code {
    background: rgba(0, 0, 0, 0.04);
  }
  .copy-btn {
    background: rgba(255, 255, 255, 0.65);
  }
  .fab-top {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.12);
  }

  .btn {
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  }
}

html[data-theme="light"] .code {
  background: rgba(0, 0, 0, 0.04);
}

.code code {
  font-family: var(--mono);
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
}

.copy-btn[data-state="ok"] {
  border-color: rgba(34, 197, 94, 0.35);
  color: rgba(34, 197, 94, 0.95);
}

.copy-btn[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.45);
  color: rgba(251, 113, 133, 0.95);
}

.fab-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.fab-top:hover {
  background: rgba(0, 0, 0, 0.75);
}

.fab-top[data-show="1"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--bg2);
  box-shadow: var(--shot-shadow);
  transform: translateZ(0);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

figure:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shot-shadow-hover);
}

figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
}

.note {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel2), rgba(255, 255, 255, 0.015));
  border-radius: var(--radius);
  padding: 14px 14px;
  color: var(--muted);
}

.note.note-discord {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  color: color-mix(in srgb, var(--text) 82%, transparent);
  padding: 18px 18px;
}

.note.note-discord .note-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.note.note-discord .note-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.note.note-discord .note-icon svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.92);
}

.note.note-discord .note-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.note.note-discord .note-body {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.note.note-discord a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.note.note-discord a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.note.note-discord .note-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.note.note-discord .btn-discord {
  background: var(--panel);
  border-color: transparent;
  color: var(--text);
}

.note.note-discord .btn-discord:hover {
  background: color-mix(in srgb, var(--panel) 75%, var(--panel2));
}

.footer {
  padding: 26px 0 44px;
  color: var(--faint);
  border-top: 1px solid var(--border);
  margin-top: 26px;
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  font-size: 13px;
}
.footer a:hover {
  color: var(--text);
}

.site-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(var(--max), calc(100vw - 32px));
  z-index: 80;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg2) 78%, transparent);
  backdrop-filter: blur(14px);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.site-notice .inner {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-notice p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 13px;
  line-height: 1.5;
  max-width: 78ch;
}

.site-notice a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 26%, transparent);
  text-underline-offset: 3px;
}

.site-notice a:hover {
  text-decoration-color: color-mix(in srgb, var(--text) 55%, transparent);
}

.site-notice .actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-notice .btn {
  box-shadow: none;
}

@media print {
  .site-notice {
    display: none;
  }
}

/* Docs extras */
.doc-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.toc .feature {
  padding: 12px 12px;
}

.toc-search {
  width: 100%;
  margin: 10px 0 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
}

.toc-search::placeholder {
  color: var(--faint);
}

.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
}

.toc a.active {
  background: var(--panel2);
  border-color: var(--border);
  color: var(--text);
}

.toc a:hover {
  background: var(--panel2);
  border-color: var(--border);
  color: var(--text);
}

.prose p {
  color: color-mix(in srgb, var(--text) 76%, transparent);
  line-height: 1.75;
  margin: 10px 0;
  font-size: 15px;
}

.prose ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: color-mix(in srgb, var(--text) 74%, transparent);
  line-height: 1.75;
}

.prose li {
  margin: 6px 0;
  font-size: 15px;
}

.table-wrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.6;
}

.table th {
  border-top: none;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
}

.table td:first-child {
  width: 220px;
  color: var(--text);
}

.feature .title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.title-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.title-sub {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.tag.success {
  border-color: transparent;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
  opacity: 0.9;
}

.badge.todo .badge-dot {
  background: var(--faint);
}

.badge.now .badge-dot {
  background: var(--text);
}

.badge.later .badge-dot {
  background: var(--faint);
}

.badge.shipped {
  border-color: transparent;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}

.badge.shipped .badge-dot {
  background: var(--text);
}

/* Roadmap page: keep classic status colors (green shipped, etc.) */
body[data-page="roadmap"] .badge.todo {
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.12);
  color: rgba(14, 165, 233, 0.95);
}

body[data-page="roadmap"] .badge.todo .badge-dot {
  background: #0ea5e9;
}

body[data-page="roadmap"] .badge.now {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(245, 158, 11, 0.95);
}

body[data-page="roadmap"] .badge.now .badge-dot {
  background: #f59e0b;
}

body[data-page="roadmap"] .badge.later {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(203, 213, 225, 0.9);
}

body[data-page="roadmap"] .badge.later .badge-dot {
  background: rgba(148, 163, 184, 0.8);
}

body[data-page="roadmap"] .badge.shipped {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
}

body[data-page="roadmap"] .badge.shipped .badge-dot {
  background: #22c55e;
}

body[data-page="roadmap"] .tag.success {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
}

.lane {
  display: grid;
  gap: 10px;
}

.lane .feature {
  padding: 14px;
}

.lane .feature .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

.kbd {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
}

@media (max-width: 1120px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .actions,
  .brand {
    min-width: auto;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
  .table {
    min-width: 560px;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .prose p,
  .prose li {
    font-size: 16px;
  }

  .hero p {
    font-size: 16px;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .btn-icon {
    padding: 9px 9px;
    min-width: 38px;
  }

  .actions .btn-label,
  .actions .kbd {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .shots {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: inline-block;
  }
}
