html[data-theme="dark"]{--bg:#141c18;--paper:#1e2922;--ink:#e1ebe4;--muted:#acbcae;--line:#35473b;--green:#a4d2af;--lime:#334b38;color-scheme:dark}html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}html[data-theme="dark"] :is(.sidebar,header,.card,.metric,dialog,.org-card,.company-card,.platform-error-box,.staff-card,.login-card){background:var(--paper);color:var(--ink);border-color:var(--line)}html[data-theme="dark"] :is(input,select,textarea){background:#17231c;color:#e1ebe4;border-color:#4b6152}html[data-theme="dark"] :is(th,.table-foot,.card-head,.section-head){background:#243329;border-color:var(--line);color:#b9cbbd}html[data-theme="dark"] :is(td,tr,.activity,.shift-row){border-color:var(--line);color:#c4d4c8}html[data-theme="dark"] :is(h1,h2,h3,h4,b,.person b,.salary,.big-money,.metric-value,.brand,.breadcrumb b){color:#e1ebe4}html[data-theme="dark"] :is(label,.sub,.muted,.field-hint,.metric-note,.mini-label,.today,.breadcrumb,.person small,footer,.activity p,.activity time,.legend){color:#a9bcad}html[data-theme="dark"] :is(.btn,.text-btn){background:#293b2e;color:#dce9df;border-color:#4a6251}html[data-theme="dark"] .btn.primary{background:#afd08a;color:#182617;border-color:#afd08a}html[data-theme="dark"] :is(.settings-note,.callout,.demo-notice,.summary-bar,.location-info,.workspace,.platform-pilot,.platform-form-note,.platform-help){background:#273a2b;color:#c6d9c2;border-color:#4b6246}html[data-theme="dark"] :is(.avatar,.workspace-icon,.company-icon,.activity-mark){background:#354d39;color:#d1e7c4}html[data-theme="dark"] nav a{color:#b4c6b8}html[data-theme="dark"] nav a.active{background:#334b38;color:#e4f0df}html[data-theme="dark"] .badge{background:#354b32;color:#d0e7bc}html[data-theme="dark"] .badge.orange,html[data-theme="dark"] .warning-box{background:#493724;color:#f1cf9c}html[data-theme="dark"] .badge.red{background:#4d302c;color:#f0b9aa}html[data-theme="dark"] .badge.blue{background:#293e50;color:#bdd7ee}html[data-theme="dark"] .donut:before{background:var(--paper)}html[data-theme="dark"] .qr-box svg{background:white}html[data-theme="dark"] dialog::backdrop{background:#0009}#theme-choice{max-width:300px}@media print{html[data-theme="dark"] body{background:white;color:black}html[data-theme="dark"] :is(.card,.qr-box,h1,h2,b,p){background:white;color:black}}
/* Keep light-theme surfaces from bleeding through in night mode. */
@media screen {
  html[data-theme="dark"] {
    --night-raised:#28392e;
    --night-hover:#344c3b;
    --night-text:#e1ebe4;
    --night-secondary:#b8cbbd;
  }
  html[data-theme="dark"] :is(nav a:hover, nav a:focus-visible, nav a.active:hover, .btn:hover, .button.secondary:hover, .dept-action-menu a:hover, .dept-action-menu button:hover, .qr-map-controls button:hover, .work-report-table .report-summary:hover > td) {
    background:var(--night-hover);color:var(--night-text);
  }
  html[data-theme="dark"] nav a .count {background:#44634d;color:#f0f7ef}
  html[data-theme="dark"] .btn.primary:hover {background:#c4dfaa;color:#182617}
  html[data-theme="dark"] :is(.metric.featured,.metric-icon,.point-icon,.org-section-icon,.org-explainer,.org-preview,.org-help,.org-help code,.organization-inherit,.dept-stat,.dept-stat-icon,.dept-member-link,.dept-action-menu,.dept-bulk,.dept-empty-icon,.dept-members,.dept-delete-list,.dept-archive-note,.qr-map-controls button,.qr-map-caption,.qr-editor-side,.qr-placeholder,.qr-legacy-note,.report-caption,.work-report-table .report-detail>td,.report-day-container table,.report-day-container caption,.employee-pay,.salary-note,.login-symbol,.icon-button,.clock-card,.shift-state,.history,.month-picker,.shift-total,.qr-success) {
    background:var(--night-raised);color:var(--night-text);border-color:var(--line);
  }
  html[data-theme="dark"] :is(.org-preview,.org-help,.org-explainer,.organization-inherit,.dept-members,.dept-archive-note,.qr-editor-side,.employee-pay,.clock-card) :is(p,small,dt,dd,label,span,a):not(.badge) {
    color:var(--night-secondary);
  }
  html[data-theme="dark"] :is(.org-page-error,.org-integration-result.error,.dept-form-error,.qr-form-error,.error,.activity-mark.out) {
    background:#493724;color:#f1cf9c;border-color:#765b3c;
  }
  html[data-theme="dark"] :is(.dept-action-menu a,.dept-action-menu button,.qr-active-label,.qr-active-note,.demo-notice div>span,.callout p,.summary-bar span,.table-foot,.empty) {
    color:var(--night-secondary);
  }
  html[data-theme="dark"] :is(nav a,.btn,.button,.dept-action-menu a,.dept-action-menu button):focus-visible {
    outline:2px solid #b5d7a4;
  }
  html[data-theme="dark"] .progress {background:#33493b}
}
