/* Shared palette for all application surfaces. Public booking keeps its owner-selected palette. */
html[data-app-theme] {
 --bg:#f9f6f7;--paper:#fff;--ink:#27232a;--line:#ece5e9;--muted:#79717a;--pink:#b43f64;--soft:#fce8ee;--button:#b43f64;
 --error-bg:#fff0f4;--error-ink:#912f4b;--error-line:#e4b8c5;
 color-scheme:light;
}
html[data-app-theme][data-theme=dark]{--bg:#1c1a20;--paper:#252329;--ink:#f4edf5;--line:#3a363f;--muted:#bcb0bf;--pink:#ff80a4;--soft:#402934;--button:#b43f64;--error-bg:#3f212b;--error-ink:#ffc8d5;--error-line:#74394a;color-scheme:dark;}
@media(prefers-color-scheme:dark){html[data-app-theme]:not([data-theme]){--bg:#1c1a20;--paper:#252329;--ink:#f4edf5;--line:#3a363f;--muted:#bcb0bf;--pink:#ff80a4;--soft:#402934;--button:#b43f64;--error-bg:#3f212b;--error-ink:#ffc8d5;--error-line:#74394a;color-scheme:dark;}}
html[data-app-theme][data-theme=winterSnow],html[data-app-theme][data-theme=newYearGreen]{--bg:#fff;--paper:#fff;--ink:#213c4e;--line:#c9dfed;--muted:#526b7c;--pink:#286b91;--soft:#eaf5fc;--button:#286b91;color-scheme:light}
html[data-app-theme]{
 --fill:var(--soft);--selected:var(--soft);--card:var(--paper);--accent:var(--pink);--action:#fff;--border:var(--line);--text:var(--ink);--surface:var(--paper);--background:var(--bg);
 --bg-elevated:var(--paper);--bg-muted:var(--soft);--bg-hover:var(--soft);--border-strong:var(--muted);--text-secondary:var(--muted);--text-muted:var(--muted);--accent-soft:var(--soft);--accent-hover:var(--button);--danger:var(--error-ink);--danger-soft:var(--error-bg);
 background:var(--bg);color:var(--ink);
}
html[data-app-theme] body{background:var(--bg);color:var(--ink)}
html[data-app-theme] :is(dialog,.card,input,select,textarea,a.action){background-color:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-app-theme] :is(.muted,small,.empty,.loading,label,#subtitle){color:var(--muted)}
html[data-app-theme] :is(a,.eyebrow,.price,.workspace-menu a){color:var(--pink)}
html[data-app-theme] :is(button.primary,a.primary,.btn-primary,nav button[aria-current=true]){background:var(--button);border-color:var(--button);color:#fff}
html[data-app-theme] button.primary:hover:not(:disabled){background:var(--button);border-color:var(--button);filter:brightness(.93)}
html[data-app-theme] :is(input,select,textarea):focus{border-color:var(--pink);box-shadow:0 0 0 3px var(--soft)}
html[data-app-theme] :focus-visible{outline-color:var(--pink)}
html[data-app-theme] input{accent-color:var(--button)}
html[data-app-theme] :is(#error,.error,[role=alert]){background:var(--error-bg);color:var(--error-ink);border-color:var(--error-line)}
html[data-app-theme] :is(.save-bar,.section-tabs button[aria-selected=true]){background-color:var(--paper);color:var(--ink)}
html[data-app-theme] :is(.section-tabs,.read-only,input:disabled,select:disabled,textarea:disabled,details[open]>summary,.module-icon,.avatar-placeholder){background-color:var(--soft);color:var(--ink)}
html[data-app-theme] #nav button:hover{background:var(--soft);color:var(--ink)}
html[data-app-theme] #nav button[aria-current=true]{background:var(--soft);color:var(--pink)}
html[data-app-theme] #nav button :is(svg,small){color:inherit}
html[data-app-theme] .workspace-menu{border-color:var(--line);background:transparent}
html[data-app-theme] .schedule-date{background:var(--paper);color:var(--ink);border-color:var(--line)!important}
html[data-app-theme] .schedule-date.exception{background:var(--soft)}
html[data-app-theme] .schedule-date[aria-pressed=true]{outline-color:var(--pink)}
html[data-app-theme] :is(.publication,.publication[data-enabled=false]){background:var(--paper);border-color:var(--line)}
html[data-app-theme] :is(.hero.card,.member-stats){background:linear-gradient(125deg,color-mix(in srgb,var(--button) 65%,#000),var(--button));color:#fff}
html[data-app-theme] :is(.hero,.member-stats) :is(small,.eyebrow,span){color:#fff}
html[data-app-theme] .hero button.hero-action{background:#ffffff17;color:#fff;border-color:#ffffff50}
html[data-app-theme] .loading:before{border-color:var(--line);border-top-color:var(--pink)}
html[data-app-theme] .max-connect-page{--max-accent:var(--pink);--max-soft:var(--soft);--max-line:var(--line);--max-ink:var(--ink);--max-muted:var(--muted);background:var(--bg)}
html[data-app-theme] .max-connect-card{background:var(--paper)}

html[data-app-theme] :is(.danger,.btn-danger){color:var(--error-ink);background:var(--error-bg);border-color:var(--error-line)}
html[data-app-theme] .danger-filled{background:var(--error-ink);color:var(--error-bg)}
html[data-app-theme] :is(.day,.slot)[aria-pressed=true]{background:var(--button);color:#fff}
html[data-app-theme] .time-visit{background:var(--soft)}
html[data-app-theme] .btn-warning{background:#b45309;color:#fff}

html[data-app-theme] .section-tabs button{color:var(--muted)}
html[data-app-theme] .section-tabs button[aria-selected=true]{background:var(--paper);color:var(--ink)}
html[data-app-theme] .check+.check{border-color:var(--line)}

html[data-app-theme] .module-icon{color:var(--pink)}

/* Consistent selects in Safari across company, team and admin forms. */
html[data-app-theme] select{appearance:none;-webkit-appearance:none;min-height:46px;padding:11px 38px 11px 12px;line-height:22px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2379717a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}

/* Admin navigation and table links use neutral ink; accents signal selection and actions. */
html[data-app-surface=admin] a:not(.btn-primary):not(.btn-danger):not(.danger){color:var(--ink)}
html[data-app-surface=admin] a.nav-link{color:var(--muted)}
html[data-app-surface=admin] a.nav-link.is-active{color:var(--pink);background:var(--soft)}
html[data-app-surface=admin] a:not(.nav-link):not(.sidebar-brand):not(.header-brand):hover{text-decoration:underline}
html[data-app-surface=admin] :is(.eyebrow,.price){color:var(--ink)}
html[data-app-theme] .schedule-date.working{background:var(--soft)}

/* Account themes shared with iOS and Android. */
html[data-app-theme][data-theme=softPink]{--bg:#fff8fa;--paper:#fff;--ink:#27232a;--line:#e9c9d3;--muted:#79717a;--pink:#b43f64;--soft:#fceff3;--button:#b43f64;color-scheme:light}
html[data-app-theme][data-theme=classic]{--bg:#fff;--paper:#f2f2f7;--ink:#27232a;--line:#c6c6c8;--muted:#79717a;--pink:#b43f64;--soft:#f4dde4;--button:#b43f64;color-scheme:light}
html[data-app-theme][data-theme=sage]{--bg:#f7fbf8;--paper:#fff;--ink:#24382c;--line:#c2d8c8;--muted:#62766a;--pink:#47735a;--soft:#eaf3ed;--button:#47735a;color-scheme:light}
html[data-app-theme][data-theme=lavender]{--bg:#faf9ff;--paper:#fff;--ink:#302940;--line:#d2c9e8;--muted:#756b85;--pink:#66539b;--soft:#f0edfa;--button:#66539b;color-scheme:light}
html[data-app-theme][data-theme=midnight]{--bg:#f6f9fd;--paper:#fff;--ink:#22374d;--line:#c2d3e4;--muted:#5c7085;--pink:#315b8c;--soft:#eaf1f9;--button:#315b8c;color-scheme:light}
html[data-app-theme][data-theme=graphite]{--bg:#0e1317;--paper:#20282f;--ink:#eef5f5;--line:#3c4a54;--muted:#aabbbf;--pink:#52c7b8;--soft:#23443f;--button:#287c72;--error-bg:#3f212b;--error-ink:#ffc8d5;--error-line:#74394a;color-scheme:dark}
html[data-app-theme][data-theme=cherryNight]{--bg:#170c11;--paper:#321a22;--ink:#fff0f4;--line:#654050;--muted:#c9a8b3;--pink:#ff7b9c;--soft:#532638;--button:#b43f64;--error-bg:#3f212b;--error-ink:#ffc8d5;--error-line:#74394a;color-scheme:dark}

/* Shared disclosure headers across the workspace, including embedded panels. */
html[data-app-theme] details>summary{display:flex;align-items:center;gap:12px;list-style:none;min-height:44px;box-sizing:border-box;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font-weight:600;cursor:pointer;transition:background .18s,border-color .18s}
html[data-app-theme] details>summary::-webkit-details-marker{display:none}
html[data-app-theme] details>summary::marker{content:""}
html[data-app-theme] details>summary::after{content:"";width:8px;height:8px;flex-shrink:0;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;opacity:.65}
html[data-app-theme] details[open]>summary{background:var(--soft);margin-bottom:12px}
html[data-app-theme] details[open]>summary::after{transform:rotate(225deg)}
html[data-app-theme] details>summary:hover{border-color:var(--accent,var(--pink))}
html[data-app-theme] details>summary:focus-visible{outline:2px solid var(--accent,var(--pink));outline-offset:3px}
html[data-app-theme] details[open]>*:not(summary){animation:kidi-disclosure-in .18s ease-out}
@keyframes kidi-disclosure-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html[data-app-theme] details>summary,html[data-app-theme] details>summary::after{transition:none}html[data-app-theme] details[open]>*:not(summary){animation:none}}

/* Same phone prefix control as the native apps: flag, dial code, divider, number. */
html[data-app-theme] .kidi-phone{display:flex;align-items:center;width:100%;min-width:0;min-height:52px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);transition:border-color .15s,box-shadow .15s}
html[data-app-theme] .kidi-phone:focus-within{border-color:var(--pink);box-shadow:0 0 0 3px var(--soft)}
html[data-app-theme] .kidi-phone-country{position:relative;flex:0 0 auto;align-self:stretch;display:flex;align-items:center;padding:0 29px 0 14px;min-width:99px;font-size:16px;font-weight:400;white-space:nowrap}
html[data-app-theme] .kidi-phone-country:after{content:'⌄';position:absolute;right:13px;top:50%;transform:translateY(-60%);font-size:16px;color:var(--muted);pointer-events:none}
html[data-app-theme] .kidi-phone-country:before{content:'';position:absolute;right:0;height:24px;width:1px;background:var(--line)}
html[data-app-theme] .kidi-phone-country select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;min-height:0}
html[data-app-theme] .kidi-phone input{flex:1;width:0;min-width:0;min-height:50px;border:0;background:transparent;box-shadow:none;outline:none;padding:12px;font-size:16px;font-weight:400;border-radius:0 14px 14px 0}
html[data-app-theme] .kidi-phone-country:focus-within{border-radius:13px 0 0 13px;background:var(--soft)}
.auth form:has(>.kidi-phone){row-gap:12px}.auth form>.kidi-phone+button{margin-top:8px}
