/* Light surfaces and readable text. All overrides are explicitly light-theme scoped. */
body:not([data-theme="dark"]) #workspace{--ink:#243449;--muted:#586b80;--line:#dce4ee;--bg:#f5f7fa;--card:#fff;color:var(--ink);background:var(--bg)}
body:not([data-theme="dark"]) #workspace .app-main{background:#f5f7fa}
body:not([data-theme="dark"]) #workspace .app-topbar{background:#fff;border-color:#dce4ee}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] .home-head h1{color:#1e2e43}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] .home-head p{color:#586b80}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.home-entry-card,.connected-mini-card,.home-dashboard-grid>.card){background:#fff;border-color:#dce4ee;box-shadow:0 2px 8px #23364a04}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.home-entry-card,.connected-mini-card){transition:border-color .15s ease,box-shadow .15s ease}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.home-entry-card,.connected-mini-card):hover{border-color:#b5c7da;box-shadow:0 4px 14px #23364a09}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.home-entry-card h2,.card-head h2,.connected-mini-card>div>b,.research-row .title,.home-chat-list>button>b){color:#243449!important;opacity:1!important;-webkit-text-fill-color:currentColor}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] .connected-mini-card>div>b{font-size:13px;font-weight:600}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.home-entry-card p,.connected-mini-card small,.home-entry-kicker,.research-row small){color:#586b80!important;opacity:1!important}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] .connected-mini-card small{margin-top:5px;line-height:1.5}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.research-row,.home-chat-list>button){border-color:#e5ebf2}
body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.research-row,.home-chat-list>button):hover{background:#f7f9fc}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] .assistant-message .assistant-bubble{color:#26374b;font-size:14px;line-height:1.85}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] .assistant-message.user .assistant-bubble{background:#edf3ff!important;border:1px solid #d2def0!important;box-shadow:none!important;color:#26374b!important}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] .assistant-message.assistant .assistant-bubble{background:transparent;color:#26374b;box-shadow:none}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] :is(.rich-text p,.rich-text li,.rich-text strong){color:inherit}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] :is(.chat-context-mini,.quote-chip){background:#f8faff!important;border-color:#ccd9ea!important;color:#435872!important;font-size:12px;line-height:1.6;box-shadow:none!important}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] :is(.chat-composer,.chat-input-row textarea){background:#fff;border-color:#d6e0eb;color:#243449}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] textarea::placeholder{color:#64768b;opacity:1}
body:not([data-theme="dark"]) #workspace [data-app-view="chat"] :is(.assistant-message-actions button,.chat-message-actions button){color:#586b80;border-color:#d7e1eb}
html[data-theme="light"]{--bg:#f6f8fa;--sidebar:#f0f4f7;--card:#fff;--panel:#fff;--ink:#243449;--muted:#596d80;--line:#dce5ec;--soft:#eaf1f4;--accent:#287b64;--ant:#355f54}
html[data-theme="light"] .iuone-workspace-current-v9{background:#fff;color:#243449;border-color:#d7e2e9}
html[data-theme="light"] :is(.iuone-workspace-menu-v8,.iuone-workspace-menu-inline-v9){background:#fff!important;border-color:#d7e2e9!important}
html[data-theme="light"] .iuone-workspace-option{color:#26394a}
html[data-theme="light"] .iuone-workspace-option:hover{background:#f0f5f7}
html[data-theme="light"] .iuone-workspace-option.active{background:#e5f2ed;color:#215a49}
html[data-theme="light"] :is(.workspace-copy small,.workspace-current small){color:#596d80}
html[data-theme="light"] .iuone-workspace-menu-label{color:#607589!important}
html[data-theme="light"] .workspace-glyph{background:#edf3f7;border:1px solid #e0e8ee;color:#48657b}
html[data-theme="light"] .workspace-check{color:#287b64}
html[data-theme="light"] .iuone-workspace-menu-actions{background:#f7f9fb!important;border-color:#dce5ec}
html[data-theme="light"] .iuone-workspace-menu-actions button{background:#fff;color:#35536a;border-color:#d3dfe8}
html[data-theme="light"] .iuone-workspace-menu-actions button:hover{background:#edf4f7;border-color:#a7bdcb}
html[data-theme="light"] :is(.iuone-agent-chip,.iuone-overview-agent-chip){background:#fff;color:#35536a;border-color:#d7e2e9}
html[data-theme="light"] :is(.iuone-agent-chip.active,.iuone-overview-agent-chip.active){background:#e5f2ed;color:#215a49;border-color:#b6d5c8}
html[data-theme="light"] .iuone-identity-summary{background:#fff;border-color:#dce5ec;color:#354b5f}
html[data-theme="light"] :is(.iuone-identity-summary small,.iuone-identity-summary p,.iuone-identity-summary span){color:#596d80;opacity:1}
html[data-theme="light"] .iuone-item-rail{background:#f0f4f7}
html[data-theme="light"] .iuone-conversation-pane{background:#f6f8fa}
html[data-theme="light"] .iuone-conversation-head{background:#fff;border-color:#dce5ec}
html[data-theme="light"] .iuone-empty-thread p{color:#596d80;line-height:1.8}
html[data-theme="light"] .iuone-list-empty{color:#66788a}
html[data-theme="light"] .iuone-workbench-compose{background:#fff;border-color:#d6e1e8;box-shadow:0 4px 20px #24394d08}
html[data-theme="light"] .iuone-workbench-compose textarea::placeholder{color:#66788a;opacity:1}
html[data-theme="light"] .execution-target-button{background:#f6f9fb;border-color:#d5e1e8;color:#486278}
html[data-theme="light"] .execution-target-button.active{background:#e8f4ee;border-color:#a6cdbd;color:#25644f}
html[data-theme="light"] .execution-target-button:disabled{background:#edf1f5!important;border-color:#dde4eb!important;color:#596d80!important;opacity:1;cursor:not-allowed}
html[data-theme="light"] :is(.iuone-groups-section,.iuone-group-card){background:#fff;border-color:#dce5ec;color:#243449}
html[data-theme="light"] :is(.iuone-group-card small,.iuone-groups-head p){color:#596d80}
html[data-theme="light"] .iuone-group-card:hover{background:#f5f9f7;border-color:#b9d2c6}
html[data-theme="light"] .iuone-message-body{color:#26374b}
@media(prefers-reduced-motion:reduce){body:not([data-theme="dark"]) #workspace [data-app-view="home"] :is(.home-entry-card,.connected-mini-card){transition:none}}
