:root {
  --ink: #172036;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e7eaf0;
  --line-strong: #d6dbe5;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --sidebar: #101426;
  --sidebar-2: #171c33;
  --primary: #6657e8;
  --primary-dark: #4f43c9;
  --primary-soft: #efedff;
  --cyan: #16b5c8;
  --green: #16a66a;
  --green-soft: #e9f9f1;
  --orange: #e77728;
  --code: #11182a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 16px 42px rgba(25, 31, 58, .08);
  --sidebar-width: 258px;
  --console-width: 392px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
code, pre, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.docs-shell { min-height: 100vh; }

.docs-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  padding: 24px 18px 18px;
  overflow-y: auto;
  color: #d5d9e8;
  background:
    radial-gradient(circle at 25% 5%, rgba(102, 87, 232, .22), transparent 29%),
    linear-gradient(180deg, var(--sidebar), #0b0f1e 100%);
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 7px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 11px;
  background: linear-gradient(145deg, #7568f2, #4c3fca);
  box-shadow: 0 9px 22px rgba(102, 87, 232, .35);
  transform: rotate(-2deg);
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 12px;
  height: 4px;
  background: #fff;
  border-radius: 4px;
  transform: rotate(-42deg);
}

.brand-mark i:first-child { top: 10px; left: 8px; }
.brand-mark i:last-child { right: 7px; bottom: 10px; }

.brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
  letter-spacing: .12em;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #8e96b2;
  font-size: 10px;
  letter-spacing: .08em;
}

.environment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 4px 22px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
}

.environment-card span:last-child { min-width: 0; }
.environment-card strong { display: block; color: #f7f8ff; font-size: 12px; }
.environment-card small { display: block; color: #8088a4; font-size: 10px; }

.live-dot,
.console-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #32d491;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(50, 212, 145, .1);
}

.sidebar-nav { flex: 1; }
.nav-label {
  margin: 21px 10px 8px;
  color: #68718e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 40px;
  margin: 2px 0;
  padding: 9px 11px;
  align-items: center;
  gap: 10px;
  color: #aeb4ca;
  border-radius: 9px;
  font-size: 12px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}

.nav-link.active::before {
  position: absolute;
  left: -18px;
  width: 3px;
  height: 21px;
  content: "";
  background: #7c6ef4;
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 22px;
  color: #7f88a7;
  font-size: 13px;
  text-align: center;
}

.endpoint-link { gap: 8px; }
.endpoint-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.method-dot {
  display: inline-grid;
  width: 36px;
  height: 19px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
}

.method-dot.get { color: #4ae0aa; background: rgba(28, 186, 125, .14); }
.method-dot.post { color: #afa7ff; background: rgba(118, 101, 239, .17); }

.sidebar-footer {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  padding: 16px 8px 0;
  color: #606a87;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 10px;
}

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

.docs-stage { margin-left: var(--sidebar-width); }

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 66px;
  padding: 0 28px;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.search-wrap {
  display: flex;
  width: min(480px, 46vw);
  height: 38px;
  padding: 0 11px;
  align-items: center;
  gap: 8px;
  background: #f3f5f9;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.search-wrap:focus-within {
  background: #fff;
  border-color: #c9c3ff;
  box-shadow: 0 0 0 3px rgba(102, 87, 232, .09);
}

.search-wrap > span { color: #929aab; font-size: 20px; line-height: 1; }
.search-wrap input { width: 100%; min-width: 0; color: var(--ink); background: none; border: 0; outline: 0; font-size: 12px; }
.search-wrap input::placeholder { color: #9ca4b5; }
.search-wrap kbd,
.send-request kbd {
  padding: 2px 6px;
  color: #8a92a3;
  background: #fff;
  border: 1px solid #dde1e8;
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 9px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.secure-label {
  display: flex;
  margin-right: 4px;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
}

.secure-label i { width: 7px; height: 7px; background: #22ba79; border-radius: 50%; }

.primary-button,
.ghost-button,
.run-button,
.text-button {
  display: inline-flex;
  min-height: 36px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 8px 20px rgba(102, 87, 232, .18);
}

.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(102, 87, 232, .25); }
.ghost-button { color: #42495b; background: #fff; border: 1px solid var(--line-strong); }
.ghost-button:hover { border-color: #b9b2fa; transform: translateY(-1px); }
.text-button { padding: 0 4px; color: #4e5567; }
.text-button span { color: var(--primary); font-size: 15px; transition: transform .2s ease; }
.text-button:hover span { transform: translateX(3px); }

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--console-width);
  align-items: start;
}

.docs-content {
  width: min(100%, 970px);
  min-width: 0;
  margin: 0 auto;
  padding: 56px clamp(26px, 4vw, 64px) 100px;
}

.hero-section {
  display: grid;
  min-height: 430px;
  margin-bottom: 68px;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
}

.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.eyebrow i { width: 22px; height: 1px; background: #c8c2fa; }
.eyebrow span:last-child { color: #99a0b1; }

.hero-copy h1 {
  margin: 20px 0 20px;
  color: #151b2c;
  font-size: clamp(43px, 5vw, 67px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.01;
}

.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { max-width: 600px; margin: 0; color: #697184; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; margin-top: 30px; align-items: center; gap: 18px; }
.hero-actions .primary-button { min-height: 43px; padding: 0 19px; }

.hero-panel {
  position: relative;
  min-height: 340px;
  padding: 30px;
  overflow: hidden;
  color: #fff;
  background: #171c33;
  border: 1px solid #252b49;
  border-radius: 24px;
  box-shadow: 0 30px 55px rgba(25, 30, 53, .22);
}

.hero-panel::after {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -65px;
  bottom: -70px;
  content: "";
  background: radial-gradient(circle, rgba(108, 91, 237, .65), rgba(108, 91, 237, 0) 68%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.metric-feature,
.metric-row,
.mode-flow { position: relative; z-index: 1; }
.metric-feature { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.metric-index { color: #757e9b; font-size: 10px; letter-spacing: .14em; }
.metric-feature strong { display: block; margin-top: 17px; font-size: 64px; font-weight: 720; letter-spacing: -.06em; line-height: 1; }
.metric-feature p { margin: 7px 0 0; color: #9ea6c1; font-size: 11px; }
.metric-row { display: grid; margin-top: 21px; grid-template-columns: 1fr 1fr; gap: 18px; }
.metric-row div { display: grid; gap: 5px; }
.metric-row span { color: #7f88a5; font-size: 9px; }
.metric-row strong { font-size: 17px; letter-spacing: -.02em; }
.mode-flow { display: flex; margin-top: 29px; align-items: center; gap: 8px; color: #a8afc7; font-family: monospace; font-size: 9px; }
.mode-flow i { width: 18px; height: 1px; background: #555e7e; }
.mode-flow b { padding: 5px 8px; color: #fff; background: var(--primary); border-radius: 5px; }

.content-section,
.endpoint-section {
  margin: 0 0 70px;
  scroll-margin-top: 90px;
}

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

.section-heading > div { flex: 0 0 auto; }
.section-kicker { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.section-heading h2 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.035em; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 12px; }
.section-heading code,
.param-row code,
.notice-card code { padding: 2px 5px; color: #5649cf; background: var(--primary-soft); border-radius: 4px; font-size: .92em; }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.auth-card {
  position: relative;
  padding: 23px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(30, 37, 64, .035);
}

.auth-card.recommended { border-color: #cbc5fb; box-shadow: 0 12px 32px rgba(102, 87, 232, .08); }
.auth-card.recommended::after { position: absolute; top: -45px; right: -45px; width: 100px; height: 100px; content: ""; background: var(--primary-soft); border-radius: 50%; }
.card-topline { display: flex; position: relative; z-index: 1; align-items: center; justify-content: space-between; }
.card-topline > span { padding: 3px 7px; color: #5549cd; background: #efedff; border-radius: 5px; font-size: 9px; font-weight: 800; }
.card-topline code { color: #8b93a5; font-size: 10px; }
.auth-card h3 { margin: 18px 0 6px; font-size: 16px; }
.auth-card > p { min-height: 42px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }

.copy-field,
.base-url-card {
  display: flex;
  min-width: 0;
  align-items: center;
}

.copy-field { height: 39px; padding-left: 11px; background: #f6f7fa; border: 1px solid #eceef3; border-radius: 8px; }
.copy-field code { min-width: 0; overflow: hidden; color: #4f5667; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.copy-field .copy-button { margin-left: auto; }

.copy-button {
  height: 30px;
  padding: 0 10px;
  color: #697184;
  background: transparent;
  border: 0;
  border-left: 1px solid #e3e6ed;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.copy-button:hover { color: var(--primary); }

.base-url-card {
  min-height: 58px;
  margin-top: 14px;
  padding: 0 16px;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.base-url-card > span { color: #8d95a7; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.base-url-card code { min-width: 0; color: #343b4d; font-size: 11px; overflow-wrap: anywhere; }
.base-url-card .copy-button { margin-left: auto; border-left: 0; }

.endpoint-section {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(30, 37, 64, .045);
}

.endpoint-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; }
.method-badge {
  display: inline-grid;
  width: 52px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  font-family: monospace;
  font-size: 10px;
  font-weight: 800;
}

.method-badge.get { color: #0e8b59; background: var(--green-soft); }
.method-badge.post { color: #574bd1; background: var(--primary-soft); }
.endpoint-heading code { display: block; color: #747d91; font-size: 10px; }
.endpoint-heading h2 { margin: 1px 0 0; font-size: 20px; letter-spacing: -.025em; }
.run-button { min-height: 34px; color: #574bd1; background: #fff; border: 1px solid #cdc7fa; }
.run-button:hover { background: var(--primary-soft); transform: translateY(-1px); }
.endpoint-summary { max-width: 720px; margin: 18px 0 16px; color: var(--muted); font-size: 12px; }
.endpoint-meta { display: flex; padding: 12px 0; flex-wrap: wrap; gap: 18px; border-top: 1px solid #f0f1f5; border-bottom: 1px solid #f0f1f5; color: #81899a; font-size: 10px; }
.endpoint-meta span { display: inline-flex; align-items: center; gap: 6px; }
.endpoint-meta strong { color: #555d70; font-weight: 700; }
.endpoint-meta i { width: 7px; height: 7px; background: #31bf7d; border-radius: 50%; }
.endpoint-meta .auth-required i { background: var(--orange); }

.subsection { margin-top: 25px; }
.subsection-title,
.code-heading,
.editor-label,
.response-toolbar { display: flex; align-items: center; justify-content: space-between; }
.subsection-title { margin-bottom: 10px; }
.subsection-title h3 { margin: 0; font-size: 13px; }
.subsection-title span { color: #949cad; font-family: monospace; font-size: 9px; }

.param-table { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.param-row { display: grid; min-height: 48px; padding: 10px 12px; grid-template-columns: 1.35fr .62fr .55fr 2.5fr; align-items: center; gap: 12px; border-top: 1px solid #eef0f4; font-size: 10px; }
.param-row:first-child { border-top: 0; }
.param-row > code { color: #343c50; background: transparent; padding: 0; overflow-wrap: anywhere; }
.param-row > span { color: #858da0; font-family: monospace; }
.param-row > b { color: #737c8f; font-size: 9px; font-weight: 700; }
.param-row > p { margin: 0; color: #697184; }
.param-header { min-height: 35px; color: #8b93a4; background: #f7f8fa; font-size: 9px; font-weight: 800; }

.response-example,
.code-tabs { margin-top: 20px; overflow: hidden; background: var(--code); border: 1px solid #202a43; border-radius: 12px; }
.code-heading { min-height: 39px; padding: 0 12px 0 15px; color: #aab2c9; background: #151e32; border-bottom: 1px solid #253049; font-size: 9px; font-weight: 800; }
.code-heading .copy-button { color: #8994ad; border-left-color: #2b3650; }
pre { margin: 0; tab-size: 2; }
.response-example pre,
.code-tabs pre { padding: 18px; overflow: auto; color: #d8deed; font-size: 10px; line-height: 1.75; }

.notice-card { display: flex; margin-top: 20px; padding: 14px 15px; align-items: flex-start; gap: 15px; background: #fbfaff; border: 1px solid #e2ddff; border-radius: 10px; }
.notice-card > span { flex: 0 0 auto; padding: 3px 7px; color: #5c50d6; background: #eeebff; border-radius: 5px; font-size: 9px; font-weight: 800; }
.notice-card p { margin: 0; color: #696f82; font-size: 10px; }

.schema-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.schema-grid article { min-height: 125px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.schema-grid article > code { color: #4e43c4; font-size: 11px; font-weight: 700; }
.schema-grid article > span { float: right; color: #939bac; font-family: monospace; font-size: 9px; }
.schema-grid article > p { margin: 19px 0 0; color: var(--muted); font-size: 10px; }

.api-console {
  position: relative;
  min-height: calc(100vh - 66px);
  background: #fff;
  border-left: 1px solid var(--line);
}

.console-sticky { position: sticky; top: 66px; padding: 22px 20px 28px; }
.console-header { display: flex; margin-bottom: 21px; align-items: center; justify-content: space-between; }
.console-header > div { display: flex; align-items: center; gap: 9px; }
.console-header strong { font-size: 14px; }
.console-header > span { padding: 3px 7px; color: #0f9560; background: var(--green-soft); border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .1em; }

.field-label { display: flex; margin: 14px 0 6px; color: #5d6577; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.field-label span { margin-left: auto; color: #9da4b3; font-weight: 400; letter-spacing: 0; }
.api-console select,
.secret-field {
  width: 100%;
  height: 40px;
  color: #363d4e;
  background: #f7f8fa;
  border: 1px solid #e2e5eb;
  border-radius: 9px;
}

.api-console select { padding: 0 10px; outline: 0; cursor: pointer; font-family: monospace; font-size: 10px; }
.api-console select:focus,
.secret-field:focus-within { border-color: #aaa1f4; box-shadow: 0 0 0 3px rgba(102, 87, 232, .08); }
.secret-field { display: flex; align-items: center; }
.secret-field input { width: 100%; min-width: 0; height: 100%; padding: 0 11px; color: #343b4d; background: transparent; border: 0; outline: 0; font-size: 10px; }
.secret-field button,
#format-json,
#copy-response { height: 100%; padding: 0 10px; color: #767f91; background: transparent; border: 0; cursor: pointer; font-size: 9px; }
.secret-field button:hover,
#format-json:hover,
#copy-response:hover { color: var(--primary); }

.editor-label .field-label { margin-right: auto; }
#format-json { height: 26px; margin-top: 8px; }
.editor-shell { display: grid; height: 226px; overflow: hidden; grid-template-columns: 29px 1fr; background: #12192a; border: 1px solid #202a40; border-radius: 10px; }
.line-rail { padding-top: 12px; color: #4e5a72; background: #0e1422; border-right: 1px solid #212b40; font-family: monospace; font-size: 9px; line-height: 1.72; text-align: center; user-select: none; }
#console-body { width: 100%; height: 100%; padding: 12px; resize: none; color: #d9deea; background: transparent; border: 0; outline: 0; font-family: monospace; font-size: 9px; line-height: 1.72; }

.send-request {
  display: flex;
  width: 100%;
  height: 42px;
  margin-top: 14px;
  padding: 0 12px 0 15px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 9px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(102, 87, 232, .2);
  transition: background .2s ease, transform .2s ease;
}

.send-request:hover { background: var(--primary-dark); transform: translateY(-1px); }
.send-request:disabled { opacity: .65; cursor: wait; transform: none; }
.send-request kbd { color: rgba(255,255,255,.75); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); }

.response-panel { margin-top: 18px; overflow: hidden; background: #f8f9fb; border: 1px solid #e3e6ec; border-radius: 10px; }
.response-toolbar { min-height: 38px; padding: 0 8px 0 11px; border-bottom: 1px solid #e3e6ec; }
.response-toolbar > div { display: flex; align-items: center; gap: 8px; }
#response-status { padding: 3px 6px; border-radius: 4px; font-family: monospace; font-size: 8px; font-weight: 800; }
.status-idle { color: #70798c; background: #e9ecf1; }
.status-ok { color: #087e50; background: #dff5e9; }
.status-error { color: #c04444; background: #fae5e5; }
#response-time { color: #8b93a3; font-family: monospace; font-size: 8px; }
#copy-response { height: 29px; }
#console-response { height: 190px; padding: 13px; overflow: auto; color: #455066; background: #f8f9fb; font-size: 9px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.console-note { display: flex; margin: 11px 2px 0; align-items: center; gap: 7px; color: #9299a9; font-size: 8px; }
.console-note span { color: #28bd7b; font-size: 8px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #171d30;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }
.sidebar-backdrop { display: none; }
.search-hidden { display: none !important; }
.no-results { padding: 45px 20px; color: #6f7789; background: #fff; border: 1px dashed #d7dbe4; border-radius: 14px; text-align: center; }
.no-results strong { color: #343b4e; font-size: 15px; }
.no-results p { margin: 6px 0 0; font-size: 11px; }

:focus-visible { outline: 3px solid rgba(102, 87, 232, .28); outline-offset: 2px; }

@media (max-width: 1380px) {
  :root { --console-width: 355px; }
  .docs-content { padding-inline: 38px; }
  .hero-section { grid-template-columns: 1fr 320px; gap: 42px; }
  .hero-copy h1 { font-size: 50px; }
}

@media (max-width: 1160px) {
  .docs-layout { display: block; }
  .docs-content { width: 100%; max-width: 980px; }
  .api-console { min-height: auto; border-top: 1px solid var(--line); border-left: 0; }
  .console-sticky { position: static; display: grid; max-width: 980px; margin: 0 auto; padding: 34px 38px 60px; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .console-header, .send-request, .response-panel, .console-note { grid-column: 1 / -1; }
  .response-panel { margin-top: 20px; }
  #console-response { height: 230px; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 248px; }
  .docs-sidebar { transform: translateX(-101%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .docs-sidebar.open { transform: translateX(0); }
  .docs-stage { margin-left: 0; }
  .sidebar-toggle { display: inline-grid; place-items: center; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; display: block; background: rgba(12,16,31,.46); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .topbar-actions .secure-label, .topbar-actions .ghost-button { display: none; }
  .search-wrap { width: 100%; }
  .hero-section { min-height: 0; padding-top: 10px; grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
}

@media (max-width: 680px) {
  .docs-topbar { height: 60px; padding: 0 14px; gap: 10px; }
  .search-wrap { height: 36px; }
  .search-wrap kbd, .topbar-actions { display: none; }
  .docs-content { padding: 34px 16px 70px; }
  .hero-section { margin-bottom: 58px; gap: 28px; }
  .hero-copy h1 { margin-top: 15px; font-size: 42px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-button { justify-content: flex-start; }
  .hero-panel { min-height: 315px; padding: 25px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .auth-grid, .schema-grid { grid-template-columns: 1fr; }
  .endpoint-section { padding: 20px 17px; border-radius: 17px; }
  .endpoint-heading { grid-template-columns: auto 1fr; }
  .endpoint-heading .run-button { display: none; }
  .endpoint-meta { gap: 10px 16px; }
  .param-table { border: 0; }
  .param-row { margin-bottom: 8px; padding: 12px; grid-template-columns: 1fr auto; gap: 5px 12px; background: #fafbfc; border: 1px solid var(--line); border-radius: 9px; }
  .param-row > b { text-align: right; }
  .param-row > p { grid-column: 1 / -1; }
  .param-header { display: none; }
  .base-url-card { align-items: flex-start; flex-direction: column; gap: 4px; padding: 13px 15px; }
  .base-url-card .copy-button { position: absolute; right: 22px; }
  .console-sticky { display: block; padding: 30px 16px 50px; }
  .editor-shell { height: 240px; }
  .toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}

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