/* Shared appearance. Bright uses real surface/text colors; media and documents keep their own colors. */
.appearance-settings .theme-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:0;margin:20px 0 0;padding:0;min-width:0}
.theme-legend {font-size:.85rem;font-weight:600;margin-bottom:10px;color:var(--k-muted)}
.theme-choice {position:relative;display:grid;gap:12px;margin:0;padding:12px;border:1px solid var(--k-line-strong);border-radius:14px;cursor:pointer;min-width:0;background:var(--k-surface-2);touch-action:manipulation}
.theme-choice:has(input:checked) {border-color:var(--k-accent);box-shadow:0 0 0 2px var(--k-accent-soft)}
.theme-choice:focus-within {outline:2px solid var(--k-accent);outline-offset:3px}
.theme-choice input {position:absolute;right:18px;top:18px;z-index:1;width:18px!important;height:18px;margin:0;accent-color:var(--k-accent)}
.theme-choice strong,.theme-choice small {display:block}.theme-choice strong {font-size:.9rem}.theme-choice small {margin-top:4px;color:var(--k-muted);font-weight:400;font-size:.76rem;line-height:1.5}
.theme-swatch {height:92px;display:block;position:relative;border-radius:8px;overflow:hidden;border:1px solid #7490b433}
.theme-swatch i {position:absolute;left:0;top:0;bottom:0;width:24%;border-right:1px solid #7490b433}
.theme-swatch b {position:absolute;left:32%;right:16%;top:24px;height:12px;border-radius:3px}
.theme-swatch em {position:absolute;left:32%;right:9%;top:47px;height:27px;border-radius:4px;border:1px solid #7490b433}
.theme-swatch-dark {background:#071625}.theme-swatch-dark i {background:#0e2335}.theme-swatch-dark b {background:#62d2f0}.theme-swatch-dark em {background:#183044}
.theme-swatch-light {background:#fff}.theme-swatch-light i {background:#edf5fc}.theme-swatch-light b {background:#0879c2}.theme-swatch-light em {background:#f2f7fc}
@media(max-width:420px){.appearance-settings .theme-options{gap:9px}.theme-choice{padding:9px}.theme-choice small{font-size:.73rem}.theme-swatch{height:80px}}

:root[data-theme="light"] {
  color-scheme:light;color:#152e46;background:#fff;
  --k-bg:#fff;--k-panel:#fff;--k-surface:#fff;--k-surface-2:#f2f7fc;--k-surface-3:#e5eff9;
  --k-line:#dce7f0;--k-line-strong:#bdcfdf;--k-text:#152e46;--k-muted:#506780;--k-faint:#60758c;
  --k-accent:#0879c2;--k-accent-hover:#0565a5;--k-accent-ink:#fff;--k-accent-soft:#e3f2fc;
  --k-warn:#94600c;--k-danger:#b52c43;--m-text:var(--k-text);--m-muted:var(--k-muted);--m-line:var(--k-line);
  --m-accent:var(--k-accent);--m-play:var(--k-accent);--m-warm:var(--k-accent);
  --bg:#fff;--surface:#fff;--text:var(--k-text);--muted:var(--k-muted);--line:var(--k-line);--border:var(--k-line);--accent:var(--k-accent);
}
html[data-theme="light"] body {background:radial-gradient(ellipse at 80% 0%,#eaf6ff 0,transparent 45%),#fff;color:var(--k-text)}
html[data-theme="light"] body::before {display:none}
html[data-theme="light"] :is(.brand,.brand-wordmark,.eyebrow) {color:var(--k-accent)}
html[data-theme="light"] :is(.card,.login-card,.item,.mail-row,.mail-body,.empty,.chat-message,.selected-mail,.chat-calendar-review,.documents-file,.token-result) {background:var(--k-surface);color:var(--k-text);border-color:var(--k-line);box-shadow:0 8px 28px #123d6a08}
html[data-theme="light"] #workspace .card:not(#voice-panel *) {box-shadow:0 8px 28px #123d6a08}
html[data-theme="light"] :is(.help,.footer-note,.login-card>p:not(.eyebrow),.item-time,.item-description,.mail-row-from,.mail-row-date,.optional,.status) {color:var(--k-muted)}
html[data-theme="light"] :is(h1,h2,h3,h4,label,legend,.item-title,.section-head) {color:inherit}
html[data-theme="light"] :is(a,.status.success,.count,.token-toggle) {color:var(--k-accent)}
html[data-theme="light"] .status.error {color:var(--k-danger)}
html[data-theme="light"] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select) {color:var(--k-text)!important;background:#fff!important;border-color:var(--k-line-strong)!important;color-scheme:light}
html[data-theme="light"] ::placeholder {color:#677f95;opacity:1}
html[data-theme="light"] :is(.button,.tab,.segment,.fg-button) {color:var(--k-text);background:var(--k-surface-2);border-color:var(--k-line-strong);box-shadow:none}
html[data-theme="light"] .button.primary {color:#fff;background:var(--k-accent);border-color:transparent}
html[data-theme="light"] .button.danger {color:var(--k-danger);background:#fff3f5;border-color:#efbec8}
html[data-theme="light"] #workspace .button.danger:hover:not(:disabled):not(#voice-panel *) {color:#952139;background:#ffe7ec}
html[data-theme="light"] :focus-visible {outline-color:var(--k-accent)}
html[data-theme="light"] :is(.tabs,.tabs-bar,.notification-controls,.device-form,.edit-form) {border-color:var(--k-line)}
html[data-theme="light"] .tabs-bar {background:#fffffff2;box-shadow:0 4px 20px #15395408}
html[data-theme="light"] .tab.active {color:var(--k-accent);background:var(--k-accent-soft)}
html[data-theme="light"] #workspace :is(.vs-subtabs,.settings-subnav,.opencode-switch,.segments,.mail-folders,.media-views,.calendar-view-switch,.calls-tabs):not(#voice-panel *) {background:#edf3f9}
html[data-theme="light"] :is(dialog,.live-item-sheet,.live-focus-toolbar,.live-area-overlay-head,.live-area-overlay-body,.wf-panel,.wf-menu,.wf-dialog,.pwa-connection) {background:#fff;color:var(--k-text);border-color:var(--k-line-strong);box-shadow:0 16px 60px #123d6a20}
html[data-theme="light"] :is(dialog::backdrop,.live-area-overlay,.live-item-preview:not(.is-background)) {background:#24436140}
html[data-theme="light"] :is(.live-focus-toolbar strong,.live-area-overlay-head h2,.live-item-title) {color:var(--k-text)}
/* Live's blue light stays blue; the surrounding stage becomes daylight. */
html[data-theme="light"] #voice-panel {color:var(--k-text);background:transparent}
html[data-theme="light"] :is(.voice-stage,#voice-stage) {background:radial-gradient(ellipse at center,#e7f5ff88,transparent 65%);border-color:var(--k-line)}
html[data-theme="light"] :is(.voice-overline,.voice-status,.voice-subtitle,.voice-hint,.live-node-label,.live-strip,.live-item-meta,.live-focus-toolbar) {color:var(--k-muted)}
html[data-theme="light"] :is(.live-card,.live-bubble,.live-transcript,.voice-settings,.live-compose,.live-composer) {background:#fffffff2;color:var(--k-text);border-color:var(--k-line);box-shadow:0 8px 28px #123d6a0d}
html[data-theme="light"] :is(.live-card-title,.live-card strong,.live-node-title,.live-strip strong,.live-item-head h2) {color:var(--k-text)}
html[data-theme="light"] :is(.live-card-meta,.live-card p,.live-strip small,.live-area-overlay-head span) {color:var(--k-muted)}
html[data-theme="light"] .live-thought-clip {mix-blend-mode:normal}
html[data-theme="light"] .live-node-core {color:#0879c2;text-shadow:none}
html[data-theme="light"] .live-graph-links {opacity:.55}
/* Calendar, table and finance surfaces. */
html[data-theme="light"] :is(.calendar-board,.calendar-grid,.calendar-day,.calendar-week,.calendar-month,.calendar-agenda,.calendar-event,.calendar-create,.calendar-side,.calendar-dialog,.fg-sheet) {background:#fff;color:var(--k-text);border-color:var(--k-line)}
html[data-theme="light"] :is(.calendar-day.today,.calendar-day.is-today,.calendar-event,.calendar-day-head,.calendar-day-name) {background:#edf6fd;color:#1b527d;border-color:#c6deef}
html[data-theme="light"] :is(.fg-table thead th,.fg-table tfoot td,.fg-table tfoot th,.fg-row-label,.fg-sticky) {background:#edf4fb;color:var(--k-text)}
html[data-theme="light"] .fg-table tbody :is(th,td) {background:#fff;color:var(--k-text)}
html[data-theme="light"] .fg-table tbody tr:nth-child(even) :is(th,td) {background:#f8fbfe}
html[data-theme="light"] .fg-table tbody tr:hover :is(th,td) {background:#eaf5fd}
html[data-theme="light"] :is(.fg-positive,.hh-income) {color:#12745a!important}
html[data-theme="light"] :is(.fg-negative,.hh-expense) {color:#b52c43!important}
html[data-theme="light"] .home-menu-group {background:#f6f9fd;border-color:var(--k-line)}
html[data-theme="light"] .home-menu-group [aria-pressed=true] {background:var(--k-accent-soft)!important;box-shadow:inset 3px 0 var(--k-accent)}
html[data-theme="light"] .home-menu-group summary::marker {color:var(--k-accent)}
html[data-theme="light"] #household-panel button[aria-pressed=true] {background:var(--k-accent-soft);color:var(--k-accent);box-shadow:inset 0 0 0 1px #b6dbf2}
html[data-theme="light"] #household-panel .hh-metric {border-color:#8ec7ec}
html[data-theme="light"] :is(.food-card,.recipe-card,.recipe-detail,.shopping-item,.parcel-card,.offer-card,.bk-metric,.bk-summary,.bk-table,.tr-card,.tr-option,.tr-leg-body) {color:var(--k-text);background:#fff;border-color:var(--k-line)}
/* Dashboard remains layered, with blue-white glass instead of the dark canvas. */
html[data-theme="light"] .tarvi-dashboard {background:linear-gradient(145deg,#f8fbff,#edf5fc);color:var(--k-text);border-color:var(--k-line)}
html[data-theme="light"] :is(.dashboard-card,.dashboard-preview,.dashboard-settings,.dashboard-day,.dashboard-composer) {background:#fff;color:var(--k-text);border-color:var(--k-line);box-shadow:0 8px 28px #123d6a08}
html[data-theme="light"] :is(.dashboard-clock,.dashboard-heading h1,.dashboard-card h2,.dashboard-card h3,.dashboard-weather-temp,.dashboard-weather-sky,.dashboard-card-body strong,.dashboard-day-button) {color:var(--k-text)}
html[data-theme="light"] :is(.dashboard-date,.dashboard-card-body p,.dashboard-card-body small,.dashboard-weather-place,.dashboard-calendar-range,.dashboard-calendar-free,.dashboard-event-location,.dashboard-entry-meta,.dashboard-weather-detail) {color:var(--k-muted)}
html[data-theme="light"] :is(.dashboard-calendar-day,.dashboard-calendar-views,.dashboard-detail-facts) {background:#f2f7fc;border-color:var(--k-line)}
html[data-theme="light"] :is(.dashboard-calendar-event,.dashboard-calendar-day.is-today,.dashboard-calendar-views button[aria-pressed=true]) {background:#e4f1fb;color:#185680}
html[data-theme="light"] .dashboard-event-time {color:#176299}
html[data-theme="light"] body.dashboard-active #voice-panel {background:#ffffffed;border-color:#bdd9ee;box-shadow:0 8px 30px #125c9a15}
html[data-theme="light"] .dashboard-designed-entry.dashboard-note {background-color:var(--paper);color:var(--paper-ink)}
/* Content editors and media retain actual paper, image and video colors. */
html[data-theme="light"] :is(.of-toolbar,.of-tabs,.of-sidebar,.of-status,.of-inspector,.of-library,.media-top,.media-views,.project-card,.kn-card,.wf-node,.wf-inspector,.team-card) {background:#f5f9fd;color:var(--k-text);border-color:var(--k-line)}
html[data-theme="light"] :is(.media-title,.media-section-title,.of-toolbar label,.wf-node-title,.kn-title) {color:var(--k-text)}
html[data-theme="light"] .media-badge {color:#fff}
html[data-theme="light"] .pwa-connection {color:#785016;background:#fff8e9;border-color:#e6ca91}
@media print { html[data-theme="light"] body {background:#fff} }
html[data-theme="light"] #voice-panel :is(.voice-log,.voice-log .empty,.voice-log .user,.voice-log .assistant,.voice-log p,.voice-stage-top,.voice-state,.voice-transcript-card,.live-card-title) {color:var(--k-text)}
html[data-theme="light"] #voice-panel :is(.voice-transcript-card,.voice-log .empty) {background:transparent;border-color:var(--k-line);box-shadow:none}
html[data-theme="light"] #workspace #voice-panel .live-neural {opacity:1;filter:none}
html[data-theme="light"] :is(.tabs-menu-toggle,.tabs-toggle,.menu-toggle) {color:var(--k-accent)}

html[data-theme="light"] #workspace #voice-panel .voice-orb {opacity:1}
html[data-theme="light"] #voice-panel .voice-log:has(>.empty:only-child) {mask-image:none}

:root[data-theme="light"] {--bright-ambient: rgb(calc(244 + 11 * var(--tarvi-daylight,1)) calc(248 + 7 * var(--tarvi-daylight,1)) calc(252 + 3 * var(--tarvi-daylight,1)));}
/* Same local-time curve as Dark: white at midday, soft blue-white at night. */
html[data-theme="light"] body {
  background:radial-gradient(ellipse at 80% 0%,#eaf4fc66 0,transparent 55%),
    var(--bright-ambient);
}

/* The desktop navigation reveals the changing page ambience; the mobile dropdown stays readable. */
html[data-theme="light"] #workspace .tabs-bar {background:transparent;box-shadow:none}
html[data-theme="light"] #workspace #tarvi-tabs.open {
  background:#fff;border-color:var(--k-line-strong);box-shadow:0 16px 40px #123d6a20;
}
html[data-theme="light"] #workspace .tabs-menu-icon,
html[data-theme="light"] #workspace .tabs-menu-icon::before,
html[data-theme="light"] #workspace .tabs-menu-icon::after {background:var(--k-accent)}

/* Bright semantic states: dark ink on quiet surfaces, never pastel text on white. */
:root[data-theme="light"] {
  --k-success:#176344;--k-success-soft:#edf7f1;
  --k-warning-soft:#fff6e6;--k-danger-soft:#fff0f2;--k-purple:#63409a;
}
html[data-theme="light"] :is(.hub-recent,.hub-step) {
  background:var(--k-surface-2);border-color:var(--k-line);color:var(--k-text);
}
html[data-theme="light"] .hub-recent[open] {background:#fff;border-color:var(--k-line-strong)}
html[data-theme="light"] .hub-recent-summary {padding:14px 16px;gap:16px}
html[data-theme="light"] :is(.hub-task,.hub-run-meta,.hub-hint,.hub-empty,.hub-quiet,.hub-step-name span,.hub-step-numbers,.hub-recent-text span,.hub-recent-numbers,.hub-facts dt,.hub-bar-time,.hub-feedback-note) {color:var(--k-muted)}
html[data-theme="light"] :is(.hub-elapsed,.hub-facts dd,.hub-bar-label,.hub-summary summary,.hub-summary p,.hub-flow-head,.hub-flow-head strong,.hub-step-state) {color:var(--k-text)}
html[data-theme="light"] :is(.hub-doing,.hub-progress) {color:var(--k-accent)}
html[data-theme="light"] :is(.hub-recent-state,.hub-step.is-done .hub-step-state,.hub-step.is-running .hub-step-state,.hub-step.is-flow-done .hub-step-state,.hub-step.is-flow-running .hub-step-state) {color:var(--k-success)}
html[data-theme="light"] :is(.hub-error,.hub-status.error,.hub-recent-state.is-error,.hub-step.is-failed .hub-step-state,.hub-step.is-flow-failed .hub-step-state) {color:var(--k-danger)}
html[data-theme="light"] :is(.hub-recent-state.is-question,.hub-step.is-flow-unreported .hub-step-state,.hub-section.is-attention>.hub-section-head h3) {color:var(--k-warn)}
html[data-theme="light"] :is(.hub-notice,.hub-question,.home-uncertain p) {color:var(--k-warn);background:var(--k-warning-soft);border-color:#e3c78f}
html[data-theme="light"] .hub-proposal-order {color:var(--k-text);background:var(--k-accent-soft)}
html[data-theme="light"] .hub-proposal-list {color:var(--k-text)}
html[data-theme="light"] .hub-section {background:var(--k-surface,#fff);border-color:var(--k-line,rgba(0,0,0,.1))}
html[data-theme="light"] .hub-section.is-attention {background:color-mix(in srgb,var(--k-warn,#b26a00) 6%,var(--k-surface,#fff))}
html[data-theme="light"] .hub-section.is-now.is-live {background:color-mix(in srgb,#1f9d55 7%,var(--k-surface,#fff))}
html[data-theme="light"] :is(.hub-task-edit) {color:var(--k-text);background:var(--k-surface,#fff)}
html[data-theme="light"] .hub-edit-count {color:var(--k-muted)}
html[data-theme="light"] :is(.hub-sum-line,.hub-sum-chips li) {color:var(--k-text)}
html[data-theme="light"] .hub-sum-last {color:var(--k-muted)}
html[data-theme="light"] :is(.hub-proposal-count,.hub-proposal-details>summary) {color:var(--k-muted,var(--k-text))}
html[data-theme="light"] .hub-step.is-cancelled {opacity:1}
html[data-theme="light"] .hub-rate[aria-pressed="true"] {color:var(--k-accent);background:var(--k-accent-soft);box-shadow:inset 0 0 0 1px var(--k-line-strong)}
html[data-theme="light"] .hub-recent-summary:focus-visible {outline:2px solid var(--k-accent);outline-offset:2px}
@media(hover:hover) and (pointer:fine) {
  html[data-theme="light"] .hub-recent-summary:hover {background:var(--k-accent-soft);border-radius:9px}
}
/* Project sheets, planning and team calendars use the same readable palette. */
html[data-theme="light"] #workspace #projects-panel {--pj-row:var(--k-surface-2)}
html[data-theme="light"] #workspace #projects-panel .pj-sheet {background:#fff;box-shadow:-16px 0 48px #123d6a20}
html[data-theme="light"] #workspace #projects-panel :is(.tm-cal th,.tm-matrix th[scope="row"],.pl-label-col) {background:var(--k-surface-2);color:var(--k-text)}
html[data-theme="light"] #workspace #projects-panel :is(.tm-kind.is-vacation,.tm-cal td.is-free,.tm-cal td.is-partial,.tm-swatch.is-free,.tm-swatch.is-partial,.pl-heat-cell.is-some) {color:var(--k-accent);background:var(--k-accent-soft)}
html[data-theme="light"] #workspace #projects-panel :is(.tm-kind.is-training,.tm-cal td.is-holiday,.tm-cal td.is-booked,.tm-swatch.is-holiday,.tm-swatch.is-booked) {color:var(--k-purple);background:#f3edfc}
html[data-theme="light"] #workspace #projects-panel :is(.tm-kind.is-sick,.tm-cal td.is-away,.tm-swatch.is-away,.pl-heat-cell.is-full) {color:var(--k-warn);background:var(--k-warning-soft)}
html[data-theme="light"] #workspace #projects-panel .pl-heat-cell.is-over {color:var(--k-danger);background:var(--k-danger-soft)}
html[data-theme="light"] #workspace #projects-panel :is(.pl-state.is-active,.pl-kpi.is-good dd,.pl-score.is-good) {color:var(--k-success)}
html[data-theme="light"] #workspace #projects-panel :is(.pl-warnings p,.tm-pick.is-missing,.pl-conflicts) {color:var(--k-warn)}
html[data-theme="light"] .project-health {color:var(--k-muted);background:var(--k-surface-2);border-color:var(--k-line-strong)}
html[data-theme="light"] .project-health.is-working {color:var(--k-success);background:var(--k-success-soft)}
html[data-theme="light"] .project-health.is-question {color:var(--k-warn);background:var(--k-warning-soft)}
html[data-theme="light"] .project-health.is-error {color:var(--k-danger);background:var(--k-danger-soft)}
html[data-theme="light"] .project-health.is-paused {color:var(--k-accent);background:var(--k-accent-soft)}
/* Matching secondary text and status contrast in research, news and bookkeeping. */
html[data-theme="light"] :is(.news-item-body p,.live-card-detail) {color:var(--k-muted)}
html[data-theme="light"] .news-item-meta {color:var(--k-accent)}
html[data-theme="light"] #books-panel :is(.bk-tag-paid,.bk-tag-booked,.bk-tag-accepted) {color:var(--k-success);background:var(--k-success-soft)}
html[data-theme="light"] #workspace :is(.card,.project-card,.tm-card) {box-shadow:0 2px 8px #123d6a05}
html[data-theme="light"] :is(.agents-tile,.agents-chart,.agents-detail,.agents-text,.agents-diff-lines,.agents-table thead th,.account-summary-item,.account-usage) {background:var(--k-surface-2);color:var(--k-text);border-color:var(--k-line)}
html[data-theme="light"] :is(.agents-tile-label,.agents-tile-detail,.agents-muted,.agents-diff-line.is-hunk,.agents-radio,.account-summary-item span) {color:var(--k-muted)}
html[data-theme="light"] :is(.agents-table tbody th,.agents-sort,.agents-open,.account-summary-item strong) {color:var(--k-text)}
html[data-theme="light"] :is(.agents-diff-line.is-add,.agents-findings-list.is-hint) {color:var(--k-success);background:var(--k-success-soft)}
html[data-theme="light"] :is(.agents-diff-line.is-del,.agents-findings-list.is-error) {color:var(--k-danger);background:var(--k-danger-soft)}
html[data-theme="light"] :is(.agents-flag,.agents-findings-list.is-warning) {color:var(--k-warn);background:var(--k-warning-soft)}
html[data-theme="light"] #code-workflow-hint.error {color:var(--k-danger)}
html[data-theme="light"] #workflows-panel :is(.wf-pill[data-state="active"],.s-ok .wf-node-state,.s-ok .wf-li-state,.wf-preview strong) {color:var(--k-success)}
@media(max-width:720px) {
  html[data-theme="light"] .hub-recent-text span {white-space:normal;overflow-wrap:anywhere;line-height:1.5}
  html[data-theme="light"] .hub-recent-summary {gap:10px;padding:14px}
}
/* News cards need their own light surface, not the legacy translucent dark fill. */
html[data-theme="light"] #news-panel .news-item {background:var(--k-surface-2);color:var(--k-text);border-color:var(--k-line);box-shadow:none}
html[data-theme="light"] #news-panel .news-item-meta {color:var(--k-muted)}
html[data-theme="light"] #news-panel a.news-item:focus-visible {outline:2px solid var(--k-accent);outline-offset:3px;box-shadow:none}
@media(hover:hover) and (pointer:fine) {
  html[data-theme="light"] #news-panel a.news-item:hover {background:var(--k-accent-soft);border-color:var(--k-line-strong);box-shadow:none}
}
/* Dashboard widgets share the light palette, including metrics and their previews. */
html[data-theme="light"] :is(.dashboard-metrics>div,.dashboard-collection-toolbar,.dashboard-layout-preview,.dashboard-mini-card) {background:var(--k-surface-2);border-color:var(--k-line);color:var(--k-text)}
html[data-theme="light"] :is(.dashboard-metrics strong,.dashboard-preview-body .dashboard-detail-text) {color:var(--k-text)}
html[data-theme="light"] :is(.dashboard-metrics span,.dashboard-entry-detail,.dashboard-entry-number,.dashboard-empty,.dashboard-status,.dashboard-card-body p,.dashboard-section-title,.dashboard-detail-meta,.dashboard-detail-facts dt,.dashboard-news-excerpt,.dashboard-news-byline,.dashboard-mail-meta,.dashboard-mail-footer) {color:var(--k-muted)}
html[data-theme="light"] :is(.dashboard-panel-note,.dashboard-news-date) {color:var(--k-muted)!important}
html[data-theme="light"] .dashboard-status-chip {color:var(--k-muted);background:var(--k-surface-2)}
html[data-theme="light"] :is(.dashboard-status-chip[data-tone=green],.dashboard-flow-mark) {color:var(--k-success);background:var(--k-success-soft);border-color:#b7d9c5}
html[data-theme="light"] .dashboard-status-chip[data-tone=amber] {color:var(--k-warn);background:var(--k-warning-soft)}
html[data-theme="light"] .dashboard-status-chip[data-tone=danger] {color:var(--k-danger);background:var(--k-danger-soft)}
html[data-theme="light"] :is(.dashboard-card-body .dashboard-error,.dashboard-warning) {color:var(--k-warn)}
html[data-theme="light"] .dashboard-collection-toolbar button {color:var(--k-muted)}
html[data-theme="light"] .dashboard-collection-toolbar button[aria-pressed=true] {color:var(--k-accent);background:var(--k-accent-soft);box-shadow:none}
html[data-theme="light"] .dashboard-preview [data-detail-kind=notes] .dashboard-detail-text {color:var(--paper-ink)}
/* Full calendar: date cells and appointments use opaque light surfaces. */
html[data-theme="light"] .business-calendar {--cal-line:var(--k-line);--cal-panel:var(--k-surface);--cal-muted:var(--k-muted);--cal-accent:var(--k-accent)}
html[data-theme="light"] :is(.calendar-month-day,.calendar-week-column,.calendar-hour-slot) {background:#fff}
html[data-theme="light"] .calendar-month-day.is-outside {opacity:1;background:var(--k-surface-2)}
html[data-theme="light"] :is(.calendar-month-number,.calendar-period-title,.calendar-week-head strong) {color:var(--k-text)}
html[data-theme="light"] :is(.calendar-weekday,.calendar-week-head,.calendar-day-empty,.calendar-hour-label,.calendar-results,.calendar-more) {color:var(--k-muted)}
html[data-theme="light"] .calendar-nav-button {color:#185680;background:var(--k-surface-2);border-color:var(--k-line-strong)}
html[data-theme="light"] :is(.calendar-month-day.is-today,.calendar-week-column.is-today) {background:#f2f8fd}
html[data-theme="light"] :is(.calendar-month-day.is-today .calendar-month-number,.calendar-week-column.is-today .calendar-week-head strong) {color:#fff;background:var(--k-accent);box-shadow:none}
html[data-theme="light"] .calendar-event-pill {color:var(--k-text);background:var(--k-accent-soft);border-left-color:var(--k-accent)}
html[data-theme="light"] .calendar-event-time {color:#185680}
html[data-theme="light"] .business-calendar #event-list>.item::before {color:var(--k-muted)}
html[data-theme="light"] :is(.calendar-nav-button,.calendar-month-number,.calendar-week-head,.calendar-event-pill):focus-visible {outline:2px solid var(--k-accent);outline-offset:2px}
@media(hover:hover) and (pointer:fine) {
  html[data-theme="light"] .calendar-event-pill:hover {background:#d5eafa}
}
html[data-theme="light"] .hub-options {background:color-mix(in srgb,var(--k-text) 3%,var(--k-surface,#fff));border-color:var(--k-line,rgba(0,0,0,.1))}
html[data-theme="light"] .hub-switch {color:var(--k-text)}
html[data-theme="light"] .hub-switch-track {background:rgba(0,0,0,.18);box-shadow:none}
html[data-theme="light"] :is(.hub-ask,.hub-segment-item span) {color:var(--k-muted)}
html[data-theme="light"] .hub-segment {background:rgba(0,0,0,.06)}
html[data-theme="light"] .hub-segment-item input:checked + span {color:#fff}
