/* Theme-specific palette and adjustments. */
:root[data-theme="light"]{
  --surface-canvas:#f3f5f8;--surface-sidebar:#eaf0f6;--surface-panel:#ffffff;
  --surface-card:#ffffff;--surface-input:#f6f9fd;--edge:#d1dce8;
  --text-strong:#273447;--text-muted:#60748d;
  --surface-hover:#e3edf8;--bubble-user:#e2eeff;--bubble-ink:#22354d;
  --field-placeholder:#75869b;--composer-shadow:#73859825;--theme-accent:#3878cf;--theme-accent-hover:#5791d8;--theme-accent-ink:#fff;
}

:root[data-theme="light"] body,:root[data-theme="light"] html,:root[data-theme="light"] .shell{background:var(--surface-canvas);color:var(--text-strong)}
:root[data-theme="light"] .sidebar{background:var(--surface-sidebar);border-color:var(--edge)}
:root[data-theme="light"] .brand,:root[data-theme="light"] .workspace-topbar,:root[data-theme="light"] .active-conversation-title{border-color:var(--edge)}
:root[data-theme="light"] .composer,:root[data-theme="light"] .message.result,:root[data-theme="light"] .settings-dialog,:root[data-theme="light"] #mcp-dialog{background:var(--surface-panel);border-color:var(--edge);color:var(--text-strong);box-shadow:0 3px 21px #8ca2ba23}
:root[data-theme="light"] .message.user{background:#e2eeff;border-color:#bed4f3;color:#22354d}
:root[data-theme="light"] .message{border-color:var(--edge)}
:root[data-theme="light"] .sidebar-details,:root[data-theme="light"] .active-conversation-title,:root[data-theme="light"] .gpu,:root[data-theme="light"] .worker,:root[data-theme="light"] .resource-grid>.ram-visual,:root[data-theme="light"] .connection,:root[data-theme="light"] .conversation-row.selected,:root[data-theme="light"] .mcp-side{background:var(--surface-panel);border-color:var(--edge);color:var(--text-strong)}
:root[data-theme="light"] .mcp-side:hover,:root[data-theme="light"] .conversation-row.selected:hover{background:#e0eaf6}
:root[data-theme="light"] .conversation-name,:root[data-theme="light"] .brand strong,:root[data-theme="light"] .active-conversation-title strong,:root[data-theme="light"] .gpu-head strong,:root[data-theme="light"] .worker-head strong{color:var(--text-strong)}
:root[data-theme="light"] .section-title,:root[data-theme="light"] .brand small,:root[data-theme="light"] .sidebar-note,:root[data-theme="light"] .conversation-delete,:root[data-theme="light"] .workload-info,:root[data-theme="light"] .composer-header label,:root[data-theme="light"] .context-text,:root[data-theme="light"] .composer-footer>span,:root[data-theme="light"] .detail,:root[data-theme="light"] .dialog-note,:root[data-theme="light"] .field,:root[data-theme="light"] .field label{color:var(--text-muted)}
:root[data-theme="light"] #prompt,:root[data-theme="light"] .workload-text,:root[data-theme="light"] .message-content,:root[data-theme="light"] .md-rendered h1,:root[data-theme="light"] .md-rendered h2,:root[data-theme="light"] .md-rendered h3,:root[data-theme="light"] .md-rendered h4,:root[data-theme="light"] .md-rendered h5{color:var(--text-strong)}
:root[data-theme="light"] input,:root[data-theme="light"] select,:root[data-theme="light"] .composer select,:root[data-theme="light"] .file-picker input[type=file],:root[data-theme="light"] .file-picker select,:root[data-theme="light"] .chat-file-kind select,:root[data-theme="light"] .seed-control input,:root[data-theme="light"] .field input,:root[data-theme="light"] .mcp-form select,:root[data-theme="light"] .args-label textarea{background:var(--surface-input);color:var(--text-strong);border-color:var(--edge)}
:root[data-theme="light"] .composer-tool,:root[data-theme="light"] .file-clear,:root[data-theme="light"] .replay-button,:root[data-theme="light"] .library-action,:root[data-theme="light"] .notification-setting button,:root[data-theme="light"] .settings-actions button{background:var(--surface-input);color:var(--text-strong);border-color:var(--edge)}
:root[data-theme="light"] .library-management-name strong,:root[data-theme="light"] .notification-setting strong,:root[data-theme="light"] .dialog-head h2,:root[data-theme="light"] .dialog-head button{color:var(--text-strong)}
:root[data-theme="light"] .library-management-name small,:root[data-theme="light"] .notification-setting small,:root[data-theme="light"] .sidebar-details summary,:root[data-theme="light"] .welcome,:root[data-theme="light"] .welcome p{color:var(--text-muted)}
:root[data-theme="light"] .md-rendered :not(pre)>code,:root[data-theme="light"] .md-rendered blockquote,:root[data-theme="light"] .thinking,:root[data-theme="light"] .tool-event,:root[data-theme="light"] .tool-doc{background:#eef3f8;color:#354b65;border-color:var(--edge)}
:root[data-theme="light"] .tool-approval{background:#fff5e3;color:#624a23}
:root[data-theme="light"] .md-rendered a{color:#2466ab}
:root[data-theme="light"] .workload-tabs button:not(.selected){color:var(--text-muted);border-color:var(--edge)}
:root[data-theme="light"] .bar,:root[data-theme="light"] .context-track{background:#dce7f1}

html[data-theme="light"],html[data-theme="light"] body{background:#f3f5f8!important;color:#273447}

html[data-theme="light"] .welcome h2{color:#2d496e}
html[data-theme="light"] .welcome-icon{color:var(--accent)}
html[data-theme=\"light\"] .field textarea.workload-text,
html[data-theme=\"light\"] .composer .field textarea.workload-text{
 background:var(--surface-input);color:var(--text-strong);border:1px solid var(--edge);
}
html[data-theme=\"light\"] .job-diagnostics,html[data-theme=\"light\"] .tool-result,
html[data-theme=\"light\"] .diagnostics-log{
 background:var(--surface-input);color:var(--text-strong);border-color:var(--edge);
}
