/* Neutral chrome, company-owned accents. No changes to report or uploaded logos. */
html[data-workspace-theme]{--ui-bg:#f5f5f4;--ui-surface:#fff;--ui-raised:#fafafa;--ui-text:#242424;--ui-muted:#666;--ui-line:#dededc;--line:var(--ui-line);--muted:var(--ui-muted);color:var(--ui-text);background:var(--ui-bg);color-scheme:light}
html[data-workspace-theme=dark]{--ui-bg:#17181a;--ui-surface:#222427;--ui-raised:#2b2e32;--ui-text:#f0f0ee;--ui-muted:#b7babd;--ui-line:#45484e;color-scheme:dark}
html[data-workspace-theme] body,html[data-workspace-theme] .workspace,html[data-workspace-theme] .main,html[data-workspace-theme] .crew-main{background:var(--ui-bg);color:var(--ui-text)}
html[data-workspace-theme] :is(.sidebar,.topbar,.panel,.stat,.tabs,.mobile-nav,.notification-tray,.project-action-overlay,.project-action-body,dialog,.task-screen-action,.project-group,.agreement-draw){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme] :is(h1,h2,h3,.sidebar-company-name,.side-bottom strong){color:var(--ui-text)}
html[data-workspace-theme] .sidebar :is(.nav button,.brand-caption,.side-bottom){color:var(--ui-muted)}
html[data-workspace-theme] :is(button,input,select,textarea){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme] :is(button.primary,.primary,.signin-link){background:var(--brand-dark);border-color:var(--brand-dark);color:var(--brand-button-ink,#fff)}
html[data-workspace-theme] :is(.nav button.active,.tabs button.active,.project-groups button.active,.mobile-nav button.active){background:color-mix(in srgb,var(--brand-primary) 14%,var(--ui-surface));color:var(--ui-text);box-shadow:inset 0 -3px var(--brand-primary)}
html[data-workspace-theme] :is(.nav button:hover,.job-row:hover,.calendar-entry:hover){background:var(--ui-raised);color:var(--ui-text)}
html[data-workspace-theme] :is(.brand-logo-wrap,.company-mobile-header-logo,.brand-upload-preview){background:#fff;border-radius:10px;padding:6px}
html[data-workspace-theme] :is(.welcome,.hero){background:var(--ui-raised);color:var(--ui-text);border:1px solid var(--ui-line);border-left:4px solid var(--brand-primary)}
html[data-workspace-theme] .welcome :is(p,.eyebrow){color:var(--ui-muted)}
html[data-workspace-theme] .welcome .primary{background:var(--brand-dark);color:var(--brand-button-ink,#fff);border-color:var(--brand-dark)}
html[data-workspace-theme] :is(.notice,.shared-status,.demo,.agreement-next,.calendar-day,.calendar-entry,.job-icon,.avatar,.badge.gray){background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme] :is(.subtle,.muted,.stat label,.stat small,.activity small,.job-row p,.next){color:var(--ui-muted)}
html[data-workspace-theme=dark] :is(a,button.ghost,.project-heading-link){color:color-mix(in srgb,var(--brand-primary) 55%,white)}
html[data-workspace-theme=dark] :is(th,td,fieldset,.job-row,.task,.line,.activity){border-color:var(--ui-line)}
html[data-workspace-theme=dark] :is(.warning,.badge.amber){background:#45341d;color:#ffdb9b;border-color:#85622d}
html[data-workspace-theme=dark] :is(.error,[role=alert]){color:#ffb4a8}
html[data-workspace-theme=dark] .flow-good-energy{background:#2d2833;color:var(--ui-text);border-color:#5d4d67}
html[data-workspace-theme] .sidebar{background:var(--ui-surface)!important;background-image:none!important}
html[data-workspace-theme] :is(.insurance-quick-reference,.my-day-agenda,.my-day-checklist,.my-day-order-card,.my-day-add-inline,.oncall-day,.chat-bubble,.notification-menu,.notification-bell,.customer-draw-card,.wip-draw-preview,.gantt-scroll,.job-shortcuts [data-quick-editor]:not(:empty),.task-navigator-header [data-task-results]:not(:empty)){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme=dark] :is(.platform-primary-motto,.insurance-quick-reference strong,.insurance-quick-reference p,.flow-good-energy p){color:var(--ui-text)}
html[data-workspace-theme] .sidebar .nav button.active{background:color-mix(in srgb,var(--brand-primary) 16%,var(--ui-surface))!important;color:var(--ui-text)!important;box-shadow:inset 4px 0 var(--brand-primary)!important}
html[data-workspace-theme=dark] .platform-header-brand>img{background:#fff;border-radius:6px;padding:4px}
html[data-workspace-theme] .workspace-theme-toggle{white-space:nowrap;font-size:12px;padding:8px 10px;min-height:36px}
.workspace-theme-toggle.theme-floating{position:fixed;left:12px;bottom:86px;z-index:90;box-shadow:0 3px 12px #0002}
html[data-workspace-theme] .rjf-landing{--rjf-navy:var(--ui-text);background:var(--ui-bg);color:var(--ui-text)}
html[data-workspace-theme] :is(.rjf-product,.rjf-floating-note,.rjf-trust-strip,.rjf-feature-grid article,.rjf-access-card,.rjf-suite-visual>div){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme] :is(.rjf-preview-stats>div,.rjf-preview-checks,.rjf-suite-visual,.rjf-access-section,.rjf-pill){background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme] .rjf-landing :is(.rjf-button,.signin-action,.rjf-mini-action){background:var(--brand-dark);color:var(--brand-button-ink,#fff);border-color:var(--brand-dark)}
html[data-workspace-theme] .rjf-landing :is(.rjf-lead,.rjf-proof,.rjf-kicker,.rjf-preview-stats span,.rjf-stop span,.rjf-feature-grid p,.rjf-suite p:not(.rjf-kicker),.rjf-access-card .signin-card p,.rjf-beta p,.rjf-beta small,.rjf-access-grid>div>p:not(.rjf-kicker),.rjf-section-heading>p,.rjf-footer,.rjf-preview-caption,.rjf-tags span){color:var(--ui-muted)}
html[data-workspace-theme] .rjf-dark-section{background:#222427;color:#f0f0ee}
html[data-workspace-theme] .rjf-dark-section :is(h2,h3){color:#f0f0ee}
html[data-workspace-theme=dark] .rjf-hero h1 em{color:color-mix(in srgb,var(--brand-primary) 55%,white)}
html[data-workspace-theme=dark] :is(.rjf-nav img,.rjf-footer img){background:white;border-radius:8px;padding:5px}
/* Light header bands intentionally keep dark ink in either display mode. */
html[data-workspace-theme] .panel-head{background:#f8f8f7!important;color:#353535;border-color:var(--ui-line)}
html[data-workspace-theme] .panel-head :is(h1,h2,h3,.subtle,.muted,.eyebrow,small,label){color:#353535!important}
html[data-workspace-theme=dark] .platform-primary-motto strong{color:var(--ui-text)}
/* Planner/checklist use their own header component, separate from .panel-head. */
html[data-workspace-theme] .my-day-section-head,
html[data-workspace-theme] :is(.my-day-completed,.my-day-upcoming)>summary{background:#f8f8f7;color:#353535;border-color:var(--ui-line)}
html[data-workspace-theme] .my-day-section-head :is(h3,span){color:#353535!important}
html[data-workspace-theme=dark] :is(.my-day-lane-label,.my-day-hour-label,.my-day-task-meta,.my-day-task-more>summary,.my-day-inline-status,.my-day-empty,.my-day-toolbar>[data-my-day-summary],.my-day-order-card small){color:var(--ui-muted)}
html[data-workspace-theme=dark] .my-day-task.is-complete{background:var(--ui-raised)}
html[data-workspace-theme=dark] .my-day-task.is-complete .my-day-task-title{color:var(--ui-muted)}
@media(max-width:700px){html[data-workspace-theme] .profile{flex-wrap:wrap}.workspace-theme-toggle{font-size:11px}}
/* Task cards must use the same surface/ink pair in every interactive state,
   including the seasonal hover layer. Primary company-colored buttons stay separate. */
html[data-workspace-theme] :is(.screen-task-card,.task-menu-list){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme=dark] :is(.screen-task-open,.screen-section-grip,.task-menu-toggle,.task-menu-list>button:not(.primary),.task-menu-list>a,.workflow-actions>button:not(.primary),.project-group>button:not(.active),.project-subsections button:not(.active),.stat-link):is(:hover,:focus-visible){background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line)}
html[data-workspace-theme=dark] .screen-task-open:is(:hover,:focus-visible) :is(strong,.screen-task-link){color:var(--ui-text)}
html[data-workspace-theme=dark] .screen-task-summary{color:var(--ui-muted)}
@media print{html[data-workspace-theme]{--ui-bg:white;--ui-surface:white;--ui-raised:white;--ui-text:black;--ui-muted:#444;--ui-line:#bbb;color-scheme:light}.workspace-theme-toggle{display:none!important}}
