/* The original warm light palette stays available; dark is the default for this desktop. */
:root[data-theme="dark"] {
  color-scheme:dark;
  --paper:#171f1b;
  --surface:#202b25;
  --ink:#e1e7df;
  --muted:#acb8ae;
  --line:#3c4c40;
  --green:#a0c7a5;
  --green-light:#2e4737;
  --ochre:#493d27;
  --ochre-ink:#eed6a2;
  --blue:#2b414d;
  --blue-ink:#c0ddea;
  --rest:#2c352e;
  --rest-ink:#c1ccbd;
}
.topbar-actions{display:flex;align-items:center;gap:21px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);font-size:11px;white-space:nowrap}
.theme-toggle svg{width:16px;height:16px;flex-shrink:0}
.theme-toggle:hover{background:var(--rest)}
.theme-toggle[aria-pressed="true"]{background:var(--green-light);border-color:#64836a}
:root[data-theme="dark"] ::selection{background:#48664e;color:#f3f6ee}
:root[data-theme="dark"] :is(button,a,input,textarea,select):focus-visible{outline-color:#b4d0a6}
:root[data-theme="dark"] .tab:hover{background:#29372d}
:root[data-theme="dark"] .tab-count{background:#344438;color:#c1ccbd}
:root[data-theme="dark"] .plan-notice{background:#222f25}
:root[data-theme="dark"] .plan-notice p{color:#b9c8b9}
:root[data-theme="dark"] .day-header.selected{background:#344638}
:root[data-theme="dark"] .day-lane{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),var(--line) 25%)}
:root[data-theme="dark"] .day-column.is-past-day .day-lane{background-color:#202720}
:root[data-theme="dark"] .day-column.is-past-day .schedule-block{border-color:#71574b}
:root[data-theme="dark"] .time-rail{color:#a4b09f}
:root[data-theme="dark"] :is(.schedule-block.focus,.mobile-segment.focus){color:#d0e5ce}
:root[data-theme="dark"] .schedule-block:hover{filter:brightness(1.12)}
:root[data-theme="dark"] .schedule-block.selected{box-shadow:inset 0 0 0 1.5px #b4d0a6}
:root[data-theme="dark"] :is(.job,.later-item,.global-item,.mobile-row){border-top-color:var(--line);border-bottom-color:var(--line)}
:root[data-theme="dark"] .check-button{border-color:#82947c}
:root[data-theme="dark"] .check-button.checked{color:#19281d;border-color:var(--green)}
:root[data-theme="dark"] :is(.job-tag,.category-label){color:#b2caa9}
:root[data-theme="dark"] .finish-box{background:#2a392d}
:root[data-theme="dark"] .button.primary{background:#a8c9aa;color:#17261b;border-color:#a8c9aa}
:root[data-theme="dark"] .button.primary:hover{background:#bfd8b8;border-color:#bfd8b8}
:root[data-theme="dark"] .button.secondary:hover{background:#2e3e31}
:root[data-theme="dark"] .button.completed{background:#304a36;color:#c5dfbc;border-color:#607d5c}
:root[data-theme="dark"] .background-work{background:#3c3525}
:root[data-theme="dark"] .background-work p{color:#d4c49f}
:root[data-theme="dark"] .background-work .check-button{border-color:#9c8a61}
:root[data-theme="dark"] .block-chip.selected{background:#344438;border-color:#7e9b74}
:root[data-theme="dark"] .empty-state{border-color:#65765f}
:root[data-theme="dark"] :is(input,select,textarea){background:#19241d;color:var(--ink);border-color:#61725d}
:root[data-theme="dark"] :is(input,textarea)::placeholder{color:#a0ae9b}
:root[data-theme="dark"] select option{background:#202b25;color:var(--ink)}
:root[data-theme="dark"] .form-error{color:#f3ac96}
:root[data-theme="dark"] dialog{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 20px 80px #0007}
:root[data-theme="dark"] dialog::backdrop{background:#080f0bbd}
:root[data-theme="dark"] #toast{background:#c5d7bc;color:#17261b;box-shadow:0 8px 35px #0005}
:root[data-theme="dark"] .mobile-track{background:#18221c}
:root[data-theme="dark"] :is(.global-status,.global-type-tag){background:#354337;color:#ccd5c7}
:root[data-theme="dark"] .global-type-tag{background:transparent;color:var(--muted)}
:root[data-theme="dark"] .global-status.active{background:#354d36;color:#d1e4c6}
:root[data-theme="dark"] .global-status.parked{background:#443f33;color:#d6ccba}
:root[data-theme="dark"] .expand-mark{color:#abbba3}
:root[data-theme="dark"] .global-item.is-done .global-title{color:#a6b39e}
:root[data-theme="dark"] .brand-divider{color:#a0b09b}
:root[data-theme="dark"] .save-status:before{background:#a0c7a5}
:root[data-theme="dark"] .save-status.unsaved:before{background:#f0b378}
:root[data-theme="dark"] .capacity-note>span{color:#afc4a5}
@media(max-width:650px){.topbar-actions{gap:10px}.theme-toggle{min-height:34px;padding:7px;font-size:10px;gap:6px}.theme-toggle svg{width:14px;height:14px}.topbar-actions .save-status{max-width:110px}}
