/* Optional, browser-local dark preview. Light mode remains the default. */
#settings > .settings-workflow-accordion:not(.team-access-panel) { margin-top:12px; }
.settings-footer-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:12px 0; }
.settings-footer-row .delete-ministry-panel { flex:0 0 auto; margin:0 0 0 auto; }
/* A personal appearance shortcut, independent of the page or workspace role. */
.content { position:relative; }
.theme-toggle { position:absolute; z-index:2; top:22px; right:42px; display:grid; width:40px; height:40px; place-items:center; padding:9px; color:var(--muted); background:transparent; border:1px solid transparent; border-radius:8px; }
.theme-toggle:hover { color:var(--navy); background:#eaf0f7; }
.theme-toggle:focus-visible { outline:2px solid #5e94d1; outline-offset:2px; }
.theme-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle .theme-toggle-sun,
.theme-toggle[aria-pressed="true"] .theme-toggle-moon { display:none; }
.theme-toggle[aria-pressed="true"] .theme-toggle-sun { display:inline; }
@media (min-width:701px) { .content > .view > .view-heading { padding-right:56px; } }
@media (max-width:700px) { .theme-toggle { top:18px; right:14px; } }
body:is(.public-checkin-route,.public-camp-registration-route) .theme-toggle { display:none; }

html[data-theme="dark"] {
  color-scheme:dark;
  --navy:#e6e6ea;
  --navy-2:#f3f3f5;
  --cream:#0b0b0d;
  --paper:#171719;
  --ink:#f2f2f4;
  --muted:#b8b8c0;
  --border:#3b3b40;
  --shadow:0 10px 30px rgba(0,0,0,.24);
  --dark-surface:#171719;
  --dark-raised:#222225;
  --dark-soft:#2b2b30;
  --dark-input:#101012;
}
html[data-theme="dark"],
html[data-theme="dark"] body { background:var(--cream); color:var(--ink); }
html[data-theme="dark"] a,
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .inline-link { color:#a9d1ff; }
html[data-theme="dark"] :is(input,select,textarea) { accent-color:#92c2f8; }
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  color:var(--ink);
  background:var(--dark-input);
  border-color:#56565c;
}
html[data-theme="dark"] :is(input,textarea)::placeholder { color:#a0a0a8; opacity:1; }
html[data-theme="dark"] :is(label,legend) { color:#dedee2; }
html[data-theme="dark"] :is(.eyebrow,.muted,small) { color:var(--muted); }
html[data-theme="dark"] :is(h1,h2,h3,h4) { color:var(--ink); }
html[data-theme="dark"] :is(.hero-card,.button-primary,.nav-link.active,.mobile-nav-link.active) :is(h1,h2,h3,h4) { color:#fff; }

/* Navigation and main surfaces. */
html[data-theme="dark"] .sidebar { color:#dedee2; background:#121214; border-color:#3b3b40; }
html[data-theme="dark"] .sidebar .brand-wordmark { color:#f3f3f5; }
html[data-theme="dark"] .sidebar :is(.nav-link,.text-button,.ministry-switcher label) { color:#d0d0d6; }
html[data-theme="dark"] .sidebar .nav-link:hover { color:#fff; background:#29292d; }
html[data-theme="dark"] .sidebar .nav-link.active { color:#fff; background:#38383e; }
html[data-theme="dark"] .sidebar .ministry-switcher select { color:var(--ink); background:#202023; border-color:#5a5a61; }
html[data-theme="dark"] .sidebar-footer { color:#b8b8c0; }
html[data-theme="dark"] .helper-toggle { color:#eeeeef; background:#2a2a2e; border-color:#5a5a61; }
html[data-theme="dark"] .helper-toggle:hover { background:#39393f; }
html[data-theme="dark"] .theme-toggle { color:var(--muted); background:transparent; border-color:transparent; }
html[data-theme="dark"] .theme-toggle:hover { background:#37373c; }
html[data-theme="dark"] .mobile-bottom-nav { background:#151517; border-color:#45454b; box-shadow:0 12px 30px rgba(0,0,0,.4); }
html[data-theme="dark"] .mobile-nav-link { color:#c6c6ce; }
html[data-theme="dark"] .mobile-nav-link.active { color:#fff; background:#38383e; }
html[data-theme="dark"] .mobile-nav-link.active small { color:inherit; }
html[data-theme="dark"] .mobile-ministry-switcher { background:var(--dark-surface); border-color:var(--border); }
html[data-theme="dark"] .mobile-ministry-switcher label { color:#d0d0d6; }
html[data-theme="dark"] .mobile-ministry-switcher select { color:var(--ink); background:var(--dark-input); border-color:#56565c; }
html[data-theme="dark"] .mobile-menu-backdrop:not([hidden]) { background:rgba(0,0,0,.7); }
html[data-theme="dark"] .brand-wordmark { color:#f3f3f5; }
html[data-theme="dark"] .button-primary { color:#141416; background:#e6e6e9; }
html[data-theme="dark"] .button-primary:hover { background:#fff; }
html[data-theme="dark"] #events [data-open-calendar-settings] { color:#141416; background:#e6e6e9; border-color:#b8b8bf; }
html[data-theme="dark"] #events [data-open-calendar-settings]:hover { background:#fff; }
html[data-theme="dark"] #people [data-open-people-settings] { color:#141416; background:#e6e6e9; border-color:#b8b8bf; }
html[data-theme="dark"] #people [data-open-people-settings]:hover { background:#fff; }
html[data-theme="dark"] #people .people-tools-link { color:#142b45; background:#cfe5f5; border-color:#aacce5; }
html[data-theme="dark"] #people .people-tools-link:hover { background:#e0f0fa; }
html[data-theme="dark"] :is(.button-secondary,.button-light,.date-picker-trigger,.close-dialog) { color:#e8e8ec; background:#303035; border-color:#57575e; }
html[data-theme="dark"] :is(.button-secondary,.button-light,.date-picker-trigger,.close-dialog):hover { background:#404047; }
html[data-theme="dark"] .button-ghost { color:#f0f0f2; }
html[data-theme="dark"] .hero-card { background:linear-gradient(118deg,#19191c,#29292e 65%,#39393f); }
html[data-theme="dark"] .hero-card :is(h2,p) { color:#f5f5f7; }
html[data-theme="dark"] .first-time-alert { color:#d7f3df; background:#193e32; border-color:#3c7658; }
html[data-theme="dark"] .first-time-alert-heading small,html[data-theme="dark"] .first-time-alert > p { color:#bdd9c7; }
html[data-theme="dark"] .first-time-alert-icon { color:#0b261a; background:#8bd3a0; }
html[data-theme="dark"] .first-time-alert-list li > :is(button,span) { color:#e7faeb; background:#214638; border-color:#427b58; }
html[data-theme="dark"] .first-time-alert-list button:hover,html[data-theme="dark"] .first-time-alert-list button:focus-visible { background:#2d5a43; border-color:#8bd3a0; }
html[data-theme="dark"] .first-time-alert-list small { color:#b9d6c3; }

html[data-theme="dark"] :is(
  .panel,.metric-card,.phone-card,.registration-card,.returning-card,.new-person-card,
  .event-card,.master-calendar-card,.calendar-master-calendar-panel,.account-dialog,
  .first-time-setup-dialog,.edit-event-dialog,.event-date-picker-dialog,.security-dialog-card,
  .photo-video-release-dialog,.settings-workflow-accordion,.event-plan-import,
  .event-plan-import-dialog,.inbox-thread,.camp-dashboard-card,.public-camp-registration-card
) { color:var(--ink); background:var(--dark-surface); border-color:var(--border); box-shadow:var(--shadow); }
html[data-theme="dark"] :is(.panel,.metric-card,.event-card,.master-calendar-card) p { color:var(--muted); }
html[data-theme="dark"] :is(.metric-value,.event-card h3,.master-calendar-card h3) { color:var(--ink); }
html[data-theme="dark"] .event-card::after { background:#3b3b40; }
html[data-theme="dark"] .event-card:nth-child(2)::after { background:#4c3a31; }
html[data-theme="dark"] .event-card:nth-child(3)::after { background:#493744; }
html[data-theme="dark"] :is(.date-badge,.privacy-note,.calendar-banner,.reminder-preview,.returning-details-notice,.event-checkin-event-details,.inbox-connection-note) {
  color:#dedee3;
  background:var(--dark-raised);
  border-color:var(--border);
}
html[data-theme="dark"] :is(.date-badge,.reminder-preview b,.calendar-banner p,.calendar-master-label) { color:#e4e4e8; }
html[data-theme="dark"] .checkin-raffle-warmup { background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .checkin-raffle-warmup p { color:#d0d0d6; }
html[data-theme="dark"] .checkin-raffle-warmup-letter { color:#141416; background:#e6e6e9; }
html[data-theme="dark"] :is(
  .completed-events-archive,.completed-messages-archive,.people-role-manager,.people-duplicate-manager,
  .first-time-message-accordion,.message-audience-accordion,
  .message-event-accordion,.message-timing-calendar-accordion,
  .dashboard-checkin-report-panel,.dashboard-event-report,.dashboard-attendance-progress,
  .event-communication-audience-accordion,.student-leader-field,.person-additional-roles
) { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] :is(
  .completed-events-archive,.completed-messages-archive,.people-role-manager,.people-duplicate-manager,
  .first-time-message-accordion,.message-audience-accordion,.message-event-accordion,
  .message-timing-calendar-accordion,.dashboard-checkin-report-panel,.dashboard-event-report,
  .dashboard-attendance-progress,.event-communication-audience-accordion,
  .student-leader-picker,.person-additional-roles
) > summary { color:#ededf0; }
html[data-theme="dark"] .calendar-master-calendar-panel .completed-events-archive > summary {
  color:#ededf0;
  background:var(--dark-raised);
}
html[data-theme="dark"] .calendar-list-row:is(.events-calendar-event,.camps-calendar-event) { background:var(--dark-surface); }
html[data-theme="dark"] .calendar-list-row.completed-calendar-event { background:#2b2925; }
html[data-theme="dark"] .completed-calendar-event .card-date { color:#e3c98e; }
html[data-theme="dark"] :is(.completed-events-actions,.completed-events-select-toolbar,.completed-events-delete-actions) {
  color:#dedee2;
  background:var(--dark-raised);
  border-color:var(--border);
}
html[data-theme="dark"] :is(.completed-events-empty,.completed-events-select-toolbar > span) { color:#c6c6cc; }
html[data-theme="dark"] :is(.completed-events-archive,.completed-messages-archive) > summary strong {
  color:#f5f5f7;
  background:#44444b;
}
html[data-theme="dark"] :is(.dashboard-checkin-report-panel,.dashboard-event-report,.dashboard-attendance-progress) > summary > strong,
html[data-theme="dark"] .student-leader-picker > summary strong { color:#f0f0f2; background:#44444b; }
html[data-theme="dark"] :is(.dashboard-checkin-report-content,.dashboard-event-report-content,.dashboard-attendance-progress-content) { border-color:var(--border); }
html[data-theme="dark"] :is(.dashboard-event-report > summary small,.dashboard-checkin-report-content > p,.dashboard-attendance-progress-content > p,.event-communication-audience-accordion summary > span,.event-communication-audience-accordion summary > small) { color:#c6c6cc; }
html[data-theme="dark"] :is(.student-leader-option,.student-leader-option.is-selected) { color:var(--ink) !important; background:#2b2b30; border-color:var(--border); }
html[data-theme="dark"] .student-leader-option small { color:#c6c6cc; }
html[data-theme="dark"] .student-primary-leader-field { color:#d0d0d6 !important; border-color:var(--border); }
html[data-theme="dark"] .student-leader-choice { color:#dedee2; background:#38383e; border-color:#686870; }
html[data-theme="dark"] .student-leader-choice.is-selected { color:#141416; background:#e6e6e9; border-color:#e6e6e9; }
html[data-theme="dark"] .person-additional-roles > summary strong { color:#f5f5f7; background:#44444b; }
html[data-theme="dark"] .person-additional-role-option { color:#dedee2 !important; background:#2b2b30; border-color:var(--border); }
html[data-theme="dark"] .dashboard-checkin-metrics span { color:#d0d0d6; background:#323238; }
html[data-theme="dark"] .dashboard-checkin-metrics b { color:#ededf0; }
html[data-theme="dark"] :is(.people-duplicate-empty,.promotion-review-empty,.message-event-hint) { color:#c9c9cf; background:#29292d; border-color:var(--border); }
html[data-theme="dark"] .message-person-picker { border-color:var(--border); }
html[data-theme="dark"] .message-person-picker :is(.message-person-count,.message-person-picker-hint,.message-person-empty) { color:#c9c9cf; }
html[data-theme="dark"] .message-person-results li > button { color:var(--ink); background:#29292e; border-color:var(--border); }
html[data-theme="dark"] .message-person-results li > button:hover { background:#38383e; border-color:#85858d; }
html[data-theme="dark"] .message-person-selected li { color:#dcf3e6; background:#214336; border-color:#46745c; }
html[data-theme="dark"] .message-person-selected li > button { color:#dcf3e6; background:#32624a; }
html[data-theme="dark"] .message-person-selected li > button:hover { background:#40775a; }
html[data-theme="dark"] :is(.table-panel th,.table-panel td,.event-row,.checkin-row,.returning-person) { border-color:var(--border); }
html[data-theme="dark"] .table-panel th { color:#ceced4; background:#29292d; }
html[data-theme="dark"] .table-panel td { color:var(--ink); }

/* Forms, settings, calendar, people, and planning. */
html[data-theme="dark"] :is(
  .ministry-setup-step,.settings-workflow-accordion-content,.ministry-connected-accounts,
  .event-plan-start,.event-plan-add-controls,.event-plan-templates,.event-plan-import-row,
  .event-plan-import-new-fields,.event-plan-import-preview,.event-plan-context span,
  .message-preview-card,.message-schedule-options,.quick-add-events-preview,
  .bulk-event-rename-preview,.people-import-consent-status,
  .school-calendar-helper-suggestions,.calendar-helper-file-list li,
  .camp-dashboard-resources,.camp-dashboard-event-summary,.camp-dashboard-event-editor
) { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] :is(.ministry-schools-settings,.ministry-grade-settings,.ministry-photo-video-release) {
  color:var(--ink);
  background:var(--dark-raised);
  border-color:var(--border);
}
html[data-theme="dark"] :is(.ministry-schools-settings,.ministry-grade-settings,.ministry-photo-video-release) > legend { color:#ededf0; }
html[data-theme="dark"] :is(.ministry-schools-settings,.ministry-grade-settings,.ministry-photo-video-release) > p,
html[data-theme="dark"] :is(.ministry-schools-settings,.ministry-grade-settings,.ministry-photo-video-release) > small,
html[data-theme="dark"] :is(.ministry-school-add,.ministry-grade-settings) label,
html[data-theme="dark"] .ministry-photo-video-release-option { color:#d0d0d6; }
html[data-theme="dark"] :is(.ministry-school-empty,.ministry-school-list li) { color:#c6c6cc; background:#29292d; border-color:var(--border); }
html[data-theme="dark"] .ministry-school-list :is(b,small) { color:#dedee2; }
html[data-theme="dark"] .ministry-grade-settings label small { color:#b8b8c0; }
html[data-theme="dark"] :is(.ministry-setup-step.is-complete,.event-plan-import-confirmation) { color:#bff0d4; background:#183b38; border-color:#367464; }
html[data-theme="dark"] :is(.ministry-setup-guide-heading h3,.ministry-setup-step-title h4,.settings-workflow-accordion > summary,.event-plan-templates > summary,.event-plan-start h3,.inbox-thread-heading h3,.inbox-conversation-heading h3) { color:#f0f0f2; }
html[data-theme="dark"] :is(.ministry-setup-step p,.ministry-setup-step small,.event-plan-start > p,.event-plan-status,.event-plan-import-content > p,.event-plan-import-row-heading small,.event-plan-templates p,.calendar-event-options-subheader) { color:#c6c6cc; }
html[data-theme="dark"] .ministry-setup-step-title span { color:#e3e3e7; background:#38383e; }
html[data-theme="dark"] .ministry-setup-step.is-complete .ministry-setup-step-title span { color:#baf0d1; background:#235044; }
html[data-theme="dark"] .ministry-setup-guide-security { color:#d5d5da; background:#28282c; }
html[data-theme="dark"] .ministry-setup-guide-progress { color:#d9e9fb; background:#293e56; }
html[data-theme="dark"] .ministry-setup-wizard-step { color:#d0d0d6; background:#29292e; border-color:#505057; }
html[data-theme="dark"] .ministry-setup-wizard-step.is-current { color:#f5f5f7; background:#39393f; border-color:#96969e; }
html[data-theme="dark"] .ministry-setup-wizard-step.is-complete { color:#c2ead4; background:#24443e; border-color:#4b8271; }
html[data-theme="dark"] .ministry-setup-wizard-step > span { color:#ededf0; background:#505057; }
html[data-theme="dark"] .ministry-setup-wizard-step.is-complete > span { color:#d9f5e5; background:#34745e; }
html[data-theme="dark"] .view#settings .ministry-setup-wizard-steps.is-settings-selector button {
  color:#dedee2;
  background:var(--dark-raised);
  border-color:var(--border);
  box-shadow:none;
}
html[data-theme="dark"] .view#settings .ministry-setup-wizard-steps.is-settings-selector button b { color:#ededf0; }
html[data-theme="dark"] .view#settings .ministry-setup-wizard-steps.is-settings-selector button:hover { color:#fff; background:#323238; border-color:#777781; }
html[data-theme="dark"] .view#settings .ministry-setup-wizard-steps.is-settings-selector button.is-current {
  color:#f5f5f7;
  background:#38383e;
  border-color:#9999a0;
  box-shadow:none;
}
html[data-theme="dark"] :is(.messaging-setup-step,.sms-number-setup) { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] :is(.messaging-setup-step h3,.sms-number-setup-heading h3) { color:#ededf0; }
html[data-theme="dark"] :is(.messaging-setup-step > p,.messaging-setup-step > label,.messaging-setup-step > label small,.sms-number-setup-heading p) { color:#c6c6cc; }
html[data-theme="dark"] .sms-number-setup-status { color:#dedee2; background:#3a3a40; }
html[data-theme="dark"] .sms-number-setup-status.is-pending { color:#f2dea7; background:#493e24; }
html[data-theme="dark"] .sms-number-setup-status.is-connected { color:#c8f0d8; background:#234738; }
html[data-theme="dark"] :is(.form-customization-manager,.form-customization-row,.ministry-camp-event-setup) { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] :is(.form-customization-manager summary,.ministry-camp-event-setup strong,.form-customization-row > b,.form-customization-row > span > b) { color:#ededf0; }
html[data-theme="dark"] :is(.form-customization-content > p,.ministry-camp-event-setup p,.form-customization-row label,.form-customization-row small) { color:#c5c5cc; }
html[data-theme="dark"] .event-plan-scroll { border-color:var(--border); }
html[data-theme="dark"] .event-plan-table :is(th,td) { color:var(--ink); background:var(--dark-surface); border-color:var(--border); }
html[data-theme="dark"] .event-plan-table :is(thead th,tbody th),
html[data-theme="dark"] .event-plan-table .event-plan-time-cell { color:#e8e8ec; background:#29292e; }
html[data-theme="dark"] .event-plan-table :is(th input,th small,.event-plan-time-cell label,.event-plan-time-cell small,.event-plan-people-cell label,.event-plan-table td > small) { color:#d0d0d6; }
html[data-theme="dark"] .event-plan-table :is(input,select,textarea) { color:var(--ink); background:var(--dark-input); border-color:#5b5b62; }
html[data-theme="dark"] .event-plan-task.is-overdue .event-plan-task-status { color:#ffb5a8; }
html[data-theme="dark"] .event-plan-task.is-completed .event-plan-task-status { color:#a7dec2; }
html[data-theme="dark"] :is(.message-timing-calendar,.event-communication-month-calendar-month) { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .message-editor-tip { color:#f0dfb4; background:#3b3424; border-color:#665733; }
html[data-theme="dark"] .new-friend-role-option { color:#e5e5e9 !important; }
html[data-theme="dark"] :is(.calendar-checkbox-options label,.checkin-calendar-option,.message-audience-option,.message-event-calendar-option,.reminder-calendar-option,.new-friend-role-option,.copy-option-list > label,.import-mode-options label,.import-calendar-review-option,.calendar-transfer-options label,.calendar-backup-option,.person-additional-role-option,.small-group-option,.prayer-list-role-options label,.sms-setup-choice-options label,.event-communication-channel-options label,.event-communication-audience-options label,.event-communication-prayer-distribution-options label) { color:#e5e5e9 !important; }
html[data-theme="dark"] :is(.calendar-tab,.calendar-list,.calendar-form,.calendar-master-tip,.role-button,.reminder-calendar-option) { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .calendar-tab:not(.calendar-tab-all).active { color:#f5f5f7; background:#414147; border-color:#a2a2aa; box-shadow:0 0 0 1px #a2a2aa inset; }
html[data-theme="dark"] .calendar-tab.calendar-tab-all.active { color:#e7f6fb; background:#254351; border-color:#7fa9b9; box-shadow:0 0 0 1px #7fa9b9 inset; }
html[data-theme="dark"] :is(.role-button.selected,.inbox-thread.active) { color:var(--ink); background:#38383e; border-color:#9999a0; }
html[data-theme="dark"] :is(.calendar-tabs,.account-mode-tabs) { background:#29292e; }
html[data-theme="dark"] .account-mode-button { color:#d0d0d6; }
html[data-theme="dark"] .account-mode-button.active { color:#f5f5f7; background:#414147; }

/* Inbox and dialogs. Outgoing message previews deliberately retain paper colors. */
html[data-theme="dark"] .inbox-thread { color:#e0e0e4; background:#222225; border-color:var(--border); }
html[data-theme="dark"] :is(.inbox-thread,.inbox-thread.active) { box-shadow:none; }
html[data-theme="dark"] .inbox-thread:hover { background:#323237; }
html[data-theme="dark"] .inbox-status-pill.is-open { color:#c9e5f8; background:#284555; }
html[data-theme="dark"] :is(.inbox-status-pill.is-resolved,.inbox-resolved-pill) { color:#d0d0d6; background:#39393f; }
html[data-theme="dark"] .inbox-message.incoming { color:var(--ink); background:#303035; }
html[data-theme="dark"] .inbox-message.outgoing { color:#fff; background:#414147; }
html[data-theme="dark"] .inbox-thread-preview { color:#c4c4cb; }
html[data-theme="dark"] .inbox-reply-preview { color:#ededf0; background:#222225; border-color:var(--border); }
html[data-theme="dark"] .inbox-reply-preview-heading small { color:#c4c4cb; }
html[data-theme="dark"] .inbox-reply-preview-thread { background:#111113; }
html[data-theme="dark"] .inbox-reply-preview-thread p { background:#414147; }
html[data-theme="dark"] .inbox-reply-preview-thread p.is-empty { color:#e0e0e4; background:#36363b; }
html[data-theme="dark"] :is(.message-preview-phone,.message-preview-email,.message-preview-instagram) {
  --navy:#19345b;
  --ink:#19253a;
  --muted:#65708a;
  color:var(--ink);
}
html[data-theme="dark"] :is(.message-preview-phone,.message-preview-email,.message-preview-instagram) :is(h1,h2,h3,h4) { color:#19253a; }
html[data-theme="dark"] :is(.message-preview-phone,.message-preview-email,.message-preview-instagram) small { color:#65708a; }
html[data-theme="dark"] :is(.message-preview-email,.message-phone-frame,.instagram-post-frame) { background:#fff; }
html[data-theme="dark"] :is(.message-email-header,.message-preview-bubble) { color:#19253a; background:#e8edf3; }
html[data-theme="dark"] :is(.account-dialog,.first-time-setup-dialog,.edit-event-dialog,.event-date-picker-dialog) { color:var(--ink); }
html[data-theme="dark"] :is(.account-dialog,.first-time-setup-dialog,.edit-event-dialog,.event-date-picker-dialog)::backdrop { background:rgba(3,9,17,.78); }
html[data-theme="dark"] .account-dialog-card .account-dialog-logo .brand-wordmark { color:#f1f7ff; }
html[data-theme="dark"] :is(.account-form > label,.edit-form-grid label,.first-time-setup-grid > label,.first-time-grade-range label,.calendar-helper-file,.event-plan-file,.backup-passphrase-field,.beta-code-manager-form label) { color:#dedee2; }
html[data-theme="dark"] :is(.account-privacy-note,.account-policy-confirm,.checkin-privacy-note,.account-auth-status,.workspace-save-status) { color:#c6c6cc; border-color:var(--border); }
html[data-theme="dark"] .security-dialog-card { background:var(--dark-surface); }
html[data-theme="dark"] .security-dialog-card > p,
html[data-theme="dark"] .security-policy-footnote,
html[data-theme="dark"] .security-dialog-card .account-policy-confirm > label { color:#d0d0d6; }
html[data-theme="dark"] .security-policy-grid section { background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .security-policy-grid h3 { color:#f2f2f4; }
html[data-theme="dark"] .security-policy-grid p { color:#d0d0d6; }
html[data-theme="dark"] :is(.close-dialog,.dialog-close) { color:#e9e9ed; }
html[data-theme="dark"] .helper-panel { color:var(--ink); background:var(--dark-surface); border-color:var(--border); }
html[data-theme="dark"] .helper-message-bot { color:var(--ink); background:var(--dark-raised); }
html[data-theme="dark"] .helper-message-bot b { color:#a9d1ff; }
html[data-theme="dark"] .helper-message-user { color:#fff; background:#38383e; }
html[data-theme="dark"] .helper-suggestions button { color:var(--ink); background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .helper-suggestions button:hover { color:#fff; background:#38383e; }
html[data-theme="dark"] body.public-checkin-route .app-shell,
html[data-theme="dark"] body.public-camp-registration-route .app-shell { background:var(--cream); }
html[data-theme="dark"] .public-camp-registration-card label,
html[data-theme="dark"] .public-camp-registration-card legend { color:#dedee2; }
html[data-theme="dark"] .public-camp-registration-brand > p:not(.public-checkin-local-note) { color:var(--muted); }

@media (max-width:700px) {
  html[data-theme="dark"] .sidebar { overflow-y:auto; }
}

html[data-theme="dark"] .event-communication-workspace .event-communication-timeline-button { background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .event-communication-workspace .event-communication-timeline-button:is(:hover,.is-selected) { background:#243930; border-color:#74bea7; }
html[data-theme="dark"] .event-communication-workspace :is(.event-communication-timeline-empty,.event-communication-preview-plan-status) { background:#243930; color:#d5eadd; border-color:#4b715d; }
html[data-theme="dark"] .event-communication-workspace .event-communication-timeline-status { color:#abd4bd; }
html[data-theme="dark"] .event-communication-workspace .event-communication-timeline-list::before { background:#496254; }
html[data-theme="dark"] .event-communication-workspace .event-communication-timeline-meta { color:#9cc4e2; }
html[data-theme="dark"] .event-communication-helper-launch { background:var(--dark-raised); border-color:var(--border); }
html[data-theme="dark"] .event-communication-helper-launch .eyebrow { color:#abd4bd; }
html[data-theme="dark"] .people-import-summary,
html[data-theme="dark"] .people-import-person.is-skipped { background:#202022; border-color:#3b3b3f; }
html[data-theme="dark"] .people-import-worksheets fieldset { border-color:#3b3b3f; }
html[data-theme="dark"] .people-import-person select,
html[data-theme="dark"] .people-import-edit-grid input { background:#111113; color:#eeeef0; border-color:#4c4c52; }
html[data-theme="dark"] .people-import-error { color:#ffb3a7; }
html[data-theme="dark"] #people-import-error:not([hidden]) { background:#352320; border-color:#70443d; }
html[data-theme="dark"] .people-import-quick-options select { background:#111113; color:#eeeef0; border-color:#4c4c52; }
html[data-theme="dark"] .people-import-adjustments { background:#161618; border-color:#3b3b3f; }
html[data-theme="dark"] .people-import-adjustments[open] > summary { border-color:#3b3b3f; }
html[data-theme="dark"] .people-import-adjustments > summary,
html[data-theme="dark"] .people-import-template-link a { color:#d6e5f7; }
html[data-theme="dark"] .people-import-preview tr.is-skipped { background:#202022; }
html[data-theme="dark"] .people-import-dialog .people-import-consent-note { background:none; color:var(--muted); }
