/* Light color overrides for the workspace, AI chat, GitHub, account dialogs and Friends chat. Layout and media stay unchanged. */
/* styles.css */
:root[data-theme="light"]{color:#2f3339;background:#fafbfb;--surface:#f7f8f9;--line:#c1c5cb;--muted:#44484f;--accent:#153463;}
:root[data-theme="light"] .sidebar{background:#f9f9fa;}
:root[data-theme="light"] .nav-link{color:#3b4048;}
:root[data-theme="light"] .nav-link.active{background:#eef1f5;border-color:#afbdce;color:#0f2748;}
:root[data-theme="light"] .dot{background:#d8dadd;}
:root[data-theme="light"] .dot.online{background:#a5d2b5;}
:root[data-theme="light"] .dot.offline{background:#dab57d;}
:root[data-theme="light"] .topbar{background:#f8f8f9;}
:root[data-theme="light"] .slash{color:#565b62;}
:root[data-theme="light"] .status-pill{color:#313842;}
:root[data-theme="light"] .tool-icon{color:#373f49;}
:root[data-theme="light"] .card-arrow{color:#464e58;}
:root[data-theme="light"] .empty h3{color:#363d45;}
:root[data-theme="light"] .btn{border:1px solid #babec6;background:#f2f3f5;}
:root[data-theme="light"] .btn.primary{background:#dce5ef;border-color:#9eb3cb;color:#0e1f40;}
:root[data-theme="light"] .btn.danger{color:#5a1313;border-color:#c8b3b6;}
:root[data-theme="light"] .field input,:root[data-theme="light"] .field textarea,:root[data-theme="light"] .field select,:root[data-theme="light"] .search-input{border:1px solid #babec6;background:#fafafb;color:#252c37;}
:root[data-theme="light"] input::placeholder,:root[data-theme="light"] textarea::placeholder{color:#4b515a;}
:root[data-theme="light"] summary{color:#2d3847;}
:root[data-theme="light"] .check input{accent-color:#17386b;}
:root[data-theme="light"] .aside-panel{background:#f8f8f9;}
:root[data-theme="light"] .step span{color:#3a4756;}
:root[data-theme="light"] .error{background:#f6f1f2;border:1px solid #c7aeb1;color:#561212;}
:root[data-theme="light"] .connection-notice{background:#f7f5f2;color:#63491e;border-bottom:1px solid #d2c6b3;}
:root[data-theme="light"] .reader-frame{background:#fafafa;}
:root[data-theme="light"] .video-frame{background:#000;}
:root[data-theme="light"] .tab{background:#f5f6f7;}
:root[data-theme="light"] .tab.active{background:#eaeef4;border-color:#9fb2c8;color:#0f2747;}
:root[data-theme="light"] .job-row{border-bottom:1px solid #c3c7cc;}
:root[data-theme="light"] .badge{border:1px solid #bcc1c7;background:#f1f2f4;color:#333a43;}
:root[data-theme="light"] .badge.failed{background:#f4f0f1;border-color:#c8afb3;color:#581317;}
:root[data-theme="light"] .badge.completed{background:#f1f6f4;border-color:#b4cdbe;color:#2b5d3e;}
:root[data-theme="light"] .badge.running,:root[data-theme="light"] .badge.uploading{background:#edf0f5;border-color:#a8bacf;color:#13325b;}
:root[data-theme="light"] .badge.cancelled{background:#f2f2f3;color:#404045;}
:root[data-theme="light"] .progress-line{background:#eaecef;}
:root[data-theme="light"] .progress-line span{background:#6594d6;}
:root[data-theme="light"] .job-error{color:#581313;}
:root[data-theme="light"] .history-item{background:#f3f4f6;}
:root[data-theme="light"] .history-item.active{background:#eaeef4;border-color:#a8b9cc;}
:root[data-theme="light"] .message{border:1px solid #bec3cc;border-left:2px solid #6a89ae;background:#f3f5f7;}
:root[data-theme="light"] .message.assistant{background:#f7f8f9;border-left-color:#b2b8be;}
:root[data-theme="light"] .message strong{color:#333f4f;}
:root[data-theme="light"] footer{color:#464c54;}
:root[data-theme="light"] #toast{border:1px solid #aab1bb;background:#eff1f4;color:#15253c;}
:root[data-theme="light"] .skip{background:#e3e9f1;}
@media (hover:hover){:root[data-theme="light"] .nav-link:hover,:root[data-theme="light"] .tool-card:hover,:root[data-theme="light"] .history-item:hover{background:#f1f3f5;border-color:#acb5c1;}
:root[data-theme="light"] .btn:hover,:root[data-theme="light"] .tab:hover{background:#eaedf0;}
:root[data-theme="light"] .btn.primary:hover{background:#294588;}
}
:root[data-theme="light"] .chat-toolbar{background:#f7f8f9;}
:root[data-theme="light"] .settings-popover{background:#f5f6f7;}
:root[data-theme="light"] .chat-view .history{background:#f5f6f7;}
:root[data-theme="light"] .chat-view .message{border-bottom:1px solid #c2c7ce;}
:root[data-theme="light"] .message-role{color:#333f4f;}
:root[data-theme="light"] .chat-view .composer{background:#f7f8f9;}
:root[data-theme="light"] .chat-view.chat-nav-open > .sidebar{border:1px solid #b1bac6;}
:root[data-theme="light"] .markdown-body blockquote{border-left:3px solid #a6b2c1;color:#2e3a48;}
:root[data-theme="light"] .markdown-body a{color:#153463;}
:root[data-theme="light"] .markdown-body code{background:#eff1f4;}
:root[data-theme="light"] .code-block{border:1px solid #b9c0c9;background:#f9fafb;}
:root[data-theme="light"] .markdown-body th,:root[data-theme="light"] .markdown-body td{border:1px solid #babec6;}
:root[data-theme="light"] .markdown-body th{background:#f0f2f5;}
:root[data-theme="light"] .reasoning-block{border:1px solid #b9c1cb;background:#f4f6f8;}
:root[data-theme="light"] .reasoning-block summary{color:#2e3d4e;}
:root[data-theme="light"] .reasoning-block .reasoning-body{color:#3c4651;}
:root[data-theme="light"] .gh-table th{background:#f1f3f5;color:#2d3949;}
:root[data-theme="light"] .gh-table tbody tr:nth-child(even){background:#f5f6f7;}
:root[data-theme="light"] .gh-detail pre{background:#f9fafb;}
:root[data-theme="light"] .gx-search{background:#f6f7f8;}
:root[data-theme="light"] .gx-results{background:#f7f8fa;}
:root[data-theme="light"] .gx-repo.selected,:root[data-theme="light"] .gx-discussion.selected{background:#ecf0f5;border-left-color:#4281d7;}
:root[data-theme="light"] .gx-repo:hover,:root[data-theme="light"] .gx-discussion:hover{background:#f0f3f6;}
:root[data-theme="light"] .gx-repo strong{color:#112a4f;}
:root[data-theme="light"] .gx-repo p{color:#353b42;}
:root[data-theme="light"] .gx-stale{color:#643c15;}
:root[data-theme="light"] .gx-document pre{background:#f7f8fa;}
:root[data-theme="light"] .gx-list-filter select{background:#f3f5f7;}
:root[data-theme="light"] .gx-diff{background:#f8f9fa;}
:root[data-theme="light"] .gx-diff .add{color:#265837;background:#f0f6f3;}
:root[data-theme="light"] .gx-diff .del{color:#5a1319;background:#f4eeef;}
/* polish.css */
:root[data-theme="light"] .catgpt-status-row{border-bottom:1px solid #b5bfcd;background:#f2f4f7;}
:root[data-theme="light"]{--surface:#f6f7f8;--line:#bcc3cd;--accent:#143260;--muted:#3d444e;}
:root[data-theme="light"] ::selection{background:#d8e1eb;color:#242424;}
:root[data-theme="light"] *{scrollbar-color:#5c6979 #edeff2;}
:root[data-theme="light"] .sidebar{background:#f7f8fa;}
:root[data-theme="light"] .brand-mark{border:1px solid #acb8ca;background:#edf1f5;}
:root[data-theme="light"] .nav-link.active{border-color:#adbacc;background:#eceff4;box-shadow:inset 3px 0 #26344c33;}
:root[data-theme="light"] .nav-link.active svg{color:#14335e;}
:root[data-theme="light"] .nav-link .count{background:#eff2f7;border:1px solid #acb8c9;}
:root[data-theme="light"] .topbar,:root[data-theme="light"] .chat-toolbar,:root[data-theme="light"] .gx-toolbar{background:#f4f5f8;box-shadow:inset 0 -1px #26344c33;}
:root[data-theme="light"] .topbar .slash{color:#435264;}
:root[data-theme="light"] .status-pill{color:#2e3a48;}
:root[data-theme="light"] .status-pill[data-state="online"]{color:#2d573d;}
:root[data-theme="light"] .status-pill[data-state="offline"]{color:#664a22;}
:root[data-theme="light"] .intro{border-left:2px solid #a5b2c3;}
:root[data-theme="light"] .eyebrow{color:#364353;}
:root[data-theme="light"] .section-heading h2::before{background:#b9c6d7;}
:root[data-theme="light"] .panel,:root[data-theme="light"] .aside-panel{box-shadow:inset 0 1px #26344c22;}
:root[data-theme="light"] .aside-panel{background:#f4f6f8;border-color:#b9c2ce;}
:root[data-theme="light"] .metrics{background:#f4f6f8;}
:root[data-theme="light"] .metric{box-shadow:inset 0 2px #26344c33;}
:root[data-theme="light"] .metric strong{color:#142945;}
:root[data-theme="light"] .metric span{color:#37414e;}
:root[data-theme="light"] .tool-card{background:linear-gradient(145deg, #f2f4f6, #f5f7f8);}
:root[data-theme="light"] .tool-card .tool-icon{border:1px solid #b0bccc;background:#ecf0f5;color:#13315a;}
:root[data-theme="light"] .tool-card .tool-icon.blue{background:#ecf0f4;border-color:#adbccc;}
:root[data-theme="light"] .tool-card .tool-icon.orange{background:#f4f2f0;color:#5f4626;border-color:#cdc3b7;}
:root[data-theme="light"] .tool-card .tool-icon.rose{background:#f3f0f2;color:#522430;border-color:#cab6be;}
:root[data-theme="light"] .tool-card .tool-icon.lilac{background:#eeeef2;color:#31244d;border-color:#bbb5c7;}
:root[data-theme="light"] .tool-card .tool-icon.teal{background:#f0f5f5;color:#315550;border-color:#b6cdcb;}
:root[data-theme="light"] .tool-card p{color:#363f4b;}
:root[data-theme="light"] .card-arrow{color:#38485d;}
:root[data-theme="light"] .btn,:root[data-theme="light"] .tab{border-color:#b2bac6;background:#eef0f3;box-shadow:inset 0 1px #26344c22;}
:root[data-theme="light"] .btn.primary{background:#d5dfeb;border-color:#6a8aae;color:#242424;}
:root[data-theme="light"] .btn.danger{background:#f4f1f3;}
:root[data-theme="light"] .tab.active{color:#0f2747;background:#e7ecf2;border-color:#a0b0c4;box-shadow:inset 0 -2px #26344c33;}
:root[data-theme="light"] .field input,:root[data-theme="light"] .field textarea,:root[data-theme="light"] .field select,:root[data-theme="light"] .search-input{border-color:#b6bdc9;background:#f7f8fa;box-shadow:inset 0 1px 2px #26344c22;}
:root[data-theme="light"] .field input:focus,:root[data-theme="light"] .field textarea:focus,:root[data-theme="light"] .field select:focus{border-color:#5985bf;outline:2px solid #a5b7cd;}
:root[data-theme="light"] .field:focus-within{color:#112c4f;}
:root[data-theme="light"] summary::before{color:#203c5f;}
:root[data-theme="light"] .error{border-left:3px solid #ba5f6c;background:#f5f2f4;}
:root[data-theme="light"] .connection-notice{border-left:3px solid #b19468;}
:root[data-theme="light"] .empty{border:1px dashed #b7bfcc;background:#f5f7f9;}
:root[data-theme="light"] .empty h3{color:#293646;}
:root[data-theme="light"] .progress-line{background:#eaedf1;}
:root[data-theme="light"] .progress-line span{background:#6a98d2;}
:root[data-theme="light"] .job-row{border-bottom-color:#bcc4cf;}
:root[data-theme="light"] .job-row > .tool-icon{color:#233c5e;}
:root[data-theme="light"] .job-meta{color:#37414d;}
:root[data-theme="light"] .job-title{color:#1e2d41;}
:root[data-theme="light"] .service-row > .tool-icon{border:1px solid #b2bcca;background:#edf0f5;color:#1a365c;}
:root[data-theme="light"] .capabilities .badge{background:#f0f3f6;color:#24374c;}
:root[data-theme="light"] .usage-table th{background:#eceff3;color:#223247;}
:root[data-theme="light"] .usage-table tbody tr:nth-child(even){background:#f2f4f7;}
:root[data-theme="light"] .chat-view .chat-panel{background:#f6f8fa;}
:root[data-theme="light"] .chat-view .chat-toolbar h1{color:#1e2f44;}
:root[data-theme="light"] .chat-view .composer{background:#f3f5f7;border-top-color:#b3bdcb;}
:root[data-theme="light"] .chat-view .composer textarea{background:#f6f8fa;}
:root[data-theme="light"] .chat-view .message{border-bottom-color:#bcc5d0;}
:root[data-theme="light"] .message-role::before{background:#d1d7de;}
:root[data-theme="light"] .assistant .message-role{color:#173259;}
:root[data-theme="light"] .assistant .message-role::before{background:#3972d5;}
:root[data-theme="light"] .code-block,:root[data-theme="light"] .gx-diff{border-color:#b1bac8;}
:root[data-theme="light"] .markdown-body blockquote{background:#f1f4f7;}
:root[data-theme="light"] .settings-popover,:root[data-theme="light"] .chat-view .history{border-color:#abb6c3;background:#f1f3f7;box-shadow:0 8px 20px #26344c22;}
:root[data-theme="light"] .gx-search{background:#f3f5f7;border-bottom-color:#b4becb;}
:root[data-theme="light"] .gx-search .gx-query:focus-within input{background:#f1f4f8;}
:root[data-theme="light"] .gx-results{background:#f5f7f9;}
:root[data-theme="light"] .gx-pane-heading,:root[data-theme="light"] .gx-list-filter{background:#f1f3f6;border-bottom-color:#b4becc;}
:root[data-theme="light"] .gx-repo-header{background:#f3f5f8;}
:root[data-theme="light"] .gx-repo-tabs{background:#f3f5f8;border-bottom-color:#b3bcca;}
:root[data-theme="light"] .gx-repo.selected,:root[data-theme="light"] .gx-discussion.selected{background:#eaeef4;border-left-color:#4285d7;}
:root[data-theme="light"] .gx-repo.selected strong,:root[data-theme="light"] .gx-discussion.selected strong{color:#0f2845;}
:root[data-theme="light"] .gx-content,:root[data-theme="light"] .gx-thread{background:#f6f7f9;}
:root[data-theme="light"] .gx-document-heading{background:#f2f4f7;border-bottom-color:#b4bfce;}
:root[data-theme="light"] .gx-thread-body{border:1px solid #b5bfcd;background:#f2f5f7;}
:root[data-theme="light"] .gx-comment{border:1px solid #b7c0ce;background:#f3f5f8;}
:root[data-theme="light"] .gh-table th{background:#eceff3;color:#223247;}
:root[data-theme="light"] .gh-table th,:root[data-theme="light"] .gh-table td{border-color:#b6becc;}
:root[data-theme="light"] .gh-table tbody tr:nth-child(even){background:#f1f3f6;}
:root[data-theme="light"] .gh-cache{border-bottom:1px solid #b8c2cf;}
:root[data-theme="light"] .login-panel{border-color:#adb9c9;box-shadow:0 8px 24px #26344c22;}
:root[data-theme="light"] #toast{border-color:#7689a2;background:#e9edf2;box-shadow:0 4px 16px #26344c22;}
@media (prefers-reduced-motion: no-preference){:root[data-theme="light"] form[aria-busy="true"] button[type="submit"]::before,:root[data-theme="light"] #gx-search button[type="submit"]:disabled::before{border:2px solid #8c8c8c40;}
}
@media (hover: hover){:root[data-theme="light"] .btn:not(:disabled):hover{background:#e6eaef;border-color:#7789a1;}
:root[data-theme="light"] .btn.primary:not(:disabled):hover{background:#294588;border-color:#294588;color:#fff;}
:root[data-theme="light"] .tool-card:hover{border-color:#7689a2;}
:root[data-theme="light"] .tab:hover,:root[data-theme="light"] summary:hover{background:#e9ecf2;}
:root[data-theme="light"] .nav-link:hover{background:#eceff4;}
:root[data-theme="light"] .gx-repo:hover,:root[data-theme="light"] .gx-discussion:hover{background:#ecf0f4;}
:root[data-theme="light"] .gx-repo.selected:hover,:root[data-theme="light"] .gx-discussion.selected:hover{background:#e5eaf1;}
:root[data-theme="light"] .gh-table tbody tr:hover{background:#e9edf3;}
}
:root[data-theme="light"] .gx-filters summary{border:1px solid #b2bac6;background:#eef0f3;}
:root[data-theme="light"] .gx-filter-fields{border:1px solid #abb6c3;background:#f1f3f7;box-shadow:0 8px 20px #26344c22;}
:root[data-theme="light"] .catgpt-workspace{background:#f7f9fa;}
:root[data-theme="light"] .catgpt-sidebar{border-right:1px solid #b9c2cf;background:#f4f6f9;}
:root[data-theme="light"] .catgpt-sidebar-head strong{color:#122844;}
:root[data-theme="light"] .catgpt-sidebar-head span{color:#414a56;}
:root[data-theme="light"] .catgpt-back{color:#1a375b;}
:root[data-theme="light"] .catgpt-back:hover{color:#242424;}
:root[data-theme="light"] .catgpt-search{border:1px solid #b4bdca;background:#f6f8fa;color:#374658;}
:root[data-theme="light"] .catgpt-search input{color:#1e2a3b;}
:root[data-theme="light"] .catgpt-search:focus-within{border-color:#5985bf;outline:2px solid #a5b7cd;}
:root[data-theme="light"] .catgpt-section-heading{color:#36414e;}
:root[data-theme="light"] .catgpt-icon-button{color:#1a375b;}
:root[data-theme="light"] .catgpt-icon-button:hover{border-color:#a8b5c3;background:#ebeff4;}
:root[data-theme="light"] .catgpt-nav-item,:root[data-theme="light"] .catgpt-chat-item{color:#2f3a47;}
:root[data-theme="light"] .catgpt-nav-item svg{color:#283f5b;}
:root[data-theme="light"] .catgpt-nav-item small{color:#464f5c;}
:root[data-theme="light"] .catgpt-nav-item:hover,:root[data-theme="light"] .catgpt-chat-item:hover{border-color:#aebac9;background:#eef2f6;color:#0e2544;}
:root[data-theme="light"] .catgpt-nav-item.active,:root[data-theme="light"] .catgpt-chat-item.active{border-color:#a3b3c7;background:#e7edf3;color:#0e2541;}
:root[data-theme="light"] .catgpt-chat-item small{color:#444f5b;}
:root[data-theme="light"] .catgpt-count{color:#444f5b;}
:root[data-theme="light"] .catgpt-sidebar-error{color:#551212;}
:root[data-theme="light"] .catgpt-secondary-nav a{color:#384350;}
:root[data-theme="light"] .catgpt-secondary-nav a:hover{background:#eef2f6;color:#0e2544;}
:root[data-theme="light"] .catgpt-secondary-nav svg{color:#31445d;}
:root[data-theme="light"] .catgpt-header{border-bottom:1px solid #b8c2cf;background:#f4f6f8;}
:root[data-theme="light"] .catgpt-header-title strong{color:#0f2545;}
:root[data-theme="light"] .catgpt-header-title span{color:#3e4956;}
:root[data-theme="light"] .catgpt-mobile-menu{border:1px solid #afbac9;background:#edf1f5;color:#0f2747;}
@media (max-width: 720px){:root[data-theme="light"] .catgpt-sidebar{box-shadow:10px 0 30px #26344c22;}
}
:root[data-theme="light"] .account-dialog{color:#282e37;background:#f6f7f8;border:1px solid #b8bdc6;box-shadow:0 24px 90px #26344c22;}
:root[data-theme="light"] .account-dialog::backdrop{background:#fbfcfdc4;}
:root[data-theme="light"] .account-editor-heading{border-bottom:1px solid #bfc3cc;background:#f4f5f7;}
:root[data-theme="light"] .account-editor-heading p{color:#383f4b;}
:root[data-theme="light"] .account-role{border:1px solid #bbc1ca;background:#f4f5f7;}
:root[data-theme="light"] .account-role input{accent-color:#131d5a;}
:root[data-theme="light"] .account-role small{color:#3d434e;}
:root[data-theme="light"] .account-role:has(:checked){background:#ebecf2;border-color:#5c6ebd;}
:root[data-theme="light"] .account-role:has(:focus-visible),:root[data-theme="light"] .account-feature:has(:focus-visible){outline:2px solid #425ed7;}
:root[data-theme="light"] .account-access-heading .badge{color:#111c51;border-color:#b0b6c9;}
:root[data-theme="light"] .account-presets .btn{background:#f1f2f5;border-color:#b8bdc7;}
:root[data-theme="light"] .account-permissions legend{color:#3f4651;}
:root[data-theme="light"] .account-feature{border:1px solid #bdc2cc;background:#f4f5f7;}
:root[data-theme="light"] .account-feature input{accent-color:#131d5a;}
:root[data-theme="light"] .account-feature strong{color:#282f3c;}
:root[data-theme="light"] .account-feature small{color:#414853;}
:root[data-theme="light"] .account-feature-state{background:#e4e5e8;}
:root[data-theme="light"] .account-feature:has(:checked){background:#eef0f4;border-color:#a6afc4;}
:root[data-theme="light"] .account-feature:has(:checked) .account-feature-state{background:#2a4ec8;}
:root[data-theme="light"] .account-feature:hover{border-color:#7686a2;}
:root[data-theme="light"] .account-all-access{border:1px solid #aab2c6;background:#edeff4;}
:root[data-theme="light"] .account-all-access p{color:#343d4b;}
:root[data-theme="light"] .account-editor-footer{border-top:1px solid #bac0cb;background:#f3f4f6;}
:root[data-theme="light"] .account-editor-footer>.help{color:#373d48;}
/* tool-hub-chat.css */
:root[data-theme="light"] .tool-chat{--chat-accent:#131e58;background:#f6f7f8;color:#2d3038;}
:root[data-theme="light"] .tool-chat-rooms{background:#f8f9fa;border-right:1px solid #c2c5cd;}
:root[data-theme="light"] .tool-chat-brand{border-bottom:1px solid #c2c6cf;}
:root[data-theme="light"] .tool-chat-brand>a{color:#121e55;}
:root[data-theme="light"] .tool-chat-brand>a span{color:#162569;}
:root[data-theme="light"] .tool-chat-brand small{color:#4e545d;}
:root[data-theme="light"] .tool-chat-icon-button{color:#393f4b;}
:root[data-theme="light"] .tool-chat-icon-button:hover{background:#eeeff2;color:#1b2036;}
:root[data-theme="light"] .tool-chat-search input{border:1px solid #bec3cd;background:#f4f5f7;}
:root[data-theme="light"] .tool-chat-browse>.btn{border-color:#b2b8c8;background:#ebedf2;color:#101d4d;}
:root[data-theme="light"] .tool-chat-filters button{color:#444b55;}
:root[data-theme="light"] .tool-chat-filters [aria-pressed=true]{color:#0f1848;background:#f0f1f5;border-bottom-color:#425ed7;}
:root[data-theme="light"] .tool-chat-room:hover{background:#f2f3f6;}
:root[data-theme="light"] .tool-chat-room.active{background:#eaecf2;border-color:#aeb6ca;}
:root[data-theme="light"] .tool-chat-avatar{background:#e9ebf0;color:#152450;}
:root[data-theme="light"] .tool-chat-room:nth-child(3n) .tool-chat-avatar{background:#ecf1f0;color:#2f4943;}
:root[data-theme="light"] .tool-chat-room:nth-child(3n+2) .tool-chat-avatar{background:#eceaef;color:#3d2b47;}
:root[data-theme="light"] .tool-chat-room-info>span{color:#3f4652;}
:root[data-theme="light"] .tool-chat-unread{background:#2742ba;color:#e6e9f3;}
:root[data-theme="light"] .tool-chat-identity{border-top:1px solid #c1c5ce;background:#f5f6f8;}
:root[data-theme="light"] .tool-chat-identity small{color:#404854;}
:root[data-theme="light"] .tool-chat-identity:hover{background:#f0f2f5;}
:root[data-theme="light"] .tool-chat-conversation{background:#f5f6f8;}
:root[data-theme="light"] .tool-chat-top{border-bottom:1px solid #c0c4ce;background:#f6f6f8;}
:root[data-theme="light"] .tool-chat-room-header>.tool-chat-avatar{background:#edeef2;color:#2b3650;}
:root[data-theme="light"] .tool-chat-room-header p{color:#404752;}
:root[data-theme="light"] .tool-chat-connection{color:#373f4d;}
:root[data-theme="light"] .tool-chat-connection:before{background:#afb7c4;}
:root[data-theme="light"] .tool-chat-connection[data-live=true]:before{background:#9bc9b2;}
:root[data-theme="light"] .tool-chat-manage>summary{border:1px solid #b8bec8;background:#f1f2f5;}
:root[data-theme="light"] .tool-chat-manage[open]{border:1px solid #b0b7c5;background:#f1f3f6;box-shadow:0 15px 50px #26344c22;}
:root[data-theme="light"] .tool-chat-manage-row input,:root[data-theme="light"] .tool-chat-manage-row select{background:#f6f7fa;color:#252c37;border:1px solid #b4bbc7;}
:root[data-theme="light"] .tool-chat-manage-members>div{border-top:1px solid #bac1cd;}
:root[data-theme="light"] .tool-chat-empty-icon{background:#e9ebf0;color:#1a294d;}
:root[data-theme="light"] .tool-chat-room-start h2{color:#222839;}
:root[data-theme="light"] .tool-chat-room-start p{color:#3f4856;}
:root[data-theme="light"] .tool-chat-empty{color:#3a4351;}
:root[data-theme="light"] .tool-chat-empty h2{color:#1c253d;}
:root[data-theme="light"] .tool-chat-day{color:#424956;}
:root[data-theme="light"] .tool-chat-day:before,:root[data-theme="light"] .tool-chat-day:after{background:#eaecef;}
:root[data-theme="light"] .tool-chat-message:hover{background:#f2f3f5;}
:root[data-theme="light"] .tool-chat-message.mine>.tool-chat-avatar{background:#eaf1f0;color:#2b4c43;}
:root[data-theme="light"] .tool-chat-message-meta strong{color:#1e2748;}
:root[data-theme="light"] .tool-chat-message.mine .tool-chat-message-meta strong{color:#2e483d;}
:root[data-theme="light"] .tool-chat-message-meta time{color:#484f5c;}
:root[data-theme="light"] .tool-chat .tool-chat-text{color:#29303d;}
:root[data-theme="light"] .tool-chat-attachment{border:1px solid #b1b9c7;background:#eef0f4;color:#13274e;}
:root[data-theme="light"] .tool-chat-file-symbol{background:#e4e8ee;}
:root[data-theme="light"] .tool-chat-attachment small{color:#364254;}
:root[data-theme="light"] .tool-chat-attachment:hover{background:#e8ecf1;}
:root[data-theme="light"] .tool-chat-compose{background:#f5f6f8;}
:root[data-theme="light"] .tool-chat-input{border:1px solid #b2bac7;background:#edeff3;box-shadow:0 4px 16px #26344c22;}
:root[data-theme="light"] .tool-chat-input:focus-within{border-color:#667ab2;}
:root[data-theme="light"] .tool-chat-input textarea{color:#1d273a;}
:root[data-theme="light"] .tool-chat-input .tool-chat-icon-button{color:#23314c;}
:root[data-theme="light"] .tool-chat-send{background:#e8eaf1;color:#242424;}
:root[data-theme="light"] .tool-chat-send:hover{background:#294588;color:#fff;}
:root[data-theme="light"] .tool-chat-compose-hint{color:#474f5c;}
:root[data-theme="light"] .tool-chat-file-chip{background:#eceef3;border:1px solid #a9b5c7;}
:root[data-theme="light"] .tool-chat-latest{background:#dbe1ec;border-color:#6d84ac;box-shadow:0 4px 15px #26344c22;}
:root[data-theme="light"] .tool-chat-new{color:#252c3c;background:#f3f4f7;border:1px solid #afb6c5;box-shadow:0 24px 90px #26344c22;}
:root[data-theme="light"] .tool-chat-new::backdrop{background:#f9fafcc9;}
:root[data-theme="light"] .tool-chat-new-tabs{background:#f6f7fa;border:1px solid #b8c0ce;}
:root[data-theme="light"] .tool-chat-new-tabs button{color:#384252;}
:root[data-theme="light"] .tool-chat-new-tabs [aria-pressed=true]{background:#e5e8ee;color:#0f2147;}
:root[data-theme="light"] .tool-chat-contact-list{border:1px solid #b4bdcd;}
:root[data-theme="light"] .tool-chat-contact{border-bottom:1px solid #b8c1d0;}
:root[data-theme="light"] .tool-chat-contact:has(:checked){background:#e7ebf0;}
:root[data-theme="light"] .tool-chat-contact input{accent-color:#131e58;}
@media (max-width:960px){:root[data-theme="light"] .tool-chat-rooms{box-shadow:20px 0 45px #26344c22;}
}
@media (max-width:960px){:root[data-theme="light"] .rooms-open .tool-chat-drawer-backdrop{background:#1e2d4b55;}
}
:root[data-theme="light"] .tool-chat-section h3{color:#3a414e;}
:root[data-theme="light"] .tool-chat-section .btn{color:#131e58;}
:root[data-theme="light"] .tool-chat-section .btn:hover{background:#ebedf2;}

:root[data-theme="light"]{color-scheme:light;color:#243044;background:#f6f8fb;--surface:#ffffff;--line:#c9d2df;--muted:#53647b;--accent:#3454ae}
:root[data-theme="light"] .tool-chat{--chat-accent:#3454ae}
:root[data-theme="light"] .sidebar,:root[data-theme="light"] .tool-chat-rooms{background:#f0f3f8}
:root[data-theme="light"] main,:root[data-theme="light"] .tool-chat-conversation{background:#f8fafd}
:root[data-theme="light"] .panel,:root[data-theme="light"] .tool-chat-top,:root[data-theme="light"] .gx-inspector{background:#fff}
:root[data-theme="light"] .btn.primary,:root[data-theme="light"] .tool-chat-send,:root[data-theme="light"] .tool-chat-compose [type=submit]{background:#3454a2;border-color:#3454a2;color:#fff}
:root[data-theme="light"] .account-dialog::backdrop,:root[data-theme="light"] .tool-chat-new::backdrop{background:#1e2d4b66}
:root[data-theme="light"] .tool-chat-drawer-backdrop{background:#1e2d4b55}
:root[data-theme="light"] ::selection{background:#c4d7ff;color:#192d56}

/* Preserve the dark theme's flat reading layout and Markdown hierarchy. */
:root[data-theme="light"] .chat-view .message {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
:root[data-theme="light"] .chat-view .empty { border: 0; background: transparent; }
:root[data-theme="light"] .markdown-body strong { color: inherit; }
:root[data-theme="light"] .markdown-body pre code { background: none; }
:root[data-theme="light"] .tool-chat-compose .tool-chat-send:not(:disabled):hover {
  background: #294588;
  border-color: #294588;
  color: #fff;
}
/* iPad Safari uses color-scheme for native controls as well as the page. */
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { color-scheme: light; }
:root[data-theme="light"] .theme-choice:has(:checked) { background: #edf2ff; }
