:root {
    --docs-ink: #10233f;
    --docs-muted: #64748b;
    --docs-line: #dfe7f1;
    --docs-soft: #f5f8fc;
    --docs-blue: #1769e0;
    --docs-navy: #0a2540;
    --docs-green: #087f5b;
}
html { scroll-behavior: smooth; }
body { background: #f8fafc; color: var(--docs-ink); }
.docs-hero { position: relative; overflow: hidden; padding: 64px 0 58px; color: #fff; background: linear-gradient(118deg, #071c36 0%, #0c376a 56%, #1769e0 130%); }
.docs-hero::before { content: ''; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, #000, transparent); }
.docs-hero-inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.docs-kicker { display: inline-flex; margin-bottom: 14px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #9fc5ff; font: 700 12px/1.5 monospace; direction: ltr; }
.docs-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.7px; }
.docs-hero p { max-width: 650px; margin: 0; color: #c7d8ec; font-size: 16px; line-height: 2; }
.docs-base-url { width: min(100%, 360px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(3,16,31,.45); backdrop-filter: blur(10px); direction: ltr; }
.docs-base-url span { grid-column: 1/-1; color: #93add0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.docs-base-url code { overflow: hidden; color: #fff; font: 13px/1.6 monospace; text-overflow: ellipsis; white-space: nowrap; }
.docs-base-url button, .docs-route-row button, .docs-inline-code button { border: 0; color: #b9d4f8; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.docs-layout { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 38px; align-items: start; padding-top: 42px; padding-bottom: 80px; }
.docs-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 110px); padding: 17px; overflow-y: auto; border: 1px solid var(--docs-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(20,50,88,.06); scrollbar-width: thin; }
.docs-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; }
.docs-sidebar-head strong { font-size: 14px; }
.docs-sidebar-head button { display: none; border: 0; background: transparent; font-size: 22px; }
.docs-search { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--docs-line); border-radius: 11px; background: var(--docs-soft); color: var(--docs-muted); }
.docs-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--docs-ink); font: inherit; font-size: 12px; }
.docs-nav-group { display: grid; gap: 2px; padding-top: 17px; }
.docs-nav-group > span { padding: 0 9px 7px; color: #8b9bad; font-size: 11px; font-weight: 800; }
.docs-nav-group a { padding: 8px 9px; border-radius: 8px; color: #44566d; font-size: 12px; line-height: 1.65; }
.docs-nav-group a:hover { color: var(--docs-blue); background: #eef5ff; }
.docs-panel-link { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 11px 12px; border-radius: 10px; color: #fff; background: var(--docs-navy); font-size: 12px; font-weight: 700; }
.docs-content { min-width: 0; }
.docs-content > section, .docs-endpoint { scroll-margin-top: 96px; }
.docs-endpoint { position: relative; }
.docs-anchor { position: absolute; top: -96px; }
.docs-intro-card, .docs-guide-card, .docs-endpoint { margin-bottom: 24px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--docs-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 32px rgba(18,51,88,.045); }
.docs-section-heading > span, .docs-service-heading span { display: block; margin-bottom: 5px; color: var(--docs-blue); font-size: 11px; font-weight: 800; }
.docs-section-heading h2, .docs-service-heading h2 { margin: 0 0 7px; color: var(--docs-ink); font-size: 22px; }
.docs-section-heading p, .docs-service-heading p, .docs-guide-card > p { margin: 0; color: var(--docs-muted); font-size: 14px; line-height: 1.95; }
.docs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.docs-steps > div { display: grid; grid-template-columns: 32px 1fr; gap: 4px 10px; align-items: center; padding: 15px; border: 1px solid #e4ebf4; border-radius: 13px; background: #f9fbfe; }
.docs-steps b { grid-row: 1/3; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: #fff; background: var(--docs-blue); }
.docs-steps strong { font-size: 13px; }
.docs-steps span { color: var(--docs-muted); font-size: 11px; line-height: 1.7; }
.docs-inline-code, .docs-route-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 15px; overflow: hidden; border: 1px solid #d8e3f1; border-radius: 11px; background: #f6f9fd; direction: ltr; }
.docs-inline-code code, .docs-route-row code { min-width: 0; overflow: auto; color: #17385e; font: 13px/1.7 monospace; white-space: nowrap; }
.docs-inline-code button, .docs-route-row button { margin-left: auto; flex: 0 0 auto; color: var(--docs-blue); }
.docs-callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.docs-callouts p { display: flex; gap: 10px; margin: 0; padding: 14px; border: 1px solid #e4ebf4; border-radius: 12px; color: var(--docs-muted); font-size: 11px; line-height: 1.8; }
.docs-callouts i { color: var(--docs-blue); font-size: 20px; }
.docs-callouts strong { display: block; margin-bottom: 3px; color: var(--docs-ink); font-size: 12px; }
.docs-error-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.docs-error-grid > div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: var(--docs-soft); }
.docs-error-grid code { color: #bd3d42; font-weight: 800; text-align: center; }
.docs-error-grid span { color: #50647b; font-size: 11px; line-height: 1.7; }
.docs-service-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 25px 5px 15px; }
.docs-endpoint[hidden], .docs-no-results[hidden], .docs-nav-group[hidden], [data-docs-nav-item][hidden] { display: none !important; }
.docs-endpoint-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.docs-category { color: var(--docs-blue); font-size: 11px; font-weight: 800; }
.docs-endpoint-head h2 { margin: 6px 0 8px; color: var(--docs-ink); font-size: 22px; }
.docs-endpoint-head p { max-width: 700px; margin: 0; color: var(--docs-muted); font-size: 13px; line-height: 1.9; }
.docs-status { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.docs-status-active { color: #087451; background: #e8f8f1; }
.docs-status-disabled { color: #7d8795; background: #eef1f5; }
.docs-method { flex: 0 0 auto; padding: 5px 9px; border-radius: 7px; color: #fff; font: 800 11px/1.5 monospace; }
.docs-method-post { background: var(--docs-blue); }
.docs-method-get { background: var(--docs-green); }
.docs-endpoint-grid { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); gap: 24px; margin-top: 25px; }
.docs-endpoint-grid h3, .docs-response-title h3 { margin: 0 0 12px; color: #263b55; font-size: 13px; }
.docs-param-list { display: grid; gap: 8px; }
.docs-param-list > div { padding: 12px; border: 1px solid #e4ebf3; border-radius: 10px; }
.docs-param-list > div > div { display: flex; align-items: center; gap: 8px; direction: ltr; }
.docs-param-list code { color: #174e93; font: 700 12px monospace; }
.docs-param-list span, .docs-param-list small { padding: 2px 6px; border-radius: 5px; font-size: 9px; }
.docs-param-list span { color: #a33a43; background: #fff0f1; }
.docs-param-list small { color: #66768b; background: #edf1f6; }
.docs-param-list p { margin: 7px 0 3px; color: #52677e; font-size: 11px; line-height: 1.7; }
.docs-param-list > div > small { padding: 0; color: #97a3b3; background: transparent; font-family: monospace; }
.docs-note { display: flex; gap: 8px; margin-top: 12px; padding: 11px; border-right: 3px solid #e4a11b; border-radius: 8px; color: #67532c; background: #fff9ec; font-size: 10px; line-height: 1.8; }
.docs-code-panel { min-width: 0; overflow: hidden; border: 1px solid #1d3552; border-radius: 13px; background: #0c1d31; }
.docs-code-tabs { display: flex; gap: 4px; padding: 9px 10px 0; border-bottom: 1px solid #213b59; }
.docs-code-tabs button { padding: 8px 11px; border: 0; border-bottom: 2px solid transparent; color: #839bb7; background: transparent; font: 600 11px monospace; cursor: pointer; }
.docs-code-tabs button.is-active { border-color: #5ba1ff; color: #fff; }
.docs-code-block { position: relative; min-width: 0; }
.docs-code-block > button { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 8px; border: 1px solid #34506e; border-radius: 6px; color: #b5c8dc; background: #152c46; font: inherit; font-size: 10px; cursor: pointer; }
.docs-code-block pre, .docs-response-grid pre { margin: 0; padding: 48px 17px 18px; overflow: auto; color: #d5e5f5; background: #0c1d31; direction: ltr; text-align: left; scrollbar-width: thin; }
.docs-code-block code, .docs-response-grid code { font: 11px/1.9 monospace; white-space: pre; }
.docs-response-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.docs-response-grid section { min-width: 0; overflow: hidden; border: 1px solid #dfe7f0; border-radius: 12px; }
.docs-response-title { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; background: #f5f8fc; }
.docs-response-title h3 { margin: 0; }
.docs-response-title button { border: 0; color: var(--docs-blue); background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.docs-empty-note { color: var(--docs-muted); font-size: 12px; }
.docs-no-results { display: grid; gap: 6px; place-items: center; padding: 55px; color: var(--docs-muted); }
.docs-no-results i { font-size: 34px; }
.docs-mobile-tools, .docs-nav-backdrop { display: none; }
@media (max-width: 960px) {
    .docs-hero { padding: 44px 0; }
    .docs-hero-inner { align-items: start; flex-direction: column; }
    .docs-base-url { width: 100%; }
    .docs-mobile-tools { display: flex; gap: 10px; padding-top: 20px; }
    .docs-nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 15px; border: 1px solid var(--docs-line); border-radius: 11px; color: var(--docs-ink); background: #fff; font: inherit; font-size: 12px; font-weight: 700; }
    .docs-search-mobile { flex: 1; }
    .docs-layout { display: block; padding-top: 20px; }
    .docs-sidebar { position: fixed; z-index: 120; top: 0; right: 0; width: min(330px, 88vw); height: 100dvh; max-height: none; border-radius: 0; transform: translateX(105%); transition: transform .25s ease; }
    .docs-sidebar.is-open { transform: translateX(0); }
    .docs-sidebar-head button { display: block; }
    .docs-search-desktop { display: none; }
    .docs-nav-backdrop { position: fixed; z-index: 110; inset: 0; border: 0; background: rgba(7,21,39,.38); }
    .docs-nav-open .docs-nav-backdrop { display: block; }
    .docs-nav-open { overflow: hidden; }
    .docs-endpoint-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .docs-hero h1 { font-size: 30px; }
    .docs-hero p { font-size: 13px; }
    .docs-mobile-tools { align-items: stretch; flex-direction: column; }
    .docs-steps, .docs-callouts, .docs-error-grid, .docs-response-grid { grid-template-columns: 1fr; }
    .docs-intro-card, .docs-guide-card, .docs-endpoint { padding: 18px; border-radius: 15px; }
    .docs-endpoint-head, .docs-service-heading { align-items: start; flex-direction: column; }
    .docs-route-row { gap: 8px; padding: 10px; }
    .docs-route-row code { font-size: 11px; }
    .docs-route-row button { font-size: 10px; }
    .docs-code-block pre, .docs-response-grid pre { max-width: 100%; padding-right: 14px; padding-left: 14px; }
}
