/* Shared, persistent panel appearance. Marketing pages keep their own theme. */
html[data-booking-theme=dark]{color-scheme:dark;background:#111c1f}
html[data-booking-theme=dark] body{background:#111c1f}
.ws-root .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:40px;padding:9px 12px!important;border:1px solid #d2dbd1!important;border-radius:10px;background:#f5f5ef!important;color:#40654f!important;font-size:12px!important;cursor:pointer;white-space:nowrap}.theme-toggle>span[aria-hidden]{font-size:19px;line-height:1}.theme-toggle:focus-visible{outline:3px solid #9bb17e;outline-offset:3px}
#command-results{max-height:52dvh;overflow-y:auto;overscroll-behavior:contain;padding:3px}.command-result{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;padding:14px;border:1px solid transparent;border-radius:10px;text-align:left;color:#243a31;background:transparent}.command-result span{overflow-wrap:anywhere}.command-result small{font-size:11px;color:#5b6e65;text-align:right;max-width:55%}.command-result[aria-selected=true],.command-result:hover{background:#ecefe7;border-color:#9bb17e}#command-count{font-size:12px;line-height:1.7;color:#5b6e65}#command-query{font-size:16px}
html[data-theme=dark]{color-scheme:dark;--ink:#e6ebe2;--green:#e6ebe2;--muted:#99a89f;--brand-accent:#446650;--paper:#0d1719;--border:#233331;--line:#233331;--brand-tint:#1d2c2d;--pink:#3e2937;--mint:#a9e5cc;--lime:#a9e5cc}
html[data-theme=dark] body,html[data-theme=dark] .ws-root{background:#0d1719;color:#e6ebe2}
html[data-theme=dark] :is(h1,h2,h3,h4,label,legend,.logo,.brand,.heading h1,.ws-root h1,.ws-root h2,.ws-root h3){color:#e6ebe2}
html[data-theme=dark] :is(.card,.metric,.surface,.stat,.ws-card,.ws-help,.admin-dialog,#sheet,.gate section,.team-compact,.quick-actions,.studio-card,.next-ticket,.service-pick,.booking-card,.customer-nav,.customer-header,.bottom-nav,.customer-mobile-nav,.ws-header,.ws-footer,.modal-actions){background:#152124;color:#dfe5db;border-color:#233331;box-shadow:none}
html[data-theme=dark] :is(.topbar,.admin-topbar){background:#111c1fed;border-color:#233331}
html[data-theme=dark] :is(input,select,textarea,.ws-card input,.ws-card select,.ws-card textarea,.ws-title input,.search-field){background:#0d1719;color:#e6ebe2;border-color:#32443f}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#99a89f;opacity:1}
html[data-theme=dark] :is(input,select,textarea):focus{outline-color:#9bb17e;border-color:#9bb17e}
html[data-theme=dark] :is(.ghost,.secondary:not(.ws-calendar-appointment,.ws-agenda-appointment),.heading-actions .icon-button,.command-button,.theme-toggle){background:#192729!important;color:#c4d99b!important;border-color:#304d40!important}
html[data-theme=dark] :is(.text-btn,.text-button,.back-button,.ws-inline){color:#afc48d}
html[data-theme=dark] :is(.ws-root p,.ws-root small,.ws-card label>span,.field-help,.demo-note,.account-name,.breadcrumb,.breadcrumb b,.stat>div,.stat small,.activity p,.activity time,td,td small,.info-list dt,.info-list dd,.member-row small,.member-row span,.list-tools>span,.pagination>span,.empty-state p,.gate p,.gate small,.section-head p,.section-kicker,.eyebrow,.ws-root .eyebrow,.heading p,.person small,.metric p,.metric small,.service-card p,.setting p,.summary p,.customer-main p,#command-count){color:#afbcb2}
html[data-theme=dark] :is(.stat strong,.activity b,td b,.member-row b,.empty-state h3,.ws-businesses>.ws-card,.ws-check span,.metric strong,.service-card strong){color:#e6ebe2!important}
html[data-theme=dark] :is(th,.summary,.tabs,.ws-days label,.ws-card .ws-check,.ws-booking-total,.ws-steps button>span,.ws-scope,.info-banner,.ws-progress,.setup-strip,.quick-start,.action-inbox,.service-icon,.avatar,.initial,.ws-symbol,.ws-person>span,.ws-add,.admin-dialog pre){background:#192729;color:#c4d99b;border-color:#2b4438}
html[data-theme=dark] :is(.quick-start h2,.quick-start p,.quick-start .honest-note,.ws-progress b,.ws-progress small,.action-inbox h2,.setup-strip small,.setup-strip b){color:#c4d99b}
html[data-theme=dark] .ws-coach{background:linear-gradient(140deg,#1d2c2d,#1b3430);color:#dfe5db}
html[data-theme=dark] .ws-coach>span{background:#243a31;color:#afc48d}
html[data-theme=dark] :is(.ws-steps button,.ws-steps button[aria-current]){background:#152124;color:#c4d99b;border-color:#40654f}
html[data-theme=dark] :is(.notice,.tag.done,.badge.active,.ws-appointment .completed){background:#173c30;color:#a7e4c9}
html[data-theme=dark] :is(.error,.error-banner,.danger,.tag.cancel,.badge.suspended,.badge.revoked,.ws-appointment .cancelled){background:#462432;color:#ffb9cd}
html[data-theme=dark] :is(.ws-tip,.tag.wait,.availability-note){background:#3b3020;color:#f3d49e}
html[data-theme=dark] :is(.badge,.tag,.demo-badge,.role-pill){border-color:#304d40}
html[data-theme=dark] :is(td,th,.activity,.setting,.card-head,.section-head,.ws-saved>div,.ws-person,.ws-appointment,.info-list>div,.member-row,.cal-head,.cal-track,.timeline-row,.appointment-row){border-color:#233331}
html[data-theme=dark] :is(.cal-head,.cal-track,.calendar,.cal-time){background-color:#152124;color:#afbcb2}
html[data-theme=dark] .cal-event{color:#1d2c2d}
html[data-theme=dark] .command-result{color:#e6ebe2}
html[data-theme=dark] .command-result small{color:#afc48d}
html[data-theme=dark] :is(.command-result[aria-selected=true],.command-result:hover){background:#1e302a;border-color:#9bb17e}
html[data-theme=dark] .theme-toggle{box-shadow:inset 0 1px 0 #ffffff08}
@media(max-width:760px){.theme-toggle{width:40px;padding:8px!important}.topbar>div:last-child{gap:8px}.command-button{min-width:40px}.command-button span,.command-button kbd{display:none}.customer-header{flex-wrap:wrap;gap:12px}.command-result{align-items:flex-start;flex-direction:column;gap:5px}.command-result small{text-align:left;max-width:100%}}
html[data-theme=dark] :is(.toolbar,.day-metrics,.form-actions,.booking-option,.slots button,.cal-heading,.customer-nav a.active){background:#152124;color:#dfe5db;border-color:#233331}
html[data-theme=dark] .agenda-row{border-color:#233331}
html[data-theme=dark] .tag:not(.wait):not(.cancel):not(.done){background:#244137;color:#b9e4d1}
html[data-theme=dark] .inbox-count{background:#2b4438;color:#c4d99b}
html[data-theme=dark] .quick-actions a{color:#afc48d}
html[data-theme=dark] .day-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}
html[data-theme=dark] .day-rail :is(.quick-actions, .team-compact) {
  padding: 16px;
  border: 1px solid #233331;
  border-radius: 16px;
}
html[data-theme=dark] .day-rail .quick-actions a span { color: #dfe5db; }
html[data-theme=dark] .day-rail .quick-actions a:is(:hover, :focus-visible) span { color: #fff; }
html[data-theme=dark] .day-rail .action-inbox small { color: #afc48d; }
html[data-theme=dark] .slots button.selected,html[data-theme=dark] .booking-option.selected{background:#2b4438;border-color:#9bb17e;color:#fff}
html[data-theme=dark] :is(.ticket-date b,.ticket-date strong,.service-pick b,.service-pick small,.next-ticket .section-kicker,.customer-mobile-nav a,.customer-header>a:not(.brand),.ws-businesses span){color:#afc48d}
html[data-theme=dark] .ws-steps button{border-color:#293b38;background:#111c1f;color:#9bb17e}
html[data-theme=dark] .ws-steps button[aria-current]{border-color:#89a377;background:#1e302a;color:#e6ebe2;box-shadow:inset 0 0 0 1px #89a377}

.business-space .day-rail{display:grid;align-content:start;gap:14px}
.business-space .day-rail :is(.quick-actions,.team-compact){padding:16px;border:1px solid var(--line);border-radius:16px}
.business-space .day-rail :is(.section-kicker,.action-inbox small,.inbox-count,.setup-strip small){color:#375746}
.business-space .day-rail :is(.avatar,.setup-orb){color:#375746}
.business-space .section-kicker,.business-space .eyebrow{color:#50635c}
.business-space .command-button.ghost{color:#40654f}
.business-space .day-rail .setup-strip{margin:0}
html[data-theme=dark] .business-space .day-rail :is(.section-kicker,.action-inbox small,.inbox-count,.setup-strip small,.avatar,.setup-orb){color:#c4d99b}
html[data-theme=dark] .business-space :is(.section-kicker,.eyebrow,.mobile-brand,.menu-toggle){color:#c4d99b}
html[data-theme=dark] .business-space :is(.sidebar,.sidebar .workspace,.sidebar-footer){background:#111c1f;border-color:#293b38}
html[data-theme=dark] .business-space .sidebar :is(.workspace,small,.side-label,.nav-section){color:#afc48d}
html[data-theme=dark] .business-space .sidebar nav a[aria-current]{background:#1e302a;color:#e6ebe2}
html[data-theme=dark] .business-space :is(.toolbar,.form-actions,.calendar,.cal-track,.cal-time){border-color:#3b4d48}
.business-space .bottom-nav a{color:#50635c}
.business-space .bottom-nav a[aria-current=page]{color:#40654f}
.business-space .bottom-nav button{background:#40654f;color:#fff}
html[data-theme=dark] .business-space .bottom-nav a{color:#afc48d}
html[data-theme=dark] .business-space .bottom-nav a[aria-current=page]{color:#d4e8a6}
html[data-theme=dark] .business-space .bottom-nav button{background:#3c614d}
@media(max-width:560px){.business-space .day-rail{grid-template-columns:minmax(0,1fr)}}
@media(max-width:365px){
 .business-space .topbar{padding-inline:10px;gap:6px}
 .business-space .topbar>div{gap:5px}
 .business-space .topbar .avatar{display:none}
}

.theme-toggle { justify-content:center; min-width:42px; }
.theme-toggle .theme-icon { display:block; flex:none; }
.theme-toggle .theme-icon-sun { color:#f4c541; }
.theme-toggle .theme-icon-moon { color:#111c1f; }

/* Contrast pairs for the two standalone demo pages. */
html[data-theme=light] :is(.business-space,.customer-space){--muted:#50635c}
html[data-theme=light] .business-space .workspace .avatar{background:#40654f}
html[data-theme=light] :is(.business-space,.customer-space) .tag.done{color:#455952}
html[data-theme=light] :is(.business-space,.customer-space) .tag.wait{color:#794d17}
.business-space .insight :is(h2,p,.star){color:#244638}
.business-space .scope-banner{color:var(--muted)}
html[data-theme=dark] .business-space .scope-banner{border-color:#50635c}
html[data-theme=dark] .business-space .scope-banner :is(b,a){color:#d4e8a6}

.business-space .focus-stage :is(.section-kicker,p,small,.focus-clock > span),
.customer-space .customer-welcome :is(.section-kicker,p,.personal-stats a){color:#e6ebe2}
.business-space .focus-stage .lime,.customer-space .customer-welcome .lime{
 background:#aee3cb;color:#17352b;
}
.business-space .sidebar .demo-note{color:#afbcb2}
.business-space .cal-event{color:#1d2c2d}
.customer-space .customer-header > a:not(.brand){color:var(--muted)}
.customer-space .customer-header .theme-toggle{min-width:44px;min-height:44px}
:is(.business-space,.customer-space) #sheet .close{
 min-width:44px;min-height:44px;background:#ecefe7;color:#304d40;
}
html[data-theme=dark] :is(.business-space,.customer-space) #sheet .close{
 background:#233331;color:#dfe5db;
}

html[data-theme=light] .customer-space :is(.section-kicker,.shelf-hint,.ticket-date > div,.next-ticket > p,
 .service-pick small,.agenda-info p,.date-box small,.studio-card p){color:#455952}
html[data-theme=light] .customer-space :is(.customer-nav a,.customer-mobile-nav a,.appointment-actions .text-btn){color:#375746}
html[data-theme=light] .customer-space .customer-welcome .section-kicker{color:#e6ebe2}

html[data-theme=dark] .customer-space :is(.customer-header,.customer-nav,.customer-mobile-nav){background:#111c1f;border-color:#3b4d48}
html[data-theme=dark] .customer-space :is(.section-kicker,.shelf-hint,.ticket-date > div,.next-ticket > p,
 .service-pick small,.agenda-info p,.date-box small,.studio-card p,.customer-nav a,.customer-mobile-nav a){color:#afc48d}
html[data-theme=dark] .customer-space :is(.customer-nav a.active,.customer-mobile-nav a[aria-current]){
 color:#e6ebe2;background:#1e302a;border-radius:8px;
}
html[data-theme=dark] .customer-space :is(.customer-avatar,.date-box){
 background:#1e302a;color:#d4e8a6;
}
html[data-theme=dark] .customer-space .date-box :is(b,small){color:#d4e8a6}
html[data-theme=dark] .customer-space .progress .on{color:#c4d99b}
html[data-theme=dark] .customer-space .booking-option small{color:#c1cdc3}

@media(max-width:620px){
 .business-space :is(.focus-stage .lime,.theme-toggle,.text-btn,.agenda-row .btn,.card-head .btn),
 .customer-space :is(.text-btn,.ghost,.customer-nav a,.customer-mobile-nav a){min-height:44px}
 .customer-space .customer-mobile-nav a{justify-content:center;padding-inline:8px}
 .customer-space .customer-mobile-nav a span{font-size:11px}
 .business-space :is(.focus-stage .section-kicker,.focus-clock > span,.focus-clock small,.day-metrics .metric small,.agenda-row .tag),
 .customer-space :is(.customer-welcome .section-kicker,.next-ticket .section-kicker){font-size:11px}
 .customer-space .customer-header > a:not(.brand){font-size:11px}
 html[data-theme=dark] .business-space :is(.metric > small,.card-head .section-kicker,.agenda-info small,.agenda-row .text-btn,.card-head .btn){color:#afc48d}
}
@media(max-width:760px){
 .business-space:has(.sidebar.open) .bottom-nav{visibility:hidden}
}
html[data-admin-theme=dark]{color-scheme:dark;background:#0d1719}
html[data-admin-theme=dark] body{background:#0d1719;color:#e6ebe2}
