:root[data-theme=dark]{color-scheme:dark}
[data-theme=dark] body,[data-theme=dark] body.acs-app{background:#151d28;color:#e4eaf0;--ink:#e4eaf0;--line:#405064;--muted:#b7c1ce;--accent:#97c6ff}
[data-theme=dark] :is(section,header.topbar,.panel,.messenger,.conversation-list,.conversation-item,.channel-history,.channel-card,.channel-mail,.event-body,.desk-reply,.mobile-back,#messages,#journal details){background:#202b39;color:#e4eaf0;border-color:#405064}
[data-theme=dark] :is(h1,h2,h3,.brand,.conversation-item,.event-title){color:#f3f5f9!important}
[data-theme=dark] :is(a,.text-button,.account button){color:#9fceff}
[data-theme=dark] :is(input,select,textarea,.panel-nav button,.event-open,.journal-pagination button){background:#273445;color:#e8eef5;border-color:#566578}
[data-theme=dark] .panel-nav button[aria-pressed=true],[data-theme=dark] .conversation-item.active{background:#304a67}
[data-theme=dark] :is(.muted,.welcome,.event-meta,.event-state,.event-label,.channel-route,.channel-card dt,.conversation-item p,.conversation-item small,#messages .chat-message small){color:#b8c5d2}
[data-theme=dark] #messages .chat-message{background:#293747;color:#eef2f6;border-color:#465568}
[data-theme=dark] #messages .bubble-out{background:#403229;border-color:#72533b}
[data-theme=dark] .modules [aria-disabled]{background:#293341;color:#a9b4c1}

/* Palette shared by Team pages, including the Health Day renderer. */
:root {
  --team-page:#f3f5f8; --team-paper:#fff; --team-text:#20314a; --team-muted:#536579;
  --team-edge:#d1dae4; --team-tint:#edf3fa; --team-link:#185793;
  --team-action:#145fa6; --team-on-action:white; --team-focus:#1266b3;
}
:root[data-theme=dark] {
  --team-page:#151d28; --team-paper:#202b39; --team-text:#e4eaf0; --team-muted:#bac6d4;
  --team-edge:#455569; --team-tint:#2c4056; --team-link:#a6d1ff;
  --team-action:#a6d1ff; --team-on-action:#14283b; --team-focus:#ffbb85;
}
body {
  --paper:var(--team-paper); --panel:var(--team-paper); --surface:var(--team-paper);
  --ac-paper:var(--team-paper); --ac-blue:var(--team-link); --ac-muted:var(--team-muted);
  --ac-line:var(--team-edge); --ac-soft:var(--team-tint);
}
body.health-personal {background:var(--team-page);color:var(--team-text)}
.health-personal :is(form,section,input) {background:var(--team-paper);color:var(--team-text)}
.health-personal .brand {color:var(--team-link)}
.health-personal button {background:var(--team-action);color:var(--team-on-action)}
html[data-theme=dark] .health-personal #eligibility {background:#482629;color:#ffd5d0}
html[data-theme=dark] .health-personal #eligibility.available {background:#183d31;color:#bcf1ce}
html[data-theme=light] .health-personal #eligibility {background:#fce9e6;color:#812d26}
html[data-theme=light] .health-personal #eligibility.available {background:#def4e5;color:#155535}
body {--ac-bg:var(--team-page);--ac-ink:var(--team-text)}
[data-theme=dark] .cert-work :is(.panel,.acg-summary,.acg-result,.acg-batch-list tr,.widefat th) {background:var(--team-paper);color:var(--team-text);border-color:var(--team-edge)}
[data-theme=dark] .cert-work :is(.acg-help,.acg-summary-price,.acg-step,.acg-summary-row strong,label,.acg-summary-note) {color:var(--team-muted)}
[data-theme=dark] #cashier-app {color-scheme:dark;--ink:var(--team-text);--muted:var(--team-muted);--accent:var(--team-link);--line:var(--team-edge);--surface:var(--team-paper);color:var(--ink)}
[data-theme=dark] #cashier-app :is(.panel,.quantity-stepper,.order-customer,.camera-button,select,textarea,input) {background:var(--team-paper);color:var(--team-text);border-color:var(--team-edge)}
[data-theme=dark] #cashier-app .quantity-stepper button {background:var(--team-tint);color:var(--team-link)}

:root {
  --team-control-border:#76879b; --team-hover:#e1ebf6;
  --team-success:#225d40; --team-success-bg:#e3f3e9;
  --team-warning:#724707; --team-warning-bg:#fff0d3;
  --team-danger:#903329; --team-danger-bg:#fbe7e4;
  --team-destructive:#97362e; --team-on-destructive:#fff;
}
:root[data-theme=light] {color-scheme:light}
:root[data-theme=dark] {
  --team-control-border:#8595a9; --team-hover:#344c65;
  --team-success:#ade4c6; --team-success-bg:#213d32;
  --team-warning:#ffda9a; --team-warning-bg:#483720;
  --team-danger:#ffb6ae; --team-danger-bg:#482d32;
  --team-destructive:#ffb6ae; --team-on-destructive:#451e1c;
}
body :is(.core-head,.work-main,.login-main,.health-personal,.acs-app) {accent-color:var(--team-action)}
body :is(.work-main,.login-main) :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea),
body.acs-app :is(.chat-controls,.statistics-controls,.desk-reply,.channel-mail) :is(input,select,textarea) {
  color:var(--team-text);background-color:var(--team-paper);border:1px solid var(--team-control-border);
  border-radius:.55rem;font-family:inherit;font-size:1rem;min-height:44px;max-width:100%;
}
body :is(.login-main,.staff-search,.staff-row,.staff-add,.cash-link,.cash-reports,.cert-filters,.order-search) form button,
body :is(form.staff-search,form.cert-filters,form.order-search) button,
body #cashier-app :is(.primary,#camera-open),body .cert-work .button-primary,body.acs-app button.primary,
body.acs-app .desk-reply button.primary,body form[action="/logout"] button {
  background:var(--team-action);color:var(--team-on-action);border:1px solid transparent;
  border-radius:.55rem;min-height:44px;padding:.55rem 1rem;font:600 1rem/1.35 var(--team-font,system-ui);
}
body .cert-work .button:not(.button-primary),body .cash-order-list .order-open,body .refund-confirm .secondary,
body #cashier-app .secondary,body .cert-work .cert-actions a {
  color:var(--team-link);background:var(--team-tint);border:1px solid var(--team-edge);border-radius:.55rem;
}
body #cashier-app .danger,body .refund-confirm .danger,body .cert-work .cert-annul button,body .staff-row form[action$="/remove"] button {
  color:var(--team-on-destructive);background:var(--team-destructive)
}
body :is(.cert-annul,.order-refund) summary,body .staff-row details:has(form[action$="/remove"])>summary,
body :is(.work-main,.login-main) p[role=alert] {color:var(--team-danger)}
body :is(.order-state.done,.channel-ok,.notice--success) {background:var(--team-success-bg);color:var(--team-success)}
body :is(.order-state.waiting,.channel-warning,.channel-stale) {background:var(--team-warning-bg);color:var(--team-warning)}
body :is(.order-state.failed,.channel-error) {background:var(--team-danger-bg);color:var(--team-danger)}
body :is(.order-state.active,.acg-step,.acg-summary-note) {background:var(--team-tint);color:var(--team-link)}
body .core-head nav :is(a,summary):hover,body .guide nav a:hover,
body .conversation-item:hover,body .work-main :is(.cert-tabs,.cash-report-nav) a:hover {
  background:var(--team-hover);color:var(--team-text)
}
body :is(.work-main,.login-main,.health-personal,.core-head) :focus-visible,body.acs-app :focus-visible {
  outline:3px solid var(--team-focus);outline-offset:2px
}
body :is(.work-main,.login-main,.health-personal) button:disabled,body.acs-app button:disabled {
  opacity:.6;cursor:not-allowed
}
body .cert-work .acg-batches :is(.panel,.acg-result,.widefat th,.acg-summary-row) {
  background:var(--team-paper);color:var(--team-text);border-color:var(--team-edge)
}
body .cert-work .acg-batches :is(.acg-help,.acg-summary-price,.acg-empty,.acg-summary-note,.acg-page-heading p) {color:var(--team-muted)}
body .cert-work .acg-batches .acg-summary-note {background:var(--team-tint)}
body.acs-app :is(.panel,.channel-history,.channel-card,.channel-mail,.conversation-list,.conversation-pane,.desk-loading,.desk-loading-error) {
  background:var(--team-paper);color:var(--team-text);border-color:var(--team-edge)
}
body.acs-app :is(.panel-nav button,.journal-pagination button,.event-open,.mobile-back,.mail-retry-button) {
  background:var(--team-paper);color:var(--team-link);border-color:var(--team-edge)
}
body.acs-app .panel-nav button[aria-pressed=true] {background:var(--team-tint);color:var(--team-link);border-color:var(--team-link)}
body.acs-app .conversation-item.active {background:var(--team-tint);color:var(--team-text)}
body.acs-app :is(.event-meta,.event-label,.event-time,.muted,.channel-route) {color:var(--team-muted)}
body.acs-app .panel :is(td,th),body.acs-app .channel-history details {border-color:var(--team-edge)}
body .core-head nav [aria-disabled],body.acs-app .conversation-item p,
body.acs-app .chat-message :is(small,.message-state),body.acs-app .table-scroll th,
body #cashier-app label,body .cert-work :is(.acg-selected-heading span,.acg-search-examples,.acg-result small) {
  color:var(--team-muted)
}
body .cert-work .acg-batches :is(.acg-summary-row,.acg-search-examples span){color:var(--team-muted)}
body .cert-work .acg-batches .acg-error {color:var(--team-danger)}
[data-theme=dark] .order-state:not(.done,.active,.waiting,.failed){background:var(--team-tint);color:var(--team-muted)}
[data-theme=dark] .acs-app :is(.status--answered,.status--operator_answered,.status--done,.notice--success) {background:var(--team-success-bg)!important;color:var(--team-success)!important}
[data-theme=dark] .acs-app :is(.status--operator,.status--pending,.status--processing,.status--queued) {background:var(--team-warning-bg)!important;color:var(--team-warning)!important}
[data-theme=dark] .acs-app :is(.status--error,.status--rejected,.status--interrupted) {background:var(--team-danger-bg)!important;color:var(--team-danger)!important}
[data-theme=dark] .acs-app :is(.status--bot,.status--received,.status--closed,.status--cancelled) {background:var(--team-tint)!important;color:var(--team-link)!important}
body .cert-work .acg-selected-heading span {background:var(--team-tint);color:var(--team-muted)}
