/* Dark surfaces preserve the schedule colors and the navy navigation. */
html[data-theme=dark] body{background:var(--ac-bg)!important;color:var(--ac-text)!important}
html[data-theme=dark] :is(.portfolio-page,.portfolio-content,.portfolio-topbar,.workspace-content,.ws-topbar){background:var(--ac-bg)!important;color:var(--ac-text)}
html[data-theme=dark] :is(.portfolio-shell,.workspace-shell){--pf-text:var(--ac-text);--pf-muted:var(--ac-muted);--pf-line:var(--ac-line)}
html[data-theme=dark] :is(.portfolio-hero,.portfolio-recent,.portfolio-project-card,.portfolio-list-row,.portfolio-dialog,.ws-surface,.ws-library-note,.ws-library-toolbar,.ws-folders,.ws-signal,.ws-dialog,.ws-document-dialog,.fp-workbar,.fp-setup,.fp-canvas,.fp-saved,.fp-guide,.fp-empty,.fp-running,.fp-coming,.studio-frame-wrap,.studio-result-filter,.studio-benchmark-verdicts,.studio-benchmarks>article){background:var(--ac-surface)!important;border-color:var(--ac-line)!important;color:var(--ac-text)!important;box-shadow:none}
html[data-theme=dark] :is(.portfolio-topbar,.portfolio-footer,.ws-file-row,.ws-generated-row,.ws-document-heading,.fp-section-heading,.fp-view-tabs,.fp-canvas-foot,.fp-findings,.fp-findings>div,.fp-finding-details,.studio-result-filter,.ws-preview-source,.ws-section-heading){border-color:var(--ac-line)!important}
html[data-theme=dark] :is(h1,h2,h3,h4,.portfolio-hero h1,.portfolio-project-card h2,.portfolio-list-row h2,.portfolio-stats strong,.ws-page-heading h1,.ws-section-heading h2,.ws-signal strong,.fp-canvas h2,.fp-setup h2,.fp-finding-details summary,.studio-benchmarks h3){color:var(--ac-strong)!important}
html[data-theme=dark] :is(.portfolio-topbar p,.portfolio-section-line,.portfolio-section-line p,.portfolio-hero p,.portfolio-filter-line,.portfolio-footer,.portfolio-member-note,.portfolio-project-description,.portfolio-list-meta,.portfolio-stats span,.portfolio-stats small,.ws-page-heading p,.ws-kicker,.ws-section-description,.ws-muted-empty,.ws-file-meta,.ws-file-row small,.ws-generated-row small,.ws-signal small,.ws-signal>span,.fp-inline-note,.fp-canvas>p,.fp-stage-label,.fp-result-meta,.fp-metrics small,.fp-source label,.fp-setup label,.fp-source-facts dt,.studio-source-name,.studio-source-facts dt,.studio-mode-list>span,.studio-mode-list>div,.fp-canvas-foot,.fp-saved>p,.ws-library-note p){color:var(--ac-muted)!important}
html[data-theme=dark] :is(.portfolio-project-card,.portfolio-list-row,.ws-surface,.fp-canvas,.fp-setup,.ws-library-note,.ws-signal) :is(p,small,dt){color:var(--ac-muted)}
html[data-theme=dark] :is(.portfolio-project-card,.portfolio-list-row,.ws-surface,.fp-setup) :is(strong,dd){color:var(--ac-text)}
html[data-theme=dark] :is(input,select,textarea){background:var(--ac-raised)!important;color:var(--ac-text)!important;border-color:var(--ac-line)!important;color-scheme:dark}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8295ad!important}
html[data-theme=dark] :is(.portfolio-search,.portfolio-secondary,.portfolio-view-switch,.portfolio-filters,.ws-dropzone,.ws-file-format,.ws-tag,.ws-category-list button,.fp-source-select,.fp-result-switch,.fp-view-tabs button,.fp-workbar [data-fp-focus],.fp-source-row,.fp-conversion-selector select,.studio-upload,.studio-source-facts,.fp-example-tag,.fp-output-outline>span,.fp-illustration,.fp-metrics>div,.fp-view-tabs,.fp-source-row>b){background:var(--ac-raised)!important;color:var(--ac-text)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.portfolio-filters,.portfolio-view-switch) button{color:var(--ac-muted)!important}
html[data-theme=dark] :is(.portfolio-filters,.portfolio-view-switch,.fp-result-switch,.fp-view-tabs) .is-active{background:var(--ac-soft)!important;color:#a6cefc!important;border-color:#547da7!important}
html[data-theme=dark] :is(.ws-link-button,.ws-download,.fp-result-actions a,.fp-result-actions button,.fp-findings strong){color:#9cc5f6!important}
html[data-theme=dark] :is(.ws-intro-stat,.ws-intro-stats>div,.ws-hero-stats>div,.ws-stat-card){background:#20334c!important;border-color:#39516f!important}
html[data-theme=dark] .ws-intro-stats :is(strong,small,span){color:#d7e2f1!important}
html[data-theme=dark] .ws-intro{background:linear-gradient(120deg,#14283f,#1b3855)!important;border:1px solid #34536f}
html[data-theme=dark] .portfolio-project-art{background:#19283d!important}
html[data-theme=dark] :is(.portfolio-dialog,.ws-dialog,.fp-source-dialog){background:var(--ac-surface)!important;color:var(--ac-text)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.portfolio-dialog,.ws-dialog,.fp-source-dialog) :is(h2,h3,label,strong){color:var(--ac-text)!important}
html[data-theme=dark] :is(.portfolio-dialog,.ws-dialog,.fp-source-dialog) p{color:var(--ac-muted)!important}
html[data-theme=dark] :is(.portfolio-dialog-heading,.portfolio-dialog-actions,.ws-document-summary,.ws-analysis-summary,.ws-analysis-checks>div,.ws-analysis-checks>article){border-color:var(--ac-line)!important}
html[data-theme=dark] #feature-host :is(#rv-results,#cv-results>div,#p6-review){background:var(--ac-surface)!important;border-color:var(--ac-line)!important;color:var(--ac-text)!important}
html[data-theme=dark] #feature-host :is(#rv-counts>div,#p6-summary>div){background:var(--ac-raised)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.bg-white,.bg-gray-50,.bg-slate-50){background:var(--ac-surface)!important}
html[data-theme=dark] :is(.bg-gray-100,.bg-slate-100){background:var(--ac-raised)!important}
html[data-theme=dark] :is(.text-gray-900,.text-gray-800,.text-slate-900,.text-slate-800){color:var(--ac-strong)!important}
html[data-theme=dark] :is(.text-gray-700,.text-slate-700){color:var(--ac-text)!important}
html[data-theme=dark] :is(.text-gray-600,.text-gray-500,.text-slate-600,.text-slate-500){color:var(--ac-muted)!important}
html[data-theme=dark] :is(.border-gray-200,.border-gray-300,.border-slate-200){border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.ws-table-wrap,.ws-generated-surface) :is(th,td){border-color:var(--ac-line)!important}
html[data-theme=dark] .ws-table-wrap thead,html[data-theme=dark] #feature-host thead{background:#20334d!important;color:var(--ac-text)!important}
html[data-theme=dark] .ws-table-wrap tr:hover{background:var(--ac-raised)!important}
html[data-theme=dark] #feature-host tr[style*="background"]{background:var(--ac-raised)!important;color:var(--ac-text)!important}
html[data-theme=dark] .fp-illustration svg :is(rect,path)[fill="white"]{fill:var(--ac-surface)}
html[data-theme=dark] .fp-illustration svg rect[fill="#e7eff8"]{fill:#263e59}
html[data-theme=dark] .fp-illustration svg text{fill:#bbcde2!important}
html[data-theme=dark] .fp-illustration svg path[stroke="#e2e9f1"],html[data-theme=dark] .fp-illustration svg path[stroke="#e5ebf2"]{stroke:#2c415b}
html[data-theme=dark] :is(.fp-permission,.ws-notice,.portfolio-error,.ws-error,.bg-amber-50){background:#382b20!important;border-color:#6c5134!important;color:#f0c58d!important}
html[data-theme=dark] :is(.bg-red-50,#rv-error,#cv-error){background:#362329!important;border-color:#63404a!important;color:#f5b1b1!important}
html[data-theme=dark] .portfolio-primary,html[data-theme=dark] .bg-brand-500{color:#14233a!important}
html[data-theme=dark] .signin-card,html[data-theme=dark] .card,html[data-theme=dark] .form-panel{background:var(--ac-surface)!important;color:var(--ac-text)!important}
html[data-theme=dark] .signin-shell,html[data-theme=dark] .signin-page,html[data-theme=dark] .auth-panel{background:var(--ac-bg)!important}
html[data-theme=dark] :is(.ws-stat-grid>div,.ws-result-art,.ws-result-card,.ws-table-wrap,.ws-tool-card,.ws-document-summary,.ws-analysis-summary,.ws-analysis-checks,.studio-source-facts,.studio-history-row,.studio-mode-list,.studio-delay-scope,.studio-timeline>div,.portfolio-card-metrics,.portfolio-preview-empty){background:var(--ac-raised)!important;border-color:var(--ac-line)!important;color:var(--ac-text)!important}
html[data-theme=dark] :is(.ws-stat-grid strong,.ws-preview-metrics strong,.ws-change-movement strong,.ws-finding strong,.ws-result-art strong,.ws-generated-name strong,.ws-document-name,.portfolio-card-info h2,.portfolio-card-metrics strong,.studio-source-facts dd,.studio-timeline strong){color:var(--ac-strong)!important}
html[data-theme=dark] :is(.ws-stat-grid span,.ws-stat-grid small,.ws-result-art .ws-kicker,.ws-change-movement,.ws-finding,.ws-progress-line>div,.ws-preview-metrics>div,.ws-generated-name small,.ws-document-table td,.ws-document-table th,.portfolio-card-info p,.portfolio-card-info small,.portfolio-card-foot,.portfolio-card-metrics small,.portfolio-legend,.portfolio-section-line p>span,.studio-timeline small){color:var(--ac-muted)!important}
html[data-theme=dark] :is(.ws-bar-track,.studio-progress-result b){background:#344a65!important}
html[data-theme=dark] :is(.portfolio-card-foot,.portfolio-card-metrics,.ws-stat-grid>div,.ws-result-card,.ws-folder-heading,.studio-source-facts>div){border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.studio-benchmark-verdicts span,.fp-quality-notes,.studio-mode-list b){background:var(--ac-soft)!important;color:var(--ac-muted)!important}
html[data-theme=dark] .studio-benchmark-verdicts .meets{background:#19392f!important;color:#95d9bf!important}
html[data-theme=dark] .studio-benchmark-verdicts .needs-attention{background:#463322!important;color:#efc28e!important}
html[data-theme=dark] .ws-document-table tr:hover td{background:var(--ac-soft)!important}

html[data-theme=dark] .fp-skeleton span{background:#30445e!important}
html[data-theme=dark] :is(.portfolio-preview,.portfolio-card-role,.portfolio-status){background:var(--ac-raised)!important;border-color:var(--ac-line)!important;color:var(--ac-muted)!important}
html[data-theme=dark] .portfolio-status{color:#a6cefc!important;background:var(--ac-soft)!important}
html[data-theme=dark] .portfolio-status.draft{background:#413020!important;color:#efc28e!important}
html[data-theme=dark] .portfolio-status.closed{background:var(--ac-raised)!important;color:var(--ac-muted)!important}
html[data-theme=dark] :is(.studio-spatial,.studio-viewer,.studio-library button,.studio-cube-doc,.studio-cube-path,.studio-delay-equation span,.studio-delay-intro,.studio-workbook-ready){background:var(--ac-raised)!important;border-color:var(--ac-line)!important;color:var(--ac-text)!important}
html[data-theme=dark] :is(.studio-source-metrics strong,.studio-status-key strong,.studio-packages strong,.studio-library strong,.studio-progress-result strong){color:var(--ac-strong)!important}
html[data-theme=dark] :is(.studio-status-key,.studio-packages>div,.studio-source-metrics small,.studio-package-heading span,.studio-library small,.studio-no-data,.studio-delay-scope span,.ws-folders button){color:var(--ac-muted)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.studio-source-metrics,.studio-delay-scope>div,.studio-not-available){border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.studio-status,.studio-timeline>div>span,.ws-folders button.is-active){background:var(--ac-soft)!important;color:var(--ac-accent)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] .studio-error{background:#362329!important;color:#f5b1b1!important;border-color:#63404a!important}
html[data-theme=dark] .portfolio-footer a{color:var(--ac-accent)}

html[data-theme=dark] .studio-upload>span{color:var(--ac-muted)!important}
html[data-theme=dark] input::file-selector-button{background:var(--ac-soft);color:var(--ac-text);border:1px solid var(--ac-line);border-radius:5px;padding:7px 10px;font:12px 'Open Sans',sans-serif}
html[data-theme=dark] :is(.studio-target-dialog .studio-target-row,.studio-target-current,.studio-target-dialog .studio-target-others){background:var(--ac-surface)!important;color:var(--ac-text)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] .studio-target-dialog .studio-target-row[aria-pressed=true]{background:rgba(94,155,224,.18)!important;border-color:#5e9be0!important;box-shadow:inset 3px 0 0 #5e9be0}
html[data-theme=dark] :is(.studio-target-dialog .studio-target-row strong,.studio-target-current strong){color:var(--ac-text)!important}
html[data-theme=dark] :is(.studio-target-dialog .studio-target-row small,.studio-target-selected){color:var(--ac-muted)!important}
html[data-theme=dark] .studio-date-issues li{background:rgba(236,197,138,.10)!important;border-color:rgba(236,197,138,.45)!important;color:var(--ac-text)!important}
html[data-theme=dark] .studio-date-issues li small{color:var(--ac-muted)!important}
html[data-theme=dark] :is(.studio-target-dropbtn,.studio-target-panel){background:var(--ac-surface)!important;color:var(--ac-text)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] .studio-target-opt{color:var(--ac-text)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] :is(.studio-target-opt:hover,.studio-target-opt[aria-selected=true],.studio-target-dropbtn.is-picked){background:rgba(94,155,224,.18)!important}
html[data-theme=dark] .studio-target-opt small{color:var(--ac-muted)!important}
html[data-theme=dark] .studio-date-alert{background:rgba(236,130,70,.14)!important;border-color:#e08b4f!important;color:#ffd9bf!important}
html[data-theme=dark] .studio-date-dialog p strong{color:#ffd9bf!important}
html[data-theme=dark] .studio-actuals-stats>div{background:var(--ac-surface)!important;border-color:var(--ac-line)!important}
html[data-theme=dark] .studio-actuals-stats strong{color:var(--ac-text)!important}html[data-theme=dark] .studio-actuals-stats small{color:var(--ac-muted)!important}
html[data-theme=dark] .studio-chip{background:var(--ac-panel,#15233a);border-color:var(--ac-line,#2c3e5c);color:var(--ac-text,#e6edf7)}
html[data-theme=dark] .studio-chip:hover:not(:disabled){background:#1c2e4a;border-color:#4f78ad}
html[data-theme=dark] .studio-chip.is-on{background:#1d3558;border-color:#6aa2e6}
html[data-theme=dark] .studio-chip.is-on i{background:#3f7fd0;border-color:#3f7fd0}
html[data-theme=dark] .studio-chip i{border-color:#4a5f80}
html[data-theme=dark] .studio-chip strong{color:var(--ac-text,#e6edf7)}
html[data-theme=dark] .studio-chip small,html[data-theme=dark] .studio-pick-head,html[data-theme=dark] .fp-lead{color:var(--ac-muted,#a9b8cf)}
html[data-theme=dark] .studio-delay-upload{background:transparent;border-color:#3b5578}
html[data-theme=dark] .src-block{background:#12203a;border-color:#2b405f;box-shadow:0 12px 34px rgba(0,0,0,.35)}
html[data-theme=dark] .src-upload{background:linear-gradient(180deg,#17294a,#12203a);border-color:#3b5578;color:#a9b8cf}
html[data-theme=dark] .src-upload.is-off{background:#14233d;border-color:#2b405f}
html[data-theme=dark] .src-upload.is-dragging{background:#1d3558;border-color:#6aa2e6}
html[data-theme=dark] .src-upload strong,html[data-theme=dark] .src-col-head strong,html[data-theme=dark] .src-node strong{color:#e6edf7}
html[data-theme=dark] .src-up-ico{background:#1d3558;color:#8fb6f5;box-shadow:inset 0 0 0 1px #35507a}
html[data-theme=dark] .src-tl{background:#0f1b32;border-top-color:#2b405f}
html[data-theme=dark] .src-tl-empty,html[data-theme=dark] .src-node small,html[data-theme=dark] .src-single .src-docs label{color:#a9b8cf}
html[data-theme=dark] .src-node i{background:#3f7fd0;box-shadow:0 0 0 5px rgba(63,127,208,.2)}
html[data-theme=dark] .src-win span{background:#12203a;border-color:#8a5a1f;color:#ffbf73}
html[data-theme=dark] .ws-page-heading p{color:#a9b8cf}
html[data-theme=dark] .fp-workbar{background:none!important;border:0!important;box-shadow:none!important}
