:root {
    --dc-bg: #f6f8fb;
    --dc-panel: #ffffff;
    --dc-line: #dbe3ee;
    --dc-text: #0f172a;
    --dc-muted: #64748b;
    --dc-soft: #eef3f8;
    --dc-accent: #0f172a;
    --dc-accent-soft: #e9eef7;
    --dc-radius: 18px;
}

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

body.dc-page {
    margin: 0;
    font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
    color: var(--dc-text);
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.55), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
}

.dc-shell {
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 0 0 40px;
}

.dc-frame {
    overflow: hidden;
    border: 1px solid var(--dc-line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
}

.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dc-line);
}

.dc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dc-text);
    text-decoration: none;
}

.dc-brand-logo {
    width: auto;
    height: 42px;
    display: block;
}

.dc-language {
    min-height: 40px;
    padding: 0 40px 0 14px;
    border: 1px solid #cfd9e7;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,253,0.98));
    color: var(--dc-text);
    font-size: .92rem;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #5f7390 50%), linear-gradient(135deg, #5f7390 50%, transparent 50%), linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,253,0.98));
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px), 0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dc-language:focus,
.dc-search:focus {
    outline: none;
    border-color: #9ab3ff;
    box-shadow: 0 0 0 4px rgba(56, 91, 248, 0.12);
}

.dc-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.dc-language-form,
.dc-search-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dc-language-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dc-muted);
}

.dc-body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 72vh;
}

.dc-sidebar {
    padding: 24px;
    border-right: 1px solid var(--dc-line);
    background: #fbfcfe;
}

.dc-search {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--dc-line);
    border-radius: 14px;
    background: #fff;
    color: var(--dc-text);
}

.dc-sidebar-sections {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.dc-sidebar-group h3 {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--dc-muted);
}

.dc-sidebar-group a {
    display: block;
    padding: 8px 0;
    color: var(--dc-muted);
    font-size: .96rem;
}

.dc-sidebar-group a.is-active {
    color: var(--dc-accent);
    font-weight: 700;
}

.dc-main {
    padding: 28px;
}

.dc-main--wide {
    width: 100%;
}

.dc-kicker {
    margin: 0 0 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dc-muted);
}

.dc-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.dc-subtitle {
    max-width: 62ch;
    margin: 14px 0 0;
    font-size: 1.02rem;
    color: var(--dc-muted);
    line-height: 1.7;
}

.dc-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.dc-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dc-card {
    padding: 20px;
    border: 1px solid var(--dc-line);
    border-radius: 20px;
    background: #fff;
}

.dc-card h2,
.dc-card h3 {
    margin: 0;
    font-size: 1.18rem;
}

.dc-card p {
    margin: 10px 0 0;
    color: var(--dc-muted);
    line-height: 1.65;
}

.dc-card-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.dc-card-list a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--dc-line);
    border-radius: 16px;
    background: var(--dc-panel);
}

.dc-card-list a strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.dc-card-list a span {
    color: var(--dc-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.dc-meta {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.dc-meta-item {
    padding: 14px 16px;
    border: 1px solid var(--dc-line);
    border-radius: 16px;
    background: #fff;
}

.dc-meta-item span {
    display: block;
    margin-bottom: 4px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--dc-muted);
}

.dc-prose {
    margin-top: 28px;
    font-size: 1rem;
    line-height: 1.8;
    color: #243244;
}

.dc-prose h1,
.dc-prose h2,
.dc-prose h3 {
    margin: 32px 0 12px;
    line-height: 1.16;
    color: var(--dc-text);
}

.dc-prose h1 {
    font-size: 2rem;
}

.dc-prose h2 {
    font-size: 1.5rem;
}

.dc-prose h3 {
    font-size: 1.16rem;
}

.dc-prose p,
.dc-prose ul,
.dc-prose ol {
    margin: 0 0 16px;
}

.dc-prose ul,
.dc-prose ol {
    padding-left: 1.3rem;
}

.dc-prose code,
.dc-prose pre {
    font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dc-prose pre {
    overflow-x: auto;
    padding: 16px;
    border: 1px solid var(--dc-line);
    border-radius: 16px;
    background: #f8fafc;
}

.dc-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--dc-line);
    border-radius: 14px;
    background: #fff;
    color: var(--dc-text);
    font-weight: 700;
}

.dc-btn.is-primary {
    border-color: var(--dc-accent);
    background: var(--dc-accent);
    color: #fff;
}

.dc-empty {
    padding: 26px;
    border: 1px dashed var(--dc-line);
    border-radius: 18px;
    background: #fff;
    color: var(--dc-muted);
}

#swagger-ui {
    margin-top: 24px;
}

@media (max-width: 960px) {
    .dc-body {
        grid-template-columns: 1fr;
    }

    .dc-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--dc-line);
    }

    .dc-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dc-shell {
        width: calc(100% - 16px);
    }

    .dc-frame {
        border-radius: 18px;
    }

    .dc-header {
        padding: 14px 16px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .dc-brand-logo {
        height: 32px;
    }

    .dc-header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .dc-language-form {
        margin-left: auto;
    }

    .dc-sidebar,
    .dc-main {
        padding: 18px;
    }

    .dc-title {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
        letter-spacing: 0;
    }

    .dc-subtitle {
        font-size: 0.97rem;
        line-height: 1.65;
    }

    .dc-card,
    .dc-empty {
        padding: 16px;
        border-radius: 12px;
    }

    .dc-card-list a,
    .dc-meta-item,
    .dc-prose pre,
    .dc-btn,
    .dc-search,
    .dc-language {
        border-radius: 12px;
    }
}
