/* Shared palette for chat, administration and login. Status colors retain meaning. */
:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--border:#3b4752;color:#e3e9ef;background:#171d23}
:root[data-theme=dark] body{background:#171d23;color:#e3e9ef}
:root[data-theme=dark] :is(main,dialog,.admin-card,.workspace>aside,.admin-workspace>aside,.user-dropdown,.operation,.overview-task,.connection-choice,#connection-picker-panel){background:#202830;color:#e3e9ef;border-color:#3b4752}
:root[data-theme=dark] :is(.admin-content,.workspace .details,.session-head,.message pre,.command-detail pre,.activation-card){background:#192129;border-color:#3b4752;color:#e3e9ef}
:root[data-theme=dark] :is(input,textarea,select,.secondary,.connection-picker-toggle){background:#151d25;color:#e3e9ef;border-color:#4a5967}
:root[data-theme=dark] input:read-only{background:#29333c;color:#b8c5cf}
:root[data-theme=dark] :is(.session-head h1,.user-choice,.task-choice,.overview-task,.table-user,.settings-nav a,.user-dropdown #logout){color:#e3e9ef}
:root[data-theme=dark] :is(.hint,#context,.legend,.empty,.eyebrow,.admin-heading p,.admin-card label,.user-table th,.user-table td small,.connection-choice small,.operation p,#audit,#run-state,#task-owner-label,.add-task,.completed-icon,.menu-label,.settings-nav a:first-child){color:#acbbc8}
:root[data-theme=dark] :is(.message strong,.attachment-link,.attachment-name,a){color:#abcdf0}
:root[data-theme=dark] :is(.user-tasks,#compose,#task-controls,.form-actions,.user-table th,.user-table td,.command-detail,.audit-entry,.license-picker-group,.connection-picker,.details #event-log,.menu-label,.user-dropdown #logout){border-color:#3b4752}
:root[data-theme=dark] :is(.user-choice.active,.task-choice.active,.session-choice.active,.settings-nav a[aria-current=page],.connection-choice.selected,.user-table tr.selected){background:#443427;color:#ffcd97;border-color:#96704c}
:root[data-theme=dark] :is(.message.user pre,.badge,.connection-chip,.file-chip,.attachment-chip){background:#2c3b49;color:#d4e4f1;border-color:#475d70}
:root[data-theme=dark] :is(.settings-nav a:hover,.user-dropdown a:hover,.user-dropdown button:hover,#connection-picker-panel label:hover,.connection-choice:hover){background:#303c47;color:#eff5fa}
:root[data-theme=dark] :is(.attachment-button,.remove-file,.connection-chip button){color:#c8d8e5;background:transparent}
:root[data-theme=dark] .status-pill.enabled{background:#203e31;color:#a0dfb5}
:root[data-theme=dark] .status-pill.disabled{background:#452d2c;color:#edb6ae}
:root[data-theme=dark] #notice{background:#46381e;color:#ffdfa3}
:root[data-theme=dark] :is(#task-form-error,#error,.error){color:#ffa99f}
:root[data-theme=dark] #drop-hint{background:#19382eed;border-color:#83cba4;color:#d7f5e3;box-shadow:0 0 0 10px #18232bbd}
:root[data-theme=dark] .dot{box-shadow:0 0 0 3px #202830}
:root[data-theme=dark] dialog::backdrop{background:#060c13b3}
:root[data-theme=dark] :is(button,a,input,textarea,select,summary):focus-visible{outline-color:#efb968}
:root[data-theme=dark] button.danger{background:#b33830;color:#fff;border-color:#d2655e}
:root[data-theme=dark] button.danger:hover{background:#ca4138}
:root[data-theme=dark] button:disabled{opacity:.55}
#theme-toggle{align-items:center;gap:12px}
#theme-toggle .theme-label{flex:1}
#theme-toggle svg{width:17px;height:17px}
:root[data-theme=dark] :is(aside h2,.details h2){color:#acbbc8}
:root[data-theme=dark] #task-description-panel{background:#202830;color:#e3e9ef;border-color:#3b4752}
