/*
 * PersonalOS 17 — Phase 3/10: Dark Luxe.
 * Premium charcoal surfaces with champagne accents; the application shell,
 * data structures and business logic remain unchanged.
 */
html[data-ui-style="dark-luxe"] {
  color-scheme: dark;
  --bg: #101315;
  --app-bg: #101315;
  --surface: #191e20;
  --surface-2: #202729;
  --border: #30393a;
  --border-strong: #465252;
  --text: #f1eee6;
  --muted: #aaa69b;
  --muted-2: #85877f;
  --primary: #c9aa6b;
  --primary-hover: #dfc184;
  --primary-soft: rgba(201,170,107,.14);
  --success: #63bd91;
  --success-soft: rgba(99,189,145,.13);
  --warning: #e0b36b;
  --warning-soft: rgba(224,179,107,.13);
  --danger: #e17d7d;
  --danger-soft: rgba(225,125,125,.13);
  --info: #92b6d5;
  --info-soft: rgba(146,182,213,.13);
  --shadow: 0 12px 34px rgba(0,0,0,.22);
  --shadow-pop: 0 24px 70px rgba(0,0,0,.48);
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
  background: #101315;
  accent-color: #c9aa6b;
  scrollbar-color: #51514a #181d1f;
}

html[data-ui-style="dark-luxe"] body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 84% 0%, rgba(151,119,63,.105), transparent 30%),
    radial-gradient(ellipse at 0% 72%, rgba(75,94,88,.10), transparent 30%),
    linear-gradient(145deg, #101315 0%, #14191a 54%, #111516 100%);
  background-attachment: fixed;
}
html[data-ui-style="dark-luxe"] ::selection { color: #1c1912; background: rgba(216,188,126,.82); }
html[data-ui-style="dark-luxe"] * { scrollbar-color: #50534d #171c1e; }
html[data-ui-style="dark-luxe"] button,
html[data-ui-style="dark-luxe"] input,
html[data-ui-style="dark-luxe"] textarea,
html[data-ui-style="dark-luxe"] select { color-scheme: dark; }
html[data-ui-style="dark-luxe"] :focus-visible {
  outline-color: rgba(214,184,119,.68);
  box-shadow: 0 0 0 3px rgba(201,170,107,.14);
}

/* App frame */
html[data-ui-style="dark-luxe"] .app-shell,
html[data-ui-style="dark-luxe"] .app-frame,
html[data-ui-style="dark-luxe"] .main-content { background: transparent; }
html[data-ui-style="dark-luxe"] .sidebar {
  color: var(--text);
  background: linear-gradient(180deg, rgba(25,30,32,.98), rgba(20,25,27,.98));
  border-right: 1px solid #30393a;
  box-shadow: 14px 0 38px rgba(0,0,0,.12);
}
html[data-ui-style="dark-luxe"] .brand-row { border-bottom-color: rgba(201,170,107,.17); }
html[data-ui-style="dark-luxe"] .brand-copy strong { color: #f2ead8; }
html[data-ui-style="dark-luxe"] .brand-copy span,
html[data-ui-style="dark-luxe"] .nav-group-label,
html[data-ui-style="dark-luxe"] .version-note { color: #918f84; }
html[data-ui-style="dark-luxe"] .nav-item {
  color: #b9b8ae;
  border-color: transparent;
  border-radius: 11px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
html[data-ui-style="dark-luxe"] .nav-item svg { color: #8d938e; }
html[data-ui-style="dark-luxe"] .nav-item:hover {
  color: #f0e6d0;
  background: rgba(201,170,107,.085);
  border-color: rgba(201,170,107,.15);
}
html[data-ui-style="dark-luxe"] .nav-item.active,
html[data-ui-style="dark-luxe"] .nav-item[aria-current="page"] {
  color: #e9d4a6;
  background: linear-gradient(100deg, rgba(201,170,107,.17), rgba(201,170,107,.055));
  border-color: rgba(201,170,107,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-ui-style="dark-luxe"] .nav-item.active::before,
html[data-ui-style="dark-luxe"] .nav-item[aria-current="page"]::before { background: #c9aa6b; }
html[data-ui-style="dark-luxe"] .nav-item.active svg,
html[data-ui-style="dark-luxe"] .nav-item[aria-current="page"] svg { color: #d9bb7d; }
html[data-ui-style="dark-luxe"] .sidebar-bottom { border-top-color: #30393a; }
html[data-ui-style="dark-luxe"] .drive-chip,
html[data-ui-style="dark-luxe"] .quick-add-button {
  color: #e0ded5;
  background: #202729;
  border-color: #394344;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-ui-style="dark-luxe"] .drive-chip:hover,
html[data-ui-style="dark-luxe"] .quick-add-button:hover { background: #283132; border-color: #756342; }
html[data-ui-style="dark-luxe"] .drive-chip-copy strong { color: #e6e0d2; }
html[data-ui-style="dark-luxe"] .drive-chip-copy small { color: #9e9d92; }
html[data-ui-style="dark-luxe"] .chip-chevron { color: #a49a84; }
html[data-ui-style="dark-luxe"] .plus-mark {
  color: #e2c78e;
  background: rgba(201,170,107,.15);
  border: 1px solid rgba(201,170,107,.18);
}

/* Header, controls and global actions */
html[data-ui-style="dark-luxe"] .topbar {
  color: var(--text);
  background: rgba(20,25,27,.94);
  border-bottom: 1px solid #30393a;
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}
html[data-ui-style="dark-luxe"] .eyebrow,
html[data-ui-style="dark-luxe"] .page-kicker { color: #b99d68; }
html[data-ui-style="dark-luxe"] .topbar-title,
html[data-ui-style="dark-luxe"] .page-title { color: #f1eee6; }
html[data-ui-style="dark-luxe"] .icon-button,
html[data-ui-style="dark-luxe"] .topbar-search,
html[data-ui-style="dark-luxe"] .drive-status-pill,
html[data-ui-style="dark-luxe"] .today-button,
html[data-ui-style="dark-luxe"] .avatar-button {
  color: #d0cfc6;
  background: #1d2426;
  border: 1px solid #394344;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-ui-style="dark-luxe"] .icon-button:hover,
html[data-ui-style="dark-luxe"] .topbar-search:hover,
html[data-ui-style="dark-luxe"] .drive-status-pill:hover,
html[data-ui-style="dark-luxe"] .today-button:hover,
html[data-ui-style="dark-luxe"] .avatar-button:hover {
  color: #f0dfbb;
  background: #283133;
  border-color: #786545;
}
html[data-ui-style="dark-luxe"] .avatar-initials {
  color: #e9d4a6;
  background: linear-gradient(145deg,#4b402b,#27251f);
  border-color: #796744;
}
html[data-ui-style="dark-luxe"] .avatar-button > svg { color: #b5a47f; }
html[data-ui-style="dark-luxe"] kbd {
  color: #b8b4a7;
  background: #171c1e;
  border-color: #3a4343;
}
html[data-ui-style="dark-luxe"] .primary-button {
  color: #201b12;
  background: linear-gradient(135deg,#d9bd83,#b99452);
  border-color: #d2b675;
  box-shadow: 0 5px 16px rgba(173,137,72,.20), inset 0 1px 0 rgba(255,255,255,.30);
}
html[data-ui-style="dark-luxe"] .primary-button:hover:not(:disabled) {
  color: #17140e;
  background: linear-gradient(135deg,#e6cd98,#c5a365);
  border-color: #e0c58b;
}
html[data-ui-style="dark-luxe"] .secondary-button,
html[data-ui-style="dark-luxe"] .ghost-button {
  color: #d9d4c7;
  background: #22292b;
  border-color: #414a49;
}
html[data-ui-style="dark-luxe"] .secondary-button:hover:not(:disabled),
html[data-ui-style="dark-luxe"] .ghost-button:hover:not(:disabled) {
  color: #f0dfbb;
  background: #2a3334;
  border-color: #806c46;
}
html[data-ui-style="dark-luxe"] .danger-button {
  color: #f1b0aa;
  background: rgba(151,60,56,.14);
  border-color: rgba(206,103,96,.32);
}

/* Main content and reusable cards */
html[data-ui-style="dark-luxe"] .page-description,
html[data-ui-style="dark-luxe"] .surface-card-header p,
html[data-ui-style="dark-luxe"] .app-footer { color: #aaa99e; }
html[data-ui-style="dark-luxe"] #mainContent :is(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title) { color: #eee9dd; }
html[data-ui-style="dark-luxe"] #mainContent :is(.surface-card,.system-card,.kpi-card,.quick-action,.module-intro-card,
  .p2-note-card,.p2-list-surface,.p2-contact-card,.p2-health-card,.p2-inventory-card,.p2-profile-card,.p2-pie-panel,.p2-daily-cashflow-card,
  .p3-rail-card,.p3-task-card,.p3-calendar-task-card,.p4-budget-card,.p4-account-card,.p4-cashflow-card,.p4-chart-card,.p4-table-card,.p4-recent-card,
  .p5-file-card,.p5-link-card,.p5-tip-card,.p5-translate-card,.p5-vocab-card,.p6-world-card,.p6-clock-card,.p6-calculator-card,.p6-privacy-cards,
  .p11-learning-panel,.p11-learning-tool-card,.p11-learning-tip-panel,.p14-budget-set-card,.p14-history-card,
  .os7-calc-card,.os7-formula-card,.os10-wheel-stage-card,.pl-album-card,.pl-photo-card,.pl-stat-card,
  .fc-deck-card,.fc-list-card,.fc-study-card,.mm-project-card,.pspdf-left-panel,.pspdf-right-panel) {
  color: var(--text);
  background: linear-gradient(155deg, rgba(31,38,39,.98), rgba(24,30,32,.98));
  border-color: #35403f;
  box-shadow: 0 10px 26px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-ui-style="dark-luxe"] #mainContent :is(.surface-card,.system-card,.kpi-card,.quick-action,.p2-note-card,.p3-task-card,.p4-budget-card,.p4-account-card,.p5-file-card,.p6-world-card) :is(h1,h2,h3,h4,strong) { color: #eee8da; }
html[data-ui-style="dark-luxe"] .surface-card-header { border-color: #35403f; }
html[data-ui-style="dark-luxe"] .surface-card-header h1,
html[data-ui-style="dark-luxe"] .surface-card-header h2,
html[data-ui-style="dark-luxe"] .surface-card-header h3 { color: #eee8da; }
html[data-ui-style="dark-luxe"] .surface-card-header p { color: #aaa99e; }
html[data-ui-style="dark-luxe"] #mainContent :is(.kpi-card,.quick-action,.p5-file-card,.pl-album-card,.p3-task-card):hover {
  border-color: rgba(201,170,107,.48);
  box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 0 0 1px rgba(201,170,107,.07);
}
html[data-ui-style="dark-luxe"] #mainContent :is(.kpi-label,.kpi-caption,.muted,.field-help,.helper-text,.form-hint,.empty-widget-copy p) { color: #a9aa9f; }
html[data-ui-style="dark-luxe"] #mainContent :is(.page-kicker,.section-eyebrow,.module-intro-kicker) { color: #b99d68; }
html[data-ui-style="dark-luxe"] #mainContent :is(a,.text-link) { color: #d7ba7c; }
html[data-ui-style="dark-luxe"] #mainContent :is(a,.text-link):hover { color: #f0d59c; }

/* Inputs, selectors, memory suggestions and editable surfaces */
html[data-ui-style="dark-luxe"] .input-control,
html[data-ui-style="dark-luxe"] #mainContent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-ui-style="dark-luxe"] #mainContent select,
html[data-ui-style="dark-luxe"] #mainContent textarea,
html[data-ui-style="dark-luxe"] #modalLayer .input-control,
html[data-ui-style="dark-luxe"] #modalLayer input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-ui-style="dark-luxe"] #modalLayer select,
html[data-ui-style="dark-luxe"] #modalLayer textarea {
  color: #eee9dd;
  background: #151b1d;
  border-color: #3c4847;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18);
}
html[data-ui-style="dark-luxe"] #mainContent input::placeholder,
html[data-ui-style="dark-luxe"] #mainContent textarea::placeholder,
html[data-ui-style="dark-luxe"] #modalLayer input::placeholder,
html[data-ui-style="dark-luxe"] #modalLayer textarea::placeholder { color: #858a82; opacity: 1; }
html[data-ui-style="dark-luxe"] #mainContent :is(input,select,textarea):focus,
html[data-ui-style="dark-luxe"] #modalLayer :is(input,select,textarea):focus {
  border-color: #b99a5e;
  box-shadow: 0 0 0 3px rgba(201,170,107,.14);
}
html[data-ui-style="dark-luxe"] #mainContent :is(input,select,textarea):disabled,
html[data-ui-style="dark-luxe"] #modalLayer :is(input,select,textarea):disabled {
  color: #888b83;
  background: #1b2021;
  border-color: #303838;
}
html[data-ui-style="dark-luxe"] #mainContent input[type="checkbox"],
html[data-ui-style="dark-luxe"] #mainContent input[type="radio"],
html[data-ui-style="dark-luxe"] #modalLayer input[type="checkbox"],
html[data-ui-style="dark-luxe"] #modalLayer input[type="radio"] { accent-color: #c9aa6b; }
html[data-ui-style="dark-luxe"] .pm-field-memory-panel,
html[data-ui-style="dark-luxe"] .os8-color-popover,
html[data-ui-style="dark-luxe"] .p6-settings-preview,
html[data-ui-style="dark-luxe"] .pos16-theme-note,
html[data-ui-style="dark-luxe"] .pos16-rollout-badge {
  color: var(--text);
  background: #22292a;
  border-color: #414b49;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
html[data-ui-style="dark-luxe"] .pm-field-memory-panel [role="option"]:hover { background: rgba(201,170,107,.12); }

/* Tables, lists, tabs and data visualizations */
html[data-ui-style="dark-luxe"] #mainContent :is(table,.p2-table,.p4-table,.p5-file-table,.p6-lap-table) { color: #e8e5dc; border-color: #394342; }
html[data-ui-style="dark-luxe"] #mainContent table thead,
html[data-ui-style="dark-luxe"] #mainContent table th,
html[data-ui-style="dark-luxe"] #mainContent :is(.p2-table th,.p4-table th,.p5-file-table th) {
  color: #d9c79f;
  background: #242c2d;
  border-color: #3c4745;
}
html[data-ui-style="dark-luxe"] #mainContent table td,
html[data-ui-style="dark-luxe"] #mainContent :is(.p2-table td,.p4-table td,.p5-file-table td) {
  color: #d7d8d0;
  background: rgba(22,28,29,.68);
  border-color: #333e3c;
}
html[data-ui-style="dark-luxe"] #mainContent table tbody tr:hover td { background: rgba(201,170,107,.075); }
html[data-ui-style="dark-luxe"] #mainContent :is(.subnav,.p4-tabs,.p2-tabs,.p3-work-tabs,.pspdf-panel-tabs,.pspdf-ribbon-tabs) {
  color: #bdb9ac;
  background: #1b2223;
  border-color: #3a4443;
}
html[data-ui-style="dark-luxe"] #mainContent :is(.subnav button,.p4-tab,.p2-tab,.p11-learning-tab,.pspdf-panel-tabs button,.pspdf-ribbon-tabs button) { color: #b9b8ad; }
html[data-ui-style="dark-luxe"] #mainContent :is(.subnav button.active,.p4-tab.active,.p2-tab.active,.p11-learning-tab.active,.pspdf-panel-tabs button.active,.pspdf-ribbon-tabs button.active) {
  color: #ead4a7;
  background: rgba(201,170,107,.13);
  border-color: rgba(201,170,107,.27);
  box-shadow: inset 0 -2px 0 rgba(201,170,107,.68);
}
html[data-ui-style="dark-luxe"] #mainContent :is(.p2-list-surface,.p2-table-wrap,.p4-table-scroll,.p5-file-table-wrap,.p5-vocab-list,.p11-learning-summary-list) {
  background: #171d1f;
  border-color: #35403f;
}
html[data-ui-style="dark-luxe"] #mainContent :is(.empty-widget,.empty-widget-copy,.empty-state,.helper-panel,.p5-tip-card,.p11-learning-tip-panel) { color: #b9b8ad; }
html[data-ui-style="dark-luxe"] #mainContent :is(.activity-item,.p2-checklist-item,.p2-repeat-list > *, .p3-groups-list > *, .p5-vocab-list > *, .p11-learning-summary-list > *) { border-color: #343e3d; }

/* Dialog layers and floating menus */
html[data-ui-style="dark-luxe"] .account-popover,
html[data-ui-style="dark-luxe"] .mobile-more-sheet,
html[data-ui-style="dark-luxe"] .modal-card,
html[data-ui-style="dark-luxe"] .toast,
html[data-ui-style="dark-luxe"] .fc-dialog,
html[data-ui-style="dark-luxe"] .mm-dialog,
html[data-ui-style="dark-luxe"] .p3-modal-card,
html[data-ui-style="dark-luxe"] .p4-modal,
html[data-ui-style="dark-luxe"] .p5-dialog,
html[data-ui-style="dark-luxe"] .p5-preview-dialog,
html[data-ui-style="dark-luxe"] .p5-quick-dialog,
html[data-ui-style="dark-luxe"] .p5-search-dialog,
html[data-ui-style="dark-luxe"] .pl-editor-dialog,
html[data-ui-style="dark-luxe"] .os7-modal-card,
html[data-ui-style="dark-luxe"] .p12-modal,
html[data-ui-style="dark-luxe"] .q-modal,
html[data-ui-style="dark-luxe"] .q-sample-modal {
  color: #ebe7dc;
  background: linear-gradient(155deg,#242b2c,#1b2223);
  border-color: #424c49;
  box-shadow: 0 28px 80px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-ui-style="dark-luxe"] .account-popover button { color: #d9d7ce; background: transparent; }
html[data-ui-style="dark-luxe"] .account-popover button:hover { background: rgba(201,170,107,.11); }
html[data-ui-style="dark-luxe"] .account-popover button svg { color: #bba16d; }
html[data-ui-style="dark-luxe"] .popover-heading { color: #c3ac7d; }
html[data-ui-style="dark-luxe"] .popover-foot { color: #969a90; border-color: #394342; }
html[data-ui-style="dark-luxe"] .modal-header,
html[data-ui-style="dark-luxe"] .modal-footer,
html[data-ui-style="dark-luxe"] .fc-dialog-head,
html[data-ui-style="dark-luxe"] .p5-dialog-head,
html[data-ui-style="dark-luxe"] .pl-editor-header { border-color: #3d4745; }
html[data-ui-style="dark-luxe"] .modal-layer,
html[data-ui-style="dark-luxe"] .fc-dialog-layer,
html[data-ui-style="dark-luxe"] .mm-dialog-layer,
html[data-ui-style="dark-luxe"] .p3-modal-backdrop,
html[data-ui-style="dark-luxe"] .p5-dialog-layer,
html[data-ui-style="dark-luxe"] .p12-modal-backdrop,
html[data-ui-style="dark-luxe"] .q-modal-layer,
html[data-ui-style="dark-luxe"] .os7-modal-backdrop { background: rgba(5,8,9,.72); backdrop-filter: blur(5px); }
html[data-ui-style="dark-luxe"] .mobile-more-layer { background: rgba(5,8,9,.60); }
html[data-ui-style="dark-luxe"] .mobile-more-sheet { border-color: #48514b; }
html[data-ui-style="dark-luxe"] .modal-body,
html[data-ui-style="dark-luxe"] .fc-dialog-body,
html[data-ui-style="dark-luxe"] .mm-dialog-body { background: transparent; }

/* Feature modules: flashcards, mind maps, photo library, PDF studio and learning. */
html[data-ui-style="dark-luxe"] :is(.fc-card-face,.fc-study-card-inner,.fc-list-face,.mm-left-panel,.mm-inspector-section,
  .pspdf-left-panel,.pspdf-right-panel,.pspdf-editor-header,.pspdf-panel-content,.pspdf-document-toolbar,
  .pl-side-section,.pl-library-section,.pl-editor-header,.pl-stat-card,.pl-album-card-info,
  .p2-crop-dialog,.p12-preview-table-wrap,.p11-learning-panel,.p11-learning-tool-card,.p11-learning-tip-panel) {
  color: #e5e2d8;
  background-color: #1b2223;
  border-color: #394442;
}
html[data-ui-style="dark-luxe"] :is(.fc-card-front,.fc-card-back,.mm-outline-item,.mm-template-list,.fc-template-list,
  .pspdf-annotation-item,.pspdf-thumb-item,.pspdf-outline-item,.pspdf-property-list,.pspdf-bookmark-list > button,
  .pl-photo-card,.pl-album-card,.p2-gallery-item,.p2-multi-image-item) {
  color: #dfded5;
  background: #202728;
  border-color: #3d4846;
}
html[data-ui-style="dark-luxe"] :is(.fc-card-side-label,.fc-card-index,.fc-card-flip-hint,.mm-panel-heading,.pspdf-library-header,.pl-main-header) { color: #c2ae82; }
html[data-ui-style="dark-luxe"] :is(.fc-card-content,.mm-node,.pspdf-note-list,.pspdf-doc-list,.pl-photo-card-info) { color: #e1ded5; }

/* Charts: keep dataset colors, recolor only chart framing and text. */
html[data-ui-style="dark-luxe"] #mainContent :is(.chart-card,.p4-chart-card,.p2-pie-panel) { background: #1a2021; border-color: #384341; }
html[data-ui-style="dark-luxe"] #mainContent svg :is(text,.chart-label,.axis-label) { fill: #bdb8aa; }
html[data-ui-style="dark-luxe"] .p6-settings-footnote { color: #999d93; }

/* Mobile shell and footer */
html[data-ui-style="dark-luxe"] .mobile-bottom-nav {
  color: #c9c7bd;
  background: rgba(22,28,29,.97);
  border-top: 1px solid #394341;
  box-shadow: 0 -10px 28px rgba(0,0,0,.24);
}
html[data-ui-style="dark-luxe"] .mobile-bottom-nav button { color: #aaa99f; }
html[data-ui-style="dark-luxe"] .mobile-bottom-nav button.active,
html[data-ui-style="dark-luxe"] .mobile-bottom-nav button[aria-current="page"] { color: #e3c98f; }
html[data-ui-style="dark-luxe"] .app-footer { border-top-color: #303a39; }
html[data-ui-style="dark-luxe"] .mobile-scrim { background: rgba(0,0,0,.62); }

/* Subtle consistent motion; user accessibility preferences always win. */
html[data-ui-style="dark-luxe"] :is(.surface-card,.system-card,.kpi-card,.quick-action,.nav-item,.primary-button,.secondary-button,.ghost-button,.icon-button) {
  transition-property: background-color,border-color,box-shadow,color,transform;
  transition-duration: .18s;
  transition-timing-function: ease;
}
html[data-ui-style="dark-luxe"] body.p6-reduced-motion *,
html[data-ui-style="dark-luxe"] body.p6-reduced-motion *::before,
html[data-ui-style="dark-luxe"] body.p6-reduced-motion *::after {
  transition-duration: .01ms !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

@media (max-width: 820px) {
  html[data-ui-style="dark-luxe"] .sidebar { box-shadow: 18px 0 48px rgba(0,0,0,.34); }
  html[data-ui-style="dark-luxe"] .topbar { background: rgba(20,25,27,.97); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-style="dark-luxe"] *,
  html[data-ui-style="dark-luxe"] *::before,
  html[data-ui-style="dark-luxe"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Small dashboard affordances and status chips. */
html[data-ui-style="dark-luxe"] #mainContent :is(.widget-list-icon,.card-title-icon,.module-intro-icon,.step-symbol,.status-detail-icon,.activity-item .step-number,
  .kpi-icon,.p2-mini-icon,.p2-note-mark,.p4-bank-icon,.p4-budget-category-icon,.p4-type-icon,.p5-icon,.p6-section-icon) {
  color: #d6b978;
  background: rgba(201,170,107,.12);
  border-color: rgba(201,170,107,.22);
}
html[data-ui-style="dark-luxe"] #mainContent :is(.widget-list-copy strong,.status-detail-copy strong,.activity-item strong,.card-title-group h3,.module-intro-copy h2,.step-card strong) { color: #e7e2d6; }
html[data-ui-style="dark-luxe"] #mainContent :is(.widget-list-copy small,.status-detail-copy p,.card-title-group p,.module-intro-copy p,.step-card p,.activity-item p) { color: #a4a69c; }
html[data-ui-style="dark-luxe"] #mainContent .widget-placeholder-line { background: linear-gradient(90deg,#252d2e,#303837,#252d2e); }
html[data-ui-style="dark-luxe"] #mainContent .step-card,
html[data-ui-style="dark-luxe"] #mainContent .helper-panel {
  color: #d9d7cd;
  background: #1d2526;
  border-color: #394442;
}
html[data-ui-style="dark-luxe"] #mainContent .helper-panel strong { color: #dfc58f; }
html[data-ui-style="dark-luxe"] #mainContent .helper-panel p { color: #aaa99e; }
html[data-ui-style="dark-luxe"] #mainContent .helper-panel.warning {
  background: rgba(119,87,35,.16);
  border-color: rgba(197,151,72,.34);
}
html[data-ui-style="dark-luxe"] #mainContent .helper-panel.warning strong { color: #e2bd78; }
html[data-ui-style="dark-luxe"] #mainContent .helper-panel.warning p { color: #c4b18c; }
html[data-ui-style="dark-luxe"] #mainContent .pill {
  color: #c8c5b9;
  background: #252d2e;
  border-color: #414b49;
}
html[data-ui-style="dark-luxe"] #mainContent .pill.success { color: #8bd3ad; background: rgba(50,119,82,.16); border-color: rgba(98,184,133,.30); }
html[data-ui-style="dark-luxe"] #mainContent .pill.warning { color: #e5c27f; background: rgba(145,103,38,.16); border-color: rgba(205,160,84,.30); }
html[data-ui-style="dark-luxe"] #mainContent .pill.error { color: #f0a4a0; background: rgba(142,55,52,.17); border-color: rgba(204,100,94,.30); }
html[data-ui-style="dark-luxe"] #mainContent .pill.info { color: #a5c6e1; background: rgba(62,105,143,.18); border-color: rgba(113,159,198,.30); }
html[data-ui-style="dark-luxe"] #mainContent :is(.status-detail-row,.activity-item,.widget-list-row) { border-color: #343e3d; }
html[data-ui-style="dark-luxe"] #mainContent :is(.mini-calendar-grid span,.calendar-day,.p3-calendar-day) { color: #cfcdc3; }
html[data-ui-style="dark-luxe"] #mainContent :is(.mini-calendar-grid span.muted-day,.calendar-day.muted) { color: #727a75; }
html[data-ui-style="dark-luxe"] #mainContent :is(.mini-calendar-grid span.current-day,.calendar-day.today) {
  color: #201b12;
  background: #c9aa6b;
  border-color: #dfc184;
}
