/* Screen-only themes keep exported and printed documents light. */
@media screen{
html[data-theme=dark]{color-scheme:dark;--ink:#e6f1ef;--muted:#b0c8c8;--canvas:#0e2429;--line:#39565c;--green:#77cbbb;--navy:#a6d9d5;--teal:#83cec6;--mist:#214149;--bg:#0e2429;--good:#89d4ac;--wph-deep:#dcebef;--wph-teal:#83cec6;--wph-aqua:#263f46;--wph-bg:#0e2429;--wph-card:#17343b;--wph-line:#344955;--wph-text:#e6f1ef;--wph-muted:#a5b8c4;--wph-green:#8ad2ac;--wph-red:#efa394;--wph-warn:#493e28;--surface:#17343b;--surface-soft:#214149;--tool-accent:#9bc7c6;--tool-tint:#25494e;--tool-line:#47666b}
html[data-theme=dark] body,html[data-theme=dark] body[data-tool]{background:var(--canvas)!important;color:var(--ink)}
html[data-theme=dark] body[data-tool=roi-calculator]{--tool-accent:#e4c583;--tool-tint:#443e2c;--tool-line:#746445}
html[data-theme=dark] body[data-tool=flow-planner]{--tool-accent:#e6bf79;--tool-tint:#423c30;--tool-line:#595140}
html[data-theme=dark] :is(.topbar,.panel,.stat,.tool-card,dialog,.context-popover,.project-card,.wph-panel,.wph-card,.wph-modal,.wph-loading,.wph-top,.ph-navigation,.wph-project-card,.wph-contact-card,.wph-table,.wph-inline-picker,.wph-project-menu>div,.wph-row-menu>div,.wph-work-settings-tabs button,.wph-version-timeline article>div:last-child,.wph-gantt-zoom-controls,.wph-gantt-zoom-controls button){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(h1,h2,h3,h4,.global-links a,.project-context-title,.ph-app-name,.context-menu strong,.text-link,.project-nav a,.section-heading a,.tool-open,.tool-card h3,.wph-panel h2,.wph-panel h3,.wph-kpi strong,.wph-contact-card strong,.wph-table strong,.wph-table a,.wph-work-group>header,.wph-modal h3){color:var(--ink)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea,.search-field){background-color:#102b31!important;color:var(--ink)!important;border-color:#435969!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#b0c8c8;opacity:1}
html[data-theme=dark] :is(.button.secondary,.icon-button,.launcher-primary>a,.launcher-admin a:hover,.launcher-tools>a:hover,.context-popover a:hover,.context-popover a[aria-current],.context-menu summary:hover,.context-menu[open] summary,.project-row:hover,.task-preview:hover,.empty-icon,.avatar,.project-mark,.project-nav a[aria-current],.wph-btn,.wph-tab,.wph-project-menu>summary,.wph-row-menu>summary){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.button.primary,.wph-btn.primary,.wph-btn.active,.wph-work-settings-tabs button.active){background:#267f79!important;color:#fff!important;border-color:#419f96!important}
html[data-theme=dark] :is(.wph-btn.danger,.button.danger){background:#422e32;color:#ffb3a4;border-color:#755056}
html[data-theme=dark] :is(.muted,.page-heading p:not(.eyebrow),.section-heading p,.project-row small,.task-preview small,.tool-card>p,.launcher-tools small,.launcher-label,.save-indicator,.wph-table small,.wph-contact-card p){color:var(--muted)}
html[data-theme=dark] .tool-sidebar{background:var(--surface)!important;color:var(--ink);border-color:var(--line)!important;--nav-accent:var(--tool-accent,#83cec6);--nav-tint:var(--tool-tint,#263f46)}
html[data-theme=dark] .tool-sidebar-heading{border-bottom-color:var(--line)}
html[data-theme=dark] .tool-sidebar-toggle{background:var(--surface-soft)!important;color:#b9d8df!important}
html[data-theme=dark] .tool-sidebar-body button{color:var(--ink)!important}
html[data-theme=dark] :is(.ph-sections button[aria-current],#calculator-nav .price-group>[aria-current]){background:var(--nav-tint)!important;color:var(--nav-accent)!important}
html[data-theme=dark] :is(.ph-sections b,.phase-number,.stage-number){background:var(--surface-soft)!important;color:var(--ink)!important}
html[data-theme=dark] .sidebar-tooltip{background:#dcebf1;color:#173541}
html[data-theme=dark] .dashboard-hero{background:radial-gradient(ellipse at 90% 0%,#34697855,transparent 60%),linear-gradient(115deg,#1b3448,#19545b);border:1px solid #355467}
html[data-theme=dark] .dashboard-hero h1{color:#f4fffd}html[data-theme=dark] .dashboard-hero h1 em{color:#a9decc}
html[data-theme=dark] .dashboard-tools .tool-card{background:linear-gradient(155deg,color-mix(in srgb,var(--card-accent) 15%,#17343b),#17343b 75%)}
html[data-theme=dark] .dashboard-work .project-mark{background:#24483f;color:#9bddc8}
html[data-theme=dark] .approval-preview{background:#302f2b}html[data-theme=dark] .attention-icon{background:#51432b;color:#f5d38c}html[data-theme=dark] .approval-preview>div>small:first-child{color:#ebca83}html[data-theme=dark] .attention-badge{background:#503a36;color:#ffc0a4}
/* ProjectDesk: preserve status meaning, including inline editors and the timeline. */
html[data-theme=dark] :is(.wph-table th,.wph-work-table th,.wph-work-group>header,.wph-gantt-head,.wph-gantt-canvas .wph-gantt-head>span,.wph-gantt-canvas .wph-gantt-title,.wph-kpi,.wph-work-kpis article,.wph-work-bulk,.wph-task-quick-create,.wph-feature-selection,.wph-version-snapshot,.wph-access-role,.wph-notification-settings,.wph-outbox-type-head,.wph-outbox-type-row,.wph-automation-status,.wph-version-marker,.wph-change-badges span,.wph-project-feature,.wph-project-notice.quiet,.wph-entry-superseded,.wph-section-count,.wph-work-group-toggle>b){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.wph-table tr:hover,.wph-work-table tr:hover,.wph-inline-editable:hover,.wph-inline-picker label:hover,.wph-gantt-row:hover,.wph-gantt-new-root,.wph-timeline-new-row button,.wph-work-group-toggle:hover){background:#25494c!important;color:var(--ink)}
html[data-theme=dark] :is(.wph-approval-section.is-open>header,.wph-approval-section.is-open>summary,.wph-project-notice.action,.wph-automatic-note,.wph-parent-period-note,.wph-work-table tr.due-soon){background:#443d2b;color:#f1d697}
html[data-theme=dark] :is(.wph-approval-section.is-complete>summary,.wph-automation-status.active,.wph-setting-feedback){background:#234338;color:#a7e3c3}
html[data-theme=dark] :is(.wph-status.pending,.status.pending){background:#514329;color:#f7d690}
html[data-theme=dark] :is(.wph-status.approved,.status.approved){background:#25473b;color:#a2e2ba}
html[data-theme=dark] :is(.wph-status.rejected,.wph-work-table tr.overdue,.wph-setting-feedback.error){background:#493336;color:#ffc0b3}
html[data-theme=dark] :is(.wph-status.draft,.wph-status.superseded){background:#33434f;color:#c8d9e2}
html[data-theme=dark] :is(.wph-work-status,.wph-work-tag,.wph-work-person){background:color-mix(in srgb,var(--work-color,#7d8e91) 25%,#17343b);color:#e4edf3}
html[data-theme=dark] .wph-editable-chip{color:#173741}
html[data-theme=dark] .wph-gantt-canvas .wph-gantt-track{background-color:#192c37;background-image:repeating-linear-gradient(90deg,transparent 0 var(--gantt-weekend-start),#a9c6ce0c var(--gantt-weekend-start) var(--gantt-week)),repeating-linear-gradient(90deg,transparent 0 calc(var(--gantt-week) - 2px),#55737b calc(var(--gantt-week) - 2px) var(--gantt-week))}
html[data-theme=dark] .wph-gantt-gridline{background:#334953}html[data-theme=dark] .wph-gantt-gridline.is-monday{background:#75949d}
html[data-theme=dark] .wph-automation-panel{background:var(--surface)}
/* Calculator engine: its native dark palette is supplemented for embedded workspaces. */
html[data-theme=dark] :is(.shell,.toolHome,.toolContent,.work,.roiPage,.flowPage,.flowLayout){background:var(--canvas)!important;color:var(--ink)}
html[data-theme=dark] :is(.welcome,.kpi,.nextStep,.resultToolbar,.roiCase,.roiLine,.scenarioCard,.scenario,.flowSettings,.flowCanvas,.flowResults,.flowRoom,.modal,.modalCard,.toolShareEmbedded,.dataCheck,.qualityQuick span,.ticketMixOutcome span,.repeatVisitAssumption,.diagnosisIssues p,.systemStatusGrid article,.toolTrustSteps article,.toolResultToolbar,.roiSettings,.roiSummary,.costItem,.assumption,.flow-data-check){background:var(--surface)!important;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.panel>header,thead,.flowSettings>header,.roiCase>.roiLine:last-child,.qualityQuick,.formHint,.info,.infoBox,.notice,.readonly-notice,.publicResultExplanation,.toolTrustAi,.scenarioResilience,.diagnosisClear){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.warning,.demandWarnings,.diagnosisIssues .diagnosis-warnung,.resilience-sensitiv){background:#443c2b;color:#f1d699;border-color:#6c5c38}
html[data-theme=dark] :is(.resilience-nicht-tragfähig,.diagnosisIssues .diagnosis-kritisch){background:#493336;color:#ffc0b3}
html[data-theme=dark] :is(.panel h2,.panel h3,.panel h4,.kpi strong,.roiLine strong,.roiLine b,.roiCase strong,.scenarioCard strong,.flowSettings label){color:var(--ink)}
html[data-theme=dark] :is(th,td){border-color:var(--line)}
html[data-theme=dark] :focus-visible{outline-color:#80cced!important}
}
@media screen{
html[data-theme=dark] #wondora-projecthub{background:var(--canvas)}
html[data-theme=dark] :is(.wph-selection-tools,.wph-outbox-type-head span,.wph-selection-tools+div,.wph-entry-detail-copy,.wph-version-timeline article.current>div:last-child,.wph-modal .ph-upload,.ph-project-actions details>div){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.wph-count,.wph-pill,.wph-counts span){background:#514329;color:#f0d399}
html[data-theme=dark] :is(.flowMetrics article,.roiOverview article,.toolDataCheck,.toolDataCheck.ready,.roomLabels,.priceRow.priceLabels,.priceRow.mainAdmission,.qualityCategory li,.qualityDial:before){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.toolActions button,.lockButton,.lockControl,body[data-tool] button.secondary,.backupList button,.toolResultToolbar button){background:var(--surface-soft)!important;color:#b0dce0!important;border-color:var(--line)!important}
html[data-theme=dark] body[data-tool] :is(button.primary,.toolContent>footer button:not(.secondary),.toolActions button.primary,.resultToolbar button:not(.secondary)){background:#287e79!important;color:#fff!important;border-color:#419f96!important}
html[data-theme=dark] body[data-tool] label{color:#bccdd6}
html[data-theme=dark] :is(.dataCheckBar,.qualitySummary>div){background:#405761}
html[data-theme=dark] :is(.roomRow .ok,.scenario em){background:#28493d;color:#a3e7c2}
html[data-theme=dark] :is(.negative,.loss,.roiCase.loss .roiLine:last-child strong,.scenarioCard .negative){color:#f4a18e}
html[data-theme=dark] :is(.dashboard-work .section-heading,.project-row,.task-preview,.attention-footer,.tool-open,.context-divider){border-color:var(--line)}
html[data-theme=dark] .dashboard-tools .tool-card{border-top-color:var(--card-accent)}
html[data-theme=dark] .task-circle{background:var(--surface-soft);border-color:#708894}
html[data-theme=dark]{background:var(--canvas)}
}
@media screen{
html[data-theme=dark] :is(.wph-action-icon,.wph-action-icon.link,.wph-entry-menu>summary,.wph-entry-menu>div,.wph-contact-edit,.wph-contact-card.external,.wph-upload-card,.wph-audit-meta div,.wph-contact-order button,.wph-load-more){background:var(--surface-soft);color:#d5eaf0;border-color:var(--line)}
html[data-theme=dark] .wph-action-icon.approve{background:#2c7656;color:#fff}html[data-theme=dark] .wph-action-icon.reject{background:#a6554e;color:#fff}
html[data-theme=dark] :is(.wph-external-contact-note,.wph-entry-new,.wph-freeze-badge,.wph-btn.gold){background:#453d2b;color:#f0d499}
html[data-theme=dark] :is(.wph-external-badge,.wph-new-label){background:#514329;color:#f0d399!important}
html[data-theme=dark] :is(.wph-gantt-date-label,.wph-gantt-date-label.is-monday,.wph-gantt-zoom-controls b){color:#bdd3dc}
html[data-theme=dark] .wph-gantt-add-child{color:#243d45}
html[data-theme=dark] .wph-project-notice.new{color:#a7e5d9;background:#284940}
html[data-theme=dark] .projecthub-page{--tool-accent:#83cec6;--tool-tint:#263f46}
}
@media screen{
html[data-theme=dark] :is(.optionalTourismInputs,.locationDemandDiagnosis,.demandFunnel article,.benchmarkExperience,.benchmarkRatingGrid label,.attractionList,.attractionDetail,.attractionListItem,.economicsStrip span,.upsellOutcome,.upsellRow.inactive,.financeSummary span,.costRows>span,.financeLabels,.multiYearScenarioCard,.yearLabels,.provenanceLabels,.demandSourceGrid span,.traceGrid span,.portfolioDemandMetrics span,.accessOutcome span,.experienceComparison span,.modeButtons button,.simulationStatus.paused){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.attractionListItem.selected,.attrTabs button.active,.infoButton,.benchmarkNumber b,.upsellIdentity>b,.title em){background:#2c4752;color:#d5eaf0;border-color:#537981}
html[data-theme=dark] :is(.mobilityTotal.valid,.segmentTotal.valid,.ticketMixTotal.valid,.minimumGate.ready,.categoryComplete,.accessScore,.activationBadge){background:#25463c;color:#afe2c5;border-color:#517763}
html[data-theme=dark] :is(.manualInstructions,.risk){background:#453c2b;color:#f2d99b;border-color:#796438}
html[data-theme=dark] :is(.matrixLoss,.negativeYear){background:#493336;color:#ffc0b3;border-color:#715057}
html[data-theme=dark] :is(.matrixProfit){background:#25463c;color:#afe2c5}
html[data-theme=dark] :is(.categoryBar,.segmentBar){background:#405761}
html[data-theme=dark] .dangerButton{background:#493336;color:#ffc0b3;border-color:#715057}
html[data-theme=dark] .attrIcon{color:#1b434a}
html[data-theme=dark] .wph-entry-finalized.wph-entry-approved{background:#1c342f}
html[data-theme=dark] .wph-status.published{background:#25463c;color:#afe2c5}
html[data-theme=dark] .wph-status:not([class*=" "]){background:#344653;color:#d5eaf0}
html[data-theme=dark] .wph-contact-delete{background:#493336;color:#ffc0b3;border-color:#715057}
html[data-theme=dark] :is(.wph-table-sort i,.wph-editable-chip button){background:#314b55;color:#d5eaf0}
html[data-theme=dark] body[data-tool] svg text{fill:#bfd1da}
html[data-theme=dark] :is(.negative,.roiLoss,.scenario .negative,.scenarioCard .negative){color:#f4a18e!important}
}
