/* ===== HELP / DEVELOPER DOCS LIGHT MODE CONSISTENCY ===== */
body:not(.theme-dark) .backend-content-wrap:has(.help-docs-page) {
    background: #eef9ff;
    max-width: none;
}

body:not(.theme-dark) .help-docs-page {
    color: #0f172a;
}

body:not(.theme-dark) .help-docs-hero {
    background: linear-gradient(110deg, #2f8de4 0%, #29b8d0 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 76, 117, 0.14);
    color: #fff;
    padding: 2rem 2.25rem;
}

body:not(.theme-dark) .help-docs-hero h1,
body:not(.theme-dark) .help-docs-hero p,
body:not(.theme-dark) .help-docs-hero small,
body:not(.theme-dark) .help-docs-hero .lead {
    color: #fff !important;
}

body:not(.theme-dark) .help-docs-hero h1 {
    font-size: clamp(1.8rem, 2.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.45rem;
}

body:not(.theme-dark) .help-docs-hero p {
    font-size: 1.05rem;
    margin-bottom: 0;
}

body:not(.theme-dark) .help-docs-card,
body:not(.theme-dark) .developer-docs-page .tab-content,
body:not(.theme-dark) .developer-docs-page .doc-tabs,
body:not(.theme-dark) .developer-docs-page .card {
    background: #fff;
    border: 1px solid #cfe5f5 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(15, 76, 117, 0.08) !important;
}

body:not(.theme-dark) .help-docs-card {
    padding: 1.5rem 1.75rem;
}

body:not(.theme-dark) .help-docs-prose h2,
body:not(.theme-dark) .help-docs-prose h3,
body:not(.theme-dark) .developer-docs-page h2,
body:not(.theme-dark) .developer-docs-page h3,
body:not(.theme-dark) .developer-docs-page h4 {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0;
}

body:not(.theme-dark) .help-docs-prose h2 {
    border-top: 1px solid #e1eff8;
    margin-top: 1.45rem;
    padding-top: 1.45rem;
}

body:not(.theme-dark) .help-docs-prose h2:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

body:not(.theme-dark) .help-docs-prose p,
body:not(.theme-dark) .help-docs-prose li,
body:not(.theme-dark) .developer-docs-page p,
body:not(.theme-dark) .developer-docs-page li,
body:not(.theme-dark) .developer-docs-page td {
    color: #334155;
    line-height: 1.65;
}

body:not(.theme-dark) .help-docs-page a,
body:not(.theme-dark) .developer-docs-page a {
    color: #116ec0;
    font-weight: 700;
    text-decoration: none;
}

body:not(.theme-dark) .help-docs-page a:hover,
body:not(.theme-dark) .developer-docs-page a:hover {
    color: #0f4c81;
    text-decoration: underline;
}

body:not(.theme-dark) .developer-docs-page .doc-tabs {
    border-bottom: 0;
    overflow: hidden;
    padding: 0 0.75rem;
}

body:not(.theme-dark) .developer-docs-page .doc-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 700;
    padding: 1rem 1.1rem;
}

body:not(.theme-dark) .developer-docs-page .doc-tabs .nav-link.active {
    background: #f4fbff;
    border-bottom-color: #2f8de4;
    color: #2388df;
}

body:not(.theme-dark) .developer-docs-page .tab-content {
    border-top: 0 !important;
    padding-bottom: 1.25rem;
}

body:not(.theme-dark) .developer-docs-page .doc-nav {
    background: linear-gradient(160deg, #1f74bd 0%, #2388df 50%, #29b8d0 100%) !important;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(15, 76, 117, 0.15);
}

body:not(.theme-dark) .developer-docs-page .doc-nav a:hover,
body:not(.theme-dark) .developer-docs-page .doc-nav a.active {
    border-left-color: #aee7f7;
    transform: none;
}

body:not(.theme-dark) .developer-docs-page .card-header,
body:not(.theme-dark) .developer-docs-page .table-light,
body:not(.theme-dark) .developer-docs-page .list-group-item {
    background-color: #f4fbff !important;
    border-color: #d7ebf8 !important;
}

body:not(.theme-dark) .developer-docs-page .code-block,
body:not(.theme-dark) .developer-docs-page pre,
body:not(.theme-dark) .developer-docs-page code {
    border-radius: 8px;
}

body:not(.theme-dark) .developer-docs-page .code-block {
    background: #0f2f4f !important;
    box-shadow: 0 12px 26px rgba(15, 47, 79, 0.16) !important;
}

body:not(.theme-dark) .developer-docs-page .endpoint,
body:not(.theme-dark) .developer-docs-page .bg-gradient-primary {
    background: linear-gradient(110deg, #2f8de4, #29b8d0) !important;
}

@media (max-width: 767.98px) {
    body:not(.theme-dark) .help-docs-hero,
    body:not(.theme-dark) .help-docs-card {
        padding: 1.25rem;
    }

    body:not(.theme-dark) .developer-docs-page .doc-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}
/* Help & Support pages */
body:not(.theme-dark) .support-center-page .nav-tabs,
body:not(.theme-dark) .support-center-page .tab-content,
body:not(.theme-dark) .feedback-page .card,
body:not(.theme-dark) .support-center-page .alert {
    background: #fff;
    border: 1px solid #cfe5f5 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(15, 76, 117, 0.08) !important;
}

body:not(.theme-dark) .support-center-page .nav-tabs {
    border-bottom: 0;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

body:not(.theme-dark) .support-center-page .nav-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 700;
    padding: 0.95rem 1.05rem;
}

body:not(.theme-dark) .support-center-page .nav-tabs .nav-link.active {
    background: #f4fbff;
    border-bottom-color: #2f8de4;
    color: #2388df;
}

body:not(.theme-dark) .support-center-page .tab-content {
    min-height: 74px;
    padding: 1rem;
}

body:not(.theme-dark) .support-center-page .alert-info,
body:not(.theme-dark) .feedback-page .feedback-tips {
    background: #dff7ff !important;
    border: 1px solid #aee7f7 !important;
    color: #0f4c5c !important;
}

body:not(.theme-dark) .support-center-page .btn-primary,
body:not(.theme-dark) .feedback-page .btn-primary,
body:not(.theme-dark) .feedback-page .feedback-submit {
    background: linear-gradient(110deg, #2f8de4, #29b8d0) !important;
    border: 0 !important;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 800;
}

body:not(.theme-dark) .feedback-page .form-control,
body:not(.theme-dark) .feedback-page .form-select {
    border-color: #cfe5f5;
    border-radius: 8px;
}

body:not(.theme-dark) .feedback-page .form-control:focus,
body:not(.theme-dark) .feedback-page .form-select:focus {
    border-color: #2f8de4;
    box-shadow: 0 0 0 0.2rem rgba(47, 141, 228, 0.15);
}
body:not(.theme-dark) .developer-docs-page #docTabsContent > .tab-pane {
    display: none !important;
    opacity: 1 !important;
}

body:not(.theme-dark) .developer-docs-page #docTabsContent > .tab-pane.active,
body:not(.theme-dark) .developer-docs-page #docTabsContent > .tab-pane:target {
    display: block !important;
    opacity: 1 !important;
}

body:not(.theme-dark) .developer-docs-page:has(#dev:target) #docs,
body:not(.theme-dark) .developer-docs-page:has(#git:target) #docs,
body:not(.theme-dark) .developer-docs-page:has(#simple:target) #docs,
body:not(.theme-dark) .developer-docs-page:has(#request:target) #docs,
body:not(.theme-dark) .developer-docs-page:has(#request-doc:target) #docs {
    display: none !important;
}

/* Force documentation/help surfaces into the launch light content system even when the shell sidebar uses dark mode. */
.backend-content-wrap:has(.help-docs-page) {
    background: #eef9ff !important;
    max-width: none;
}

.help-docs-page {
    color: #0f172a !important;
    padding: 0 0 2rem;
}

.help-docs-hero {
    background: linear-gradient(110deg, #2f8de4 0%, #29b8d0 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 36px rgba(15, 76, 117, 0.14) !important;
    color: #fff !important;
    padding: 2rem 2.25rem !important;
}

.help-docs-hero h1,
.help-docs-hero p,
.help-docs-hero small,
.help-docs-hero .lead {
    color: #fff !important;
}

.help-docs-hero h1 {
    font-size: clamp(1.8rem, 2.2vw, 2.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    margin: 0 0 0.45rem !important;
}

.help-docs-card,
.developer-docs-page .tab-content,
.developer-docs-page .doc-tabs,
.developer-docs-page .card {
    background: #fff !important;
    border: 1px solid #cfe5f5 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(15, 76, 117, 0.08) !important;
    color: #334155 !important;
}

.help-docs-card {
    padding: 1.5rem 1.75rem !important;
}

.help-docs-prose h2,
.help-docs-prose h3,
.help-docs-prose h4,
.developer-docs-page h2,
.developer-docs-page h3,
.developer-docs-page h4 {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.help-docs-prose p,
.help-docs-prose li,
.help-docs-prose td,
.help-docs-prose th,
.developer-docs-page p,
.developer-docs-page li,
.developer-docs-page td,
.developer-docs-page th {
    color: #334155 !important;
    line-height: 1.65 !important;
}

.help-docs-prose .table,
.developer-docs-page .table {
    --bs-table-bg: #fff;
    --bs-table-color: #334155;
    --bs-table-border-color: #d7ebf8;
    color: #334155 !important;
}

.help-docs-page a,
.developer-docs-page a {
    color: #116ec0 !important;
    font-weight: 700;
    text-decoration: none;
}

.help-docs-page a:hover,
.developer-docs-page a:hover {
    color: #0f4c81 !important;
    text-decoration: underline;
}

.developer-docs-page .doc-tabs .nav-link {
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    color: #64748b !important;
    font-weight: 700 !important;
    padding: 1rem 1.1rem !important;
}

.developer-docs-page .doc-tabs .nav-link.active {
    background: #f4fbff !important;
    border-bottom-color: #2f8de4 !important;
    color: #2388df !important;
}

.developer-docs-page .doc-nav {
    background: linear-gradient(160deg, #1f74bd 0%, #2388df 50%, #29b8d0 100%) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 24px rgba(15, 76, 117, 0.15) !important;
}

.developer-docs-page .doc-nav,
.developer-docs-page .doc-nav h6,
.developer-docs-page .doc-nav a {
    color: #fff !important;
}
.help-docs-page table,
.developer-docs-page table,
.product-guide-page table {
    color: #10233f !important;
}

.help-docs-page th,
.help-docs-page td,
.developer-docs-page th,
.developer-docs-page td,
.product-guide-page th,
.product-guide-page td {
    color: #10233f !important;
    border-color: #cbdff2 !important;
}

.help-docs-page .text-muted,
.developer-docs-page .text-muted,
.product-guide-page .text-muted {
    color: #475569 !important;
}
body.theme-dark .backend-content-wrap:has(.help-docs-page) {
    background: #020617 !important;
    max-width: none;
}

body.theme-dark .help-docs-page {
    color: #e2e8f0 !important;
}

body.theme-dark .help-docs-card,
body.theme-dark .developer-docs-page .tab-content,
body.theme-dark .developer-docs-page .doc-tabs,
body.theme-dark .developer-docs-page .card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: none !important;
    color: #cbd5e1 !important;
}

body.theme-dark .help-docs-prose h2,
body.theme-dark .help-docs-prose h3,
body.theme-dark .help-docs-prose h4,
body.theme-dark .developer-docs-page h2,
body.theme-dark .developer-docs-page h3,
body.theme-dark .developer-docs-page h4,
body.theme-dark .developer-docs-page h5,
body.theme-dark .developer-docs-page h6 {
    color: #f8fafc !important;
}

body.theme-dark .help-docs-prose p,
body.theme-dark .help-docs-prose li,
body.theme-dark .help-docs-prose td,
body.theme-dark .help-docs-prose th,
body.theme-dark .developer-docs-page p,
body.theme-dark .developer-docs-page li,
body.theme-dark .developer-docs-page td,
body.theme-dark .developer-docs-page th {
    color: #cbd5e1 !important;
}

body.theme-dark .help-docs-page a,
body.theme-dark .developer-docs-page a {
    color: #7dd3fc !important;
}

body.theme-dark .help-docs-page a:hover,
body.theme-dark .developer-docs-page a:hover {
    color: #bae6fd !important;
}

body.theme-dark .developer-docs-page .doc-tabs .nav-link {
    color: #94a3b8 !important;
}

body.theme-dark .developer-docs-page .doc-tabs .nav-link.active {
    background: #1e293b !important;
    border-bottom-color: #38bdf8 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .developer-docs-page .card-header,
body.theme-dark .developer-docs-page .table-light,
body.theme-dark .developer-docs-page .list-group-item,
body.theme-dark .developer-docs-page .integration-card,
body.theme-dark .developer-docs-page .tech-card,
body.theme-dark .developer-docs-page .visual-flow,
body.theme-dark .developer-docs-page .workflow-card,
body.theme-dark .developer-docs-page .pr-checklist {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .developer-docs-page .feature-box,
body.theme-dark .developer-docs-page .simple-explanation,
body.theme-dark .developer-docs-page .alert-info-enhanced,
body.theme-dark .developer-docs-page .alert-success-enhanced,
body.theme-dark .developer-docs-page .alert-warning-enhanced,
body.theme-dark .developer-docs-page .alert-danger-enhanced,
body.theme-dark .developer-docs-page .flow-step {
    background: rgba(30, 41, 59, 0.72) !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .help-docs-page table,
body.theme-dark .developer-docs-page table,
body.theme-dark .product-guide-page table {
    color: #cbd5e1 !important;
}

body.theme-dark .help-docs-page th,
body.theme-dark .help-docs-page td,
body.theme-dark .developer-docs-page th,
body.theme-dark .developer-docs-page td,
body.theme-dark .product-guide-page th,
body.theme-dark .product-guide-page td {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

body.theme-dark .help-docs-page .text-muted,
body.theme-dark .developer-docs-page .text-muted,
body.theme-dark .product-guide-page .text-muted {
    color: #94a3b8 !important;
}

.help-hub-link {
    display: grid;
    gap: 0.35rem;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid #cfe5f5;
    border-radius: 8px;
    background: #f8fcff;
    color: #0f172a !important;
    text-decoration: none !important;
}

.help-hub-link:hover {
    border-color: #2f8de4;
    background: #eef9ff;
    text-decoration: none !important;
}

.help-hub-link i {
    color: #2388df;
    font-size: 1.35rem;
}

.help-hub-link span {
    color: #0f172a;
    font-weight: 800;
}

.help-hub-link small {
    color: #475569;
    line-height: 1.45;
}

body.theme-dark .help-hub-link {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0 !important;
}

body.theme-dark .help-hub-link:hover {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.55);
}

body.theme-dark .help-hub-link i {
    color: #7dd3fc;
}

body.theme-dark .help-hub-link span {
    color: #f8fafc;
}

body.theme-dark .help-hub-link small {
    color: #94a3b8;
}

body.theme-dark .help-docs-prose .table,
body.theme-dark .product-guide-page .table {
    --bs-table-bg: #0f172a;
    --bs-table-color: #cbd5e1;
    --bs-table-border-color: #334155;
    --bs-table-hover-bg: #1e293b;
    --bs-table-hover-color: #f8fafc;
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

body.theme-dark .help-docs-prose .table thead,
body.theme-dark .product-guide-page .table thead {
    --bs-table-bg: #111827;
    --bs-table-color: #f8fafc;
}

body.theme-dark .help-docs-prose .table th,
body.theme-dark .help-docs-prose .table td,
body.theme-dark .product-guide-page .table th,
body.theme-dark .product-guide-page .table td {
    background-color: transparent !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .help-docs-prose .table th,
body.theme-dark .product-guide-page .table th {
    color: #f8fafc !important;
}

/* Developer docs tabs must stay visible for hash-routed sections in every theme. */
.developer-docs-page #docTabsContent > .tab-pane {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.developer-docs-page #docTabsContent > .tab-pane.active.show:not([hidden]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.developer-docs-page #docTabsContent {
    min-height: 320px;
}

body.theme-dark .developer-docs-page .table {
    --bs-table-bg: #0f172a;
    --bs-table-color: #cbd5e1;
    --bs-table-border-color: #334155;
    --bs-table-hover-bg: #1e293b;
    --bs-table-hover-color: #f8fafc;
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

body.theme-dark .developer-docs-page .table thead,
body.theme-dark .developer-docs-page .table-light {
    --bs-table-bg: #111827;
    --bs-table-color: #f8fafc;
    background-color: #111827 !important;
    color: #f8fafc !important;
}

body.theme-dark .developer-docs-page .table th,
body.theme-dark .developer-docs-page .table td {
    background-color: transparent !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .developer-docs-page .table th {
    color: #f8fafc !important;
}

/* Final developer-docs pane fallback: hash targets and active panes must render their content. */
.developer-docs-page #docTabsContent > .tab-pane {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.developer-docs-page #docTabsContent > .tab-pane.active,
.developer-docs-page #docTabsContent > .tab-pane.show,
.developer-docs-page #docTabsContent > .tab-pane:target,
.developer-docs-page #docTabsContent > .tab-pane[aria-hidden="false"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.developer-docs-page:has(#dev:target) #docs,
.developer-docs-page:has(#git:target) #docs,
.developer-docs-page:has(#simple:target) #docs,
.developer-docs-page:has(#request:target) #docs,
.developer-docs-page:has(#request-doc:target) #docs {
    display: none !important;
}

.developer-docs-page #docTabsContent > .tab-pane.active *,
.developer-docs-page #docTabsContent > .tab-pane.show *,
.developer-docs-page #docTabsContent > .tab-pane:target * {
    visibility: visible;
}
/* Developer docs dark-mode readability fixes for Bootstrap utility surfaces. */
body.theme-dark .developer-docs-page .bg-light,
body.theme-dark .developer-docs-page .list-group-item,
body.theme-dark .developer-docs-page .accordion-button,
body.theme-dark .developer-docs-page .accordion-body,
body.theme-dark .developer-docs-page .requirement-box,
body.theme-dark .developer-docs-page .value-box,
body.theme-dark .developer-docs-page .constraint-box {
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .developer-docs-page .card.bg-success,
body.theme-dark .developer-docs-page .card.bg-primary,
body.theme-dark .developer-docs-page .card.bg-info,
body.theme-dark .developer-docs-page .card.bg-warning,
body.theme-dark .developer-docs-page .card.bg-danger {
    color: #ffffff !important;
}

body.theme-dark .developer-docs-page .table,
body.theme-dark .developer-docs-page .table > :not(caption) > * > * {
    --bs-table-bg: #0f172a;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: #334155;
    --bs-table-striped-bg: #111827;
    --bs-table-striped-color: #e2e8f0;
    --bs-table-hover-bg: #1e293b;
    --bs-table-hover-color: #f8fafc;
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .developer-docs-page .table thead,
body.theme-dark .developer-docs-page .table thead th,
body.theme-dark .developer-docs-page .table-primary,
body.theme-dark .developer-docs-page .table-dark,
body.theme-dark .developer-docs-page .table-light {
    --bs-table-bg: #1e293b;
    --bs-table-color: #f8fafc;
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

body.theme-dark .developer-docs-page .text-dark,
body.theme-dark .developer-docs-page .text-primary,
body.theme-dark .developer-docs-page .text-success,
body.theme-dark .developer-docs-page .text-info,
body.theme-dark .developer-docs-page .text-warning,
body.theme-dark .developer-docs-page .text-danger {
    color: #f8fafc !important;
}

body.theme-dark .developer-docs-page .system-request-document,
body.theme-dark .developer-docs-page .system-request-document .document-body,
body.theme-dark .developer-docs-page .system-request-document .requirement-category,
body.theme-dark .developer-docs-page .system-request-document .value-category {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-dark .developer-docs-page .system-request-document .section-content,
body.theme-dark .developer-docs-page .system-request-document .section-content p,
body.theme-dark .developer-docs-page .system-request-document .document-list li,
body.theme-dark .developer-docs-page .system-request-document .category-title,
body.theme-dark .developer-docs-page .system-request-document .section-label {
    color: #e2e8f0 !important;
}
/* Developer docs tab shell: the tab-content wrapper is structural, not a visible card. */
.developer-docs-page #docTabsContent {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-top: 1.5rem !important;
}

.developer-docs-page #docTabsContent > .tab-pane[hidden] {
    display: none !important;
}

.developer-docs-page #docTabsContent > .tab-pane:not(.active):not(.show) {
    display: none !important;
}

.developer-docs-page #docTabsContent > .tab-pane.active.show:not([hidden]) {
    display: block !important;
}

.developer-docs-page #docTabsContent > .tab-pane:target:not(.active):not(.show),
.developer-docs-page #docTabsContent > .tab-pane[aria-hidden="true"] {
    display: none !important;
}

/* Developer docs contrast pass: normalize mixed Bootstrap/light panels inside the dark docs surface. */
body.theme-dark .developer-docs-page {
    --docs-bg: #020617;
    --docs-surface: #0f172a;
    --docs-surface-raised: #111827;
    --docs-surface-soft: #1e293b;
    --docs-border: #334155;
    --docs-text: #e5edf7;
    --docs-muted: #b7c6d9;
    --docs-link: #7dd3fc;
    --docs-code-bg: #5b4ac6;
    --docs-code-bg-2: #7c3aed;
    --docs-info-bg: #102a4c;
    --docs-info-border: #38bdf8;
    --docs-success-bg: #123524;
    --docs-success-border: #22c55e;
    --docs-warning-bg: #3f2f10;
    --docs-warning-border: #f59e0b;
    --docs-danger-bg: #3f1518;
    --docs-danger-border: #ef4444;
}

body.theme-dark .developer-docs-page .developer-docs-active-section,
body.theme-dark .developer-docs-page .doc-section,
body.theme-dark .developer-docs-page .card,
body.theme-dark .developer-docs-page .bg-light,
body.theme-dark .developer-docs-page .tech-card,
body.theme-dark .developer-docs-page .integration-card,
body.theme-dark .developer-docs-page .visual-flow,
body.theme-dark .developer-docs-page .workflow-card,
body.theme-dark .developer-docs-page .feature-box,
body.theme-dark .developer-docs-page .simple-explanation,
body.theme-dark .developer-docs-page .flow-step,
body.theme-dark .developer-docs-page .requirement-box,
body.theme-dark .developer-docs-page .value-box,
body.theme-dark .developer-docs-page .constraint-box,
body.theme-dark .developer-docs-page .list-group-item,
body.theme-dark .developer-docs-page .accordion-item,
body.theme-dark .developer-docs-page .accordion-button,
body.theme-dark .developer-docs-page .accordion-body {
    background: var(--docs-surface-raised) !important;
    border-color: var(--docs-border) !important;
    color: var(--docs-text) !important;
}

body.theme-dark .developer-docs-page .doc-section {
    box-shadow: none !important;
}

body.theme-dark .developer-docs-page h1,
body.theme-dark .developer-docs-page h2,
body.theme-dark .developer-docs-page h3,
body.theme-dark .developer-docs-page h4,
body.theme-dark .developer-docs-page h5,
body.theme-dark .developer-docs-page h6,
body.theme-dark .developer-docs-page strong,
body.theme-dark .developer-docs-page .fw-bold {
    color: #ffffff !important;
}

body.theme-dark .developer-docs-page p,
body.theme-dark .developer-docs-page li,
body.theme-dark .developer-docs-page dd,
body.theme-dark .developer-docs-page td,
body.theme-dark .developer-docs-page th,
body.theme-dark .developer-docs-page small,
body.theme-dark .developer-docs-page .text-muted {
    color: var(--docs-muted) !important;
}

body.theme-dark .developer-docs-page .doc-nav h6,
body.theme-dark .developer-docs-page .doc-nav a {
    color: #eef9ff !important;
}

body.theme-dark .developer-docs-page .doc-nav a:hover,
body.theme-dark .developer-docs-page .doc-nav a.active {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

body.theme-dark .developer-docs-page .badge.bg-light,
body.theme-dark .developer-docs-page .badge.text-dark {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-dark .developer-docs-page .api-endpoint,
body.theme-dark .developer-docs-page .endpoint {
    background: var(--docs-surface-raised) !important;
    border: 1px solid var(--docs-border) !important;
    border-left: 4px solid #6366f1 !important;
    border-radius: 8px !important;
    color: var(--docs-text) !important;
}

body.theme-dark .developer-docs-page .api-endpoint code,
body.theme-dark .developer-docs-page .endpoint code,
body.theme-dark .developer-docs-page :not(pre) > code {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(125, 211, 252, 0.22) !important;
    border-radius: 4px !important;
    color: #f472b6 !important;
    padding: 0.12rem 0.35rem !important;
}

body.theme-dark .developer-docs-page .code-block,
body.theme-dark .developer-docs-page .branch-diagram,
body.theme-dark .developer-docs-page pre {
    background: linear-gradient(135deg, var(--docs-code-bg) 0%, #6756d6 55%, var(--docs-code-bg-2) 100%) !important;
    border: 1px solid rgba(221, 214, 254, 0.38) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 36px rgba(91, 74, 198, 0.28) !important;
    color: #f8fafc !important;
}

body.theme-dark .developer-docs-page .code-block-header,
body.theme-dark .developer-docs-page .code-block pre,
body.theme-dark .developer-docs-page .code-block code,
body.theme-dark .developer-docs-page pre code {
    background: transparent !important;
    border: 0 !important;
    color: #f8fafc !important;
}

body.theme-dark .developer-docs-page .code-block-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.theme-dark .developer-docs-page .alert,
body.theme-dark .developer-docs-page .alert-info,
body.theme-dark .developer-docs-page .alert-info-enhanced {
    background: var(--docs-info-bg) !important;
    border: 1px solid var(--docs-info-border) !important;
    color: #dff7ff !important;
}

body.theme-dark .developer-docs-page .alert-success,
body.theme-dark .developer-docs-page .alert-success-enhanced,
body.theme-dark .developer-docs-page .value-summary {
    background: var(--docs-success-bg) !important;
    border: 1px solid var(--docs-success-border) !important;
    color: #dcfce7 !important;
}

body.theme-dark .developer-docs-page .alert-warning,
body.theme-dark .developer-docs-page .alert-warning-enhanced,
body.theme-dark .developer-docs-page .beginner-tip,
body.theme-dark .developer-docs-page .golden-rule {
    background: linear-gradient(135deg, #7c4f04 0%, #a16207 100%) !important;
    border: 1px solid var(--docs-warning-border) !important;
    color: #fff7d6 !important;
}

body.theme-dark .developer-docs-page .alert-danger,
body.theme-dark .developer-docs-page .alert-danger-enhanced {
    background: var(--docs-danger-bg) !important;
    border: 1px solid var(--docs-danger-border) !important;
    color: #fee2e2 !important;
}

body.theme-dark .developer-docs-page .alert *,
body.theme-dark .developer-docs-page .alert-info *,
body.theme-dark .developer-docs-page .alert-info-enhanced *,
body.theme-dark .developer-docs-page .alert-success *,
body.theme-dark .developer-docs-page .alert-success-enhanced *,
body.theme-dark .developer-docs-page .alert-warning *,
body.theme-dark .developer-docs-page .alert-warning-enhanced *,
body.theme-dark .developer-docs-page .alert-danger *,
body.theme-dark .developer-docs-page .alert-danger-enhanced *,
body.theme-dark .developer-docs-page .value-summary *,
body.theme-dark .developer-docs-page .beginner-tip *,
body.theme-dark .developer-docs-page .golden-rule * {
    color: inherit !important;
}

body.theme-dark .developer-docs-page .table,
body.theme-dark .developer-docs-page .table > :not(caption) > * > *,
body.theme-dark .developer-docs-page .comparison-table,
body.theme-dark .developer-docs-page .comparison-table th,
body.theme-dark .developer-docs-page .comparison-table td {
    --bs-table-bg: var(--docs-surface);
    --bs-table-color: var(--docs-text);
    --bs-table-border-color: var(--docs-border);
    --bs-table-striped-bg: var(--docs-surface-raised);
    --bs-table-striped-color: var(--docs-text);
    --bs-table-hover-bg: var(--docs-surface-soft);
    --bs-table-hover-color: #ffffff;
    background-color: var(--docs-surface) !important;
    border-color: var(--docs-border) !important;
    color: var(--docs-text) !important;
}

body.theme-dark .developer-docs-page .table thead,
body.theme-dark .developer-docs-page .table thead th,
body.theme-dark .developer-docs-page .comparison-table thead,
body.theme-dark .developer-docs-page .comparison-table thead th {
    background: var(--docs-surface-soft) !important;
    color: #ffffff !important;
}

body.theme-dark .developer-docs-page .text-dark,
body.theme-dark .developer-docs-page .text-primary,
body.theme-dark .developer-docs-page .text-success,
body.theme-dark .developer-docs-page .text-info,
body.theme-dark .developer-docs-page .text-warning,
body.theme-dark .developer-docs-page .text-danger {
    color: var(--docs-text) !important;
}

/* System request content */
.system-request-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.requirement-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
}

.value-box {
    border: 1px solid #dee2e6;
}

.constraint-box {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    height: 100%;
}

@media print {
    .system-request-container {
        padding: 0;
    }
    
    .card {
        break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .fs-5 {
        font-size: 1rem !important;
    }
}

/* System request document */
.system-request-document {
    max-width: 900px;
    margin: 2rem auto;
    background: #ffffff;
    padding: 0;
    font-family: 'Segoe UI', 'Calibri', 'Arial', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.document-header {
    background: linear-gradient(135deg, #d2691e 0%, #8b4513 100%);
    padding: 3rem 2rem;
    border-radius: 8px 8px 0 0;
}

.document-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.document-body {
    padding: 2rem 3rem;
    border: 1px solid #e0e0e0;
    border-top: none;
    background: #fafafa;
}

.document-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d0d0d0;
}

.document-section:last-of-type {
    border-bottom: none;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.section-content {
    font-size: 1rem;
    color: #333333;
}

.section-content p {
    margin-bottom: 0.75rem;
    text-align: justify;
}

.document-list {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.document-list li {
    margin-bottom: 0.5rem;
    text-align: justify;
}

.requirement-category,
.value-category {
    background: #ffffff;
    padding: 1.25rem;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.value-summary {
    background: #e8f5e9;
    padding: 1.25rem;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

.document-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d0d0d0;
    text-align: center;
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    .system-request-document {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .document-header {
        background: #8b4513 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .document-body {
        border: none;
        background: #ffffff !important;
    }

    .document-section {
        page-break-inside: avoid;
    }

    .requirement-category,
    .value-category {
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .system-request-document {
        margin: 1rem;
    }

    .document-body {
        padding: 1.5rem;
    }

    .document-title {
        font-size: 1.5rem;
    }

    .document-list {
        margin-left: 1.25rem;
    }
}

/* Simple docs content */
.simple-docs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.doc-section {
    scroll-margin-top: 2rem;
}

.card-header h2 {
    font-size: 1.75rem;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

.table td {
    vertical-align: middle;
}

.badge.p-3 {
    font-size: 1rem;
}

@media print {
    .simple-docs-container {
        padding: 0;
    }
}

/* Git workflow inline-style extraction */
.git-step-circle {
    font-weight: 700;
}

.git-step-circle--lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.git-step-circle--sm {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.git-repo-url-group {
    max-width: 500px;
}

/* Progressive documentation: approachable first, comprehensive on demand. */
.help-depth-picker {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid #bae0f5;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.help-depth-picker h2 {
    margin-bottom: 0.35rem !important;
}

.help-depth-eyebrow,
.help-reference-kicker {
    color: #1263a5 !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-depth-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.help-depth-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem;
    border: 1px solid #cfe5f5;
    border-radius: 8px;
    background: #fff;
    text-decoration: none !important;
}

.help-depth-option:hover {
    border-color: #2388df;
    background: #f8fcff;
    text-decoration: none !important;
}

.help-depth-option > i {
    color: #2388df;
    font-size: 1.2rem;
}

.help-depth-option span,
.help-depth-option small {
    display: block;
}

.help-depth-option strong {
    color: #0f172a;
}

.help-depth-option small {
    margin-top: 0.2rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

.help-reference-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem;
    border: 1px solid #cfe5f5;
    border-radius: 10px;
    background: #f8fcff;
}

.help-reference-intro .btn {
    flex: 0 0 auto;
}

.help-reference-map {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #d7ebf8;
}

.help-reference-map a {
    padding: 0.45rem 0.7rem;
    border: 1px solid #cfe5f5;
    border-radius: 999px;
    background: #fff;
    font-size: 0.86rem;
    text-decoration: none !important;
}

.help-reference-map a:hover {
    border-color: #2388df;
    background: #eef9ff;
}

.help-reference-table th:first-child {
    min-width: 13rem;
}

.help-reference-steps {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.75rem;
}

.help-reference-steps article {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #d7ebf8;
    border-radius: 8px;
    background: #f8fcff;
}

.help-reference-steps article > span {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    background: #1674c1;
    color: #fff;
    font-weight: 800;
}

.help-reference-steps h3 {
    margin: 0 0 0.15rem !important;
    font-size: 1rem !important;
}

.help-reference-steps p {
    margin: 0;
}

.help-reference-definitions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 2rem;
}

.help-reference-definitions > div {
    padding: 1rem;
    border: 1px solid #d7ebf8;
    border-radius: 8px;
    background: #f8fcff;
}

.help-reference-definitions dt {
    margin-bottom: 0.25rem;
    color: #0f172a;
    font-weight: 800;
}

.help-reference-definitions dd {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}

.help-reference-mode {
    height: 100%;
    padding: 1.15rem;
    border: 1px solid #cfe5f5;
    border-radius: 10px;
    background: #f8fcff;
}

.help-reference-mode > i {
    color: #2388df;
    font-size: 1.6rem;
}

.help-reference-mode h3 {
    margin: 0.65rem 0 0.35rem !important;
}

body.theme-dark .help-depth-picker,
body.theme-dark .help-reference-intro,
body.theme-dark .help-reference-steps article,
body.theme-dark .help-reference-definitions > div,
body.theme-dark .help-reference-mode {
    border-color: #334155;
    background: #111827;
}

body.theme-dark .help-depth-eyebrow,
body.theme-dark .help-reference-kicker {
    color: #7dd3fc !important;
}

body.theme-dark .help-depth-option,
body.theme-dark .help-reference-map a {
    border-color: #334155;
    background: #0f172a;
}

body.theme-dark .help-depth-option:hover,
body.theme-dark .help-reference-map a:hover {
    border-color: #38bdf8;
    background: #1e293b;
}

body.theme-dark .help-depth-option strong,
body.theme-dark .help-reference-definitions dt {
    color: #f8fafc;
}

body.theme-dark .help-depth-option small,
body.theme-dark .help-reference-definitions dd {
    color: #cbd5e1;
}

body.theme-dark .help-reference-map {
    border-bottom-color: #334155;
}

@media (max-width: 991.98px) {
    .help-depth-options,
    .help-reference-definitions {
        grid-template-columns: 1fr;
    }

    .help-reference-intro {
        align-items: flex-start;
        flex-direction: column;
    }
}
