/* Shared theme boundary. Document images, PDFs, canvas and semantic status colors are never inverted. */
.ops-theme-toggle{font:600 13px/1.4 Arial,sans-serif!important;min-height:44px;padding:8px 14px!important;border:1px solid #8290a2!important;border-radius:9px!important;background:#fff!important;color:#243449!important;cursor:pointer;white-space:nowrap;margin-left:auto;flex-shrink:0}
.ops-theme-toggle:focus-visible{outline:3px solid #4389ef!important;outline-offset:3px}
.ops-theme-floating{position:fixed;right:16px;bottom:16px;z-index:1000;box-shadow:0 3px 14px #0003}
html[data-ops-theme=light]{color-scheme:light}
html[data-ops-theme=dark],html[data-ops-theme=dark] body{
 color-scheme:dark!important;
 --ops-canvas:#111923;--ops-surface:#1b2634;--ops-surface-soft:#233143;--ops-ink:#edf2f8;--ops-muted:#b1c0d2;--ops-line:#435267;--ops-accent:#ef6861;--ops-accent-soft:#482a30;--ops-focus:#8dbdff;
 --canvas:#111923;--bg:#111923;--fog:#111923;--surface:#1b2634;--surface-soft:#233143;--card:#1b2634;--card2:#233143;--tile:#1b2634;--tile2:#233143;
 --ink:#edf2f8;--text:#edf2f8;--tx:#edf2f8;--tx2:#b1c0d2;--tx3:#a0b2c8;--muted:#b1c0d2;--line:#435267;--border:#435267;--bd:#435267;--bd2:#354459;
 --accent-soft:#482a30;--amber-ink:#f5d591;--amber-surface:#3a3020;--green-ink:#a4e4bb;--green-surface:#203c31;
 background:#111923!important;color:#edf2f8!important;
}
html[data-ops-theme=dark] body :is(.hero,.hero-top,.page-header,.page-heading,.page-title,.directory-controls,.workflow-filters,.ops-tabs,.strip,.tabs,.admin-tabs,.toolbar,.filters,.filter-bar,.refine,.refine-bar,.ops-glass-nav,.modesw){background:#182333!important;color:#edf2f8!important;border-color:#435267!important;box-shadow:none!important}
html[data-ops-theme=dark] body :is(.tile,.card,.panel,.stat,.stat-card,.kpi,.kpi-card,.metric,.summary-card,.pipe-chip,.tbl-wrap,.tbl-card,.table-wrap,.table-card,.recent-card,.section,.block,.oa-card,.permission-card,.workflow-group,.access-group,.detail-card,.document-card,.modal,.modal-card,.modal-content,.modal-body,.modal-header,.modal-footer,.modal-hd,.modal-ft,.drawer,.drawer-hd,.drawer-body,.drawer-footer,.drawer-ft,.sheet,.popover,.dropdown-menu,.dialog,.login-card,.auth-card,.login-box,.ops-connected-grid>div,#user-list,#ops-workflow-panel){background:#1b2634!important;color:#edf2f8!important;border-color:#435267!important}
html[data-ops-theme=dark] body :is(table,tbody,tr,td){background-color:#1b2634!important;color:#edf2f8!important;border-color:#354459!important}
html[data-ops-theme=dark] body :is(thead,th,tfoot,tr.grp,tr.grp td){background:#233143!important;color:#c4d2e3!important;border-color:#435267!important}
html[data-ops-theme=dark] body :is(tr:hover td,.tile:hover,.card:hover){background-color:#26384b!important}
html[data-ops-theme=dark] body :is(h1,h2,h3,h4,h5,strong,.tile-title,.pipe-n,.stat-n,.metric-value,.account-name){color:#edf2f8!important}
html[data-ops-theme=dark] body :is(p,small,label,.subtitle,.sub,.muted,.hint,.help,.desc,.tile-desc,.account-meta,.meta,.note,.empty-state,.loading,.pipe-l,.pipe-amt,.stat-l,.breadcrumb,footer){color:#b1c0d2!important}
html[data-ops-theme=dark] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea,option){background:#111c2a!important;color:#edf2f8!important;border-color:#5c7089!important}
html[data-ops-theme=dark] body ::placeholder{color:#9fafc4!important;opacity:1}
html[data-ops-theme=dark] body :is(a,.link,.btn-link){color:#9ec8ff}
html[data-ops-theme=dark] body :is(.ops-glass-nav>a,.ops-glass-nav>button,.ops-tabs button,.tabs button,.tabs a,.strip a,.tab,.btn-muted,.btn-ghost,.btn-secondary,.secondary,.ghost,.btn-outline,.filter-btn,.workflow-filters button,.admin-tabs button){background:transparent!important;color:#c5d4e6!important;border-color:#526780!important}
html[data-ops-theme=dark] body :is(.ops-glass-nav>[aria-current],.ops-glass-nav>[aria-expanded=true],.ops-tabs button.active,.tabs .active,.tab.active,.tab.on,.strip a.on,.pipe-chip.active,[aria-pressed=true]):not(.ops-theme-toggle){background:#482a30!important;color:#ffb1a9!important;border-color:#ef6861!important}
html[data-ops-theme=dark] body :is(.btn-primary,.primary,.ops-primary-link){background:#b52621!important;color:#fff!important;border-color:#da554e!important}
html[data-ops-theme=dark] body :is(.badge,.pill,.tag,.tagx){background:#2a3a4e;color:#d7e4f4;border-color:#526780}
html[data-ops-theme=dark] body :is(.badge-ok,.success,.notice-success,.tag.g,.pill.ok){background:#203c31!important;color:#a4e4bb!important}
html[data-ops-theme=dark] body :is(.warning,.notice-warn,.note-banner,.ops-workspace-note,.warn-banner,.pill.warn,.tag.y){background:#3a3020!important;color:#f5d591!important;border-color:#907342!important}
html[data-ops-theme=dark] body :is(.error,.error-banner,.err-banner,.notice-error,.pill.bad,.tag.r,.account-warning){color:#ffb2ae!important;border-color:#925052!important}
html[data-ops-theme=dark] body .ops-theme-toggle{background:#233143!important;color:#edf2f8!important;border-color:#7890ae!important}
html[data-ops-theme=dark] body :focus-visible{outline-color:#8dbdff!important}
html[data-ops-theme=dark] body :is(.ops-header,header,.header,.topbar){background:#101720!important;color:#edf2f8!important}
html[data-ops-theme=dark] body :is(.modal-overlay,.overlay,.backdrop){background-color:#050a13ba!important}
html[data-ops-theme=dark] body :is(.document-preview,.pdf-preview,.image-preview){background:#e5e7eb;color:#111}
@media(max-width:600px){.ops-theme-toggle{padding:8px 10px!important;font-size:12px!important}.ops-glass-nav .ops-theme-toggle{margin-left:0}}
@media print{.ops-theme-toggle{display:none!important}html[data-ops-theme=dark],html[data-ops-theme=dark] body,html[data-ops-theme=dark] body :is(table,tbody,tr,td,th,.card,.panel){background:#fff!important;color:#111!important;color-scheme:light!important}}

html[data-ops-theme=dark] body .seg button{background:#233143!important;color:#c5d4e6!important}
html[data-ops-theme=dark] body .seg button.on{background:#b52621!important;color:white!important}
html[data-ops-theme=dark] body :is(.btn-sm,.open-btn,.tagx.skipped){background:#233143!important;color:#c5d4e6!important;border-color:#526780!important}
html[data-ops-theme=dark] body :is(.page-title,.page-heading,.hero-top){background:transparent!important}

html[data-ops-theme=dark] body :is(.tile-name,.hero-greeting,.hero-sub,.grid-label,.directory-filters button,#workflow-results,.header-date){color:#c5d4e6!important}
html[data-ops-theme=dark] body #hub-note{background:#3a3020!important;border-color:#907342!important;color:#f5d591!important}
html[data-ops-theme=dark] body #hub-note p{color:#f5d591!important}
html[data-ops-theme=dark] body .tile-arrow{color:#ffb1a9!important}
html[data-ops-theme=dark] body .directory-filters button[aria-pressed=true]{color:#ffb1a9!important}

.ops-glass-nav .ops-theme-toggle::before{display:none!important}
/* Nested module surfaces must follow the same palette as their text. --white
   is the legacy Daily Ops surface token, not a foreground/icon color. */
html[data-ops-theme=dark] body{--white:var(--ops-surface)}
html[data-ops-theme=dark] body :is(.oa-col,.oa-owners,.oa-chip,.item,.rec-card,.log-form,.log-entry,.tasks-toolbar,.task-row,.org-edit-panel,.cadence-placeholder,.cal-block,.financial-totals>div){background:var(--ops-surface)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.oa-name,.item-text,.tr-title){color:var(--ops-ink)!important}
html[data-ops-theme=dark] body :is(.oa-title,.oa-loc,.oa-col-label,.oa-owners-title,.item-sub,.tr-meta){color:var(--ops-muted)!important}
html[data-ops-theme=dark] body .oa-connector{background:var(--ops-line)!important}
html[data-ops-theme=dark] body .oa-row{border-color:var(--ops-line)!important}
/* Legacy module surfaces: use component boundaries, never invert media. */
html[data-ops-theme=dark] body :is(.mtabs,.tab-bar,.toolbar2,.status-bar,.store-hdr,.note-bar,.pending-gates,.review-block,.permission-group,.permission-group.sensitive,.modal-btns,.access-summary,.row,.reason,.empty,.skel,.mo,.addrow,.toast,.amounts,.doc,.dealhint,.dr,.dr-head,.dr-body,.dr-foot,.dhead,.dact,.modal-head,.drawer-head,.total,.summary,.recovery,.recovery-files,.financial-totals>div,details.sect>summary,details.dms>summary,details.dms>.inner,details.mine>summary){background:var(--ops-surface)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.mtab,.tv-pill,.rec-btn.edit,.rec-btn.dismiss,.cal-subtab,.chip,.preset,.ops-finance .btn){background:var(--ops-surface-soft)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.mtab.on,.tv-pill.tv-on,.cal-subtab.cal-active,.chip.on,.queue-row.selected){background:var(--ops-accent-soft)!important;color:#ffb1a9!important;border-color:var(--ops-accent)!important}
html[data-ops-theme=dark] body :is(.oa-row:hover,.store-hdr:hover,details.sect>summary:hover){background:var(--ops-surface-soft)!important}
html[data-ops-theme=dark] body :is(.oa-sub-row::before,.tr-expand){border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.oa-badge-filled,.oa-route-ok,.item.done,.task-row.complete,.docrow.got,.insprow.ok,.recovery-ok,.notice-banner[data-kind=ok],.okbox){background:#203c31!important;color:#a4e4bb!important;border-color:#45735a!important}
html[data-ops-theme=dark] body :is(.oa-badge-hiring,.oa-route-missing,.org-status-hiring,.org-badge-hiring,.notice,.notice-banner,.notice-banner[data-kind=warn],.recovery-warn,.cal-banner-warn,.warnbox,.docrow.override,.insprow.expiring,.insprow.unverified,.ipill.expiring,.ipill.unverified,.b-crm-pend,.b-dms-pend,.b-prov){background:#3a3020!important;color:#f5d591!important;border-color:#907342!important}
html[data-ops-theme=dark] body :is(.notice.info,.banner.info,.cal-banner-info,.oa-badge-tbd,.b-individual){background:#20374e!important;color:#b8dcff!important;border-color:#52789b!important}
html[data-ops-theme=dark] body :is(.banner.bad,.notice-err,.tasks-error,.log-status.err,.recovery-error,.notice-banner[data-kind=error],.errbox,.chip.overdue,.pill.crit,.insprow.fail,.insprow.expired,.ipill.fail,.ipill.expired,.b-crm-miss,.b-crm-risk){background:#452b30!important;color:#ffb2ae!important;border-color:#925052!important}
html[data-ops-theme=dark] body :is(.oa-badge-vacant,.org-status-vacant,.org-badge-vacant,.pill.mut,.ipill.missing,.ipill.not_required,.insprow.not_required,.b-inactive,.recovery-locked){background:var(--ops-surface-soft)!important;color:var(--ops-muted)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.notice,.notice-banner,.banner.bad,.banner.info,.warnbox,.errbox,.okbox,.recovery-warn,.recovery-error,.recovery-ok) :is(p,small,strong,label){color:inherit!important}
html[data-ops-theme=dark] body :is(.access-tags .badge,.oa-chip,.upload-indicator){background:var(--ops-surface-soft)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body .financial-totals :is(span,small){color:var(--ops-muted)!important}
/* QR codes and scanned evidence require their original light backing. */
html[data-ops-theme=dark] body :is(#qr-container,.qr-wrap,.viewer-frame .pdf-canvas,.doc-prev-pdf,.doc-prev iframe){background:#fff!important;color:#111!important}
html[data-ops-theme=dark] body{--panel:var(--ops-surface);--panel2:var(--ops-surface-soft);--dim:var(--ops-muted);--dim2:var(--ops-muted);--critbg:#452b30;--warnbg:#3a3020;--okbg:#203c31;--watchbg:var(--ops-surface-soft)}
html[data-ops-theme=dark] body :is(.state-card,.pane-head,.detail-pane,.queue-pane,.compare-bar,.cmpbar){background:var(--ops-surface)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.beta-badge,.beta){background:var(--ops-accent-soft)!important;color:#ffb1a9!important}
html[data-ops-theme=dark] body :is(.err-banner,.error-banner,.oa-error){background:#452b30!important;color:#ffb2ae!important;border-color:#925052!important}
html[data-ops-theme=dark] body :is(.err-banner,.error-banner) :is(b,span,p){color:inherit!important}
html[data-ops-theme=dark] body :is(.ftr,.ftr span,.ftr-text,.ftr-brand,.ftr-right,.lens,.kpi .l,.stat .l,.kpi .lbl,.kpi .ytd,.mvfoot,.caret,.ops-finance .nm,.ops-finance .sect-title,.ops-finance .section-head){color:var(--ops-muted)!important}
html[data-ops-theme=dark] body :is(.refresh-btn,.new-btn){background:#b52621!important;color:#fff!important}
html[data-ops-theme=dark] body :is(.stat-value.neutral,.state-title,.qi-title,.qi-price){color:var(--ops-ink)!important}
html[data-ops-theme=dark] body :is(.stat-value.critical,.days.crit,.gdown){color:#ffb2ae!important}
html[data-ops-theme=dark] body :is(.gup,.ipill.ok){color:#a4e4bb!important}
html[data-ops-theme=dark] body .ipill.ok{background:#203c31!important}
html[data-ops-theme=dark] body :is(.wip,.tab-count,.count-pill){background:#3a3020!important;color:#f5d591!important}
html[data-ops-theme=dark] body :is(.mtab .n,.tab-btn){background:var(--ops-surface-soft)!important;color:var(--ops-muted)!important}
html[data-ops-theme=dark] body .tab-btn.active{background:var(--ops-accent-soft)!important;color:#ffb1a9!important}
html[data-ops-theme=dark] body .ops-glass-nav .modesw button{color:var(--ops-ink)!important;background:var(--ops-surface-soft)!important}
html[data-ops-theme=dark] body .ops-glass-nav .modesw button.on{color:#fff!important;background:#b52621!important}
html[data-ops-theme=dark] body .oa-sub-row::before{background:transparent!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.warnbox,.okbox,.errbox) b{color:inherit!important}
html[data-ops-theme=dark] body .ops-finance .cmp{background:var(--ops-surface)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body .ops-finance :is(.section-head span,.sec-head span,.footnote,.footnote b){color:var(--ops-muted)!important}
html[data-ops-theme=dark] body{--mut:var(--ops-muted)}
html[data-ops-theme=dark] body :is(.export-btn,.qi-route,.ops-finance .secthead,.ops-finance .arrow){color:var(--ops-muted)!important}
html[data-ops-theme=dark] body :is(.tab-badge.ok,.status-pill.approved,.status-block.approved){color:#a4e4bb!important;background:#203c31!important}
html[data-ops-theme=dark] body :is(.age-pill.red,.status-pill.denied,.status-block.denied,.queue-item.age-red .pill){color:#ffb2ae!important;background:#452b30!important}
html[data-ops-theme=dark] body :is(.age-pill.amber,.status-pill.pending,.status-block.pending){color:#f5d591!important;background:#3a3020!important}
html[data-ops-theme=dark] body :is(.sidebar,.review .form-footer,.evidence-record,.photo-dialog,.photo-grid button,.embedded-gallery button,.pdf-viewer pre){background:var(--ops-surface)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.recorded-context,.grade-chip){background:#203c31!important;color:#a4e4bb!important}
html[data-ops-theme=dark] body :is(.review-alert,.source-choice,.financial-warning){background:#3a3020!important;color:#f5d591!important;border-color:#907342!important}
html[data-ops-theme=dark] body .error{background:#452b30!important;color:#ffb2ae!important}
html[data-ops-theme=dark] body .document-tabs .selected{background:var(--ops-accent-soft)!important;color:#ffb1a9!important}
html[data-ops-theme=dark] body :is(.financial-footnote summary,.button-link){color:#ffb1a9!important}
html[data-ops-theme=dark] body .admin-sections{background:#182333!important;border-color:#435267!important}
html[data-ops-theme=dark] body :is(.admin-sections button,.admin-sections a,.account-actions summary){color:#c5d4e6!important;background:transparent!important}
html[data-ops-theme=dark] body .admin-sections [aria-current]{background:#482a30!important;color:#ffb1a9!important}
html[data-ops-theme=dark] body :is(.page-sub,.page-subtitle,.section-sub,.intro,.lede){color:#b1c0d2!important}

html[data-ops-theme=dark] body :is(.form-card,.field-card,.detail-section,.section-card,.settings-card,.review-panel,.upload-zone,.dropzone){background:#1b2634!important;color:#edf2f8!important;border-color:#435267!important}
html[data-ops-theme=dark] body :is(.card-sub,.section-title,.field-label,.card-label,.card-title){color:#b1c0d2!important}
@media print{html[data-ops-theme=dark] body *{color:#111!important;background-color:transparent!important;box-shadow:none!important}}

html[data-ops-theme=dark] body .modal-sub{color:var(--ops-muted)!important}
/* Status and action surfaces retain their meaning without a light-mode backing. */
html[data-ops-theme=dark] body :is(.prod-chip,.prod-checks label,.radio-opt,.file-item,.mini-btn,.mini,.x-btn,.dclose,.modal-cancel),html[data-ops-theme=dark] body #btn-route{background:var(--ops-surface-soft)!important;color:var(--ops-ink)!important;border-color:var(--ops-line)!important}
html[data-ops-theme=dark] body :is(.radio-opt.on,.mini-btn.hot){border-color:#ffb1a9!important}
html[data-ops-theme=dark] body .mini-btn.hot{color:#ffb1a9!important}
html[data-ops-theme=dark] body :is(.radio-opt:not(.on),.mini-btn:not(.hot),.mini,.x-btn,.dclose,.modal-cancel):hover{border-color:#b1c0d2!important}
html[data-ops-theme=dark] body .mini-btn.hot:hover{background:#482a30!important;border-color:#ffb1a9!important;color:#fff!important}
html[data-ops-theme=dark] body .tagx.done{background:#203c31!important;color:#a4e4bb!important}
html[data-ops-theme=dark] body .tagx.queued{background:#3a3020!important;color:#f5d591!important}
html[data-ops-theme=dark] body .tagx.failed{background:#452b30!important;color:#ffb2ae!important}
html[data-ops-theme=dark] body :is(.row-title,.rec-title,.manual-title,.log-history-title,.subsection-title,.cal-day-name){color:var(--ops-ink)!important}
html[data-ops-theme=dark] body :is(.group-name,.group-count,.row-meta,.row-meta span){color:var(--ops-muted)!important}
html[data-ops-theme=dark] body :is(.reason-fix,.row-arrow,.cal-block-time,.team-subtab.on){color:#ffb1a9!important}
html[data-ops-theme=dark] body .cal-chip{background:var(--ops-surface-soft)!important;color:var(--ops-ink)!important}
html[data-ops-theme=dark] body .tile.crit .n{color:#ffb2ae!important}
html[data-ops-theme=dark] body .tile.warn .n{color:#f5d591!important}
html[data-ops-theme=dark] body .tile.ok .n{color:#a4e4bb!important}
/* Switching back must restore readable muted and semantic text, too. */
html[data-ops-theme=light] body{--tx3:#596978;--mut:#596978;--crit:#a52624;--warn:#805700;--watch:#1d4a9c;--ok:#17623a;--orange:#96521b}
html[data-ops-theme=light] body :is(.beta-badge,.beta){background:#482a30!important;color:#ffb1a9!important}
html[data-ops-theme=light] body :is(.tab-count,.count-pill,.stat-value.warning){color:#805700!important}
html[data-ops-theme=light] body .age.late{color:#a52624!important}
html[data-ops-theme=light] body .chip.readonly{color:#596978!important}
html[data-ops-theme=light] body.ops-finance :is(label,.note,footer,.section-head span,.sec-head span){color:#596978!important}
html[data-ops-theme=light] body.ops-finance .wip{color:#805700!important}
html[data-ops-theme=light] body.ops-finance{--dim2:#596978}
html[data-ops-theme=light] body :is(.ftr-i,.ftr-i span,.cal-footer-inner,.cal-footer-inner span){color:#596978!important}
