:root {
    --page: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f6f8fa;
    --surface-blue: #ecf3f8;
    --text: #1f2328;
    --text-soft: #5f6b76;
    --text-faint: #8b949e;
    --line: #e1e7ec;
    --line-strong: #ccd6df;
    --blue: #2481cc;
    --blue-bright: #179cde;
    --blue-soft: rgba(28, 147, 227, .09);
    --button-blue: #1769aa;
    --button-blue-hover: #13598f;
    --green: #238636;
    --green-soft: #eaf6ed;
    --orange: #b35c00;
    --orange-soft: #fff4e5;
    --red: #cf222e;
    --header: rgba(255, 255, 255, .88);
    --overlay: rgba(17, 24, 39, .42);
    --shadow: 0 10px 30px rgba(31, 35, 40, .08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    --header-height: 58px;
    --sidebar-width: 246px;
    color-scheme: light;
}

html[data-theme="dark"] {
    --page: #101214;
    --surface: #15181b;
    --surface-soft: #1b1f23;
    --surface-blue: #1c2a35;
    --text: #f1f4f6;
    --text-soft: #a8b1ba;
    --text-faint: #78838d;
    --line: #2b3137;
    --line-strong: #3a434c;
    --blue: #3ca1eb;
    --blue-bright: #4cb6f4;
    --blue-soft: rgba(60, 161, 235, .12);
    --green: #56d364;
    --green-soft: rgba(46, 160, 67, .14);
    --orange: #f2a65a;
    --orange-soft: rgba(242, 166, 90, .12);
    --red: #ff7b72;
    --header: rgba(16, 18, 20, .88);
    --overlay: rgba(0, 0, 0, .64);
    --shadow: 0 14px 36px rgba(0, 0, 0, .28);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --page: #101214;
        --surface: #15181b;
        --surface-soft: #1b1f23;
        --surface-blue: #1c2a35;
        --text: #f1f4f6;
        --text-soft: #a8b1ba;
        --text-faint: #78838d;
        --line: #2b3137;
        --line-strong: #3a434c;
        --blue: #3ca1eb;
        --blue-bright: #4cb6f4;
        --blue-soft: rgba(60, 161, 235, .12);
        --button-blue: #1769aa;
        --button-blue-hover: #2180bd;
        --green: #56d364;
        --green-soft: rgba(46, 160, 67, .14);
        --orange: #f2a65a;
        --orange-soft: rgba(242, 166, 90, .12);
        --red: #ff7b72;
        --header: rgba(16, 18, 20, .88);
        --overlay: rgba(0, 0, 0, .64);
        --shadow: 0 14px 36px rgba(0, 0, 0, .28);
        color-scheme: dark;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--blue);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: underline;
}

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

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

button {
    border: 0;
}

img,
svg {
    display: block;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

h1,
h2,
h3,
h4,
p,
pre,
blockquote {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    font-weight: 650;
    line-height: 1.22;
}

code,
pre {
    font-family: var(--mono);
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 8px;
    left: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    background: var(--text);
    color: var(--page);
    transform: translateY(-150%);
    transition: transform .2s ease;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent);
    outline-offset: 2px;
}

.docs-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--line);
    background: var(--header);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    backdrop-filter: blur(24px) saturate(1.15);
}

.header-inner {
    display: flex;
    align-items: center;
    width: min(100%, 1170px);
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 14px;
}

.menu-button,
.theme-button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.menu-button svg,
.theme-button svg {
    width: 20px;
    height: 20px;
}

.menu-button:active,
.theme-button:active {
    background: var(--surface-soft);
    transform: scale(.97);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin-left: 4px;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 27px;
    height: 27px;
    border-radius: 7px;
}

.brand span {
    font-size: 15px;
    font-weight: 670;
    letter-spacing: -.01em;
}

.top-nav {
    display: none;
    align-self: stretch;
    align-items: stretch;
    margin-left: 34px;
}

.top-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 520;
}

.top-nav a::after {
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--blue-bright);
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.top-nav a:hover {
    text-decoration: none;
}

.top-nav a:hover::after,
.top-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.api-health {
    display: none;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 12px;
    white-space: nowrap;
}

.api-health i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-faint);
}

.api-health.is-live i {
    background: var(--green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent);
}

.api-health.is-error i {
    background: var(--red);
}

.theme-button .moon-icon {
    display: none;
}

html[data-theme="dark"] .theme-button .sun-icon {
    display: none;
}

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

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .theme-button .sun-icon {
        display: none;
    }

    html[data-theme="system"] .theme-button .moon-icon {
        display: block;
    }
}

.cabinet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-left: 2px;
    padding: 0 13px;
    border-radius: 7px;
    background: var(--button-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 620;
}

.cabinet-link:hover {
    background: var(--button-blue-hover);
    text-decoration: none;
}

.docs-layout {
    width: min(100%, 1170px);
    min-height: 100vh;
    margin: 0 auto;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top));
}

.docs-sidebar {
    position: fixed;
    z-index: 120;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(86vw, 310px);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translate3d(-105%, 0, 0);
    transition: transform .24s ease;
    overscroll-behavior: contain;
}

body.nav-open .docs-sidebar {
    transform: translate3d(0, 0, 0);
}

.sidebar-head {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sidebar-head strong {
    font-size: 16px;
}

.sidebar-head button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--surface-soft);
    cursor: pointer;
}

.sidebar-head svg {
    width: 19px;
    height: 19px;
}

.nav-search {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
}

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

.nav-search svg {
    width: 17px;
    height: 17px;
    color: var(--text-faint);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

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

.docs-sidebar nav {
    display: grid;
    align-content: start;
    gap: 1px;
}

.docs-sidebar nav > span {
    margin: 18px 10px 5px;
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.docs-sidebar nav > span:first-child {
    margin-top: 0;
}

.docs-sidebar nav a {
    display: flex;
    min-height: 35px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.35;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a.is-active {
    background: var(--blue-soft);
    color: var(--blue);
    text-decoration: none;
}

.docs-sidebar nav a[hidden],
.docs-sidebar nav > span[hidden] {
    display: none;
}

.docs-sidebar nav em {
    min-width: 32px;
    font-family: var(--mono);
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
}

.docs-sidebar nav em.get {
    color: var(--green);
}

.docs-sidebar nav em.post {
    color: var(--orange);
}

.docs-sidebar footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 24px 10px 4px;
    color: var(--text-faint);
    font-size: 11px;
}

.nav-backdrop {
    position: fixed;
    z-index: 110;
    inset: 0;
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.docs-main {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
}

.breadcrumbs {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 8px;
    max-width: 820px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
    color: var(--text-faint);
    font-size: 12px;
}

.breadcrumbs strong {
    color: var(--text-soft);
    font-weight: 560;
}

.docs-article {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 30px 0 max(64px, env(safe-area-inset-bottom));
}

.doc-section {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.doc-section + .doc-section {
    margin-top: 42px;
    padding-top: 2px;
}

.intro-section {
    margin-bottom: 36px;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.version-label {
    margin-bottom: 5px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(30px, 8vw, 40px);
    letter-spacing: -.035em;
}

.openapi-button {
    display: none;
    min-height: 34px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 12px;
    white-space: nowrap;
}

.openapi-button:hover {
    border-color: var(--blue);
    color: var(--blue);
    text-decoration: none;
}

.docs-article p,
.docs-article ul,
.docs-article blockquote,
.docs-article pre,
.docs-article .table-wrap {
    margin-top: 0;
    margin-bottom: 16px;
}

.docs-article p {
    color: var(--text-soft);
}

.docs-article p a,
.docs-article li a {
    font-weight: 540;
}

.docs-article h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 21px;
    letter-spacing: -.018em;
}

.docs-article h4 {
    margin: 22px 0 8px;
    font-size: 15px;
}

.anchor-link {
    position: absolute;
    right: calc(100% + 8px);
    top: 1px;
    color: var(--blue);
    font-weight: 450;
    opacity: 0;
}

.docs-article h3:hover .anchor-link,
.anchor-link:focus-visible {
    opacity: 1;
    text-decoration: none;
}

.docs-article ul {
    padding: 0;
    list-style: none;
}

.docs-article li {
    position: relative;
    padding-left: 17px;
    color: var(--text-soft);
}

.docs-article li + li {
    margin-top: 3px;
}

.docs-article li::before {
    position: absolute;
    top: .72em;
    left: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
    content: "";
}

blockquote {
    position: relative;
    padding: 9px 13px;
    border-radius: 5px 8px 8px 5px;
    background: var(--blue-soft);
}

blockquote::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 5px 0 0 5px;
    background: var(--blue-bright);
    content: "";
}

blockquote p:last-child {
    margin-bottom: 0;
}

.warning-note {
    background: var(--orange-soft);
}

.warning-note::before {
    background: var(--orange);
}

.safety-note {
    background: var(--green-soft);
}

.safety-note::before {
    background: var(--green);
}

.docs-article :not(pre) > code,
.route code,
td code {
    padding: .12em .34em;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 4px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: .88em;
}

pre {
    position: relative;
    max-width: 100%;
    overflow: auto;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 6px;
    background: var(--surface-blue);
    color: color-mix(in srgb, var(--text) 86%, var(--blue));
    font-size: 12px;
    line-height: 1.65;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

pre code {
    font: inherit;
}

.copyable {
    padding-top: 44px;
}

pre button {
    position: absolute;
    top: 7px;
    right: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 620;
    cursor: pointer;
    opacity: 0;
    transition: opacity .16s ease, border-color .16s ease, color .16s ease;
}

pre:hover button,
pre button:focus-visible {
    opacity: 1;
}

pre button:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.single-line {
    padding-right: 92px;
}

.copy-source {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.clipboard-proxy {
    position: fixed;
    top: 0;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.method-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.method-title h3 {
    margin: 0;
}

.method {
    display: inline-flex;
    min-width: 43px;
    min-height: 23px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font: 750 10px var(--mono);
}

.method.get {
    background: var(--green-soft);
    color: var(--green);
}

.method.post {
    background: var(--orange-soft);
    color: var(--orange);
}

.route {
    margin: 12px 0 18px !important;
}

.route code {
    display: inline-block;
    padding: 6px 9px !important;
    color: var(--blue) !important;
    font-size: 12px !important;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 570px;
    border-collapse: collapse;
    background: var(--surface);
    font-size: 13px;
    line-height: 1.5;
}

caption {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 660;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .05em;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-soft);
    color: var(--text);
    font-size: 11px;
    font-weight: 660;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

td:first-child {
    color: var(--text);
    font-weight: 560;
}

.docs-footer {
    margin-top: 54px;
    padding: 24px 0 4px;
    border-top: 1px solid var(--line);
}

.docs-footer > div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.docs-footer img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.docs-footer strong {
    font-size: 14px;
}

.docs-footer p {
    font-size: 13px;
}

.docs-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
}

.back-to-top {
    position: fixed;
    z-index: 80;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--header);
    color: var(--blue);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top svg {
    width: 19px;
    height: 19px;
}

@media (min-width: 560px) {
    .header-inner {
        padding-inline: 18px;
    }

    .api-health {
        display: inline-flex;
        margin-right: 6px;
    }

    .openapi-button {
        display: inline-flex;
    }

    .docs-main {
        padding-inline: 24px;
    }

    .docs-article {
        padding-top: 36px;
    }
}

@media (min-width: 760px) {
    .top-nav {
        display: flex;
    }

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

    .docs-article {
        padding-top: 42px;
    }

    .doc-section + .doc-section {
        margin-top: 48px;
    }
}

@media (min-width: 1024px) {
    .menu-button,
    .sidebar-head {
        display: none;
    }

    .brand {
        margin-left: 0;
    }

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

    .docs-sidebar {
        position: sticky;
        z-index: 20;
        top: calc(var(--header-height) + env(safe-area-inset-top));
        width: auto;
        height: calc(100vh - var(--header-height) - env(safe-area-inset-top));
        padding: 22px 18px 24px 4px;
        border-right: 0;
        box-shadow: none;
        transform: none;
    }

    .docs-sidebar::after {
        position: absolute;
        top: 20px;
        right: 0;
        bottom: 20px;
        width: 1px;
        background: var(--line);
        content: "";
    }

    .nav-backdrop {
        display: none;
    }

    body.nav-open {
        overflow: auto;
    }

    .docs-main {
        padding-right: 30px;
        padding-left: 46px;
    }
}

@media (min-width: 1200px) {
    .header-inner {
        padding-inline: 0;
    }

    .docs-sidebar {
        padding-left: 0;
    }

    .docs-main {
        padding-right: 0;
        padding-left: 58px;
    }
}

@media (hover: hover) {
    .menu-button:hover,
    .theme-button:hover,
    .sidebar-head button:hover {
        background: var(--surface-soft);
    }

    tr:hover td {
        background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
    }
}

@media (max-width: 559px) {
    .api-health,
    .top-nav {
        display: none;
    }

    .brand span {
        font-size: 14px;
    }

    .cabinet-link {
        padding-inline: 11px;
    }

    .docs-article p,
    .docs-article li {
        font-size: 14px;
    }

    .docs-article h3 {
        font-size: 20px;
    }

    pre {
        margin-right: -16px;
        margin-left: -16px;
        padding: 14px 16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        font-size: 11px;
    }

    pre button {
        opacity: 1;
    }

    .table-wrap {
        margin-right: -16px;
        margin-left: -16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .anchor-link {
        display: none;
    }
}

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

@media print {
    .docs-header,
    .docs-sidebar,
    .nav-backdrop,
    .back-to-top,
    pre button {
        display: none !important;
    }

    .docs-layout {
        display: block;
        padding-top: 0;
    }

    .docs-main {
        padding: 0;
    }

    .docs-article {
        width: 100%;
        max-width: none;
    }
}
