/* Earth Plus FM · Developer reference. Local, dependency-free styles. */
:root {
  color-scheme: light;
  --page: #f8f9fd;
  --surface: #ffffff;
  --surface-soft: #f3f5fa;
  --surface-hover: #eef0fb;
  --ink: #182139;
  --muted: #647089;
  --subtle: #8390a6;
  --line: #e4e8f1;
  --line-strong: #d2d9e8;
  --accent: #6251e8;
  --accent-hover: #5140d4;
  --accent-soft: #eeebff;
  --accent-ink: #5948d3;
  --code: #111a2f;
  --code-raised: #18223a;
  --code-line: #2b3651;
  --code-text: #dce5f7;
  --sidebar: #12192c;
  --sidebar-muted: #95a1bb;
  --sidebar-line: #293149;
  --sidebar-width: 248px;
  --topbar-height: 68px;
  --radius: 16px;
  --shadow: 0 12px 38px -24px rgba(28, 39, 77, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111725;
  --surface: #192134;
  --surface-soft: #202a3e;
  --surface-hover: #2b3150;
  --ink: #e8edf8;
  --muted: #a5b0c6;
  --subtle: #929eb6;
  --line: #2b354b;
  --line-strong: #3b4761;
  --accent: #9a8dff;
  --accent-hover: #b1a7ff;
  --accent-soft: #302c51;
  --accent-ink: #b0a4ff;
  --code: #0d1423;
  --code-raised: #151e31;
  --code-line: #29334a;
  --sidebar: #0c1220;
  --sidebar-line: #242d42;
  --shadow: 0 16px 42px -24px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: none; }
svg { flex: 0 0 auto; vertical-align: middle; }
button svg, a svg { pointer-events: none; }
img, svg { max-width: 100%; }
pre, code, kbd { font-family: var(--mono); }
pre { margin: 0; }
code { font-size: .9em; }
::selection { color: var(--ink); background: var(--accent-soft); }
:focus-visible { outline: 3px solid #8b7aff; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 200; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.topbar { height: var(--topbar-height); position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 32px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
@supports (backdrop-filter: blur(16px)) {
  .topbar { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); }
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 192px; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #8374ff, #5543d6); color: #fff; box-shadow: 0 4px 12px rgba(98, 81, 232, .18); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 15px; font-weight: 760; letter-spacing: -.35px; }
.brand-copy small { margin-top: 4px; font-size: 10px; letter-spacing: 2px; font-weight: 750; color: var(--muted); text-transform: uppercase; }
.header-links { display: flex; align-self: stretch; align-items: center; gap: 28px; }
.header-links a, .header-links button { position: relative; display: inline-flex; align-items: center; height: 100%; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.header-links .is-active, .header-links a:hover, .header-links button:hover { color: var(--accent-ink); }
.header-links .is-active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button, .lang-button, .close-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 35px; height: 35px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.icon-button svg, .close-button svg { width: 17px; height: 17px; }
.lang-button { padding: 7px 10px; font-size: 12px; font-weight: 750; letter-spacing: .5px; }
.icon-button:hover, .lang-button:hover, .close-button:hover { background: var(--surface-soft); color: var(--ink); border-color: var(--line-strong); }
.mobile-menu-button { display: none; }

/* Navigation */
.app-shell { min-height: calc(100svh - var(--topbar-height)); }
.sidebar { position: fixed; z-index: 45; top: var(--topbar-height); bottom: 0; left: 0; width: var(--sidebar-width); display: flex; flex-direction: column; border-right: 1px solid var(--sidebar-line); background: var(--sidebar); color: #d3dcf0; }
.sidebar-inner { min-height: 0; flex: 1; overflow-y: auto; padding: 25px 18px 24px; scrollbar-width: thin; scrollbar-color: #39445e transparent; }
.sidebar-search { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 39px; margin: 0 0 27px; padding: 9px 10px; border: 1px solid #343c55; border-radius: 9px; background: rgba(255, 255, 255, .035); color: #b9c4dc; text-align: left; font-size: 13px; transition: border-color .15s, background .15s; }
.sidebar-search:hover { border-color: #6f63be; background: rgba(147, 130, 255, .08); }
.sidebar-search svg { width: 16px; height: 16px; color: #909dbb; }
.search-key { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; min-width: 22px; justify-content: center; height: 22px; padding: 0 5px; border: 1px solid #414b65; border-radius: 4px; color: #aebbd5; font: 11px var(--mono); }
.nav-group { margin-top: 25px; }
.nav-group:first-child { margin-top: 0; }
.nav-group-title { margin: 0 10px 9px; color: #8e9bb7; font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: 1.45px; text-transform: uppercase; }
.nav-link { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 9px; margin: 3px 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #bac6df; font-size: 13px; line-height: 1.45; text-align: left; transition: background .15s, color .15s; }
.nav-link svg { width: 15px; height: 15px; color: #92a0bd; }
.nav-link:hover { color: #f5f7ff; background: rgba(255, 255, 255, .055); }
.nav-link.is-active { color: #ece9ff; border-color: rgba(167, 150, 255, .14); background: linear-gradient(100deg, rgba(141, 121, 251, .22), rgba(141, 121, 251, .1)); font-weight: 650; }
.nav-link.is-active svg { color: #b3a5ff; }
.nav-method { display: inline-block; width: 33px; flex: 0 0 33px; color: #6ed9b9; font: 10px/1.4 var(--mono); font-weight: 750; letter-spacing: -.3px; }
.nav-method.post, .nav-method[data-method="POST"] { color: #e8bc76; }
.nav-method.head, .nav-method[data-method="HEAD"] { color: #95baff; }
.sidebar-footer { margin: 0 18px 20px; padding: 15px 10px 0; border-top: 1px solid var(--sidebar-line); }
.base-label { display: block; color: #8897b6; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.base-address { display: block; margin-top: 5px; color: #c0cbe3; font: 11px/1.7 var(--mono); overflow-wrap: anywhere; }
.sidebar-footer p { margin: 8px 0 0; font-size: 11px; color: #8897b6; }
.sidebar-overlay { display: none; }

/* Content and landing page */
.content { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); padding: 40px 46px 0; }
.overview { max-width: 1270px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--accent-ink); font-size: 11px; line-height: 1.5; font-weight: 750; letter-spacing: 1.65px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 325px; padding: 24px 0 38px; }
.hero h1 { max-width: 790px; margin: 0; font-size: clamp(38px, 3.7vw, 58px); line-height: 1.13; font-weight: 760; letter-spacing: -2.2px; }
.hero h1 em, .hero h1 .accent { color: var(--accent-ink); font-style: normal; }
.hero p { max-width: 590px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero .eyebrow { max-width: none; margin: 0 0 18px; color: var(--accent-ink); font-size: 11px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.4; font-weight: 650; text-align: center; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.button svg { width: 16px; height: 16px; }
.button:hover { background: var(--surface-soft); border-color: #b1a8f0; box-shadow: 0 2px 7px rgba(44, 42, 98, .05); }
.button.primary { border-color: #6552e9; background: #6552e9; color: #fff; box-shadow: 0 4px 12px rgba(101, 82, 233, .18); }
.button.primary:hover { border-color: #5543d7; background: #5543d7; box-shadow: 0 5px 16px rgba(101, 82, 233, .25); }
.button.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button.small { min-height: 32px; padding: 7px 11px; font-size: 12px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 28px; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; border-left: 1px solid var(--line); font-size: 12px; }
.meta-item:first-child { padding-left: 0; border-left: 0; }
.meta-item svg { width: 14px; height: 14px; color: var(--subtle); }
.overview-orbit { position: absolute; z-index: -1; right: 13px; top: 31px; width: 244px; height: 244px; border: 1px solid rgba(129, 109, 232, .14); border-radius: 50%; opacity: .8; pointer-events: none; }
.overview-orbit::before { content: ""; position: absolute; inset: 29px; border: 1px solid rgba(129, 109, 232, .17); border-radius: 50%; }
.overview-orbit::after { content: ""; position: absolute; inset: -34px; border: 1px solid rgba(129, 109, 232, .07); border-radius: 50%; }
.orbit-core { position: absolute; inset: 69px; display: grid; place-items: center; border: 1px solid rgba(129, 109, 232, .2); border-radius: 28px; transform: rotate(-9deg); color: var(--accent-ink); background: linear-gradient(145deg, var(--surface), var(--accent-soft)); box-shadow: 0 16px 30px rgba(108, 86, 219, .08); }
.orbit-core svg { width: 42px; height: 42px; transform: rotate(9deg); }
.orbit-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #9b8ce9; top: 48px; right: 18px; box-shadow: 0 0 0 6px var(--page); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 12px 0 19px; }
.section-heading h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.6px; }
.section-heading p, .section-heading span { margin: 0; font-size: 12px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.category-card { position: relative; display: flex; align-items: flex-start; flex-direction: column; min-width: 0; min-height: 175px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 4px 15px -10px rgba(27, 43, 88, .13); transition: border-color .18s, box-shadow .18s, transform .18s; }
.category-card:hover { border-color: #bdb3f0; box-shadow: 0 9px 24px -15px rgba(99, 78, 196, .3); transform: translateY(-2px); }
.category-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 15px; border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.category-icon svg { width: 19px; height: 19px; }
.category-card h3, .category-card strong { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.category-card p { margin: 7px 0 20px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.category-count { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; color: var(--subtle); font-size: 11px; }
.category-card > svg:last-child { position: absolute; right: 21px; top: 25px; width: 15px; height: 15px; color: var(--subtle); }
.quickstart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; margin-top: 38px; padding: 30px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.quickstart-copy .eyebrow { margin-bottom: 12px; font-size: 10px; }
.quickstart-copy h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.35; letter-spacing: -.7px; }
.quickstart-copy p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.quickstart-copy ol { margin: 20px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.quickstart-copy li { padding-left: 5px; margin: 8px 0; }
.quickstart-copy code { padding: 2px 5px; background: var(--surface-soft); border-radius: 4px; color: var(--accent-ink); overflow-wrap: anywhere; }
.quick-code { min-width: 0; overflow: hidden; border: 1px solid var(--code-line); border-radius: 11px; background: var(--code); color: var(--code-text); }
.reference-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.reference-principles > div { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.reference-principles > div > svg { width: 19px; height: 19px; margin-bottom: 12px; color: var(--accent-ink); }
.reference-principles h3 { margin: 0 0 7px; font-size: 13px; line-height: 1.5; font-weight: 700; letter-spacing: -.15px; }
.reference-principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* Reference view */
.endpoint-view { max-width: 1400px; margin: 0 auto; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 20px; margin-bottom: 23px; color: var(--subtle); font-size: 11px; }
.breadcrumbs button, .breadcrumbs a { padding: 0; border: 0; background: none; color: var(--muted); font-size: inherit; }
.breadcrumbs button:hover, .breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs svg { width: 13px; height: 13px; }
.endpoint-heading { margin-bottom: 22px; }
.endpoint-heading h1 { margin: 12px 0 10px; font-size: 33px; line-height: 1.22; letter-spacing: -1.2px; font-weight: 740; }
.endpoint-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.method-pill { display: inline-flex; justify-content: center; align-items: center; min-width: 43px; padding: 4px 9px; border: 1px solid #b4e2d1; border-radius: 6px; background: #e9f7f0; color: #146b4e; font: 11px/1.3 var(--mono); font-weight: 750; letter-spacing: .2px; }
.method-pill.post { background: #fff5e7; border-color: #f1d6a9; color: #985b09; }
.method-pill.head { background: #e9f1ff; border-color: #bed3f5; color: #295db1; }
.access-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.access-badge svg { width: 11px; height: 11px; }
html[data-theme="dark"] .method-pill { background: #173c33; border-color: #285b4b; color: #82d6b7; }
html[data-theme="dark"] .method-pill.post { background: #3d3021; border-color: #655033; color: #efc17c; }
html[data-theme="dark"] .method-pill.head { background: #213250; border-color: #334e76; color: #9ec4ff; }
.endpoint-summary { max-width: 850px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.route-bar { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 22px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.route-bar code { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; color: var(--ink); }
.route-bar button { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 5px; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--muted); }
.route-bar button:hover { background: var(--accent-soft); color: var(--accent-ink); }
.route-bar button svg { width: 14px; height: 14px; }
.endpoint-notes { margin: 18px 0 26px; }
.note { position: relative; display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid #a79be8; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.8; }
.note svg { width: 14px; height: 14px; margin-top: 2px; color: var(--accent-ink); }
.note p { margin: 0; }
.note code { color: var(--ink); }
.reference-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: start; gap: 28px; margin-top: 26px; }
.reference-main { min-width: 0; }
.section-tabs { display: flex; align-items: center; gap: 22px; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-tabs a, .section-tabs button { border: 0; padding: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.section-tabs a:hover, .section-tabs button:hover { color: var(--accent-ink); }
.section-block { min-width: 0; margin-bottom: 32px; scroll-margin-top: 92px; }
.section-block > h2, .section-block .section-heading h2 { font-size: 17px; line-height: 1.4; letter-spacing: -.4px; }
.section-block > h2 { margin: 0 0 14px; }
.section-block > p { margin: 11px 0 15px; color: var(--muted); font-size: 13px; }
.params-caption { display: block; margin: 14px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.example-caption { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.request-panel .example-caption, .quick-code .example-caption { margin: 0; padding: 11px 18px; color: #a7b7d3; }
.params-table, .fields-table { width: 100%; }
div.params-table, div.fields-table, .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.params-table table, .fields-table table, table.params-table, table.fields-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.params-table, table.fields-table { border: 1px solid var(--line); background: var(--surface); }
.params-table th, .fields-table th { padding: 11px 14px; background: var(--surface-soft); color: var(--muted); text-align: left; font-size: 10px; letter-spacing: .7px; font-weight: 700; text-transform: uppercase; }
.params-table td, .fields-table td { vertical-align: top; padding: 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.params-table th:first-child, .fields-table th:first-child { width: 32%; }
.params-table td:first-child, .fields-table td:first-child { color: var(--ink); }
.params-table td p, .fields-table td p { margin: 0 0 5px; }
.params-table td:last-child, .fields-table td:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; }
.param-name { display: block; margin-bottom: 5px; color: var(--ink); font: 12px/1.5 var(--mono); font-weight: 650; overflow-wrap: anywhere; }
.required-tag, .optional-tag { display: inline-flex; padding: 2px 5px; border-radius: 4px; font-size: 10px; font-weight: 650; line-height: 1.5; }
.required-tag { color: #a04f57; background: #fff0f1; }
.optional-tag { color: var(--subtle); background: var(--surface-soft); }
html[data-theme="dark"] .required-tag { color: #f1a3ab; background: #472d37; }
.param-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: var(--subtle); font-size: 11px; }
.param-meta code { max-width: 100%; padding: 1px 5px; border-radius: 4px; background: var(--surface-soft); color: var(--muted); overflow-wrap: anywhere; }
.type-label { display: inline-block; color: var(--accent-ink); font: 10px/1.6 var(--mono); }
.empty-note { margin: 0; padding: 17px 18px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); font-size: 13px; }
.error-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.error-row { display: grid; grid-template-columns: minmax(96px, .8fr) minmax(0, 1.4fr); gap: 15px; padding: 13px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.error-row:first-child { border-top: 0; }
.error-code { display: inline-flex; align-self: start; align-items: center; gap: 6px; color: var(--ink); font: 11px/1.6 var(--mono); overflow-wrap: anywhere; }
.error-code strong { padding: 1px 4px; border-radius: 4px; background: var(--surface-soft); color: var(--muted); font-size: 10px; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; }
.related-link:hover { border-color: #b4a7ec; color: var(--accent-ink); }
.related-link svg { width: 13px; height: 13px; }

/* Request builder and code examples */
.request-panel { position: sticky; top: 92px; min-width: 0; max-height: calc(100vh - 112px); max-height: calc(100svh - 112px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #405070 transparent; border: 1px solid var(--code-line); border-radius: 13px; background: var(--code); color: var(--code-text); box-shadow: 0 15px 38px -22px rgba(15, 25, 49, .5); }
.request-panel::-webkit-scrollbar { width: 7px; height: 7px; }
.request-panel::-webkit-scrollbar-thumb { border-radius: 10px; background: #405070; }
.request-panel::-webkit-scrollbar-track { background: transparent; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 18px; border-bottom: 1px solid var(--code-line); background: var(--code-raised); }
.panel-header strong, .panel-header h2, .panel-header h3 { margin: 0; color: #edf1ff; font-size: 13px; font-weight: 650; }
.panel-header span { color: #94a4c4; font-size: 10px; }
.request-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; border-bottom: 1px solid var(--code-line); }
.request-field { min-width: 0; }
.request-hint { grid-column: 1 / -1; display: block; margin: 0; color: #a7b7d3; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.request-hint code { padding: 1px 4px; border-radius: 4px; background: #26314a; color: #d0c5ff; }
.request-panel > .request-hint { padding: 0 18px 18px; }
.request-field label { display: block; margin: 0 0 5px; color: #aab8d3; font: 10px/1.6 var(--mono); }
.request-field input, .request-field select { width: 100%; min-width: 0; height: 34px; padding: 7px 9px; border: 1px solid #36415c; border-radius: 6px; outline: none; background: #202b42; color: #e2eafa; font: 12px/1.5 var(--mono); color-scheme: dark; transition: border-color .15s, box-shadow .15s; }
.request-field input::placeholder { color: #a4afc5; opacity: 1; }
.request-field input:focus, .request-field select:focus { border-color: #9b87ed; box-shadow: 0 0 0 2px rgba(155, 135, 237, .16); }
.extra-params { grid-column: 1 / -1; margin-top: 1px; }
.extra-params > summary { width: max-content; cursor: pointer; color: #b6a8fa; font-size: 11px; }
.extra-params[open] > summary { margin-bottom: 12px; }
.extra-params > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 0 15px; border-bottom: 1px solid var(--code-line); background: var(--code-raised); color: #a8b5d1; font-size: 11px; }
.code-header > span { font: 11px var(--mono); }
.code-header button:not(.code-tab), .response-head > button, .copy-code { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 25px; height: 26px; padding: 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #a7b4d0; font-size: 10px; }
.code-header button:not(.code-tab):hover, .response-head > button:hover, .copy-code:hover { color: #f4f6ff; background: #2d3850; }
.code-header button svg, .response-head button svg, .copy-code svg { width: 13px; height: 13px; }
.code-tabs { display: inline-flex; align-items: center; align-self: stretch; gap: 16px; }
.code-tab { position: relative; border: 0; padding: 0; background: transparent; color: #92a3c1; font: 11px var(--mono); }
.code-tab:hover { color: #e6e9f8; }
.code-tab.is-active { color: #d0c3ff; }
.code-tab.is-active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; border-radius: 2px 2px 0 0; background: #aa94ff; }
.code-window { min-width: 0; background: var(--code); color: var(--code-text); }
.code-window pre, pre.code-window { max-width: 100%; max-height: 340px; overflow: auto; margin: 0; padding: 18px; font: 12px/1.85 var(--mono); white-space: pre; tab-size: 2; scrollbar-width: thin; scrollbar-color: #405070 transparent; }
.code-window code { padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; color: inherit; }
.code-window pre.wrap-code, pre.wrap-code { white-space: pre-wrap; overflow-wrap: anywhere; }
.quick-code .code-window pre { min-height: 130px; padding: 22px; line-height: 2; }
.request-actions { display: flex; gap: 9px; padding: 0 18px 18px; }
.request-actions .button { flex: 1; }
.request-actions .button.secondary { background: #202b42; border-color: #36415c; color: #c5d2eb; }
.request-actions .button.secondary:hover { background: #2d3851; border-color: #625b8d; }
.request-actions .button.primary { box-shadow: none; }
.response-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 15px; border-top: 1px solid var(--code-line); border-bottom: 1px solid var(--code-line); background: var(--code-raised); }
.response-switch { display: flex; align-items: center; gap: 13px; }
.response-switch button { position: relative; min-height: 43px; padding: 0; border: 0; background: none; color: #97a8c6; font-size: 11px; }
.response-switch button.is-active { color: #d7caff; }
.response-switch button.is-active::after { position: absolute; content: ""; bottom: -1px; left: 0; right: 0; height: 2px; border-radius: 2px; background: #aa94ff; }
.response-status { display: inline-flex; align-items: center; gap: 5px; color: #7fdcc0; font: 10px var(--mono); white-space: nowrap; }
.response-status.is-error { color: #ffb3b8; }
.response-status small { color: #99a8c4; font-size: 10px; }
.response-code { max-width: 100%; min-height: 120px; max-height: 390px; overflow: auto; margin: 0; padding: 18px; color: #d6e2f7; font: 12px/1.85 var(--mono); white-space: pre; tab-size: 2; scrollbar-width: thin; scrollbar-color: #405070 transparent; }
.response-code code { font-size: inherit; }
.response-note { margin: 0; padding: 11px 18px; border-top: 1px solid var(--code-line); color: #9aabc9; font-size: 10px; line-height: 1.8; }
.request-status { margin: 0; padding: 0 18px 14px; color: #b9c6df; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.request-status:empty { display: none; }
.request-status.is-error { color: #f4b4bd; }
.auth-callout { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.85; }
.auth-callout p { margin: 0; }
.auth-callout p + p { margin-top: 8px; }
.auth-callout strong { color: var(--ink); }
.auth-callout code { display: inline-block; max-width: 100%; padding: 2px 5px; border-radius: 4px; background: var(--surface-soft); color: var(--accent-ink); overflow-wrap: anywhere; }
.request-panel .auth-callout { margin: 16px; border-color: #3c4563; background: #202a42; color: #b9c6e0; font-size: 11px; }
.request-panel .auth-callout strong { color: #e2e7f8; }
.request-panel .auth-callout code { background: #303956; color: #c7baff; }
.hl-key { color: #aebdff; }
.hl-string { color: #97d8bb; }
.hl-number { color: #eac58d; }
.hl-boolean { color: #c9a8ff; }
.hl-null { color: #9daac2; }

/* Search overlay */
.search-dialog { width: min(650px, calc(100vw - 32px)); max-height: min(680px, calc(100svh - 70px)); margin: min(13vh, 95px) auto auto; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 100px rgba(5, 11, 30, .25); }
.search-dialog::backdrop { background: rgba(11, 17, 33, .56); backdrop-filter: blur(5px); }
.search-dialog-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-dialog-header > svg { width: 20px; height: 20px; color: var(--accent-ink); }
.search-input { width: 100%; min-width: 0; height: 34px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.search-input:focus-visible { outline: 0; }
.search-input::placeholder { color: var(--subtle); opacity: 1; }
.search-dialog-header:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.search-dialog .close-button { width: 29px; min-width: 29px; height: 29px; font-size: 11px; }
.search-results { max-height: min(475px, calc(100svh - 235px)); padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.search-result { width: 100%; display: flex; align-items: flex-start; gap: 13px; padding: 13px 12px; border: 1px solid transparent; border-radius: 9px; background: none; text-align: left; color: var(--ink); }
.search-result:hover, .search-result.is-active, .search-result[aria-selected="true"] { border-color: var(--line); background: var(--surface-soft); }
.result-method { flex-shrink: 0; width: 42px; margin-top: 3px; color: #16815c; font: 11px/1.7 var(--mono); font-weight: 700; }
.result-method.post { color: #b37720; }
html[data-theme="dark"] .result-method { color: #82d6b7; }
html[data-theme="dark"] .result-method.post { color: #efc17c; }
.result-copy { flex: 1; min-width: 0; }
.result-copy strong { display: block; font-size: 13px; font-weight: 650; }
.result-copy small, .result-copy p { display: block; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.result-copy code { font-size: 10px; }
.search-result > svg { width: 14px; height: 14px; margin-top: 5px; color: var(--subtle); }
.search-empty { padding: 42px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.search-empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.dialog-footer kbd { display: inline-flex; justify-content: center; align-items: center; min-width: 19px; height: 19px; margin: 0 3px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); font-size: 10px; }

/* Footer and small status messages */
.footer { max-width: 1400px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; margin: 44px auto 0; padding: 24px 0 28px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
.footer p { margin: 0; }
.footer-link { color: var(--muted); }
.footer-link:hover { color: var(--accent-ink); }
.footer div { display: flex; align-items: center; gap: 20px; }
.toast { position: fixed; bottom: 23px; left: calc(50% + var(--sidebar-width) / 2); z-index: 150; max-width: calc(100vw - 36px); transform: translateX(-50%); padding: 11px 17px; border: 1px solid #3d4661; border-radius: 10px; background: #172039; color: #eef2ff; box-shadow: 0 10px 35px rgba(10, 18, 37, .2); font-size: 13px; line-height: 1.7; text-align: center; }
.is-loading svg { animation: docs-spin 1s linear infinite; }
@keyframes docs-spin { to { transform: rotate(360deg); } }

/* Tablet and phone layouts */
@media (min-width: 1750px) {
  .content { padding-left: 62px; padding-right: 62px; }
  .reference-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
  .hero { padding-top: 38px; min-height: 365px; }
}
@media (max-width: 1360px) {
  :root { --sidebar-width: 230px; }
  .topbar { padding-left: 20px; padding-right: 22px; gap: 24px; }
  .brand { min-width: 186px; }
  .content { padding: 32px 30px 0; }
  .reference-grid { grid-template-columns: minmax(0, 1fr) 365px; gap: 22px; }
  .overview-orbit { right: -70px; opacity: .45; }
  .hero h1 { font-size: 46px; max-width: 650px; }
  .hero p { max-width: 560px; }
  .category-card { padding: 19px; }
  .quickstart { padding: 24px; gap: 24px; }
}
@media (max-width: 1150px) {
  .reference-grid { grid-template-columns: minmax(0, 1fr); }
  .request-panel { position: static; max-height: none; overflow: hidden; overscroll-behavior: auto; }
  .request-panel .response-code { max-height: 370px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quickstart { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 600px; font-size: 44px; }
  .hero p { max-width: 520px; }
  .overview-orbit { display: none; }
  .section-heading { align-items: flex-start; }
  .params-table th:first-child, .fields-table th:first-child { width: 30%; }
  .header-links { gap: 20px; }
}
@media (max-width: 860px) {
  :root { --topbar-height: 62px; --sidebar-width: 268px; }
  .topbar { gap: 13px; padding: 0 18px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; letter-spacing: 1.7px; }
  .header-links { display: none; }
  .header-actions { gap: 7px; margin-left: 0; }
  .mobile-menu-button { display: inline-flex; flex-shrink: 0; }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 20px 0 60px rgba(4, 9, 22, .16); }
  .sidebar.is-open, body.menu-open .sidebar, body.sidebar-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-overlay { position: fixed; z-index: 40; inset: var(--topbar-height) 0 0; border: 0; padding: 0; background: rgba(8, 15, 32, .5); }
  .sidebar-overlay.is-visible, body.menu-open .sidebar-overlay, body.sidebar-open .sidebar-overlay { display: block; }
  body.menu-open, body.sidebar-open { overflow: hidden; }
  .content { width: 100%; margin-left: 0; padding: 28px 26px 0; }
  .hero { min-height: auto; padding: 12px 0 30px; }
  .hero h1 { font-size: 46px; max-width: 680px; }
  .hero p { max-width: 620px; font-size: 14px; }
  .category-card { min-height: 168px; }
  .request-panel { max-width: 100%; }
  .toast { left: 50%; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 13px; gap: 9px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 13px; letter-spacing: -.3px; }
  .brand-copy small { font-size: 10px; letter-spacing: 1.35px; }
  .header-actions { gap: 5px; }
  .icon-button, .lang-button { min-width: 31px; height: 32px; padding: 6px; }
  .header-actions .lang-button { font-size: 11px; }
  .content { padding: 25px 17px 0; }
  .hero { padding-top: 7px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.25px; }
  .hero h1 { font-size: 37px; letter-spacing: -1.5px; line-height: 1.16; }
  .hero p { margin-top: 17px; font-size: 13px; line-height: 1.8; }
  .hero-actions { margin-top: 21px; }
  .hero-actions .button { flex: 1; font-size: 12px; padding-left: 11px; padding-right: 11px; }
  .hero-meta { margin-top: 23px; row-gap: 9px; }
  .meta-item { padding: 0 10px; font-size: 11px; }
  .meta-item svg { width: 12px; height: 12px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p, .section-heading span { font-size: 11px; }
  .category-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .reference-principles { grid-template-columns: minmax(0, 1fr); gap: 11px; margin-top: 20px; }
  .reference-principles > div { padding: 18px; }
  .category-card { min-height: 156px; padding: 18px 19px; }
  .category-card p { margin-bottom: 13px; max-width: 280px; }
  .category-icon { width: 34px; height: 34px; margin-bottom: 12px; }
  .quickstart { margin-top: 28px; padding: 20px 17px; gap: 17px; }
  .quickstart-copy h2 { font-size: 21px; }
  .quick-code .code-window pre { padding: 16px; font-size: 12px; }
  .breadcrumbs { margin-bottom: 20px; gap: 7px; font-size: 10px; }
  .endpoint-heading h1 { margin-top: 12px; font-size: 28px; letter-spacing: -.9px; }
  .endpoint-summary { font-size: 13px; line-height: 1.8; }
  .route-bar { padding: 10px 11px; margin-top: 18px; }
  .route-bar code { font-size: 11px; }
  .endpoint-notes { margin-bottom: 22px; }
  .note { padding: 10px 11px; font-size: 13px; }
  .reference-grid { margin-top: 21px; gap: 18px; }
  .section-tabs { gap: 19px; margin-bottom: 22px; }
  .section-tabs a, .section-tabs button { font-size: 11px; }
  .section-block { margin-bottom: 26px; }
  .params-table th, .fields-table th { padding: 10px; font-size: 10px; }
  .params-table td, .fields-table td { padding: 12px 10px; }
  .params-table th:first-child, .fields-table th:first-child { width: 36%; }
  .param-name { font-size: 11px; }
  .params-table td:last-child, .fields-table td:last-child { font-size: 13px; }
  .param-meta { font-size: 10px; }
  .type-label { font-size: 10px; }
  .error-row { grid-template-columns: minmax(85px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 11px; font-size: 12px; }
  .error-code { font-size: 10px; }
  .request-panel { border-radius: 11px; }
  .panel-header { padding: 15px; }
  .request-settings { padding: 15px; gap: 10px; }
  .request-actions { padding: 0 15px 15px; }
  .code-window pre, pre.code-window, .response-code { padding: 15px; font-size: 12px; }
  .response-note { padding: 10px 15px; }
  .code-tabs { gap: 15px; }
  .request-status { padding-left: 15px; padding-right: 15px; }
  .footer { align-items: flex-start; flex-direction: column; margin-top: 32px; padding-top: 20px; font-size: 10px; }
  .footer div { gap: 16px; flex-wrap: wrap; }
  .search-dialog { width: calc(100vw - 20px); margin-top: 20px; max-height: calc(100svh - 40px); border-radius: 12px; }
  .search-dialog-header { padding: 12px; gap: 9px; }
  .search-input { font-size: 13px; }
  .search-results { max-height: calc(100svh - 165px); padding: 6px; }
  .search-result { padding: 12px 9px; gap: 9px; }
  .result-copy strong { font-size: 13px; }
  .result-copy small { font-size: 10px; }
  .dialog-footer { gap: 9px; padding: 11px 12px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .category-card:hover { transform: none; }
}
@media print {
  .topbar, .sidebar, .sidebar-overlay, .header-actions, .hero-actions, .request-actions, .search-dialog, .toast, .section-tabs, .footer { display: none !important; }
  .content { width: 100%; padding: 0; margin: 0; }
  .reference-grid { display: block; }
  .request-panel { position: static; max-height: none; overflow: visible; break-inside: avoid; margin-top: 24px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-window pre, .response-code { max-height: none; overflow: visible; white-space: pre-wrap; }
  body { background: #fff; color: #182139; }
}
