:root {
  color-scheme: light;
  --primary: #14db7e;
  --primary-shade: #12c16f;
  --primary-soft: rgba(20, 219, 126, 0.14);
  --secondary: #47906e;
  --tertiary: #9752ff;
  --tertiary-soft: rgba(151, 82, 255, 0.12);
  --warm: #f5e3a8;
  --warm-soft: rgba(245, 227, 168, 0.55);
  --canvas: #f3f3ec;
  --surface: #ffffff;
  --surface-soft: #f7f7f2;
  --surface-code: #0e2922;
  --surface-code-soft: #143a30;
  --text: #1a1a1a;
  --text-strong: #0d1d17;
  --text-muted: #5a5a5a;
  --text-faint: #7f847f;
  --on-dark: #f7fff5;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --border: rgba(14, 41, 34, 0.1);
  --border-strong: rgba(14, 41, 34, 0.17);
  --shadow-sm: 0 1px 2px rgba(14, 41, 34, 0.06);
  --shadow-md: 0 12px 36px rgba(14, 41, 34, 0.09);
  --get: #61affe;
  --post: #007dff;
  --put: #fca130;
  --patch: #fca130;
  --delete: #f93e3e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-height: 68px;
  --sidebar-width: 268px;
  --playground-width: 414px;
  --font-sans: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Roboto Slab", Rockwell, Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111312;
  --surface: #151716;
  --surface-soft: #1c1f1d;
  --text: #e8e8e8;
  --text-strong: #f6fbf8;
  --text-muted: #a7ada9;
  --text-faint: #7e8781;
  --border: rgba(20, 219, 126, 0.09);
  --border-strong: rgba(20, 219, 126, 0.17);
  --primary-soft: rgba(20, 219, 126, 0.11);
  --tertiary-soft: rgba(168, 107, 255, 0.12);
  --warm-soft: rgba(245, 227, 168, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

html {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

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

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

button {
  border: 0;
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--primary);
  color: #052013;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  background: var(--surface-code);
  border-radius: 0 0 var(--radius-md) 0;
  color: var(--on-dark);
  left: 0;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
  z-index: 40;
}

.topbar__left,
.topbar__actions,
.topbar__links,
.brand,
.product-label {
  align-items: center;
  display: flex;
}

.topbar__left {
  min-width: 0;
}

.brand {
  color: var(--text-strong);
  flex: 0 0 auto;
  gap: 9px;
}

.brand__mark {
  fill: currentColor;
  height: 28px;
  width: 21px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.product-divider {
  background: var(--border-strong);
  height: 24px;
  margin: 0 14px;
  width: 1px;
}

.product-label {
  gap: 8px;
  white-space: nowrap;
}

.product-label > span:first-child {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.version-badge,
.pill,
.status-pill,
.schema-type,
.live-indicator {
  border-radius: 999px;
  display: inline-flex;
  line-height: 1;
}

.version-badge {
  background: var(--primary-soft);
  color: color-mix(in srgb, var(--secondary) 78%, var(--text));
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 7px;
}

.topbar__links {
  gap: 25px;
  margin-left: auto;
  margin-right: 22px;
}

.topbar__links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}

.topbar__links a:hover {
  color: var(--text-strong);
}

.topbar__links .dashboard-link {
  color: var(--text-strong);
}

.topbar__links .dashboard-link::after {
  content: "↗";
  font-size: 11px;
  margin-left: 5px;
}

.topbar__actions {
  gap: 8px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
  width: 38px;
}

.icon-button:hover {
  background: var(--surface);
  color: var(--text-strong);
}

.icon-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.theme-icon--dark,
:root[data-theme="dark"] .theme-icon--light {
  display: none;
}

:root[data-theme="dark"] .theme-icon--dark {
  display: block;
}

.connection-button {
  align-items: center;
  background: var(--surface-code);
  border-radius: 999px;
  color: var(--on-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  transition: transform 160ms ease, background 160ms ease;
}

.connection-button:hover {
  background: var(--surface-code-soft);
  transform: translateY(-1px);
}

.connection-dot {
  background: #8a9690;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.connection-button.is-connected .connection-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 219, 126, 0.14);
}

.mobile-nav-button,
.mobile-playground-button,
.playground-close {
  display: none;
}

.loading-state,
.error-state {
  align-items: center;
  display: flex;
  inset: var(--header-height) 0 0;
  justify-content: center;
  position: fixed;
}

.loading-state {
  gap: 16px;
}

.loading-state__mark {
  align-items: center;
  animation: breathe 1.2s ease-in-out infinite alternate;
  background: var(--primary);
  border-radius: 14px 14px 14px 4px;
  color: #062317;
  display: flex;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.loading-state strong,
.loading-state span {
  display: block;
}

.loading-state strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 17px;
}

.loading-state span {
  color: var(--text-muted);
  font-size: 13px;
}

@keyframes breathe {
  from { transform: scale(0.96); }
  to { transform: scale(1.04); }
}

.error-state {
  flex-direction: column;
  padding: 32px;
  text-align: center;
}

.error-state__eyebrow,
.eyebrow,
.page-eyebrow,
.playground__eyebrow,
.dialog-heading .eyebrow {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.error-state h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  margin: 8px 0;
}

.error-state p {
  color: var(--text-muted);
  margin: 0 0 22px;
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(440px, 1fr) var(--playground-width);
  height: calc(100vh - var(--header-height));
}

.sidebar,
.reference,
.playground {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
}

.sidebar__top {
  background: var(--surface);
  padding: 17px 15px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.search-field {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  height: 42px;
  padding: 0 10px;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: var(--primary-shade);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-field svg {
  fill: none;
  flex: 0 0 auto;
  height: 17px;
  stroke: var(--text-faint);
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 17px;
}

.search-field input {
  background: transparent;
  border: 0;
  flex: 1;
  font-size: 12px;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
}

.search-field input::placeholder {
  color: var(--text-faint);
}

.search-field kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 9px;
  padding: 2px 5px;
}

.sidebar__nav {
  flex: 1;
  padding: 7px 11px 24px;
}

.nav-section + .nav-section {
  margin-top: 22px;
}

.nav-heading {
  align-items: center;
  color: var(--text-faint);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.09em;
  margin: 0 9px 7px;
  text-transform: uppercase;
}

.nav-heading__count {
  background: var(--surface-soft);
  border-radius: 99px;
  font-size: 9px;
  letter-spacing: 0;
  padding: 3px 6px;
}

.nav-link,
.endpoint-link {
  align-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  display: flex;
  min-height: 35px;
  padding: 7px 9px;
  position: relative;
  transition: background 140ms ease, color 140ms ease;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  gap: 9px;
}

.nav-link svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  width: 16px;
}

.endpoint-link {
  font-size: 11px;
  gap: 8px;
  line-height: 1.3;
}

.nav-link:hover,
.endpoint-link:hover {
  background: var(--surface-soft);
  color: var(--text-strong);
}

.nav-link.is-active,
.endpoint-link.is-active {
  background: var(--primary-soft);
  color: color-mix(in srgb, var(--secondary) 82%, var(--text));
  font-weight: 600;
}

.nav-link.is-active::before,
.endpoint-link.is-active::before {
  background: var(--primary);
  border-radius: 99px;
  content: "";
  height: 16px;
  left: -11px;
  position: absolute;
  width: 3px;
}

.method-badge {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.02em;
  min-width: 31px;
  padding: 4px 5px;
  text-transform: uppercase;
}

.method--get { background: color-mix(in srgb, var(--get) 15%, transparent); color: color-mix(in srgb, var(--get) 72%, var(--text)); }
.method--post { background: color-mix(in srgb, var(--post) 15%, transparent); color: color-mix(in srgb, var(--post) 72%, var(--text)); }
.method--put,
.method--patch { background: color-mix(in srgb, var(--put) 16%, transparent); color: color-mix(in srgb, var(--put) 72%, var(--text)); }
.method--delete { background: color-mix(in srgb, var(--delete) 14%, transparent); color: color-mix(in srgb, var(--delete) 75%, var(--text)); }

.nav-empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 24px 10px;
  text-align: center;
}

.sidebar__footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  padding: 13px 16px;
  position: sticky;
  bottom: 0;
}

.sidebar__footer a:hover {
  color: var(--secondary);
}

.live-indicator {
  align-items: center;
  gap: 5px;
}

.live-indicator i {
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-soft);
  height: 6px;
  width: 6px;
}

.reference {
  background:
    radial-gradient(circle at 98% 2%, var(--tertiary-soft), transparent 24%),
    radial-gradient(circle at 5% 96%, var(--warm-soft), transparent 21%),
    var(--canvas);
  scroll-behavior: smooth;
}

.reference__inner {
  margin: 0 auto;
  max-width: 880px;
  padding: 52px clamp(28px, 5vw, 72px) 96px;
}

.page-eyebrow {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.page-eyebrow::before {
  color: var(--primary-shade);
  content: "✳";
  font-size: 13px;
}

.page-title,
.operation-title,
.section-title,
.schema-page-title {
  color: var(--text-strong);
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.page-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  margin: 0;
  max-width: 690px;
}

.page-title em {
  color: var(--secondary);
  font-style: normal;
}

.page-lead,
.operation-description,
.schema-page-description {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.72;
}

.page-lead {
  margin: 20px 0 0;
  max-width: 670px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  transition: background 160ms ease, border 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  color: #052315;
}

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

.button--dark {
  background: var(--surface-code);
  color: var(--on-dark);
}

.button--ghost,
.button--quiet {
  background: transparent;
  color: var(--text-muted);
}

.button--ghost {
  border: 1px solid var(--border-strong);
}

.button--ghost:hover,
.button--quiet:hover {
  background: var(--surface-soft);
  color: var(--text-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.server-strip {
  align-items: center;
  background: var(--surface-code);
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  display: flex;
  gap: 12px;
  margin-top: 36px;
  overflow: hidden;
  padding: 15px 17px;
  position: relative;
}

.server-strip::after {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  filter: blur(38px);
  height: 80px;
  opacity: 0.16;
  position: absolute;
  right: -15px;
  width: 80px;
}

.server-strip__status {
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(20, 219, 126, 0.15);
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.server-strip__label {
  color: var(--on-dark-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-strip code {
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-strip__copy {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--on-dark);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 10px;
  margin-left: auto;
  padding: 7px 10px;
  position: relative;
  z-index: 1;
}

.stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 44px 0 64px;
}

.stat-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-card strong {
  color: var(--text-strong);
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 11px;
}

.content-section {
  margin-top: 58px;
}

.section-kicker {
  color: var(--secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-size: 27px;
  line-height: 1.15;
  margin: 0 0 11px;
}

.section-copy {
  color: var(--text-muted);
  margin: 0;
  max-width: 650px;
}

.step-grid,
.resource-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.step-card,
.resource-card,
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
  padding: 20px;
}

.step-card__number,
.resource-card__count {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 9px;
  color: var(--secondary);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  height: 29px;
  justify-content: center;
  margin-bottom: 22px;
  min-width: 29px;
  padding: 0 8px;
}

.step-card h3,
.resource-card h3,
.guide-card h3 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 7px;
}

.step-card p,
.resource-card p,
.guide-card p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.resource-card {
  min-height: 160px;
  position: relative;
  transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.resource-card__arrow {
  bottom: 17px;
  color: var(--secondary);
  position: absolute;
  right: 19px;
}

.resource-card:nth-child(3n + 2) .resource-card__count {
  background: var(--tertiary-soft);
  color: var(--tertiary);
}

.resource-card:nth-child(3n + 3) .resource-card__count {
  background: var(--warm-soft);
  color: color-mix(in srgb, #8a6a00 75%, var(--text));
}

.mcp-panel {
  background: var(--surface-code);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--on-dark);
  margin-top: 24px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.mcp-panel::after {
  background: var(--primary);
  border-radius: 50%;
  content: "";
  filter: blur(70px);
  height: 160px;
  opacity: 0.12;
  pointer-events: none;
  position: absolute;
  right: -35px;
  top: -55px;
  width: 160px;
}

.mcp-panel__heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.mcp-panel__eyebrow {
  color: var(--primary);
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.mcp-panel h3 {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0;
}

.mcp-panel__status {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--on-dark-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  gap: 7px;
  padding: 7px 10px;
}

.mcp-panel__status i {
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(20, 219, 126, 0.14);
  height: 6px;
  width: 6px;
}

.mcp-endpoint {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  margin-top: 23px;
  padding: 12px 13px;
  position: relative;
  z-index: 1;
}

.mcp-endpoint code {
  color: #dcebe4;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 0;
  overflow: auto hidden;
  white-space: nowrap;
}

.mcp-endpoint button {
  background: var(--primary);
  border-radius: 999px;
  color: #052315;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  padding: 7px 10px;
}

.mcp-tool-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.mcp-tool-row span {
  color: var(--on-dark-muted);
  font-size: 9px;
  font-weight: 700;
  margin-right: 2px;
  text-transform: uppercase;
}

.mcp-tool-row code {
  background: rgba(20, 219, 126, 0.1);
  border: 1px solid rgba(20, 219, 126, 0.16);
  border-radius: 999px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 5px 8px;
}

.mcp-step-grid .step-card p strong {
  color: var(--text-strong);
}

.mcp-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 17px;
}

.mcp-actions p {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.55;
  margin: 0;
  max-width: 510px;
}

.mcp-actions .button {
  flex: 0 0 auto;
}

.breadcrumb {
  align-items: center;
  color: var(--text-faint);
  display: flex;
  font-size: 11px;
  gap: 7px;
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.operation-title,
.schema-page-title {
  font-size: clamp(33px, 4vw, 47px);
  line-height: 1.08;
  margin: 0;
}

.operation-description,
.schema-page-description {
  margin: 16px 0 0;
}

.operation-pathbar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  margin-top: 27px;
  min-height: 48px;
  padding: 8px 10px;
}

.operation-pathbar .method-badge {
  font-size: 9px;
  min-width: 42px;
  padding: 6px 7px;
}

.operation-pathbar code {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.operation-pathbar .button {
  margin-left: auto;
  min-height: 32px;
  padding: 0 12px;
}

.markdown-actions {
  align-items: center;
  color: var(--text-faint);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 38px;
  padding: 0 3px;
}

.markdown-actions > div {
  display: flex;
  gap: 5px;
}

.markdown-actions .button {
  min-height: 31px;
  padding: 0 11px;
}

.reference-section {
  margin-top: 52px;
}

.reference-section__heading {
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 13px;
}

.reference-section__heading h2 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

.reference-section__heading span {
  color: var(--text-faint);
  font-size: 10px;
}

.parameter-row {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(150px, 0.33fr) 1fr;
  padding: 18px 4px;
}

.parameter-name {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.parameter-name code,
.property-name {
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.required-mark {
  color: #bc3346;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parameter-location {
  color: var(--text-faint);
  display: block;
  font-size: 10px;
  margin-top: 4px;
  text-transform: uppercase;
}

.parameter-details p,
.response-description,
.property-description {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

.type-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.schema-type {
  background: var(--surface-soft);
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 5px 7px;
}

.schema-constraint {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.response-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 12px;
  overflow: hidden;
}

.response-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 11px;
  list-style: none;
  min-height: 50px;
  padding: 11px 14px;
}

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

.response-card summary::after {
  color: var(--text-faint);
  content: "+";
  font-size: 17px;
  margin-left: auto;
}

.response-card[open] summary::after {
  content: "−";
}

.status-pill {
  align-items: center;
  background: rgba(45, 211, 111, 0.13);
  color: color-mix(in srgb, #159451 78%, var(--text));
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  min-width: 38px;
  padding: 6px 8px;
}

.status-pill--error {
  background: rgba(235, 68, 90, 0.12);
  color: color-mix(in srgb, #d2344a 78%, var(--text));
}

.response-card__body {
  border-top: 1px solid var(--border);
  padding: 17px;
}

.response-schema-title {
  color: var(--text-faint);
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.schema-tree {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.schema-property {
  padding: 13px 14px;
}

.schema-property + .schema-property {
  border-top: 1px solid var(--border);
}

.schema-property__head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.schema-property__children {
  border-left: 1px solid var(--border-strong);
  margin: 12px 0 0 5px;
  padding-left: 10px;
}

.property-description {
  line-height: 1.55;
  margin-top: 6px;
}

.schema-example {
  background: var(--surface-code);
  border-radius: var(--radius-md);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  margin: 15px 0 0;
  max-height: 430px;
  overflow: auto;
  padding: 17px;
  white-space: pre;
}

.schema-page-meta {
  display: flex;
  gap: 8px;
  margin-top: 19px;
}

.schema-page-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 42px;
}

.guide-callout {
  background: var(--primary-soft);
  border: 1px solid rgba(20, 219, 126, 0.24);
  border-radius: var(--radius-lg);
  margin-top: 28px;
  padding: 20px;
}

.guide-callout strong {
  color: var(--text-strong);
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 5px;
}

.guide-callout p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

.inline-code {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 5px;
}

.playground {
  background: var(--surface-code);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 21;
}

.playground__header {
  align-items: center;
  background: color-mix(in srgb, var(--surface-code) 94%, black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 15px 18px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.playground__header strong,
.playground__eyebrow {
  display: block;
}

.playground__header strong {
  font-family: var(--font-display);
  font-size: 14px;
  margin-top: 2px;
}

.playground__eyebrow {
  color: var(--primary);
  font-size: 9px;
}

.icon-button--dark {
  color: var(--on-dark-muted);
}

.icon-button--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
}

.playground__body {
  flex: 1;
  padding: 17px;
}

.playground-empty {
  align-items: center;
  color: var(--on-dark-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 110px);
  padding: 28px;
  text-align: center;
}

.playground-empty__icon {
  align-items: center;
  background: rgba(20, 219, 126, 0.1);
  border: 1px solid rgba(20, 219, 126, 0.19);
  border-radius: 15px;
  color: var(--primary);
  display: flex;
  font-family: var(--font-mono);
  font-size: 17px;
  height: 52px;
  justify-content: center;
  margin-bottom: 16px;
  width: 52px;
}

.playground-empty strong {
  color: var(--on-dark);
  font-family: var(--font-display);
}

.playground-empty p {
  font-size: 12px;
  margin: 7px 0 0;
  max-width: 250px;
}

.request-target {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.request-target__bar {
  align-items: center;
  display: flex;
  gap: 9px;
  padding: 10px;
}

.request-target__bar code {
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.request-target__environment {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-dark-muted);
  display: flex;
  font-size: 9px;
  gap: 6px;
  padding: 8px 11px;
}

.request-target__environment i {
  background: var(--primary);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.playground-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-top: 12px;
  overflow: hidden;
}

.playground-card__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
}

.playground-card__header strong {
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.playground-card__header span {
  color: var(--on-dark-muted);
  font-size: 9px;
}

.playground-fields {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 11px 12px;
}

.playground-field {
  display: block;
  margin-top: 10px;
}

.playground-field__label {
  align-items: center;
  color: var(--on-dark-muted);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.playground-field__label code {
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.playground-field input,
.playground-field select,
.playground-field textarea {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  outline: 0;
  padding: 9px 10px;
  width: 100%;
}

.playground-field input:focus,
.playground-field select:focus,
.playground-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 219, 126, 0.09);
}

.playground-field textarea {
  min-height: 130px;
  resize: vertical;
}

.playground-field select option {
  background: var(--surface-code);
}

.code-tabs {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  gap: 3px;
  padding: 5px 7px 0;
}

.code-tab {
  background: transparent;
  border-bottom: 2px solid transparent;
  color: var(--on-dark-muted);
  cursor: pointer;
  font-size: 9px;
  padding: 8px 7px;
}

.code-tab.is-active {
  border-bottom-color: var(--primary);
  color: var(--on-dark);
}

.copy-code {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  color: var(--on-dark-muted);
  cursor: pointer;
  font-size: 9px;
  margin-left: auto;
  padding: 5px 7px;
}

.code-sample {
  color: #ddede5;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.65;
  margin: 0;
  max-height: 265px;
  min-height: 128px;
  overflow: auto;
  padding: 13px;
  white-space: pre;
}

.run-request {
  align-items: center;
  background: var(--primary);
  border-radius: 9px;
  color: #052315;
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  margin-top: 13px;
  min-height: 42px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.run-request:hover {
  background: var(--primary-shade);
  transform: translateY(-1px);
}

.run-request.is-loading::before {
  animation: spin 700ms linear infinite;
  border: 2px solid rgba(5, 35, 21, 0.25);
  border-radius: 50%;
  border-top-color: #052315;
  content: "";
  height: 14px;
  margin-right: 8px;
  width: 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.playground-note {
  color: var(--on-dark-muted);
  font-size: 9px;
  line-height: 1.5;
  margin: 8px 3px 0;
  text-align: center;
}

.response-output {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.response-output__meta {
  align-items: center;
  display: flex;
  gap: 7px;
  padding: 10px 12px;
}

.response-output__meta .status-pill {
  font-size: 9px;
}

.response-output__time {
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.response-output pre {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #dcebe4;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.65;
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.response-error {
  color: #ffb5be;
  font-size: 10px;
  line-height: 1.5;
  padding: 13px;
}

.drawer-scrim {
  background: rgba(5, 20, 14, 0.55);
  cursor: pointer;
  display: none;
  inset: var(--header-height) 0 0;
  opacity: 0;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 24;
}

.connection-dialog {
  background: transparent;
  border: 0;
  color: var(--text);
  max-width: min(520px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.connection-dialog::backdrop {
  backdrop-filter: blur(5px);
  background: rgba(5, 20, 14, 0.58);
}

.connection-dialog__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(5, 20, 14, 0.28);
  padding: 26px;
}

.dialog-heading {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
}

.dialog-heading__icon {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 12px;
  color: var(--secondary);
  display: flex;
  height: 43px;
  justify-content: center;
  width: 43px;
}

.dialog-heading__icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 22px;
}

.dialog-heading h2 {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.18;
  margin: 3px 0 0;
}

.dialog-close {
  align-self: start;
}

.dialog-copy {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 19px 0 21px;
}

.field-label {
  color: var(--text-strong);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 14px;
}

.field-label > input,
.secret-field {
  margin-top: 6px;
}

.field-label > input,
.secret-field input {
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  height: 44px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.field-label > input:focus,
.secret-field:focus-within {
  border-color: var(--primary-shade);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.secret-field {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
}

.secret-field input {
  background: transparent;
  border: 0;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.secret-field input:focus {
  box-shadow: none;
}

.secret-field button {
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 0 12px;
}

.remember-option {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin-top: 17px;
}

.remember-option input {
  accent-color: var(--primary-shade);
  margin: 3px 0 0;
}

.remember-option strong,
.remember-option small {
  display: block;
}

.remember-option strong {
  color: var(--text-strong);
  font-size: 11px;
}

.remember-option small {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 2px;
}

.connection-feedback {
  background: var(--primary-soft);
  border: 1px solid rgba(20, 219, 126, 0.23);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 16px;
  padding: 10px 12px;
}

.connection-feedback.is-error {
  background: rgba(235, 68, 90, 0.1);
  border-color: rgba(235, 68, 90, 0.2);
  color: color-mix(in srgb, #d2344a 74%, var(--text));
}

.dialog-actions {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 23px;
}

.disconnect-button {
  color: #d2344a;
  margin-right: auto;
}

.toast-region {
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  position: fixed;
  right: 18px;
  z-index: 80;
}

.toast {
  animation: toast-in 180ms ease both;
  background: var(--surface-code);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--on-dark);
  font-size: 11px;
  max-width: 320px;
  padding: 10px 13px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1210px) {
  :root { --sidebar-width: 244px; }
  .docs-shell { grid-template-columns: var(--sidebar-width) minmax(420px, 1fr); }
  .playground {
    bottom: 0;
    box-shadow: -20px 0 60px rgba(5, 20, 14, 0.25);
    max-width: 100%;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transform: translateX(105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    width: min(var(--playground-width), 100vw);
    z-index: 30;
  }
  .playground.is-open { transform: translateX(0); }
  .playground-close,
  .mobile-playground-button { display: inline-flex; }
  body.has-drawer .drawer-scrim { display: block; opacity: 1; }
}

@media (max-width: 900px) {
  .topbar__links { display: none; }
  .reference__inner { padding-left: 35px; padding-right: 35px; }
}

@media (max-width: 720px) {
  :root { --header-height: 62px; }
  .topbar { padding: 0 10px; }
  .mobile-nav-button { display: inline-flex; }
  .brand__name { font-size: 18px; }
  .brand__mark { height: 25px; width: 18px; }
  .product-divider,
  .product-label { display: none; }
  .theme-icon { height: 17px; width: 17px; }
  .connection-button { padding: 0 12px; }
  .connection-label { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docs-shell { display: block; }
  .sidebar {
    bottom: 0;
    box-shadow: 18px 0 50px rgba(5, 20, 14, 0.2);
    max-width: calc(100vw - 42px);
    position: fixed;
    top: var(--header-height);
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 294px;
    z-index: 30;
  }
  .sidebar.is-open { transform: translateX(0); }
  .reference { height: calc(100vh - var(--header-height)); }
  .reference { overflow-x: hidden; }
  .reference__inner { padding: 38px 21px 80px; }
  .page-title { font-size: 39px; }
  .page-lead { font-size: 14px; }
  .stat-grid,
  .step-grid,
  .resource-grid { grid-template-columns: 1fr; }
  .stat-grid { margin: 32px 0 48px; }
  .stat-card { align-items: baseline; display: flex; gap: 9px; }
  .stat-card strong { font-size: 21px; }
  .resource-card { min-height: 135px; }
  .parameter-row { gap: 9px; grid-template-columns: 1fr; }
  .operation-pathbar { align-items: flex-start; flex-wrap: wrap; }
  .operation-pathbar .button { margin-left: 0; width: 100%; }
  .markdown-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .markdown-actions > div { width: 100%; }
  .markdown-actions .button { flex: 1; }
  .server-strip { align-items: flex-start; flex-wrap: wrap; }
  .server-strip__copy { margin-left: 0; }
  .mcp-panel { padding: 19px; }
  .mcp-panel__heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .mcp-endpoint { align-items: stretch; flex-direction: column; }
  .mcp-endpoint button { align-self: flex-start; }
  .mcp-actions { align-items: flex-start; flex-direction: column; }
  .connection-dialog__card { padding: 20px; }
  .dialog-heading { grid-template-columns: auto 1fr auto; }
  .dialog-heading__icon { height: 38px; width: 38px; }
  .dialog-heading h2 { font-size: 18px; }
  .dialog-actions { flex-wrap: wrap; }
  .disconnect-button { margin-right: 0; order: 2; width: 100%; }
}

@media (max-width: 600px) {
  .brand__name { display: none; }
  .connection-button { max-width: 138px; }
  .topbar__actions { margin-left: auto; }
  .page-title { font-size: 35px; }
}

@media (max-width: 390px) {
  .connection-button {
    justify-content: center;
    padding: 0;
    width: 38px;
  }
  .connection-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
