:root {
    --ps-brand: #1428A0;
    --ps-brand-hover: #0F1F82;
    --ps-brand-soft: #EEF1FB;
    --ps-brand-ring: rgba(20, 40, 160, .16);
    --ps-ink: #0A0E1F;
    --ps-text: #3D4454;
    --ps-text-soft: #5A6478;
    --ps-text-faint: #8B93A7;
    --ps-bg: #FFFFFF;
    --ps-bg-soft: #F5F7FB;
    --ps-site-bg: #EFF2F8;
    --ps-line: #E4E9F2;
    --ps-line-2: #D5DCE9;
    --ps-code-bg: #0A0E1F;
    --ps-code-panel: #10162A;
    --ps-code-border: #1C2438;
    --ps-success: #0E8A5F;
    --ps-warn: #AE7B18;
    --ps-danger: #C0392B;
    --ps-radius-sm: 8px;
    --ps-radius: 12px;
    --ps-radius-lg: 16px;
    --ps-shadow-sm: 0 1px 2px rgba(10, 14, 31, .04);
    --ps-shadow: 0 4px 16px rgba(10, 14, 31, .05);
    --ps-sidebar-w: 272px;
    --ps-bar-h: 56px;
    --ps-code-w: 400px;
    --ps-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ps-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.dp-body {
    margin: 0;
    font-family: var(--ps-font);
    font-feature-settings: "ss01" on, "cv11" on;
    color: var(--ps-text);
    background: var(--ps-site-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.dp-body,
body.dp-body input,
body.dp-body button,
body.dp-body textarea,
body.dp-body select {
    font-family: var(--ps-font);
}

body.dp-body a { color: var(--ps-brand); text-decoration: none; }
body.dp-body a:hover { color: var(--ps-brand-hover); }

.dp-main { min-height: 100vh; }

/* App frame */
.dp-app-frame {
    display: grid;
    grid-template-columns: var(--ps-sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}

.dp-workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dp-workspace-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1;
}

.dp-app-frame.has-code .dp-workspace-body {
    grid-template-columns: minmax(0, 1fr) var(--ps-code-w);
}

/* Sidebar */
.dp-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ps-bg);
    border-right: 1px solid var(--ps-line);
    padding: 18px 14px 16px;
    overflow: auto;
}

.dp-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 6px 16px;
    border-bottom: 1px solid var(--ps-line);
    margin-bottom: 16px;
}

.dp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ps-ink) !important;
    font-weight: 650;
    min-width: 0;
    flex-wrap: nowrap;
}

/* Full site.png as-is — NEVER crop, NEVER add text, NEVER edit the PNG */
.dp-brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 240px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
}

.dp-search { position: relative; margin: 0 2px 16px; }
.dp-search input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    background: var(--ps-bg-soft);
    padding: 0 12px 0 36px;
    font: inherit;
    font-size: 13px;
    color: var(--ps-ink);
    outline: none;
    box-shadow: var(--ps-shadow-sm);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.dp-search input:focus {
    border-color: #B4C0E8;
    background: var(--ps-bg);
    box-shadow: 0 0 0 3px var(--ps-brand-ring);
}
.dp-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--ps-text-faint);
    pointer-events: none;
}

.dp-nav { flex: 1; }
.dp-nav-group { margin-bottom: 16px; }
.dp-nav-group-title {
    margin: 0 10px 6px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ps-text-faint);
}
.dp-nav-list, .dp-nav-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dp-nav-link, .dp-nav-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 11px;
    border-radius: var(--ps-radius-sm);
    color: var(--ps-text) !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    transition: background .12s ease, color .12s ease;
}
.dp-nav-link:hover, .dp-nav-sublink:hover {
    background: var(--ps-bg-soft);
    color: var(--ps-ink) !important;
}
.dp-nav-link.is-active {
    background: var(--ps-brand-soft);
    color: var(--ps-brand) !important;
    font-weight: 600;
}
.dp-nav-link.is-muted { color: var(--ps-text-faint) !important; }

.dp-nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 2px;
    align-items: center;
}

.dp-nav-chevron {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--ps-radius-sm);
    background: transparent;
    color: var(--ps-text-faint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .12s ease, color .12s ease;
}
.dp-nav-chevron:hover {
    background: var(--ps-bg-soft);
    color: var(--ps-ink);
}
.dp-nav-item.is-open .dp-nav-chevron {
    transform: rotate(90deg);
    color: var(--ps-ink);
}

.dp-nav-sub {
    margin: 2px 0 6px 8px;
    padding-left: 8px;
    border-left: 1px solid var(--ps-line);
}
.dp-nav-sublink {
    padding: 6px 8px;
    font-size: 12.5px;
    font-weight: 500;
}
.dp-nav-sublink .dp-method {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    justify-content: center;
    box-sizing: border-box;
}
.dp-nav-subtext {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-nav-sublink.is-active {
    background: var(--ps-brand-soft);
    color: var(--ps-brand) !important;
}

.dp-sidebar-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ps-line);
    display: grid;
    gap: 8px;
}

.dp-lang-dd {
    position: relative;
    width: fit-content;
}
.dp-lang-dd-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    background: var(--ps-bg);
    color: var(--ps-ink);
    font: inherit;
    cursor: pointer;
    box-shadow: var(--ps-shadow-sm);
}
.dp-lang-dd-toggle:hover {
    border-color: #C5CDE0;
    background: #FCFCFE;
}
.dp-lang-dd.is-open .dp-lang-dd-toggle {
    border-color: #B4C0E8;
    box-shadow: 0 0 0 3px var(--ps-brand-ring);
}
.dp-lang-dd-chevron {
    color: var(--ps-text-faint);
    transition: transform .15s ease;
}
.dp-lang-dd-label {
    font-size: 13px;
    font-weight: 550;
    line-height: 1;
    white-space: nowrap;
}
.dp-lang-dd.is-open .dp-lang-dd-chevron {
    transform: rotate(180deg);
}
.dp-lang-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 100%;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
}
.dp-lang-dd-menu[hidden] {
    display: none !important;
}
.dp-lang-dd-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--ps-radius-sm);
    color: var(--ps-ink) !important;
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
}
.dp-lang-dd-option:hover,
.dp-lang-dd-option.is-active {
    background: var(--ps-bg-soft);
    color: var(--ps-ink) !important;
}
.dp-lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(11, 12, 20, .08);
    flex: 0 0 auto;
}
/* Top nav: flag only */
.dp-workspace-bar .dp-lang-dd-label,
.dp-workspace-bar .dp-lang-dd-chevron,
.dp-landing-top .dp-lang-dd-label,
.dp-landing-top .dp-lang-dd-chevron {
    display: none;
}
.dp-workspace-bar .dp-lang-dd-toggle,
.dp-landing-top .dp-lang-dd-toggle {
    width: 36px;
    padding: 0;
    justify-content: center;
    gap: 0;
}
.dp-workspace-bar .dp-lang-dd-menu,
.dp-landing-top .dp-lang-dd-menu {
    min-width: 148px;
}

/* Sidebar foot: full label, centered */
.dp-sidebar-foot .dp-lang-dd {
    width: 100%;
}
.dp-sidebar-foot .dp-lang-dd-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}
.dp-sidebar-foot .dp-lang-flag {
    justify-self: start;
}
.dp-sidebar-foot .dp-lang-dd-label {
    justify-self: center;
    text-align: center;
}
.dp-sidebar-foot .dp-lang-dd-chevron {
    justify-self: end;
    margin-left: 0;
}
.dp-sidebar-foot .dp-lang-dd-menu {
    left: 0;
    right: 0;
}

.dp-btn-primary,
.dp-btn-secondary,
.dp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--ps-radius);
    font-size: 13.5px;
    font-weight: 650;
    border: 1px solid transparent;
    transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.dp-btn-primary {
    background: var(--ps-brand);
    border-color: var(--ps-brand);
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(20, 40, 160, .2);
}
.dp-btn-primary:hover {
    background: var(--ps-brand-hover);
    border-color: var(--ps-brand-hover);
    color: #fff !important;
}
.dp-btn-secondary {
    background: var(--ps-bg);
    border-color: var(--ps-line-2);
    color: var(--ps-ink) !important;
    box-shadow: var(--ps-shadow-sm);
}
.dp-btn-secondary:hover {
    border-color: #B4C0E8;
    color: var(--ps-brand) !important;
}
.dp-btn-secondary--compact {
    height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
}
.dp-mode-switch,
.dp-logout-form,
.dp-account-form {
    margin: 0;
}
.dp-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--ps-radius);
    border: 1px solid var(--ps-line-2);
    background: var(--ps-bg);
    color: var(--ps-ink);
    box-shadow: var(--ps-shadow-sm);
    transition: background .12s ease, border-color .12s ease, color .12s ease;
    padding: 0;
    cursor: pointer;
    text-decoration: none !important;
    flex: 0 0 auto;
}
.dp-account-btn:hover {
    color: var(--ps-brand);
    border-color: #B4C0E8;
}
.dp-account-btn.is-authed:hover {
    color: #8B2E2E;
    border-color: #D8A8A8;
}
.dp-account-btn svg {
    display: block;
}
.dp-mode-toggle {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    background: var(--ps-bg-soft);
    gap: 2px;
}
.dp-mode-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ps-text-soft);
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
}
.dp-mode-btn.is-active {
    background: #fff;
    color: var(--ps-ink);
    box-shadow: var(--ps-shadow-sm);
}
.dp-mode-btn:hover {
    color: var(--ps-ink);
}
.dp-login {
    max-width: 420px;
    margin: 24px auto 0;
}
.dp-login-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    box-shadow: var(--ps-shadow-sm);
}
.dp-login-label {
    font-size: 13px;
    font-weight: 650;
    color: var(--ps-ink);
}
.dp-login-input {
    height: 40px;
    border: 1px solid var(--ps-line-2);
    border-radius: var(--ps-radius);
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.dp-login-input:focus {
    outline: none;
    border-color: #B4C0E8;
    box-shadow: 0 0 0 3px rgba(20, 40, 160, .12);
}
.dp-login-error {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: var(--ps-radius);
    background: #FBE7E7;
    color: #9B2C2C;
    font-size: 13.5px;
    font-weight: 600;
}
.dp-login-alt {
    margin: 4px 0 0;
    text-align: center;
    font-size: 13px;
}
.dp-login-alt a {
    color: var(--ps-brand);
    font-weight: 600;
    text-decoration: none;
}
.dp-login-alt a:hover {
    text-decoration: underline;
}
.dp-btn-ghost {
    width: 100%;
    background: transparent;
    border-color: var(--ps-line);
    color: var(--ps-text-soft) !important;
    height: 34px;
}
.dp-btn-ghost:hover {
    color: var(--ps-ink) !important;
    background: var(--ps-bg-soft);
}

/* Workspace bar */
.dp-workspace-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--ps-bar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--ps-line);
    backdrop-filter: blur(12px) saturate(1.1);
}
.dp-workspace-bar-left,
.dp-workspace-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dp-workspace-crumb {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ps-ink);
}
.dp-nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    background: var(--ps-bg);
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: var(--ps-shadow-sm);
}
.dp-nav-toggle span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--ps-ink);
}

/* Content */
.dp-content {
    padding: 32px 40px 80px;
}
.dp-content-inner {
    max-width: 720px;
    margin-inline: auto;
}
.dp-page-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.032em;
    font-weight: 750;
    color: var(--ps-ink);
}
.dp-page-lead {
    margin: 0 0 36px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ps-text-soft);
    max-width: 42em;
    font-weight: 450;
}
.dp-content section + section {
    margin-top: 8px;
}
.dp-content h2 {
    margin: 48px 0 14px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ps-ink);
    scroll-margin-top: calc(var(--ps-bar-h) + 16px);
}
.dp-content section:first-of-type h2 {
    margin-top: 8px;
}
.dp-content h3 {
    margin: 24px 0 8px;
    font-size: 15px;
    font-weight: 650;
    color: var(--ps-ink);
}
.dp-content p, .dp-content li {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ps-text);
}
.dp-content p { margin: 0 0 12px; }
.dp-content ul, .dp-content ol { margin: 0 0 14px; padding-left: 1.15em; }
.dp-content code {
    font-family: var(--ps-mono);
    font-size: .88em;
    background: var(--ps-bg-soft);
    border: 1px solid var(--ps-line);
    border-radius: 6px;
    padding: 2px 6px;
    color: var(--ps-ink);
}

.dp-note {
    margin: 18px 0 22px;
    padding: 14px 16px 14px 18px;
    border: 1px solid var(--ps-line);
    border-left: 3px solid var(--ps-brand);
    border-radius: var(--ps-radius-sm);
    background: var(--ps-brand-soft);
    box-shadow: none;
}
.dp-note--tip {
    border-left-color: var(--ps-brand);
    background: var(--ps-brand-soft);
}
.dp-note--warn {
    border-left-color: var(--ps-warn);
    background: #FBF6EC;
}
.dp-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ps-ink);
}
.dp-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ps-text);
}
.dp-note p + p {
    margin-top: 8px;
}

/* Inline request/response snippets in docs */
.dp-snippet {
    margin: 14px 0 20px;
    border: 1px solid var(--ps-code-border);
    border-radius: var(--ps-radius);
    background: var(--ps-code-bg);
    overflow: hidden;
}
.dp-snippet + .dp-snippet {
    margin-top: -8px;
}
.dp-snippet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ps-code-border);
    background: var(--ps-code-panel);
}
.dp-snippet-label {
    font-family: var(--ps-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: lowercase;
    color: var(--ps-text-faint);
}
.dp-snippet-copy {
    appearance: none;
    border: 1px solid #2A3348;
    background: transparent;
    color: #C5CDDD;
    font-size: 12px;
    font-weight: 550;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
}
.dp-snippet-copy:hover {
    color: #fff;
    border-color: #3A4560;
}
.dp-snippet .dp-code-body {
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    background: transparent;
}
.dp-snippet .dp-code-body code {
    display: block;
    font-family: var(--ps-mono);
    font-size: 12.5px;
    line-height: 1.55;
    color: #E8ECF5;
    background: transparent;
    border: 0;
    padding: 0;
    white-space: pre;
}
.dp-content .dp-snippet code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
}
.dp-content .dp-table-wrap {
    width: 100%;
}

.dp-table-wrap {
    margin: 14px 0 20px;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    background: var(--ps-bg);
    overflow: auto;
    box-shadow: var(--ps-shadow-sm);
}
.dp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dp-table th, .dp-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ps-line);
    vertical-align: top;
}
.dp-table th {
    font-weight: 650;
    color: var(--ps-ink);
    background: var(--ps-bg-soft);
}
.dp-table tr:last-child td { border-bottom: 0; }
.dp-param-name {
    white-space: nowrap;
}
.dp-param-name code {
    margin-right: 8px;
}
.dp-param-name .dp-schema-badge {
    vertical-align: middle;
}

.dp-method {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .03em;
    border: 0;
}
.dp-method-get { color: #0B7A54; background: rgba(14, 138, 95, .12); }
.dp-method-post { color: #243DB8; background: rgba(20, 40, 160, .1); }
.dp-method-patch, .dp-method-put { color: #8A6814; background: rgba(174, 123, 24, .12); }
.dp-method-delete { color: #B12E24; background: rgba(192, 57, 43, .1); }

.dp-resource-head {
    margin: 0 0 28px;
}
.dp-endpoint-toc {
    margin: 0 0 32px;
    padding: 16px 18px;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    background: var(--ps-bg-soft);
}
.dp-endpoint-toc-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ps-text-soft);
}
.dp-endpoint-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dp-endpoint-toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ps-ink);
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1.35;
}
.dp-endpoint-toc-list a:hover { color: var(--ps-brand); }
.dp-endpoint-toc-list .dp-method {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    justify-content: center;
    box-sizing: border-box;
}
.dp-endpoint-toc-text { min-width: 0; }

.dp-endpoint {
    margin: 0 0 48px;
    padding: 28px 0 0;
    border-top: 1px solid var(--ps-line);
    scroll-margin-top: calc(var(--ps-bar-h) + 16px);
}
.dp-endpoint:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.dp-endpoint-header { margin: 0 0 14px; }
.dp-endpoint-title {
    margin: 0 0 12px;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--ps-ink);
}
.dp-request-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    background: #fff;
}
.dp-request-path {
    font-family: var(--ps-mono);
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ps-ink);
    word-break: break-all;
}
.dp-request-scopes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.dp-endpoint-meta { margin: 0; }
.dp-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dp-meta-label {
    font-size: 12px;
    font-weight: 650;
    color: var(--ps-text-soft);
}
.dp-meta-help {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ps-text-soft);
}
.dp-endpoint-desc {
    margin: 0 0 8px;
    max-width: 44em;
    font-size: 15px;
    line-height: 1.58;
    color: var(--ps-text);
}
.dp-scope-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid rgba(20, 40, 160, .16);
    background: rgba(20, 40, 160, .07);
    font-family: var(--ps-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #243DB8;
    line-height: 1;
}
.dp-endpoint-block { margin-top: 22px; }
.dp-endpoint-block h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--ps-ink);
}
.dp-endpoint-examples-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--ps-text-soft);
}

/* Endpoint docs accordion (Path / Query / Body / Response) */
.dp-ep-sections {
    margin: 20px 0 0;
    border: 1px solid var(--ps-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.dp-ep-section {
    border-top: 1px solid var(--ps-line);
}
.dp-ep-section:first-child {
    border-top: 0;
}
.dp-ep-section > summary {
    list-style: none;
}
.dp-ep-section > summary::-webkit-details-marker {
    display: none;
}
.dp-ep-section-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    background: #fff;
}
.dp-ep-section-summary:hover {
    background: var(--ps-bg-soft);
}
.dp-ep-section-chevron {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ps-text-soft);
    transition: transform .15s ease;
}
.dp-ep-section:not([open]) > .dp-ep-section-summary .dp-ep-section-chevron {
    transform: rotate(-90deg);
}
.dp-ep-section-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ps-ink);
    line-height: 1.3;
}
.dp-ep-section-meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ps-brand-soft);
    color: var(--ps-brand);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.dp-ep-section-meta.is-muted {
    background: #F0F2F7;
    color: var(--ps-text-faint);
    font-weight: 600;
}
.dp-ep-section-body {
    padding: 0 14px 14px;
}
.dp-ep-section.is-empty:not([open]) .dp-ep-section-body {
    display: none;
}
.dp-ep-section .dp-section-empty {
    margin: 0;
}
.dp-ep-section .dp-schema-panel {
    margin: 0;
}
.dp-ep-section .dp-table-wrap {
    margin: 0;
}

.dp-auth-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid var(--ps-line);
    background: var(--ps-bg-soft);
    color: var(--ps-text-soft);
}
.dp-auth-none { color: #5A6478; background: #F0F2F7; border-color: #E4E9F2; }
.dp-auth-link { color: #243DB8; background: rgba(20, 40, 160, .08); border-color: rgba(20, 40, 160, .16); }
.dp-auth-session { color: #8A6814; background: rgba(174, 123, 24, .1); border-color: rgba(174, 123, 24, .22); }
.dp-auth-bearer { color: #0B7A54; background: rgba(14, 138, 95, .1); border-color: rgba(14, 138, 95, .2); }

/* OpenAPI auth — match reference: blue-bordered header + gray body (no outer blue) */
.dp-auth {
    margin: 18px 0 0;
    max-width: 28rem;
}
.dp-auth > summary {
    list-style: none;
}
.dp-auth > summary::-webkit-details-marker { display: none; }
.dp-auth-head {
    display: block;
    margin: 0;
    padding: 12px 16px;
    border: 2px solid #2F6FDB;
    border-radius: 8px;
    background: #fff;
    font-family: var(--ps-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #111827;
    line-height: 1.25;
    cursor: pointer;
    user-select: none;
}
.dp-auth-body {
    margin: 0;
    padding: 14px 16px 16px;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: #F3F4F6;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.dp-auth:not([open]) > .dp-auth-body {
    display: none;
}
.dp-auth-line {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    font-family: var(--ps-mono);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: #111827;
}
.dp-content .dp-auth-line,
.dp-content .dp-auth-line code {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 13px;
    color: inherit;
}
.dp-auth-line .k {
    font-weight: 700;
    color: #111827;
}
.dp-auth-line .t {
    font-weight: 400;
    color: #0D9488;
}
.dp-auth-line .v {
    font-weight: 400;
    color: #111827;
}
.dp-section-empty {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: var(--ps-text-faint);
}

/* Full landing page (no docs sidebar) */
.dp-landing {
    min-height: 100vh;
    background: var(--ps-bg);
}
.dp-landing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    max-width: 1180px;
    margin: 0 auto;
}
.dp-landing-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.dp-landing-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}
.dp-landing-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.dp-landing-hero {
    position: relative;
    padding: 36px 28px 28px;
    background:
        radial-gradient(900px 420px at 78% 18%, rgba(20, 40, 160, .08), transparent 60%),
        radial-gradient(700px 360px at 18% 0%, #ECEFF6 0%, transparent 55%),
        linear-gradient(180deg, #F5F7FB 0%, #FFFFFF 72%);
}
.dp-landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}
.dp-landing-copy {
    min-width: 0;
}
.dp-landing-title {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -.042em;
    line-height: 1.05;
    color: var(--ps-ink);
}
.dp-landing-lead {
    margin: 0 0 28px;
    max-width: 32em;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ps-text);
}
.dp-home-search {
    position: relative;
    margin: 0 0 14px;
    max-width: 540px;
}
.dp-home-search-field {
    position: relative;
}
.dp-home-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ps-text-faint);
    pointer-events: none;
}
.dp-home-search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 42px;
    border: 1px solid var(--ps-line-2);
    border-radius: var(--ps-radius);
    background: var(--ps-bg);
    box-shadow: var(--ps-shadow-sm);
    font: inherit;
    font-size: 15px;
    color: var(--ps-ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dp-home-search-input::placeholder {
    color: var(--ps-text-faint);
}
.dp-home-search-input:focus {
    border-color: #B4C0E8;
    box-shadow: 0 0 0 3px var(--ps-brand-ring);
}
.dp-home-search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid var(--ps-line);
    border-radius: 6px;
    background: var(--ps-bg-soft);
    color: var(--ps-text-faint);
    font-family: var(--ps-mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    pointer-events: none;
}
.dp-home-search.is-open .dp-home-search-kbd,
.dp-home-search-input:focus ~ .dp-home-search-kbd {
    opacity: 0;
}
.dp-home-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 320px;
    overflow: auto;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
}
.dp-home-search-results[hidden] {
    display: none !important;
}
.dp-home-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--ps-radius-sm);
    background: transparent;
    color: var(--ps-ink);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.dp-home-search-item:hover,
.dp-home-search-item.is-active {
    background: var(--ps-bg-soft);
}
.dp-home-search-item .dp-method {
    flex: 0 0 auto;
}
.dp-home-search-item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-home-search-empty {
    padding: 12px;
    font-size: 13.5px;
    color: var(--ps-text-soft);
}
.dp-home-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    margin: 0 0 24px;
    max-width: 520px;
    font-size: 13.5px;
}
.dp-home-suggest-label {
    margin-right: 4px;
    color: var(--ps-text-faint);
    font-weight: 550;
}
.dp-home-suggest a {
    color: var(--ps-text) !important;
    font-weight: 550;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.dp-home-suggest a:hover {
    color: var(--ps-brand) !important;
    background: var(--ps-brand-soft);
    border-color: #D6DDF0;
}
.dp-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.dp-home-actions .dp-btn-primary,
.dp-home-actions .dp-btn-secondary {
    height: 44px;
    padding: 0 20px;
    font-size: 14.5px;
}

/* Layered product + API windows */
.dp-landing-visual {
    min-width: 0;
    padding: 12px 0 8px;
}
.dp-landing-stage {
    position: relative;
    min-height: 340px;
}
.dp-landing-window {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(10, 14, 31, .12);
}
.dp-landing-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--ps-line);
    background: #FAFBFD;
}
.dp-landing-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #D5DCE9;
}
.dp-landing-dot--r { background: #E8A0A0; }
.dp-landing-dot--a { background: #E8D090; }
.dp-landing-dot--g { background: #A8D4B8; }
.dp-landing-window-title {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ps-text-faint);
}
.dp-landing-window--app {
    width: 92%;
    margin-left: auto;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
}
.dp-landing-window-body {
    padding: 14px;
    background: var(--ps-bg-soft);
    display: grid;
    gap: 10px;
}
.dp-landing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: 12px;
}
.dp-landing-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #1428A0;
}
.dp-landing-avatar--g { background: #0E8A5F; }
.dp-landing-avatar--a { background: #AE7B18; }
.dp-landing-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: #E4E9F2;
}
.dp-landing-bar--lg { width: 72%; flex: 0 1 72%; }
.dp-landing-bar--md { width: 58%; flex: 0 1 58%; }
.dp-landing-bar--sm { width: 44%; flex: 0 1 44%; }
.dp-landing-pill {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}
.dp-landing-pill--blue { color: #2A46C0; background: #E7EDFB; }
.dp-landing-pill--green { color: #0E8A5F; background: #E3F4EC; }
.dp-landing-pill--amber { color: #AE7B18; background: #FBF0D5; }
.dp-landing-window--api {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 72%;
    background: var(--ps-code-bg);
    border: 1px solid var(--ps-code-border);
}
.dp-landing-window--api .dp-landing-window-bar {
    background: #10162A;
    border-bottom-color: var(--ps-code-border);
}
.dp-landing-window--api .dp-landing-window-title {
    color: #8B93A7;
}
.dp-landing-window--api .dp-landing-dot {
    background: #2A3350;
}
.dp-landing-code {
    margin: 0;
    padding: 14px 16px 16px;
    color: #E8ECF6;
    font-family: var(--ps-mono);
    font-size: 12px;
    line-height: 1.55;
    white-space: pre;
    overflow: auto;
}
.dp-landing-code code {
    font-family: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
}

.dp-landing-pillnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    max-width: 760px;
    margin: 40px auto 0;
    padding: 6px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    box-shadow: var(--ps-shadow-sm);
}
.dp-landing-pillnav a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--ps-text) !important;
}
.dp-landing-pillnav a:hover {
    color: var(--ps-brand) !important;
    background: var(--ps-brand-soft);
}
.dp-landing-pillnav a.is-active {
    color: var(--ps-ink) !important;
    font-weight: 700;
    background: var(--ps-bg-soft);
}

.dp-landing-body {
    padding: 48px 28px 80px;
    background: var(--ps-bg);
}
.dp-landing-body-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.dp-home-resources-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ps-ink);
}
.dp-home-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dp-resource-card {
    display: flex;
    align-items: center;
    min-height: 52px;
}
.dp-resource-card-title {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ps-ink);
}

.dp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dp-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-card {
    display: block;
    padding: 18px;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    color: inherit !important;
    box-shadow: var(--ps-shadow-sm);
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.dp-card:hover {
    border-color: #C5CDE0;
    background: #FCFCFE;
    color: inherit !important;
    box-shadow: var(--ps-shadow);
}
.dp-card h3 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ps-ink);
}
.dp-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ps-text-soft);
}

.dp-home-meta {
    margin-top: 28px;
    padding: 16px 18px;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-sm);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.dp-home-meta dt {
    font-size: 11px;
    font-weight: 650;
    color: var(--ps-text-faint);
    margin: 0 0 4px;
}
.dp-home-meta dd {
    margin: 0;
    font-size: 12.5px;
    color: var(--ps-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

.dp-guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.dp-guide-list a {
    display: block;
    padding: 18px;
    background: var(--ps-bg);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius);
    color: inherit !important;
    box-shadow: var(--ps-shadow-sm);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.dp-guide-list a:hover {
    border-color: #C5CDE0;
    box-shadow: var(--ps-shadow);
}
.dp-guide-list h3 { margin: 0 0 4px; font-size: 15px; color: var(--ps-ink); }
.dp-guide-list p { margin: 0; font-size: 13.5px; color: var(--ps-text-soft); }

.dp-changelog-item {
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--ps-line);
}
.dp-changelog-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
    color: var(--ps-brand);
    margin-bottom: 6px;
}

.dp-pre {
    margin: 0 0 16px;
    padding: 16px;
    overflow: auto;
    background: var(--ps-code-panel);
    color: #E5E7EB;
    border: 1px solid var(--ps-code-border);
    border-radius: var(--ps-radius);
}
.dp-pre code {
    background: transparent !important;
    border: 0 !important;
    color: inherit;
    padding: 0 !important;
}

/* Code column */
.dp-code-col {
    position: sticky;
    top: var(--ps-bar-h);
    align-self: start;
    height: calc(100vh - var(--ps-bar-h));
    overflow: auto;
    background: var(--ps-code-bg);
    border-left: 1px solid var(--ps-code-border);
    padding: 14px 12px 36px;
}
.dp-code-panel {
    display: none;
    margin-bottom: 0;
    border: 1px solid var(--ps-code-border);
    border-radius: var(--ps-radius);
    background: var(--ps-code-panel);
    overflow: hidden;
}
.dp-code-col .dp-code-panel.is-active {
    display: block;
}
.dp-inline-code .dp-code-panel {
    display: block;
    margin-bottom: 14px;
}
.dp-code-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 8px 0;
    border-bottom: 1px solid var(--ps-code-border);
}
.dp-code-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.dp-code-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #8B93A7;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    padding: 7px 8px;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    white-space: nowrap;
}
.dp-code-tab.is-active {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.dp-code-copy {
    margin-left: 0;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid var(--ps-code-border);
    background: transparent;
    color: #B7BECF;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    cursor: pointer;
}
.dp-code-copy:hover { color: #fff; border-color: #3A4560; }
.dp-code-body {
    margin: 0;
    padding: 14px;
    overflow: auto;
    max-height: 340px;
}
.dp-code-body pre {
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}
.dp-code-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}
.dp-code-label {
    padding: 10px 12px 0;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7E879C;
}
.dp-inline-code { display: none; }

.dp-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 20, .28);
    z-index: 45;
}

@media (max-width: 1199.98px) {
    .dp-app-frame.has-code .dp-workspace-body {
        grid-template-columns: minmax(0, 1fr);
    }
    .dp-code-col { display: none; }
    .dp-inline-code { display: block; margin: 16px 0 22px; }
    .dp-endpoint-examples-hint { display: none; }
}
@media (min-width: 1200px) {
    .dp-app-frame.has-code .dp-endpoint-examples {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .dp-app-frame { grid-template-columns: 1fr; }
    .dp-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 50;
        width: min(88vw, 300px);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }
    body.dp-nav-open .dp-sidebar { transform: translateX(0); }
    .dp-nav-toggle,
    .dp-nav-toggle--bar { display: inline-flex; }
    .dp-sidebar-brand .dp-nav-toggle { display: none; }
    .dp-content { padding: 22px 16px 56px; }
    .dp-card-grid,
    .dp-card-grid--2,
    .dp-home-meta { grid-template-columns: 1fr; }
    .dp-landing-top { padding: 14px 16px; }
    .dp-landing-hero { padding: 20px 16px 22px; }
    .dp-landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .dp-landing-visual { order: -1; }
    .dp-landing-stage { min-height: 280px; }
    .dp-landing-window--app { width: 100%; }
    .dp-landing-window--api { width: 84%; bottom: 0; }
    .dp-landing-pillnav {
        border-radius: 16px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .dp-landing-pillnav a { white-space: nowrap; }
    .dp-landing-body { padding: 36px 16px 64px; }
    .dp-home-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-workspace-bar { padding: 0 14px; }
}

@media (max-width: 575.98px) {
    .dp-home-resource-grid { grid-template-columns: 1fr; }
    .dp-landing-top-actions .dp-btn-primary { display: none; }
    .dp-landing-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dp-sidebar, .dp-nav-chevron { transition: none; }
}

/* Schema / parameter tree (Stripe-like) */
.dp-schema-panel {
    margin: 10px 0 22px;
}
.dp-schema-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.dp-schema-tab {
    height: 34px;
    padding: 0 12px;
    border-radius: var(--ps-radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--ps-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--ps-mono);
    cursor: pointer;
}
.dp-schema-tab:hover { color: var(--ps-ink); }
.dp-schema-tab.is-active {
    color: var(--ps-brand);
    border-color: #B4C0E8;
    background: var(--ps-brand-soft);
}
.dp-schema-tabpanel[hidden] { display: none !important; }
.dp-schema-section {
    border: 0;
}
.dp-schema-section > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.dp-schema-section > summary::-webkit-details-marker { display: none; }
.dp-schema-section-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}
.dp-schema-section-chevron {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ps-text-soft);
    transition: transform .15s ease;
}
.dp-schema-section:not([open]) .dp-schema-section-chevron {
    transform: rotate(-90deg);
}
.dp-schema-section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ps-ink);
}
.dp-schema-section-meta {
    margin: 0 0 10px 18px;
}
.dp-schema-badge {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.dp-schema-badge--required { color: #E11D48; }
.dp-schema-badge--nullable { color: #2563EB; }
.dp-schema-tree {
    margin: 4px 0 0;
}
.dp-schema-node {
    position: relative;
    padding-left: 18px;
}
.dp-schema-node::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--ps-line-2);
}
.dp-schema-node:last-child::before { bottom: auto; height: 18px; }
.dp-schema-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    padding: 8px 0 10px;
}
.dp-schema-row::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 18px;
    width: 12px;
    height: 1px;
    background: var(--ps-line-2);
}
.dp-schema-chevron,
.dp-schema-chevron-spacer {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dp-schema-chevron {
    border: 0;
    background: transparent;
    color: var(--ps-text-soft);
    border-radius: 5px;
    cursor: pointer;
    padding: 0;
}
.dp-schema-chevron:hover { color: var(--ps-ink); background: var(--ps-bg-soft); }
.dp-schema-node.is-open > .dp-schema-row .dp-schema-chevron svg {
    transform: rotate(90deg);
}
.dp-schema-chevron svg { transition: transform .15s ease; }
.dp-schema-main { flex: 1; min-width: 0; }
.dp-schema-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.dp-schema-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ps-ink);
}
.dp-schema-type {
    font-size: 12.5px;
    color: var(--ps-text-soft);
}
.dp-schema-rule {
    flex: 1 1 auto;
    height: 1px;
    margin: 0 4px;
    background: linear-gradient(90deg, var(--ps-line) 0%, transparent 100%);
    min-width: 24px;
    align-self: center;
}
.dp-schema-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ps-text-soft);
    line-height: 1.45;
}
.dp-schema-example,
.dp-schema-members {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.dp-schema-example strong,
.dp-schema-members-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ps-ink);
}
.dp-schema-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dp-schema-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: var(--ps-radius-sm);
    background: rgba(20, 40, 160, .08);
    border: 0;
    color: var(--ps-ink);
    font-family: var(--ps-mono);
    font-size: 12px;
    font-weight: 500;
    word-break: break-all;
}
.dp-schema-possible {
    width: 100%;
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ps-text-faint);
}
.dp-schema-children {
    margin-left: 2px;
}
.dp-schema-node:not(.is-open) > .dp-schema-children {
    display: none;
}
.dp-schema-node.has-children > .dp-schema-row .dp-schema-name {
    font-weight: 700;
}
