.docs-body {
    min-height: 100vh;
    background: var(--body-bg);
}

.docs-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 80px 0 30px;
}

.docs-hero {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 24px;
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 196, 199, 0.32), transparent 30%),
        linear-gradient(135deg, #092744 0%, #123b66 56%, #0e5668 100%);
    box-shadow: var(--shadow);
}

.docs-nav,
.docs-actions,
.docs-panel-head,
.docs-footer {
    display: flex;
    align-items: center;
}

.docs-nav {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 900;
    width: min(1320px, calc(100% - 44px));
    min-height: 62px;
    padding: 0 14px;
    border: 1px solid rgba(177, 241, 217, 0.14);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
    background: rgba(7, 28, 50, 0.94);
    box-shadow: 0 16px 38px rgba(4, 23, 41, 0.18);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.docs-logo-link {
    display: inline-flex;
    align-items: center;
}

.docs-logo {
    width: 150px;
    max-width: 100%;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.docs-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.docs-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #092744;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.18s ease;
}

.docs-link-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.docs-link:hover {
    transform: translateY(-1px);
}

.docs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    align-items: end;
}

.docs-hero .eyebrow {
    color: #7cc4c7;
}

.docs-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.docs-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.65;
}

.docs-quick-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.docs-quick-card span,
.docs-quick-card small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-quick-card strong {
    display: block;
    margin: 9px 0;
    color: #ffffff;
    font-size: clamp(18px, 2vw, 24px);
    overflow-wrap: anywhere;
}

.docs-quick-card small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    line-height: 1.45;
}

.docs-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.docs-panel {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.docs-panel-head {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.docs-panel-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    letter-spacing: -0.04em;
}

.docs-search-wrap {
    position: relative;
    margin-bottom: 20px;
}

.docs-search-wrap i {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 20px;
}

.docs-search-wrap input {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px 14px 50px;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: 17px;
    font: inherit;
    outline: none;
}

.docs-search-wrap input:focus {
    border-color: rgba(14, 116, 144, 0.46);
    box-shadow: 0 0 0 5px rgba(124, 196, 199, 0.18);
}

.docs-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.docs-topic-card {
    min-height: 188px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--row-bg);
    transition: .18s ease;
}

.docs-topic-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.docs-topic-card[hidden] {
    display: none;
}

.docs-topic-featured {
    background: linear-gradient(145deg, rgba(124, 196, 199, .18), var(--row-bg));
    border-color: rgba(14, 116, 144, .28);
}

.docs-topic-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    color: var(--brand);
    background: var(--soft-action-bg);
    border-radius: 11px;
    font-size: 19px;
}

.docs-topic-card .eyebrow {
    margin-bottom: 7px;
}

.docs-topic-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
}

.docs-topic-card > p:not(.eyebrow) {
    min-height: 57px;
    margin: 7px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.docs-topic-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-2);
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
}

.docs-topic-upcoming {
    opacity: .78;
}

.docs-status {
    display: inline-flex;
    padding: 7px 11px;
    color: var(--muted);
    background: var(--soft-action-bg);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.docs-no-results {
    padding: 26px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 18px;
}

.docs-section-intro {
    color: var(--muted);
    line-height: 1.6;
}

.docs-api-reference details {
    margin-top: 16px;
}

.docs-api-reference summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 900;
}

.docs-api-reference details[open] summary {
    margin-bottom: 18px;
}

.docs-article-header {
    color: #ffffff;
    padding: 24px 30px 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 196, 199, 0.32), transparent 30%),
        linear-gradient(135deg, #092744 0%, #123b66 56%, #0e5668 100%);
    box-shadow: var(--shadow);
}

.docs-article-header .docs-nav {
    margin-bottom: 52px;
}

.docs-article-header > .eyebrow {
    color: #7cc4c7;
}

.docs-article-header h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
}

.docs-article-header > p:not(.eyebrow) {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.65;
}

.docs-article-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 800;
}

.docs-article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: 100%;
    margin-top: 26px;
}

.docs-article-toc {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.docs-article-toc strong {
    margin-bottom: 8px;
    color: var(--ink);
}

.docs-article-toc a {
    padding: 8px 9px;
    color: var(--muted);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.docs-article-toc a:hover {
    color: var(--brand);
    background: var(--soft-action-bg);
}

.docs-article {
    width: 100%;
    min-width: 0;
    padding: 34px 40px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.docs-article > section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 20px;
}

.docs-article h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 28px;
}

.docs-article section > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

.docs-article-callout,
.docs-note {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 17px;
}

.docs-article-callout {
    color: var(--text);
    background: var(--soft-action-bg);
}

.docs-article-callout i,
.docs-note i {
    color: var(--brand-2);
    font-size: 23px;
}

.docs-article-callout p,
.docs-note p {
    margin: 5px 0 0;
    line-height: 1.55;
}

.docs-step-list {
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
    counter-reset: docs-step;
}

.docs-step-list li {
    counter-increment: docs-step;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 15px 0;
}

.docs-step-list li::before {
    content: counter(docs-step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: var(--brand);
    border-radius: 50%;
    font-weight: 900;
}

.docs-step-list p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.docs-note {
    margin-top: 18px;
    background: rgba(255, 244, 214, .72);
}

.docs-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.docs-related {
    padding-top: 26px;
}

.docs-related > strong {
    color: var(--ink);
}

.docs-related > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.docs-related a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 10px 13px;
    color: var(--brand);
    background: var(--soft-action-bg);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.docs-contact-open {
    border: 0;
    cursor: pointer;
}

body.docs-contact-open {
    overflow: hidden;
}

.docs-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.docs-contact-modal[hidden] {
    display: none;
}

.docs-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 39, 68, .58);
    backdrop-filter: blur(5px);
}

.docs-contact-dialog {
    position: relative;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    padding: 26px;
    color: var(--text);
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(9, 39, 68, .32);
}

.docs-contact-head,
.docs-contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.docs-contact-head h2 {
    margin: 0;
    color: var(--ink);
}

.docs-contact-head button,
.docs-contact-cancel {
    border: 0;
    cursor: pointer;
}

.docs-contact-head button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--muted);
    background: var(--soft-action-bg);
    border-radius: 50%;
    font-size: 20px;
}

.docs-contact-intro {
    margin: 10px 0;
    color: var(--muted);
}

.docs-contact-security {
    margin: 14px 0 18px;
    padding: 12px 14px;
    color: #8a4b08;
    background: #fff4d6;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
}

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

.docs-contact-fields label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.docs-contact-fields input,
.docs-contact-fields select,
.docs-contact-fields textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

.docs-contact-message-field {
    grid-column: 1 / -1;
}

.docs-contact-fields textarea {
    resize: vertical;
}

.docs-contact-callback {
    display: flex !important;
    align-items: center;
    align-self: end;
    padding-bottom: 12px;
}

.docs-contact-callback input {
    width: auto;
}

.docs-contact-result {
    min-height: 22px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 800;
}

.docs-contact-result.success { color: #067647; }
.docs-contact-result.error { color: #b42318; }

.docs-contact-actions {
    justify-content: flex-start;
    margin-top: 8px;
}

.docs-contact-cancel {
    padding: 10px 14px;
    color: var(--muted);
    background: transparent;
    font-weight: 900;
}

#swagger-ui {
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-solid);
}

.swagger-ui .dialog-ux {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 72px 18px 24px !important;
    background: rgba(15, 23, 42, 0.38) !important;
}

.swagger-ui .dialog-ux .modal-ux {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: min(680px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 112px) !important;
    overflow: auto !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28) !important;
}

.swagger-ui {
    color: var(--text);
    font-family: "Noto Sans", sans-serif;
}

.swagger-ui .topbar,
.swagger-ui .information-container {
    display: none;
}

.swagger-ui .wrapper {
    max-width: none;
    padding: 0 18px;
}

.swagger-ui .opblock-tag {
    color: var(--ink);
    border-bottom-color: var(--line);
}

.swagger-ui .opblock .opblock-summary-description,
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .response-col_description,
.swagger-ui table thead tr td,
.swagger-ui table thead tr th {
    color: var(--text);
}

.swagger-ui .scheme-container,
.swagger-ui .models {
    background: var(--panel-solid);
    box-shadow: none;
    border-color: var(--line);
}

.swagger-ui input,
.swagger-ui textarea,
.swagger-ui select {
    color: var(--text);
    background: var(--input-bg);
    border-color: var(--line);
}

.swagger-ui .btn.authorize,
.swagger-ui .btn.execute {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.docs-footer {
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 22px 4px 0;
    color: var(--muted);
}

.docs-footer strong,
.docs-footer span {
    display: block;
}

.docs-footer strong {
    color: var(--ink);
}

.docs-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.docs-footer a {
    color: var(--brand-2);
    font-weight: 800;
    text-decoration: none;
}

.docs-footer a:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .swagger-ui,
html[data-theme="system"].system-dark .swagger-ui {
    --swagger-bg: #17364a;
}

html[data-theme="dark"] .swagger-ui .opblock,
html[data-theme="system"].system-dark .swagger-ui .opblock,
html[data-theme="dark"] .swagger-ui .model-box,
html[data-theme="system"].system-dark .swagger-ui .model-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
}

html[data-theme="dark"] .swagger-ui .opblock-summary,
html[data-theme="system"].system-dark .swagger-ui .opblock-summary {
    border-color: var(--line);
}

@media (max-width: 860px) {
    .docs-shell {
        width: min(100% - 28px, 1480px);
        padding-top: 118px;
    }

    .docs-nav,
    .docs-panel-head,
    .docs-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .docs-actions {
        justify-content: flex-start;
    }

    .docs-nav {
        width: min(100% - 28px, 1320px);
        min-height: 100px;
        padding: 10px 14px;
        gap: 8px;
    }

    .docs-logo {
        width: 144px;
        max-width: 70vw;
    }

    .docs-actions {
        width: 100%;
        gap: 8px;
    }

    .docs-link {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 12px;
    }

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

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

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

    .docs-article-toc {
        position: static;
    }

    .docs-support-card {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .docs-contact-message-field {
        grid-column: auto;
    }

    .docs-hero,
    .docs-panel,
    .docs-article-header,
    .docs-article {
        border-radius: 20px;
        padding: 18px;
    }
}

@media (min-width: 861px) and (max-width: 1180px) {
    .docs-topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .docs-article-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
    }

    .docs-article {
        padding: 28px;
    }
}
