/* Shared low-glare surfaces; semantic action/status colours stay in their palette. */
@media screen {
html[data-theme="light"] {
  --page-bg:#dedbd3;--bg:#dedbd3;--bg-main:#dedbd3;--bg-card:#e9e5dc;
  --panel:#e9e5dc;--card:#e9e5dc;--input-bg:#e4e0d7;--line:#bdb9b0;
  --ds-light-base:#dedbd3;--ds-light-surface:#e9e5dc;--ds-light-surface-hover:#dfdcd3;
  --ds-light-line:#bdb9b0;--saas-surface:#e9e5dc;--text:#263442;
}
html[data-theme="light"] body,
html[data-theme="light"] body :is(.shell,main) {background:#dedbd3!important}
html[data-theme="light"] body :is(.panel,.panel:hover,.card,.card:hover,.stat,.metric,.ref-card,.table-card,.ops-summary-strip>div,.ops-row,.ops-row.is-past,.oa-list,.oa-chat,.oa-side,.insight-card) {
  background:#e9e5dc!important;border-color:#bdb9b0!important;color:#263442!important;
}
html[data-theme="light"] body :is(.topbar,.sidebar,.panel-head,.table-head,thead,th,.ops-board-head,.ops-past-divider) {
  background:#dfdcd3!important;border-color:#bdb9b0!important;
}
html[data-theme="light"] body :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background:#e4e0d7!important;color:#263442!important;border-color:#aaa99e!important;
}
html[data-theme="light"] body .btn:not(.primary):not(.secondary):not(.success):not(.danger):not(.danger-soft):not(.warning) {
  background:#deddd6!important;color:#263442!important;border-color:#aaa99e!important;
}
html[data-theme="light"] body :is(.chat-stream,.table-wrap,.company-search-bar,.maintenance-preview-summary,.maintenance-preview-list,.maintenance-preview-row) {
  background:#e9e5dc!important;color:#263442!important;
}
html[data-theme="dark"] body :is(.ops-summary-strip>div,.maintenance-preview-summary,.maintenance-preview-list,.maintenance-preview-row,.ops-branch-editor,.ops-branch-picker,.modal-content,.dropdown-menu) {
  background:#1c2b3b!important;color:#dce7f2!important;border-color:#45566a!important;
}
html[data-theme="dark"] body :is(.ops-summary-strip>div,.maintenance-preview-summary,.maintenance-preview-row) :is(b,strong) {color:#e0e9f2!important}
html[data-theme="dark"] body :is(.ops-summary-strip>div,.maintenance-preview-summary,.maintenance-preview-row) :is(small,p,span) {color:#b9c9da!important}
html[data-theme="dark"] body .ops-live .live-chip,
html[data-theme="dark"] body .weather-live {
  background:#183b5c!important;color:#bfdbfe!important;border-color:#49759c!important;
}
html[data-theme="dark"] body :is(.traffic-chip.normal,.traffic-live.normal) {
  background:#174337!important;color:#a7f3d0!important;border-color:#39876c!important;
}
html[data-theme="dark"] body :is(.traffic-chip.slow,.traffic-live.slow) {
  background:#493714!important;color:#fde68a!important;border-color:#99742d!important;
}
html[data-theme="dark"] body :is(.traffic-chip.critical,.traffic-live.critical) {
  background:#4b2531!important;color:#fecdd3!important;border-color:#a3536a!important;
}
html[data-theme="dark"] body :is(select option,select optgroup) {background:#172638!important;color:#dce7f2!important}
/* Wallboard is standalone and switches body.theme-light, rather than data-theme. */
body.theme-light:has(.wallboard) {background:#d9dedb!important;color:#243746!important}
body.theme-light .wallboard {background:#d9dedb!important}
body.theme-light .wallboard :is(.kpi,.panel,.executive-metrics,.executive-metrics>div,.maintenance-strip,.insight-card,.maintenance-item:not(.plan-today)) {
  background:#e3e7e1!important;color:#243746!important;border-color:#afbcb9!important;
}
body.theme-light .wallboard :is(.panel-head,.ticket-column-head,.maintenance-strip-head) {background:#d3dcd8!important;color:#243746!important}
body.theme-light .wallboard :is(.theme-toggle,.case-scroll-controls button) {background:#d5ded9!important;color:#243746!important;border-color:#9eafaa!important}
body.theme-light .wallboard :is(.plan-logo-frame,.company-brand .customer-logo,.brand-mark) {
  background:#ffffff!important;border-color:#ffffff!important;box-shadow:none!important;
}
body:not(.theme-light) .wallboard :is(.kpi,.panel,.executive-metrics,.executive-metrics>div,.maintenance-strip,.insight-card,.maintenance-item:not(.plan-today)) {
  background:#192b3d!important;color:#dce7f2!important;border-color:#405870!important;
}
body:not(.theme-light) .wallboard :is(.panel-head,.ticket-column-head,.maintenance-strip-head) {background:#152638!important;color:#dce7f2!important}
body:not(.theme-light) .wallboard :is(.executive-metrics,.insight-card,.maintenance-item:not(.plan-today)) :is(b,strong,small,.plan-company,.maintenance-live,.insight-chart-label) {color:#c5d6e6!important}
body:not(.theme-light) .wallboard :is(.theme-toggle,.case-scroll-controls button) {background:#253c50!important;color:#dce7f2!important;border-color:#526d84!important}
body:not(.theme-light) .wallboard .maintenance-item .plan-logo-frame,
body:not(.theme-light) .wallboard .company-brand .customer-logo,
body:not(.theme-light) .wallboard .brand-mark {background:#ffffff!important;border-color:#ffffff!important;box-shadow:none!important}
body:not(.theme-light) .wallboard .weather-live {background:#183b5c!important;color:#bfdbfe!important}
body:not(.theme-light) .wallboard .traffic-live {background:#174337!important;color:#a7f3d0!important}
body:not(.theme-light) .wallboard .traffic-live.slow {background:#493714!important;color:#fde68a!important}
body:not(.theme-light) .wallboard .traffic-live.critical {background:#4b2531!important;color:#fecdd3!important}
html[data-theme="dark"] body .ops-customer .ops-branch {background:#223e58!important;color:#bfdbfe!important;border-color:#476c8e!important}
html[data-theme="dark"] body .ops-summary-strip>div.warn {background:#43351c!important;border-color:#8f743d!important}
html[data-theme="dark"] body .ops-summary-strip>div.warn :is(b,span) {color:#fde68a!important}
html[data-theme="light"] body .ops-summary-strip>div.warn {background:#e8d9b6!important;border-color:#bfa66e!important}
html[data-theme="light"] body .ops-summary-strip>div.warn :is(b,span) {color:#795510!important}
}
