﻿/* Puderzimmer: porcelain, blush upholstery and lilac, anchored by plum.
 * Existing semantic colors and document/print palettes remain intact. */
@media screen {
  html[data-theme="powder"][data-color-scheme="light"] {
    --powder-action: #74486e;
    --powder-action-hover: #452d50;
    --powder-accent: #913e72;
    --powder-navigation: #74486e;
    --powder-ink: #392c40;
    --powder-muted: #715b70;
    --powder-line: #dccbd6;
    --powder-field-border: #90748a;
    --powder-subtle: #f4e9ed;
    --powder-selected: #ead8e8;
    --powder-focus: #862c6e;
    --font-body: 'Aptos', 'Segoe UI', sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --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: #fffaf6;
    --button-text: var(--powder-ink);
    --button-border: var(--powder-field-border);
    --button-hover-surface: #ead8e8;
    --button-hover-text: var(--powder-ink);
    --button-hover-border: var(--powder-action);
    --connection-notice-font: 400 var(--text-body)/1.5 var(--font-body);
    --surface-subtle: var(--powder-subtle);
    --surface-selected: var(--powder-selected);
    --control-border: var(--powder-field-border);
    --role-school: var(--powder-action);
    --role-ministry: var(--powder-ink);
    --blue: var(--powder-action);
    --platform-primary-surface: var(--powder-action);
    --ai-enable-confirm-surface: var(--powder-action);
    --navy: var(--powder-ink);
    --text: var(--powder-ink);
    --muted: var(--powder-muted);
    --line: var(--powder-line);
    --ai-panel-border: var(--powder-line);
    --ai-entry-mark-border: var(--powder-line);
    --ai-entry-mark-surface: var(--powder-subtle);
    --ai-entry-hover-surface: var(--powder-subtle);
    --ai-body-border-top: var(--powder-line);
    --ai-boundary-text: var(--powder-muted);
    --ai-question-text: var(--powder-ink);
    --ai-question-textarea-text: var(--powder-ink);
    --ai-question-textarea-border: var(--powder-field-border);
    --ai-question-textarea-surface: var(--powder-subtle);
    --ai-processing-text: var(--powder-muted);
    --ai-primary-hover-enabled-surface: var(--powder-action-hover);
    --ai-cancel-text: var(--powder-muted);
    --ai-cancel-border: var(--powder-line);
    --ai-status-text: var(--powder-muted);
    --ai-unavailable-surface: var(--powder-subtle);
    --ai-unavailable-text: var(--powder-muted);
    --ai-unavailable-strong-text: var(--powder-ink);
    --ai-result-border-top: var(--powder-line);
    --ai-statements-li-p-text: var(--powder-ink);
    --ai-source-p-text: var(--powder-muted);
    --ai-classification-surface: var(--powder-subtle);
    --ai-review-button-border: var(--powder-field-border);
    --ai-review-button-disabled-text: var(--powder-muted);
    --ai-review-button-disabled-border: var(--powder-line);
    --ai-settings-dd-text: var(--powder-ink);
    --version-category-surface: var(--powder-selected);
    --case-progress-stages-summary-text: var(--powder-action);
    --case-progress-stages-summary-focus-visible-outline: var(--powder-action);
    --help-center-where-input-not-type-checkbox-not-type-radio-text: var(--powder-ink);
    --help-center-where-input-not-type-checkbox-not-type-radio-surface: var(--powder-subtle);
    --help-center-where-input-not-type-checkbox-not-type-radio-border: var(--powder-field-border);
    --help-center-where-label-text: var(--powder-ink);
    --feedback-panel-input-text: var(--powder-ink);
    --feedback-list-button-pressed-true-surface: var(--powder-selected);
    --platform-menu-panel-hr-border-top: var(--powder-line);
    --brand-mark-surface: var(--powder-subtle);
    --role-button-hover-surface: var(--powder-selected);
    --form-description-text: var(--powder-muted);
    --form-field-label-text: var(--powder-ink);
    --ui-input-text: var(--powder-ink);
    --ui-input-surface: var(--powder-subtle);
    --ui-input-border: var(--powder-field-border);
    --detail-prose-detail-prose-border-top: var(--powder-line);
    --detail-disclosure-border-top: var(--powder-line);
    --selection-reason-border-top: var(--powder-line);
    --secondary-action-hover-surface: var(--powder-subtle);
    --participation-detail-list-border-top: var(--powder-line);
    --participation-detail-list-detail-prose-border-top: var(--powder-line);
    --additional-card-border: var(--powder-line);
    --job-board-empty-surface: var(--powder-subtle);
    --job-result-footer-border-top: var(--powder-line);
    --preset-note-surface: var(--powder-subtle);
    --swal2-styled-swal2-cancel-surface: var(--surface-subtle);
    --dark-masthead-surface: #452d50;
    --dark-prototype-banner-surface: var(--powder-ink);
    --link: var(--powder-action);
    --surface: #fffcf9;
    --app-surface: #faf3ee;
    --card-radius: 10px;
    --heading-weight: 500;
    --theme-control-text: var(--powder-muted);
    --theme-control-value: var(--powder-action);
    --theme-control-hover: var(--powder-selected);
    --theme-control-focus: var(--powder-focus);
    --button-focus-visible-outline: var(--powder-focus);
    --ui-input-focus-outline: var(--powder-focus);
    --ui-button-ui-button-primary-hover-not-disabled-surface: var(--powder-action-hover);
    --ui-button-ui-button-primary-hover-not-disabled-border: var(--powder-action-hover);
    --primary-action-hover-surface: var(--powder-action-hover);
    --swal2-styled-swal2-confirm-hover-surface: var(--powder-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: #614466;
    --header-menu-border: #b99cb9;
    --header-menu-hover-surface: #79557d;
    --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: #ead8e8;
    --masthead-brand-mark-border: #ead8e8;
    --masthead-brand-mark-text: #452d50;
    --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: #614466;
    --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: #614466;
    --masthead-platform-menu-summary-border: #b99cb9;
    --masthead-platform-menu-summary-hover-surface: #79557d;
    --masthead-platform-menu-summary-hover-border: #d7afca;
    --masthead-is-a-button-summary-focus-visible-focus: #f0bad8;
    --application-menu-panel-shadow: #452d5014;
    --login-action: var(--powder-action);
    --login-action-text: #ffffff;
    --login-action-hover: var(--powder-action-hover);
    --login-page: #faf3ee;
    --login-text: var(--powder-ink);
    --login-banner: #452d50;
    --login-banner-text: #fff;
    --login-eyebrow: var(--powder-muted);
    --login-intro-text: var(--powder-muted);
    --login-steps: var(--powder-muted);
    --login-step-arrow: var(--powder-action);
    --login-card: #fffcf9;
    --login-card-border: var(--powder-line);
    --login-card-accent: var(--powder-action);
    --login-card-shadow: #452d5008;
    --login-card-text: var(--powder-muted);
    --login-input-border: var(--powder-field-border);
    --login-input: var(--powder-subtle);
    --login-focus: var(--powder-focus);
    --login-footer: var(--powder-muted);
    --offline-heading: var(--powder-ink);
    --offline-illustration-ink: var(--powder-action);
    --offline-muted: var(--powder-muted);
    --offline-text: var(--powder-ink);
    --offline-page: #faf3ee;
    --offline-banner: #452d50;
    --offline-banner-text: #fff;
    --offline-action-text: #fffcf9;
    --offline-action: var(--powder-action);
    --offline-action-border: var(--powder-action);
    --offline-action-hover: var(--powder-action-hover);
    --offline-action-hover-border: var(--powder-action-hover);
    --offline-focus: var(--powder-focus);
    --offline-brand: #fffcf9;
    --offline-brand-border: var(--powder-line);
    --offline-header-border: var(--powder-line);
    --offline-notice-border: var(--powder-line);
    --offline-illustration: var(--powder-selected);
    --offline-illustration-mask: var(--powder-selected);
    --offline-illustration-border: var(--powder-line);
    --offline-eyebrow: var(--powder-muted);
    --offline-status: var(--powder-muted);
    --offline-footnote: var(--powder-muted);
    --offline-footer: var(--powder-muted);

    /* Historical neutral roles: help, management, feedback and case details. */
    --ai-unavailable-border-left: var(--powder-line);
    --ai-statements-li-before-text: var(--powder-muted);
    --ai-source-surface: var(--powder-subtle);
    --ai-source-border: var(--powder-line);
    --ai-source-summary-text: var(--powder-muted);
    --ai-source-p-border-top: var(--powder-line);
    --ai-classification-border-left: var(--powder-line);
    --ai-limitations-border-top: var(--powder-line);
    --ai-review-border-top: var(--powder-line);
    --ai-settings-dl-div-border-top: var(--powder-line);
    --version-heading-icon-border: var(--powder-line);
    --version-heading-icon-surface: var(--powder-subtle);
    --version-current-card-border: var(--powder-line);
    --version-current-facts-border-left: var(--powder-line);
    --version-history-version-filters-border: var(--powder-line);
    --version-history-version-filters-input-border: var(--powder-field-border);
    --version-timeline-entry-border-left: var(--powder-line);
    --version-timeline-marker-border: var(--powder-line);
    --version-timeline-marker-shadow: #392c4012;
    --version-entry-card-border: var(--powder-line);
    --version-category-text: var(--powder-muted);
    --version-state-border: var(--powder-line);
    --version-state-surface: var(--powder-subtle);
    --version-current-facts-border-top: var(--powder-line);
    --case-progress-li-state-current-surface: var(--powder-action);
    --case-progress-li-state-current-border: var(--powder-action);
    --initiative-results-h3-tabindex-1-focus-visible-outline: var(--powder-focus);
    --interview-calendar-dx-scheduler-appointment-dx-state-focused-shadow: var(--powder-focus);
    --m5-contract-document-focus-within-outline: var(--powder-focus);
    --m6-place-options-shadow: #392c4012;
    --help-center-where-button-not-ai-panel-button-border: var(--powder-field-border);
    --help-center-where-button-not-ai-panel-button-hover-border: var(--powder-field-border);
    --help-center-where-button-not-ai-panel-button-hover-surface: var(--powder-subtle);
    --help-editor-details-border-top: var(--powder-line);
    --field-help-border: var(--powder-field-border);
    --field-help-surface: var(--powder-subtle);
    --field-help-text: var(--powder-muted);
    --version-day-border-top: var(--powder-line);
    --details-summary-focus-visible-outline: var(--powder-focus);
    --ai-source-content-border-top: var(--powder-line);
    --feedback-panel-label-text: var(--powder-muted);
    --feedback-panel-input-border: var(--powder-field-border);
    --feedback-panel-input-focus-outline: var(--powder-focus);
    --feedback-screenshot-img-surface: var(--powder-subtle);
    --feedback-status-surface: var(--powder-subtle);
    --feedback-history-p-text: var(--powder-muted);
    --feedback-review-surface: var(--powder-subtle);
    --feedback-public-comment-border-left: var(--powder-line);
    --mcp-admin-input-text: var(--powder-muted);
    --platform-role-indicator-text: var(--powder-muted);
    --platform-menu-summary-border: var(--powder-line);
    --platform-menu-panel-border: var(--powder-line);
    --platform-menu-panel-shadow: #392c4012;
    --platform-menu-panel-button-text: var(--powder-muted);
    --platform-menu-panel-button-hover-surface: var(--powder-subtle);
    --platform-menu-panel-button-pressed-true-surface: var(--powder-selected);
    --platform-menu-roles-border-left: var(--powder-line);
    --platform-menu-note-text: var(--powder-muted);
    --platform-notice-border-left: var(--powder-line);
    --platform-notice-surface: var(--powder-subtle);
    --platform-notice-text: var(--powder-muted);
    --platform-page-heading-p-text: var(--powder-muted);
    --platform-tabs-border-bottom: var(--powder-line);
    --platform-tabs-is-button-a-text: var(--powder-muted);
    --platform-symbol-surface: var(--powder-subtle);
    --platform-admin-form-label-text: var(--powder-muted);
    --platform-admin-form-input-border: var(--powder-field-border);
    --platform-admin-form-input-text: var(--powder-muted);
    --platform-history-li-border-bottom: var(--powder-line);
    --platform-history-time-text: var(--powder-muted);
    --platform-history-p-text: var(--powder-muted);
    --platform-support-text: var(--powder-muted);
    --platform-menu-panel-floating-shadow: #392c4012;
    --platform-menu-roles-expanded-border: var(--powder-line);
    --platform-menu-roles-button-pressed-true-surface: var(--powder-selected);
    --platform-menu-roles-button-pressed-true-text: var(--powder-muted);
    --platform-role-indicator-border: var(--powder-line);
    --platform-role-indicator-surface: var(--powder-subtle);
    --prototype-banner-span-last-child-text: #f7e7f2;
    --prototype-dot-surface: #f7e7f2;
    --brand-mark-border: var(--powder-line);
    --brand-divider-text: var(--powder-muted);
    --quiet-button-text: var(--powder-muted);
    --simulation-label-text: var(--powder-muted);
    --heading-slash-text: var(--powder-muted);
    --action-form-panel-border: var(--powder-line);
    --synthetic-input-note-border-left: var(--powder-field-border);
    --ui-input-disabled-surface: var(--powder-subtle);
    --detail-prose-text: var(--powder-muted);
    --detail-prose-h3-text: var(--powder-muted);
    --candidate-card-border: var(--powder-line);
    --candidate-card-surface: var(--powder-subtle);
    --candidate-card-chosen-candidate-border: var(--powder-line);
    --candidate-card-chosen-candidate-surface: var(--powder-selected);
    --contract-history-li-border: var(--powder-line);
    --contract-history-li-surface: var(--powder-subtle);
    --inbox-count-surface: var(--powder-subtle);
    --notification-list-li-border-bottom: var(--powder-line);
    --notification-list-strong-text: var(--powder-muted);
    --notification-new-surface: var(--powder-selected);
    --sync-area-text: var(--powder-muted);
    --icon-button-border: var(--powder-field-border);
    --icon-button-text: var(--powder-muted);
    --icon-button-hover-border: var(--powder-field-border);
    --stage-list-li-li-before-border-top: var(--powder-line);
    --stage-list-li-li-before-border-right: var(--powder-line);
    --stage-number-border: var(--powder-line);
    --stage-number-surface: var(--powder-subtle);
    --task-card-border: var(--powder-line);
    --task-card-surface: var(--powder-selected);
    --task-topline-eyebrow-text: var(--powder-muted);
    --task-role-border: var(--powder-line);
    --task-context-text: var(--powder-muted);
    --action-button-border: var(--powder-field-border);
    --action-button-small-text: var(--powder-muted);
    --primary-action-small-text: #f7e7f2;
    --secondary-action-hover-border: var(--powder-line);
    --task-footnote-text: var(--powder-muted);
    --waiting-state-text: var(--powder-muted);
    --waiting-state-border: var(--powder-line);
    --panel-shadow: #392c4012;
    --section-title-text: var(--powder-muted);
    --small-tag-border: var(--powder-line);
    --small-tag-surface: var(--powder-subtle);
    --status-pair-border-top: var(--powder-line);
    --status-icon-surface: var(--powder-subtle);
    --status-icon-text: var(--powder-muted);
    --status-pair-h3-text: var(--powder-muted);
    --funds-total-small-text: var(--powder-muted);
    --funds-breakdown-dt-text: var(--powder-muted);
    --funds-dot-surface: #90748a;
    --funds-dot-reserved-surface: #a27899;
    --funds-dot-bound-surface: var(--powder-action);
    --document-list-li-border-bottom: var(--powder-line);
    --document-icon-surface: var(--powder-subtle);
    --document-icon-text: var(--powder-muted);
    --document-list-span-not-document-icon-text: var(--powder-muted);
    --timeline-li-border-left: var(--powder-line);
    --timeline-dot-surface: #90748a;
    --timeline-meta-text: var(--powder-muted);
    --privacy-note-border-top: var(--powder-line);
    --privacy-note-text: var(--powder-muted);
    --footer-divider-text: var(--powder-muted);
    --loading-state-text: var(--powder-muted);
    --empty-copy-text: var(--powder-muted);
    --owner-shortcut-border: var(--powder-line);
    --variant-actions-border-top: var(--powder-line);
    --action-group-count-border: var(--powder-line);
    --action-group-count-text: var(--powder-muted);
    --funding-type-label-text: var(--powder-muted);
    --separate-funds-unit-border-top: var(--powder-line);
    --separate-funds-unit-border-bottom: var(--powder-line);
    --separate-funds-unit-span-not-eyebrow-text: var(--powder-muted);
    --selection-rank-surface: var(--powder-selected);
    --candidate-review-border-top: var(--powder-line);
    --review-marker-list-li-border-bottom: var(--powder-line);
    --absence-context-surface: var(--powder-subtle);
    --absence-context-border-left: var(--powder-line);
    --additional-card-surface: var(--powder-subtle);
    --purged-data-note-border-top: var(--powder-line);
    --job-board-border-top: var(--powder-line);
    --job-board-intro-text: var(--powder-muted);
    --job-search-status-text: var(--powder-muted);
    --job-board-empty-border: var(--powder-line);
    --job-results-li-border: var(--powder-line);
    --job-results-li-surface: var(--powder-subtle);
    --job-result-school-text: var(--powder-muted);
    --preset-note-text: var(--powder-muted);
    --candidate-card-reading-surface: var(--powder-subtle);
    --primary-action-shadow: #392c4012;
    --task-eyebrow-emphasis-text: var(--powder-muted);
    --small-tag-text: var(--powder-muted);
    --small-tag-accent-surface: var(--powder-selected);
    --small-tag-accent-border: var(--powder-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(--powder-line);
    --offline-footer-border: var(--powder-line);
    --offline-notice-shadow: #392c4009;
    --login-note-border: var(--powder-line);
    --login-ring-border: #74486e08;
    --login-ring-inner: #74486e04;
    --login-ring-outer: #74486e03;
    --theme-control-option: var(--surface);
    --swal2-styled-swal2-cancel-hover-surface: var(--surface-selected);
    --masthead-surface: #452d50;
    --powder-sidebar: #f5edf4;
    --powder-header-ink: #fffcf9;
    --powder-header-mark: #ead8e8;
    --powder-header-focus: #f0bad8;
  }

  html[data-theme="powder"][data-color-scheme="light"] body { background: var(--app-surface); }
  html[data-theme="powder"][data-color-scheme="light"] {
    --powder-brass: #927046;
    --serif: var(--font-heading);
    --panel-shadow: #452d500a;
    --masthead-surface: #452d50;
    --login-ring-border: #74486e15;
    --login-ring-inner: #74486e08;
    --login-ring-outer: #74486e05;
  }

  html[data-theme="powder"][data-color-scheme="light"] body { background: var(--app-surface); color: var(--text); }
  html[data-theme="powder"][data-color-scheme="light"] :is(h1, h2, .swal2-title) { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.015em; }
  html[data-theme="powder"][data-color-scheme="light"] h1 { line-height: 1.2; }
  html[data-theme="powder"][data-color-scheme="light"] :is(.workbench-brand, .portal-app-brand) { font-family: var(--font-heading); letter-spacing: .005em; }
  html[data-theme="powder"][data-color-scheme="light"] :is(.workbench-brand small, .portal-app-brand small, .application-demo-badge) { font-family: var(--font-body); letter-spacing: normal; }
  html[data-theme="powder"][data-color-scheme="light"] .masthead {
    background: #452d50; border-bottom: 1px solid var(--powder-brass);
    box-shadow: 0 4px 16px #180c2010;
  }
  html[data-theme="powder"][data-color-scheme="light"] :is(.workbench-brand-mark, .brand-mark) {
    background: transparent; border: 1px solid #cbb080; color: #f6e6f0;
    border-radius: 18px 18px 4px 4px;
  }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar {
    background: #f1e4e9; border-right: 1px solid var(--line);
  }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar nav a[aria-current="page"] {
    background: var(--surface-selected); color: var(--text);
    box-shadow: inset 3px 0 var(--powder-brass);
  }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar nav a[aria-current="page"] .ui-icon { color: var(--link); }
  html[data-theme="powder"][data-color-scheme="light"] .application-panel-heading {
    background: transparent; border: 0;
  }
  html[data-theme="powder"][data-color-scheme="light"] :is(.application-panel, .portal-job-card, .platform-card, .feedback-compose, .feedback-inbox) {
    border-color: var(--line); background: var(--surface);
  }
  html[data-theme="powder"][data-color-scheme="light"] :is(.ui-button, .primary-action, .secondary-action, .swal2-styled) { border-radius: 7px; }
  html[data-theme="powder"][data-color-scheme="light"] .ui-button[aria-pressed="true"] {
    background: var(--surface-selected); color: var(--text); border-color: var(--control-border);
  }
  html[data-theme="powder"][data-color-scheme="light"] :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="powder"][data-color-scheme="light"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--powder-focus); outline-offset: 3px;
  }
  html[data-theme="powder"][data-color-scheme="light"] :is(.application-menu-panel, .role-context-panel, .swal2-popup, .feedback-dialog) {
    border: 1px solid var(--control-border); background: var(--surface); color: var(--text);
    box-shadow: 0 14px 40px #180c2026;
  }
  html[data-theme="powder"][data-color-scheme="light"] :is(.swal2-html-container, .swal2-close) { color: var(--text); }
  html[data-theme="powder"][data-color-scheme="light"] .application-footer { background: #f1e4e9; color: var(--muted); border-top: 1px solid var(--line); }
  html[data-theme="powder"][data-color-scheme="light"] :is(input, textarea, [contenteditable="true"]) { caret-color: var(--link); }
  html[data-theme="powder"][data-color-scheme="light"] ::selection { color: var(--text); background: var(--surface-selected); }
  html[data-theme="powder"][data-color-scheme="light"] { scrollbar-color: var(--control-border) var(--surface-subtle); }
  html[data-theme="powder"][data-color-scheme="light"][data-standalone] :is(body, button, input, select, textarea, .brand, .brand-title) { font-family: var(--font-body); }
  html[data-theme="powder"][data-color-scheme="light"][data-standalone] h1 { font-size: var(--title-page); }
  html[data-theme="powder"][data-color-scheme="light"][data-standalone] h2 { font-size: var(--title-card); }
  html[data-theme="powder"][data-color-scheme="light"][data-standalone="login"] .card {
    border-radius: var(--card-radius); border: 1px solid var(--line); border-top: 2px solid var(--powder-brass);
    box-shadow: 0 18px 46px #180c2014;
  }
  html[data-theme="powder"][data-color-scheme="light"][data-standalone="offline"] .notice { border-radius: var(--card-radius); }
  html[data-theme="powder"][data-color-scheme="light"][data-standalone] .brand-mark { color: var(--powder-ink); border-color: var(--powder-brass); }
  /* A single satin reflection follows deliberate hover; no timers or ambient motion. */
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    html[data-theme="powder"][data-color-scheme="light"] :is(.ui-button-primary, .primary-action, .platform-primary, .swal2-confirm, .card button[type="submit"]):not(:disabled) {
      background-image: linear-gradient(110deg, transparent 35%, #ffffff30 48%, transparent 61%);
      background-size: 260% 100%; background-position: 100% 0;
      transition: background-position 520ms cubic-bezier(.16, 1, .3, 1), border-color 180ms ease;
    }
    html[data-theme="powder"][data-color-scheme="light"] :is(.ui-button-primary, .primary-action, .platform-primary, .swal2-confirm, .card button[type="submit"]):not(:disabled):hover {
      background-position: 0 0;
    }
  }

  html[data-theme="powder"][data-color-scheme="light"][data-standalone="login"] .intro::before {
    background: url('/theme-feather-fan.webp') center / contain no-repeat;
    width: 360px; height: 320px; left: -110px; top: -250px;
    transform: rotate(-12deg); border: 0; box-shadow: none; opacity: .9;
  }
  @media (max-width: 760px) {
    html[data-theme="powder"][data-color-scheme="light"][data-standalone="login"] .intro::before { display: none; }
  }
  @media (min-width: 1100px) {
    html[data-theme="powder"][data-color-scheme="light"] .masthead {
      background-image: linear-gradient(110deg, #39213f, #4c2c4c 50%, #302037);
    }
  }
  html[data-theme="powder"][data-color-scheme="light"] .theme-control .theme-picker select { width: 10em; }
  html[data-theme="powder"][data-color-scheme="light"] .masthead :is(a, button, summary):focus-visible {
    outline-color: #f0bad8;
  }

  /* A curved blush title band and paper surfaces carry the atelier composition. */
  html[data-theme="powder"][data-color-scheme="light"] {
    --powder-brass: #a77d4e;
    --powder-ink: #39213c;
    --powder-muted: #6b5369;
    --powder-action: #713e68;
    --powder-subtle: #f4e8ed;
    --powder-selected: #ead3e5;
    --title-page: 2.25rem;
    --title-page-display: clamp(2.75rem, 4.6vw, 4.5rem);
    --title-section: 1.75rem;
    --title-card: var(--title-section);
    --title-detail: 1.375rem;
    --card-radius: 12px;
    --surface: #fffcf8;
    --app-surface: #fbf5ef;
  }
  html[data-theme="powder"][data-color-scheme="light"] :is(h1, h2, h3) { font-family: var(--font-heading); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar { background: linear-gradient(100deg, #f3e8f0, #eddfeb); border-right: 1px solid var(--powder-brass); padding-inline: 16px; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar nav a { border: 1px solid transparent; border-radius: 4px; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar nav a[aria-current="page"] { border-color: var(--powder-brass); background: linear-gradient(115deg, #efdcec, #dfbdd8); box-shadow: 0 4px 10px #6b3d6320; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar nav a[aria-current="page"] svg { color: var(--powder-ink); }
  html[data-theme="powder"][data-color-scheme="light"] :is(.workbench-brand-mark, .brand-mark) { border-radius: 12px 12px 3px 3px; outline: 1px solid #cbb08055; outline-offset: 3px; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-main { --theme-main-inset: var(--workbench-main-inset, var(--space-32px)); padding-top: 0; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-main > .work-task-return:first-child { padding-top: var(--space-24px); }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading {
    position: relative; isolation: isolate; overflow: hidden; min-height: 144px;
    padding: 24px var(--theme-main-inset); margin: 0 calc(-1 * var(--theme-main-inset)) 28px; align-items: center;
    background: #f7e7e4; border-radius: 0 0 45% 0 / 0 0 14% 0;
  }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading > * { position: relative; z-index: 2; min-width: 0; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading > div:first-child { flex: 1 1 auto; max-width: 72%; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading > :is(.ui-button, .m5-actions) { flex: 0 1 auto; max-width: 46%; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading h1 { font-size: var(--title-page); font-style: italic; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading p { margin: 12px 0 0; max-width: 65ch; }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -115px -45px -110px auto; width: 47%; opacity: .8;
    background: url('/theme-feather-fan.webp') center 46% / cover no-repeat;
  }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading::after {
    content: ""; position: absolute; z-index: 1; pointer-events: none; width: 115%; height: 460px; left: -53%; top: -295px;
    border-radius: 50%; border-bottom: 1px solid var(--powder-brass); background: linear-gradient(130deg, #fff7ef, #f9e2df);
    box-shadow: 0 4px 12px #8b5e5a30; transform: rotate(18deg);
  }
  html[data-theme="powder"][data-color-scheme="light"] .workbench-heading.theme-heading-featured { min-height: 228px; align-items: flex-end; padding-block: 32px; }
  html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured h1 { font-size: var(--title-page-display); }
  html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured > div:first-child { max-width: 64%; }
  html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured::before { opacity: 1; width: 58%; inset: -165px -64px -170px auto; }
  html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured::after { top: -245px; height: 510px; }
  html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured > .ui-button-primary { min-height: 50px; border: 1px solid var(--powder-brass); outline: 1px solid var(--powder-brass); outline-offset: 3px; box-shadow: 0 8px 20px #180c2038; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-panel { border: 0; background: transparent; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-panel > .application-panel-heading { padding-inline: 0; padding-bottom: 0; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-panel > .application-panel-heading h2 { font-size: var(--title-section); }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-panel > .work-task-body { padding-inline: 0; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-states { gap: 8px; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-states > button { min-height: 56px; padding-inline: 20px; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-states > button[aria-pressed="true"]:not(:disabled) { background: linear-gradient(115deg, #563052, #713e68); border-color: var(--powder-brass); color: #fff8f3; outline: 1px solid var(--powder-brass); outline-offset: 2px; }
  html[data-theme="powder"][data-color-scheme="light"] :is(.work-task-states > button[aria-pressed="true"]:not(:disabled), .theme-heading-featured > .ui-button-primary):focus-visible { outline: 3px solid var(--powder-focus); outline-offset: 3px; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-count { font-family: var(--font-heading); font-size: var(--title-section); font-weight: 400; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-list { display: grid; gap: 16px; padding-top: 20px; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 20px 24px; }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-main h3 { font-size: var(--title-detail); }
  html[data-theme="powder"][data-color-scheme="light"] .work-task-main h3 a { color: var(--powder-ink); }
  html[data-theme="powder"][data-color-scheme="light"] a { text-underline-offset: .18em; }
  html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro {
    position: relative; isolation: isolate; overflow: hidden; max-width: none; min-height: 144px;
    margin-bottom: 28px; padding: 24px; border-radius: 12px 12px 36% 0 / 12px 12px 14% 0; background: #f7e7e4;
  }
  html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro > * { position: relative; z-index: 2; display: block; max-width: 72%; }
  html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro h1 { margin: 12px 0 0; font-style: italic; line-height: 1.15; overflow-wrap: anywhere; }
  html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -110px -35px -105px auto; width: 42%;
    background: url('/theme-feather-fan.webp') center 46% / cover no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 64px);
  }
  html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro::after {
    content: ""; position: absolute; z-index: 1; pointer-events: none; width: 115%; height: 360px; left: -48%; top: -245px;
    border-radius: 50%; border-bottom: 1px solid var(--powder-brass); background: linear-gradient(130deg, #fff7ef, #f9e2df); transform: rotate(18deg);
  }
  @media (max-width: 900px) {
    html[data-theme="powder"][data-color-scheme="light"] .workbench-sidebar { border-right: 0; border-bottom: 1px solid var(--powder-brass); }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading { min-height: 132px; }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading.theme-heading-featured { min-height: 208px; }
  }
  @media (max-width: 640px) {
    html[data-theme="powder"][data-color-scheme="light"] { --title-page-display: clamp(2rem, 11vw, 2.75rem); }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading { gap: 20px; padding-block: 24px; align-items: stretch; }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading > div:first-child { flex: 0 1 auto; max-width: calc(100% - 52px); }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading > :is(.ui-button, .m5-actions) { max-width: 100%; flex: 0 1 auto; align-self: flex-start; }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading::before { width: 190px; inset: -75px -110px -70px auto; opacity: .6; }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading::after { width: 130%; height: 390px; left: -48%; top: -230px; transform: rotate(14deg); }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading.theme-heading-featured { min-height: 204px; padding-block: 24px; align-items: stretch; }
    html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured > div:first-child { max-width: calc(100% - 88px); }
    html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured::before { width: 270px; inset: -70px -150px -70px auto; opacity: .8; mask-image: linear-gradient(90deg, transparent, #000 48px); }
    html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured::after { top: -175px; }
    html[data-theme="powder"][data-color-scheme="light"] .workbench-heading h1 { line-height: 1.15; }
    html[data-theme="powder"][data-color-scheme="light"] .theme-heading-featured > .ui-button-primary { min-height: 44px; }
    html[data-theme="powder"][data-color-scheme="light"] .work-task-states > button { padding-inline: 12px; }
    html[data-theme="powder"][data-color-scheme="light"] .work-task-row { padding: 20px; }
    html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro { padding: 20px; }
    html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro > * { max-width: calc(100% - 68px); }
    html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro::before { width: 180px; inset: -60px -80px -60px auto; mask-image: linear-gradient(90deg, transparent, #000 48px); }
    html[data-theme="powder"][data-color-scheme="light"] .portal-app-intro::after { width: 145%; left: -70%; top: -235px; }
  }
}
