﻿/* Rosé: plum actions, rose navigation and white reading surfaces.
 * Inherits the existing application layout and readable sans-serif scale.
 * Screen-only roles keep semantic statuses, coverage, documents and print intact.
 */
@media screen {
  html[data-theme="rose"][data-color-scheme="light"] {
    --rose-action: #76456f;
    --rose-action-hover: #51345f;
    --rose-accent: #a43c6e;
    --rose-navigation: #76456f;
    --rose-ink: #352c3a;
    --rose-muted: #6b586b;
    --rose-line: #e3d4e0;
    --rose-field-border: #8f758d;
    --rose-subtle: #f8eff4;
    --rose-selected: #f0ddeb;
    --rose-focus: #a32869;
    --font-body: 'Aptos', 'Segoe UI', sans-serif;
    --font-heading: var(--font-body);
    --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;
    --button-surface: #fffafd;
    --button-text: var(--rose-ink);
    --button-border: var(--rose-field-border);
    --button-hover-surface: #f0ddeb;
    --button-hover-text: var(--rose-ink);
    --button-hover-border: var(--rose-action);
    --connection-notice-font: 400 var(--text-body)/1.5 var(--font-body);
    --surface-subtle: var(--rose-subtle);
    --surface-selected: var(--rose-selected);
    --control-border: var(--rose-field-border);
    --role-school: var(--rose-action);
    --role-ministry: var(--rose-ink);
    --blue: var(--rose-action);
    --platform-primary-surface: var(--rose-action);
    --ai-enable-confirm-surface: var(--rose-action);
    --navy: var(--rose-ink);
    --text: var(--rose-ink);
    --muted: var(--rose-muted);
    --line: var(--rose-line);
    --ai-panel-border: var(--rose-line);
    --ai-entry-mark-border: var(--rose-line);
    --ai-entry-mark-surface: var(--rose-subtle);
    --ai-entry-hover-surface: var(--rose-subtle);
    --ai-body-border-top: var(--rose-line);
    --ai-boundary-text: var(--rose-muted);
    --ai-question-text: var(--rose-ink);
    --ai-question-textarea-text: var(--rose-ink);
    --ai-question-textarea-border: var(--rose-field-border);
    --ai-question-textarea-surface: var(--rose-subtle);
    --ai-processing-text: var(--rose-muted);
    --ai-primary-hover-enabled-surface: var(--rose-action-hover);
    --ai-cancel-text: var(--rose-muted);
    --ai-cancel-border: var(--rose-line);
    --ai-status-text: var(--rose-muted);
    --ai-unavailable-surface: var(--rose-subtle);
    --ai-unavailable-text: var(--rose-muted);
    --ai-unavailable-strong-text: var(--rose-ink);
    --ai-result-border-top: var(--rose-line);
    --ai-statements-li-p-text: var(--rose-ink);
    --ai-source-p-text: var(--rose-muted);
    --ai-classification-surface: var(--rose-subtle);
    --ai-review-button-border: var(--rose-field-border);
    --ai-review-button-disabled-text: var(--rose-muted);
    --ai-review-button-disabled-border: var(--rose-line);
    --ai-settings-dd-text: var(--rose-ink);
    --version-category-surface: var(--rose-selected);
    --case-progress-stages-summary-text: var(--rose-action);
    --case-progress-stages-summary-focus-visible-outline: var(--rose-action);
    --help-center-where-input-not-type-checkbox-not-type-radio-text: var(--rose-ink);
    --help-center-where-input-not-type-checkbox-not-type-radio-surface: var(--rose-subtle);
    --help-center-where-input-not-type-checkbox-not-type-radio-border: var(--rose-field-border);
    --help-center-where-label-text: var(--rose-ink);
    --feedback-panel-input-text: var(--rose-ink);
    --feedback-list-button-pressed-true-surface: var(--rose-selected);
    --platform-menu-panel-hr-border-top: var(--rose-line);
    --brand-mark-surface: var(--rose-subtle);
    --role-button-hover-surface: var(--rose-selected);
    --form-description-text: var(--rose-muted);
    --form-field-label-text: var(--rose-ink);
    --ui-input-text: var(--rose-ink);
    --ui-input-surface: var(--rose-subtle);
    --ui-input-border: var(--rose-field-border);
    --detail-prose-detail-prose-border-top: var(--rose-line);
    --detail-disclosure-border-top: var(--rose-line);
    --selection-reason-border-top: var(--rose-line);
    --secondary-action-hover-surface: var(--rose-subtle);
    --participation-detail-list-border-top: var(--rose-line);
    --participation-detail-list-detail-prose-border-top: var(--rose-line);
    --additional-card-border: var(--rose-line);
    --job-board-empty-surface: var(--rose-subtle);
    --job-result-footer-border-top: var(--rose-line);
    --preset-note-surface: var(--rose-subtle);
    --swal2-styled-swal2-cancel-surface: #6b586b;
    --dark-masthead-surface: #51345f;
    --dark-prototype-banner-surface: var(--rose-ink);
    --link: var(--rose-action);
    --surface: #ffffff;
    --app-surface: #faf6f9;
    --card-radius: 12px;
    --heading-weight: 500;
    --theme-control-text: var(--rose-muted);
    --theme-control-value: var(--rose-action);
    --theme-control-hover: var(--rose-selected);
    --theme-control-focus: var(--rose-focus);
    --button-focus-visible-outline: var(--rose-focus);
    --ui-input-focus-outline: var(--rose-focus);
    --ui-button-ui-button-primary-hover-not-disabled-surface: var(--rose-action-hover);
    --ui-button-ui-button-primary-hover-not-disabled-border: var(--rose-action-hover);
    --primary-action-hover-surface: var(--rose-action-hover);
    --swal2-styled-swal2-confirm-hover-surface: var(--rose-action-hover);
    --workbench-brand-text: #fff;
    --workbench-brand-small-text: #f1deed;
    --workbench-brand-application-demo-badge-text: #f1deed;
    --role-header-text: #fff;
    --role-context-person-text: #fff;
    --role-context-menu-summary-focus-visible-outline: #f0bad8;
    --workbench-role-text: #fff;
    --workbench-role-span-text: #f1deed;
    --header-menu-text: #fff;
    --header-menu-surface: #65476f;
    --header-menu-border: #b99cb9;
    --header-menu-hover-surface: #795a84;
    --header-demo-badge-text: #f1deed;
    --header-demo-badge-border: #b99cb9;
    --portal-app-brand-text: #fff;
    --portal-app-brand-small-text: #f1deed;
    --portal-app-brand-application-demo-badge-text: #f1deed;
    --portal-app-actions-a-text: #fff;
    --portal-app-actions-a-border-bottom: #d7afca;
    --masthead-brand-text: #fff;
    --masthead-brand-small-text: #f1deed;
    --masthead-brand-mark-surface: #f0ddeb;
    --masthead-brand-mark-border: #f0ddeb;
    --masthead-brand-mark-text: #51345f;
    --masthead-comfort-search-button-text: #f1deed;
    --masthead-comfort-search-button-hover-text: #fff;
    --masthead-comfort-search-button-kbd-text: #f1deed;
    --masthead-comfort-search-button-kbd-border: #b99cb9;
    --masthead-platform-role-indicator-surface: #65476f;
    --masthead-platform-role-indicator-border: #b99cb9;
    --masthead-platform-role-indicator-text: #f1deed;
    --masthead-platform-role-indicator-strong-text: #fff;
    --masthead-platform-menu-summary-text: #fff;
    --masthead-platform-menu-summary-surface: #65476f;
    --masthead-platform-menu-summary-border: #b99cb9;
    --masthead-platform-menu-summary-hover-surface: #795a84;
    --masthead-platform-menu-summary-hover-border: #d7afca;
    --masthead-is-a-button-summary-focus-visible-focus: #f0bad8;
    --application-menu-panel-shadow: #51345f14;
    --login-action: var(--rose-action);
    --login-action-hover: var(--rose-action-hover);
    --login-page: #faf6f9;
    --login-text: var(--rose-ink);
    --login-banner: #51345f;
    --login-banner-text: #fff;
    --login-eyebrow: var(--rose-muted);
    --login-intro-text: var(--rose-muted);
    --login-steps: var(--rose-muted);
    --login-step-arrow: var(--rose-action);
    --login-card: #ffffff;
    --login-card-border: var(--rose-line);
    --login-card-accent: var(--rose-action);
    --login-card-shadow: #51345f08;
    --login-card-text: var(--rose-muted);
    --login-input-border: var(--rose-field-border);
    --login-input: var(--rose-subtle);
    --login-focus: var(--rose-focus);
    --login-footer: var(--rose-muted);
    --offline-heading: var(--rose-ink);
    --offline-illustration-ink: var(--rose-action);
    --offline-muted: var(--rose-muted);
    --offline-text: var(--rose-ink);
    --offline-page: #faf6f9;
    --offline-banner: #51345f;
    --offline-banner-text: #fff;
    --offline-action-text: #ffffff;
    --offline-action: var(--rose-action);
    --offline-action-border: var(--rose-action);
    --offline-action-hover: var(--rose-action-hover);
    --offline-action-hover-border: var(--rose-action-hover);
    --offline-focus: var(--rose-focus);
    --offline-brand: #ffffff;
    --offline-brand-border: var(--rose-line);
    --offline-header-border: var(--rose-line);
    --offline-notice-border: var(--rose-line);
    --offline-illustration: var(--rose-selected);
    --offline-illustration-mask: var(--rose-selected);
    --offline-illustration-border: var(--rose-line);
    --offline-eyebrow: var(--rose-muted);
    --offline-status: var(--rose-muted);
    --offline-footnote: var(--rose-muted);
    --offline-footer: var(--rose-muted);

    /* Historical neutral roles: help, management, feedback and case details. */
    --ai-unavailable-border-left: var(--rose-line);
    --ai-statements-li-before-text: var(--rose-muted);
    --ai-source-surface: var(--rose-subtle);
    --ai-source-border: var(--rose-line);
    --ai-source-summary-text: var(--rose-muted);
    --ai-source-p-border-top: var(--rose-line);
    --ai-classification-border-left: var(--rose-line);
    --ai-limitations-border-top: var(--rose-line);
    --ai-review-border-top: var(--rose-line);
    --ai-settings-dl-div-border-top: var(--rose-line);
    --version-heading-icon-border: var(--rose-line);
    --version-heading-icon-surface: var(--rose-subtle);
    --version-current-card-border: var(--rose-line);
    --version-current-facts-border-left: var(--rose-line);
    --version-history-version-filters-border: var(--rose-line);
    --version-history-version-filters-input-border: var(--rose-field-border);
    --version-timeline-entry-border-left: var(--rose-line);
    --version-timeline-marker-border: var(--rose-line);
    --version-timeline-marker-shadow: #352c3a12;
    --version-entry-card-border: var(--rose-line);
    --version-category-text: var(--rose-muted);
    --version-state-border: var(--rose-line);
    --version-state-surface: var(--rose-subtle);
    --version-current-facts-border-top: var(--rose-line);
    --case-progress-li-state-current-surface: var(--rose-action);
    --case-progress-li-state-current-border: var(--rose-action);
    --initiative-results-h3-tabindex-1-focus-visible-outline: var(--rose-focus);
    --interview-calendar-dx-scheduler-appointment-dx-state-focused-shadow: var(--rose-focus);
    --m5-contract-document-focus-within-outline: var(--rose-focus);
    --m6-place-options-shadow: #352c3a12;
    --help-center-where-button-not-ai-panel-button-border: var(--rose-field-border);
    --help-center-where-button-not-ai-panel-button-hover-border: var(--rose-field-border);
    --help-center-where-button-not-ai-panel-button-hover-surface: var(--rose-subtle);
    --help-editor-details-border-top: var(--rose-line);
    --field-help-border: var(--rose-field-border);
    --field-help-surface: var(--rose-subtle);
    --field-help-text: var(--rose-muted);
    --version-day-border-top: var(--rose-line);
    --details-summary-focus-visible-outline: var(--rose-focus);
    --ai-source-content-border-top: var(--rose-line);
    --feedback-panel-label-text: var(--rose-muted);
    --feedback-panel-input-border: var(--rose-field-border);
    --feedback-panel-input-focus-outline: var(--rose-focus);
    --feedback-screenshot-img-surface: var(--rose-subtle);
    --feedback-status-surface: var(--rose-subtle);
    --feedback-history-p-text: var(--rose-muted);
    --feedback-review-surface: var(--rose-subtle);
    --feedback-public-comment-border-left: var(--rose-line);
    --mcp-admin-input-text: var(--rose-muted);
    --platform-role-indicator-text: var(--rose-muted);
    --platform-menu-summary-border: var(--rose-line);
    --platform-menu-panel-border: var(--rose-line);
    --platform-menu-panel-shadow: #352c3a12;
    --platform-menu-panel-button-text: var(--rose-muted);
    --platform-menu-panel-button-hover-surface: var(--rose-subtle);
    --platform-menu-panel-button-pressed-true-surface: var(--rose-selected);
    --platform-menu-roles-border-left: var(--rose-line);
    --platform-menu-note-text: var(--rose-muted);
    --platform-notice-border-left: var(--rose-line);
    --platform-notice-surface: var(--rose-subtle);
    --platform-notice-text: var(--rose-muted);
    --platform-page-heading-p-text: var(--rose-muted);
    --platform-tabs-border-bottom: var(--rose-line);
    --platform-tabs-is-button-a-text: var(--rose-muted);
    --platform-symbol-surface: var(--rose-subtle);
    --platform-admin-form-label-text: var(--rose-muted);
    --platform-admin-form-input-border: var(--rose-field-border);
    --platform-admin-form-input-text: var(--rose-muted);
    --platform-history-li-border-bottom: var(--rose-line);
    --platform-history-time-text: var(--rose-muted);
    --platform-history-p-text: var(--rose-muted);
    --platform-support-text: var(--rose-muted);
    --platform-menu-panel-floating-shadow: #352c3a12;
    --platform-menu-roles-expanded-border: var(--rose-line);
    --platform-menu-roles-button-pressed-true-surface: var(--rose-selected);
    --platform-menu-roles-button-pressed-true-text: var(--rose-muted);
    --platform-role-indicator-border: var(--rose-line);
    --platform-role-indicator-surface: var(--rose-subtle);
    --prototype-banner-span-last-child-text: #f7e7f2;
    --prototype-dot-surface: #f7e7f2;
    --brand-mark-border: var(--rose-line);
    --brand-divider-text: var(--rose-muted);
    --quiet-button-text: var(--rose-muted);
    --simulation-label-text: var(--rose-muted);
    --heading-slash-text: var(--rose-muted);
    --action-form-panel-border: var(--rose-line);
    --synthetic-input-note-border-left: var(--rose-field-border);
    --ui-input-disabled-surface: var(--rose-subtle);
    --detail-prose-text: var(--rose-muted);
    --detail-prose-h3-text: var(--rose-muted);
    --candidate-card-border: var(--rose-line);
    --candidate-card-surface: var(--rose-subtle);
    --candidate-card-chosen-candidate-border: var(--rose-line);
    --candidate-card-chosen-candidate-surface: var(--rose-selected);
    --contract-history-li-border: var(--rose-line);
    --contract-history-li-surface: var(--rose-subtle);
    --inbox-count-surface: var(--rose-subtle);
    --notification-list-li-border-bottom: var(--rose-line);
    --notification-list-strong-text: var(--rose-muted);
    --notification-new-surface: var(--rose-selected);
    --sync-area-text: var(--rose-muted);
    --icon-button-border: var(--rose-field-border);
    --icon-button-text: var(--rose-muted);
    --icon-button-hover-border: var(--rose-field-border);
    --stage-list-li-li-before-border-top: var(--rose-line);
    --stage-list-li-li-before-border-right: var(--rose-line);
    --stage-number-border: var(--rose-line);
    --stage-number-surface: var(--rose-subtle);
    --task-card-border: var(--rose-line);
    --task-card-surface: var(--rose-selected);
    --task-topline-eyebrow-text: var(--rose-muted);
    --task-role-border: var(--rose-line);
    --task-context-text: var(--rose-muted);
    --action-button-border: var(--rose-field-border);
    --action-button-small-text: var(--rose-muted);
    --primary-action-small-text: #f7e7f2;
    --secondary-action-hover-border: var(--rose-line);
    --task-footnote-text: var(--rose-muted);
    --waiting-state-text: var(--rose-muted);
    --waiting-state-border: var(--rose-line);
    --panel-shadow: #352c3a12;
    --section-title-text: var(--rose-muted);
    --small-tag-border: var(--rose-line);
    --small-tag-surface: var(--rose-subtle);
    --status-pair-border-top: var(--rose-line);
    --status-icon-surface: var(--rose-subtle);
    --status-icon-text: var(--rose-muted);
    --status-pair-h3-text: var(--rose-muted);
    --funds-total-small-text: var(--rose-muted);
    --funds-breakdown-dt-text: var(--rose-muted);
    --funds-dot-surface: #8f758d;
    --funds-dot-reserved-surface: #a27899;
    --funds-dot-bound-surface: var(--rose-action);
    --document-list-li-border-bottom: var(--rose-line);
    --document-icon-surface: var(--rose-subtle);
    --document-icon-text: var(--rose-muted);
    --document-list-span-not-document-icon-text: var(--rose-muted);
    --timeline-li-border-left: var(--rose-line);
    --timeline-dot-surface: #8f758d;
    --timeline-meta-text: var(--rose-muted);
    --privacy-note-border-top: var(--rose-line);
    --privacy-note-text: var(--rose-muted);
    --footer-divider-text: var(--rose-muted);
    --loading-state-text: var(--rose-muted);
    --empty-copy-text: var(--rose-muted);
    --owner-shortcut-border: var(--rose-line);
    --variant-actions-border-top: var(--rose-line);
    --action-group-count-border: var(--rose-line);
    --action-group-count-text: var(--rose-muted);
    --funding-type-label-text: var(--rose-muted);
    --separate-funds-unit-border-top: var(--rose-line);
    --separate-funds-unit-border-bottom: var(--rose-line);
    --separate-funds-unit-span-not-eyebrow-text: var(--rose-muted);
    --selection-rank-surface: var(--rose-selected);
    --candidate-review-border-top: var(--rose-line);
    --review-marker-list-li-border-bottom: var(--rose-line);
    --absence-context-surface: var(--rose-subtle);
    --absence-context-border-left: var(--rose-line);
    --additional-card-surface: var(--rose-subtle);
    --purged-data-note-border-top: var(--rose-line);
    --job-board-border-top: var(--rose-line);
    --job-board-intro-text: var(--rose-muted);
    --job-search-status-text: var(--rose-muted);
    --job-board-empty-border: var(--rose-line);
    --job-results-li-border: var(--rose-line);
    --job-results-li-surface: var(--rose-subtle);
    --job-result-school-text: var(--rose-muted);
    --preset-note-text: var(--rose-muted);
    --candidate-card-reading-surface: var(--rose-subtle);
    --primary-action-shadow: #352c3a12;
    --task-eyebrow-emphasis-text: var(--rose-muted);
    --small-tag-text: var(--rose-muted);
    --small-tag-accent-surface: var(--rose-selected);
    --small-tag-accent-border: var(--rose-line);
    --role-applicant: #855a8d;
    --role-office: #705977;
    --role-local-disability: #88604f;
    --role-local-council: #526982;
    --role-district-council: #795287;
    --role-district-disability: #86633f;
    --serif: var(--font-heading);
    --offline-surface: var(--surface);
    --offline-guidance-border: var(--rose-line);
    --offline-footer-border: var(--rose-line);
    --offline-notice-shadow: #352c3a09;
    --login-note-border: var(--rose-line);
    --login-ring-border: #76456f08;
    --login-ring-inner: #76456f04;
    --login-ring-outer: #76456f03;
    --theme-control-option: var(--surface);
    --swal2-styled-swal2-cancel-hover-surface: #513f54;
    --masthead-surface: #51345f;
    --rose-sidebar: #f5edf4;
    --rose-header-ink: #ffffff;
    --rose-header-mark: #f0ddeb;
    --rose-header-focus: #f0bad8;
  }

  html[data-theme="rose"][data-color-scheme="light"] body { background: var(--app-surface); }
  html[data-theme="rose"][data-color-scheme="light"] .masthead {
    background: var(--rose-action-hover); border-bottom-color: var(--rose-action-hover);
  }
  html[data-theme="rose"][data-color-scheme="light"] :is(.workbench-brand-mark, .brand-mark) {
    color: var(--rose-action-hover); background: var(--rose-header-mark); border-color: var(--rose-header-mark);
  }
  html[data-theme="rose"][data-color-scheme="light"] .workbench-sidebar { background: var(--rose-sidebar); }
  html[data-theme="rose"][data-color-scheme="light"] .workbench-sidebar nav a[aria-current="page"] {
    color: var(--rose-action-hover); background: var(--rose-selected);
  }
  html[data-theme="rose"][data-color-scheme="light"] .ui-button[aria-pressed="true"],
  html[data-theme="rose"][data-color-scheme="light"] .ui-button[aria-pressed="true"]:hover:not(:disabled) {
    background: var(--rose-selected); color: var(--rose-action-hover); border-color: var(--rose-action);
  }
  html[data-theme="rose"][data-color-scheme="light"] :is(.work-task-states, .m6-mode-buttons) .ui-button[aria-pressed="true"],
  html[data-theme="rose"][data-color-scheme="light"] .work-task-views [aria-current="page"] {
    background: var(--rose-action); color: var(--surface); border-color: var(--rose-action);
  }
  html[data-theme="rose"][data-color-scheme="light"] :is(.work-task-states, .m6-mode-buttons) .ui-button[aria-pressed="true"]:hover:not(:disabled) {
    background: var(--rose-action-hover); color: var(--surface);
  }
  html[data-theme="rose"][data-color-scheme="light"] :is(.ui-input, .form-field input, .form-field textarea, .form-field select):not(:focus):not([aria-invalid="true"]):not(:disabled) {
    background: var(--surface); border-color: var(--rose-field-border);
  }
  html[data-theme="rose"][data-color-scheme="light"] .swal2-html-container { color: var(--text); }
  html[data-theme="rose"][data-color-scheme="light"] .swal2-close { color: var(--muted); }
  html[data-theme="rose"][data-color-scheme="light"] .application-footer {
    background: var(--rose-subtle); color: var(--muted); border-top-color: var(--line);
  }
  html[data-theme="rose"][data-color-scheme="light"] :is(input, textarea, [contenteditable="true"]) { caret-color: var(--rose-action); }
  html[data-theme="rose"][data-color-scheme="light"] ::selection { color: var(--rose-action-hover); background: var(--rose-selected); }
  html[data-theme="rose"][data-color-scheme="light"] { scrollbar-color: var(--rose-field-border) var(--rose-subtle); }
  html[data-theme="rose"][data-color-scheme="light"][data-standalone="login"] .card {
    border-radius: var(--card-radius); box-shadow: none;
  }
  html[data-theme="rose"][data-color-scheme="light"][data-standalone="offline"] .notice { border-radius: var(--card-radius); }
}
