/* ==========================================================================
   Lavish Booking — Global Theme Switcher (Special A3 Pastel / OG) + Curtain
   Covers all live HTML routes + full-depth /app/ views & modals
   Edit ONLY the :root token block below to recolor the entire Special Theme.
   ========================================================================== */

:root {
  /* 1. Frame & Editorial Matte Dark Plum Surfaces */
  --lavish-special-bg: #1f1827;
  --lavish-special-frame: #241c2c;
  --lavish-special-surface: #282032;
  --lavish-special-surface-2: #32283e;
  --lavish-special-surface-3: #3c314b;
  --lavish-special-border: #4d405e;
  --lavish-special-border-soft: rgba(218, 204, 228, 0.16);
  --lavish-special-text: #f6f1f8;
  --lavish-special-muted: #c3b7cf;
  --lavish-special-subtle: #9f92ae;

  /* 2. Matte Pastel Accents (Zero Neon, Zero Cyber Gradients) */
  --lavish-special-blush: #e5b8c6;
  --lavish-special-blush-hover: #ecc6d2;
  --lavish-special-blush-soft: rgba(229, 184, 198, 0.18);
  --lavish-special-blush-border: rgba(229, 184, 198, 0.48);
  --lavish-special-lavender: #d8cef0;
  --lavish-special-lavender-soft: rgba(216, 206, 240, 0.18);
  --lavish-special-lavender-border: rgba(216, 206, 240, 0.44);
  --lavish-special-peach: #eccbb4;
  --lavish-special-peach-soft: rgba(236, 203, 180, 0.18);
  --lavish-special-accent-ink: #261a24;

  /* Backward-compatible semantic aliases (now flat matte pastel) */
  --lavish-special-coral: var(--lavish-special-blush);
  --lavish-special-magenta: var(--lavish-special-lavender);
  --lavish-special-gradient: var(--lavish-special-blush);
  --lavish-special-glow: 0 2px 10px rgba(20, 14, 28, 0.28);

  /* 3. A3 Warm Cream Schedule Grid (Desktop & Mobile Parity) */
  --lavish-special-grid-bg: #f8f4ef;
  --lavish-special-grid-alt: #f3eee8;
  --lavish-special-grid-off: #e5ded6;
  --lavish-special-grid-line: #e7dfd7;
  --lavish-special-grid-major: #d5c9be;
  --lavish-special-grid-divider: #d4c9be;
  --lavish-special-header-bg: #30263a;
  --lavish-special-header-border: #473a54;
  --lavish-special-header-text: #f4eff7;
  --lavish-special-header-muted: #cbbdd6;
  --lavish-special-rail-bg: #282032;

  /* 4. Solid Matte Pastel Appointment Card Tokens (on Cream Grid) */
  --lavish-appt-lavender-bg: #e4ddf2;
  --lavish-appt-lavender-border: #c5b8e3;
  --lavish-appt-lavender-bar: #8472b0;
  --lavish-appt-lavender-ink: #261e36;

  --lavish-appt-blush-bg: #f2d8e0;
  --lavish-appt-blush-border: #deb4c2;
  --lavish-appt-blush-bar: #bc758d;
  --lavish-appt-blush-ink: #331e27;

  --lavish-appt-peach-bg: #f4e1d1;
  --lavish-appt-peach-border: #dec0a8;
  --lavish-appt-peach-bar: #c28b63;
  --lavish-appt-peach-ink: #332116;

  --lavish-appt-sage-bg: #dcece2;
  --lavish-appt-sage-border: #b4d5c0;
  --lavish-appt-sage-bar: #548f6c;
  --lavish-appt-sage-ink: #1b2e23;

  --lavish-appt-rose-bg: #f5d5da;
  --lavish-appt-rose-border: #e0acb5;
  --lavish-appt-rose-bar: #b85c6c;
  --lavish-appt-rose-ink: #381920;

  --lavish-appt-stone-bg: #eae4df;
  --lavish-appt-stone-border: #cfc5bc;
  --lavish-appt-stone-bar: #8a7d73;
  --lavish-appt-stone-ink: #2b2521;
}

/* --------------------------------------------------------------------------
   1. Theme Toggle Pill Button (Desktop Top Bar, Mobile Header, Public Navs)
   -------------------------------------------------------------------------- */
.lavish-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9999px;
  border: 1px solid var(--lavish-special-border);
  background: var(--lavish-special-surface-2);
  color: var(--lavish-special-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 6px 12px;
  min-height: 30px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(18, 12, 26, 0.24);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lavish-theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--lavish-special-surface-3);
  border-color: var(--lavish-special-blush);
  box-shadow: 0 4px 12px rgba(18, 12, 26, 0.32);
}

.lavish-theme-toggle:active {
  transform: scale(0.95);
}

.lavish-theme-toggle .lavish-theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--lavish-special-peach);
  box-shadow: none;
  flex-shrink: 0;
}

.lavish-theme-toggle[data-active-theme="classic-slate"] {
  background: linear-gradient(180deg, #ffffff 0%, #e7f0fb 100%);
  color: #23384b;
  border-color: #7f9dbc;
  box-shadow: 0 2px 8px rgba(35, 56, 75, 0.14);
}

.lavish-theme-toggle[data-active-theme="classic-slate"]:hover {
  border-color: #f0a43a;
  box-shadow: 0 4px 12px rgba(240, 164, 58, 0.3);
}

.lavish-theme-toggle[data-active-theme="classic-slate"] .lavish-theme-dot {
  background: linear-gradient(135deg, #7f9dbc 0%, #f0a43a 100%);
  box-shadow: 0 0 6px rgba(240, 164, 58, 0.55);
}

/* Desktop /app top bar placement (right next to Account dropdown) */
.window-bar .window-right-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.window-bar .lavish-theme-toggle {
  height: 26px;
  min-height: 26px;
  padding: 0 11px;
  font-size: 0.74rem;
}

/* Mobile /app schedule hero & More button ergonomics */
.mobile-schedule-mode .lavish-theme-toggle {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.76rem;
}

.mobile-more-theme-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--mobile-card-surface, var(--lavish-special-surface));
  border: 1px solid var(--mobile-card-border, var(--lavish-special-border));
  margin-bottom: 14px;
}

.mobile-more-theme-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-more-theme-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--mobile-text, var(--lavish-special-text));
}

.mobile-more-theme-sub {
  font-size: 0.78rem;
  color: var(--mobile-text-muted, var(--lavish-special-muted));
}

.mobile-more-theme-card .lavish-theme-toggle {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.86rem;
}

/* Public pages & standalone routes placement */
.site-nav .lavish-theme-toggle,
.booking-header .lavish-theme-toggle,
.qr-brand-header .lavish-theme-toggle,
.hero-panel .lavish-theme-toggle,
.login-theme-float .lavish-theme-toggle {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.login-theme-float {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 40;
}

.booking-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.qr-brand-header {
  position: relative;
}

.qr-header-theme-slot {
  margin-left: auto;
  flex-shrink: 0;
}

.hero-panel-theme-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .site-nav .lavish-theme-toggle,
  .booking-header .lavish-theme-toggle,
  .qr-brand-header .lavish-theme-toggle,
  .hero-panel .lavish-theme-toggle,
  .login-theme-float .lavish-theme-toggle {
    min-height: 40px;
    padding: 0 12px;
  }
}

/* --------------------------------------------------------------------------
   2. Animated Theme Swap Curtain + Section Reveal Bounce
   -------------------------------------------------------------------------- */
#lavish-theme-curtain {
  position: fixed;
  inset: -12vh -12vw;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-115%) skewX(-8deg);
  will-change: transform, opacity;
}

#lavish-theme-curtain.is-to-special {
  background: linear-gradient(125deg, var(--lavish-special-frame) 0%, var(--lavish-special-surface-3) 68%, var(--lavish-special-blush) 100%);
}

#lavish-theme-curtain.is-to-og {
  background: linear-gradient(125deg, #d7e5f8 0%, #8fb0d4 46%, #f0a43a 100%);
}

#lavish-theme-curtain.is-active {
  pointer-events: all;
  animation: lavishCurtainSweep 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.lavish-curtain-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 9999px;
  background: rgba(36, 28, 44, 0.94);
  border: 2px solid var(--lavish-special-blush-border);
  color: var(--lavish-special-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.44);
  transform: skewX(8deg) scale(0.72) rotate(-6deg);
  backdrop-filter: blur(10px);
}

#lavish-theme-curtain.is-to-og .lavish-curtain-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #23384b;
  border-color: rgba(35, 56, 75, 0.18);
}

#lavish-theme-curtain.is-active .lavish-curtain-badge {
  animation: lavishBadgeBoing 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lavish-curtain-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

@keyframes lavishCurtainSweep {
  0% {
    opacity: 0.96;
    transform: translateX(-115%) skewX(-8deg);
  }
  38% {
    opacity: 1;
    transform: translateX(0%) skewX(-4deg);
  }
  58% {
    opacity: 1;
    transform: translateX(0%) skewX(0deg);
  }
  100% {
    opacity: 0.96;
    transform: translateX(115%) skewX(8deg);
  }
}

@keyframes lavishBadgeBoing {
  0% {
    opacity: 0;
    transform: skewX(8deg) scale(0.55) rotate(-14deg);
  }
  36% {
    opacity: 1;
    transform: skewX(4deg) scale(1.12) rotate(4deg);
  }
  56% {
    opacity: 1;
    transform: skewX(0deg) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: skewX(-8deg) scale(0.75) rotate(10deg);
  }
}

body.is-theme-revealing .hero-card,
body.is-theme-revealing .section-card,
body.is-theme-revealing .about-card,
body.is-theme-revealing .booking-section,
body.is-theme-revealing .auth-card,
body.is-theme-revealing .qr-card,
body.is-theme-revealing .panel-card,
body.is-theme-revealing .card,
body.is-theme-revealing .sidebar,
body.is-theme-revealing .main-stage,
body.is-theme-revealing .mobile-schedule-hero,
body.is-theme-revealing .mobile-schedule-content {
  animation: lavishSectionSwapPop 0.38s cubic-bezier(0.22, 1.25, 0.36, 1) both;
}

@keyframes lavishSectionSwapPop {
  0% {
    transform: scale(0.982) translateY(6px);
    opacity: 0.82;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lavish-theme-curtain,
  body.is-theme-revealing * {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. Special Theme (lavish-midnight) Full-Depth A3 Polish — /app Workspace
   -------------------------------------------------------------------------- */
@media screen {
  body[data-theme="lavish-midnight"] {
    background: var(--lavish-special-bg);
    color: var(--lavish-special-text);
  }

  /* Window bar, boot screen & active matte pastel accents */
  html[data-theme="lavish-midnight"],
  html[data-theme="lavish-midnight"] body {
    background-color: var(--lavish-special-bg) !important;
  }

  body[data-theme="lavish-midnight"] .window-bar {
    background: var(--lavish-special-frame);
    border-bottom-color: var(--lavish-special-border);
  }

  html[data-theme="lavish-midnight"] .boot-screen,
  body[data-theme="lavish-midnight"] .boot-screen {
    background: var(--lavish-special-bg) !important;
  }

  html[data-theme="lavish-midnight"] .boot-card,
  body[data-theme="lavish-midnight"] .boot-card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  }

  html[data-theme="lavish-midnight"] .boot-kicker,
  body[data-theme="lavish-midnight"] .boot-kicker {
    color: var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] .boot-copy h1,
  body[data-theme="lavish-midnight"] .boot-copy h1 {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .boot-status-message,
  body[data-theme="lavish-midnight"] .boot-status-message {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .boot-progress,
  body[data-theme="lavish-midnight"] .boot-progress {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .boot-progress span,
  body[data-theme="lavish-midnight"] .boot-progress span {
    background: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-chip.is-active,
  body[data-theme="lavish-midnight"] .primary-button,
  body[data-theme="lavish-midnight"] .ribbon-button.is-active,
  body[data-theme="lavish-midnight"] .clients-filter-chip.is-active,
  body[data-theme="lavish-midnight"] .reports-tab-btn.is-active,
  body[data-theme="lavish-midnight"] .mobile-cancellation-page .stylist-chip.is-active,
  body[data-theme="lavish-midnight"] .plan-chip.is-active {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
    box-shadow: var(--lavish-special-glow);
  }

  body[data-theme="lavish-midnight"] .primary-button:hover {
    background: var(--lavish-special-blush-hover) !important;
  }

  /* ------------------------------------------------------------------------
     A3 Signature: Dark Matte Plum Frame + Warm Cream Schedule Grid
     (Desktop Day/Week/Month + Mobile Day/Week/Month Parity)
     ------------------------------------------------------------------------ */
  body[data-theme="lavish-midnight"] .calendar-grid {
    background: var(--lavish-special-grid-bg) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-day-header {
    background: var(--lavish-special-header-bg) !important;
    color: var(--lavish-special-header-text) !important;
    border-left-color: var(--lavish-special-header-border) !important;
    border-right-color: var(--lavish-special-header-border) !important;
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .provider-header {
    background: var(--lavish-special-header-bg) !important;
    border-left-color: var(--lavish-special-header-border) !important;
    border-right-color: var(--lavish-special-header-border) !important;
    border-bottom: 1px solid var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .provider-header::before {
    background: var(--lavish-special-surface) !important;
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .provider-day,
  body[data-theme="lavish-midnight"] .provider-caption {
    color: var(--lavish-special-header-muted) !important;
  }

  body[data-theme="lavish-midnight"] .provider-name {
    color: var(--lavish-special-header-text) !important;
  }

  body[data-theme="lavish-midnight"] .provider-row.is-week .provider-header {
    background: var(--lavish-special-header-bg) !important;
  }

  body[data-theme="lavish-midnight"] .time-rail {
    background: var(--lavish-special-rail-bg) !important;
    border-right: 1px solid var(--lavish-special-header-border) !important;
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .time-slot {
    color: var(--lavish-special-header-muted) !important;
  }

  body[data-theme="lavish-midnight"] .time-slot.is-minor,
  body[data-theme="lavish-midnight"] .time-slot.is-half-hour {
    color: transparent !important;
  }

  body[data-theme="lavish-midnight"] .time-slot.is-major {
    border-top-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .time-slot::after,
  body[data-theme="lavish-midnight"] .time-slot.is-half-hour::after {
    border-top-color: var(--lavish-special-border-soft) !important;
  }

  body[data-theme="lavish-midnight"] .lane-background {
    border-left-color: var(--lavish-special-grid-divider) !important;
    border-right-color: var(--lavish-special-grid-divider) !important;
  }

  body[data-theme="lavish-midnight"] .lane-background.tone-standard {
    background: var(--lavish-special-grid-bg) !important;
  }

  body[data-theme="lavish-midnight"] .lane-background.tone-alt {
    background: var(--lavish-special-grid-alt) !important;
  }

  body[data-theme="lavish-midnight"] .lane-background.tone-off {
    background: var(--lavish-special-grid-off) !important;
  }

  body[data-theme="lavish-midnight"] .slot-cell {
    border-left-color: rgba(180, 168, 156, 0.24) !important;
    border-right-color: rgba(180, 168, 156, 0.24) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-off-block {
    background: var(--lavish-special-grid-off) !important;
    border-color: var(--lavish-special-grid-divider) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Solid Matte Pastel Appointment Blocks on Desktop Schedule Grid */
  body[data-theme="lavish-midnight"] .schedule-block.tone-blue {
    background: var(--lavish-appt-lavender-bg) !important;
    border-color: var(--lavish-appt-lavender-border) !important;
    border-left: 3.5px solid var(--lavish-appt-lavender-bar) !important;
    color: var(--lavish-appt-lavender-ink) !important;
    box-shadow: 0 1px 3px rgba(38, 30, 54, 0.08) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block.tone-blue .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-blue .block-line {
    color: var(--lavish-appt-lavender-ink) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-block.tone-green {
    background: var(--lavish-appt-sage-bg) !important;
    border-color: var(--lavish-appt-sage-border) !important;
    border-left: 3.5px solid var(--lavish-appt-sage-bar) !important;
    color: var(--lavish-appt-sage-ink) !important;
    box-shadow: 0 1px 3px rgba(27, 46, 35, 0.08) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block.tone-green .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-green .block-line {
    color: var(--lavish-appt-sage-ink) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-block.tone-lime {
    background: var(--lavish-appt-peach-bg) !important;
    border-color: var(--lavish-appt-peach-border) !important;
    border-left: 3.5px solid var(--lavish-appt-peach-bar) !important;
    color: var(--lavish-appt-peach-ink) !important;
    box-shadow: 0 1px 3px rgba(51, 33, 22, 0.08) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block.tone-lime .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-lime .block-line {
    color: var(--lavish-appt-peach-ink) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-block.tone-requested {
    background: var(--lavish-appt-blush-bg) !important;
    border-color: var(--lavish-appt-blush-border) !important;
    border-left: 3.5px solid var(--lavish-appt-blush-bar) !important;
    color: var(--lavish-appt-blush-ink) !important;
    box-shadow: 0 1px 3px rgba(51, 30, 39, 0.08) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block.tone-requested .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-requested .block-line {
    color: var(--lavish-appt-blush-ink) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-block.tone-red {
    background: var(--lavish-appt-rose-bg) !important;
    border-color: var(--lavish-appt-rose-border) !important;
    border-left: 3.5px solid var(--lavish-appt-rose-bar) !important;
    color: var(--lavish-appt-rose-ink) !important;
    box-shadow: 0 1px 3px rgba(56, 25, 32, 0.08) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block.tone-red .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-red .block-line {
    color: var(--lavish-appt-rose-ink) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-block.tone-muted,
  body[data-theme="lavish-midnight"] .schedule-block.tone-paper {
    background: var(--lavish-appt-stone-bg) !important;
    border-color: var(--lavish-appt-stone-border) !important;
    border-left: 3.5px solid var(--lavish-appt-stone-bar) !important;
    color: var(--lavish-appt-stone-ink) !important;
    box-shadow: 0 1px 3px rgba(43, 37, 33, 0.08) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block.tone-muted .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-muted .block-line,
  body[data-theme="lavish-midnight"] .schedule-block.tone-paper .block-title,
  body[data-theme="lavish-midnight"] .schedule-block.tone-paper .block-line {
    color: var(--lavish-appt-stone-ink) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-block[data-appointment-id].is-selected,
  body[data-theme="lavish-midnight"] .schedule-block[data-appointment-id][class*="tone-"].is-selected {
    background: #f6e7cf !important;
    border-color: #b8845a !important;
    border-left: 4px solid #9e683d !important;
    color: #2c1c10 !important;
    box-shadow: 0 0 0 2px rgba(184, 132, 90, 0.45), 0 4px 12px rgba(44, 28, 16, 0.14) !important;
  }
  body[data-theme="lavish-midnight"] .schedule-block[data-appointment-id].is-selected .block-title,
  body[data-theme="lavish-midnight"] .schedule-block[data-appointment-id][class*="tone-"].is-selected .block-title,
  body[data-theme="lavish-midnight"] .schedule-block[data-appointment-id].is-selected .block-line,
  body[data-theme="lavish-midnight"] .schedule-block[data-appointment-id][class*="tone-"].is-selected .block-line {
    color: #2c1c10 !important;
  }

  /* Mobile A3 Cream Schedule Grid + Matte Plum Headers & Time Rail */
  body[data-theme="lavish-midnight"] .mobile-schedule-content,
  body[data-theme="lavish-midnight"] .mobile-day-board,
  body[data-theme="lavish-midnight"] .mobile-week-board,
  body[data-theme="lavish-midnight"] .mobile-month-board {
    background: var(--lavish-special-grid-bg) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-corner,
  body[data-theme="lavish-midnight"] .mobile-provider-header,
  body[data-theme="lavish-midnight"] .mobile-week-day-header,
  body[data-theme="lavish-midnight"] .mobile-month-day-header {
    background: var(--lavish-special-header-bg) !important;
    color: var(--lavish-special-header-text) !important;
    border-right-color: var(--lavish-special-header-border) !important;
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-week-day-header.is-selected,
  body[data-theme="lavish-midnight"] .mobile-month-day-header.is-selected {
    color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-time {
    background: var(--lavish-special-rail-bg) !important;
    color: var(--lavish-special-header-muted) !important;
    border-right-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-time-end {
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-slot {
    border-right-color: var(--lavish-special-grid-divider) !important;
    border-top-color: var(--lavish-special-grid-line) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-slot.is-quarter-start {
    border-top-color: var(--lavish-special-grid-line) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-slot.is-hour-start {
    border-top: 2px solid var(--lavish-special-grid-major) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-grid-slot.is-day-end {
    border-bottom: 2px solid var(--lavish-special-grid-major) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-schedule-off-block {
    background: var(--lavish-special-grid-off) !important;
    border-color: var(--lavish-special-grid-divider) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Solid Matte Pastel Appointment Blocks on Mobile Schedule Grid */
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-blue {
    background: var(--lavish-appt-lavender-bg) !important;
    border-color: var(--lavish-appt-lavender-border) !important;
    border-left: 3px solid var(--lavish-appt-lavender-bar) !important;
    color: var(--lavish-appt-lavender-ink) !important;
  }
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-blue strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-blue span {
    color: var(--lavish-appt-lavender-ink) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-green {
    background: var(--lavish-appt-sage-bg) !important;
    border-color: var(--lavish-appt-sage-border) !important;
    border-left: 3px solid var(--lavish-appt-sage-bar) !important;
    color: var(--lavish-appt-sage-ink) !important;
  }
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-green strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-green span {
    color: var(--lavish-appt-sage-ink) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-lime {
    background: var(--lavish-appt-peach-bg) !important;
    border-color: var(--lavish-appt-peach-border) !important;
    border-left: 3px solid var(--lavish-appt-peach-bar) !important;
    color: var(--lavish-appt-peach-ink) !important;
  }
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-lime strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-lime span {
    color: var(--lavish-appt-peach-ink) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-requested,
  body[data-theme="lavish-midnight"] .mobile-agenda .mobile-schedule-item.tone-requested {
    background: var(--lavish-appt-blush-bg) !important;
    border-color: var(--lavish-appt-blush-border) !important;
    border-left: 3px solid var(--lavish-appt-blush-bar) !important;
    color: var(--lavish-appt-blush-ink) !important;
  }
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-requested strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-requested span,
  body[data-theme="lavish-midnight"] .mobile-agenda .mobile-schedule-item.tone-requested strong,
  body[data-theme="lavish-midnight"] .mobile-agenda .mobile-schedule-item.tone-requested span {
    color: var(--lavish-appt-blush-ink) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-red {
    background: var(--lavish-appt-rose-bg) !important;
    border-color: var(--lavish-appt-rose-border) !important;
    border-left: 3px solid var(--lavish-appt-rose-bar) !important;
    color: var(--lavish-appt-rose-ink) !important;
  }
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-red strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-red span {
    color: var(--lavish-appt-rose-ink) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-muted,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-paper {
    background: var(--lavish-appt-stone-bg) !important;
    border-color: var(--lavish-appt-stone-border) !important;
    border-left: 3px solid var(--lavish-appt-stone-bar) !important;
    color: var(--lavish-appt-stone-ink) !important;
  }
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-muted strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-muted span,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-paper strong,
  body[data-theme="lavish-midnight"] .mobile-day-board .mobile-schedule-item.tone-paper span {
    color: var(--lavish-appt-stone-ink) !important;
  }

  /* Waitlist delete X button & dark card polish */
  body[data-theme="lavish-midnight"] .cancellation-delete-btn {
    background: rgba(244, 63, 94, 0.16) !important;
    border: 1px solid rgba(244, 63, 94, 0.42) !important;
    color: #fda4af !important;
  }

  body[data-theme="lavish-midnight"] .cancellation-delete-btn:hover,
  body[data-theme="lavish-midnight"] .cancellation-delete-btn:active {
    background: rgba(244, 63, 94, 0.3) !important;
    color: #ffffff !important;
  }

  /* List of Plans dark-mode sleek pills & notes button */
  body[data-theme="lavish-midnight"] .plans-drawer .tag.tag-launch {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    border-color: rgba(236, 203, 180, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .plans-drawer .plan-status {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.38) !important;
  }

  body[data-theme="lavish-midnight"] .plans-drawer .plan-status.is-done {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .plans-drawer .plan-notes-button.has-notes {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush-border) !important;
    color: var(--lavish-special-blush) !important;
  }

  /* Service Catalog matte plum frame, active row, & pastel pills */
  body[data-theme="lavish-midnight"] .service-catalog-body {
    background: var(--lavish-special-bg) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-picker-card,
  body[data-theme="lavish-midnight"] .service-catalog-detail-card,
  body[data-theme="lavish-midnight"] .service-section-box {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-row.is-active {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush) !important;
    box-shadow: 0 0 0 1px var(--lavish-special-blush-border) inset !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-row.is-active strong,
  body[data-theme="lavish-midnight"] .service-catalog-row strong {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-cell-id {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-lavender) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-cell-duration {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-cell-price,
  body[data-theme="lavish-midnight"] .service-catalog-row-match {
    background: rgba(52, 211, 153, 0.16) !important;
    color: #86efac !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-cell-status,
  body[data-theme="lavish-midnight"] .service-hero-status-pill {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .service-hero-category-pill,
  body[data-theme="lavish-midnight"] .service-provider-chip.is-assigned {
    background: var(--lavish-special-lavender-soft) !important;
    color: var(--lavish-special-lavender) !important;
    border-color: var(--lavish-special-lavender-border) !important;
  }

  body[data-theme="lavish-midnight"] .service-hero-banner {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
  }

  /* Appointment Worksheet header, Process Card button & Void pill */
  body[data-theme="lavish-midnight"] .appointment-modal-card .app-modal-header {
    background: var(--lavish-special-header-bg) !important;
    border-bottom-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .appointment-modal-card .app-modal-header h2 {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .appointment-btn-process-card {
    background: var(--lavish-special-surface-3) !important;
    border: 1px solid var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: 0 2px 8px rgba(18, 12, 26, 0.3) !important;
  }

  body[data-theme="lavish-midnight"] .appointment-btn-process-card:hover {
    background: #463957 !important;
    border-color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .appointment-btn-checkout-close {
    background: var(--lavish-special-blush) !important;
    border-color: transparent !important;
    color: var(--lavish-special-accent-ink) !important;
  }

  body[data-theme="lavish-midnight"] .appointment-sub-btn.danger,
  body[data-theme="lavish-midnight"] #appointment-void.appointment-sub-btn {
    background: rgba(244, 63, 94, 0.16) !important;
    border-color: rgba(244, 63, 94, 0.48) !important;
    color: #fda4af !important;
  }

  body[data-theme="lavish-midnight"] .appointment-sub-btn.danger:hover,
  body[data-theme="lavish-midnight"] #appointment-void.appointment-sub-btn:hover {
    background: rgba(244, 63, 94, 0.28) !important;
    color: #ffffff !important;
  }

  /* Global dark-safe inputs, selects, textareas inside /app */
  body[data-theme="lavish-midnight"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  body[data-theme="lavish-midnight"] select,
  body[data-theme="lavish-midnight"] textarea {
    background-color: var(--lavish-special-surface-2);
    color: var(--lavish-special-text);
    border-color: var(--lavish-special-border);
  }

  body[data-theme="lavish-midnight"] input::placeholder,
  body[data-theme="lavish-midnight"] textarea::placeholder {
    color: rgba(195, 183, 207, 0.65);
  }

  /* Menus, dropdowns & popovers */
  body[data-theme="lavish-midnight"] .account-menu,
  body[data-theme="lavish-midnight"] .menu-dropdown,
  body[data-theme="lavish-midnight"] .context-menu,
  body[data-theme="lavish-midnight"] .flyout-submenu {
    background: var(--lavish-special-surface);
    border-color: var(--lavish-special-border);
    color: var(--lavish-special-text);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  }

  body[data-theme="lavish-midnight"] .account-menu-item:hover,
  body[data-theme="lavish-midnight"] .menu-dropdown-item:hover,
  body[data-theme="lavish-midnight"] .context-menu button:hover {
    background: var(--lavish-special-blush-soft);
    color: var(--lavish-special-text);
  }

  /* Generic /app modal surfaces & dialogs (covers ALL 34 .app-modal dialogs) */
  body[data-theme="lavish-midnight"] .app-modal-card,
  body[data-theme="lavish-midnight"] .app-modal-body,
  body[data-theme="lavish-midnight"] .app-form,
  body[data-theme="lavish-midnight"] .modal-card,
  body[data-theme="lavish-midnight"] .modal-dialog,
  body[data-theme="lavish-midnight"] .modal-panel,
  body[data-theme="lavish-midnight"] .modal-sheet,
  body[data-theme="lavish-midnight"] .admin-hub-modal-card,
  body[data-theme="lavish-midnight"] .sales-totals-window,
  body[data-theme="lavish-midnight"] .sales-totals-card,
  body[data-theme="lavish-midnight"] .sales-totals-panel,
  body[data-theme="lavish-midnight"] .backbar-modal-card,
  body[data-theme="lavish-midnight"] .downtime-modal-card,
  body[data-theme="lavish-midnight"] .product-modal-card,
  body[data-theme="lavish-midnight"] .employee-modal-card,
  body[data-theme="lavish-midnight"] .client-modal-card,
  body[data-theme="lavish-midnight"] .mobile-bottom-sheet .mobile-sheet-panel {
    background: var(--lavish-special-surface);
    border-color: var(--lavish-special-border);
    color: var(--lavish-special-text);
  }

  body[data-theme="lavish-midnight"] .modal-header,
  body[data-theme="lavish-midnight"] .app-modal-header,
  body[data-theme="lavish-midnight"] .sales-totals-header,
  body[data-theme="lavish-midnight"] .sales-totals-detail-card .app-modal-header {
    background: var(--lavish-special-header-bg) !important;
    border-bottom: 1px solid var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .app-modal-header h2,
  body[data-theme="lavish-midnight"] .app-modal-header h3 {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .app-modal-header .drawer-eyebrow,
  body[data-theme="lavish-midnight"] .app-modal-header .modal-summary {
    color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .app-modal-header .app-modal-close-btn,
  body[data-theme="lavish-midnight"] .app-modal-header .drawer-button,
  body[data-theme="lavish-midnight"] .sales-totals-detail-card .app-modal-close-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Clock In / Clock Out hero card */
  body[data-theme="lavish-midnight"] .clock-hero-badge {
    background: var(--lavish-special-surface-2) !important;
    border: 1px solid var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .clock-hero-time {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .clock-hero-date {
    color: var(--lavish-special-blush) !important;
  }

  /* Sales Totals & Taxes complete dark sweep (css/modals/sales-totals.css) */
  body[data-theme="lavish-midnight"] .sales-totals-body,
  body[data-theme="lavish-midnight"] .sales-totals-section,
  body[data-theme="lavish-midnight"] .sales-totals-filter-group,
  body[data-theme="lavish-midnight"] .sales-totals-table-wrap,
  body[data-theme="lavish-midnight"] .sales-totals-summary-box,
  body[data-theme="lavish-midnight"] .sales-totals-kpi,
  body[data-theme="lavish-midnight"] .st-island-card,
  body[data-theme="lavish-midnight"] .st-single-item,
  body[data-theme="lavish-midnight"] .st-modal-footer {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .st-card-header,
  body[data-theme="lavish-midnight"] .st-kpi-btn,
  body[data-theme="lavish-midnight"] .st-select-input,
  body[data-theme="lavish-midnight"] .st-computer-badge,
  body[data-theme="lavish-midnight"] .st-computer-popover,
  body[data-theme="lavish-midnight"] .st-btn-outline,
  body[data-theme="lavish-midnight"] .st-role-pill,
  body[data-theme="lavish-midnight"] .sales-totals-intro-icon,
  body[data-theme="lavish-midnight"] .st-filter-group-icon,
  body[data-theme="lavish-midnight"] .st-data-table th,
  body[data-theme="lavish-midnight"] .st-totals-footer td {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .st-island-card label,
  body[data-theme="lavish-midnight"] .st-island-card p,
  body[data-theme="lavish-midnight"] .st-island-card span,
  body[data-theme="lavish-midnight"] .st-island-card strong,
  body[data-theme="lavish-midnight"] .st-data-table td {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .tint-peach { background-color: var(--lavish-special-peach-soft) !important; }
  body[data-theme="lavish-midnight"] .tint-mint { background-color: rgba(134, 239, 172, 0.12) !important; }
  body[data-theme="lavish-midnight"] .tint-sage { background-color: rgba(132, 204, 152, 0.13) !important; }
  body[data-theme="lavish-midnight"] .tint-rose { background-color: var(--lavish-special-blush-soft) !important; }
  body[data-theme="lavish-midnight"] .tint-buttercup { background-color: rgba(250, 204, 21, 0.11) !important; }
  body[data-theme="lavish-midnight"] .tint-ice { background-color: var(--lavish-special-lavender-soft) !important; }

  /* Admin Control Hub complete dark sweep (css/modals/common-dialogs.css) */
  body[data-theme="lavish-midnight"] .admin-nav-tabs,
  body[data-theme="lavish-midnight"] .admin-section,
  body[data-theme="lavish-midnight"] .admin-switch-card,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-global-settings,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-provider-order li {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .admin-tab-btn,
  body[data-theme="lavish-midnight"] .admin-create-login-card,
  body[data-theme="lavish-midnight"] .admin-create-login-field select,
  body[data-theme="lavish-midnight"] .admin-created-login-link,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-global-settings .settings-fieldset,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-global-settings .settings-fieldset legend,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-global-settings .weekday-toggle,
  body[data-theme="lavish-midnight"] .admin-global-tax,
  body[data-theme="lavish-midnight"] .admin-global-tax input {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Security PIN / Lock Dialog (css/security.css) */
  body[data-theme="lavish-midnight"] .security-dialog,
  body[data-theme="lavish-midnight"] .security-dialog-titlebar {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .security-padlock-wrap,
  body[data-theme="lavish-midnight"] .security-password-input,
  body[data-theme="lavish-midnight"] .security-btn.security-cancel {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Product Modal, Message Logs, Lookup, Client Picker, Back-Bar, Employee & Passkeys */
  body[data-theme="lavish-midnight"] .product-dialog-tabs,
  body[data-theme="lavish-midnight"] .product-dialog-footer,
  body[data-theme="lavish-midnight"] .product-id-input,
  body[data-theme="lavish-midnight"] .client-context-banner,
  body[data-theme="lavish-midnight"] .client-picker-row:hover,
  body[data-theme="lavish-midnight"] .lookup-filter-chip:hover,
  body[data-theme="lavish-midnight"] .lookup-result-button:focus-visible,
  body[data-theme="lavish-midnight"] .ticket-opener-card-button:focus-visible,
  body[data-theme="lavish-midnight"] .ticket-opener-card-button:active {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .message-log-kpi-card.is-success,
  body[data-theme="lavish-midnight"] .message-log-status-badge.is-sent,
  body[data-theme="lavish-midnight"] .backbar-feedback-note.is-success,
  body[data-theme="lavish-midnight"] .status-badge-mint {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .message-log-kpi-card.is-warning,
  body[data-theme="lavish-midnight"] .message-logs-table tr.is-issue td,
  body[data-theme="lavish-midnight"] .message-log-status-badge.is-failed,
  body[data-theme="lavish-midnight"] .message-log-code-badge.is-err,
  body[data-theme="lavish-midnight"] .staff-account-pill.is-disabled,
  body[data-theme="lavish-midnight"] .passkey-delete-button.is-danger {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .message-log-status-badge.is-bounced,
  body[data-theme="lavish-midnight"] .staff-account-pill.is-owner,
  body[data-theme="lavish-midnight"] .staff-account-pill.is-forced-change,
  body[data-theme="lavish-midnight"] .status-badge-peach {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    border-color: rgba(236, 203, 180, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .message-log-channel-badge.is-sms,
  body[data-theme="lavish-midnight"] .staff-account-row.is-selected {
    background: var(--lavish-special-blush-soft) !important;
    color: var(--lavish-special-blush) !important;
    border-color: var(--lavish-special-blush-border) !important;
  }

  body[data-theme="lavish-midnight"] .status-badge-ice {
    background: var(--lavish-special-lavender-soft) !important;
    color: var(--lavish-special-lavender) !important;
    border-color: var(--lavish-special-lavender-border) !important;
  }

  body[data-theme="lavish-midnight"] .sales-totals-table th,
  body[data-theme="lavish-midnight"] .sales-totals-table td {
    background: transparent !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border-soft) !important;
  }

  body[data-theme="lavish-midnight"] .sales-totals-table thead th {
    background: var(--lavish-special-surface-3) !important;
  }

  /* Appointment Worksheet (#appointment-modal) matte plum & subtle pastel ledger */
  body[data-theme="lavish-midnight"] #appointment-modal .modal-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-worksheet-shell,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-section-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-client-banner,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-meta-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-footer-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-totals-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-tender-card,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-ledger-card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .appointment-slot-toolbar,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-param-box,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-summary-row,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-note-box {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .ledger-table th,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-lines-table th {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .ledger-table td,
  body[data-theme="lavish-midnight"] #appointment-modal .appointment-lines-table td {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border-soft) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .col-duration,
  body[data-theme="lavish-midnight"] #appointment-modal td[data-col="duration"] {
    background: rgba(236, 203, 180, 0.13) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .col-price,
  body[data-theme="lavish-midnight"] #appointment-modal td[data-col="price"] {
    background: rgba(180, 224, 198, 0.11) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .col-qty,
  body[data-theme="lavish-midnight"] #appointment-modal td[data-col="qty"] {
    background: rgba(216, 206, 240, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .col-discount,
  body[data-theme="lavish-midnight"] #appointment-modal td[data-col="discount"] {
    background: rgba(229, 184, 198, 0.13) !important;
  }

  body[data-theme="lavish-midnight"] #appointment-modal .col-total,
  body[data-theme="lavish-midnight"] #appointment-modal td[data-col="total"] {
    background: rgba(242, 224, 184, 0.12) !important;
  }

  /* Clients, Reports, Employees, Tickets, Settings, Messages, Waitlist sweep */
  body[data-theme="lavish-midnight"] .clients-hero-card,
  body[data-theme="lavish-midnight"] .clients-section-card,
  body[data-theme="lavish-midnight"] .clients-metric-card,
  body[data-theme="lavish-midnight"] .client-directory-row,
  body[data-theme="lavish-midnight"] .client-row-card,
  body[data-theme="lavish-midnight"] .reports-kpi-card,
  body[data-theme="lavish-midnight"] .reports-panel,
  body[data-theme="lavish-midnight"] .reports-section-card,
  body[data-theme="lavish-midnight"] .help-card,
  body[data-theme="lavish-midnight"] .help-article-card,
  body[data-theme="lavish-midnight"] .employee-card,
  body[data-theme="lavish-midnight"] .employee-detail-card,
  body[data-theme="lavish-midnight"] .ticket-card,
  body[data-theme="lavish-midnight"] .ticket-summary-card,
  body[data-theme="lavish-midnight"] .settings-card,
  body[data-theme="lavish-midnight"] .admin-setting-block,
  body[data-theme="lavish-midnight"] .waitlist-card,
  body[data-theme="lavish-midnight"] .cancellation-card,
  body[data-theme="lavish-midnight"] .online-booking-card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .client-directory-row:hover,
  body[data-theme="lavish-midnight"] .client-row-card:hover,
  body[data-theme="lavish-midnight"] .employee-card:hover,
  body[data-theme="lavish-midnight"] .ticket-card:hover {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-blush-border) !important;
  }

  body[data-theme="lavish-midnight"] .client-directory-row.is-selected,
  body[data-theme="lavish-midnight"] .client-row-card.is-selected,
  body[data-theme="lavish-midnight"] .employee-card.is-selected {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .status-pill,
  body[data-theme="lavish-midnight"] .badge-soft,
  body[data-theme="lavish-midnight"] .metric-pill,
  body[data-theme="lavish-midnight"] .inline-pill {
    background: var(--lavish-special-surface-2);
    border-color: var(--lavish-special-border);
    color: var(--lavish-special-text);
  }

  /* Clients & Products tables/badges (css/views/clients.css) */
  body[data-theme="lavish-midnight"] .panel-caption,
  body[data-theme="lavish-midnight"][data-view="clients"] .panel-caption {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"][data-view="products"] .product-grid-row:nth-child(even) td,
  body[data-theme="lavish-midnight"][data-view="clients"] .client-grid-row:nth-child(even) td,
  body[data-theme="lavish-midnight"] .client-row:nth-child(even),
  body[data-theme="lavish-midnight"] .ticket-row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  body[data-theme="lavish-midnight"][data-view="products"] .product-grid-row.is-active td,
  body[data-theme="lavish-midnight"][data-view="clients"] .client-grid-row.is-active td,
  body[data-theme="lavish-midnight"] .client-row.is-active {
    background-color: var(--lavish-special-blush-soft) !important;
    background: var(--lavish-special-blush-soft) !important;
  }

  body[data-theme="lavish-midnight"][data-view="clients"] .history-table .data-table tr:hover td,
  body[data-theme="lavish-midnight"][data-view="reports"] .data-table tr:hover td,
  body[data-theme="lavish-midnight"][data-view="clients"] .toolbar-button:hover,
  body[data-theme="lavish-midnight"][data-view="clients"] .client-action-btn:hover,
  body[data-theme="lavish-midnight"][data-view="reports"] .reports-action-btn:hover,
  body[data-theme="lavish-midnight"] .employee-sidebar-tab:hover:not(.is-active),
  body[data-theme="lavish-midnight"] .help-hub-chip:hover {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .client-id-badge,
  body[data-theme="lavish-midnight"] .client-count-badge,
  body[data-theme="lavish-midnight"] .client-hero-id-badge,
  body[data-theme="lavish-midnight"] .column-pill-locked,
  body[data-theme="lavish-midnight"] .reports-date-badge,
  body[data-theme="lavish-midnight"] .admin-card-badge,
  body[data-theme="lavish-midnight"] .product-status-pill.is-inactive {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .client-noshow-badge.has-noshows,
  body[data-theme="lavish-midnight"] .admin-card-badge.is-paused,
  body[data-theme="lavish-midnight"] .ticket-status-pill.is-status-rejected,
  body[data-theme="lavish-midnight"] .import-badge-coral {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .product-status-pill.is-active,
  body[data-theme="lavish-midnight"] .ticket-status-pill.is-status-accepted,
  body[data-theme="lavish-midnight"] .ticket-price,
  body[data-theme="lavish-midnight"] .admin-passkey-badge.passkey-active,
  body[data-theme="lavish-midnight"] .perm-pill.full,
  body[data-theme="lavish-midnight"] .import-operation-item.tone-create {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-status-pill.is-status-pending,
  body[data-theme="lavish-midnight"] .admin-role-badge.role-owner,
  body[data-theme="lavish-midnight"] .perm-pill.partial,
  body[data-theme="lavish-midnight"] .import-badge-caution,
  body[data-theme="lavish-midnight"] .plan-note-model-tag.is-claude {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    border-color: rgba(236, 203, 180, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .admin-role-badge.role-staff,
  body[data-theme="lavish-midnight"] .perm-pill.view,
  body[data-theme="lavish-midnight"] .import-badge-recommended,
  body[data-theme="lavish-midnight"] .import-operation-item.tone-update,
  body[data-theme="lavish-midnight"] .plan-note-model-tag.is-gpt {
    background: var(--lavish-special-lavender-soft) !important;
    color: var(--lavish-special-lavender) !important;
    border-color: var(--lavish-special-lavender-border) !important;
  }

  body[data-theme="lavish-midnight"] .plan-note-model-tag.is-flash,
  body[data-theme="lavish-midnight"] .admin-quick-pill.highlight-pill,
  body[data-theme="lavish-midnight"] .import-step.is-active,
  body[data-theme="lavish-midnight"] .help-policy-card.is-flipped {
    background: var(--lavish-special-blush-soft) !important;
    color: var(--lavish-special-blush) !important;
    border-color: var(--lavish-special-blush-border) !important;
  }

  body[data-theme="lavish-midnight"] .tickets-filter-tabs,
  body[data-theme="lavish-midnight"] .ticket-hero-banner {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  /* /app/ Online Booking & Requests tab (css/views/online-booking.css) */
  body[data-theme="lavish-midnight"] .settings-online-links-box,
  body[data-theme="lavish-midnight"] .customizer-layout-grid,
  body[data-theme="lavish-midnight"] .customizer-section,
  body[data-theme="lavish-midnight"] .phone-mockup-frame,
  body[data-theme="lavish-midnight"] .public-booking-header,
  body[data-theme="lavish-midnight"] .public-stepper-bar,
  body[data-theme="lavish-midnight"] .public-slide-card,
  body[data-theme="lavish-midnight"] .public-summary-table {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .settings-link-input,
  body[data-theme="lavish-midnight"] .settings-link-action-btn,
  body[data-theme="lavish-midnight"] .settings-tool-btn,
  body[data-theme="lavish-midnight"] .customizer-pill-option,
  body[data-theme="lavish-midnight"] .public-exit-btn,
  body[data-theme="lavish-midnight"] .public-step-circle,
  body[data-theme="lavish-midnight"] .public-google-btn,
  body[data-theme="lavish-midnight"] .public-input,
  body[data-theme="lavish-midnight"] .public-service-card,
  body[data-theme="lavish-midnight"] .public-stylist-card,
  body[data-theme="lavish-midnight"] .public-date-chip,
  body[data-theme="lavish-midnight"] .public-time-slot,
  body[data-theme="lavish-midnight"] .public-btn-prev {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .public-service-card.is-selected,
  body[data-theme="lavish-midnight"] .public-stylist-card.is-selected {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .public-security-note,
  body[data-theme="lavish-midnight"] .public-success-icon {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.38) !important;
  }

  /* Mobile Requests, Chat, Sheets, Notices & Banners (css/mobile.css) */
  body[data-theme="lavish-midnight"] .mobile-request-status.is-accepted,
  body[data-theme="lavish-midnight"] .mobile-chat-status-badge.is-confirmed,
  body[data-theme="lavish-midnight"] .mobile-editor-notice.is-success,
  body[data-theme="lavish-midnight"] .mobile-status-pill.is-active,
  body[data-theme="lavish-midnight"] .mobile-request-reached-out-btn.is-reached-out,
  body[data-theme="lavish-midnight"] .mobile-product-add-btn {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-request-status.is-declined,
  body[data-theme="lavish-midnight"] .mobile-chat-status-badge.is-cancelled,
  body[data-theme="lavish-midnight"] .mobile-editor-notice.is-error,
  body[data-theme="lavish-midnight"] .mobile-sheet-action.is-danger,
  body[data-theme="lavish-midnight"] .mobile-request-reject-btn,
  body[data-theme="lavish-midnight"] .client-modal-card .form-actions button.is-danger,
  body[data-theme="lavish-midnight"] .toolbar-button.is-danger,
  body[data-theme="lavish-midnight"] .mobile-service-remove-btn,
  body[data-theme="lavish-midnight"] .appointment-form-alert,
  body[data-theme="lavish-midnight"] .availability-recurring-conflicts {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-sheet-action.is-danger::before {
    background: rgba(244, 63, 94, 0.28) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-client-profile-action.is-featured-active,
  body[data-theme="lavish-midnight"] .mobile-chat-status-badge.is-pending,
  body[data-theme="lavish-midnight"] .mobile-editor-notice.is-warning,
  body[data-theme="lavish-midnight"] .mobile-option-block-notice,
  body[data-theme="lavish-midnight"] .mobile-move-banner,
  body[data-theme="lavish-midnight"] .mobile-request-type-badge,
  body[data-theme="lavish-midnight"] .availability-overwrite-toggle,
  body[data-theme="lavish-midnight"] .local-mode-banner,
  body[data-theme="lavish-midnight"] .local-mode-badge {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    border-color: rgba(236, 203, 180, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .mobile-session-pill,
  body[data-theme="lavish-midnight"] .month-stats-badge,
  body[data-theme="lavish-midnight"] .month-day-count-badge,
  body[data-theme="lavish-midnight"] .client-card-badge,
  body[data-theme="lavish-midnight"] .btn-meta-edit,
  body[data-theme="lavish-midnight"] .appointment-no-show-rate-box .rate-value {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .client-picker-monogram {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
  }

  /* Desktop Shell, Month View & Availability (shell.css, calendar.css) */
  body[data-theme="lavish-midnight"] .view-tabs,
  body[data-theme="lavish-midnight"] .section-toolbar,
  body[data-theme="lavish-midnight"] .schedule-context-menu,
  body[data-theme="lavish-midnight"] .ticket-line-context-menu {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .month-day-cell {
    background: var(--lavish-special-grid-bg) !important;
    border-color: var(--lavish-special-grid-divider) !important;
    color: #2c2334 !important;
  }

  body[data-theme="lavish-midnight"] .month-day-cell.is-other-month {
    background: var(--lavish-special-grid-off) !important;
    color: #7b6f85 !important;
  }

  body[data-theme="lavish-midnight"] .month-day-cell.is-today {
    background: #f5e6eb !important;
    border-color: var(--lavish-appt-blush-bar) !important;
  }

  body[data-theme="lavish-midnight"] .month-event-item.tone-green,
  body[data-theme="lavish-midnight"] .availability-status-working,
  body[data-theme="lavish-midnight"] .status-pill.status-pill-checked-in {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .month-event-item.tone-amber,
  body[data-theme="lavish-midnight"] .availability-status-off_personal_business,
  body[data-theme="lavish-midnight"] .availability-status-off_illness,
  body[data-theme="lavish-midnight"] .status-pill.status-pill-pending {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    border-color: rgba(236, 203, 180, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .month-event-item.tone-purple,
  body[data-theme="lavish-midnight"] .availability-status-off_other,
  body[data-theme="lavish-midnight"] .status-pill.status-pill-requested {
    background: var(--lavish-special-lavender-soft) !important;
    color: var(--lavish-special-lavender) !important;
    border-color: var(--lavish-special-lavender-border) !important;
  }

  body[data-theme="lavish-midnight"] .availability-status-off_vacation {
    background: rgba(147, 197, 253, 0.16) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.38) !important;
  }

  body[data-theme="lavish-midnight"] .month-event-item.tone-rose,
  body[data-theme="lavish-midnight"] .month-event-item.tone-red,
  body[data-theme="lavish-midnight"] .month-event-item.is-time-block,
  body[data-theme="lavish-midnight"] .availability-status-off_regular,
  body[data-theme="lavish-midnight"] .status-pill.status-pill-cancelled,
  body[data-theme="lavish-midnight"] .status-pill.status-pill-no-show {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
  }

  /* Month day cell event pills on the warm cream month grid */
  body[data-theme="lavish-midnight"] .month-day-cell .month-event-item.tone-green {
    background: var(--lavish-appt-sage-bg) !important;
    color: var(--lavish-appt-sage-ink) !important;
    border-color: var(--lavish-appt-sage-border) !important;
  }
  body[data-theme="lavish-midnight"] .month-day-cell .month-event-item.tone-amber {
    background: var(--lavish-appt-peach-bg) !important;
    color: var(--lavish-appt-peach-ink) !important;
    border-color: var(--lavish-appt-peach-border) !important;
  }
  body[data-theme="lavish-midnight"] .month-day-cell .month-event-item.tone-purple {
    background: var(--lavish-appt-lavender-bg) !important;
    color: var(--lavish-appt-lavender-ink) !important;
    border-color: var(--lavish-appt-lavender-border) !important;
  }
  body[data-theme="lavish-midnight"] .month-day-cell .month-event-item.tone-rose,
  body[data-theme="lavish-midnight"] .month-day-cell .month-event-item.tone-red,
  body[data-theme="lavish-midnight"] .month-day-cell .month-event-item.is-time-block {
    background: var(--lavish-appt-rose-bg) !important;
    color: var(--lavish-appt-rose-ink) !important;
    border-color: var(--lavish-appt-rose-border) !important;
  }

  /* Appointment Worksheet .ticket-table & filler cells */
  body[data-theme="lavish-midnight"] .ticket-line-filler td {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td:nth-child(2),
  body[data-theme="lavish-midnight"] .ticket-line-filler td:nth-child(2),
  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td:nth-child(10),
  body[data-theme="lavish-midnight"] .ticket-line-filler td:nth-child(10) {
    background: rgba(180, 224, 198, 0.1) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td:nth-child(3),
  body[data-theme="lavish-midnight"] .ticket-line-filler td:nth-child(3) {
    background: rgba(216, 206, 240, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td:nth-child(4),
  body[data-theme="lavish-midnight"] .ticket-line-filler td:nth-child(4) {
    background: rgba(236, 203, 180, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-line-row td:has(.ticket-cell-price) {
    background: rgba(180, 224, 198, 0.11) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td:nth-child(11) {
    background: rgba(229, 184, 198, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-cell-total {
    background: rgba(242, 224, 184, 0.11) !important;
  }

  body[data-theme="lavish-midnight"] .checkout-ticket-button.is-selected {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Help Document Embed Frames (help/css/client-documents.css) */
  html[data-theme="lavish-midnight"] .client-embed-frame-shell,
  html[data-theme="lavish-midnight"] .client-embed-frame {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
  }

  /* ------------------------------------------------------------------------
     5. Complete Top Shell, Ribbon, Banner, Global Toolbar, Sidebar & Dividers
     (Eliminates all hardcoded #eaf3fb/#e7f0fc/#f7c556 light/yellow chrome
      and all var(--theme-text) white-on-white active/hover traps)
     ------------------------------------------------------------------------ */

  /* Menu bar & hover pills */
  body[data-theme="lavish-midnight"] #topbar,
  body[data-theme="lavish-midnight"] .menu-bar {
    background: var(--lavish-special-frame) !important;
    border-bottom-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .menu-button {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .menu-button.is-open,
  body[data-theme="lavish-midnight"] .menu-button:hover,
  body[data-theme="lavish-midnight"] .menu-button:focus-visible {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .menu-dropdown-root,
  body[data-theme="lavish-midnight"] .menu-dropdown-submenu {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48) !important;
  }

  body[data-theme="lavish-midnight"] .menu-dropdown-separator {
    background: var(--lavish-special-border) !important;
  }

  /* Ribbon strip, pastel icon tiles, crisp light labels & active Appt Book pill */
  body[data-theme="lavish-midnight"] .ribbon-bar {
    background: var(--lavish-special-surface) !important;
    border-top: 1px solid var(--lavish-special-border-soft) !important;
    border-bottom: 1px solid var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-tool {
    color: var(--lavish-special-muted) !important;
    --ribbon-icon-color: var(--lavish-appt-lavender-bg);
  }
  body[data-theme="lavish-midnight"] .ribbon-tool:nth-child(6n + 2) {
    --ribbon-icon-color: var(--lavish-appt-sage-bg);
  }
  body[data-theme="lavish-midnight"] .ribbon-tool:nth-child(6n + 3) {
    --ribbon-icon-color: var(--lavish-appt-blush-bg);
  }
  body[data-theme="lavish-midnight"] .ribbon-tool:nth-child(6n + 4) {
    --ribbon-icon-color: var(--lavish-appt-peach-bg);
  }
  body[data-theme="lavish-midnight"] .ribbon-tool:nth-child(6n + 5) {
    --ribbon-icon-color: #d8e5ee;
  }
  body[data-theme="lavish-midnight"] .ribbon-tool:nth-child(6n + 6) {
    --ribbon-icon-color: var(--lavish-appt-rose-bg);
  }

  body[data-theme="lavish-midnight"] .ribbon-icon {
    background: var(--ribbon-icon-color) !important;
    color: var(--lavish-special-accent-ink) !important;
    border: 1px solid rgba(38, 26, 36, 0.18) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-label {
    color: var(--lavish-special-muted) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-tool:hover,
  body[data-theme="lavish-midnight"] .ribbon-tool:focus-visible {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-tool:hover .ribbon-label,
  body[data-theme="lavish-midnight"] .ribbon-tool:focus-visible .ribbon-label {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-tool:active {
    background: var(--lavish-special-surface-3) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-tool.is-active {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush) !important;
    box-shadow: inset 0 0 0 1px var(--lavish-special-blush-border), 0 2px 8px rgba(0, 0, 0, 0.28) !important;
  }

  body[data-theme="lavish-midnight"] .ribbon-tool.is-active .ribbon-label {
    color: var(--lavish-special-blush) !important;
    font-weight: 700 !important;
  }

  /* Main "Schedule" banner, Day/Week/Month view-tabs & Global Toolbar (# of Days / Time interval) */
  body[data-theme="lavish-midnight"] .main-banner {
    background: var(--lavish-special-frame) !important;
    border-bottom: 1px solid var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .calendar-title {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .banner-subtitle {
    color: var(--lavish-special-muted) !important;
  }

  body[data-theme="lavish-midnight"] .view-tabs {
    background: var(--lavish-special-bg) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .view-tabs .tab-button {
    background: transparent !important;
    color: var(--lavish-special-muted) !important;
    box-shadow: none !important;
  }

  body[data-theme="lavish-midnight"] .view-tabs .tab-button:hover:not(.is-active) {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .view-tabs .tab-button.is-active {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
  }

  body[data-theme="lavish-midnight"] .global-toolbar,
  body[data-theme="lavish-midnight"] .section-toolbar,
  body[data-theme="lavish-midnight"][data-view="clients"] .section-toolbar,
  body[data-theme="lavish-midnight"][data-view="products"] .section-toolbar {
    background: var(--lavish-special-surface) !important;
    border-bottom-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .toolbar-field span,
  body[data-theme="lavish-midnight"] .sidebar-field span,
  body[data-theme="lavish-midnight"] .form-field span,
  body[data-theme="lavish-midnight"] .form-help {
    color: var(--lavish-special-muted) !important;
  }

  body[data-theme="lavish-midnight"] .sidebar-button,
  body[data-theme="lavish-midnight"] .tab-button,
  body[data-theme="lavish-midnight"] .nav-button,
  body[data-theme="lavish-midnight"] .drawer-button,
  body[data-theme="lavish-midnight"] .toolbar-button,
  body[data-theme="lavish-midnight"] .section-button,
  body[data-theme="lavish-midnight"] .sidebar-nav-btn,
  body[data-theme="lavish-midnight"] .date-navigator .nav-button,
  body[data-theme="lavish-midnight"] .date-jump-buttons .nav-button,
  body[data-theme="lavish-midnight"] .date-jump-buttons .toolbar-button {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: none !important;
  }

  body[data-theme="lavish-midnight"] .sidebar-button:hover,
  body[data-theme="lavish-midnight"] .tab-button:hover:not(.is-active),
  body[data-theme="lavish-midnight"] .nav-button:hover,
  body[data-theme="lavish-midnight"] .drawer-button:hover,
  body[data-theme="lavish-midnight"] .toolbar-button:hover:not(.is-active),
  body[data-theme="lavish-midnight"] .section-button:hover:not(.is-active),
  body[data-theme="lavish-midnight"] .sidebar-nav-btn:hover,
  body[data-theme="lavish-midnight"] .date-navigator .nav-button:hover,
  body[data-theme="lavish-midnight"] .date-jump-buttons .nav-button:hover,
  body[data-theme="lavish-midnight"] .date-jump-buttons .toolbar-button:hover {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Sidebar, Mini-Calendar ("November 2026" white-on-cream fix) & Resizer Grips */
  body[data-theme="lavish-midnight"] .mini-calendar-stack {
    background: var(--lavish-special-frame) !important;
  }

  body[data-theme="lavish-midnight"] .mini-month-header {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
    border-radius: 4px;
  }

  body[data-theme="lavish-midnight"] .mini-month-nav:hover {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .mini-day:hover,
  body[data-theme="lavish-midnight"] .mini-day:focus-visible {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .mini-day.is-today {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    box-shadow: inset 0 0 0 1px rgba(236, 203, 180, 0.48) !important;
  }

  body[data-theme="lavish-midnight"] .mini-day.is-selected,
  body[data-theme="lavish-midnight"] .mini-day.is-selected:hover,
  body[data-theme="lavish-midnight"] .mini-day.is-selected:focus-visible {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-radius: 3px !important;
  }

  body[data-theme="lavish-midnight"] .sidebar-resizer {
    background: var(--lavish-special-frame) !important;
    border-left-color: var(--lavish-special-border-soft) !important;
    border-right-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .mini-calendar-resizer {
    background: var(--lavish-special-frame) !important;
    border-top-color: var(--lavish-special-border-soft) !important;
    border-bottom-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .priority-item,
  body[data-theme="lavish-midnight"] .quick-link {
    border-top-color: var(--lavish-special-border-soft) !important;
  }

  body[data-theme="lavish-midnight"] .priority-item:hover,
  body[data-theme="lavish-midnight"] .priority-item:focus-visible,
  body[data-theme="lavish-midnight"] .quick-link:hover,
  body[data-theme="lavish-midnight"] .quick-link:focus-visible {
    background: var(--lavish-special-surface-2) !important;
  }

  body[data-theme="lavish-midnight"] .priority-item:active,
  body[data-theme="lavish-midnight"] .quick-link:active {
    background: var(--lavish-special-surface-3) !important;
  }

  /* Schedule Column Resizer Dividers (eliminates 4px yellow #f7c556/#d68c18 bars!) & Time Corner */
  body[data-theme="lavish-midnight"] .time-column {
    background: var(--lavish-special-rail-bg) !important;
    border-right-color: var(--lavish-special-header-border) !important;
    box-shadow: none !important;
  }

  body[data-theme="lavish-midnight"] .time-header {
    background: var(--lavish-special-header-bg) !important;
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .provider-row {
    background: var(--lavish-special-header-bg) !important;
    border-bottom-color: var(--lavish-special-header-border) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-divider::before {
    width: 2px !important;
    background: var(--lavish-special-grid-divider) !important;
    box-shadow: none !important;
  }

  body[data-theme="lavish-midnight"] .schedule-divider.is-active::before {
    background: var(--lavish-appt-blush-bar) !important;
    box-shadow: 0 0 0 1px rgba(188, 117, 141, 0.3) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-divider-handle {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-header-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-divider:hover .schedule-divider-handle,
  body[data-theme="lavish-midnight"] .schedule-divider:focus-visible .schedule-divider-handle,
  body[data-theme="lavish-midnight"] .schedule-divider.is-active .schedule-divider-handle {
    background: var(--lavish-special-blush) !important;
    border-color: var(--lavish-appt-blush-bar) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-divider-handle::before {
    background: repeating-linear-gradient(
      to bottom,
      rgba(246, 241, 248, 0.65) 0,
      rgba(246, 241, 248, 0.65) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-divider:hover .schedule-divider-handle::before,
  body[data-theme="lavish-midnight"] .schedule-divider.is-active .schedule-divider-handle::before {
    background: repeating-linear-gradient(
      to bottom,
      rgba(38, 26, 36, 0.7) 0,
      rgba(38, 26, 36, 0.7) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-current-time::before {
    background: var(--lavish-appt-blush-bar) !important;
    box-shadow: 0 0 0 1px rgba(188, 117, 141, 0.28) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-current-time::after {
    background: linear-gradient(
      to bottom,
      rgba(188, 117, 141, 0),
      rgba(188, 117, 141, 0.08) 50%,
      rgba(188, 117, 141, 0.2)
    ) !important;
  }

  /* Universal var(--theme-text) white-on-white & OG amber/light-gradient fixes across Views & Modals */
  body[data-theme="lavish-midnight"] .tab-button.is-active,
  body[data-theme="lavish-midnight"] .section-button.is-active,
  body[data-theme="lavish-midnight"] .tickets-filter-tab.is-active,
  body[data-theme="lavish-midnight"] .employee-sidebar-tab.is-active,
  body[data-theme="lavish-midnight"] .employee-detail-tab.is-active,
  body[data-theme="lavish-midnight"] .client-info-chip.is-active,
  body[data-theme="lavish-midnight"] .google-filter-chip.active,
  body[data-theme="lavish-midnight"] .online-booking-day-btn.is-active,
  body[data-theme="lavish-midnight"] .weekday-toggle:has(input:checked),
  body[data-theme="lavish-midnight"] .availability-provider-option:has(input:checked),
  body[data-theme="lavish-midnight"] .availability-weekday-option:has(input:checked),
  body[data-theme="lavish-midnight"] .availability-end-option:has(input:checked),
  body[data-theme="lavish-midnight"] .availability-range-buttons .toolbar-button.is-active,
  body[data-theme="lavish-midnight"] .availability-range-buttons .tab-button.is-active,
  body[data-theme="lavish-midnight"] .month-day-cell:hover .month-day-add-btn,
  body[data-theme="lavish-midnight"] .month-day-add-btn:focus-visible {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
  }

  body[data-theme="lavish-midnight"] .drawer-header,
  body[data-theme="lavish-midnight"] .plan-notes-modal-card .app-modal-header,
  body[data-theme="lavish-midnight"] .service-catalog-modal-card .app-modal-header,
  body[data-theme="lavish-midnight"] .client-info-modal-card > .app-modal-header,
  body[data-theme="lavish-midnight"] .client-picker-header,
  body[data-theme="lavish-midnight"] .product-dialog-titlebar {
    background: var(--lavish-special-header-bg) !important;
    color: var(--lavish-special-text) !important;
    border-bottom-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .admin-staff-avatar,
  body[data-theme="lavish-midnight"] .online-booking-pill-avatar,
  body[data-theme="lavish-midnight"] .service-provider-avatar,
  body[data-theme="lavish-midnight"] .service-hero-avatar,
  body[data-theme="lavish-midnight"] .client-info-avatar,
  body[data-theme="lavish-midnight"] .desktop-thread-avatar,
  body[data-theme="lavish-midnight"] .reports-admin-staff-avatar,
  body[data-theme="lavish-midnight"] .passkeys-guide-badge,
  body[data-theme="lavish-midnight"] .backbar-badge,
  body[data-theme="lavish-midnight"] .plan-note-year-badge {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-blush) !important;
    border: 1px solid var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .section-panel,
  body[data-theme="lavish-midnight"][data-view="clients"] .client-detail-hero,
  body[data-theme="lavish-midnight"][data-view="employees"] .detail-header,
  body[data-theme="lavish-midnight"][data-view="employees"] .metric-card,
  body[data-theme="lavish-midnight"][data-view="reports"] .metric-card.metric-card-financial,
  body[data-theme="lavish-midnight"] .roadmap-summary,
  body[data-theme="lavish-midnight"] .roadmap-plan-button,
  body[data-theme="lavish-midnight"] .availability-grid,
  body[data-theme="lavish-midnight"] .availability-stylist-cell,
  body[data-theme="lavish-midnight"] .checkout-lines,
  body[data-theme="lavish-midnight"] .checkout-totals,
  body[data-theme="lavish-midnight"] .ticket-bottom-cell-totals .appointment-ticket-totals,
  body[data-theme="lavish-midnight"] .import-verify-panel,
  body[data-theme="lavish-midnight"] .mobile-sheet-card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .data-table th,
  body[data-theme="lavish-midnight"] .closeout-tenders-panel > .panel-caption,
  body[data-theme="lavish-midnight"] .settings-view-panel > .panel-caption,
  body[data-theme="lavish-midnight"] .messages-zoom-controls,
  body[data-theme="lavish-midnight"] .messages-filter-tabs,
  body[data-theme="lavish-midnight"] .availability-header,
  body[data-theme="lavish-midnight"] .month-weekdays-header,
  body[data-theme="lavish-midnight"] .checkout-ticket-button,
  body[data-theme="lavish-midnight"] .checkout-ticket-heading,
  body[data-theme="lavish-midnight"] .ticket-fit-all-button,
  body[data-theme="lavish-midnight"] .ticket-line-remove,
  body[data-theme="lavish-midnight"] .ticket-search-close,
  body[data-theme="lavish-midnight"] .checkout-status-pill,
  body[data-theme="lavish-midnight"] .appointment-new-client-fields,
  body[data-theme="lavish-midnight"] .appointment-buffer-panel .panel-caption,
  body[data-theme="lavish-midnight"] .backbar-ledger-header,
  body[data-theme="lavish-midnight"] .message-logs-table th,
  body[data-theme="lavish-midnight"] .staff-accounts-body h4,
  body[data-theme="lavish-midnight"] .passkeys-modal-body h4,
  body[data-theme="lavish-midnight"] .product-btn-inline,
  body[data-theme="lavish-midnight"] .product-dialog-btn,
  body[data-theme="lavish-midnight"] .product-editor-actions button,
  body[data-theme="lavish-midnight"] .mobile-sheet-header,
  body[data-theme="lavish-midnight"] .appointment-modal-card .form-actions,
  body[data-theme="lavish-midnight"] .checkout-modal-card .form-actions,
  body[data-theme="lavish-midnight"] .service-catalog-modal-card .form-actions,
  body[data-theme="lavish-midnight"] .time-block-modal-card .form-actions,
  body[data-theme="lavish-midnight"] .availability-modal-card .form-actions,
  body[data-theme="lavish-midnight"] .availability-recurring-modal-card .form-actions {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .availability-header,
  body[data-theme="lavish-midnight"] .availability-stylist-cell,
  body[data-theme="lavish-midnight"] .availability-cell {
    border-right-color: var(--lavish-special-border) !important;
    border-bottom-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"] .roadmap-plan-button:hover,
  body[data-theme="lavish-midnight"] .schedule-context-menu-item:hover:not(:disabled),
  body[data-theme="lavish-midnight"] .schedule-context-menu-item.is-highlighted:not(:disabled),
  body[data-theme="lavish-midnight"] .ticket-line-context-menu-item:hover,
  body[data-theme="lavish-midnight"] .ticket-fit-all-button:hover,
  body[data-theme="lavish-midnight"] .ticket-line-remove:hover,
  body[data-theme="lavish-midnight"] .ticket-search-close:hover,
  body[data-theme="lavish-midnight"] .client-picker-walk-in-btn:hover,
  body[data-theme="lavish-midnight"] .client-picker-select-btn:hover,
  body[data-theme="lavish-midnight"] .product-btn-inline:hover,
  body[data-theme="lavish-midnight"] .product-dialog-btn:hover {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .schedule-context-menu-icon {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-blush) !important;
    border-color: var(--lavish-special-border) !important;
  }

  body[data-theme="lavish-midnight"][data-view="employees"] #employee-new,
  body[data-theme="lavish-midnight"][data-view="employees"] .employee-form #employee-save,
  body[data-theme="lavish-midnight"] .form-actions-buttons .primary-button,
  body[data-theme="lavish-midnight"] #closeout-run-button,
  body[data-theme="lavish-midnight"] .clock-in-submit-btn,
  body[data-theme="lavish-midnight"] .clock-out-submit-btn,
  body[data-theme="lavish-midnight"] .settings-form-actions .primary-button,
  body[data-theme="lavish-midnight"] #settings-online-save,
  body[data-theme="lavish-midnight"] .admin-action-btn.primary-btn,
  body[data-theme="lavish-midnight"] .public-btn-submit,
  body[data-theme="lavish-midnight"] .settings-link-action-btn.is-wizard,
  body[data-theme="lavish-midnight"] .desktop-chat-msg-row.is-outgoing .desktop-chat-bubble,
  body[data-theme="lavish-midnight"] .service-new-btn,
  body[data-theme="lavish-midnight"] .backbar-ticket-actions .primary-button,
  body[data-theme="lavish-midnight"] .client-picker-new-btn,
  body[data-theme="lavish-midnight"] #passkeys-enroll.toolbar-button,
  body[data-theme="lavish-midnight"] .app-modal-card .form-actions .primary-button,
  body[data-theme="lavish-midnight"] .st-btn-amber {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
    box-shadow: var(--lavish-special-glow) !important;
  }

  /* ------------------------------------------------------------------------
     6. Exhaustive Repo-Wide Hardcoded Light-BG & Dark-Slate Text Elimination
     (Every remaining unaddressed rule across views/*.css & modals/*.css,
      strictly excluding print containers)
     ------------------------------------------------------------------------ */

  /* Messages view: list caption, active filter tab, zoom controls, bubbles & composer */
  body[data-theme="lavish-midnight"] .messages-list-caption-title,
  body[data-theme="lavish-midnight"] .messages-list-caption-left span:first-child {
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .messages-list-caption .panel-caption-badge {
    color: var(--lavish-special-muted) !important;
  }

  body[data-theme="lavish-midnight"] .messages-filter-tab {
    color: var(--lavish-special-muted) !important;
  }

  body[data-theme="lavish-midnight"] .messages-filter-tab:hover:not(.is-active),
  body[data-theme="lavish-midnight"] .messages-zoom-btn:hover {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .messages-filter-tab.is-active {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28) !important;
  }

  body[data-theme="lavish-midnight"] .messages-zoom-level {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-thread-item:hover {
    background: var(--lavish-special-surface-2) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-thread-item.is-selected {
    background: var(--lavish-special-blush-soft) !important;
    border-left-color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-thread-contact-pill:hover,
  body[data-theme="lavish-midnight"] .desktop-thread-link:hover,
  body[data-theme="lavish-midnight"] .desktop-chat-appointment-card .appt-card-action-btn,
  body[data-theme="lavish-midnight"] .disclaimer-link-btn {
    color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-msg-row.is-incoming .desktop-chat-bubble,
  body[data-theme="lavish-midnight"] .desktop-chat-service-info,
  body[data-theme="lavish-midnight"] .desktop-chat-appointment-card .appt-card-header,
  body[data-theme="lavish-midnight"] .desktop-template-chip,
  body[data-theme="lavish-midnight"] .desktop-chat-composer-bar {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-composer-bar:focus-within {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush) !important;
    box-shadow: 0 0 0 2px var(--lavish-special-blush-soft) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-send-btn,
  body[data-theme="lavish-midnight"] .desktop-chat-action-btn {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-send-btn:hover:not(:disabled),
  body[data-theme="lavish-midnight"] .desktop-chat-action-btn:hover {
    background: var(--lavish-special-blush-hover) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-send-btn.is-disabled,
  body[data-theme="lavish-midnight"] .desktop-chat-send-btn:disabled {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-subtle) !important;
  }

  /* Remaining hardcoded white/light surfaces across Modals & Views (non-print) */
  body[data-theme="lavish-midnight"] .product-desktop-dialog,
  body[data-theme="lavish-midnight"] .product-dialog-window,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-audit-row,
  body[data-theme="lavish-midnight"] .st-summary-row,
  body[data-theme="lavish-midnight"] .appointment-worksheet-lower .appointment-buffer-grid {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .service-catalog-sort-head,
  body[data-theme="lavish-midnight"] .cancellation-table thead th,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-audit-more pre,
  body[data-theme="lavish-midnight"] .admin-audit-empty,
  body[data-theme="lavish-midnight"] .st-date-input,
  body[data-theme="lavish-midnight"] .st-time-input,
  body[data-theme="lavish-midnight"] .security-employee-select,
  body[data-theme="lavish-midnight"] .auth-logo-badge,
  body[data-theme="lavish-midnight"] .mobile-version-icon-badge {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  body[data-theme="lavish-midnight"] .st-date-input:disabled,
  body[data-theme="lavish-midnight"] .st-time-input:disabled {
    background: var(--lavish-special-bg) !important;
    color: var(--lavish-special-subtle) !important;
  }

  body[data-theme="lavish-midnight"] .employee-sidebar-row:hover,
  body[data-theme="lavish-midnight"] .cancel-btn-secondary:hover,
  body[data-theme="lavish-midnight"] .appt-quick-btn:hover,
  body[data-theme="lavish-midnight"] .cal-day-cell:hover,
  body[data-theme="lavish-midnight"] .column-option-pill.is-available:hover,
  body[data-theme="lavish-midnight"] .appointment-change-client-btn:hover,
  body[data-theme="lavish-midnight"] .ticket-search-item:hover,
  body[data-theme="lavish-midnight"] .ticket-search-item:focus-visible,
  body[data-theme="lavish-midnight"] .product-edit-desktop-btn:hover,
  body[data-theme="lavish-midnight"] .security-close-btn:hover {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Appointment Worksheet named .ticket-col-* pastel washes on dark plum */
  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-col-start,
  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-start,
  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-col-qty-prch,
  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-qty-prch {
    background: rgba(180, 224, 198, 0.1) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-col-id,
  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-id {
    background: rgba(216, 206, 240, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-col-mins,
  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-mins {
    background: rgba(236, 203, 180, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-col-price,
  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-price {
    background: rgba(176, 224, 224, 0.11) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-table tbody tr > td.ticket-col-qty-used,
  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-qty-used {
    background: rgba(229, 184, 198, 0.12) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-line-filler td.ticket-col-total,
  body[data-theme="lavish-midnight"] .ticket-cell-id:hover,
  body[data-theme="lavish-midnight"] .ticket-cell-id:focus-within,
  body[data-theme="lavish-midnight"] .ticket-line-filler .ticket-filler-id-input:focus {
    background: rgba(242, 224, 184, 0.14) !important;
  }

  /* Semantic dark-safe badges & alerts caught in full CSS scan */
  body[data-theme="lavish-midnight"] .desktop-chat-status-badge.is-confirmed,
  body[data-theme="lavish-midnight"] .desktop-chat-appointment-card .appt-card-status,
  body[data-theme="lavish-midnight"] .message-log-status-badge.is-delivered,
  body[data-theme="lavish-midnight"] .online-booking-pill-badge.badge-visible,
  body[data-theme="lavish-midnight"] .checkout-status-pill.is-closed,
  body[data-theme="lavish-midnight"] .audit-badge.audit-finance {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-status-badge.is-cancelled,
  body[data-theme="lavish-midnight"] .admin-denied-badge,
  body[data-theme="lavish-midnight"] .auth-status,
  body[data-theme="lavish-midnight"] .import-panel-danger,
  body[data-theme="lavish-midnight"] .created-by-item-remove-btn:hover,
  body[data-theme="lavish-midnight"] .column-pill-remove:hover {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-status-badge.is-requested,
  body[data-theme="lavish-midnight"] .desktop-chat-status-badge.is-pending,
  body[data-theme="lavish-midnight"] .mobile-chat-status-badge.is-requested,
  body[data-theme="lavish-midnight"] .service-hero-status-pill.is-new,
  body[data-theme="lavish-midnight"] .auth-downtime-alert,
  body[data-theme="lavish-midnight"] .time-block-confirm-details,
  body[data-theme="lavish-midnight"] .audit-badge.audit-system,
  body[data-theme="lavish-midnight"] .ticket-opener-icon-wrap.backbar-icon,
  body[data-theme="lavish-midnight"] #local-mode-banner {
    background: var(--lavish-special-peach-soft) !important;
    color: var(--lavish-special-peach) !important;
    border-color: rgba(236, 203, 180, 0.42) !important;
  }

  body[data-theme="lavish-midnight"] .desktop-chat-status-badge.is-completed,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-audit-row .audit-badge,
  body[data-theme="lavish-midnight"] .audit-badge.audit-security,
  body[data-theme="lavish-midnight"] .message-log-channel-badge.is-email {
    background: var(--lavish-special-lavender-soft) !important;
    color: var(--lavish-special-lavender) !important;
    border-color: var(--lavish-special-lavender-border) !important;
  }

  /* All remaining hardcoded dark-slate primary text selectors -> crisp ivory */
  body[data-theme="lavish-midnight"] .client-row-name,
  body[data-theme="lavish-midnight"] .roadmap-group h3,
  body[data-theme="lavish-midnight"] .roadmap-summary strong,
  body[data-theme="lavish-midnight"] .roadmap-plan-title-line strong,
  body[data-theme="lavish-midnight"] .detail-field strong,
  body[data-theme="lavish-midnight"] .history-heading,
  body[data-theme="lavish-midnight"][data-view="employees"] .metric-card strong,
  body[data-theme="lavish-midnight"] .appointment-total-row strong,
  body[data-theme="lavish-midnight"] .ticket-client-name,
  body[data-theme="lavish-midnight"] .ticket-cell-id-input,
  body[data-theme="lavish-midnight"] .ticket-search-code,
  body[data-theme="lavish-midnight"] .checkout-grand-total strong,
  body[data-theme="lavish-midnight"] .time-block-confirm-card h2,
  body[data-theme="lavish-midnight"] .appointment-client-row strong,
  body[data-theme="lavish-midnight"] #appointment-form.is-client-selected .appointment-selected-client strong,
  body[data-theme="lavish-midnight"] #appointment-form.is-editing-appointment .appointment-selected-client strong,
  body[data-theme="lavish-midnight"] .admin-create-login-result-title,
  body[data-theme="lavish-midnight"] .admin-access-denied h3,
  body[data-theme="lavish-midnight"] .product-section-legend,
  body[data-theme="lavish-midnight"] .product-form-row label,
  body[data-theme="lavish-midnight"] .product-input,
  body[data-theme="lavish-midnight"] .product-select,
  body[data-theme="lavish-midnight"] .product-checkbox-row,
  body[data-theme="lavish-midnight"] .product-loyalty-desc,
  body[data-theme="lavish-midnight"] .product-editor-dialog label,
  body[data-theme="lavish-midnight"] .security-feature-name,
  body[data-theme="lavish-midnight"] .security-field-row label,
  body[data-theme="lavish-midnight"] .customizer-section-title,
  body[data-theme="lavish-midnight"] .public-brand-name,
  body[data-theme="lavish-midnight"] .public-slide-title,
  body[data-theme="lavish-midnight"] .public-service-name,
  body[data-theme="lavish-midnight"] .public-service-price,
  body[data-theme="lavish-midnight"] .public-stylist-name,
  body[data-theme="lavish-midnight"] .public-summary-row span:last-child,
  body[data-theme="lavish-midnight"] .public-success-title,
  body[data-theme="lavish-midnight"] .st-results-hint {
    color: var(--lavish-special-text) !important;
  }

  /* All remaining hardcoded dark-slate secondary/caption text selectors -> muted lavender-taupe */
  body[data-theme="lavish-midnight"] .status-bar,
  body[data-theme="lavish-midnight"] .empty-state,
  body[data-theme="lavish-midnight"] .client-row-contact,
  body[data-theme="lavish-midnight"] .client-row-address,
  body[data-theme="lavish-midnight"] .client-row-meta,
  body[data-theme="lavish-midnight"] .employee-row span,
  body[data-theme="lavish-midnight"][data-view="employees"] .employee-row span,
  body[data-theme="lavish-midnight"] .detail-header p,
  body[data-theme="lavish-midnight"][data-view="employees"] .detail-header p,
  body[data-theme="lavish-midnight"][data-view="employees"] .metric-note,
  body[data-theme="lavish-midnight"] .employee-sidebar-tab:not(.is-active),
  body[data-theme="lavish-midnight"] .employee-detail-tab:not(.is-active),
  body[data-theme="lavish-midnight"] .employee-sidebar-row span,
  body[data-theme="lavish-midnight"] .employee-option-desc,
  body[data-theme="lavish-midnight"] .employee-editor-warning,
  body[data-theme="lavish-midnight"] .tickets-filter-tab:not(.is-active),
  body[data-theme="lavish-midnight"] .ticket-row-timing,
  body[data-theme="lavish-midnight"] .ticket-detail-eyebrow,
  body[data-theme="lavish-midnight"] .ticket-hero-label,
  body[data-theme="lavish-midnight"] .roadmap-summary p,
  body[data-theme="lavish-midnight"] .roadmap-group p,
  body[data-theme="lavish-midnight"] .roadmap-plan-number,
  body[data-theme="lavish-midnight"] .roadmap-plan-description,
  body[data-theme="lavish-midnight"] .cancellation-subline,
  body[data-theme="lavish-midnight"] .cancellation-card-note,
  body[data-theme="lavish-midnight"] .appointment-no-show-rate-box .rate-label,
  body[data-theme="lavish-midnight"] .created-by-list-header,
  body[data-theme="lavish-midnight"] .appointment-total-row,
  body[data-theme="lavish-midnight"] .time-block-confirm-summary,
  body[data-theme="lavish-midnight"] .appointment-slot-summary-item span,
  body[data-theme="lavish-midnight"] .appointment-selected-meta,
  body[data-theme="lavish-midnight"] .lookup-result-meta,
  body[data-theme="lavish-midnight"] .appointment-selected-label,
  body[data-theme="lavish-midnight"] .appointment-ticket-caption,
  body[data-theme="lavish-midnight"] .client-info-id,
  body[data-theme="lavish-midnight"] .client-info-label,
  body[data-theme="lavish-midnight"] .client-picker-visit-tag,
  body[data-theme="lavish-midnight"] .passkeys-guide-content,
  body[data-theme="lavish-midnight"] .admin-create-login-desc,
  body[data-theme="lavish-midnight"] .admin-create-login-status,
  body[data-theme="lavish-midnight"] #admin-tab-panel .admin-audit-more,
  body[data-theme="lavish-midnight"] .product-dialog-close-btn,
  body[data-theme="lavish-midnight"] .product-tab-btn,
  body[data-theme="lavish-midnight"] .product-helper-text,
  body[data-theme="lavish-midnight"] .product-loyalty-note,
  body[data-theme="lavish-midnight"] .product-editor-dialog label small,
  body[data-theme="lavish-midnight"] #product-settings-dialog .product-settings-description,
  body[data-theme="lavish-midnight"] .st-card-subtitle,
  body[data-theme="lavish-midnight"] .st-empty-cell,
  body[data-theme="lavish-midnight"] .st-detail-empty,
  body[data-theme="lavish-midnight"] .security-prompt-copy,
  body[data-theme="lavish-midnight"] .settings-link-hint,
  body[data-theme="lavish-midnight"] .customizer-text-field span,
  body[data-theme="lavish-midnight"] .customizer-preview-label,
  body[data-theme="lavish-midnight"] .public-slide-subtitle,
  body[data-theme="lavish-midnight"] .public-input-group label,
  body[data-theme="lavish-midnight"] .public-service-meta,
  body[data-theme="lavish-midnight"] .public-slots-title,
  body[data-theme="lavish-midnight"] .public-summary-row span:first-child,
  body[data-theme="lavish-midnight"] .public-success-desc {
    color: var(--lavish-special-muted) !important;
  }

  /* Accent / highlight text links & match highlights on dark plum */
  body[data-theme="lavish-midnight"] .client-row-stylist,
  body[data-theme="lavish-midnight"] .client-row-match,
  body[data-theme="lavish-midnight"] .employee-row-match,
  body[data-theme="lavish-midnight"] .roadmap-plan-open,
  body[data-theme="lavish-midnight"] .mobile-service-add-btn,
  body[data-theme="lavish-midnight"] .mobile-request-contact-link,
  body[data-theme="lavish-midnight"] .mobile-version-eyebrow,
  body[data-theme="lavish-midnight"][data-view="reports"] .reports-highlight-pill {
    color: var(--lavish-special-blush) !important;
  }

  body[data-theme="lavish-midnight"] .ticket-search-price,
  body[data-theme="lavish-midnight"] .backbar-cost-tag,
  body[data-theme="lavish-midnight"] .backbar-unit-cost,
  body[data-theme="lavish-midnight"] .summary-val,
  body[data-theme="lavish-midnight"] .backbar-rapid-feed-price,
  body[data-theme="lavish-midnight"] .admin-passkey-status,
  body[data-theme="lavish-midnight"] .message-log-kpi-card.is-success .message-log-kpi-label,
  body[data-theme="lavish-midnight"] .message-log-kpi-card.is-success .message-log-kpi-value {
    color: #86efac !important;
  }
}

/* Strictly preserve pure white paper for Waitlist & Sales Totals printing */
@media print {
  #lavish-theme-curtain,
  .lavish-theme-toggle {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. Special Theme (lavish-midnight) — All Public & Standalone Routes
   (OG mode leaves every page's original light CSS completely untouched!)
   -------------------------------------------------------------------------- */
@media screen {
  html[data-theme="lavish-midnight"] {
    background-color: var(--lavish-special-bg);
    color-scheme: dark;
  }

  /* Shared matte plum backdrop for public routes (zero radial neon blobs) */
  html[data-theme="lavish-midnight"] body.public-themed,
  html[data-theme="lavish-midnight"] body.is-auth-locked,
  html[data-theme="lavish-midnight"] body:has(.booking-shell) {
    background: var(--lavish-special-bg) !important;
    color: var(--lavish-special-text) !important;
  }

  /* --- / & /about/ --- */
  html[data-theme="lavish-midnight"] .site-nav {
    background: rgba(36, 28, 44, 0.94) !important;
    border-bottom-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .brand-link {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .nav-link {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .nav-link:hover {
    color: var(--lavish-special-text) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  html[data-theme="lavish-midnight"] .nav-cta,
  html[data-theme="lavish-midnight"] .btn-primary,
  html[data-theme="lavish-midnight"] .auth-submit-btn {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
    box-shadow: var(--lavish-special-glow) !important;
  }

  html[data-theme="lavish-midnight"] .nav-cta:hover,
  html[data-theme="lavish-midnight"] .btn-primary:hover,
  html[data-theme="lavish-midnight"] .auth-submit-btn:hover {
    background: var(--lavish-special-blush-hover) !important;
  }

  html[data-theme="lavish-midnight"] .hero-card {
    background: var(--lavish-special-surface) !important;
    border: 1px solid var(--lavish-special-border) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38) !important;
  }

  html[data-theme="lavish-midnight"] .section-card,
  html[data-theme="lavish-midnight"] .about-card,
  html[data-theme="lavish-midnight"] .feature-tile,
  html[data-theme="lavish-midnight"] .compare-table-wrap,
  html[data-theme="lavish-midnight"] .pricing-card,
  html[data-theme="lavish-midnight"] .pillar-card,
  html[data-theme="lavish-midnight"] .faq-item {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
  }

  html[data-theme="lavish-midnight"] .section-card h1,
  html[data-theme="lavish-midnight"] .section-card h2,
  html[data-theme="lavish-midnight"] .section-card h3,
  html[data-theme="lavish-midnight"] .about-card h1,
  html[data-theme="lavish-midnight"] .about-card h2,
  html[data-theme="lavish-midnight"] .feature-tile h3,
  html[data-theme="lavish-midnight"] .compare-table th,
  html[data-theme="lavish-midnight"] .compare-table td {
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .compare-table thead th {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .compare-table .col-lavish {
    background: var(--lavish-special-blush-soft) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .section-card p,
  html[data-theme="lavish-midnight"] .about-card p,
  html[data-theme="lavish-midnight"] .about-list,
  html[data-theme="lavish-midnight"] .feature-tile p,
  html[data-theme="lavish-midnight"] .site-footer,
  html[data-theme="lavish-midnight"] .site-footer a {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .btn-secondary {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .btn-secondary:hover {
    border-color: var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] .eyebrow,
  html[data-theme="lavish-midnight"] .section-kicker,
  html[data-theme="lavish-midnight"] .pill-badge {
    color: var(--lavish-special-blush) !important;
  }

  /* --- /booking/ (Online Booking Portal + Service Preview Modal) --- */
  .booking-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    padding: 32px 20px;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid var(--booking-line, #e2e0ec);
    background: var(--booking-surface, #ffffff);
    text-align: center;
  }

  .booking-loader[hidden] {
    display: none !important;
  }

  .booking-loader-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: block;
    animation: bookingLoaderPulse 1.4s ease-in-out infinite;
  }

  .booking-loader-text {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--booking-muted, #6b637f);
  }

  .booking-loader-bar {
    position: relative;
    width: 140px;
    height: 5px;
    border-radius: 9999px;
    background: var(--lavish-special-border-soft);
    overflow: hidden;
  }

  .booking-loader-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 44%;
    border-radius: inherit;
    background: var(--lavish-special-blush);
    animation: bookingLoaderSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  @keyframes bookingLoaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.06); opacity: 1; }
  }

  @keyframes bookingLoaderSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(320%); }
  }

  html[data-theme="lavish-midnight"]:has(.booking-shell) {
    --booking-bg: var(--lavish-special-bg);
    --booking-surface: var(--lavish-special-surface);
    --booking-soft: var(--lavish-special-surface-2);
    --booking-blue: var(--lavish-special-surface-3);
    --booking-line: var(--lavish-special-border);
    --booking-text: var(--lavish-special-text);
    --booking-muted: var(--lavish-special-muted);
    --booking-accent: var(--lavish-special-blush);
  }

  html[data-theme="lavish-midnight"] .booking-loader {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .booking-loader-text {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .booking-shell {
    color: var(--lavish-special-text);
  }

  html[data-theme="lavish-midnight"] .section-heading > span {
    background: var(--lavish-special-surface-3) !important;
    color: var(--lavish-special-text) !important;
    border: 1px solid var(--lavish-special-border);
  }

  html[data-theme="lavish-midnight"] .service-category-button,
  html[data-theme="lavish-midnight"] .choice-button,
  html[data-theme="lavish-midnight"] .time-button,
  html[data-theme="lavish-midnight"] .service-choice-card,
  html[data-theme="lavish-midnight"] .date-nav-button,
  html[data-theme="lavish-midnight"] .date-choice,
  html[data-theme="lavish-midnight"] .booking-field input,
  html[data-theme="lavish-midnight"] .booking-field textarea {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .choice-button strong,
  html[data-theme="lavish-midnight"] .service-choice-card strong {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .choice-button span,
  html[data-theme="lavish-midnight"] .service-choice-card span {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .choice-button:hover,
  html[data-theme="lavish-midnight"] .time-button:hover,
  html[data-theme="lavish-midnight"] .service-choice-card:hover {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush-border) !important;
  }

  html[data-theme="lavish-midnight"] .service-category-button.is-selected {
    background: var(--lavish-special-blush) !important;
    border-color: transparent !important;
    color: var(--lavish-special-accent-ink) !important;
  }

  html[data-theme="lavish-midnight"] .choice-button.is-selected,
  html[data-theme="lavish-midnight"] .time-button.is-selected,
  html[data-theme="lavish-midnight"] .service-choice-card.is-selected,
  html[data-theme="lavish-midnight"] .date-choice.is-selected,
  html[data-theme="lavish-midnight"] .soonest-opening {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: inset 0 0 0 1px var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] .service-more-button,
  html[data-theme="lavish-midnight"] .addon-section {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .addon-choice {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .addon-choice:has(input:checked) {
    background: var(--lavish-special-blush-soft) !important;
    border-color: var(--lavish-special-blush) !important;
    box-shadow: inset 0 0 0 1px var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] .addon-choice-copy strong {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .addon-choice-copy span,
  html[data-theme="lavish-midnight"] .addon-heading h3 span {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .addon-info-button,
  html[data-theme="lavish-midnight"] .addon-info-copy {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .booking-header {
    background: var(--lavish-special-frame) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .booking-section,
  html[data-theme="lavish-midnight"] .booking-status,
  html[data-theme="lavish-midnight"] .service-preview-card,
  html[data-theme="lavish-midnight"] .service-preview-dialog,
  html[data-theme="lavish-midnight"] .booking-summary-card,
  html[data-theme="lavish-midnight"] .booking-confirmation {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .booking-section h2,
  html[data-theme="lavish-midnight"] .booking-section h3,
  html[data-theme="lavish-midnight"] .choice-card strong,
  html[data-theme="lavish-midnight"] .choice-title,
  html[data-theme="lavish-midnight"] .service-preview-title {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .section-hint,
  html[data-theme="lavish-midnight"] .choice-meta,
  html[data-theme="lavish-midnight"] .addon-heading p,
  html[data-theme="lavish-midnight"] .service-preview-desc {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .choice-card,
  html[data-theme="lavish-midnight"] .slot-btn,
  html[data-theme="lavish-midnight"] .category-chip,
  html[data-theme="lavish-midnight"] .service-info-btn,
  html[data-theme="lavish-midnight"] .booking-form input,
  html[data-theme="lavish-midnight"] .booking-form textarea,
  html[data-theme="lavish-midnight"] .booking-form select {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .choice-card.is-selected,
  html[data-theme="lavish-midnight"] .slot-btn.is-selected,
  html[data-theme="lavish-midnight"] .category-chip.is-active,
  html[data-theme="lavish-midnight"] .booking-submit {
    background: var(--lavish-special-blush) !important;
    border-color: transparent !important;
    color: var(--lavish-special-accent-ink) !important;
    box-shadow: var(--lavish-special-glow) !important;
  }

  /* --- /login/ (Staff Sign-In) --- */
  html[data-theme="lavish-midnight"] .auth-shell,
  html[data-theme="lavish-midnight"] .auth-overlay {
    background: transparent !important;
  }

  html[data-theme="lavish-midnight"] .auth-card,
  html[data-theme="lavish-midnight"] .login-loading-card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  }

  html[data-theme="lavish-midnight"] .auth-card h1,
  html[data-theme="lavish-midnight"] .auth-card h2,
  html[data-theme="lavish-midnight"] .auth-card label,
  html[data-theme="lavish-midnight"] .auth-field span,
  html[data-theme="lavish-midnight"] .auth-force-change-copy,
  html[data-theme="lavish-midnight"] .auth-force-change-copy strong {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .auth-logo-badge {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] .auth-card p,
  html[data-theme="lavish-midnight"] .auth-subtitle,
  html[data-theme="lavish-midnight"] .auth-link-btn,
  html[data-theme="lavish-midnight"] .auth-client-booking-link {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .auth-card input {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  /* Save a Passkey modal on /login/ */
  html[data-theme="lavish-midnight"] .auth-passkey-card {
    background: var(--lavish-special-surface) !important;
    border: 1px solid var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5) !important;
  }

  html[data-theme="lavish-midnight"] .auth-passkey-card h2,
  html[data-theme="lavish-midnight"] #secure-signin-prompt-title {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .auth-passkey-card p,
  html[data-theme="lavish-midnight"] #secure-signin-prompt-description {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] .auth-passkey-status {
    background: var(--lavish-special-peach-soft) !important;
    border-color: rgba(236, 203, 180, 0.4) !important;
    color: var(--lavish-special-peach) !important;
  }

  html[data-theme="lavish-midnight"] .auth-passkey-actions .auth-primary-btn {
    background: var(--lavish-special-blush) !important;
    border-color: transparent !important;
    color: var(--lavish-special-accent-ink) !important;
    box-shadow: var(--lavish-special-glow) !important;
  }

  html[data-theme="lavish-midnight"] .auth-passkey-actions .auth-secondary-btn {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  /* --- /calendar/ & /calendar/manage/ (untouched unless theme attr ever present) --- */
  html[data-theme="lavish-midnight"]:has(.qr-shell) {
    --mobile-purple: var(--lavish-special-text);
    --mobile-purple-soft: var(--lavish-special-surface-2);
    --mobile-coral: var(--lavish-special-blush);
    --mobile-coral-hover: var(--lavish-special-blush-hover);
    --mobile-page-bg: var(--lavish-special-bg);
    --mobile-card-blue: var(--lavish-special-surface-2);
    --mobile-card-border: var(--lavish-special-border);
    --mobile-surface-white: var(--lavish-special-surface);
    --mobile-grid-line: var(--lavish-special-border);
    --mobile-text-muted: var(--lavish-special-muted);
    --mobile-success: #86efac;
    --mobile-success-bg: rgba(16, 185, 129, 0.16);
    --mobile-danger: #fda4af;
    --mobile-danger-bg: rgba(244, 63, 94, 0.16);
  }

  html[data-theme="lavish-midnight"] .qr-card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .qr-pass-timing-box,
  html[data-theme="lavish-midnight"] .qr-chlo-callout,
  html[data-theme="lavish-midnight"] .qr-multi-appt-card,
  html[data-theme="lavish-midnight"] .qr-btn-google,
  html[data-theme="lavish-midnight"] .qr-btn-outlook,
  html[data-theme="lavish-midnight"] .qr-outlook-picker,
  html[data-theme="lavish-midnight"] .qr-bridge-pill,
  html[data-theme="lavish-midnight"] .qr-lookup-result,
  html[data-theme="lavish-midnight"] .qr-appt-row {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] .service-preview-media {
    background: var(--lavish-special-surface-2) !important;
  }

  html[data-theme="lavish-midnight"] .auth-passkey-btn:hover {
    background: var(--lavish-special-surface-3) !important;
    border-color: var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] .qr-avatar-ring {
    background: var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] .qr-action-btn.is-primary,
  html[data-theme="lavish-midnight"] .qr-btn-primary {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
  }

  /* Keep scannable QR sign high-contrast light paper even in Special mode */
  html[data-theme="lavish-midnight"] .qr-print-sign {
    background: #fdfaf6 !important;
    color: #261a29 !important;
  }

  /* --- /help/client-documents.html & /help/employee-documents.html --- */
  html[data-theme="lavish-midnight"]:has(.portal-shell),
  html[data-theme="lavish-midnight"] body[data-portal-mode] {
    --bg: var(--lavish-special-bg);
    --bg-gradient: var(--lavish-special-bg);
    --surface-page: var(--lavish-special-frame);
    --surface-card: var(--lavish-special-surface);
    --surface-card-subtle: var(--lavish-special-surface-2);
    --surface-inset: var(--lavish-special-surface-2);
    --surface-input: var(--lavish-special-surface-2);
    --surface-highlight: var(--lavish-special-surface-3);
    --ink: var(--lavish-special-text);
    --ink-secondary: var(--lavish-special-muted);
    --muted: var(--lavish-special-muted);
    --muted-light: var(--lavish-special-subtle);
    --border: var(--lavish-special-border);
    --border-strong: var(--lavish-special-blush-border);
    --border-subtle: var(--lavish-special-border-soft);
    --accent: var(--lavish-special-blush);
    --accent-strong: var(--lavish-special-lavender);
    --accent-soft: var(--lavish-special-blush-soft);
    --accent-badge: var(--lavish-special-surface-3);
    --accent-glow: rgba(20, 14, 28, 0.28);
    --mint: #86efac;
    --mint-strong: #4ade80;
    --mint-soft: rgba(134, 239, 172, 0.14);
    --mint-surface: rgba(134, 239, 172, 0.11);
    --gold: var(--lavish-special-peach);
    --gold-soft: var(--lavish-special-peach-soft);
    --gold-surface: rgba(236, 203, 180, 0.11);
    --danger: #fda4af;
    --danger-soft: rgba(244, 63, 94, 0.16);
    --danger-surface: rgba(244, 63, 94, 0.13);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.26);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.42);
  }

  html[data-theme="lavish-midnight"] .portal-shell .primary-btn,
  html[data-theme="lavish-midnight"] .portal-shell button.is-primary {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
  }

  /* --- /unsubscribe/ & /404.html (OG keeps original warm beige; Special uses matte plum) --- */
  html[data-theme="lavish-midnight"] body.public-warm-og {
    --bg: var(--lavish-special-bg);
    --card-bg: var(--lavish-special-surface);
    --text-main: var(--lavish-special-text);
    --text-muted: var(--lavish-special-muted);
    --accent: var(--lavish-special-blush);
    --accent-hover: var(--lavish-special-blush-hover);
    --border: var(--lavish-special-border);
    --tag-bg: var(--lavish-special-surface-2);
    background: var(--lavish-special-bg) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .card {
    background: var(--lavish-special-surface) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og h1,
  html[data-theme="lavish-midnight"] body.public-warm-og h2 {
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og p,
  html[data-theme="lavish-midnight"] body.public-warm-og .footer,
  html[data-theme="lavish-midnight"] body.public-warm-og .footer-help,
  html[data-theme="lavish-midnight"] body.public-warm-og .subtext {
    color: var(--lavish-special-muted) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .footer-help a {
    color: var(--lavish-special-blush) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .notice-box {
    background: var(--lavish-special-surface-2) !important;
    border-color: var(--lavish-special-border) !important;
    color: var(--lavish-special-text) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .email-display,
  html[data-theme="lavish-midnight"] body.public-warm-og .path {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-blush) !important;
    border: 1px solid var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .code {
    color: var(--lavish-special-blush) !important;
    -webkit-text-fill-color: var(--lavish-special-blush) !important;
    background: none !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .badge,
  html[data-theme="lavish-midnight"] body.public-warm-og .tag {
    background: var(--lavish-special-blush-soft) !important;
    color: var(--lavish-special-blush) !important;
    border-color: var(--lavish-special-blush-border) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .btn-primary,
  html[data-theme="lavish-midnight"] body.public-warm-og a.btn:not(.btn-secondary),
  html[data-theme="lavish-midnight"] body.public-warm-og .cta-btn {
    background: var(--lavish-special-blush) !important;
    color: var(--lavish-special-accent-ink) !important;
    border-color: transparent !important;
    box-shadow: var(--lavish-special-glow) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .btn-secondary {
    background: var(--lavish-special-surface-2) !important;
    color: var(--lavish-special-text) !important;
    border-color: var(--lavish-special-border) !important;
  }

  html[data-theme="lavish-midnight"] body.public-warm-og .btn-secondary:hover {
    border-color: var(--lavish-special-blush) !important;
  }
}
