/* Theme surfaces and the personal settings workspace. Loaded after module styles. */
#view-settings{--settings-accent:#247a80}
#view-settings .page-intro{max-width:1100px;padding:8px 2px;border:0;border-radius:0;background:transparent;margin-bottom:16px;box-shadow:none}
#view-settings .page-intro h2{font-size:34px;letter-spacing:-.04em}
#view-settings .page-intro p:not(.eyebrow){max-width:62ch;font-size:14px;line-height:1.55}
#view-settings .settings-layout{gap:22px}
#view-settings .settings-jump{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#view-settings .settings-jump a{padding:12px 14px;background:var(--surface);border-color:var(--line);border-radius:12px;box-shadow:none;grid-template-columns:32px 1fr;gap:4px 10px;min-height:56px}
#view-settings .settings-jump a>span{width:32px;height:32px;background:var(--surface-soft);color:var(--settings-accent);font-size:21px;align-self:center}
#view-settings .settings-jump strong{font-size:14px;font-weight:650}
#view-settings .settings-jump small{font-size:13px}
#view-settings .settings-section{padding:22px;border-radius:16px;box-shadow:none}
#view-settings .panel-heading{margin-bottom:18px}
#view-settings .panel-heading .eyebrow{font-size:11px;letter-spacing:.09em;margin-bottom:8px}
#view-settings .panel-heading h2{font-size:22px;letter-spacing:-.025em;line-height:1.3}
#view-settings .settings-grid{gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}
#view-settings .settings-grid .settings-toggle-row{border:0;border-radius:0;border-bottom:1px solid var(--line);padding:16px;align-items:center}
#view-settings .settings-toggle-row strong{font-size:15px;font-weight:650}
#view-settings .settings-toggle-row small{max-width:46ch;font-size:13px;font-weight:400;line-height:1.5}
#view-settings .settings-toggle-row input{flex:0 0 44px;min-width:44px}
#view-settings .settings-notification-attention{padding-top:24px;margin-top:24px}
#view-settings .settings-device-card{box-shadow:none}
#view-settings .settings-order-list{gap:6px}
#view-settings .settings-order-row,#view-settings .settings-quick-row{border-color:var(--line);border-radius:10px;min-height:60px;padding:8px 10px;gap:8px}
#view-settings .settings-quick-card{padding:16px;background:var(--surface-soft)}
#view-settings .settings-navigation-grid{gap:26px}
#view-settings .settings-save-row{bottom:90px;gap:14px}
.settings-save-hint{font-size:13px;color:var(--muted)}
.theme-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:700px}
.theme-choices legend{font-size:15px;font-weight:650;margin-bottom:14px}
.theme-choice{position:relative;cursor:pointer;padding:14px;border:2px solid var(--line);border-radius:18px;background:var(--surface);display:grid;gap:14px;transition:border-color .18s,box-shadow .18s}
.theme-choice:has(input:checked){border-color:var(--settings-accent);box-shadow:0 0 0 3px #26838b15}
.theme-choice:has(input:focus-visible){outline:3px solid #499fd5;outline-offset:4px}
.theme-choice input{position:absolute;bottom:18px;right:16px;width:20px;height:20px;accent-color:var(--settings-accent)}
.theme-preview{height:100px;display:block;position:relative;overflow:hidden;border:1px solid #ccdce5;border-radius:10px;background:#edf3f7}
.theme-preview:before{content:'';position:absolute;left:0;top:0;bottom:0;width:18%;background:#dce8ee;border-right:1px solid #c8d8df}
.theme-preview i{position:absolute;left:25%;top:16%;width:42%;height:9%;border-radius:5px;background:#54748a}
.theme-preview b{position:absolute;left:25%;top:37%;width:65%;height:45%;border-radius:8px;background:white;box-shadow:0 2px 6px #1234}
.theme-preview em{position:absolute;left:31%;top:61%;width:41%;height:8%;border-radius:4px;background:linear-gradient(90deg,#297d88,#65b9ad)}
.theme-preview-dark{background:#101820;border-color:#344957}
.theme-preview-dark:before{background:#192631;border-color:#344957}
.theme-preview-dark i{background:#afc4d3}.theme-preview-dark b{background:#23333f}
.theme-choice-title{font-size:17px;font-weight:700;padding-right:28px;line-height:1.4}
.theme-choice-title>span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:3px}
#settings-appearance-section>.settings-toggle-row{margin-top:24px;background:var(--surface-soft)}
#settings-appearance-section .field-help{font-size:13px;line-height:1.5;color:var(--muted);margin:12px 2px 0}
@media(max-width:720px){#view-settings .page-intro{padding:4px 2px}#view-settings .settings-section{padding:18px 16px}#view-settings .settings-jump{gap:6px}#view-settings .settings-jump a{padding:10px 6px;gap:0;display:flex;justify-content:center;text-align:center;min-height:48px}#view-settings .settings-jump strong{font-size:12px}#view-settings .settings-jump small,#view-settings .settings-jump a>span{display:none}#view-settings .panel-heading h2{font-size:20px}.theme-choices{gap:10px}.theme-choice{padding:10px}.theme-preview{height:80px}.theme-choice-title{font-size:15px}.theme-choice-title>span{font-size:12px}.theme-choice input{right:10px;bottom:24px}#view-settings .settings-save-row{bottom:84px;padding:14px}.settings-save-hint{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.theme-choice{transition:none}}

/* Settings labels lead; descriptions support them without adding another visual layer. */
#view-settings :is(.section-helper,.settings-subhead small,.field-help,.small-note,.settings-order-copy small){font-size:13px;font-weight:400;line-height:1.5}
#view-settings .settings-subhead strong{font-size:15px;font-weight:650;line-height:1.4}
#view-settings .settings-device-card{padding:18px;background:var(--surface-soft);border-color:var(--line);gap:16px}
#view-settings .settings-device-card h3{font-size:17px;line-height:1.35}
#view-settings .settings-device-card p:not(.eyebrow){font-size:13px;line-height:1.5;max-width:48ch}
#view-settings .settings-device-actions button{min-height:44px}
#view-settings .settings-pinned-row{opacity:1}
#view-settings :is(.settings-drag-handle,.settings-drag-spacer){width:44px;height:44px}
#view-settings .settings-drag-handle{background:transparent;color:var(--muted)}
#view-settings .settings-drag-handle:hover{background:var(--surface-soft);color:var(--ink)}
#view-settings .settings-select-row{max-width:480px}
#view-settings .settings-save-row .form-message:empty{display:none}
#view-settings .settings-save-row:has(.form-message.error){border-color:var(--color-danger-border,#d6a1a5)}
#view-settings .settings-save-row .form-message{font-size:13px;font-weight:500;line-height:1.5}
#view-settings .settings-save-hint{font-size:12px}
@media(min-width:721px){#view-settings .settings-grid .settings-toggle-row:nth-child(odd){border-right:1px solid var(--line)}#view-settings .settings-grid .settings-toggle-row:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:720px){#view-settings .settings-grid .settings-toggle-row:last-child{border-bottom:0}#view-settings .settings-device-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}#view-settings #settings-enable-push{grid-column:1/-1}#view-settings .settings-grid .settings-toggle-row{padding:14px;gap:12px}}
@media(prefers-reduced-motion:reduce){#view-settings .settings-jump a:hover{transform:none}}
html[data-theme="dark"] #view-settings .settings-toggle-row input:not(:checked){background:var(--surface-raised);box-shadow:inset 0 0 0 1px var(--control-line)}
html[data-theme="dark"] .settings-drag-placeholder{background:var(--surface-soft)!important;border-color:var(--control-line)!important;box-shadow:none!important}

/* Shared semantic palette. Native controls follow color-scheme as well. */
html[data-theme="dark"]{
 color-scheme:dark;--page:#101820;--surface:#192630;--surface-raised:#21313e;--surface-soft:#20303c;--soft:#20303c;
 --ink:#e5edf3;--muted:#a9bdcb;--line:#364b5a;--navy:#80c6e1;--navy-2:#27475b;--teal:#67cfbd;--green:#81d4a0;--blue:#88c8f0;--red:#f09ca5;--amber:#edc07a;
 --color-info-fg:#aad6f0;--color-info-bg:#1e3546;--color-info-border:#41647d;
 --color-success-fg:#9ae0b3;--color-success-bg:#203b32;--color-success-border:#426c57;
 --color-warning-fg:#f0ce90;--color-warning-bg:#403625;--color-warning-border:#76613c;
 --color-danger-fg:#f4acb5;--color-danger-bg:#402b33;--color-danger-border:#754550;
 --shadow:0 5px 18px #0002;--overlay-shadow:0 28px 80px #0008;
 --report-ink:#e5edf3;--report-muted:#a9bdcb;--settings-accent:#71c9c5;
}
html[data-theme="dark"] body{background:var(--page);color:var(--ink)}
html[data-theme="dark"] #view-ministering{--workspace-line:var(--line);--workspace-muted:var(--muted)}
html[data-theme="dark"] #view-ministering :is(.min-comp-card,.workspace-ministering-filters){background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] #view-ministering .district-tab.active{background:#2c6778;color:#fff;border-color:#4a8b9c}
html[data-theme="dark"] #hub-mobile-nav{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] #hub-mobile-nav .hub-mobile-nav-item{background:transparent;color:var(--muted)}
html[data-theme="dark"] #hub-mobile-nav .hub-mobile-nav-item>span{color:inherit}
html[data-theme="dark"] #hub-mobile-nav .hub-mobile-nav-item.active{background:#2c6778;color:#fff}
html[data-theme="dark"] :is(.app-shell,.main,.view){background-color:var(--page);color:var(--ink)}
html[data-theme="dark"] :is(.sidebar,.topbar,.mobile-nav,.mobile-bottom-nav,.bottom-nav,.settings-save-row){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.panel,.page-intro,.metric-card,.status-pill,.person-card,.settings-section,.settings-device-card,.settings-toggle-row,.settings-order-row,.settings-quick-row,.settings-jump a,.settings-quick-card,.theme-choice,.report-quick-card,.hub-login-card,dialog,[role="dialog"],.modal-card,.modal-content,.modal-panel){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important;box-shadow:var(--shadow)}
html[data-theme="dark"] :is(h1,h2,h3,h4,legend,label,summary){color:var(--ink)}
html[data-theme="dark"] :is(.section-helper,.small-note,.field-help,.eyebrow,.settings-subhead small,.settings-order-copy small,.settings-toggle-row small,.settings-jump small,.theme-choice-title>span){color:var(--muted)!important}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,[contenteditable="true"]){background:var(--page)!important;color:var(--ink)!important;border-color:var(--line)!important;caret-color:var(--ink)}
html[data-theme="dark"] ::placeholder{color:#95adbe;opacity:1}
html[data-theme="dark"] :is(button,.outline-btn,.back-btn){background-color:#233746;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.primary-btn,.primary-inline-btn,.nav-item.active,.report-tab.active){background:#2c6778!important;color:#fff!important;border-color:#4a8b9c!important}
html[data-theme="dark"] :is(.nav-item,.sidebar-nav button){color:#b6cbd9}
html[data-theme="dark"] :is(a,.blue-text){color:#8cd1f2}
html[data-theme="dark"] :is(.green-text,.success){color:#9bddb6}
html[data-theme="dark"] :is(.error,.danger-text){color:#f3adb5}
html[data-theme="dark"] :is(.hero,.brand-mark){background:linear-gradient(130deg,#183d50,#1d514e);color:white}
html[data-theme="dark"] :is(.settings-grid,.settings-quick-card,.settings-order-icon,.settings-pinned-badge,.settings-channel-note,.report-point-inspector,.explorer-controls,.report-chart-switches,.report-tabs,.range-summary>div,.range-legend span,.range-presets button,.explorer-presets button){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(#explorer-chart-host,#range-visual,.range-periods fieldset,.weekly-summary-panel pre,.report-progress-track,.report-bar-track,.explorer-track){background:var(--page)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.report-view-help,#explorer-context,#range-status,.range-chart-help,#range-note,.range-series,.range-summary small,.range-summary span,.report-point-controls output,.report-point-controls output>strong,.report-point-controls output b,#range-date-caption,#explorer-settings-summary,.report-bar-label,.explorer-bar,.range-bar-group){color:var(--muted)!important}
html[data-theme="dark"] #view-reports :is(button,summary){color:var(--ink)}
html[data-theme="dark"] #view-reports .report-chart-switches button[aria-pressed="true"]{background:#345667;color:white}
html[data-theme="dark"] #view-reports svg text{fill:#b9cddd!important}
html[data-theme="dark"] #view-reports svg :is(.chart-gridline,.chart-axis){stroke:#3b5060}
html[data-theme="dark"] #view-reports svg polyline{filter:brightness(1.5)}
html[data-theme="dark"] #view-reports svg>circle{stroke:var(--surface)}
html[data-theme="dark"] :is(#range-preview,#reports-load-status){background:#203b4b;color:#b9dcee}
html[data-theme="dark"] #range-warning{background:var(--color-warning-bg);color:var(--color-warning-fg)}
html[data-theme="dark"] :is(th,td){border-color:var(--line)!important}
html[data-theme="dark"] :is(.settings-drag-ghost,.settings-save-row){background:var(--surface-raised)!important}
html[data-theme="dark"] #view-settings{--settings-accent:#71c9c5}
html[data-theme="dark"] #view-settings .settings-toggle-row input:checked{background:#398f8d}
html[data-theme="dark"] #view-settings .settings-toggle-row input:before{background:#fff}
html[data-theme="dark"] .theme-choice:has(input:checked){border-color:#71c9c5!important}
html[data-theme="dark"] :focus-visible{outline-color:#8cd1f2!important}
html[data-theme="dark"] dialog::backdrop{background:#000a}
/* Module surfaces that predate the shared surface tokens. */
html[data-theme="dark"] :is(.empty-state,.ui-summary-group,.progress-overview,.interview-planning-metrics,.interview-planning-toolbar,.lesson-metrics,.mission-section-tabs,.admin-section-nav,.admin-preset-box,.admin-release-note,.admin-subsection-summary,.help-search-box,.home-workflow-dock,.my-work-command-bar,.my-work-calendar-toolbar,.my-work-calendar-views,.assignment-list-filters,.meeting-mini-card,.meeting-progress-shell,.meeting-work-card,.meeting-step-index,.moves-segments,.moves-toolbar,.moves-history-row,.moves-out-person,.moves-entry,.profile-card,.profile-preference-row,.contact-status-panel,.profile-welcome-goal){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(#my-work-calendar-body,#admin-access-by-tab,#admin-user-editor-section,#admin-user-directory-section,#hub-messages-panel,.messages-head,#messages-send,#messages-log,.personal-notes-modal,.personal-notes-modal-head,.personal-notes-toolbar,.personal-notes-card,.personal-notes-card-head,.profile-editor-head,.profile-editor-body,.profile-editor-footer,.moves-dialog-body){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.message-thread,.message-contact,.message-request-card,.messages-presidency,.message-event-card,.personal-notes-tool){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .hub-message p{background:#293e4e;color:#e5edf3}
html[data-theme="dark"] .hub-message.mine p{background:#295d88;color:#fff}
html[data-theme="dark"] :is(.message-snippet,.message-author,.hub-message time,.message-thread time,.messages-empty,.messages-selected){color:var(--muted)}
html[data-theme="dark"] :is(strong,b){color:inherit}
html[data-theme="dark"] #view-settings :is(strong,.theme-choice-title){color:var(--ink)!important}
html[data-theme="dark"] :is(.metric-icon,.assignment-page-icon,.moves-entry-icon,.moves-metric-icon,.admin-admin-section-icon){background:#2b4352!important;color:#a1d6e8!important}
html[data-theme="dark"] :is(.overview-progress-track,.meeting-progress-track){background:#304451!important}
html[data-theme="dark"] :is(.moves-entry,.moves-history-row,.profile-card,.my-work-command-bar,.assignment-list-filters) :is(p,small,span){color:var(--muted)}
html[data-theme="dark"] #view-member :is([class*="calendar-day"],[class*="calendar-cell"],[class*="calendar-agenda"],[class*="calendar-week"],[class*="calendar-hour"],[class*="calendar-time"],[class*="calendar-month"]){background-color:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.my-work-calendar-toolbar,.my-work-calendar-views,.moves-segments,.mission-section-tabs,.admin-section-nav) button{background:#233746!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.my-work-calendar-views,.moves-segments,.mission-section-tabs,.admin-section-nav) :is(button.active,button[aria-pressed="true"]){background:#345f71!important;color:#fff!important}
html[data-theme="dark"] :is(#moves-add,#moves-start-out,#moves-refresh){background:#264554!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.home-workflow-dock,.settings-save-row,.report-point-inspector) button{background:#294554;color:var(--ink)}
html[data-theme="dark"] :is(.status-pill,.badge,.chip){border-color:var(--line)}
html[data-theme="dark"] #view-settings .settings-save-row{display:flex}
html[data-theme="dark"] #view-settings .settings-select-row>span{color:var(--ink)}
html[data-theme="dark"] :is(#meeting-previous-section,#meeting-cross-presidency-section,#meeting-focus-section,#meeting-ministering-section,#meeting-callings-section,#meeting-carry-section){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(#meeting-save-state,#meeting-progress-count,#my-work-calendar-today-count,#bishop-work-calendar-today-count,#member-movein-needs-count,#admin-health-status,#admin-feature-audit-status,#admin-feature-test-status,#admin-runtime-status,#admin-bulk-module-summary){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .admin-health-note-warning{background:var(--color-warning-bg)!important;color:var(--color-warning-fg)!important}
html[data-theme="dark"] #view-reports .explorer-heading p{color:var(--muted)}
html[data-theme="dark"] #view-reports .report-point-controls button{background:#294554!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-reports .range-summary>div:nth-child(2),html[data-theme="dark"] .range-legend .comparison{background:#302b42!important}
html[data-theme="dark"] #view-reports .range-summary>div:first-child{background:#203b40!important}
html[data-theme="dark"] #view-reports :is(.explorer-customize,#range-date-settings,.range-methodology,.explorer-table-details,#range-values-wrap){border-color:var(--line)}
html[data-theme="dark"] .settings-device-card p{color:var(--muted)}
/* Component-level dark treatments. Keep each workspace's accent identity. */
html[data-theme="dark"]{--dark-action:#294453;--dark-action-hover:#355565;--dark-link:#a3d9ed;--control-line:#648293;--selected-bg:#2c6778;--selected-ink:#fff;--focus:#9edcf5;--overlay:#07121dcc;--text-muted:var(--muted);--workspace-line:var(--line);--workspace-muted:var(--muted);--workspace-tint:var(--surface-soft)}
/* Home: image hero, readable cards, and a separate green coverage surface. */
html[data-theme="dark"] #hub-control-center .hub-control-center-hero{background:linear-gradient(100deg,#152933f5 15%,#142936b8 65%,#11212e66),url('../art/hero-sunrise.webp') center/cover!important;border-color:#3c5361}
html[data-theme="dark"] #hub-control-center :is(.hub-control-card,.home-briefing-card,.home-week,.home-coordinate){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)}
html[data-theme="dark"] #hub-control-center .home-coordinate{background:#2c2b27!important;border-color:#66573c!important}
html[data-theme="dark"] #hub-control-center .home-care-overview{background:linear-gradient(120deg,#19372f,#1c2c36)!important;border-color:#3d6153}
html[data-theme="dark"] #hub-control-center :is(h2,h3,strong,b){color:var(--ink)!important}
html[data-theme="dark"] #hub-control-center :is(p,small,.home-overview-scope,.hub-control-find-arrow){color:var(--muted)!important}
html[data-theme="dark"] #hub-control-center .home-care-heading span,html[data-theme="dark"] #hub-control-center #hub-control-due{color:#a1e2bf!important}
html[data-theme="dark"] #hub-control-center .home-work-actions button{background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] #hub-control-center .home-work-actions button[data-home-quick="contact"]{background:#203e34!important;border-color:#436852!important}
html[data-theme="dark"] #hub-control-center :is(.home-work-actions svg,.home-section-count,.home-date-tile,.home-briefing-badge,.home-workflow-dock b){background:#2b4353!important;color:#c3deed!important}
html[data-theme="dark"] #hub-control-center .home-date-tile :is(span,strong){color:#c3deed!important}
html[data-theme="dark"] #hub-control-center :is(#home-mark-reviewed,.home-briefing-expand){background:var(--dark-action)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #hub-control-center :is(.home-briefing-row,.hub-control-summary>button){background:transparent!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #hub-control-center :is(.home-briefing-row,.hub-control-summary>button):hover{background:#2a3e4c!important}
html[data-theme="dark"] #home-contact-progress{background:#345348!important}
/* My Work: colored destination cards instead of pale tiles. */
html[data-theme="dark"] #view-member :is(.work-launchpad,.work-desk,.work-capture,.work-outreach,.my-work-more-section,.member-action-card,.member-action-row,#my-work-focus-bar){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] #view-member .work-launchpad{background:var(--surface)!important}
html[data-theme="dark"] #view-member .my-work-preview-card{background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none}
html[data-theme="dark"] #view-member .my-work-preview-card[data-mywork-overview-open="priority_assignments"]{--tile-bg:#203d33;--tile-ink:#a5e1c1;--tile-border:#3c6654}
html[data-theme="dark"] #view-member .my-work-preview-card[data-mywork-overview-open="calendar"]{--tile-bg:#203650;--tile-ink:#a7d2fa;--tile-border:#3f6387}
html[data-theme="dark"] #view-member .my-work-preview-card[data-mywork-overview-open="new_moveins"]{--tile-bg:#1c3c40;--tile-ink:#a0dddd;--tile-border:#3c6c70}
html[data-theme="dark"] #view-member .my-work-preview-card[data-mywork-overview-open="my_notes"]{--tile-bg:#3a3326;--tile-ink:#ead19e;--tile-border:#726044}
html[data-theme="dark"] #view-member :is(.my-work-preview-icon,.my-work-preview-title b){background:#15232bbf!important;color:var(--tile-ink)!important;border-color:var(--tile-border)}
html[data-theme="dark"] #view-member .my-work-preview-card::before{opacity:.16}
html[data-theme="dark"] #view-member :is(h2,h3,strong,label,.assignment-list-search span,#my-work-focus-title){color:var(--ink)!important}
html[data-theme="dark"] #view-member :is(p,small,.work-attribution,.work-desk-help,.member-action-attribution,.member-action-meta-line,.member-action-options summary){color:var(--muted)!important}
html[data-theme="dark"] #view-member :is(.my-work-preview-title strong,.my-work-preview-action){color:var(--tile-ink)!important}
html[data-theme="dark"] #view-member :is(#work-launch-actions button,.work-desk-heading>button,.work-desk-actions .small-action-btn,.work-section-heading>button,#my-work-more-grid button,.member-assignment-buttons button,.assignment-list-filters button){background:var(--dark-action)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-member :is(.work-desk-tabs,.work-outreach-people article,.work-person-avatar,.my-work-more-icon,.member-action-date){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-member :is(.work-desk-tabs button,.work-desk-person){color:#c7dbd3!important;background:transparent}
html[data-theme="dark"] #view-member :is(.work-desk-tabs button,.assignment-list-filters button)[aria-pressed="true"]{background:#32634e!important;color:white!important}
html[data-theme="dark"] #view-member :is(.member-complete-task,.work-desk-actions .primary-inline-btn){background:#32634e!important;color:#fff!important;border-color:#51846a!important}
html[data-theme="dark"] #view-member .work-desk-row{border-color:var(--line)}
/* Calendar: dark canvas, visible time grid, and distinct event types. */
html[data-theme="dark"] :is(#my-work-calendar-card,#bishop-work-calendar){--calendar-grid:#364b5a}
html[data-theme="dark"] :is(#my-work-calendar-next,#my-work-calendar-period,.calendar-weekday-head,.calendar-key-item,.calendar-time-label,.calendar-hour-label){color:var(--muted)!important}
html[data-theme="dark"] :is(.calendar-day,.calendar-week-column,.calendar-week-title,.calendar-mobile-week-day,.calendar-agenda-day,.calendar-day-summary,.calendar-day-timeline,.calendar-week-grid,.calendar-week-time,.calendar-time-grid,.calendar-month-grid){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.calendar-mini-event,.calendar-timed-event,.calendar-agenda-event,.calendar-event){background:#243f53!important;color:#c0e2fa!important;border-color:#4f7996!important}
html[data-theme="dark"] :is(.calendar-mini-event,.calendar-timed-event,.calendar-agenda-event,.calendar-event).visit{background:#234337!important;color:#b9e8cb!important;border-color:#4b8262!important}
html[data-theme="dark"] :is(.calendar-mini-event,.calendar-timed-event,.calendar-agenda-event,.calendar-event).lesson{background:#3b304c!important;color:#dec7f7!important;border-color:#806398!important}
html[data-theme="dark"] :is(.calendar-day.today,.calendar-mobile-week-day.today){background:#263f4d!important;box-shadow:inset 0 0 0 1px #6699af}
/* Notes: a warm dark writing surface; no white editor or footer. */
html[data-theme="dark"] :is(#my-notes-card-body,.personal-notes-writing-hint,.personal-notes-helper,.personal-notes-checklist,.notes-checklist-row){background:#222c30!important;color:#c9d1cd!important;border-color:#44504f!important}
html[data-theme="dark"] :is(.notes-checklist-heading,.personal-notes-save-state){color:#d9c8a6!important}
html[data-theme="dark"] .personal-notes-save-state[data-tone="error"]{color:#f4aeb7!important}
html[data-theme="dark"] .personal-notes-save-state[data-tone="saved"]{color:#a7dcbd!important}
html[data-theme="dark"] :is(.personal-notes-tool,.personal-notes-collapse){background:#30413f!important;color:#e0e9e4!important;border-color:#4b615c!important}
html[data-theme="dark"] .personal-notes-tool[aria-pressed="true"]{background:#4a6256!important;color:white!important}
html[data-theme="dark"] #hub-control-center .home-workflow-dock button b{background:#3e372b!important;color:#f0d4a2!important}
html[data-theme="dark"] #hub-control-center .home-plan-when{color:#b9d9f3!important}
html[data-theme="dark"] #view-member :is(.work-desk-search span,#my-work-more-grid em,.member-action-description,.member-action-person){color:#c1d5ca!important}
html[data-theme="dark"] :is(.calendar-mobile-selected-day,.calendar-detail-event,.calendar-all-day-row,.calendar-drag-hint,.calendar-agenda-group,.calendar-agenda-row){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.calendar-detail-time,.calendar-mobile-selected-head>span){background:#294454!important;color:#c1def1!important}
html[data-theme="dark"] :is(.calendar-detail-untimed,.calendar-detail-arrow,.calendar-agenda-date,.calendar-week-title small,.calendar-week-date){color:var(--muted)!important}
html[data-theme="dark"] .calendar-mobile-week-day i{background:#506978}
html[data-theme="dark"] .calendar-now-line span{background:#a53635;color:#fff}
/* Common action controls, dialogs and floating tools. */
html[data-theme="dark"] :is(.small-action-btn,.outline-btn,.back-btn,.personal-notes-tool,#hub-notes-button){background:var(--dark-action)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.small-action-btn,.outline-btn,.back-btn):not(:disabled):hover{background:var(--dark-action-hover)!important}
html[data-theme="dark"] :is(dialog,[role="dialog"],.modal-panel) :is(header,footer,.modal-header,.modal-footer){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(dialog,[role="dialog"],.modal-panel) :is(label,strong,h2,h3){color:var(--ink)!important}
html[data-theme="dark"] :is(dialog,[role="dialog"],.modal-panel) :is(p,small,.field-help){color:var(--muted)!important}
html[data-theme="dark"] :is(.hub-fab-menu,.hub-toast,.hub-notification-panel,.hub-notification-list,.hub-search-dialog){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important}
/* People, contact preferences, and welcome progress retain meaningful colors. */
html[data-theme="dark"] :is(.moves-person,.moves-metrics,.moves-list-panel,.profile-hero,.profile-section,.profile-summary,.profile-contact-preferences,.profile-editor-section,.moves-name-results){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-moves .moves-person-departed{background:linear-gradient(115deg,#302c27,#1c2831)!important;border-color:#5e5141!important}
html[data-theme="dark"] :is(#view-moves,#view-profile) :is(h2,h3,strong){color:var(--ink)!important}
html[data-theme="dark"] :is(#view-moves,#view-profile) :is(small,p,.moves-departure-date,.moves-departure-label){color:var(--muted)!important}
html[data-theme="dark"] .moves-dialog .moves-name-results button{background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-moves .moves-person-departed .moves-avatar{background:#44392b;color:#eed1a3;border-color:#756044}
html[data-theme="dark"] .welcome-goal-heading :is(strong,span),html[data-theme="dark"] .welcome-goal-steps{color:#b9cbd7!important}
html[data-theme="dark"] .welcome-goal-track{background:#344955}
html[data-theme="dark"] :is(.welcome-goal.overdue .welcome-goal-heading strong,.work-desk-row.is-overdue small){color:#f1c78c!important}
html[data-theme="dark"] .welcome-goal-steps .done{color:#9de2b9!important}
html[data-theme="dark"] :is(.contact-status-panel,.profile-preference-row){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.contact-restriction,.contact-restriction-badge,.welcome-goal.restricted){color:#e7c6e8!important}
/* Messages: legible received/sent bubbles, embedded requests, and composer. */
html[data-theme="dark"] :is(.messages-group-tools,.messages-group-members,.message-attachment-menu,.message-poll,.message-event,.message-request-card,.request-detail-card,.request-work-summary){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] #hub-messages-panel :is(h2,h3,strong,.message-thread-title){color:var(--ink)!important}
html[data-theme="dark"] #hub-messages-panel :is(small,.message-request-note,.message-contact small,.messages-head p){color:var(--muted)!important}
html[data-theme="dark"] #hub-messages-panel .message-thread:hover,html[data-theme="dark"] #hub-messages-panel .message-thread.unread{background:#2b4052!important}
html[data-theme="dark"] #hub-messages-panel .message-avatar{background:#2a4960;color:#b9ddf4}
html[data-theme="dark"] #hub-messages-panel .message-avatar.group{background:#443653;color:#dfc5f1}
/* Remaining shared chrome and leadership workspaces. */
html[data-theme="dark"] :is(.skip-link,#hub-help-shortcut,#hub-help-shortcut>span,.help-mode-btn>span){background:var(--dark-action)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.page-intro p,.overview-helper,.metrics small,.metrics p,.admin-user-active-label span){color:var(--muted)!important}
html[data-theme="dark"] #view-moves .moves-metrics article{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .moves-legend span{color:var(--muted)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-current-identity,.meeting-current-meta,.meeting-step-heading,.meeting-completion-copy,.meeting-step-intro,.meeting-followthrough-notes){color:var(--ink)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-step-heading strong,.meeting-completion-copy h3){color:var(--ink)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-step-heading small,.meeting-step-intro p,#meeting-next-helper,.meeting-followthrough-notes span){color:var(--muted)!important}
html[data-theme="dark"] #view-meeting :is(#meeting-date,#meeting-weekday,#meeting-save-state,.meeting-step-state b){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-meeting .meeting-current-identity .eyebrow{color:#bdd9e4!important}
html[data-theme="dark"] :is(.hub-time-trigger,.invitation-dial,.invitation-wheel-shell){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.invitation-dial [role="spinbutton"],.invitation-wheel-item){color:var(--ink)!important}
html[data-theme="dark"] .invitation-wheel-shell::before,html[data-theme="dark"] .invitation-wheel-shell::after{background:linear-gradient(var(--surface-soft),transparent)!important}
html[data-theme="dark"] :is(.profile-editor-header,.profile-editor-nav,.profile-editor-card,.section-card){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] #profile-shell :is(h2,h3,strong,label){color:var(--ink)!important}
html[data-theme="dark"] #profile-shell :is(p,small,.profile-subline){color:var(--muted)!important}
html[data-theme="dark"] .contact-status-panel{background:#3c2b30!important;border-color:#80535b!important;border-left-color:#eea0a9!important;color:#f1b6bc!important}
html[data-theme="dark"] .contact-status-panel.exempt{background:#2c3447!important;border-color:#596985!important;border-left-color:#b7c7e9!important;color:#c9d6f0!important}
html[data-theme="dark"] :is(#view-moves,#profile-shell) .contact-status-panel :is(strong,p,small,b){color:#f1b6bc!important}
html[data-theme="dark"] :is(#view-moves,#profile-shell) .contact-status-panel.exempt :is(strong,p,small,b){color:#c9d6f0!important}
html[data-theme="dark"] #hub-control-center .home-workflow-dock b,html[data-theme="dark"] #hub-control-center .home-overview-nav b{background:#3e372b!important;color:#f0d4a2!important}
html[data-theme="dark"] #view-member .my-work-calendar-heading{background:linear-gradient(120deg,#1c3346,#1c2c39)!important;border-color:var(--line)}
html[data-theme="dark"] :is(.calendar-day-view-head,.calendar-time-scroll,.calendar-time-gutter,.calendar-sharing-row){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.my-work-calendar-jump span,.calendar-all-day-row>span,.calendar-day-view-head p){color:var(--muted)!important}
html[data-theme="dark"] .calendar-mobile-week-day>span{background:#36586c!important;color:white!important}
html[data-theme="dark"] .calendar-timeline{background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,#2c3e4a 35px,#2c3e4a 36px,transparent 36px,transparent 71px,#405461 71px,#405461 72px)!important}
html[data-theme="dark"] #hub-control-center .home-section-nav b{background:#3e372b!important;color:#f0d4a2!important}
html[data-theme="dark"] #hub-control-center #hub-requests-home{background:linear-gradient(130deg,#1d323e,#1a2934)!important;border-color:var(--line)}
html[data-theme="dark"] #hub-control-center .hub-control-find-icon{background:#2d5065!important;color:#b9e1f5}
html[data-theme="dark"] .calendar-jump-date>span{color:var(--muted)!important}
html[data-theme="dark"] .invitation-wheel-shell::before{background:#2f4d61!important;border-color:#557b94}
html[data-theme="dark"] .invitation-wheel-number{color:#a4bbcf}
html[data-theme="dark"] .invitation-wheel-number.is-selected{color:#ecf5fc}
html[data-theme="dark"] :is(#messages-reply-draft,.message-reply-preview,.message-reactions button){background:#293e50!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #hub-search-sheet :is(.hub-sheet-head,.hub-sheet-close){background:var(--surface)!important;color:var(--ink)!important}

/* Dark hierarchy: canvas, content, inset groups, and raised interactive surfaces.
   Legacy components below consume the same tokens instead of their light fills. */
html[data-theme="dark"] .polished-workspace{--workspace-line:var(--line);--workspace-muted:var(--muted);--workspace-tint:var(--surface-soft)}
html[data-theme="dark"] :is(.page-intro,.topbar){background:transparent!important;box-shadow:none}
html[data-theme="dark"] .sidebar-nav .nav-item:not(.active){background:transparent;color:var(--muted)}
html[data-theme="dark"] .sidebar-nav .nav-item:not(.active):hover{background:var(--surface-soft);color:var(--ink)}
html[data-theme="dark"] :is(label>span,.person-name){color:var(--ink)}
html[data-theme="dark"] :is(.person-id,.mission-quiet,.mission-current-intents span,.mission-next-explanation){color:var(--muted)!important}
html[data-theme="dark"] :is(.person-footer,.comp-footer,.ministering-person-row,.mission-prep-counts,.meeting-session-line){border-color:var(--line)!important}
html[data-theme="dark"] :is(.chip.neutral,.workflow-status){background:var(--surface-soft);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,[contenteditable="true"]){border-color:var(--control-line)!important}
html[data-theme="dark"] :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--teal)}
html[data-theme="dark"] :focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px}
html[data-theme="dark"] :is(button,input,select,textarea):disabled{opacity:.65;cursor:not-allowed}
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea)[aria-invalid="true"]{border-color:var(--color-danger-fg)!important}
html[data-theme="dark"] :is(.form-message.error,[data-tone="error"]){color:var(--color-danger-fg)!important}
html[data-theme="dark"] :is(.modal-backdrop,.member-contact-backdrop,.hub-sheet-backdrop){background:var(--overlay)}
html[data-theme="dark"] :is(.hub-sheet,.patch-modal,.person-suggestions){background:var(--surface-raised)!important;border-color:var(--control-line)!important;color:var(--ink);box-shadow:var(--overlay-shadow)}
html[data-theme="dark"] :is(.hub-sheet,.patch-modal,.member-contact-dialog) label>span{color:var(--ink)!important}
html[data-theme="dark"] :is(.patch-modal-head,.hub-sheet-head,.hub-detail-group,.member-contact-actor-note,.hub-task-all-day-field){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)}
html[data-theme="dark"] #hub-assignment-modal :is(.patch-modal-head,.hub-detail-group,.hub-date-shortcuts button,label:has(#hub-assignment-all-day)){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)}
html[data-theme="dark"] #hub-assignment-modal .hub-date-shortcuts button:hover{background:var(--dark-action-hover)!important}
html[data-theme="dark"] #hub-assignment-modal #hub-assignment-submit{box-shadow:0 -8px 18px var(--surface),0 4px 12px #0003}
html[data-theme="dark"] :is(.member-contact-actions,[data-mission-referral-choice]){background:var(--surface)!important;color:var(--ink)}
html[data-theme="dark"] .person-suggestions button{background:transparent;color:var(--ink)}
html[data-theme="dark"] .person-suggestions button:is(:hover,[aria-selected="true"]){background:var(--selected-bg);color:var(--selected-ink)}
html[data-theme="dark"] :is(.welcome-step,.work-calendar-access,.work-desk-expand){background:var(--surface-soft)!important;color:var(--muted)!important;border-color:var(--line)!important}
html[data-theme="dark"] .welcome-step.done{background:var(--color-success-bg)!important;color:var(--color-success-fg)!important}
html[data-theme="dark"] .welcome-step.current{background:var(--color-info-bg)!important;color:var(--color-info-fg)!important}
html[data-theme="dark"] :is(.welcome-step,.work-calendar-access) :is(strong,small,p){color:inherit!important}

/* Meetings keep their category accents without light headers or paper-white rows. */
html[data-theme="dark"] #view-meeting :is(.meeting-top-card-clean,.meeting-step,.meeting-step-trigger,.meeting-step-body,.meeting-preparation,.meeting-completion-zone,.meeting-archive-card,.meeting-history-head){background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink);box-shadow:none!important}
html[data-theme="dark"] #meeting-current-pane .meeting-step{--step-accent:#b3bef3;--step-soft:var(--surface-soft);--step-line:var(--line)}
html[data-theme="dark"] #meeting-current-pane [data-meeting-step="coordination"]{--step-accent:#aad6f0}
html[data-theme="dark"] #meeting-current-pane [data-meeting-step="people"]{--step-accent:#93dfc5}
html[data-theme="dark"] #meeting-current-pane [data-meeting-step="ministry"]{--step-accent:#efb0c7}
html[data-theme="dark"] #meeting-current-pane :is([data-meeting-step="callings"],[data-meeting-step="carry"]){--step-accent:#d4bafa}
html[data-theme="dark"] #meeting-current-pane .meeting-step.is-open{border-top-color:var(--step-accent)!important}
html[data-theme="dark"] #meeting-current-pane .meeting-step.is-open>.meeting-step-trigger{background:var(--surface-soft)!important}
html[data-theme="dark"] #meeting-current-pane .meeting-step-heading>span{color:var(--muted)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-session-eyebrow,.meeting-weekday-control>span,.meeting-agenda-state,.meeting-session-line strong::before){color:var(--muted)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-session-line strong,.meeting-focus-person-link strong,.meeting-plan-line>strong){color:var(--ink)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-session-progress,.meeting-step-state em,.meeting-session-outcomes span,.meeting-step-next,.meeting-progress-steps button>span,.meeting-focus-row,.meeting-plan-line,.meeting-carry-context){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #meeting-current-pane .meeting-progress-steps button{background:transparent;color:var(--muted)}
html[data-theme="dark"] #meeting-current-pane .meeting-progress-steps button.is-active{background:var(--selected-bg);color:var(--selected-ink)}
html[data-theme="dark"] #view-meeting .meeting-tab.active{background:var(--selected-bg);color:var(--selected-ink);border-color:var(--control-line)}
html[data-theme="dark"] #meeting-current-pane .meeting-progress-steps button.is-reviewed:not(.is-active){background:var(--color-success-bg);color:var(--color-success-fg);border-color:var(--color-success-border)}
html[data-theme="dark"] #meeting-current-pane .meeting-progress-steps button small{color:inherit}
html[data-theme="dark"] #view-meeting #meeting-save-state[data-save-tone="saved"]{background:var(--color-success-bg)!important;color:var(--color-success-fg)!important}
html[data-theme="dark"] #view-meeting #meeting-save-state[data-save-tone="pending"]{background:var(--color-warning-bg)!important;color:var(--color-warning-fg)!important}
html[data-theme="dark"] #view-meeting #meeting-save-state[data-save-tone="error"]{background:var(--color-danger-bg)!important;color:var(--color-danger-fg)!important}
html[data-theme="dark"] #view-meeting .meeting-top-card-clean input::-webkit-calendar-picker-indicator{filter:none;color-scheme:dark}

/* Mission uses content surfaces for cards and inset surfaces for their lists. */
html[data-theme="dark"] #view-mission :is(.mission-week-card,.mission-next-action,.mission-support-card,.mission-sunday-list,.mission-live-work,.mission-present-rail,.mission-work-queue,.mission-save-bar){background:var(--surface)!important;color:var(--ink);border-color:var(--line)!important;box-shadow:none}
html[data-theme="dark"] #view-mission :is(.mission-recent-message,.mission-roster-assignment,.mission-meeting-summary>div,.mission-chat-messages,.mission-queue-item,.mission-attendance-person,.mission-live-progress,.mission-availability-preview,.mission-availability-window,.mission-person-actions){background:var(--surface-soft)!important;color:var(--ink);border-color:var(--line)!important}
html[data-theme="dark"] #view-mission :is(p,small,.mission-current-intents span,.mission-prep-counts,.mission-meeting-summary span){color:var(--muted)}
html[data-theme="dark"] #view-mission :is(.mission-next-action h2,.mission-recent-message strong,.mission-roster-assignment strong){color:var(--ink)}
html[data-theme="dark"] #view-mission .mission-icon{background:var(--color-info-bg);color:var(--color-info-fg)}
html[data-theme="dark"] #view-mission .mission-next-action{border-left:3px solid var(--teal)!important}
html[data-theme="dark"] #view-mission :is(.mission-chat-message,.mission-live-stages button.active,.mission-attendance-person.present){background:var(--color-success-bg)!important;color:var(--color-success-fg);border-color:var(--color-success-border)!important}
@media(hover:hover){html[data-theme="dark"] :is(.person-card,.my-work-preview-card):hover{border-color:var(--control-line)!important}}
html[data-theme="dark"] #view-mission :is(.mission-prep-counts,.mission-prep-counts span,.mission-recent-message time){color:var(--muted)!important}
html[data-theme="dark"] #view-mission .mission-prep-counts strong{color:var(--ink)!important}
html[data-theme="dark"] #hub-assignment-modal .hub-task-more-options{color:var(--dark-link)}
html[data-theme="dark"] :is(.contact-invitation-choice,.hub-inline-toggle){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)}
html[data-theme="dark"] .contact-invitation-choice:has(input:checked){background:var(--color-success-bg)!important;border-color:var(--color-success-border)!important}
html[data-theme="dark"] .contact-invitation-choice small{color:var(--muted)!important}
html[data-theme="dark"] .quick-contact-label{color:var(--ink)}
html[data-theme="dark"] .quick-contact-choice{background:var(--surface-soft);color:var(--ink)}
html[data-theme="dark"] .quick-contact-choice:not(:disabled):hover{background:var(--dark-action-hover);border-color:var(--control-line)}
html[data-theme="dark"] .quick-contact-choice.active{background:var(--selected-bg);color:var(--selected-ink);border-color:var(--control-line);box-shadow:none}
@media(min-width:721px){html[data-theme="dark"] #hub-fab{background:var(--surface-raised);border-color:var(--line)}}
html[data-theme="dark"] #hub-fab>button{border-color:var(--control-line);color:var(--ink);box-shadow:none}
html[data-theme="dark"] :is(#hub-profile-tools,.hub-profile-button,.hub-profile-menu,#hub-notification-btn){background:var(--surface-raised)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-theme="dark"] .hub-profile-menu :is(p,small){color:var(--muted)}

/* Nested meeting work and the account menu use the same dark surface hierarchy. */
html[data-theme="dark"] #view-meeting :is(.weekly-visit-row,.meeting-calling-status,.meeting-calling-recommendation-count){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-meeting .meeting-work-card :is(h2,h3){color:var(--ink)!important}
html[data-theme="dark"] #view-meeting :is(.meeting-step-controls,.weekly-visit-row,.visit-plan-editor){border-color:var(--line)}
html[data-theme="dark"] #view-meeting .meeting-step-controls .meeting-step-prev{background:var(--dark-action);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] #view-meeting .meeting-step-controls .meeting-step-prev:hover{background:var(--dark-action-hover)}
html[data-theme="dark"] #view-meeting .meeting-plan-line[data-due-state="overdue"]{background:var(--color-danger-bg)!important;border-color:var(--color-danger-border)!important}
html[data-theme="dark"] #view-meeting .meeting-plan-line[data-due-state="soon"]{background:var(--color-warning-bg)!important;border-color:var(--color-warning-border)!important}
html[data-theme="dark"] #view-meeting .meeting-plan-line[data-due-state="complete"]{background:var(--color-success-bg)!important;border-color:var(--color-success-border)!important}
html[data-theme="dark"] #view-meeting .meeting-plan-line[data-due-state="overdue"] .meeting-plan-status{color:var(--color-danger-fg)}
html[data-theme="dark"] #view-meeting .meeting-plan-line[data-due-state="soon"] .meeting-plan-status{color:var(--color-warning-fg)}
html[data-theme="dark"] #view-meeting .meeting-plan-line[data-due-state="complete"] .meeting-plan-status{color:var(--color-success-fg)}
html[data-theme="dark"] .hub-profile-menu :is(.hub-profile-admin-tools,.workspace-switcher){background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .hub-profile-menu button[role="menuitem"]{background:transparent;color:var(--ink)}
html[data-theme="dark"] .hub-profile-menu button[role="menuitem"]:hover{background:var(--dark-action-hover)}
html[data-theme="dark"] .hub-profile-menu button[role="menuitem"].danger{color:var(--color-danger-fg)}
html[data-theme="dark"] .hub-profile-menu hr{border-color:var(--line)}
html[data-theme="dark"] #view-meeting .movein-card{background:var(--surface-soft)!important;border-color:var(--line)!important}
html[data-theme="dark"] #view-meeting .movein-card.overdue{border-left-color:var(--color-danger-fg)!important}
html[data-theme="dark"] #view-meeting .movein-card.urgent{border-left-color:var(--color-warning-fg)!important}
html[data-theme="dark"] #view-meeting .movein-card.good{border-left-color:var(--color-success-fg)!important}
html[data-theme="dark"] .welcome-goal .welcome-step b{color:inherit!important}
html[data-theme="dark"] #view-meeting :is(.movein-age,.meeting-plan-line>small,.meeting-helper-copy){color:var(--muted)}
