@media(max-width:760px){.app{padding:16px 15px 88px}.top{margin-bottom:21px}.profile .person{display:none}.sync{font-size:10px;padding:5px 7px}.layout{display:block}.heading{align-items:flex-end}.heading h1{font-size:26px}.heading .btn.export{display:none}.side{padding-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.card{margin:0;padding:14px}.card.tip{display:none}.week{padding:8px 5px}.day span{font-size:11px}.day strong{width:29px;height:29px}.schedule,.panel{padding:5px 11px}.slot{grid-template-columns:45px minmax(0,1fr);min-height:83px}.appt{padding:8px 9px}.duration{display:none}.appt-tools{gap:3px}.iconbtn{width:27px;height:27px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:8px 0 max(9px,env(safe-area-inset-bottom));z-index:3}.mobile-nav button{border:0;background:none;color:#8c848b;font-size:10px;min-width:52px}.mobile-nav button.active{color:#ad6583;font-weight:700}.mobile-nav b{display:block;font-size:18px;margin-bottom:1px}.client-row{grid-template-columns:39px minmax(0,1fr) auto;gap:8px}.client-row .avatar{width:37px;height:37px}.client-row .btn{padding:7px;font-size:11px}}

:root[data-theme="dark"]{--ink:#eee8ed;--muted:#aaa1aa;--line:#39343a;--pink:#d786a5;--pale:#342b31;--green:#91c2a5;--bg:#1e1b1f;--white:#29252a}
:root[data-theme="dark"] body{background:var(--bg);color:var(--ink)}:root[data-theme="dark"] .card,:root[data-theme="dark"] .schedule,:root[data-theme="dark"] .panel,:root[data-theme="dark"] .week,:root[data-theme="dark"] .modal,:root[data-theme="dark"] .mobile-nav{background:#29252a;border-color:var(--line);color:var(--ink)}:root[data-theme="dark"] .btn,:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .search{background:#302c32;color:var(--ink);border-color:#49434b}:root[data-theme="dark"] .btn.primary{background:#d786a5;color:#261b21;border-color:#d786a5}:root[data-theme="dark"] .appt{background:#392d34}:root[data-theme="dark"] .appt.green{background:#29372f}:root[data-theme="dark"] .appt.purple{background:#322e3c}:root[data-theme="dark"] .tip{background:#342d2b!important}:root[data-theme="dark"] .client-row,:root[data-theme="dark"] .service-row,:root[data-theme="dark"] .client{border-color:#39343a}:root[data-theme="dark"] .day{color:#aaa1aa}:root[data-theme="dark"] .day.active{background:#342b31;color:#f0bbcf}:root[data-theme="dark"] .iconbtn{background:#423a42;color:var(--ink)}:root[data-theme="dark"] .sync{background:#29372f;color:#a4d1b6!important}:root[data-theme="dark"] .mobile-nav button.active{color:#efacc5}.profile-wrap{position:relative}.profile-button{border:0;background:transparent;padding:0}.profile-button:hover{opacity:.8}.profile-menu{position:absolute;right:0;top:calc(100% + 11px);width:220px;background:white;border:1px solid var(--line);border-radius:14px;padding:7px;box-shadow:0 12px 35px #211b2020;z-index:4;display:none}.profile-menu.open{display:block}.profile-menu button{display:flex;width:100%;border:0;background:transparent;border-radius:9px;padding:10px;text-align:left;gap:9px;align-items:center;font-size:13px}.profile-menu button:hover{background:var(--pale)}:root[data-theme="dark"] .profile-menu{background:#29252a;border-color:var(--line);color:var(--ink)}:root[data-theme="dark"] .profile-menu button{color:var(--ink)}:root[data-theme="dark"] .link{color:#efacc5}:root[data-theme="dark"] .close{background:#423a42;color:#fff}:root[data-theme="dark"] .close:hover{background:#554753}
#authGate{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:20px}.auth-card{width:min(440px,100%);padding:28px}.auth-card h1{font-size:26px;margin:10px 0 6px}.auth-card>p{color:var(--muted);font-size:13px;margin:0 0 17px}.auth-card .actions{display:grid;grid-template-columns:1fr 1fr;margin-top:14px}.auth-card .field{margin:12px 0}.auth-message{min-height:20px;margin-top:12px;font-size:13px;color:var(--muted)}.auth-secondary{width:100%;margin-top:10px;border:0;background:transparent;color:#ad6583;font-size:12px}.auth-config{background:var(--pale);border-radius:12px;padding:12px;margin-top:15px;font-size:12px;color:var(--muted)}body:not(.authenticated) .app,body:not(.authenticated) .mobile-nav{display:none!important}body.authenticated #authGate{display:none}body.authenticated .app{display:block}@media(max-width:760px){body.authenticated .mobile-nav{display:flex!important}}

.inline14463{font-size:12px;color:#aaa;font-weight:500}
.inline14519{display:none}
.inline14546{margin-top:14px}
.inline14576{margin-top:12px}
.inline14606{margin-top:14px}
.inline14636{margin-top:12px}
.inline14666{margin-top:14px}
.inline14696{margin-top:12px}
.inline14726{margin-top:14px}
.inline14756{margin-top:12px}
.inline14786{margin-top:14px}
.inline14816{margin-top:14px}
.inline14846{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.inline14912{background:#f5ede9}
.inline14945{margin-top:8px}
#demoNotice,#activation,#backupNotice,#update{padding:12px;text-align:center}.licensed #demoNotice,.licensed #activation,body:not(.licensed) #backupNotice,body:not(.licensed) [data-action^="export"],body:not(.licensed) [for="importFile"],body:not(.licensed) #undo,body:not(.licensed) [data-action="reset-cabinet"]{display:none}#demoNotice{position:sticky;top:0;z-index:9;background:#f3dde7;color:#322932}
.service-actions{display:flex;align-items:center;gap:10px}

/* Sample data stays fixed until a paid installation is activated. */
body:not(.licensed) :is([data-action="open-booking"],[data-action="open-service"],[data-action="add-service"],[data-action="edit-service"],[data-action="delete-service"],[data-action="book-client"],[data-action="save-owner"],[data-action="save-owner-settings"],[data-action="replay-intro"],[data-action="calendar-reminder"],#welcomeCard,.backup-only){display:none}

/* Match activation controls and the profile header to the selected theme. */
#activation input,#activation button{font:inherit;padding:.55rem .75rem;border-radius:.5rem;border:1px solid #a798a2}
#activation input{background:#fff;color:#262127;max-width:100%}
#activation button{background:#f4dce7;color:#372330}
#activation button:disabled{opacity:.65}
[data-theme="dark"] #activation input{background:#312b32;color:#fff;border-color:#807481}
[data-theme="dark"] #activation button{background:#edbad0;color:#291723}
[data-theme="dark"] .profile-button .person{color:#e9dce6}

/* Keep the brand and sync indicator on one row on narrow phones. */
@media(max-width:760px){
  .top{gap:.625rem}
  .brand{flex:none;white-space:nowrap;gap:.5rem}
  .brand-caption{display:none}
  .profile-wrap,.profile-button{min-width:0}
  .profile-button .sync{max-width:9rem;margin-right:0}
}
/* Keep the update prompt readable independently of the system button theme. */
#update{display:block;margin:.5rem auto;padding:.55rem .85rem;font:inherit;font-weight:650;background:#f4dce7;color:#291723;border:1px solid #b77c98;border-radius:.65rem}
#update[hidden]{display:none}
:root[data-theme="dark"] #update{background:#edbad0;color:#291723}

#testLogout[hidden],#checkUpdate[hidden]{display:none}
