/* Theme overrides live here so light mode remains independently reversible. */
.appearance-card{grid-column:1/-1;padding:28px}.appearance-card h2{margin:0}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border:0;padding:0;margin:22px 0}.theme-options legend{font-weight:700;margin-bottom:12px}.theme-option{position:relative;display:grid;gap:8px;padding:18px;border:2px solid #aec3d0;border-radius:16px;cursor:pointer;background:#f3f7fa}.theme-option input{position:absolute;top:16px;right:16px;accent-color:#087e9f;width:18px;height:18px}.theme-option:has(input:checked){border-color:#087e9f;box-shadow:0 0 0 2px #087e9f22}.theme-option:focus-within{outline:3px solid #087e9f;outline-offset:3px}.theme-option small{color:#536879}.theme-swatch{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:90px;padding:9px;border-radius:10px;background:#e1ecf2}.theme-swatch i{height:13px;background:#fff;border-radius:3px}.theme-swatch i:first-child{grid-column:1/-1;background:#1389aa}.swatch-dark{background:#0b1422}.swatch-dark i{background:#263d52}.swatch-dark i:first-child{background:#52d5df}.swatch-system{background:linear-gradient(90deg,#e1ecf2 50%,#0b1422 50%)}
html[data-theme=dark]{color-scheme:dark;--r-ink:#e4edf5;--r-muted:#a9bacb;--r-blue:#70dce7;--r-blue-bright:#52d5df;--r-blue-pale:#18384b;--r-line:#30455c;--r-glass:#142235;--r-shadow:0 12px 38px #0003;--muted:#a9bacb;--border:#3d536b;--line:#30455c;--ink:#e4edf5;--text:#e4edf5;--surface:#142235;--accent:#70dce7;background:#0b1422;color:#e4edf5;scrollbar-color:#536e86 #0b1422}
html[data-theme=dark] body{color:#e4edf5;background:radial-gradient(ellipse at 5% 0%,#15314499,transparent 45rem),radial-gradient(ellipse at 95% 20%,#25264066,transparent 40rem),#0b1422}
html[data-theme=dark] body::before{opacity:.12}
html[data-theme=dark] :is(h1,h2,h3,h4,strong,dt,dd,label,legend,table){color:#e4edf5}
html[data-theme=dark] :is(.muted,small,.page-heading p,.detail-heading p,.account-profile>p,.workspace-card p,.widget-note,.widget-status){color:#a9bacb}
html[data-theme=dark] a{color:#83dfeb}
html[data-theme=dark] .eyebrow{color:#70dce7!important}
html[data-theme=dark] .topbar{background:#0e1b2deb;border-color:#30455c;box-shadow:0 8px 28px #0003}
html[data-theme=dark] :is(.brand,.topbar nav a,.account a){color:#d6e6f1}
html[data-theme=dark] :is(.topbar nav a:hover,.account a:hover){color:#83edf4}
html[data-theme=dark] :is(.card,.widget-picker,.widget-drag-ghost,.login-card){background:#142235;color:#e4edf5;border-color:#30455c;box-shadow:var(--r-shadow)}
html[data-theme=dark] :is(input,select,textarea,.account-page-grid .password-card input:not([type=hidden])){background:#0d1a2b!important;color:#edf5fc!important;border-color:#627d96!important;box-shadow:inset 0 1px 3px #0002}
html[data-theme=dark] :is(input,select,textarea)::placeholder{color:#a3b7c9;opacity:1}
html[data-theme=dark] :is(input,select,textarea):focus{border-color:#70dce7!important;outline:2px solid #70dce7!important;outline-offset:2px}
html[data-theme=dark] :is(input,select,textarea).input-validation-error{border-color:#ff9b9b!important}
html[data-theme=dark] :is(input[type=checkbox],input[type=radio]){accent-color:#52d5df}
html[data-theme=dark] option{background:#142235;color:#edf5fc}
html[data-theme=dark] :is(.primary,.primary-button,.button){background:linear-gradient(120deg,#52d5df,#78bfe9);color:#082332;border-color:#6bd9e6;box-shadow:0 5px 18px #28a9ba20;font-weight:750}
html[data-theme=dark] :is(.secondary,.secondary-button,.secondary-link,.copy-button,.retry-button,.widget-catalog button,.menu-toggle,.link-button){background:#20344a;color:#d5ecf7!important;border-color:#526d85;box-shadow:none}
html[data-theme=dark] :is(.secondary:hover,.secondary-button:hover,.widget-catalog button:hover,.link-button:hover){background:#2b465f}
html[data-theme=dark] :is(.danger-button,.reset-data-button){background:#932e37;color:#fff!important;border-color:#e97980}
html[data-theme=dark] :is(.widget-handle,.config-list article,th,td,.job-row,.account-profile dl div){border-color:#30455c}
html[data-theme=dark] :is(th,.jobs-head,.filter-panel,.compact-filters,.theme-option,.role-option,.widget-workspace,.seller-stat,.performance-preview,.revenue-empty,.tt-chat-composer,.tt-chat-message.user,.tt-chat-progress,.live-message,.search-form,.notification-menu,.notification-dropdown){background:#1b2e43;color:#d6e6f1;border-color:#3d536b}
html[data-theme=dark] :is(tbody tr:hover,.call-row:hover,.mini-call-list>a:hover,.search-results section>a:hover){background:#20384e}
html[data-theme=dark] :is(.metric strong,.seller-stat strong,.widget-workspace h3,.config-list strong,.job-row a,.theme-option strong){color:#edf5fc}
html[data-theme=dark] :is(.theme-option small,.config-list small,.config-list article>b,.job-row small,.live-instant small,.live-chat>small){color:#afc1d2}
html[data-theme=dark] .theme-option:has(input:checked){border-color:#70dce7;background:#1d3b4c;box-shadow:0 0 0 2px #70dce722}
html[data-theme=dark] :is(.badge,.status,.role-list span,.profile-avatar,.file-icon,.processing-symbol){background:#234055;color:#bbebf4;border-color:#3e627c}
html[data-theme=dark] :is(.status-ready,.health-pill.healthy,.notice-success,.account-status.active){background:#163e36;color:#a0ecd1;border-color:#3d806b}
html[data-theme=dark] :is(.status-failed,.notice-error,.tt-chat-message.error,.job-row details,.account-status.inactive){background:#422631;color:#ffc0bd;border-color:#88515c}
html[data-theme=dark] :is(.status-working,.notice,.status-queued){background:#20374e;color:#c7e4f7;border-color:#46627c}
html[data-theme=dark] :is(.health-pill.incomplete,.worker-warning){background:#413522;color:#f8da9b;border-color:#8d7446}
html[data-theme=dark] :is(.validation,.validation-summary,.field-validation-error,.password-card form>span){color:#ffb1ae}
html[data-theme=dark] :is(.progress,.quality-progress,.widget-data-bar,.coverage-bar>i,.queue-eta-bar){background:#2c4158}
html[data-theme=dark] :is(.widget-data-bar i,.chart-bars i,.queue-eta-bar-fill){background:linear-gradient(90deg,#329caf,#70dce7)}
html[data-theme=dark] .queue-eta-bar-fill.issue{background:linear-gradient(90deg,#c9473a,#f0897a)}
html[data-theme=dark] :is(.comparison-legend button,.widget-remove,.widget-duplicate,.icon-button){color:#caddeb;border-color:#526d85}
html[data-theme=dark] .comparison-legend button[aria-pressed=false]{opacity:.65}
html[data-theme=dark] .widget-line-graph text{fill:#b8ccdc}
html[data-theme=dark] .widget-chart svg path[stroke="#d8e3eb"],html[data-theme=dark] .widget-chart svg path[stroke="#c3d4df"]{stroke:#3d536b}
html[data-theme=dark] .widget-chart svg path[stroke^="hsl"],html[data-theme=dark] .widget-chart svg circle[stroke^="hsl"]{filter:none}
html[data-theme=dark] .widget-chart svg circle[fill=white]{fill:#142235}
html[data-theme=dark] .tt-chat-composer textarea{background:transparent!important;box-shadow:none}
html[data-theme=dark] .tt-chat-composer button{color:#082332}
html[data-theme=dark] .topbar #main-navigation a.live-coach-nav{background:linear-gradient(#30243b,#30243b) padding-box,linear-gradient(115deg,#ff82bc,#bba0ff,#71dce2,#ffe0a0) border-box;color:#ffc1e2}
html[data-theme=dark] :is(.live-instant,.live-suggestion-bar.card){background:linear-gradient(115deg,#2b2239,#1c2c43);border-color:#654b75}
html[data-theme=dark] :is(.live-message.user,.live-check label:has(input:checked),.live-badge){background:#392842;color:#ffd0e9;border-color:#a46b9b}
html[data-theme=dark] #live-status{color:#f7b9dc}
html[data-theme=dark] :is(.login-shell,.login-panel){background:#0b1422}
html[data-theme=dark] .login-intro{background:radial-gradient(circle at 35% 35%,#1d637055,transparent 24rem),#142235;color:#e4edf5}
html[data-theme=dark] .login-intro h1{color:#edf5fc}
html[data-theme=dark] .login-intro p:not(.eyebrow){color:#b6cbdc}
html[data-theme=dark] :is(pre,code){background:#0d1a2b;color:#b9e9f1;border-color:#30455c}
html[data-theme=dark] ::selection{background:#33788d;color:#fff}
html[data-theme=dark] ::-webkit-scrollbar-track{background:#0b1422}
html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#536e86;border-color:#0b1422}
html[data-theme=dark] :focus-visible{outline:2px solid #70dce7;outline-offset:3px}
@media(max-width:600px){.theme-options{grid-template-columns:1fr}.theme-option{grid-template-columns:100px 1fr;padding-right:46px}.theme-swatch{grid-row:1/3}.appearance-card{padding:20px}}
@media print{html[data-theme=dark] body{background:white;color:black}html[data-theme=dark] .card{background:white;color:black;box-shadow:none}}

html[data-theme=dark]{--seller-line-lightness:68%}
html[data-theme=dark] :is(.transcript,.transcript p,.call-main span,.call-date span,.stat span,.result-count span,.filter-panel label,.filter-actions a,.pagination span,.metadata dt,.conversation-metrics span,.processing-state p){color:#b9ccdc}
html[data-theme=dark] :is(.conversation-metrics article,.inline-empty,.transcript-segment,.transcript-turn,.speaker-turn,.score-card,.current-prompt,.version-upgrade,.live-edit-field,.revenue-periods button){background:#1b2e43;color:#d6e6f1;border-color:#3d536b}
html[data-theme=dark] :is(.notice-error,.notice.notice-error){background:#422631;color:#ffc0bd;border-color:#88515c}
html[data-theme=dark] :is(.notice-success,.notice.notice-success){background:#163e36;color:#a0ecd1;border-color:#3d806b}
html[data-theme=dark] :is(.notice-info,.notice.notice-info){background:#1c3348;color:#bcdcf5;border-color:#3e6a92}
html[data-theme=dark] .theme-option strong{color:#edf5fc}
html[data-theme=dark] .theme-option small{color:#afc1d2}
html[data-theme=dark] :is(.audit-head,.team-table-head,.coach-action-head,.conversation-trend-head,.campaign-head,.review-head,.period-comparison-head,.retention-head,.seller-comparison-head,.seller-time-head){background:#1b2e43;color:#afc1d2;border-color:#30455c}
html[data-theme=dark] :is(.attention-reason,.audit-action,.seller-identity i,.theme-grid article>span,.action-summary span,.count-badge,.talk-ratio,.engagement-value,.briefing-list article,.health-endpoints dl>div,.alert-summary span,.outcome-cards article,.retention-preview,.opportunity-grid article,.opportunity-grid blockquote,.seller-outcome-counts article,.view-chat-message,.plan-person>span,.worker-monitor-heading>strong,.view-chat-prompts button,.view-chat .secondary-button){background:#1d3045;color:#d4e5f2;border-color:#3d536b}
html[data-theme=dark] :is(.theme-progress,.score-cell>i,.campaign-row>div>i,.coverage-bar){background:#2c4158}
html[data-theme=dark] :is(.view-chat-message.user,.role-option:has(input:checked)){background:#1c3e4e;border-color:#70dce7;color:#d5f3f7}
html[data-theme=dark] :is(.strength-title>span,.executive-theme-list article.strength>span,.goal-value.goal-ok,.outcome-cards .accepted,.comparison-change.positive,.potential-score.high,.seller-priority.stable,.worker-monitor.online .worker-monitor-heading>strong){background:#163e36;color:#a0ecd1}
html[data-theme=dark] :is(.improve-title>span,.executive-theme-list article.improvement>span,.goal-value.goal-low,.goal-value.goal-high,.outcome-cards .followup,.outcome-cards .recoverable,.potential-score.medium,.seller-priority.attention,.seller-priority.opportunity,.pipeline-flow article.missing>span){background:#413522;color:#f8da9b}
html[data-theme=dark] :is(.low-score,.action-summary .overdue,.outcome-cards .declined,.comparison-change.negative,.potential-score.low,.seller-priority.urgent){background:#422631;color:#ffc0bd}
html[data-theme=dark] :is(.goal-value.goal-none,.comparison-change.neutral,.sync-preview button){background:#27384a;color:#b5c5d4}
html[data-theme=dark] .job-row details.processing-history{background:#172b3d;color:#cedeea}
html[data-theme=dark] :is(.campaign-list>a:hover,.attention-list>a:hover,.opportunity-list>a:hover,.personal-opportunities>a:hover){background:#20384e}
html[data-theme=dark] :is(.opportunity-list>a>b,.personal-opportunities>a>b){background:#234055;color:#bbebf4}
.appearance-card .primary-button,.password-card .primary-button{padding:12px 22px;font:inherit;font-weight:700;cursor:pointer}
.appearance-compact{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px}.appearance-label{font-size:.85rem;color:var(--r-muted)}.appearance-compact #theme-save-status{font-size:.75rem}.theme-slider{display:flex;gap:2px;margin:0;padding:3px;border:1px solid #a9bfcd;border-radius:999px;background:#e7eff4}.theme-slider label{position:relative;cursor:pointer}.theme-slider input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.theme-slider span{display:block;padding:6px 13px;border-radius:999px;font-size:.8rem;font-weight:600;line-height:1.3;color:#425d70;transition:background .15s,color .15s,box-shadow .15s}.theme-slider input:checked+span{background:#fff;color:#12566d;box-shadow:0 1px 5px #173f5226}.theme-slider input:focus-visible+span{outline:2px solid #087e9f;outline-offset:2px}html[data-theme=dark] .theme-slider{background:#0d1a2b;border-color:#526d85}html[data-theme=dark] .theme-slider span{color:#afc1d2}html[data-theme=dark] .theme-slider input:checked+span{background:#28495b;color:#d3f8fa;box-shadow:0 1px 5px #0003}html[data-theme=dark] .theme-slider input:focus-visible+span{outline-color:#70dce7}@media(prefers-reduced-motion:reduce){.theme-slider span{transition:none}}

/* Management charts and inset surfaces must follow the selected theme. */
html[data-theme=dark] .daily-bars{border-color:#3a5068;background:repeating-linear-gradient(to bottom,#142235 0,#142235 calc(25% - 1px),#30455c 25%,#142235 calc(25% + 1px),#142235 50%)}
html[data-theme=dark] .daily-bars b{background:linear-gradient(#70dce7,#328ea7)}
html[data-theme=dark] .daily-bars i{background:#f4be63;box-shadow:0 0 0 2px #142235}
html[data-theme=dark] :is(.daily-bars span,.chart-legend,.ai-quality-note,.ai-quality-grid span,.calibration-head){color:#afc1d2}
html[data-theme=dark] .volume-key{background:#70dce7}
html[data-theme=dark] .score-key{background:#f4be63}
html[data-theme=dark] :is(.ai-quality-grid article,.calibration-head){background:#1b2e43;border-color:#30455c}
html[data-theme=dark] :is(.calibration-row,.campaign-row,.executive-theme-list article){border-color:#30455c}
html[data-theme=dark] :is(.quality-progress,.calibration-rate i,.campaign-row>div>i){background:#30455c}
html[data-theme=dark] :is(.quality-progress i,.calibration-rate em){background:#80aaff}
html[data-theme=dark] .campaign-row>div em{background:#70dce7}
html[data-theme=dark] .ai-quality-grid .pending strong{color:#f4be63}
html[data-theme=dark] :is(.ai-quality-grid .corrected strong,.calibration-row .has-corrections){color:#ffa3b5}
html[data-theme=dark] .executive-theme-list article.strength>span{background:#173d37;color:#8ce0b9}
html[data-theme=dark] .executive-theme-list article.improvement>span{background:#44361e;color:#f4ce86}
