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

.docs-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 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 {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

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

.docs-logo {
    width: 210px;
    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: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    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-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;
}

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

.docs-api-index {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-solid);
}

.docs-api-index-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.docs-api-index h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -0.02em;
}

.docs-api-index p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.docs-api-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 10px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.docs-api-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.docs-api-row strong {
    display: block;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.docs-api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.docs-api-method-get {
    background: #2563eb;
}

.docs-api-method-post {
    background: #059669;
}

.docs-api-method-put,
.docs-api-method-patch {
    background: #b45309;
}

.docs-api-method-delete {
    background: #dc2626;
}

.docs-swagger-fallback {
    padding: 18px;
    color: var(--text);
    font-weight: 800;
}

.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: 14px;
    }

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

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

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

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

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