/* Quiet daylight palette. Loaded after component styles; dark mode is untouched. */
html[data-theme="light"] {
  --bg:#e7eae6; --panel:#f1f3ef; --line:#ccd3cd;
  --text:#2d3b37; --muted:#596860; --accent:#356c64;
  --amber:#80632f; --red:#a04448;
  --instrument-hover:#e1e7e1;
  --instrument-success:#3c6d50; --instrument-warning:#80632f; --instrument-danger:#a04448;
}
html[data-theme="light"] :is(.sidebar,.topbar) { background:#dfe5df; }
html[data-theme="light"] dialog { background:var(--panel); }
html[data-theme="light"] :is(button,.editor-toolbar) { background:#e5eae4;border-color:var(--line); }
html[data-theme="light"] button:hover { background:#dbe3dc; }
html[data-theme="light"] :is(input,select,textarea,.search,.editor-surface) { background:#f5f6f2;color:var(--text);border-color:#aab6ad; }
html[data-theme="light"] :is(input,textarea)::placeholder { color:#647267; }
html[data-theme="light"] :is(input,select,textarea):disabled { background:#e5e9e3;color:#647267; }
html[data-theme="light"] :is(.primary,.auth-submit,.today .day-number) { background:var(--accent);color:#f5f7f3;border-color:var(--accent); }
html[data-theme="light"] :is(.primary,.auth-submit):hover { background:#2b5c55;color:#f5f7f3; }
html[data-theme="light"] :is(.nav-item,.tree-item,.tree-unit,.day-number,.more,.agenda-item,.work-link,.editor-toolbar button,.catalog-runs button) { background:transparent; }
html[data-theme="light"] :is(.nav-item.active,.selected,.task-item.active,.day.today) { background:#d8e4db;color:#2e5e51; }
html[data-theme="light"] :is(.avatar,.person,.profile-photo,.profile-role,.nav-count,.notification-count,.calendar-mode) { background:#dde5de;color:#465c4c;border-color:#becbbf; }
html[data-theme="light"] :is(.day.outside,th,.catalog-row-head) { background:#e4e9e3; }
html[data-theme="light"] :is(.event,.badge.normal) { background:#dfe7e7;color:#435c62;border-left-color:#6b8789; }
html[data-theme="light"] :is(.event.high,.badge.high) { background:#eae3d3;color:#745725; }
html[data-theme="light"] :is(.event.critical,.badge.critical) { background:#eadbdd;color:#8b3e46; }
html[data-theme="light"] .teal { color:var(--accent)!important; }
html[data-theme="light"] .upload-label { background:#e8ede6;color:#506151;border-color:#aab6ad; }
html[data-theme="light"] .catalog-row:hover:not(.catalog-row-head) { background:var(--instrument-hover); }
html[data-theme="light"] .theme-track { background:#d3dfd5;border-color:#8baba0; }
html[data-theme="light"] .theme-thumb { background:var(--accent); }
html[data-theme="light"] #toast { background:#dce8de;color:#325c42;border-color:#9cb5a0; }
html[data-theme="light"] dialog::backdrop { background:rgba(36,48,41,.34); }
html[data-theme="light"] [data-icon="tasks"] { --icon-tone:#43776b; }
html[data-theme="light"] [data-icon="calendar"] { --icon-tone:#55788b; }
html[data-theme="light"] [data-icon="tree"] { --icon-tone:#7a6b8d; }
html[data-theme="light"] [data-icon="settings"] { --icon-tone:#8a754c; }
html[data-theme="light"] :is([data-icon="executions"],[data-icon="lock"]) { --icon-tone:#53785a; }
html[data-theme="light"] [data-icon="repeat"] { --icon-tone:#4f7c83; }
html[data-theme="light"] [data-icon="template"] { --icon-tone:#8a6681; }
html[data-theme="light"] :is([data-icon="shield"],[data-icon="bell"]) { --icon-tone:#85743d; }
html[data-theme="light"] [data-icon="users"] { --icon-tone:#966f51; }
html[data-theme="light"] [data-icon="user"] { --icon-tone:#786a91; }
html[data-theme="light"] :is([data-icon="trash"],[data-icon="logout"]) { --icon-tone:#995c64; }
html[data-theme="light"] :is(.plans-page,.plan-dialog) { --plan-panel:var(--panel);--plan-line:var(--line); }
html[data-theme="light"] .plan-viewport { background:#dce2da; }
html[data-theme="light"] .plan-tools [aria-pressed=true] { color:var(--accent);background:#dce7de;border-color:#8eaaa0; }
