﻿/* Halloween: a quiet autumn night with pumpkin accents and moonlit type.
 * Screen-only and strictly optional. Original documents, map tiles, QR codes and
 * print use their existing palettes. Seasonal details are static CSS backgrounds.
 * Local Atkinson fonts are declared by theme-atlas.css; Georgia needs no asset.
 */
@media screen {
  html[data-theme="halloween"][data-color-scheme="dark"] {
    color-scheme: dark;
    --halloween-canvas: #16151c;
    --halloween-surface: #211f29;
    --halloween-subtle: #2c2934;
    --halloween-selected: #443025;
    --halloween-control: #141319;
    --halloween-pumpkin: #ffac63;
    --halloween-pumpkin-hover: #ffc18a;
    --halloween-action-ink: #24180f;
    --halloween-moon: #fff0d4;
    --halloween-line: #615869;
    --halloween-field-border: #9b8e9e;
    --halloween-focus: #ffe1a0;
    --halloween-header: #211b23;
    --halloween-shadow: #08070c80;
    --font-body: 'Aptos', 'Segoe UI', sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --serif: var(--font-heading);
    --title-page: 2rem;
    --title-section: 1.5rem;
    --title-card: 1.5rem;
    --title-detail: 1.25rem;
    --text-body: 1rem;
    --text-small: var(--text-body);
    --text-meta: .875rem;
    --heading-weight: 500;
    --card-radius: 14px;
    --radius-8px: 8px;
    --radius-6px: 6px;
    --blue: var(--halloween-pumpkin);
    --link: var(--halloween-pumpkin);
    --navy: var(--halloween-moon);
    --text: #f6eee3;
    --muted: #d0c3bd;
    --line: var(--halloween-line);
    --surface: var(--halloween-surface);
    --surface-subtle: var(--halloween-subtle);
    --surface-selected: var(--halloween-selected);
    --control-border: var(--halloween-field-border);
    --button-surface: var(--surface-subtle);
    --button-text: var(--text);
    --button-border: var(--control-border);
    --button-hover-surface: var(--surface-selected);
    --button-hover-text: var(--halloween-moon);
    --button-hover-border: var(--halloween-pumpkin);
    --theme-canvas: var(--halloween-canvas);
    --theme-surface: var(--surface);
    --theme-subtle: var(--surface-subtle);
    --theme-selected: var(--surface-selected);
    --theme-control: var(--halloween-control);
    --theme-text: var(--text);
    --theme-muted: var(--muted);
    --theme-link: var(--link);
    --theme-border: var(--line);
    --theme-control-border: var(--control-border);
    --theme-focus: var(--halloween-focus);
    --theme-action-hover: var(--halloween-pumpkin-hover);
    --theme-navigation: #55331f;
    --theme-error-surface: #42282f;
    --theme-error-text: #ffc5c5;
    --theme-error-border: #db949e;
    --theme-warning-surface: #403323;
    --theme-warning-text: #ffe1a0;
    --theme-warning-border: #c0a16e;
    --theme-success-surface: #23382f;
    --theme-success-text: #b4e4c7;
    --theme-success-border: #82b397;
    --theme-category-surface: #352d45;
    --theme-category-text: #e2cff7;
    --theme-category-border: #b19ac9;

    /* Semantic aliases cover forms, assistance, feedback, management and cases. */
    --ai-panel-border: var(--theme-border);
    --ai-panel-surface: var(--theme-surface);
    --ai-entry-mark-border: var(--theme-border);
    --ai-entry-mark-surface: var(--theme-subtle);
    --ai-entry-hover-surface: var(--theme-selected);
    --ai-body-border-top: var(--theme-border);
    --ai-boundary-text: var(--theme-muted);
    --ai-question-text: var(--theme-text);
    --ai-question-textarea-text: var(--theme-text);
    --ai-question-textarea-border: var(--theme-control-border);
    --ai-question-textarea-surface: var(--theme-control);
    --ai-processing-text: var(--theme-muted);
    --ai-cancel-text: var(--theme-muted);
    --ai-cancel-border: var(--theme-border);
    --ai-panel-button-focus-visible-outline: var(--theme-focus);
    --ai-status-text: var(--theme-muted);
    --ai-unavailable-surface: var(--theme-subtle);
    --ai-unavailable-border-left: var(--theme-border);
    --ai-unavailable-text: var(--theme-muted);
    --ai-unavailable-strong-text: var(--theme-text);
    --ai-error-border-left: var(--theme-error-border);
    --ai-error-surface: var(--theme-error-surface);
    --ai-error-text: var(--theme-error-text);
    --ai-result-border-top: var(--theme-border);
    --ai-statements-li-before-text: var(--theme-muted);
    --ai-statements-li-p-text: var(--theme-text);
    --ai-source-surface: var(--theme-subtle);
    --ai-source-border: var(--theme-border);
    --ai-source-summary-text: var(--theme-muted);
    --ai-source-p-border-top: var(--theme-border);
    --ai-source-p-text: var(--theme-muted);
    --ai-classification-surface: var(--theme-subtle);
    --ai-classification-border-left: var(--theme-border);
    --ai-limitations-border-top: var(--theme-border);
    --ai-review-border-top: var(--theme-border);
    --ai-review-button-border: var(--theme-border);
    --ai-review-button-surface: var(--theme-surface);
    --ai-review-button-disabled-text: var(--theme-muted);
    --ai-review-button-disabled-border: var(--theme-border);
    --ai-settings-dl-div-border-top: var(--theme-border);
    --ai-settings-dd-text: var(--theme-text);
    --version-heading-icon-border: var(--theme-border);
    --version-heading-icon-surface: var(--theme-subtle);
    --version-current-card-border: var(--theme-border);
    --version-current-card-surface: var(--theme-surface);
    --version-running-span-surface: var(--theme-success-text);
    --version-running-span-shadow: var(--theme-success-surface);
    --version-current-facts-border-left: var(--theme-border);
    --version-history-version-filters-surface: var(--theme-surface);
    --version-history-version-filters-border: var(--theme-border);
    --version-history-version-filters-input-border: var(--theme-control-border);
    --version-timeline-entry-border-left: var(--theme-border);
    --version-timeline-marker-surface: var(--theme-surface);
    --version-timeline-marker-border: var(--theme-border);
    --version-timeline-marker-shadow: var(--theme-canvas);
    --version-entry-card-surface: var(--theme-surface);
    --version-entry-card-border: var(--theme-border);
    --version-category-text: var(--theme-link);
    --version-category-surface: var(--theme-subtle);
    --version-category-is-neu-text: var(--theme-success-text);
    --version-category-is-neu-surface: var(--theme-success-surface);
    --version-category-is-verbessert-text: var(--theme-link);
    --version-category-is-verbessert-surface: var(--theme-subtle);
    --version-category-is-behoben-text: var(--theme-warning-text);
    --version-category-is-behoben-surface: var(--theme-warning-surface);
    --version-category-is-dokumentation-text: var(--theme-muted);
    --version-category-is-dokumentation-surface: var(--theme-subtle);
    --version-category-is-administration-text: var(--theme-category-text);
    --version-category-is-administration-surface: var(--theme-category-surface);
    --version-state-border: var(--theme-border);
    --version-state-surface: var(--theme-subtle);
    --version-state-error-surface: var(--theme-error-surface);
    --version-state-error-border: var(--theme-error-border);
    --version-current-facts-border-top: var(--theme-border);
    --initiative-results-h3-tabindex-1-focus-visible-outline: var(--theme-focus);
    --management-mail-notice-tone-warning-border: var(--theme-warning-border);
    --need-status-is-recorded-surface: var(--theme-success-surface);
    --need-status-is-recorded-text: var(--theme-success-text);
    --need-status-is-recorded-border: var(--theme-success-border);
    --application-error-surface: var(--theme-error-surface);
    --application-error-text: var(--theme-error-text);
    --application-error-border: var(--theme-error-border);
    --application-warning-surface: var(--theme-warning-surface);
    --application-warning-text: var(--theme-warning-text);
    --application-warning-border: var(--theme-warning-border);
    --application-receipt-surface: var(--theme-success-surface);
    --application-receipt-text: var(--theme-success-text);
    --application-receipt-border: var(--theme-success-border);
    --need-fields-field-error-text: var(--theme-error-text);
    --document-error-text: var(--theme-error-text);
    --interview-calendar-step-input-surface: var(--theme-control);
    --interview-calendar-error-text: var(--theme-error-text);
    --interview-calendar-dx-scheduler-appointment-dx-state-focused-shadow: var(--theme-focus);
    --interview-calendar-dx-scheduler-appointment-dx-state-hover-surface: var(--theme-action-hover);
    --m5-contract-document-focus-within-outline: var(--theme-focus);
    --m5-list-warning-ui-icon-note-text: var(--theme-warning-text);
    --m6-map-marker-is-cluster-surface: var(--theme-action-hover);
    --m6-map-marker-focus-visible-outline: var(--theme-focus);
    --m6-map-area-stroke: var(--theme-action-hover);
    --portal-fields-field-error-text: var(--theme-error-text);
    --role-context-menu-summary-focus-visible-outline: var(--theme-focus);
    --support-workspace-platform-tabs-a-current-page-hover-surface: var(--theme-navigation);
    --help-center-where-button-not-ai-panel-button-surface: var(--theme-surface);
    --help-center-where-button-not-ai-panel-button-border: var(--theme-border);
    --help-center-where-button-not-ai-panel-button-hover-border: var(--theme-border);
    --help-center-where-button-not-ai-panel-button-hover-surface: var(--theme-selected);
    --help-center-where-input-not-type-checkbox-not-type-radio-text: var(--theme-text);
    --help-center-where-input-not-type-checkbox-not-type-radio-surface: var(--theme-control);
    --help-center-where-input-not-type-checkbox-not-type-radio-border: var(--theme-control-border);
    --help-center-where-label-text: var(--theme-text);
    --help-center-focus-visible-outline: var(--theme-focus);
    --help-layout-article-surface: var(--theme-surface);
    --help-layout-button-current-page-border: var(--theme-navigation);
    --help-editor-details-border-top: var(--theme-border);
    --field-help-border: var(--theme-border);
    --field-help-surface: var(--theme-subtle);
    --field-help-text: var(--theme-link);
    --version-day-border-top: var(--theme-border);
    --details-summary-focus-visible-outline: var(--theme-focus);
    --ui-button-ui-button-primary-hover-not-disabled-surface: var(--theme-action-hover);
    --ui-button-ui-button-primary-hover-not-disabled-border: var(--theme-action-hover);
    --success-message-message-dismiss-hover-surface: var(--theme-success-surface);
    --ai-source-content-border-top: var(--theme-border);
    --feedback-compose-surface: var(--theme-surface);
    --feedback-panel-label-text: var(--theme-muted);
    --feedback-panel-input-border: var(--theme-control-border);
    --feedback-panel-input-text: var(--theme-text);
    --feedback-panel-input-surface: var(--theme-control);
    --feedback-panel-input-focus-outline: var(--theme-focus);
    --feedback-screenshot-img-surface: var(--theme-subtle);
    --feedback-list-button-surface: var(--theme-surface);
    --feedback-list-button-pressed-true-surface: var(--theme-selected);
    --feedback-status-surface: var(--theme-subtle);
    --feedback-history-p-text: var(--theme-muted);
    --feedback-review-surface: var(--theme-subtle);
    --feedback-public-comment-border-left: var(--theme-border);
    --feedback-error-border-left: var(--theme-error-border);
    --feedback-error-surface: var(--theme-error-surface);
    --feedback-notice-border: var(--theme-success-border);
    --feedback-notice-surface: var(--theme-success-surface);
    --mail-dispatch-select-wrapper-form-select-surface: var(--theme-control);
    --mail-dispatch-state-tone-success-border: var(--theme-success-border);
    --mail-dispatch-state-tone-success-text: var(--theme-success-text);
    --mail-dispatch-state-tone-success-surface: var(--theme-success-surface);
    --mail-dispatch-state-tone-warning-border: var(--theme-warning-border);
    --mail-dispatch-state-tone-warning-text: var(--theme-warning-text);
    --mail-dispatch-state-tone-warning-surface: var(--theme-warning-surface);
    --mail-dispatch-state-tone-error-border: var(--theme-error-border);
    --mail-dispatch-state-tone-error-text: var(--theme-error-text);
    --mail-dispatch-state-tone-error-surface: var(--theme-error-surface);
    --mail-dispatch-recovery-border: var(--theme-warning-border);
    --mail-dispatch-recovery-surface: var(--theme-warning-surface);
    --mail-settings-search-div-surface: var(--theme-control);
    --mail-scope-form-select-surface: var(--theme-control);
    --mail-conflict-border: var(--theme-warning-border);
    --mail-conflict-surface: var(--theme-warning-surface);
    --mail-action-notice-border: var(--theme-success-border);
    --mail-action-notice-surface: var(--theme-success-surface);
    --mail-action-notice-text: var(--theme-success-text);
    --mcp-admin-input-surface: var(--theme-control);
    --mcp-admin-input-text: var(--theme-text);
    --mcp-secret-surface: var(--theme-warning-surface);
    --mcp-secret-border: var(--theme-warning-border);
    --mcp-error-surface: var(--theme-error-surface);
    --mcp-error-text: var(--theme-error-text);
    --mcp-admin-focus-visible-outline: var(--theme-focus);
    --mcp-form-button-type-submit-hover-not-disabled-surface: var(--theme-action-hover);
    --platform-role-indicator-text: var(--theme-muted);
    --platform-menu-summary-border: var(--theme-border);
    --platform-menu-summary-surface: var(--theme-surface);
    --platform-menu-panel-surface: var(--theme-surface);
    --platform-menu-panel-border: var(--theme-border);
    --platform-menu-panel-button-text: var(--theme-text);
    --platform-menu-panel-button-hover-surface: var(--theme-selected);
    --platform-menu-panel-button-pressed-true-surface: var(--theme-selected);
    --platform-menu-roles-border-left: var(--theme-border);
    --platform-menu-panel-hr-border-top: var(--theme-border);
    --platform-menu-note-text: var(--theme-muted);
    --platform-notice-border-left: var(--theme-border);
    --platform-notice-surface: var(--theme-subtle);
    --platform-notice-text: var(--theme-text);
    --platform-page-heading-p-text: var(--theme-muted);
    --platform-tabs-border-bottom: var(--theme-border);
    --platform-tabs-is-button-a-text: var(--theme-muted);
    --platform-tabs-is-button-a-current-page-surface: var(--theme-navigation);
    --platform-symbol-surface: var(--theme-subtle);
    --platform-admin-form-label-text: var(--theme-muted);
    --platform-admin-form-input-border: var(--theme-control-border);
    --platform-admin-form-input-surface: var(--theme-control);
    --platform-admin-form-input-text: var(--theme-text);
    --platform-error-surface: var(--theme-error-surface);
    --platform-error-border-left: var(--theme-error-border);
    --platform-error-text: var(--theme-error-text);
    --platform-history-li-border-bottom: var(--theme-border);
    --platform-history-time-text: var(--theme-muted);
    --platform-history-p-text: var(--theme-text);
    --platform-support-text: var(--theme-muted);
    --platform-menu-roles-expanded-border: var(--theme-border);
    --platform-menu-roles-button-pressed-true-surface: var(--theme-selected);
    --platform-menu-roles-button-pressed-true-text: var(--theme-link);
    --platform-role-indicator-border: var(--theme-border);
    --platform-role-indicator-surface: var(--theme-subtle);
    --app-surface: var(--theme-canvas);
    --button-focus-visible-outline: var(--theme-focus);
    --skip-link-surface: var(--theme-surface);
    --brand-mark-border: var(--theme-border);
    --brand-mark-surface: var(--theme-subtle);
    --brand-divider-text: var(--theme-muted);
    --quiet-button-text: var(--theme-muted);
    --simulation-label-text: var(--theme-muted);
    --role-button-surface: var(--theme-surface);
    --role-button-hover-border: var(--theme-border);
    --role-button-hover-surface: var(--theme-selected);
    --role-code-text: var(--theme-muted);
    --role-button-selected-surface: var(--theme-navigation);
    --role-button-selected-border: var(--theme-navigation);
    --role-active-dot-surface: var(--theme-link);
    --heading-slash-text: var(--theme-muted);
    --role-inbox-badge-surface: var(--theme-subtle);
    --action-form-panel-surface: var(--theme-surface);
    --action-form-panel-border: var(--theme-border);
    --form-description-text: var(--theme-muted);
    --synthetic-input-note-border-left: var(--theme-control-border);
    --form-field-label-text: var(--theme-text);
    --ui-input-text: var(--theme-text);
    --ui-input-surface: var(--theme-control);
    --ui-input-border: var(--theme-control-border);
    --ui-input-focus-outline: var(--theme-focus);
    --ui-input-invalid-true-border: var(--theme-error-border);
    --ui-input-invalid-true-surface: var(--theme-error-surface);
    --ui-input-invalid-true-focus-focus: var(--theme-focus);
    --ui-input-disabled-surface: var(--theme-subtle);
    --field-error-text: var(--theme-error-text);
    --form-error-summary-text: var(--theme-error-text);
    --draft-warning-surface: var(--theme-warning-surface);
    --draft-warning-text: var(--theme-warning-text);
    --draft-warning-border: var(--theme-warning-border);
    --rebase-button-surface: var(--theme-surface);
    --rebase-button-text: var(--theme-warning-text);
    --rebase-button-border: var(--theme-warning-border);
    --detail-prose-text: var(--theme-muted);
    --detail-prose-detail-prose-border-top: var(--theme-border);
    --detail-prose-h3-text: var(--theme-muted);
    --detail-disclosure-border-top: var(--theme-border);
    --candidate-card-border: var(--theme-border);
    --candidate-card-surface: var(--theme-subtle);
    --candidate-card-chosen-candidate-border: var(--theme-border);
    --candidate-card-chosen-candidate-surface: var(--theme-selected);
    --selection-reason-border-top: var(--theme-border);
    --contract-history-li-border: var(--theme-border);
    --contract-history-li-surface: var(--theme-subtle);
    --inbox-count-surface: var(--theme-subtle);
    --notification-list-li-border-bottom: var(--theme-border);
    --notification-list-strong-text: var(--theme-muted);
    --notification-new-surface: var(--theme-subtle);
    --sync-area-text: var(--theme-muted);
    --connection-dot-surface: var(--theme-success-text);
    --connection-dot-offline-surface: var(--theme-warning-text);
    --icon-button-border: var(--theme-border);
    --icon-button-text: var(--theme-muted);
    --icon-button-hover-surface: var(--theme-surface);
    --icon-button-hover-border: var(--theme-border);
    --journey-surface: var(--theme-surface);
    --stage-list-li-li-before-border-top: var(--theme-border);
    --stage-list-li-li-before-border-right: var(--theme-border);
    --stage-number-border: var(--theme-border);
    --stage-number-surface: var(--theme-subtle);
    --current-stage-number-surface: var(--theme-navigation);
    --current-stage-number-border: var(--theme-navigation);
    --complete-stage-number-text: var(--theme-success-text);
    --complete-stage-number-border: var(--theme-success-border);
    --complete-stage-number-surface: var(--theme-success-surface);
    --task-card-border: var(--theme-border);
    --task-card-surface: var(--theme-selected);
    --task-topline-eyebrow-text: var(--theme-muted);
    --task-role-surface: var(--theme-surface);
    --task-role-border: var(--theme-border);
    --task-context-text: var(--theme-muted);
    --action-button-border: var(--theme-border);
    --action-button-surface: var(--theme-surface);
    --action-button-small-text: var(--theme-muted);
    --primary-action-hover-surface: var(--theme-action-hover);
    --secondary-action-hover-surface: var(--theme-selected);
    --secondary-action-hover-border: var(--theme-border);
    --task-footnote-text: var(--theme-muted);
    --waiting-state-text: var(--theme-muted);
    --waiting-state-border: var(--theme-border);
    --panel-surface: var(--theme-surface);
    --section-title-text: var(--theme-muted);
    --small-tag-border: var(--theme-border);
    --small-tag-surface: var(--theme-subtle);
    --status-pair-border-top: var(--theme-border);
    --status-icon-surface: var(--theme-subtle);
    --status-icon-text: var(--theme-muted);
    --status-pair-h3-text: var(--theme-muted);
    --funds-total-small-text: var(--theme-muted);
    --funds-breakdown-dt-text: var(--theme-muted);
    --funds-dot-surface: var(--theme-subtle);
    --funds-dot-reserved-surface: var(--theme-subtle);
    --funds-dot-bound-surface: var(--theme-link);
    --document-list-li-border-bottom: var(--theme-border);
    --document-icon-surface: var(--theme-subtle);
    --document-icon-text: var(--theme-muted);
    --document-list-span-not-document-icon-text: var(--theme-muted);
    --timeline-li-border-left: var(--theme-border);
    --timeline-dot-surface: var(--theme-muted);
    --timeline-dot-shadow: var(--theme-surface);
    --timeline-meta-text: var(--theme-muted);
    --privacy-note-border-top: var(--theme-border);
    --privacy-note-text: var(--theme-muted);
    --footer-divider-text: var(--theme-muted);
    --error-message-surface: var(--theme-error-surface);
    --error-message-border: var(--theme-error-border);
    --error-message-text: var(--theme-error-text);
    --error-message-quiet-button-text: var(--theme-error-text);
    --success-message-surface: var(--theme-success-surface);
    --success-message-border: var(--theme-success-border);
    --success-message-text: var(--theme-success-text);
    --loading-state-text: var(--theme-muted);
    --empty-copy-text: var(--theme-muted);
    --owner-shortcut-border: var(--theme-border);
    --owner-shortcut-surface: var(--theme-surface);
    --variant-actions-border-top: var(--theme-border);
    --action-group-count-border: var(--theme-border);
    --action-group-count-text: var(--theme-muted);
    --funding-type-label-text: var(--theme-muted);
    --separate-funds-unit-border-top: var(--theme-border);
    --separate-funds-unit-border-bottom: var(--theme-border);
    --separate-funds-unit-span-not-eyebrow-text: var(--theme-muted);
    --selection-rank-surface: var(--theme-subtle);
    --candidate-review-border-top: var(--theme-border);
    --review-marker-list-li-border-bottom: var(--theme-border);
    --marker-complete-text: var(--theme-success-text);
    --marker-open-text: var(--theme-warning-text);
    --participation-detail-list-border-top: var(--theme-border);
    --participation-detail-list-detail-prose-border-top: var(--theme-border);
    --rejection-reason-border-top: var(--theme-error-border);
    --rejection-reason-p-text: var(--theme-error-text);
    --absence-context-surface: var(--theme-subtle);
    --absence-context-border-left: var(--theme-border);
    --additional-card-border: var(--theme-border);
    --additional-card-surface: var(--theme-subtle);
    --purged-data-note-border-top: var(--theme-border);
    --job-board-border-top: var(--theme-border);
    --job-board-intro-text: var(--theme-muted);
    --job-search-button-hover-surface: var(--theme-action-hover);
    --job-search-status-text: var(--theme-muted);
    --job-board-empty-surface: var(--theme-subtle);
    --job-board-empty-border: var(--theme-border);
    --job-board-error-border: var(--theme-error-border);
    --job-board-error-surface: var(--theme-error-surface);
    --job-board-error-text: var(--theme-error-text);
    --job-results-li-border: var(--theme-border);
    --job-results-li-surface: var(--theme-subtle);
    --job-result-school-text: var(--theme-muted);
    --job-result-footer-border-top: var(--theme-border);
    --cancel-action-text: var(--theme-warning-text);
    --cancel-action-surface: var(--theme-warning-surface);
    --cancel-action-border: var(--theme-warning-border);
    --cancel-action-hover-surface: var(--theme-warning-surface);
    --cancel-action-hover-border: var(--theme-warning-border);
    --preset-note-text: var(--theme-muted);
    --preset-note-surface: var(--theme-subtle);
    --swal2-styled-swal2-confirm-hover-surface: var(--theme-action-hover);
    --swal2-styled-swal2-cancel-surface: var(--theme-subtle);
    --swal2-styled-swal2-cancel-hover-surface: var(--theme-selected);
    --candidate-card-reading-surface: var(--theme-subtle);
    --task-eyebrow-emphasis-text: var(--theme-link);
    --small-tag-text: var(--theme-link);
    --small-tag-accent-surface: var(--theme-subtle);
    --small-tag-accent-border: var(--theme-border);

    /* Primary actions are warm and bright, with dark lettering in every state. */
    --ai-primary-text: var(--halloween-action-ink);
    --ai-primary-hover-enabled-surface: var(--theme-action-hover);
    --ai-primary-hover-enabled-text: var(--halloween-action-ink);
    --ai-enable-confirm-surface: var(--blue);
    --case-progress-li-state-current-surface: var(--theme-navigation);
    --case-progress-li-state-current-border: var(--halloween-pumpkin);
    --case-progress-li-state-current-text: var(--halloween-moon);
    --case-progress-stages-summary-text: var(--link);
    --case-progress-stages-summary-focus-visible-outline: var(--theme-focus);
    --ui-button-ui-button-primary-text: var(--halloween-action-ink);
    --ui-button-ui-button-primary-hover-not-disabled-text: var(--halloween-action-ink);
    --primary-action-text: var(--halloween-action-ink);
    --primary-action-detail-text: var(--halloween-action-ink);
    --primary-action-small-text: var(--halloween-action-ink);
    --primary-action-shadow: transparent;
    --mcp-form-button-type-submit-text: var(--halloween-action-ink);
    --mcp-form-button-type-submit-hover-not-disabled-text: var(--halloween-action-ink);
    --platform-primary-surface: var(--blue);
    --platform-primary-text: var(--halloween-action-ink);
    --job-search-button-text: var(--halloween-action-ink);
    --swal2-styled-swal2-confirm-text: var(--halloween-action-ink);
    --swal2-styled-swal2-confirm-hover-text: var(--halloween-action-ink);
    --interview-calendar-dx-scheduler-appointment-text: var(--halloween-action-ink);
    --interview-calendar-dx-scheduler-appointment-dx-state-focused-text: var(--halloween-action-ink);
    --interview-calendar-appointment-text: var(--halloween-action-ink);
    --m6-map-marker-text: var(--halloween-action-ink);
    --m6-map-marker-border: var(--halloween-moon);
    --m6-map-marker-shadow: var(--halloween-shadow);
    --m6-place-options-shadow: var(--halloween-shadow);
    --inbox-count-has-unread-text: var(--halloween-action-ink);
    --current-stage-number-text: var(--halloween-moon);
    --navigation-active-dark-text: var(--halloween-moon);
    --dark-role-button-selected-role-code-text: var(--halloween-moon);
    --role-button-selected-text: var(--halloween-moon);
    --selected-role-code-text: var(--halloween-moon);
    --platform-tabs-is-button-a-current-page-text: var(--halloween-moon);
    --support-workspace-platform-tabs-a-current-page-hover-text: var(--halloween-moon);

    /* Shared header and role identities: no inherited blue or pale surfaces. */
    --dark-masthead-surface: var(--halloween-header);
    --dark-masthead-border-bottom: var(--line);
    --dark-prototype-banner-surface: var(--halloween-control);
    --masthead-surface: var(--halloween-header);
    --prototype-banner-text: var(--text);
    --prototype-banner-span-last-child-text: var(--muted);
    --prototype-dot-surface: var(--halloween-pumpkin);
    --workbench-brand-text: var(--halloween-moon);
    --workbench-brand-small-text: var(--muted);
    --workbench-brand-application-demo-badge-text: var(--muted);
    --workbench-role-text: var(--text);
    --workbench-role-span-text: var(--muted);
    --role-header-text: var(--text);
    --role-context-person-text: var(--text);
    --header-menu-text: var(--text);
    --header-menu-surface: var(--surface-subtle);
    --header-menu-border: var(--control-border);
    --header-menu-hover-surface: var(--surface-selected);
    --header-demo-badge-border: var(--line);
    --header-demo-badge-text: var(--muted);
    --portal-app-brand-text: var(--halloween-moon);
    --portal-app-brand-small-text: var(--muted);
    --portal-app-brand-application-demo-badge-text: var(--muted);
    --portal-app-actions-a-text: var(--link);
    --portal-app-actions-a-border-bottom: var(--link);
    --masthead-brand-text: var(--halloween-moon);
    --masthead-brand-small-text: var(--muted);
    --masthead-brand-mark-surface: var(--surface-selected);
    --masthead-brand-mark-border: var(--halloween-pumpkin);
    --masthead-brand-mark-text: var(--halloween-moon);
    --masthead-comfort-search-button-text: var(--muted);
    --masthead-comfort-search-button-hover-text: var(--halloween-moon);
    --masthead-comfort-search-button-kbd-text: var(--muted);
    --masthead-comfort-search-button-kbd-border: var(--control-border);
    --masthead-platform-role-indicator-surface: var(--surface-subtle);
    --masthead-platform-role-indicator-border: var(--control-border);
    --masthead-platform-role-indicator-text: var(--muted);
    --masthead-platform-role-indicator-strong-text: var(--text);
    --masthead-platform-menu-summary-text: var(--text);
    --masthead-platform-menu-summary-surface: var(--surface-subtle);
    --masthead-platform-menu-summary-border: var(--control-border);
    --masthead-platform-menu-summary-hover-surface: var(--surface-selected);
    --masthead-platform-menu-summary-hover-border: var(--halloween-pumpkin);
    --masthead-is-a-button-summary-focus-visible-focus: var(--theme-focus);
    --application-menu-panel-shadow: var(--halloween-shadow);
    --platform-menu-panel-shadow: var(--halloween-shadow);
    --platform-menu-panel-floating-shadow: var(--halloween-shadow);
    --panel-shadow: transparent;
    --role-school: #ffbd83;
    --role-applicant: #e9c9fa;
    --role-ministry: #e6d4b0;
    --role-office: #c9c3e0;
    --role-local-disability: #efb7cd;
    --role-local-council: #d7c4f1;
    --role-district-council: #e9d8c4;
    --role-district-disability: #c5c9ee;
    --control-placeholder-dark-text: var(--muted);
    --darkreader-select-chevron-text: var(--text);
    --attachment-checker-dark-surface: var(--surface-subtle);
    --attachment-checker-dark-tile: #393440;
    --theme-control-text: var(--muted);
    --theme-control-value: var(--halloween-pumpkin);
    --theme-control-hover: var(--surface-selected);
    --theme-control-focus: var(--theme-focus);
    --theme-control-option: var(--surface);
    --connection-notice-surface: var(--theme-warning-surface);
    --connection-notice-text: var(--theme-warning-text);
    --connection-notice-border: var(--theme-warning-border);
    --connection-notice-font: 400 var(--text-body)/1.5 var(--font-body);

    /* Standalone pages use the same night palette, including errors and masks. */
    --login-action: var(--blue);
    --login-action-hover: var(--theme-action-hover);
    --login-action-text: var(--halloween-action-ink);
    --login-page: var(--halloween-canvas);
    --login-text: var(--text);
    --login-banner: var(--halloween-control);
    --login-banner-text: var(--muted);
    --login-eyebrow: var(--halloween-pumpkin);
    --login-intro-text: var(--muted);
    --login-steps: var(--muted);
    --login-step-arrow: var(--halloween-pumpkin);
    --login-card: var(--surface);
    --login-card-border: var(--line);
    --login-card-accent: var(--halloween-pumpkin);
    --login-card-shadow: var(--halloween-shadow);
    --login-card-text: var(--muted);
    --login-input-border: var(--control-border);
    --login-input: var(--halloween-control);
    --login-focus: var(--theme-focus);
    --login-note-border: var(--line);
    --login-error: var(--theme-error-surface);
    --login-error-text: var(--theme-error-text);
    --login-error-border: var(--theme-error-border);
    --login-footer: var(--muted);
    --login-ring-border: #ffac6315;
    --login-ring-inner: #ffac6308;
    --login-ring-outer: #ffac6305;
    --offline-heading: var(--halloween-moon);
    --offline-illustration-ink: var(--halloween-pumpkin);
    --offline-muted: var(--muted);
    --offline-text: var(--text);
    --offline-page: var(--halloween-canvas);
    --offline-banner: var(--halloween-control);
    --offline-banner-text: var(--muted);
    --offline-surface: var(--surface);
    --offline-header-border: var(--line);
    --offline-brand: var(--surface-subtle);
    --offline-brand-border: var(--line);
    --offline-notice-border: var(--line);
    --offline-notice-shadow: var(--halloween-shadow);
    --offline-illustration: var(--surface-subtle);
    --offline-illustration-mask: var(--surface-subtle);
    --offline-illustration-border: var(--line);
    --offline-eyebrow: var(--halloween-pumpkin);
    --offline-guidance-border: var(--line);
    --offline-action: var(--blue);
    --offline-action-border: var(--blue);
    --offline-action-text: var(--halloween-action-ink);
    --offline-action-hover: var(--theme-action-hover);
    --offline-action-hover-border: var(--theme-action-hover);
    --offline-focus: var(--theme-focus);
    --offline-status: var(--muted);
    --offline-footnote: var(--muted);
    --offline-footer: var(--muted);
    --offline-footer-border: var(--line);
    --offline-noscript: var(--theme-warning-text);
  }

  html[data-theme="halloween"][data-color-scheme="dark"] body {
    background-color: var(--app-surface);
    background-image: radial-gradient(ellipse at 95% 0, #6a40352b, transparent 42%), radial-gradient(ellipse at 0 70%, #50445b20, transparent 55%);
    color: var(--text);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(h1, h2, h3, h4, .swal2-title) {
    font-family: var(--font-heading); color: var(--halloween-moon); font-weight: var(--heading-weight); hyphens: auto;
  }
  html[data-theme="halloween"][data-color-scheme="dark"] h1 { letter-spacing: -.015em; }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.workbench-brand, .portal-app-brand) { font-family: var(--font-heading); }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.workbench-brand small, .portal-app-brand small) { font-family: var(--font-body); }
  html[data-theme="halloween"][data-color-scheme="dark"] .masthead {
    background: var(--halloween-header); border-bottom: 1px solid var(--line); border-top: 3px solid var(--halloween-pumpkin);
  }
  @media (min-width: 1100px) {
    html[data-theme="halloween"][data-color-scheme="dark"] .masthead {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='70' viewBox='0 0 180 70'%3E%3Cg fill='none' stroke='%23ffac63' stroke-width='1.5' opacity='.65'%3E%3Cpath d='M132 10a20 20 0 1 0 23 25 21 21 0 0 1-23-25Z'/%3E%3Cpath d='M28 30c-13-7-24 2-22 16s16 19 25 12c9 7 23 2 25-12s-9-23-22-16Z'/%3E%3Cellipse cx='31' cy='44' rx='10' ry='16'/%3E%3Cpath d='m30 28 3-9 6-1M76 18l2-3 2 3-2 3ZM91 55l2-3 2 3-2 3Z'/%3E%3C/g%3E%3Cpath d='m67 36 7-5 6 3 6-5 7 7-7-1-6 4-6-4Z' fill='%23bba7cb' opacity='.65'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: 53% center; background-size: 180px 70px;
    }
  }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.workbench-brand-mark, .brand-mark) {
    border: 1px solid var(--halloween-pumpkin); border-radius: 43% 43% 38% 38%;
    background: var(--halloween-selected); color: var(--halloween-moon);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .workbench-sidebar {
    background-color: #1c1922;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Cg fill='none' stroke='%23b28862' stroke-width='1.7' opacity='.4'%3E%3Cpath d='M185 28a23 23 0 1 0 28 31 24 24 0 0 1-28-31Z'/%3E%3Cpath d='M34 101c-12-5-21 2-19 16s16 17 23 12c8 5 24 2 26-12s-7-21-19-16Z'/%3E%3Cellipse cx='39' cy='115' rx='11' ry='16'/%3E%3Cpath d='m38 99 3-9 6-1M112 56l3-4 3 4-3 4ZM140 84l2-3 2 3-2 3Z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right bottom;
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .workbench-sidebar nav a[aria-current="page"] {
    background: var(--surface-selected); color: var(--halloween-moon); box-shadow: inset 3px 0 var(--halloween-pumpkin);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.application-panel, .portal-job-card, .platform-card, .help-layout article, .feedback-compose, .feedback-inbox) {
    border: 1px solid var(--line); background: var(--surface);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .application-panel-heading {
    background: linear-gradient(105deg, #352824, var(--surface) 70%); border-radius: var(--card-radius) var(--card-radius) 0 0;
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .work-task-main h3 a { color: var(--link); }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.ui-button, .primary-action, .secondary-action, .swal2-styled) { border-radius: 8px; }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.ui-button[aria-pressed="true"], .work-task-views [aria-current="page"]) {
    background: var(--theme-navigation); border-color: var(--halloween-pumpkin); color: var(--halloween-moon);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .ui-button[aria-pressed="true"]:hover:not(:disabled) { background: var(--surface-selected); color: var(--halloween-moon); border-color: var(--halloween-pumpkin); }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.ui-button, .primary-action, .secondary-action, .swal2-styled, .platform-primary):disabled {
    opacity: 1; color: var(--muted); background: var(--surface-subtle); border-color: var(--line); border-style: dashed; box-shadow: none;
  }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--theme-focus); outline-offset: 3px;
  }
  html[data-theme="halloween"][data-color-scheme="dark"] :is(.application-menu-panel, .role-context-panel, .swal2-popup, .feedback-dialog) {
    border: 1px solid var(--control-border); box-shadow: 0 16px 48px var(--halloween-shadow); background: var(--surface); color: var(--text);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .swal2-styled.swal2-cancel {
    background: var(--surface-subtle); color: var(--text); border: 1px solid var(--control-border);
  }
  html[data-theme="halloween"][data-color-scheme="dark"] .swal2-styled.swal2-cancel:hover { background: var(--surface-selected); color: var(--halloween-moon); }
  html[data-theme="halloween"][data-color-scheme="dark"] .application-footer {
    background: #1c1922; border-top: 1px solid var(--line); color: var(--muted);
  }
  html[data-theme="halloween"][data-color-scheme="dark"][data-standalone] { font-family: var(--font-body); }
  html[data-theme="halloween"][data-color-scheme="dark"][data-standalone] :is(body, button, input, select, textarea, .brand, .brand-mark, .brand-title) { font-family: var(--font-body); }
  html[data-theme="halloween"][data-color-scheme="dark"][data-standalone] h1 { font-size: var(--title-page); }
  html[data-theme="halloween"][data-color-scheme="dark"][data-standalone] h2 { font-size: var(--title-card); }
  html[data-theme="halloween"][data-color-scheme="dark"][data-standalone="login"] .card {
    border-radius: var(--card-radius); border: 1px solid var(--line); border-top: 3px solid var(--halloween-pumpkin);
  }
  html[data-theme="halloween"][data-color-scheme="dark"][data-standalone="offline"] .notice { border-radius: var(--card-radius); }
}
