:root {
  --bg: #f5efe3;
  --bg-soft: #eee5d6;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-soft: #f8f3e9;
  --surface-code: #111827;
  --ink: #17213a;
  --ink-soft: #33405a;
  --muted: #66728b;
  --faint: #8c97ab;
  --line: #ddd5c8;
  --line-strong: #c7beaf;
  --brand: #315cf4;
  --brand-strong: #1839b3;
  --brand-soft: #e7edff;
  --teal: #08745e;
  --teal-soft: #e3f7ef;
  --coral: #db5e47;
  --coral-soft: #fff0eb;
  --amber: #9b6200;
  --amber-soft: #fff1cf;
  --danger: #b62d3d;
  --danger-soft: #ffeaed;
  --shadow-sm: 0 1px 2px rgb(21 32 57 / 7%), 0 8px 24px rgb(21 32 57 / 5%);
  --shadow-lg: 0 24px 70px rgb(21 32 57 / 15%);
  --radius-sm: 9px;
  --radius: 15px;
  --radius-lg: 24px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="blue"] {
  --bg: #eaf1ff;
  --bg-soft: #dce8ff;
  --surface: #f9fbff;
  --surface-raised: #ffffff;
  --surface-soft: #eff4ff;
  --surface-code: #0e1c42;
  --ink: #10204a;
  --ink-soft: #293b67;
  --muted: #617198;
  --faint: #8695b8;
  --line: #cfdbf2;
  --line-strong: #b4c5e7;
  --brand: #2459e0;
  --brand-strong: #123ca9;
  --brand-soft: #dce7ff;
  --teal: #087663;
  --teal-soft: #ddf8ee;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #090e19;
  --bg-soft: #0d1423;
  --surface: #111827;
  --surface-raised: #151e30;
  --surface-soft: #182236;
  --surface-code: #060a12;
  --ink: #eef2ff;
  --ink-soft: #d5dcef;
  --muted: #a6b1c9;
  --faint: #7f8ba3;
  --line: #2b364b;
  --line-strong: #3c4962;
  --brand: #819cff;
  --brand-strong: #a5b8ff;
  --brand-soft: #1d2b56;
  --teal: #71d7b8;
  --teal-soft: #12372f;
  --coral: #ff8b73;
  --coral-soft: #44241f;
  --amber: #ffd27b;
  --amber-soft: #3b301b;
  --danger: #ff8b9c;
  --danger-soft: #412028;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 20%), 0 10px 30px rgb(0 0 0 / 18%);
  --shadow-lg: 0 30px 90px rgb(0 0 0 / 45%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 24rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

code,
kbd,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.shell {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #111827;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 60%, #fff);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 7px 20px rgb(49 92 244 / 18%);
}

.brand strong {
  font-weight: 800;
}

.primary-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.theme-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.theme-choice {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 9px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.theme-choice[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.theme-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 50%;
}

.theme-dot-warm {
  background: #f3e8d3;
}

.theme-dot-blue {
  background: #3970f3;
}

.theme-dot-dark {
  background: #111827;
}

.hero {
  display: grid;
  padding-block: 46px 26px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 36px;
}

.hero-copy {
  max-width: 870px;
}

.eyebrow {
  display: flex;
  margin-bottom: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

.eyebrow span,
.eyebrow-text,
.detail-eyebrow {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface));
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 5vw, 67px);
  font-weight: 850;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-lede code {
  padding: 2px 6px;
  color: var(--brand-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.85em;
}

.hero-proof {
  display: flex;
  padding: 16px 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: var(--radius);
  background: var(--teal-soft);
}

.hero-proof p {
  margin: 0;
  color: color-mix(in srgb, var(--teal) 72%, var(--ink));
  font-size: 14px;
}

.proof-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--surface);
  border-radius: 50%;
  background: var(--teal);
  font-weight: 900;
}

.viewer-section {
  scroll-margin-top: 84px;
}

.viewer-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.input-toolbar {
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.input-actions {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(126px, 1fr));
  gap: 6px;
}

.toolbar-action {
  display: grid;
  min-height: 58px;
  padding: 7px 11px;
  align-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  text-align: left;
}

.toolbar-action > span {
  display: grid;
  width: 31px;
  height: 31px;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--brand-strong);
  border-radius: 9px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.toolbar-action strong {
  align-self: end;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}

.toolbar-action small {
  align-self: start;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.3;
}

.toolbar-action:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.toolbar-primary {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
}

.document-pills {
  display: flex;
  max-width: 540px;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.document-pills > span {
  max-width: 230px;
  overflow: hidden;
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-pills > span:first-child {
  color: var(--ink);
}

.document-pills .privacy-pill {
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 25%, var(--line));
  background: var(--teal-soft);
}

.share-button {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 10px;
  align-items: center;
  gap: 6px;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 800;
}

.workspace-tabs {
  display: flex;
  min-height: 48px;
  padding-inline: 12px;
  overflow-x: auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  scrollbar-width: none;
}

.workspace-tabs::-webkit-scrollbar {
  display: none;
}

.workspace-tabs button {
  position: relative;
  min-height: 47px;
  padding: 0 14px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.workspace-tabs button::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.workspace-tabs button:hover,
.workspace-tabs button.is-active {
  color: var(--ink);
}

.workspace-tabs button.is-active::after {
  background: var(--brand);
}

.workspace {
  display: grid;
  min-height: 710px;
  max-height: 760px;
  grid-template-columns: 310px minmax(0, 1fr);
}

.workspace-sidebar {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.workspace-sidebar > label {
  padding: 15px 15px 7px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-control {
  position: relative;
  display: flex;
  margin: 0 11px 10px;
  align-items: center;
}

.search-control > span {
  position: absolute;
  left: 12px;
  color: var(--faint);
  font-size: 18px;
  pointer-events: none;
}

.search-control input {
  width: 100%;
  min-height: 42px;
  padding: 8px 48px 8px 36px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface);
  font-size: 12px;
}

.search-control input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.search-control kbd {
  position: absolute;
  right: 9px;
  padding: 2px 5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 9px;
}

.nav-list {
  min-height: 0;
  padding: 2px 10px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-group {
  margin-bottom: 15px;
}

.nav-group h3 {
  display: flex;
  margin: 0;
  padding: 8px 8px 6px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.nav-group h3 span {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface);
}

.nav-item {
  display: grid;
  width: 100%;
  min-height: 49px;
  margin: 2px 0;
  padding: 7px 8px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  grid-template-columns: auto minmax(0, 1fr);
  text-align: left;
}

.nav-item:hover {
  border-color: var(--line);
  background: var(--surface);
}

.nav-item.is-active {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: var(--brand-soft);
}

.nav-item > span:last-child {
  min-width: 0;
}

.nav-item strong,
.nav-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.nav-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.nav-empty {
  display: flex;
  min-height: 170px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.nav-empty strong {
  color: var(--ink);
}

.nav-empty span {
  margin-top: 6px;
  font-size: 12px;
}

.nav-empty-good strong {
  color: var(--teal);
}

.method-badge {
  display: inline-flex;
  min-width: 43px;
  min-height: 21px;
  padding: 2px 6px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.method-badge span {
  opacity: 0.72;
}

.method-get,
.method-head {
  color: #0875a8;
  background: #e7f6fd;
}

.method-post {
  color: #08745e;
  background: #e3f7ef;
}

.method-put,
.method-patch {
  color: #875600;
  background: #fff0cf;
}

.method-delete {
  color: #b62d3d;
  background: #ffeaed;
}

.method-options,
.method-trace,
.method-query {
  color: #6d45b3;
  background: #f1eaff;
}

:root[data-theme="dark"] .method-get,
:root[data-theme="dark"] .method-head {
  color: #74d0ff;
  background: #153345;
}

:root[data-theme="dark"] .method-post {
  color: #75dfbf;
  background: #12372f;
}

:root[data-theme="dark"] .method-put,
:root[data-theme="dark"] .method-patch {
  color: #ffd27b;
  background: #3b301b;
}

:root[data-theme="dark"] .method-delete {
  color: #ff91a2;
  background: #412028;
}

:root[data-theme="dark"] .method-options,
:root[data-theme="dark"] .method-trace,
:root[data-theme="dark"] .method-query {
  color: #c5a9ff;
  background: #30234b;
}

.schema-glyph {
  display: inline-grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 8px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.severity-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.severity-error {
  color: var(--danger);
}

.severity-warning {
  color: var(--amber);
}

.severity-info {
  color: var(--brand-strong);
}

.detail-panel {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  scrollbar-gutter: stable;
}

.detail-view {
  width: min(100%, 1050px);
  padding: 34px clamp(22px, 4vw, 50px) 70px;
  margin-inline: auto;
}

.api-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.api-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 820;
}

.api-heading h3 {
  margin-bottom: 11px;
  font-size: 18px;
}

.detail-eyebrow {
  margin-bottom: 7px;
}

.heading-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.heading-badges span,
.constraint-list span,
.inline-schema-head > span {
  display: inline-flex;
  padding: 3px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.button {
  display: inline-flex;
  min-height: 39px;
  padding: 8px 13px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--brand) 22%, transparent);
}

:root[data-theme="dark"] .button-primary {
  color: #0b1222;
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-raised);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.text-button {
  padding: 4px 0;
  color: var(--brand-strong);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.api-description {
  max-width: 820px;
  margin: 20px 0 27px;
  color: var(--ink-soft);
  font-size: 15px;
}

.stat-grid {
  display: grid;
  margin: 4px 0 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  display: flex;
  min-height: 114px;
  padding: 16px;
  align-items: flex-start;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  text-align: left;
}

button.stat-card:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-1px);
}

.stat-card > span {
  color: var(--brand-strong);
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.stat-card strong {
  margin-top: 3px;
  font-size: 12px;
}

.stat-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.detail-section {
  padding-top: 27px;
  margin-top: 27px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  margin-bottom: 13px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading .detail-eyebrow {
  margin-bottom: 5px;
}

.method-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.method-summary .method-badge {
  min-height: 29px;
  padding: 5px 9px;
  font-size: 10px;
}

.server-list {
  display: grid;
  gap: 7px;
}

.server-row {
  display: grid;
  min-height: 45px;
  padding: 9px 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.server-index {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--brand-strong);
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 800;
}

.server-row code {
  color: var(--ink);
  font-size: 11px;
}

.server-row > span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.empty-inline {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
}

.operation-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}

.operation-row {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  grid-template-columns: auto minmax(130px, 1.1fr) minmax(160px, 1fr) auto;
  text-align: left;
}

.operation-row:last-child {
  border-bottom: 0;
}

.operation-row:hover {
  background: var(--surface-soft);
}

.operation-row code {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-row > span:nth-last-child(2) {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-row > span strong,
.operation-row > span small {
  display: block;
}

.operation-row > span strong {
  color: var(--ink);
}

.operation-row > span small {
  margin-top: 2px;
}

.row-arrow {
  color: var(--faint);
}

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

.schema-card {
  display: grid;
  min-height: 128px;
  padding: 14px;
  align-content: start;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  text-align: left;
}

.schema-card:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--surface));
}

.schema-card .schema-glyph {
  grid-row: 1 / 3;
}

.schema-card strong {
  align-self: end;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schema-card small {
  align-self: start;
  color: var(--brand-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.schema-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  grid-column: 1 / 3;
}

.operation-title,
.schema-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.operation-title h2,
.schema-title h2 {
  margin: 0;
}

.operation-title .method-badge {
  min-width: 58px;
  min-height: 30px;
  font-size: 11px;
}

.operation-heading h3 {
  margin: 13px 0 10px;
  color: var(--ink-soft);
  font-weight: 650;
}

.deprecated-badge {
  color: var(--danger) !important;
  border-color: color-mix(in srgb, var(--danger) 25%, var(--line)) !important;
  background: var(--danger-soft) !important;
  text-decoration: none;
}

.parameter-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.parameter-row {
  display: grid;
  min-height: 48px;
  padding: 9px 11px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(110px, 0.8fr) minmax(70px, 0.5fr) minmax(120px, 0.8fr) minmax(180px, 2fr);
}

.parameter-row:last-child {
  border-bottom: 0;
}

.parameter-row > span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.parameter-row code {
  color: var(--ink);
  font-size: 10px;
}

.parameter-row b {
  display: inline-flex;
  padding: 2px 5px;
  margin-left: 5px;
  color: var(--coral);
  border-radius: 999px;
  background: var(--coral-soft);
  font-size: 8px;
  text-transform: uppercase;
}

.parameter-header {
  min-height: 36px;
  color: var(--faint);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.body-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.body-card > div:first-child {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  gap: 8px;
}

.body-card > div:first-child span {
  color: var(--brand-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.body-card > div:first-child b {
  padding: 2px 6px;
  color: var(--coral);
  border-radius: 999px;
  background: var(--coral-soft);
  font-size: 8px;
  text-transform: uppercase;
}

.body-card > p {
  color: var(--muted);
  font-size: 11px;
}

.inline-schema {
  min-width: 0;
}

.inline-schema-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.inline-schema-head > code {
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 800;
}

.inline-schema > p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 10px;
}

.inline-child,
.composition-preview {
  padding: 8px 0 0 10px;
  margin-top: 7px;
  border-left: 2px solid color-mix(in srgb, var(--brand) 28%, var(--line));
}

.inline-child > strong,
.composition-preview > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 9px;
  text-transform: uppercase;
}

.property-preview {
  display: grid;
  margin-top: 9px;
  gap: 5px;
}

.property-preview > div {
  display: grid;
  padding: 7px 9px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
}

.property-preview > div > span {
  min-width: 0;
}

.property-preview code {
  color: var(--ink);
  font-size: 10px;
}

.property-preview b {
  padding: 2px 4px;
  margin-left: 5px;
  color: var(--coral);
  border-radius: 4px;
  background: var(--coral-soft);
  font-size: 7px;
  text-transform: uppercase;
}

.ref-button {
  display: inline-flex;
  min-height: 26px;
  padding: 3px 8px;
  align-items: center;
  gap: 5px;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 7px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
}

.ref-button:hover {
  border-color: var(--brand);
}

.ref-cycle {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
  background: var(--amber-soft);
}

.external-ref {
  color: var(--muted);
  font-size: 10px;
}

.schema-limit {
  display: inline-block;
  padding: 5px 8px;
  color: var(--muted);
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 9px;
}

.response-list {
  display: grid;
  gap: 7px;
}

.response-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-raised);
}

.response-card summary {
  display: grid;
  min-height: 48px;
  padding: 9px 12px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
}

.response-card summary::-webkit-details-marker {
  display: none;
}

.response-card summary strong {
  font-size: 11px;
}

.response-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.response-card[open] summary > span:last-child {
  transform: rotate(180deg);
}

.status-code {
  display: inline-grid;
  min-width: 40px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.status-2,
.status-3 {
  color: var(--teal);
  background: var(--teal-soft);
}

.status-4,
.status-5 {
  color: var(--danger);
  background: var(--danger-soft);
}

.response-body {
  padding: 13px;
}

.media-types {
  margin-bottom: 9px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.detail-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.security-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.security-chip {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 9px;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.security-chip span {
  color: var(--coral);
}

.security-open {
  color: var(--teal);
  background: var(--teal-soft);
}

.pointer-button {
  display: flex;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: left;
}

.pointer-button code {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pointer-button span {
  color: var(--brand-strong);
  font-size: 9px;
  font-weight: 800;
}

.schema-title .schema-glyph {
  width: 41px;
  height: 41px;
  font-size: 12px;
}

.outbound-strip {
  display: flex;
  padding: 10px 12px;
  margin: 19px 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.outbound-strip > strong {
  margin-right: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.schema-tree-level {
  min-width: 0;
}

.schema-description,
.property-detail > p {
  color: var(--muted);
  font-size: 11px;
}

.constraint-list {
  display: flex;
  margin: 7px 0;
  flex-wrap: wrap;
  gap: 5px;
}

.composition-block,
.array-items {
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.composition-block > h4,
.array-items > h4 {
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 11px;
}

.composition-block > h4 span {
  color: var(--faint);
  font-weight: 600;
}

.composition-part {
  display: grid;
  padding: 8px;
  margin: 5px 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  grid-template-columns: auto minmax(0, 1fr);
}

.part-index {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--brand-strong);
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 800;
}

.schema-properties {
  display: grid;
  gap: 6px;
}

.schema-property {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
}

.schema-property summary {
  display: flex;
  min-height: 44px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.schema-property summary::-webkit-details-marker {
  display: none;
}

.schema-property[open] > summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.schema-property summary > code {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.property-type {
  color: var(--brand-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.schema-property summary b {
  padding: 2px 5px;
  color: var(--coral);
  border-radius: 999px;
  background: var(--coral-soft);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-chevron {
  margin-left: auto;
  color: var(--faint);
}

.schema-property[open] > summary .summary-chevron {
  transform: rotate(180deg);
}

.property-detail {
  padding: 11px;
  background: var(--surface);
}

.property-detail > .schema-tree-level > .schema-properties {
  padding-left: 12px;
  margin-top: 10px;
  border-left: 2px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}

.source-block {
  max-height: 430px;
  padding: 17px;
  overflow: auto;
  color: #d9e5ff;
  border: 1px solid #26334c;
  border-radius: 11px;
  background: var(--surface-code);
  font-size: 10px;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

.full-source {
  max-height: none;
}

.backlink-list {
  display: grid;
  gap: 6px;
}

.backlink {
  display: grid;
  min-height: 41px;
  padding: 7px 10px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  grid-template-columns: auto auto minmax(0, 1fr);
  text-align: left;
}

.backlink:hover {
  border-color: var(--brand);
}

.backlink code {
  font-size: 9px;
  font-weight: 700;
}

.backlink > span:last-child {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-view .api-heading {
  margin-bottom: 20px;
}

.operation-index .operation-row {
  min-height: 56px;
}

.empty-detail {
  display: flex;
  min-height: 580px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.empty-detail h2 {
  margin: 18px 0 6px;
  color: var(--ink);
}

.empty-detail p {
  max-width: 480px;
}

.empty-illustration {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 25px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 21px;
  font-weight: 850;
}

.map-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.map-canvas {
  margin-top: 25px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 22px 22px;
}

.dependency-svg {
  min-width: 720px;
}

.dependency-edge {
  fill: none;
  stroke: color-mix(in srgb, var(--brand) 42%, var(--line-strong));
  stroke-width: 1.7;
}

.dependency-svg marker path {
  fill: var(--brand);
}

.dependency-node {
  cursor: pointer;
}

.dependency-node rect {
  fill: var(--surface-raised);
  stroke: var(--line-strong);
  stroke-width: 1.4;
}

.dependency-node:hover rect,
.dependency-node:focus rect {
  fill: var(--brand-soft);
  stroke: var(--brand);
  stroke-width: 2;
}

.dependency-node text {
  fill: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.dependency-node .node-type {
  fill: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.map-limit {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.edge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.edge-list > div {
  display: grid;
  min-height: 39px;
  padding: 6px 9px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.edge-list button {
  overflow: hidden;
  padding: 0;
  color: var(--brand-strong);
  border: 0;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-list span {
  color: var(--faint);
}

.diagnostic-summary {
  display: flex;
  margin: 22px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnostic-summary span {
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 10px;
}

.diagnostic-focus {
  display: grid;
  padding: 18px;
  align-items: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  grid-template-columns: auto minmax(0, 1fr);
}

.diagnostic-focus h3 {
  margin-bottom: 6px;
}

.diagnostic-focus p {
  color: var(--muted);
  font-size: 12px;
}

.severity-panel-error {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: var(--danger-soft);
}

.severity-panel-warning {
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
  background: var(--amber-soft);
}

.severity-panel-info {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: var(--brand-soft);
}

.diagnostic-clean {
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  background: var(--teal-soft);
}

.diagnostic-list {
  display: grid;
  margin-top: 20px;
  gap: 7px;
}

.diagnostic-card {
  display: grid;
  min-height: 62px;
  padding: 10px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  grid-template-columns: auto minmax(0, 1fr) minmax(100px, 0.7fr);
  text-align: left;
}

.diagnostic-card:hover {
  border-color: var(--brand);
}

.diagnostic-card strong,
.diagnostic-card small {
  display: block;
}

.diagnostic-card strong {
  font-size: 11px;
}

.diagnostic-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.diagnostic-card code {
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnostic-nav {
  grid-template-columns: auto minmax(0, 1fr);
}

.source-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.source-meta span {
  display: flex;
  min-height: 70px;
  padding: 10px;
  flex-direction: column;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 9px;
  text-transform: uppercase;
}

.source-meta strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 11px;
  text-transform: none;
}

.drop-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
}

.drop-overlay > div {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  border: 3px dashed color-mix(in srgb, var(--brand) 50%, var(--line));
  border-radius: 19px;
  background: var(--brand-soft);
}

.drop-overlay strong {
  margin-top: 15px;
  color: var(--ink);
  font-size: 24px;
}

.drop-overlay span {
  margin-top: 4px;
}

.workspace-note {
  margin: 12px 8px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.workspace-note code {
  color: var(--brand-strong);
}

.value-strip {
  display: grid;
  padding-block: 54px 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.value-strip article {
  display: grid;
  min-height: 126px;
  padding: 16px;
  align-items: start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  grid-template-columns: auto minmax(0, 1fr);
}

.value-strip article > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--brand-strong);
  border-radius: 9px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
}

.value-strip h2 {
  margin-bottom: 5px;
  font-size: 14px;
}

.value-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.content-section {
  padding-block: 78px;
}

.section-intro {
  max-width: 750px;
  margin-bottom: 32px;
}

.section-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(29px, 4vw, 45px);
  font-weight: 820;
  letter-spacing: -0.045em;
}

.section-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.step-grid {
  display: grid;
  padding: 0;
  margin: 0;
  counter-reset: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.step-grid li {
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-grid li > span {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 33px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: var(--brand);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

:root[data-theme="dark"] .step-grid li > span {
  color: #0b1222;
}

.step-grid h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.content-panel {
  padding: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.split-intro {
  display: grid;
  max-width: none;
  margin-bottom: 34px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 50px;
}

.split-intro h2 {
  margin-bottom: 0;
}

.split-intro > p {
  margin: 0;
}

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

.feature-grid article {
  min-height: 225px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.feature-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 29px;
  place-items: center;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 50%;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
}

.feature-grid h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-grid code {
  color: var(--brand-strong);
}

.version-section {
  padding-top: 115px;
}

.version-table {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.version-row {
  display: grid;
  min-height: 82px;
  padding: 18px 21px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(150px, 0.7fr) minmax(170px, 0.7fr) minmax(300px, 2fr);
}

.version-row:last-child {
  border-bottom: 0;
}

.version-row strong {
  font-size: 14px;
}

.version-row code {
  color: var(--brand-strong);
  font-size: 12px;
}

.version-row span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.version-header {
  min-height: 45px;
  color: var(--faint);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-note {
  margin: 15px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.privacy-explainer {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--line);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 70px;
}

.privacy-grid > div:first-child h2 {
  font-size: clamp(30px, 4vw, 45px);
}

.privacy-grid > div:first-child > p:last-child {
  color: var(--muted);
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.privacy-cards article {
  min-height: 205px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.privacy-status {
  display: inline-flex;
  padding: 4px 8px;
  margin-bottom: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.privacy-status.local {
  color: var(--teal);
  background: var(--teal-soft);
}

.privacy-status.direct {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.privacy-status.deliberate {
  color: var(--amber);
  background: var(--amber-soft);
}

.privacy-status.blocked {
  color: var(--coral);
  background: var(--coral-soft);
}

.privacy-cards h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.privacy-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.comparison-section {
  padding-top: 110px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, 0.875fr);
  gap: 11px;
}

.comparison-grid article {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comparison-grid article > span {
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.comparison-grid h3 {
  margin: 34px 0 12px;
  font-size: 21px;
}

.comparison-grid p,
.comparison-grid li {
  color: var(--muted);
  font-size: 13px;
}

.comparison-grid ul {
  padding-left: 18px;
  margin: 0;
}

.comparison-grid li + li {
  margin-top: 6px;
}

.comparison-featured {
  color: #fff;
  border-color: transparent !important;
  background:
    radial-gradient(circle at 90% 10%, rgb(125 226 196 / 23%), transparent 15rem),
    linear-gradient(135deg, #244cd3, #162e92) !important;
}

.comparison-featured > span,
.comparison-featured p,
.comparison-featured li {
  color: #dce6ff !important;
}

.faq-section {
  padding-bottom: 120px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.faq-list details {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq-list summary {
  display: flex;
  min-height: 65px;
  padding: 17px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 400;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 17px 18px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 62px 0 24px;
  color: #dce5fa;
  background:
    radial-gradient(circle at 12% 20%, rgb(49 92 244 / 28%), transparent 26rem),
    #0d1424;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(130px, 0.6fr));
  gap: 45px;
}

.footer-brand {
  color: #fff;
}

.footer-grid > div:first-child p {
  max-width: 370px;
  margin: 17px 0 0;
  color: #9facbf;
  font-size: 13px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:not(.brand) {
  color: #aebbd0;
  font-size: 12px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  margin-top: 46px;
  justify-content: space-between;
  gap: 20px;
  color: #78869d;
  border-top: 1px solid #283249;
  font-size: 10px;
}

.footer-bottom p {
  margin: 0;
}

.tool-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.tool-dialog::backdrop {
  background: rgb(4 10 24 / 68%);
  backdrop-filter: blur(5px);
}

.tool-dialog form,
.tool-dialog > div {
  display: flex;
  max-height: inherit;
  padding: 24px;
  overflow: auto;
  flex-direction: column;
}

.tool-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tool-dialog h2 {
  margin: 0;
  font-size: 27px;
}

.tool-dialog > form > p,
.tool-dialog > div > p {
  color: var(--muted);
  font-size: 13px;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 20px;
}

.tool-dialog textarea {
  width: 100%;
  min-height: 430px;
  padding: 15px;
  resize: vertical;
  color: #d9e5ff;
  border: 1px solid #2e3e5c;
  border-radius: 11px;
  outline: 0;
  background: #0b1120;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  tab-size: 2;
}

.tool-dialog textarea:focus,
.tool-dialog input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.dialog-meta {
  display: flex;
  padding: 7px 2px 0;
  justify-content: space-between;
  color: var(--faint);
  font-size: 10px;
}

.form-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--danger) !important;
  font-size: 11px !important;
}

.tool-dialog footer {
  display: flex;
  padding-top: 15px;
  margin-top: auto;
  justify-content: flex-end;
  gap: 8px;
}

.compact-dialog {
  width: min(620px, calc(100% - 28px));
}

.compact-dialog label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.compact-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-raised);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.share-warning {
  padding: 15px;
  margin: 15px 0;
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line));
  border-radius: 10px;
  background: var(--amber-soft);
}

.share-warning strong {
  display: block;
  color: var(--ink);
}

.share-warning p {
  margin: 5px 0 0;
  color: color-mix(in srgb, var(--amber) 70%, var(--ink));
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100% - 40px));
  padding: 12px 15px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
  background: #12251f;
  box-shadow: 0 15px 50px rgb(0 0 0 / 28%);
  font-size: 12px;
  font-weight: 750;
}

.toast[data-tone="error"] {
  background: #5c1823;
}

@media (max-width: 1180px) {
  .input-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .document-pills {
    max-width: none;
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .schema-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 28px, 1440px);
  }

  .primary-nav {
    display: none;
  }

  .theme-switcher {
    margin-left: auto;
  }

  .hero {
    padding-top: 34px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-proof {
    max-width: 500px;
  }

  .workspace {
    max-height: none;
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-panel {
    max-height: none;
    overflow: visible;
  }

  .value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-panel {
    padding: 35px;
  }

  .split-intro,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-featured {
    grid-column: 1 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 64px;
  }

  .header-inner {
    min-height: 60px;
  }

  .brand {
    font-size: 14px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .theme-choice {
    width: 30px;
    padding: 5px;
    justify-content: center;
  }

  .theme-choice span:last-child {
    display: none;
  }

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

  .eyebrow {
    margin-bottom: 9px;
  }

  .eyebrow span {
    padding: 4px 7px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

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

  .hero-proof {
    padding: 11px 13px;
  }

  .input-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-action {
    min-height: 52px;
  }

  .document-pills > span:first-child {
    max-width: 160px;
  }

  .workspace-tabs {
    padding-inline: 4px;
  }

  .workspace-tabs button {
    min-height: 44px;
    padding-inline: 11px;
  }

  .workspace-sidebar {
    max-height: 280px;
  }

  .detail-view {
    padding: 25px 16px 50px;
  }

  .api-heading {
    flex-direction: column;
    gap: 14px;
  }

  .detail-actions {
    width: 100%;
  }

  .detail-actions .button {
    flex: 1 1 auto;
  }

  .stat-grid,
  .schema-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .operation-row > span:nth-last-child(2) {
    display: none;
  }

  .parameter-table {
    border: 0;
    background: transparent;
  }

  .parameter-header {
    display: none;
  }

  .parameter-row {
    margin-bottom: 7px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parameter-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .detail-two-column {
    grid-template-columns: 1fr;
  }

  .diagnostic-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .diagnostic-card code {
    display: none;
  }

  .value-strip {
    padding-top: 38px;
    grid-template-columns: 1fr;
  }

  .value-strip article {
    min-height: 100px;
  }

  .content-section {
    padding-block: 62px;
  }

  .step-grid,
  .feature-grid,
  .privacy-cards,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .step-grid li {
    min-height: 210px;
  }

  .content-panel {
    width: calc(100% - 20px);
    padding: 28px 18px;
    border-radius: 23px;
  }

  .version-section,
  .comparison-section {
    padding-top: 72px;
  }

  .version-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .version-header {
    display: none;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-featured {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / 3;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .shell {
    width: calc(100% - 20px);
  }

  .brand span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .input-toolbar {
    padding: 7px;
  }

  .toolbar-action {
    padding-inline: 7px;
    column-gap: 7px;
  }

  .toolbar-action > span {
    width: 27px;
    height: 27px;
  }

  .document-pills {
    gap: 4px;
  }

  .document-pills > span:nth-child(2) {
    display: none;
  }

  .share-button {
    margin-left: auto;
  }

  .workspace {
    min-height: 610px;
  }

  .stat-grid,
  .schema-card-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 96px;
  }

  .property-preview > div {
    grid-template-columns: 1fr;
  }

  .edge-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .tool-dialog form,
  .tool-dialog > div {
    padding: 18px;
  }

  .tool-dialog h2 {
    font-size: 22px;
  }

  .tool-dialog textarea {
    min-height: 50vh;
  }

  .tool-dialog footer {
    flex-direction: column-reverse;
  }

  .tool-dialog footer .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand span {
    max-width: 112px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button,
  a,
  details summary span,
  .toast {
    transition:
      color 150ms ease,
      background-color 150ms ease,
      border-color 150ms ease,
      transform 150ms ease,
      opacity 150ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Supporting pages */

.subpage-main {
  padding-bottom: 110px;
}

.subpage-hero {
  max-width: 900px;
  padding: 82px 0 48px;
}

.subpage-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.subpage-hero > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.legal-highlight {
  display: grid;
  max-width: 1000px;
  padding: 25px;
  margin-bottom: 54px;
  align-items: start;
  gap: 17px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--teal-soft);
  grid-template-columns: auto minmax(0, 1fr);
}

.legal-highlight > span {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--surface);
  border-radius: 13px;
  background: var(--teal);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.legal-highlight h2 {
  margin: 1px 0 5px;
  color: var(--ink);
  font-size: 21px;
}

.legal-highlight p {
  margin: 0;
  color: color-mix(in srgb, var(--teal) 66%, var(--ink));
  font-size: 14px;
}

.terms-highlight {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: var(--brand-soft);
}

.terms-highlight > span {
  background: var(--brand);
}

.terms-highlight p {
  color: var(--muted);
}

.legal-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 230px minmax(0, 780px);
  gap: 70px;
}

.legal-toc {
  position: sticky;
  top: 98px;
  display: flex;
  padding: 18px;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-toc strong {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-toc a {
  width: 100%;
  padding: 6px 8px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 12px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.legal-copy {
  min-width: 0;
}

.legal-copy-centered {
  max-width: 820px;
}

.legal-copy section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 95px;
}

.legal-copy section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-copy h2 {
  margin-bottom: 15px;
  font-size: 27px;
}

.legal-copy h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal-copy p,
.legal-copy li {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-copy p {
  margin-bottom: 14px;
}

.legal-copy ul {
  padding-left: 22px;
}

.legal-copy li + li {
  margin-top: 7px;
}

.legal-copy code {
  padding: 2px 5px;
  color: var(--brand-strong);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 0.85em;
}

.feedback-grid {
  display: grid;
  max-width: 1050px;
  margin-bottom: 70px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feedback-card {
  display: flex;
  min-height: 320px;
  padding: 30px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feedback-tag {
  display: inline-flex;
  padding: 4px 8px;
  margin-bottom: 42px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feedback-tag.bug {
  color: var(--danger);
  background: var(--danger-soft);
}

.feedback-tag.feature {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.feedback-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.feedback-card p {
  margin-bottom: 26px;
  color: var(--muted);
}

.feedback-card .button {
  margin-top: auto;
}

.report-checklist {
  display: grid;
  max-width: 1050px;
  padding: 36px;
  margin-bottom: 38px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 55px;
}

.report-checklist h2 {
  margin: 7px 0 0;
  font-size: 31px;
}

.report-checklist ol {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 8px;
  list-style: none;
}

.report-checklist li {
  display: grid;
  min-height: 55px;
  padding: 10px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  grid-template-columns: auto minmax(0, 1fr);
}

.report-checklist li > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--brand-strong);
  border-radius: 8px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.report-checklist li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.feedback-warning {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
  background: var(--amber-soft);
}

.feedback-warning > span {
  color: var(--surface);
  background: var(--amber);
}

.feedback-warning p {
  color: color-mix(in srgb, var(--amber) 64%, var(--ink));
}

.not-found {
  display: flex;
  min-height: calc(100vh - 70px);
  padding-block: 70px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.not-found-mark {
  display: grid;
  width: 150px;
  height: 150px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 42px;
  background: var(--brand-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  font-weight: 850;
  transform: rotate(-3deg);
}

.not-found h1 {
  margin: 5px 0 11px;
  font-size: clamp(42px, 8vw, 72px);
}

.not-found > p:not(.eyebrow-text) {
  max-width: 560px;
  margin-bottom: 25px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .subpage-hero {
    padding-top: 58px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / 3;
  }

  .report-checklist {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .subpage-main {
    padding-bottom: 75px;
  }

  .subpage-hero {
    padding: 45px 0 34px;
  }

  .subpage-hero h1 {
    font-size: 46px;
  }

  .subpage-hero > p:last-child {
    font-size: 16px;
  }

  .legal-highlight {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-toc strong {
    grid-column: auto;
  }

  .legal-copy h2 {
    font-size: 23px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-card {
    min-height: 280px;
    padding: 23px;
  }

  .report-checklist {
    padding: 23px;
  }
}
