/* Shared native controls and complete light surfaces. */
:root{color-scheme:dark}
[data-theme="light"]{color-scheme:light;--bg:#f5f7fb;--bg-2:#fff;--txt:#17243a;--muted:#526179;--card:#fff;--glass:#edf2fa;--border:#d5deeb;--panel:#fff;--grad1:#0873c6;--grad2:#6848c9;--shadow:0 6px 24px rgba(23,46,82,.08)}
select option{background:var(--bg-2);color:var(--txt)}
.theme-choice{width:100%;font-size:12px;min-height:40px}
.sidebar.collapsed .theme-choice{display:none}
.auth-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.auth-tools a{color:var(--muted);text-decoration:none;font-size:13px}
.auth-tools button{min-height:40px;box-shadow:none}
.ai-cost-details{margin:0 0 16px;text-align:left;font-size:12px;line-height:1.5;color:var(--muted)}
.ai-cost-details>summary{cursor:pointer;padding:10px 0;min-height:40px}
.ai-cost-details[open]>summary{color:var(--txt)}
.ai-cost-details .qs-cost-note{margin-top:4px}
[data-theme="light"] body{background:radial-gradient(1000px 500px at 10% 0,rgba(40,132,214,.07),transparent 70%),var(--bg)}
[data-theme="light"] .bg-grid{opacity:.025}
[data-theme="light"] .bg-orb{opacity:.2}
[data-theme="light"] .sidebar{background:#fff;border-color:var(--border);backdrop-filter:none}
[data-theme="light"] .snav:hover{background:#edf3fc}
[data-theme="light"] .snav.active{background:#e7efff;color:#204e98}
[data-theme="light"] .card,[data-theme="light"] .form-card,[data-theme="light"] .auth-card{background:#fff}
[data-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=range]),
[data-theme="light"] textarea,[data-theme="light"] select{background:#f6f8fc;color:var(--txt);border-color:var(--border)}
[data-theme="light"] input::placeholder,[data-theme="light"] textarea::placeholder{color:#68778d;opacity:1}
[data-theme="light"] input:focus,[data-theme="light"] textarea:focus,[data-theme="light"] select:focus{border-color:#377fca;box-shadow:0 0 0 3px rgba(55,127,202,.12)}
[data-theme="light"] .btn:not(.primary){background:#fff;color:var(--txt);box-shadow:none}
[data-theme="light"] .btn.primary{color:#fff;background:linear-gradient(110deg,var(--grad1),var(--grad2))}
[data-theme="light"] .btn:hover{border-color:#8daace}
[data-theme="light"] .tg-dialog-wide,[data-theme="light"] .tg-chat-shell,[data-theme="light"] .tg-chat-list{background:#fff}
[data-theme="light"] .tg-list-head,[data-theme="light"] .tg-chat-main>.page-header{background:#fff;backdrop-filter:none}
[data-theme="light"] .tg-chat-main{background:#f5f7fb}
[data-theme="light"] .tg-chat-main .chat-header,[data-theme="light"] .tg-chat-main .composer{background:#fff;color:var(--txt);box-shadow:none}
[data-theme="light"] .tg-chat-main .bubble-author{color:#245b8d}
[data-theme="light"] .tg-chat-main .bubble-meta{color:#4b6375}
[data-theme="light"] .tg-safety-live{color:#805b0b;border-color:#d9bd79;background:#fff8e4}
[data-theme="light"] .tg-safety-test{color:#245c99;border-color:#abc6e7;background:#edf5ff}
[data-theme="light"] .tg-list-item:hover,[data-theme="light"] .chat-row:hover{background:#f1f5fc}
[data-theme="light"] .tg-list-item.active{background:#e8f0ff}
[data-theme="light"] .dialog-status-filter[aria-current="page"]{background:#e7f1ff;color:#154f91}
[data-theme="light"] .status.interested,[data-theme="light"] .status.deal,[data-theme="light"] .success{color:#17643d}
[data-theme="light"] .status.not_interested,[data-theme="light"] .chat-error{color:#a5273a}
[data-theme="light"] .table-wrap,[data-theme="light"] .table-card,[data-theme="light"] .qs-conversation{background:#fff}
[data-theme="light"] thead th{background:#eef3fb;color:#40516a}
[data-theme="light"] .task-dock-shell,[data-theme="light"] .task-entry{background:#fff}
[data-theme="light"] .task-error-notice,[data-theme="light"] .balance-chip[data-low="true"] .balance-amount{color:#8a5b04}
[data-theme="light"] .has-tooltip::after{background:#20324d;color:#fff}
[data-theme="light"] .qs-message p{background:#f2f5fa}
[data-theme="light"] .qs-message.buyer p{background:#e8f2ff}
[data-theme="light"] .qs-cost-note{background:#fff8e7;border-color:#e5ce93}
[data-theme="light"] a:not(.btn):not(.snav):not(.tg-list-item):not(.brand):not(.shell-brand):not(.dialog-status-filter){text-decoration-color:currentColor}
