:root {
  color-scheme: dark;
  --docs-bg: #081315;
  --docs-surface: #122326;
  --docs-surface-strong: #193033;
  --docs-code: #050f11;
  --docs-text: #ecf7f6;
  --docs-soft: #b7cecc;
  --docs-muted: #86a3a0;
  --docs-line: #234043;
  --docs-line-strong: #3b6265;
  --docs-accent: #34c4b0;
  --docs-accent-strong: #55d8c5;
  --docs-accent-contrast: #05221e;
  --docs-accent-bg: #0d3635;
  --docs-accent-text: #86eadb;
  --docs-danger: #ff7b72;
  --docs-warning: #d29922;
  --docs-warning-bg: #2d220c;
  --docs-shadow: 0 22px 70px rgba(1, 4, 9, 0.36);
  --docs-radius: 24px;
  --docs-control-radius: 16px;
  --docs-font: "Segoe UI Variable", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --docs-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --docs-bg: #eef5f4;
  --docs-surface: #f8fbfa;
  --docs-surface-strong: #dcebe8;
  --docs-code: #e4efed;
  --docs-text: #102725;
  --docs-soft: #405f5c;
  --docs-muted: #587572;
  --docs-line: #c4d8d5;
  --docs-line-strong: #91b1ad;
  --docs-accent: #087f73;
  --docs-accent-strong: #05675f;
  --docs-accent-contrast: #ffffff;
  --docs-accent-bg: #d9f0ec;
  --docs-accent-text: #075e56;
  --docs-danger: #cf222e;
  --docs-warning: #9a6700;
  --docs-warning-bg: #fff8c5;
  --docs-shadow: 0 22px 70px rgba(31, 35, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--docs-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--docs-bg);
  color: var(--docs-text);
  font-family: var(--docs-font);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--docs-accent-strong);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--docs-accent);
  color: #08130a;
  padding: 9px 13px;
  font-weight: 750;
  text-decoration: none;
}

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

.docs-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 66px;
  border-bottom: 1px solid var(--docs-line);
  background: color-mix(in srgb, var(--docs-bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.docs-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 38px);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--docs-line);
  border-radius: 11px;
  background: var(--docs-surface);
}

.docs-language-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--docs-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.docs-language-switch button:hover {
  color: var(--docs-text);
}

.docs-language-switch button:active {
  transform: scale(0.97);
}

.docs-language-switch button.is-active {
  background: var(--docs-accent);
  color: var(--docs-accent-contrast);
}

.embedded-language-switch {
  display: none;
}

.is-embedded .embedded-language-switch {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: inline-grid;
  float: right;
  margin: 0 0 16px 16px;
  box-shadow: var(--docs-shadow);
}

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

.docs-brand b {
  color: var(--docs-accent-strong);
}

.docs-brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 2px;
  width: 14px;
  height: 14px;
}

.docs-brand-mark i {
  display: block;
  background: var(--docs-accent);
  border-radius: 2px;
}

.docs-top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.docs-top-nav a,
.docs-top-nav button {
  border: 0;
  background: transparent;
  color: var(--docs-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.docs-top-nav a:hover,
.docs-top-nav button:hover,
.docs-top-nav .is-active {
  color: var(--docs-text);
}

.docs-top-nav .docs-cabinet-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--docs-line-strong);
  border-radius: var(--docs-control-radius);
  padding-inline: 14px;
  color: var(--docs-text);
}

.docs-main {
  padding-block: 44px 80px;
}

.docs-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 24px;
}

.docs-intro > div,
.key-connect > *,
.tool-head > div {
  min-width: 0;
}

.docs-kicker {
  margin: 0 0 10px;
  color: var(--docs-accent-strong);
  font-family: var(--docs-mono);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.docs-intro p:not(.docs-kicker) {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--docs-soft);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.docs-primary-action,
.docs-secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--docs-control-radius);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.docs-primary-action {
  border: 1px solid var(--docs-accent-strong);
  background: var(--docs-accent);
  color: #24110b;
}

.docs-secondary-action {
  border: 1px solid var(--docs-line-strong);
  background: var(--docs-surface);
  color: var(--docs-text);
}

.docs-primary-action:hover,
.docs-secondary-action:hover {
  transform: translateY(-1px);
}

.docs-primary-action:disabled,
.docs-secondary-action:disabled,
.copy-control:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.start-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.start-flow a {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  color: var(--docs-text);
  padding: 18px;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.start-flow a:hover {
  border-color: var(--docs-accent);
  background: var(--docs-surface-strong);
  transform: translateY(-1px);
}

.start-flow a:active {
  transform: translateY(1px);
}

.start-flow a > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--docs-accent-bg);
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-weight: 820;
}

.start-flow strong,
.start-flow small {
  display: block;
}

.start-flow strong {
  font-size: 14px;
  font-weight: 800;
}

.start-flow small {
  margin-top: 4px;
  color: var(--docs-soft);
  font-size: 12px;
  line-height: 1.45;
}

.docs-primary-action:active,
.docs-secondary-action:active {
  transform: scale(0.98);
}

.key-connect {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(360px, 1.55fr);
  align-items: center;
  gap: 22px;
  min-height: 0;
  margin-bottom: 28px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 20px;
  box-shadow: none;
}

.key-connect-copy {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.key-badge {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 55%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--docs-accent) 13%, transparent);
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 11px;
  font-weight: 820;
}

.key-connect h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.key-connect p {
  margin: 6px 0 0;
  color: var(--docs-soft);
  font-size: 13px;
}

.key-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--docs-soft);
  font-size: 12px;
  font-weight: 720;
}

.key-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.key-input-row input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--docs-line-strong);
  border-radius: 9px;
  background: var(--docs-code);
  color: var(--docs-text);
  padding: 0 13px;
  font-family: var(--docs-mono);
  font-size: 13px;
}

.key-input-row input::placeholder {
  color: var(--docs-muted);
}

.key-input-row input:focus {
  border-color: var(--docs-accent-strong);
}

.form-message.is-error {
  color: var(--docs-danger);
}

.form-message.is-success {
  color: var(--docs-accent-text);
}

.key-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid color-mix(in srgb, var(--docs-accent) 34%, var(--docs-line));
  padding-top: 20px;
}

.key-summary div {
  display: grid;
  gap: 2px;
}

.key-summary span {
  color: var(--docs-muted);
  font-size: 11px;
}

.key-summary strong {
  font-family: var(--docs-mono);
  font-size: 14px;
}

.key-summary button,
.sidebar-endpoint button {
  border: 0;
  background: transparent;
  color: var(--docs-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.key-summary button:hover,
.sidebar-endpoint button:hover {
  color: var(--docs-text);
}

.docs-workspace {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.tool-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 10px;
}

.tool-sidebar > p {
  margin: 7px 9px 10px;
  color: var(--docs-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-sidebar nav {
  display: grid;
  gap: 4px;
}

.tool-sidebar nav button {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--docs-soft);
  padding: 0 10px;
  cursor: pointer;
  text-align: left;
}

.tool-sidebar nav button span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 780;
}

.tool-sidebar nav button i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  color: var(--docs-muted);
  font-family: var(--docs-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.tool-sidebar nav button small {
  color: var(--docs-muted);
  font-family: var(--docs-mono);
  font-size: 9px;
}

.tool-sidebar nav button:hover {
  background: var(--docs-surface-strong);
  color: var(--docs-text);
}

.tool-sidebar nav button.is-active {
  border-color: color-mix(in srgb, var(--docs-accent) 50%, var(--docs-line));
  background: var(--docs-accent-bg);
  color: var(--docs-accent-text);
}

.tool-sidebar nav button.is-active i {
  border-color: color-mix(in srgb, var(--docs-accent) 45%, transparent);
  color: var(--docs-accent-text);
}

.sidebar-endpoint {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border-top: 1px solid var(--docs-line);
  padding: 15px 9px 7px;
}

.sidebar-endpoint span {
  color: var(--docs-muted);
  font-size: 11px;
}

.sidebar-endpoint code {
  overflow: hidden;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-endpoint button {
  justify-self: start;
  padding: 0;
}

.mobile-tool-picker {
  display: none;
}

.tool-content {
  min-width: 0;
}

.tool-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 16px;
}

.tool-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-glyph {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 45%, var(--docs-line));
  border-radius: 9px;
  background: var(--docs-accent-bg);
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 10px;
  font-weight: 820;
}

.tool-head h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.tool-head p {
  max-width: 670px;
  margin: 8px 0 0;
  color: var(--docs-soft);
}

.tool-protocol {
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  padding: 5px 9px;
  color: var(--docs-muted);
  font-family: var(--docs-mono);
  font-size: 10px;
}

.endpoint-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 12px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 0 14px;
}

.endpoint-strip span {
  color: var(--docs-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.endpoint-strip code {
  overflow: hidden;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-control {
  min-height: 36px;
  border: 1px solid var(--docs-line-strong);
  border-radius: 9px;
  background: var(--docs-surface-strong);
  color: var(--docs-soft);
  padding: 0 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.copy-control:hover {
  border-color: var(--docs-accent);
  color: var(--docs-text);
}

.doc-callout {
  margin: 12px 0 26px;
  border-left: 2px solid var(--docs-accent);
  border-radius: 0 9px 9px 0;
  background: var(--docs-accent-bg);
  color: var(--docs-soft);
  padding: 12px 14px;
  font-size: 13px;
}

.doc-callout strong {
  color: var(--docs-accent-text);
}

.doc-callout.is-warning {
  border-left-color: var(--docs-warning);
  background: var(--docs-warning-bg);
  color: var(--docs-text);
}

.doc-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.doc-controls label,
.mobile-tool-picker label {
  display: grid;
  gap: 7px;
  color: var(--docs-soft);
  font-size: 12px;
  font-weight: 720;
}

.doc-controls select,
.mobile-tool-picker select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--docs-line-strong);
  border-radius: 9px;
  background: var(--docs-surface);
  color: var(--docs-text);
  padding: 0 34px 0 11px;
}

.doc-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  margin-top: 26px;
}

.doc-step-marker {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 45%, var(--docs-line));
  border-radius: 8px;
  background: var(--docs-accent-bg);
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 11px;
  font-weight: 820;
}

.doc-step h3 {
  margin: 3px 0 10px;
  font-size: 15px;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.doc-step p {
  margin: 0 0 12px;
  color: var(--docs-soft);
  font-size: 13px;
}

.path-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}

.path-grid span {
  color: var(--docs-muted);
  font-size: 11px;
}

.path-grid code {
  overflow: auto;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: var(--docs-surface);
  color: var(--docs-soft);
  padding: 8px 10px;
  font-family: var(--docs-mono);
  font-size: 11px;
  white-space: nowrap;
}

.doc-code {
  overflow: hidden;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-code);
}

.doc-code + .doc-code {
  margin-top: 10px;
}

.doc-code-head {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--docs-line);
  background: var(--docs-surface);
  padding: 0 10px 0 13px;
}

.doc-code-head span {
  color: var(--docs-soft);
  font-size: 11px;
  font-weight: 780;
}

.doc-code pre {
  max-width: 100%;
  overflow: auto;
  margin: 0;
  padding: 16px;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 12.5px;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

.cli-panel {
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 20px;
}

.cli-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.cli-panel .doc-code + h3 {
  margin-top: 22px;
}

.cli-once {
  margin: 16px 0 0;
  color: var(--docs-soft);
  font-size: 12px;
}

.cli-once code {
  overflow-wrap: anywhere;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
}

.api-tester {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 44%, var(--docs-line));
  border-radius: var(--docs-radius);
  background: linear-gradient(135deg, var(--docs-accent-bg), var(--docs-surface));
  padding: 20px;
}

.api-tester h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.api-tester p {
  margin: 5px 0 0;
  color: var(--docs-soft);
  font-size: 13px;
}

.api-test-result {
  grid-column: 1 / -1;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-control-radius);
  background: var(--docs-code);
  color: var(--docs-accent-text);
  padding: 14px;
  font-family: var(--docs-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
}

.api-test-result.is-error {
  color: var(--docs-danger);
}

.cli-panel > p {
  max-width: 680px;
  margin: 7px 0 18px;
  color: var(--docs-soft);
  font-size: 13px;
}

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

.cli-facts div {
  border: 1px solid color-mix(in srgb, var(--docs-accent) 28%, var(--docs-line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--docs-surface) 82%, transparent);
  padding: 11px;
}

.cli-facts span {
  display: block;
  color: var(--docs-muted);
  font-size: 10px;
}

.cli-facts strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.response-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.response-codes div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--docs-line);
  border-radius: 9px;
  background: var(--docs-surface);
  padding: 12px;
}

.response-codes code {
  border-radius: 6px;
  background: var(--docs-surface-strong);
  color: var(--docs-warning);
  padding: 2px 6px;
  font-family: var(--docs-mono);
  font-size: 11px;
  font-weight: 800;
}

.response-codes span {
  color: var(--docs-soft);
  font-size: 12px;
}

.docs-empty {
  border: 1px dashed var(--docs-line-strong);
  border-radius: var(--docs-radius);
  color: var(--docs-soft);
  padding: 24px;
}

.docs-footer {
  border-top: 1px solid var(--docs-line);
  color: var(--docs-muted);
}

.docs-footer .docs-shell {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.docs-footer div div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.docs-footer a {
  color: var(--docs-soft);
  text-decoration: none;
}

.docs-footer a:hover {
  color: var(--docs-text);
}

.docs-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 40px));
  border: 1px solid color-mix(in srgb, var(--docs-accent) 45%, var(--docs-line));
  border-radius: 9px;
  background: var(--docs-surface-strong);
  color: var(--docs-text);
  padding: 11px 14px;
  box-shadow: var(--docs-shadow);
  font-size: 13px;
}

@media (max-width: 900px) {
  .docs-shell {
    width: min(calc(100% - 32px), 760px);
  }

  .docs-main {
    padding-top: 32px;
  }

  .docs-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .start-flow {
    grid-template-columns: 1fr;
  }

  .key-connect {
    grid-template-columns: 1fr;
  }

  .key-summary {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .key-summary button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .docs-workspace {
    grid-template-columns: 1fr;
  }

  .tool-sidebar {
    display: none;
  }

  .mobile-tool-picker {
    display: block;
  }
}

@media (max-width: 640px) {
  .docs-shell {
    width: min(calc(100% - 24px), 560px);
  }

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

  .docs-top-nav > a:not(.docs-cabinet-link),
  .docs-top-nav > button {
    display: none;
  }

  .docs-top-nav {
    gap: 0;
  }

  .docs-top-nav .docs-cabinet-link {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0;
  }

  .docs-top-nav .docs-cabinet-link::after {
    content: "Кабинет";
    font-size: 13px;
  }

  .docs-main {
    padding-block: 34px 64px;
  }

  .docs-intro {
    margin-bottom: 26px;
  }

  .docs-intro h1 {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .docs-intro p:not(.docs-kicker) {
    font-size: 15px;
  }

  .key-connect {
    gap: 20px;
    padding: 18px;
  }

  .key-connect-copy {
    display: grid;
  }

  .key-input-row {
    grid-template-columns: 1fr;
  }

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

  .tool-head,
  .doc-controls,
  .response-codes,
  .cli-facts {
    grid-template-columns: 1fr;
  }

  .api-tester {
    grid-template-columns: 1fr;
  }

  .api-tester .docs-primary-action {
    width: 100%;
  }

  .tool-protocol {
    justify-self: start;
  }

  .endpoint-strip {
    grid-template-columns: 1fr auto;
    padding-block: 10px;
  }

  .endpoint-strip span {
    grid-column: 1 / -1;
  }

  .doc-step {
    grid-template-columns: 1fr;
  }

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

  .docs-footer .docs-shell {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Compact documentation routes */
.cabinet-link,
.back-link {
  color: var(--docs-soft);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.cabinet-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--docs-line-strong);
  border-radius: var(--docs-control-radius);
  padding-inline: 14px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
}

.cabinet-link:hover,
.back-link:hover {
  color: var(--docs-text);
}

.page-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.page-heading h1 {
  margin: 0;
  color: var(--docs-text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 840;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-heading p {
  max-width: 64ch;
  margin: 11px 0 0;
  color: var(--docs-soft);
  font-size: 15px;
}

.compact-heading h1 {
  font-size: clamp(28px, 3.2vw, 38px);
}

.docs-index {
  max-width: 1100px;
}

.docs-narrow {
  max-width: 980px;
}

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

.method-card {
  min-height: 174px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  color: var(--docs-text);
  padding: 24px;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.method-card:hover,
.method-card.is-primary {
  border-color: var(--docs-accent);
  background: color-mix(in srgb, var(--docs-surface) 88%, var(--docs-accent) 12%);
}

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

.method-card:active {
  transform: translateY(1px);
}

.method-card strong {
  font-size: 20px;
  font-weight: 830;
  letter-spacing: -0.03em;
}

.method-card span {
  max-width: 46ch;
  color: var(--docs-soft);
  font-size: 14px;
}

.method-card small {
  color: var(--docs-accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.install-panel,
.manual-content {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 24px;
}

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

.instruction > div,
.code-block {
  min-width: 0;
  max-width: 100%;
}

.instruction + .instruction {
  margin-top: 26px;
}

.instruction-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 50%, var(--docs-line));
  border-radius: 9px;
  background: var(--docs-accent-bg);
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 12px;
  font-weight: 820;
}

.instruction h2,
.instruction h3 {
  margin: 3px 0 5px;
  font-size: 16px;
  font-weight: 810;
  letter-spacing: -0.02em;
}

.instruction p {
  margin: 0 0 12px;
  color: var(--docs-soft);
  font-size: 13px;
}

.instruction code,
.path code {
  font-family: var(--docs-mono);
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-control-radius);
  background: var(--docs-code);
}

.code-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--docs-line);
  background: var(--docs-surface-strong);
  padding: 0 10px 0 13px;
}

.code-head span {
  color: var(--docs-muted);
  font-size: 11px;
  font-weight: 760;
}

.code-head button,
.base-strip button,
.single-run button {
  min-height: 32px;
  border: 1px solid var(--docs-line-strong);
  border-radius: 8px;
  background: var(--docs-surface);
  color: var(--docs-text);
  padding-inline: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.code-head button:hover,
.base-strip button:hover,
.single-run button:hover {
  border-color: var(--docs-accent);
}

.code-block pre {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  margin: 0;
  padding: 16px;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
}

.single-run {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--docs-line);
  padding-top: 18px;
}

.single-run span {
  color: var(--docs-muted);
  font-size: 12px;
  font-weight: 760;
}

.single-run code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 12px;
}

.plain-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  border-left: 2px solid var(--docs-accent);
  border-radius: 0 var(--docs-control-radius) var(--docs-control-radius) 0;
  background: var(--docs-accent-bg);
  padding: 14px 16px;
}

.plain-note strong {
  color: var(--docs-accent-text);
  font-size: 13px;
  white-space: nowrap;
}

.plain-note span {
  color: var(--docs-soft);
  font-size: 13px;
}

.manual-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tool-nav {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 8px;
}

.tool-nav button {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--docs-soft);
  padding: 0 11px;
  cursor: pointer;
  text-align: left;
}

.tool-nav button:hover,
.tool-nav button.is-active {
  border-color: color-mix(in srgb, var(--docs-accent) 55%, var(--docs-line));
  background: var(--docs-accent-bg);
  color: var(--docs-text);
}

.tool-nav button span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-nav button small {
  color: var(--docs-muted);
  font-family: var(--docs-mono);
  font-size: 9px;
}

.tool-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.tool-title h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 830;
  letter-spacing: -0.035em;
}

.tool-title p {
  max-width: 62ch;
  margin: 6px 0 0;
  color: var(--docs-soft);
  font-size: 13px;
}

.tool-title > span {
  border: 1px solid var(--docs-line-strong);
  border-radius: 7px;
  color: var(--docs-muted);
  padding: 4px 7px;
  font-family: var(--docs-mono);
  font-size: 9px;
  white-space: nowrap;
}

.base-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--docs-line);
  border-radius: var(--docs-control-radius);
  background: var(--docs-code);
  padding: 10px;
}

.base-strip b {
  color: var(--docs-muted);
  font-size: 10px;
}

.base-strip code {
  min-width: 0;
  overflow: hidden;
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-start-card {
  grid-column: 1 / -1;
}

.quickstart-page {
  padding-top: 42px;
  padding-bottom: 64px;
}

.quickstart-page .back-link {
  margin-bottom: 28px;
}

.quickstart-article {
  max-width: 680px;
}

.quickstart-article header {
  margin-bottom: 34px;
}

.quickstart-article h1 {
  margin: 0 0 8px;
  color: var(--docs-text);
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.quickstart-article ol {
  margin: 0;
  padding-left: 27px;
  color: var(--docs-text);
}

.quickstart-article li {
  padding-left: 9px;
  font-size: 17px;
  font-weight: 590;
  line-height: 1.65;
}

.quickstart-article li + li {
  margin-top: 15px;
}

.quickstart-article a {
  color: var(--docs-accent-strong);
  text-underline-offset: 3px;
}

.quickstart-article > p {
  max-width: 68ch;
  margin: 32px 0 0;
  color: var(--docs-soft);
  font-size: 16px;
  line-height: 1.7;
}

.quickstart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.quickstart-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--docs-line-strong);
  border-radius: var(--docs-control-radius);
  padding: 0 17px;
  color: var(--docs-text);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.quickstart-actions a:hover {
  border-color: var(--docs-accent);
  transform: translateY(-1px);
}

.quickstart-actions a:active {
  transform: translateY(1px);
}

.quickstart-actions .quickstart-primary {
  border-color: var(--docs-accent);
  background: var(--docs-accent);
  color: #17100d;
}

.quickstart-endpoints {
  margin-top: 42px;
  border-top: 1px solid var(--docs-line);
  padding-top: 26px;
}

.quickstart-endpoints h2 {
  margin: 0 0 14px;
  color: var(--docs-text);
  font-size: 18px;
}

.quickstart-endpoints p {
  margin: 8px 0;
  color: var(--docs-soft);
}

.quickstart-endpoints code {
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.quickstart-paste-note code {
  color: var(--docs-accent-text);
  font-family: var(--docs-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.quickstart-paste-note {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  border-radius: var(--docs-control-radius);
  background: var(--docs-surface-strong);
  padding: 15px 16px;
}

.quickstart-paste-note strong {
  color: var(--docs-text);
  font-size: 14px;
}

.quickstart-paste-note span {
  color: var(--docs-soft);
  font-size: 13px;
  line-height: 1.5;
}

.is-embedded body {
  background: transparent;
}

.is-embedded .docs-header {
  display: none;
}

.is-embedded .docs-main {
  width: 100%;
  max-width: none;
  padding: 24px;
}

.is-embedded .page-heading {
  margin-bottom: 20px;
}

.is-embedded .page-heading h1 {
  font-size: 28px;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .method-grid,
  .manual-layout {
    grid-template-columns: 1fr;
  }

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

  .tool-nav button small {
    display: none;
  }

  .single-run,
  .plain-note {
    grid-template-columns: 1fr;
  }

  .single-run button {
    justify-self: start;
  }

  .is-embedded .docs-main {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .install-panel,
  .manual-content {
    padding: 18px;
  }

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

  .base-strip {
    grid-template-columns: 1fr auto;
  }

  .base-strip b {
    grid-column: 1 / -1;
  }

  .quickstart-page {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .quickstart-article li {
    font-size: 16px;
  }

  .quickstart-actions {
    display: grid;
  }
}
