:root{--brand-on-primary:#fff;--bg:var(--brand-bg);--panel:#fff;--panel2:color-mix(in srgb,var(--brand-bg) 58%,white);--ink:var(--brand-dark);--muted:color-mix(in srgb,var(--brand-dark) 65%,#8e9c9a);--line:color-mix(in srgb,var(--brand-primary) 17%,#e7eeeb);--nav:var(--brand-dark);--nav2:color-mix(in srgb,var(--brand-dark) 75%,var(--brand-primary));--accent:var(--brand-primary);--accent2:color-mix(in srgb,var(--brand-primary) 77%,white);--theme-tint:color-mix(in srgb,var(--brand-primary) 9%,var(--panel));--theme-soft:color-mix(in srgb,var(--brand-primary) 4%,var(--panel));--theme-hover:color-mix(in srgb,var(--brand-primary) 13%,var(--panel));--theme-outline:color-mix(in srgb,var(--brand-primary) 39%,var(--line));--shadow:0 12px 36px color-mix(in srgb,var(--brand-dark) 9%,transparent)}:root[data-effective-theme=dark]{--bg:color-mix(in srgb,var(--brand-dark) 49%,#090e11);--panel:color-mix(in srgb,var(--brand-dark) 48%,#192528);--panel2:color-mix(in srgb,var(--brand-dark) 42%,#263236);--ink:#edf5f2;--muted:#b0c5c1;--line:color-mix(in srgb,var(--brand-primary) 25%,#33484b);--nav:color-mix(in srgb,var(--brand-dark) 65%,#070c0f);--nav2:color-mix(in srgb,var(--brand-dark) 70%,#183034);--accent:color-mix(in srgb,var(--brand-primary) 64%,#b4f2d8);--accent2:color-mix(in srgb,var(--brand-primary) 72%,#a5cfbd);--theme-tint:color-mix(in srgb,var(--brand-primary) 18%,var(--panel));--theme-soft:color-mix(in srgb,var(--brand-primary) 8%,var(--panel));--theme-hover:color-mix(in srgb,var(--brand-primary) 24%,var(--panel));--theme-outline:color-mix(in srgb,var(--brand-primary) 50%,#678b8b);--shadow:0 12px 32px #00000036}html,body{background:var(--bg);color:var(--ink)}:where(.card,.list-row,.knowledge-row,.report-card,.agent-card,.modal,.settings-compact-row){border-color:var(--line)}.btn.primary{background:var(--brand-primary);color:var(--brand-on-primary);border-color:#0000}.btn.primary:hover:not(:disabled){background:color-mix(in srgb,var(--brand-primary) 88%,var(--brand-on-primary))}.btn:focus-visible,.tab:focus-visible,.nav-link:focus-visible,.icon-btn:focus-visible{outline:2px solid var(--theme-outline);outline-offset:3px}.tab.active{color:var(--brand-on-primary)}.bottom-link.active,.kpi-icon,.agent-avatar{color:var(--accent)}.tab:hover:not(.active),.list-row:hover,.knowledge-row:hover{background:var(--theme-soft)}.nav-link.active{background:linear-gradient(90deg,var(--brand-primary),color-mix(in srgb,var(--brand-primary) 45%,transparent));box-shadow:inset 3px 0 var(--brand-accent);color:var(--brand-on-primary)}.sidebar{background:linear-gradient(180deg,var(--nav),var(--nav2) 75%,var(--nav));color:#eaf4f2}.topbar{background:color-mix(in srgb,var(--bg) 91%,transparent);border-bottom:1px solid var(--line)}.brand-mark,.director-orb{background:linear-gradient(135deg,var(--brand-primary),var(--accent2));color:var(--brand-on-primary)}.progress>i{background:linear-gradient(90deg,var(--brand-primary),var(--accent2))}.kpi-icon,.agent-avatar,.cal-item,.bottom-link.active,.mode-pill{background:var(--theme-tint)}.bottom-link.active{color:var(--accent)}.field :is(input,textarea,select):focus-visible{border-color:var(--theme-outline);box-shadow:0 0 0 3px var(--theme-tint)}:root[data-effective-theme=light] .theme-logo-light{display:block}:root[data-effective-theme=light] .theme-logo-dark,:root[data-effective-theme=dark] .theme-logo-light{display:none}:root[data-effective-theme=dark] .theme-logo-dark{display:block}:root[data-effective-theme=dark] .sidebar .theme-logo-light{display:none}:root[data-effective-theme=dark] :is(.card,.list-row,.knowledge-row,.brand-slot,.agent-identity-card,.connection-group,.modal,.table tr,.report-card,.alert-row,.day,.provider-card){background:var(--panel);color:var(--ink);border-color:var(--line)}:root[data-effective-theme=dark] :is(.topbar,.bottom-nav,.main-shell,.page-wrap,.app-footer){color:var(--ink)}:root[data-effective-theme=dark] .bottom-nav{background:color-mix(in srgb,var(--panel) 94%,transparent);border-top-color:var(--line)}:root[data-effective-theme=dark] .bottom-link{color:var(--muted)}:root[data-effective-theme=dark] .bottom-link.active{color:var(--accent);background:var(--theme-tint)}:root[data-effective-theme=dark] :is(.field input,.field textarea,.field select,.chat-compose textarea,.command-input input,.command-input textarea,.brain-toolbar input,.brain-toolbar select,.search-box input,.table input,.table select){background:var(--panel2);color:var(--ink);border-color:var(--line)}:root[data-effective-theme=dark] :is(.field input,.field textarea,.field select,.chat-compose textarea,.command-input input,.command-input textarea)::placeholder{color:var(--muted);opacity:.78}:root[data-effective-theme=dark] :is(.chat-stream,.chat-compose,.chat-head,.command-input,.connection-facts){background:var(--panel);border-color:var(--line);color:var(--ink)}:root[data-effective-theme=dark] :is(.table th,.table td,.list-row,.knowledge-row,.card,.modal,.app-footer){border-color:var(--line)}:root[data-effective-theme=dark] :is(.btn,.icon-btn,.tab){color:var(--ink)}:root[data-effective-theme=dark] .btn{background:var(--panel2);border-color:var(--line)}:root[data-effective-theme=dark] .btn.primary{background:var(--brand-primary);color:var(--brand-on-primary);border-color:#0000}:root[data-effective-theme=dark] .btn:not(.primary):hover{background:var(--theme-hover)}:root[data-effective-theme=dark] :is(.status.gray,.mode-pill){background:var(--theme-tint);color:var(--ink)}:root[data-effective-theme=dark] .status.green{color:#a2f0cb;background:#163f32}:root[data-effective-theme=dark] .status.red{color:#ffc3cc;background:#4a2832}:root[data-effective-theme=dark] .status.amber{color:#ffe09b;background:#4b3721}:root[data-effective-theme=dark] .status.blue{color:#b6dbfa;background:#233c51}:root[data-effective-theme=dark] .table tbody tr{background:var(--panel)}:root[data-effective-theme=dark] :is(.list-row:hover,.knowledge-row:hover,.day:hover,.bottom-link:hover){background:var(--theme-hover)}:root[data-effective-theme=dark] .brand-slot-preview{background:var(--panel2);border-color:var(--line)}:root[data-effective-theme=dark] .brand-slot.dark-preview .brand-slot-preview{background:var(--brand-dark)}:root[data-effective-theme=dark] .connection-group-heading{background:var(--panel2)}:root[data-effective-theme=dark] :is(.connection-directory-row,.connection-directory-detail){border-color:var(--line)}:root[data-effective-theme=dark] :is(.connection-directory-row:hover,.connection-directory-item.is-expanded>.connection-directory-row){background:var(--theme-hover)}:root[data-effective-theme=dark] :is(.connection-chat-primary select,.connection-facts,.connection-directory-detail input,.connection-directory-detail textarea,.connection-directory-detail select){background:var(--panel2);color:var(--ink);border-color:var(--line)}:root[data-effective-theme=dark] .command-card{background:linear-gradient(115deg,var(--brand-dark),var(--nav2))}:root[data-effective-theme=dark] :is(.login-card,.login-form,.profile-card){background:var(--panel);color:var(--ink)}@media (prefers-reduced-motion:reduce){html,body{scroll-behavior:auto}}:root[data-effective-theme=dark] :is(.notice,.agent-card,.agent-purpose,.agent-capability-strip,.agent-runtime-status,.history-card,.knowledge-list,.knowledge-head,.meta-oauth-card,.meta-page-list>button,.meta-login-note,.more-sheet,.more-item,.nadia-brief,.daily-progress-hero,.daily-command,.daily-agent-card,.daily-count,.content-card,.qc-summary,.qc-reason-list li,.agent-identity-card,.agent-locked-runtime,.login-panel,.login-box,.help-modal,.brain-hero){background:var(--panel);color:var(--ink);border-color:var(--line)}:root[data-effective-theme=dark] :is(.notice.error,.qc-summary.failed){color:#ffcbd1;background:#43242c;border-color:#76444c}:root[data-effective-theme=dark] :is(.qc-summary.passed,.meta-oauth-card.connected){background:var(--theme-tint);color:var(--ink);border-color:var(--line)}:root[data-effective-theme=dark] :is(.more-item:hover,.more-item.active,.history-card:hover,.meta-page-list>button:hover,.agent-identity-card:hover){background:var(--theme-hover)}:root[data-effective-theme=dark] :is(.brain-toolbar input,.brain-toolbar select,.daily-command input,.daily-command .dashboard-command-input,.radar-filters button,.agent-report-filters button){color:var(--ink);background:var(--panel2);border-color:var(--line)}:root[data-effective-theme=dark] :is(.meta-login-note,.connection-facts,.agent-locked-runtime,.agent-purpose){color:var(--muted)}:root[data-effective-theme=dark] :is(.help-modal .card-head,.meta-oauth-card,.agent-capability-strip,.agent-locked-runtime,.more-sheet,.history-card){border-color:var(--line)}:root[data-effective-theme=dark] :is(.brain-hero,.daily-progress-hero){box-shadow:var(--shadow)}:root[data-effective-theme=dark] :is(.tab,.more-item,.radar-filters button,.agent-report-filters button){color:var(--muted)}:root[data-effective-theme=dark] :is(.tab.active,.radar-filters button.active,.agent-report-filters button.active){color:var(--brand-on-primary);background:var(--brand-primary)}:root[data-effective-theme=dark] :is(.msg.assistant,.message-files span,.attachment-tray>span){background:var(--panel2);color:var(--ink)}:root[data-effective-theme=dark] :is(.connection-directory-status.configured,.connection-directory-status.partial){background:var(--theme-tint);color:var(--ink)}.connection-directory-row:hover,.connection-directory-item.is-expanded>.connection-directory-row{box-shadow:inset 3px 0 var(--brand-primary)}:root[data-effective-theme=dark] .profile-brand-logo{background:var(--panel2)}@media (max-width:960px){:root[data-effective-theme=dark] .table tr{background:var(--panel)}}
