/* Additional complete SalonFlex themes. */
body[data-theme="gold-light"]{--bg:#faf6ec;--panel:#fffdf8;--ink:#332b1b;--muted:#887b60;--line:#e9ddc1;--soft:#f6eed9;--pink:#b98a2e;--accent:#b98a2e;--glass:rgba(255,253,248,.86);--shadow:0 14px 36px rgba(100,76,28,.1);--scroll-track:#f4ecda;--scroll-thumb:#c4a35d;--scroll-hover:#9c7425;background:radial-gradient(circle at 87% 0,rgba(226,196,127,.3),transparent 31%),radial-gradient(circle at 10% 92%,rgba(255,245,213,.8),transparent 28%),linear-gradient(145deg,#fffdf8,#f6edd7)}
body[data-theme="gold-light"] .sidebar{background:linear-gradient(180deg,#fffefa,#f6edd8)!important;border-color:#e8d9b8}
body[data-theme="gold-light"] .topbar{background:rgba(255,253,247,.88)!important;border-color:#e8d9b8;backdrop-filter:blur(18px)}
body[data-theme="gold-light"] .brand-mark{background:linear-gradient(145deg,#29251c,#bd9138);box-shadow:0 8px 20px rgba(132,98,30,.22)}
body[data-theme="gold-light"] .brand b,body[data-theme="gold-light"] :is(.eyebrow,.text-button,.event-edit,.event-delete,.service-bottom b,.client-row a,.calendar-help b){color:#a87920}
body[data-theme="gold-light"] .nav-link:hover,body[data-theme="gold-light"] .nav-link.active{background:linear-gradient(90deg,#f7ebcf,#fffaf0);color:#8e661a;box-shadow:inset 3px 0 #c59a45}
body[data-theme="gold-light"] .add-button,body[data-theme="gold-light"] .chat-composer button{background:linear-gradient(135deg,#e1c478,#a97a22)!important;color:#211a0c!important;box-shadow:0 9px 21px rgba(171,126,35,.24)}
body[data-theme="gold-light"] .smart-day{background:linear-gradient(115deg,#312b20,#80662f 58%,#d0ad5e 135%)}
body[data-theme="gold-light"] .week-day.today{border-color:#c39a46;box-shadow:inset 0 3px #c39a46;background:linear-gradient(180deg,#fffdf8,#fbf2dc)}
body[data-theme="gold-light"] .week-day.today .week-day-header b,body[data-theme="gold-light"] .popular i{background:#b98a2e}
body[data-theme="gold-light"] :is(.settings-grid,.service-card,.panel,.metrics article,.calendar-toolbar,.week-day,.notification-menu,.chat-panel,.modal,.archive-item,.backup-card,.empty-card){background-color:var(--panel);border-color:var(--line)}
body[data-theme="gold-light"] .login-screen{background:radial-gradient(circle at 15% 16%,rgba(214,178,91,.35),transparent 30%),radial-gradient(circle at 88% 84%,rgba(255,238,190,.8),transparent 27%),linear-gradient(145deg,#fffdf7,#efe0b8)}
body[data-theme="gold-light"] .login-shell{background:rgba(255,253,247,.82);border-color:rgba(177,132,39,.25);box-shadow:0 35px 90px rgba(91,68,21,.2)}
body[data-theme="gold-light"] .login-showcase{background:linear-gradient(145deg,rgba(44,38,26,.96),rgba(145,107,36,.92)),#2d271c}
body[data-theme="gold-light"] .login-brand b,body[data-theme="gold-light"] .login-badge{color:#f2d27e}
body[data-theme="gold-light"] .login-card{background:rgba(255,254,250,.94)!important;color:#332b1b!important}body[data-theme="gold-light"] .login-card h1,body[data-theme="gold-light"] .login-card label,body[data-theme="gold-light"] .login-card .login-input input{color:#332b1b!important}body[data-theme="gold-light"] .login-card>p:not(.login-security),body[data-theme="gold-light"] .login-security{color:#8a7a5d!important}body[data-theme="gold-light"] .login-input{background:#fff;border-color:#e8dcc0}body[data-theme="gold-light"] .login-submit{background:linear-gradient(135deg,#dec174,#a87a24)!important;color:#211a0c!important}

body[data-theme="monochrome"]{--bg:#080808;--panel:#151515;--ink:#fafafa;--muted:#a8a8a8;--line:#343434;--soft:#232323;--pink:#f5f5f5;--accent:#f5f5f5;--glass:rgba(18,18,18,.92);--shadow:0 14px 38px rgba(0,0,0,.42);--scroll-track:#111;--scroll-thumb:#5d5d5d;--scroll-hover:#f3f3f3;background:radial-gradient(circle at 82% -5%,#252525 0,transparent 31%),linear-gradient(145deg,#050505,#111)}
body[data-theme="monochrome"] .sidebar{background:linear-gradient(180deg,#181818,#080808)!important}
body[data-theme="monochrome"] .topbar{background:rgba(10,10,10,.9)!important;backdrop-filter:blur(18px)}
body[data-theme="monochrome"] .brand-mark{background:linear-gradient(145deg,#f8f8f8,#8e8e8e);color:#090909;box-shadow:0 8px 22px rgba(255,255,255,.12)}
body[data-theme="monochrome"] .brand b,body[data-theme="monochrome"] :is(.eyebrow,.text-button,.event-edit,.event-delete,.service-bottom b,.client-row a,.calendar-help b){color:#f4f4f4}
body[data-theme="monochrome"] .nav-link:hover,body[data-theme="monochrome"] .nav-link.active{background:#272727;color:#fff;box-shadow:inset 3px 0 #f4f4f4}
body[data-theme="monochrome"] .add-button,body[data-theme="monochrome"] .chat-composer button{background:linear-gradient(135deg,#fff,#bdbdbd)!important;color:#080808!important;box-shadow:0 8px 20px rgba(255,255,255,.12)}
body[data-theme="monochrome"] .smart-day{background:linear-gradient(115deg,#111,#353535 58%,#747474 135%)}
body[data-theme="monochrome"] .week-day.today{border-color:#eee;box-shadow:inset 0 3px #eee;background:linear-gradient(180deg,#171717,#242424)}body[data-theme="monochrome"] .week-day.today .week-day-header b{background:#f5f5f5;color:#080808}body[data-theme="monochrome"] .popular i{background:#ededed}
body[data-theme="monochrome"] .chat-message.own p{background:linear-gradient(145deg,#fff,#bdbdbd);color:#080808}body[data-theme="monochrome"] .chat-brand>span{background:linear-gradient(145deg,#fff,#888);color:#080808}body[data-theme="monochrome"] .chat-person>i{background:#f5f5f5;color:#080808}
body[data-theme="monochrome"] .login-screen{background:radial-gradient(circle at 16% 15%,rgba(255,255,255,.12),transparent 30%),linear-gradient(145deg,#030303,#1b1b1b 52%,#050505)}
body[data-theme="monochrome"] .login-shell{background:rgba(12,12,12,.9);border-color:#393939;box-shadow:0 35px 90px rgba(0,0,0,.55)}body[data-theme="monochrome"] .login-showcase{background:linear-gradient(145deg,rgba(245,245,245,.9),rgba(90,90,90,.86)),#d8d8d8;color:#090909}body[data-theme="monochrome"] .login-showcase p,body[data-theme="monochrome"] .login-benefits{color:#222}body[data-theme="monochrome"] .login-brand b,body[data-theme="monochrome"] .login-badge{color:#050505}body[data-theme="monochrome"] .login-submit{background:linear-gradient(135deg,#fff,#aaa)!important;color:#080808!important}
body[data-theme="monochrome"] .login-showcase::before{border-color:rgba(0,0,0,.1);background:radial-gradient(circle,rgba(0,0,0,.13),transparent 67%);box-shadow:0 0 0 34px rgba(0,0,0,.025),0 0 0 72px rgba(0,0,0,.018)}body[data-theme="monochrome"] .login-showcase::after{color:rgba(0,0,0,.14)}

body[data-theme="gold-dark"]{--bg:#090806;--panel:#17140e;--ink:#fff9e9;--muted:#b9aa88;--line:#3b321e;--soft:#292311;--pink:#d8ac4e;--accent:#d8ac4e;--glass:rgba(20,17,11,.93);--shadow:0 14px 38px rgba(0,0,0,.4);--scroll-track:#100e09;--scroll-thumb:#705b2d;--scroll-hover:#d8ac4e;background:radial-gradient(circle at 82% -5%,#2e2613 0,transparent 32%),linear-gradient(145deg,#070603,#120f08)}
body[data-theme="gold-dark"] .sidebar{background:linear-gradient(180deg,#1b170e,#080704)!important}
body[data-theme="gold-dark"] .topbar{background:rgba(12,10,6,.9)!important;backdrop-filter:blur(18px)}
body[data-theme="gold-dark"] .brand-mark{background:linear-gradient(145deg,#f0cf78,#8b6419);color:#171005;box-shadow:0 8px 24px rgba(215,170,73,.2)}
body[data-theme="gold-dark"] .brand b,body[data-theme="gold-dark"] :is(.eyebrow,.text-button,.event-edit,.event-delete,.service-bottom b,.client-row a,.calendar-help b){color:#e2b759}
body[data-theme="gold-dark"] .nav-link:hover,body[data-theme="gold-dark"] .nav-link.active{background:#2b2413;color:#f1ca70;box-shadow:inset 3px 0 #d8ac4e}
body[data-theme="gold-dark"] .add-button,body[data-theme="gold-dark"] .chat-composer button{background:linear-gradient(135deg,#e7c66f,#9d711f)!important;color:#171005!important;box-shadow:0 9px 22px rgba(211,165,62,.22)}
body[data-theme="gold-dark"] .smart-day{background:linear-gradient(115deg,#1d180d,#5d461b 58%,#bc8d32 135%)}
body[data-theme="gold-dark"] .week-day.today{border-color:#bf9138;box-shadow:inset 0 3px #d8ac4e;background:linear-gradient(180deg,#18150e,#2a2210)}body[data-theme="gold-dark"] .week-day.today .week-day-header b{background:#d8ac4e;color:#171005}body[data-theme="gold-dark"] .popular i{background:#d8ac4e}
body[data-theme="gold-dark"] .chat-message.own p{background:linear-gradient(145deg,#dfba60,#92671b);color:#171005}body[data-theme="gold-dark"] .chat-brand>span{background:linear-gradient(145deg,#e7c96f,#8f661d);color:#171005}
body[data-theme="gold-dark"] .login-screen{background:radial-gradient(circle at 16% 15%,rgba(218,172,73,.18),transparent 30%),linear-gradient(145deg,#070603,#211a0b 52%,#080704)}body[data-theme="gold-dark"] .login-shell{background:rgba(13,11,7,.9);border-color:#493a1b;box-shadow:0 35px 90px rgba(0,0,0,.58)}body[data-theme="gold-dark"] .login-showcase{background:linear-gradient(145deg,rgba(45,35,15,.94),rgba(137,99,27,.78)),#211a0b}body[data-theme="gold-dark"] .login-brand b,body[data-theme="gold-dark"] .login-badge{color:#f0ce73}body[data-theme="gold-dark"] .login-submit{background:linear-gradient(135deg,#e6c56c,#956a1d)!important;color:#171005!important}

body[data-theme="monochrome"] :is(.calendar,.calendar-toolbar,.outline,.next-actions a,.next-actions button,.settings-grid,.settings-grid input,.settings-grid select,.modal,.modal input,.modal select,.modal textarea,.export-row button,.service-card,.archive-item,.admin-form input,.admin-form select,.directory-actions select,.notification-menu,.login-card,.login-card input,.clock-card,.empty-card,.backup-card,.view-switch,.directory-row),body[data-theme="gold-dark"] :is(.calendar,.calendar-toolbar,.outline,.next-actions a,.next-actions button,.settings-grid,.settings-grid input,.settings-grid select,.modal,.modal input,.modal select,.modal textarea,.export-row button,.service-card,.archive-item,.admin-form input,.admin-form select,.directory-actions select,.notification-menu,.login-card,.login-card input,.clock-card,.empty-card,.backup-card,.view-switch,.directory-row){background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme="monochrome"] .weekly-event{background:#242424}body[data-theme="monochrome"] .weekly-event.purple{background:#292929}body[data-theme="monochrome"] .weekly-event.yellow{background:#303030}
body[data-theme="gold-dark"] .weekly-event{background:#29210f}body[data-theme="gold-dark"] .weekly-event.purple{background:#2e2615}body[data-theme="gold-dark"] .weekly-event.yellow{background:#352a12}

body[data-theme="champagne-rose"]{--bg:#fbf4f2;--panel:#fffaf8;--ink:#3e2930;--muted:#90747b;--line:#ead7d3;--soft:#f6e6e2;--pink:#b96f7b;--accent:#b96f7b;--glass:rgba(255,250,248,.86);--shadow:0 14px 36px rgba(105,65,75,.1);--scroll-track:#f4e7e4;--scroll-thumb:#c78d95;--scroll-hover:#a65e6b;background:radial-gradient(circle at 86% 0,rgba(227,176,173,.35),transparent 31%),radial-gradient(circle at 8% 92%,rgba(247,220,199,.72),transparent 28%),linear-gradient(145deg,#fffaf8,#f3e3df)}
body[data-theme="champagne-rose"] .sidebar{background:linear-gradient(180deg,#fffaf9,#f3e3df)!important;border-color:#e8d4d0}body[data-theme="champagne-rose"] .topbar{background:rgba(255,249,247,.89)!important;border-color:#e8d4d0;backdrop-filter:blur(18px)}
body[data-theme="champagne-rose"] .brand-mark{background:linear-gradient(145deg,#51353d,#c7838b);box-shadow:0 8px 20px rgba(135,80,91,.2)}body[data-theme="champagne-rose"] .brand b,body[data-theme="champagne-rose"] :is(.eyebrow,.text-button,.event-edit,.event-delete,.service-bottom b,.client-row a,.calendar-help b){color:#a95f6d}
body[data-theme="champagne-rose"] .nav-link:hover,body[data-theme="champagne-rose"] .nav-link.active{background:linear-gradient(90deg,#f5dfdc,#fff5f1);color:#9c5562;box-shadow:inset 3px 0 #bd7480}
body[data-theme="champagne-rose"] .add-button,body[data-theme="champagne-rose"] .chat-composer button{background:linear-gradient(135deg,#dfa6a8,#a75e6c)!important;color:#fff!important;box-shadow:0 9px 21px rgba(172,93,107,.22)}body[data-theme="champagne-rose"] .smart-day{background:linear-gradient(115deg,#50363d,#8f5964 58%,#d99da0 135%)}
body[data-theme="champagne-rose"] .week-day.today{border-color:#c67f89;box-shadow:inset 0 3px #bd7480;background:linear-gradient(180deg,#fffaf8,#f8e9e5)}body[data-theme="champagne-rose"] .week-day.today .week-day-header b,body[data-theme="champagne-rose"] .popular i{background:#b96f7b}
body[data-theme="champagne-rose"] :is(.settings-grid,.service-card,.panel,.metrics article,.calendar-toolbar,.week-day,.notification-menu,.chat-panel,.modal,.archive-item,.backup-card,.empty-card){background-color:var(--panel);border-color:var(--line)}
body[data-theme="champagne-rose"] .login-screen{background:radial-gradient(circle at 15% 16%,rgba(218,156,160,.32),transparent 30%),radial-gradient(circle at 88% 84%,rgba(250,220,199,.75),transparent 28%),linear-gradient(145deg,#fff9f7,#eedbd7)}body[data-theme="champagne-rose"] .login-shell{background:rgba(255,250,248,.84);border-color:rgba(172,99,112,.22);box-shadow:0 35px 90px rgba(103,61,71,.19)}body[data-theme="champagne-rose"] .login-showcase{background:linear-gradient(145deg,rgba(88,54,63,.94),rgba(181,104,118,.88)),#5a3740}body[data-theme="champagne-rose"] .login-brand b,body[data-theme="champagne-rose"] .login-badge{color:#ffd7d2}body[data-theme="champagne-rose"] .login-card{background:rgba(255,252,250,.95)!important;color:#3e2930!important}body[data-theme="champagne-rose"] .login-card h1,body[data-theme="champagne-rose"] .login-card label,body[data-theme="champagne-rose"] .login-card .login-input input{color:#3e2930!important}body[data-theme="champagne-rose"] .login-input{background:#fff;border-color:#ead7d3}body[data-theme="champagne-rose"] .login-submit{background:linear-gradient(135deg,#dda3a6,#a75d6b)!important}

body[data-theme="aurora"]{--bg:#061412;--panel:#0e2420;--ink:#effbf6;--muted:#9dbab1;--line:#28473f;--soft:#133a32;--pink:#d28a5d;--accent:#d28a5d;--glass:rgba(9,29,25,.92);--shadow:0 14px 38px rgba(0,0,0,.4);--scroll-track:#091c18;--scroll-thumb:#356c5e;--scroll-hover:#d28a5d;background:radial-gradient(circle at 80% -6%,rgba(33,111,91,.52),transparent 32%),radial-gradient(circle at 12% 94%,rgba(180,99,55,.18),transparent 27%),linear-gradient(145deg,#04100e,#0a201b)}
body[data-theme="aurora"] .sidebar{background:linear-gradient(180deg,#102b25,#05110f)!important}body[data-theme="aurora"] .topbar{background:rgba(6,20,17,.9)!important;backdrop-filter:blur(18px)}
body[data-theme="aurora"] .brand-mark{background:linear-gradient(145deg,#2a7867,#cf865b);color:#fff8ed;box-shadow:0 8px 24px rgba(81,151,130,.2)}body[data-theme="aurora"] .brand b,body[data-theme="aurora"] :is(.eyebrow,.text-button,.event-edit,.event-delete,.service-bottom b,.client-row a,.calendar-help b){color:#e09a6c}
body[data-theme="aurora"] .nav-link:hover,body[data-theme="aurora"] .nav-link.active{background:linear-gradient(90deg,#17483d,#18352f);color:#f0ae83;box-shadow:inset 3px 0 #d28a5d}
body[data-theme="aurora"] .add-button,body[data-theme="aurora"] .chat-composer button{background:linear-gradient(135deg,#e3a477,#ad613b)!important;color:#1b0e08!important;box-shadow:0 9px 22px rgba(199,112,67,.22)}body[data-theme="aurora"] .smart-day{background:linear-gradient(115deg,#0c2923,#17604f 55%,#c77d52 138%)}
body[data-theme="aurora"] :is(.nav-link em,.notification b,.switch input:checked+i){background:#d28a5d;color:#1b0e08}body[data-theme="aurora"] .upcoming-appointment{background:var(--soft);border-color:var(--line);color:#e4a176}body[data-theme="aurora"] .sidebar-foot .avatar{background:linear-gradient(145deg,#318775,#d28a5d)}body[data-theme="aurora"] .automation-icon{background:rgba(210,138,93,.16);color:#e49b6d}body[data-theme="aurora"] .automation-card span{color:#d99467}
body[data-theme="aurora"] .week-day.today{border-color:#d28a5d;box-shadow:inset 0 3px #d28a5d;background:linear-gradient(180deg,#102620,#17382f)}body[data-theme="aurora"] .week-day.today .week-day-header b{background:#d28a5d;color:#1b0e08}body[data-theme="aurora"] .popular i{background:linear-gradient(90deg,#2f8a75,#d28a5d)}
body[data-theme="aurora"] .chat-message.own p{background:linear-gradient(145deg,#d99669,#9f5937);color:#180d08}body[data-theme="aurora"] .chat-brand>span{background:linear-gradient(145deg,#318775,#d18a5d)}body[data-theme="aurora"] .weekly-event{background:#12352d}body[data-theme="aurora"] .weekly-event.purple{background:#163d35}body[data-theme="aurora"] .weekly-event.yellow{background:#3b2b1f}
body[data-theme="aurora"] :is(.calendar,.calendar-toolbar,.outline,.next-actions a,.next-actions button,.settings-grid,.settings-grid input,.settings-grid select,.modal,.modal input,.modal select,.modal textarea,.export-row button,.service-card,.archive-item,.admin-form input,.admin-form select,.directory-actions select,.notification-menu,.login-card,.login-card input,.clock-card,.empty-card,.backup-card,.view-switch,.directory-row){background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme="aurora"] .login-screen{background:radial-gradient(circle at 15% 15%,rgba(41,136,113,.25),transparent 30%),radial-gradient(circle at 86% 84%,rgba(205,126,77,.18),transparent 28%),linear-gradient(145deg,#030d0b,#0d3028 52%,#07110f)}body[data-theme="aurora"] .login-shell{background:rgba(6,23,19,.9);border-color:#295248;box-shadow:0 35px 90px rgba(0,0,0,.56)}body[data-theme="aurora"] .login-showcase{background:linear-gradient(145deg,rgba(15,78,65,.92),rgba(168,92,53,.68)),#12352d}body[data-theme="aurora"] .login-brand b,body[data-theme="aurora"] .login-badge{color:#ffc29b}body[data-theme="aurora"] .login-submit{background:linear-gradient(135deg,#e0a173,#a95f3a)!important;color:#1a0e08!important}

/* Theme detail pass: small states and secondary surfaces should never fall back to a foreign palette. */
body[data-theme]{
  --theme-accent-ink:#fff;
  --theme-accent-soft:color-mix(in srgb,var(--accent,var(--pink)) 14%,var(--panel));
  --theme-accent-faint:color-mix(in srgb,var(--accent,var(--pink)) 7%,var(--panel));
  --theme-success:#4b9f79;
  --theme-success-soft:color-mix(in srgb,var(--theme-success) 14%,var(--panel));
  --theme-warning:#bd8a31;
  --theme-warning-soft:color-mix(in srgb,var(--theme-warning) 16%,var(--panel));
  --theme-danger:#c45664;
  --theme-danger-soft:color-mix(in srgb,var(--theme-danger) 13%,var(--panel));
  --theme-overlay:color-mix(in srgb,var(--bg) 48%,rgba(8,5,7,.58));
  accent-color:var(--accent,var(--pink));
  caret-color:var(--accent,var(--pink));
}
body[data-theme="light"],body[data-theme="gold-light"],body[data-theme="champagne-rose"]{color-scheme:light}
body[data-theme="dark"],body[data-theme="blush"],body[data-theme="lavender"],body[data-theme="monochrome"],body[data-theme="gold-dark"],body[data-theme="aurora"]{color-scheme:dark;--theme-success:#72c69d;--theme-warning:#e2b55e;--theme-danger:#e47b86}
body[data-theme="gold-light"],body[data-theme="monochrome"],body[data-theme="gold-dark"],body[data-theme="aurora"]{--theme-accent-ink:#17120a}
body[data-theme="monochrome"]{--theme-success:#d7d7d7;--theme-warning:#bdbdbd;--theme-danger:#efefef}

body[data-theme] ::selection{background:var(--accent,var(--pink));color:var(--theme-accent-ink)}
body[data-theme] :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--accent,var(--pink));outline-offset:3px}
body[data-theme] :is(button,input,select,textarea):disabled{cursor:not-allowed!important;filter:saturate(.45);opacity:.52}
body[data-theme] :is(input,select,textarea){caret-color:var(--accent,var(--pink))}
body[data-theme] :is(input,textarea)::placeholder{color:color-mix(in srgb,var(--muted) 82%,transparent);opacity:1}
body[data-theme] option{background:var(--panel);color:var(--ink)}

body[data-theme] :is(.clock-card,.calendar,.calendar-toolbar,.settings-grid,.view-switch,.empty-card,.backup-card,.archive-item,.directory-row,.year-calendar,.year-calendar article,.service-card,.employee-card,.automation-card,.modal,.notification-menu,.chat-panel){
  color:var(--ink);border-color:var(--line)
}
body[data-theme] :is(.clock-card,.calendar,.calendar-toolbar,.settings-grid,.view-switch,.empty-card,.backup-card,.archive-item,.directory-row,.year-calendar,.year-calendar article,.service-card,.employee-card,.automation-card,.modal,.notification-menu){background-color:var(--panel)}
body[data-theme] :is(.settings-grid input,.settings-grid select,.modal input,.modal select,.modal textarea,.admin-form input,.admin-form select,.directory-actions select,.table-tools input,.chat-salon-switch select){background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme] :is(.settings-grid input,.settings-grid select,.modal input,.modal select,.modal textarea,.admin-form input,.admin-form select,.directory-actions select,.table-tools input):focus{border-color:var(--accent,var(--pink))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,var(--pink)) 13%,transparent)}
body[data-theme] :is(.appointment,.notice,.client-row,.service-bottom,.next-actions,.payment-row,.table-tools){border-color:var(--line)}
body[data-theme] .calendar-grid{background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,var(--line) 60px)}
body[data-theme] .month-calendar{background:var(--line);border-color:var(--line)}
body[data-theme] .month-calendar>:is(b,i),body[data-theme] .month-calendar .week-day{background:var(--panel);color:var(--ink);border-color:var(--line)}

body[data-theme] :is(.outline,.next-actions a,.next-actions button,.export-row button,.event-actions button,.notification-read,.chat-close){background:var(--panel)!important;color:var(--accent,var(--pink))!important;border-color:var(--line)!important}
body[data-theme] :is(.outline,.next-actions a,.next-actions button,.export-row button,.event-actions button,.notification-read,.chat-close):hover{background:var(--theme-accent-soft)!important;border-color:color-mix(in srgb,var(--accent,var(--pink)) 48%,var(--line))!important}
body[data-theme] :is(.view-switch button.active,.notification-item:hover,.notification-item.system-notification.unread,.notification-menu>header>button,.chat-salon-switch){background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
body[data-theme] .icon-button:hover,body[data-theme] .icon-button[aria-expanded="true"]{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
body[data-theme] :is(.nav-link em,.notification b,.chat-toggle b,.switch input:checked+i){background:var(--accent,var(--pink));color:var(--theme-accent-ink)}
body[data-theme] :is(.upcoming-appointment,.automation-icon,.empty-state-icon){background:var(--theme-accent-soft);border-color:var(--line);color:var(--accent,var(--pink))}

body[data-theme] .metric-icon.pink{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
body[data-theme] .metric-icon.purple{background:color-mix(in srgb,#8b72cf 16%,var(--panel));color:color-mix(in srgb,#a78ce8 82%,var(--ink))}
body[data-theme] .metric-icon.yellow{background:var(--theme-warning-soft);color:var(--theme-warning)}
body[data-theme] .metric-icon.blue{background:color-mix(in srgb,#54aeca 16%,var(--panel));color:color-mix(in srgb,#65bed6 82%,var(--ink))}
body[data-theme] :is(.positive,.backup-good){color:var(--theme-success)}
body[data-theme] .backup-good{background:var(--theme-success-soft)}
body[data-theme] :is(.negative,.danger-text,.chat-message-action:hover){color:var(--theme-danger)}
body[data-theme] .tag.vip{background:var(--theme-warning-soft);color:var(--theme-warning)}
body[data-theme] .notification-item>i{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
body[data-theme] .notification-item>i.break{background:var(--theme-warning-soft);color:var(--theme-warning)}
body[data-theme] .notification-main>i,body[data-theme] .notification-item>i.system{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
body[data-theme] .chat-empty.error>span{background:var(--theme-danger-soft);color:var(--theme-danger)}

body[data-theme] .weekly-event{background:color-mix(in srgb,var(--service-color,var(--accent,var(--pink))) 14%,var(--panel))!important;color:var(--ink)}
body[data-theme] .weekly-event.purple{background:color-mix(in srgb,#8976c4 16%,var(--panel))!important}
body[data-theme] .weekly-event.yellow{background:color-mix(in srgb,var(--theme-warning) 16%,var(--panel))!important}
body[data-theme] .weekly-event :is(strong,.event-service,.event-service>span){color:var(--ink)}
body[data-theme] .weekly-event .event-services{background:color-mix(in srgb,var(--service-color,var(--accent,var(--pink))) 10%,transparent)}
body[data-theme] .week-day.drop-hover{background:var(--theme-accent-soft);box-shadow:inset 0 0 0 2px var(--accent,var(--pink))}

body[data-theme] .modal-backdrop{background:var(--theme-overlay)}
body[data-theme] .toast{border:1px solid color-mix(in srgb,var(--accent,var(--pink)) 32%,var(--line));border-left:4px solid var(--accent,var(--pink));background:color-mix(in srgb,var(--panel) 92%,var(--accent,var(--pink)) 8%);color:var(--ink);box-shadow:0 18px 50px color-mix(in srgb,var(--bg) 62%,rgba(0,0,0,.44))}
body[data-theme] .login-card-mark{border-color:color-mix(in srgb,var(--accent,var(--pink)) 34%,transparent);background:linear-gradient(145deg,var(--accent,var(--pink)),color-mix(in srgb,var(--accent,var(--pink)) 62%,var(--deep,#33252e)));color:var(--theme-accent-ink);box-shadow:0 9px 25px color-mix(in srgb,var(--accent,var(--pink)) 28%,transparent)}
body[data-theme] .login-input{background:var(--soft);border-color:var(--line)}
body[data-theme] .login-input i{color:var(--muted)}
body[data-theme] .login-card .login-input input{background:transparent!important;color:var(--ink)!important}
body[data-theme] .login-card input::placeholder{color:color-mix(in srgb,var(--muted) 82%,transparent)}
body[data-theme] .login-input:focus-within{border-color:var(--accent,var(--pink));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,var(--pink)) 14%,transparent)}
body[data-theme] .login-card .login-input input:focus,
body[data-theme] .login-card .login-input input:focus-visible{outline:none!important;outline-offset:0!important;box-shadow:none!important}
body[data-theme] .login-security{border-color:var(--line)}
body[data-theme] :is(.service-chip,.client-edit-button){background:var(--theme-accent-soft);color:var(--accent,var(--pink));border-color:color-mix(in srgb,var(--accent,var(--pink)) 25%,var(--line))}
body[data-theme] :is(.card-delete,.table-delete){background:var(--theme-danger-soft);color:var(--theme-danger)}
body[data-theme] :is(.card-delete,.table-delete):hover{background:color-mix(in srgb,var(--theme-danger) 22%,var(--panel))}
body[data-theme] .danger{background:var(--theme-danger)!important;color:#fff!important}
body[data-theme] .delete-question{background:var(--theme-danger-soft);border-color:color-mix(in srgb,var(--theme-danger) 35%,var(--line));color:var(--ink)}
body[data-theme] .delete-question b{color:var(--theme-danger)}
body[data-theme] .employee-status{color:var(--theme-success)}
body[data-theme] .employee-status i{background:var(--theme-success)}
body[data-theme] .chart i{background:color-mix(in srgb,var(--accent,var(--pink)) 25%,var(--panel))}
body[data-theme] .chart i.current{background:var(--accent,var(--pink))}
body[data-theme] .payment-row .cash{background:var(--accent,var(--pink))}
body[data-theme] .payment-row .card{background:color-mix(in srgb,var(--accent,var(--pink)) 48%,var(--panel))}

/* Calendar surfaces: override legacy light/dark mauve backgrounds with the active palette. */
body[data-theme] :is(.calendar-host,.week-calendar){background:color-mix(in srgb,var(--soft) 62%,var(--panel));border-color:var(--line);color:var(--ink)}
body[data-theme] .week-day{background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-theme] .week-day.today{background:linear-gradient(180deg,var(--panel),var(--theme-accent-soft));border-color:var(--accent,var(--pink));box-shadow:inset 0 3px var(--accent,var(--pink))}
body[data-theme] .week-day.today .week-day-header b{background:var(--accent,var(--pink));color:var(--theme-accent-ink)}
body[data-theme] .week-day-header{border-color:var(--line)}
body[data-theme] .week-day-header span{color:var(--muted)}
body[data-theme] .free-slot{background:var(--theme-accent-faint);border-color:color-mix(in srgb,var(--accent,var(--pink)) 30%,var(--line));color:var(--muted)}
body[data-theme] .calendar-help{color:var(--muted)}
body[data-theme] .calendar-help b,body[data-theme] .weekly-event time{color:var(--accent,var(--pink))}
body[data-theme] .calendar-toolbar>button{color:var(--muted)}
body[data-theme] .calendar-toolbar>button:hover{color:var(--accent,var(--pink))}
body[data-theme] .view-switch button{color:var(--muted)}
body[data-theme] .view-switch button.active{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}

/* Dashboard typography and decorative accents follow the selected theme as well. */
body[data-theme] :is(.eyebrow,.page-heading h1 span,.clock-card>span,.text-button){color:var(--accent,var(--pink))}
body[data-theme] #dashboard .metrics article::before{background:linear-gradient(90deg,var(--theme-accent-soft),var(--accent,var(--pink)))}
body[data-theme] #dashboard .metric-icon{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
body[data-theme] #dashboard :is(.metrics p,.metrics h2 small,.metrics article>span,.panel-title span,.appointment span,.chart-labels,.next-client p,.next-client span,.notice span,.empty-inline){color:var(--muted)}
body[data-theme] #dashboard :is(.appointment .price,.revenue-panel h2 small){color:var(--ink)}
body[data-theme] #dashboard .notice>b{color:var(--accent,var(--pink))}
body[data-theme] #dashboard .notice.system-notification>b{color:var(--accent,var(--pink))}
body[data-theme] #dashboard .smart-day :is(p,span){color:rgba(255,255,255,.76)}
body[data-theme] #dashboard .smart-day :is(strong,span b,button){color:#fff}
body[data-theme] #dashboard .dots{color:var(--muted)}

@media(max-width:760px){
  body[data-theme] .sidebar.open{box-shadow:24px 0 70px color-mix(in srgb,var(--bg) 58%,rgba(0,0,0,.45))}
  body[data-theme] .mobile-menu{color:var(--ink);border-radius:9px}
  body[data-theme] .mobile-menu:hover{background:var(--theme-accent-soft);color:var(--accent,var(--pink))}
}

/* Inverse monochrome — porcelain white, ink black and disciplined graphite detail. */
body[data-theme="inverse-monochrome"]{
  --bg:#f4f4f2;
  --panel:#fff;
  --ink:#0b0b0b;
  --muted:#696967;
  --line:#d9d9d5;
  --soft:#ececea;
  --pink:#111;
  --accent:#111;
  --deep:#050505;
  --glass:rgba(255,255,255,.88);
  --shadow:0 15px 38px rgba(0,0,0,.08);
  --scroll-track:#ededeb;
  --scroll-thumb:#949491;
  --scroll-hover:#111;
  --theme-success:#333;
  --theme-warning:#555;
  --theme-danger:#111;
  color-scheme:light;
  background:radial-gradient(circle at 84% -6%,rgba(0,0,0,.075),transparent 31%),radial-gradient(circle at 8% 94%,rgba(0,0,0,.035),transparent 28%),linear-gradient(145deg,#fff,#f0f0ed)
}
body[data-theme="inverse-monochrome"] .sidebar{background:linear-gradient(180deg,#fff,#ededeb)!important;border-color:#d5d5d1}
body[data-theme="inverse-monochrome"] .topbar{background:rgba(255,255,255,.9)!important;border-color:#d8d8d4;backdrop-filter:blur(18px)}
body[data-theme="inverse-monochrome"] .brand-mark{background:linear-gradient(145deg,#050505,#3c3c3c);color:#fff;box-shadow:0 9px 22px rgba(0,0,0,.2)}
body[data-theme="inverse-monochrome"] .brand b,body[data-theme="inverse-monochrome"] :is(.eyebrow,.text-button,.event-edit,.event-delete,.service-bottom b,.client-row a,.calendar-help b){color:#0b0b0b}
body[data-theme="inverse-monochrome"] .nav-link{color:#4f4f4d}
body[data-theme="inverse-monochrome"] .nav-link:hover{background:#e8e8e5;color:#080808}
body[data-theme="inverse-monochrome"] .nav-link.active{background:linear-gradient(90deg,#080808,#303030);color:#fff;box-shadow:inset 3px 0 #777,0 8px 20px rgba(0,0,0,.1)}
body[data-theme="inverse-monochrome"] :is(.nav-link em,.notification b,.chat-toggle b,.switch input:checked+i){background:#111;color:#fff}
body[data-theme="inverse-monochrome"] .sidebar-foot .avatar{background:linear-gradient(145deg,#050505,#555)}
body[data-theme="inverse-monochrome"] .add-button,body[data-theme="inverse-monochrome"] .chat-composer button{background:linear-gradient(135deg,#050505,#3b3b3b)!important;color:#fff!important;box-shadow:0 9px 22px rgba(0,0,0,.2)}
body[data-theme="inverse-monochrome"] .add-button:hover,body[data-theme="inverse-monochrome"] .chat-composer button:hover{background:linear-gradient(135deg,#262626,#000)!important}
body[data-theme="inverse-monochrome"] .smart-day{background:linear-gradient(115deg,#050505,#292929 58%,#747474 138%);box-shadow:0 17px 36px rgba(0,0,0,.18)}
body[data-theme="inverse-monochrome"] :is(.upcoming-appointment,.automation-icon,.empty-state-icon,.modal-symbol){background:#ededeb;border-color:#d5d5d1;color:#111}
body[data-theme="inverse-monochrome"] .automation-icon{filter:grayscale(1)}
body[data-theme="inverse-monochrome"] .automation-card span{color:#222}
body[data-theme="inverse-monochrome"] .popular i{background:linear-gradient(90deg,#111,#777)}
body[data-theme="inverse-monochrome"] #dashboard .metric-icon{background:#e8e8e5;color:#111}
body[data-theme="inverse-monochrome"] #dashboard .appointment .line{background:linear-gradient(#050505,#555)!important}
body[data-theme="inverse-monochrome"] .stylist-color-dot{background:#555!important}
body[data-theme="inverse-monochrome"] .service-card{border-top-color:#111!important}
body[data-theme="inverse-monochrome"] :is(.employee-avatar,.client-avatar){background:linear-gradient(145deg,#111,#666)!important}
body[data-theme="inverse-monochrome"] .weekly-event{border-left-color:#111!important;background:#f0f0ed!important}
body[data-theme="inverse-monochrome"] .weekly-event.purple{background:#e9e9e6!important}
body[data-theme="inverse-monochrome"] .weekly-event.yellow{background:#e2e2df!important}
body[data-theme="inverse-monochrome"] .weekly-event .event-service>i{background:#555!important}
body[data-theme="inverse-monochrome"] .chat-message.own p{background:linear-gradient(145deg,#050505,#414141);color:#fff}
body[data-theme="inverse-monochrome"] .chat-brand>span{background:linear-gradient(145deg,#050505,#666);color:#fff}
body[data-theme="inverse-monochrome"] :is(.chat-person>span,.chat-message-avatar){background:linear-gradient(145deg,#111,#666)!important;color:#fff}
body[data-theme="inverse-monochrome"] .chat-person>i{background:#111;color:#fff}
body[data-theme="inverse-monochrome"] .login-screen{background:radial-gradient(circle at 14% 15%,rgba(0,0,0,.08),transparent 30%),radial-gradient(circle at 88% 86%,rgba(0,0,0,.045),transparent 28%),linear-gradient(145deg,#fff,#e9e9e6)}
body[data-theme="inverse-monochrome"] .login-shell{background:rgba(255,255,255,.88);border-color:#d0d0cc;box-shadow:0 38px 95px rgba(0,0,0,.17)}
body[data-theme="inverse-monochrome"] .login-showcase{background:linear-gradient(145deg,rgba(0,0,0,.98),rgba(54,54,54,.93)),#090909;color:#fff}
body[data-theme="inverse-monochrome"] .login-brand b,body[data-theme="inverse-monochrome"] .login-badge{color:#fff}
body[data-theme="inverse-monochrome"] .login-showcase :is(p,.login-benefits){color:#d7d7d7}
body[data-theme="inverse-monochrome"] .login-card{background:rgba(255,255,255,.96)!important;color:#0b0b0b!important;border-color:#d8d8d5!important}
body[data-theme="inverse-monochrome"] .login-card :is(h1,label){color:#0b0b0b!important}
body[data-theme="inverse-monochrome"] .login-card>p:not(.login-security),body[data-theme="inverse-monochrome"] .login-security{color:#696967!important}
body[data-theme="inverse-monochrome"] .login-submit{background:linear-gradient(135deg,#050505,#383838)!important;color:#fff!important;box-shadow:0 12px 27px rgba(0,0,0,.2)}
body[data-theme="inverse-monochrome"] .login-card-mark{background:linear-gradient(145deg,#050505,#555);color:#fff}

/* Theme-matched login glow: restrained, layered and native to every palette. */
body[data-theme] .login-showcase{--login-orb-core:rgba(207,99,142,.24);--login-orb-mid:rgba(207,99,142,.1);--login-orb-line:rgba(255,214,230,.18);--login-orb-ring:rgba(255,255,255,.035);--login-orb-ring-soft:rgba(255,255,255,.018);--login-orb-shadow:rgba(207,99,142,.18)}
body[data-theme="light"] .login-showcase{--login-orb-core:rgba(255,171,202,.3);--login-orb-mid:rgba(210,92,137,.12);--login-orb-line:rgba(255,221,234,.22);--login-orb-shadow:rgba(211,88,134,.22)}
body[data-theme="dark"] .login-showcase{--login-orb-core:rgba(224,104,148,.27);--login-orb-mid:rgba(149,55,89,.13);--login-orb-line:rgba(255,184,210,.18);--login-orb-shadow:rgba(196,73,117,.2)}
body[data-theme="blush"] .login-showcase{--login-orb-core:rgba(190,126,247,.3);--login-orb-mid:rgba(135,80,191,.13);--login-orb-line:rgba(224,192,255,.2);--login-orb-shadow:rgba(166,101,222,.22)}
body[data-theme="lavender"] .login-showcase{--login-orb-core:rgba(100,204,247,.3);--login-orb-mid:rgba(52,139,181,.13);--login-orb-line:rgba(185,232,255,.2);--login-orb-shadow:rgba(66,161,204,.22)}
body[data-theme="gold-light"] .login-showcase{--login-orb-core:rgba(244,207,113,.31);--login-orb-mid:rgba(183,137,45,.13);--login-orb-line:rgba(255,233,171,.21);--login-orb-shadow:rgba(200,151,53,.23)}
body[data-theme="monochrome"] .login-showcase{--login-orb-core:rgba(18,18,18,.2);--login-orb-mid:rgba(0,0,0,.08);--login-orb-line:rgba(18,18,18,.14);--login-orb-ring:rgba(0,0,0,.03);--login-orb-ring-soft:rgba(0,0,0,.015);--login-orb-shadow:rgba(0,0,0,.15)}
body[data-theme="inverse-monochrome"] .login-showcase{--login-orb-core:rgba(255,255,255,.17);--login-orb-mid:rgba(215,215,215,.075);--login-orb-line:rgba(255,255,255,.14);--login-orb-shadow:rgba(255,255,255,.12)}
body[data-theme="gold-dark"] .login-showcase{--login-orb-core:rgba(239,197,91,.31);--login-orb-mid:rgba(165,115,25,.13);--login-orb-line:rgba(255,225,145,.21);--login-orb-shadow:rgba(205,155,48,.23)}
body[data-theme="champagne-rose"] .login-showcase{--login-orb-core:rgba(255,190,190,.28);--login-orb-mid:rgba(196,116,128,.12);--login-orb-line:rgba(255,223,213,.2);--login-orb-shadow:rgba(190,108,120,.2)}
body[data-theme="aurora"] .login-showcase{--login-orb-core:rgba(234,151,99,.3);--login-orb-mid:rgba(43,142,117,.12);--login-orb-line:rgba(255,196,156,.2);--login-orb-shadow:rgba(203,119,72,.22)}
body[data-theme] .login-showcase::before{width:350px;height:350px;right:-125px;bottom:-145px;border:1px solid var(--login-orb-line);background:radial-gradient(circle at 38% 36%,var(--login-orb-core),var(--login-orb-mid) 34%,transparent 67%);box-shadow:0 0 0 32px var(--login-orb-ring),0 0 0 66px var(--login-orb-ring-soft),0 20px 90px var(--login-orb-shadow);opacity:.88}
