:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);color-scheme:dark;font-synthesis:none;--ink:#f5eff7;--bg:#241b2c;--chrome:#281f32;--field:#231a2a;--button:#3d2e48;--hover:#4c3a58;--selected:#59416b;--surface: #33263d;--line: #655171;--muted: #cfbdd7;--accent: #dcc1f0;--on-accent: #2b1639;--pad: clamp(12px, 4vw, 28px)}*{box-sizing:border-box}body{margin:0;min-width:280px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.55rem,5vw,2.2rem);line-height:1.15;letter-spacing:-.03em}h2{font-size:1.14rem}h3{font-size:1rem}small,.subtle{color:var(--muted);line-height:1.4}button,input,select,textarea{font:inherit;color:inherit}button,.button{appearance:none;display:inline-flex;gap:.25rem;align-items:center;justify-content:center;min-height:44px;padding:.55rem .8rem;border:1px solid var(--line);border-radius:.7rem;background:var(--button);cursor:pointer;text-align:center;text-decoration:none;color:inherit}button:hover,.button:hover{background:var(--hover)}button:disabled{opacity:.58;cursor:default}:focus-visible{outline:2px solid #f0c9ff;outline-offset:2px}.primary{font-weight:750;background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.primary:hover{background:#ecd7fa}.app-header{border-bottom:1px solid #51415c;background:var(--chrome);padding:env(safe-area-inset-top) max(var(--pad),env(safe-area-inset-right)) 0 max(var(--pad),env(safe-area-inset-left))}.header-inner,.shell,.scope{width:min(100%,58rem);margin:0 auto}.header-inner{display:flex;justify-content:space-between;align-items:center;gap:.45rem;min-height:64px}.brand{display:inline-flex;align-items:center;gap:.57rem;white-space:nowrap}.brand img{border-radius:.73rem}.brand strong{font-size:clamp(.9rem,3.6vw,1.14rem)}.header-account label{font-size:.68rem}.header-account select{min-height:32px;min-width:0;width:100%;padding:.25rem .3rem;font-size:clamp(.72rem,3.2vw,.9rem)}.shell{display:grid;gap:1rem;padding:.85rem var(--pad) calc(88px + env(safe-area-inset-bottom))}.scope,.initial{padding:.75rem var(--pad);color:var(--muted)}.workspace-bar,.title-line,.actions,.date-actions{display:flex;gap:.45rem;justify-content:space-between;align-items:center;flex-wrap:wrap}.workspace-bar{min-height:45px}.workspace-bar strong,.workspace-bar small{display:block}.workspace-bar strong{font-size:.92rem}.workspace-bar small{font-size:.78rem}.workspace-bar .actions{justify-content:flex-end}.workspace-bar .actions button{padding-inline:.5rem;font-size:.81rem}.segmented{display:flex;gap:.25rem;border:1px solid var(--line);border-radius:.8rem;background:var(--chrome);padding:.2rem}.segmented button{flex:1;border:0;min-width:0;background:transparent;font-size:clamp(.75rem,3.8vw,.95rem);padding-inline:.44rem}.segmented button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.date-bar{display:grid;grid-template-columns:44px 1fr 44px;gap:.5rem;align-items:center;text-align:center}.date-bar div{display:grid;gap:.22rem}.date-bar div strong:first-letter{text-transform:uppercase}.date-bar div span{color:var(--muted);font-size:.84rem}.date-bar button{font-size:1.5rem;padding:0}.date-actions label{display:flex;align-items:center;gap:.45rem}.date-actions input{width:auto}.stack{display:grid;gap:.68rem}.visit,.record,.slot,.metric,.panel,.hours-row,.empty,.summary{padding:.82rem;border:1px solid var(--line);border-radius:.85rem;background:var(--surface)}.visit,.record,.slot{text-align:left;min-width:0}.visit{display:grid;grid-template-columns:3rem minmax(0,1fr) auto;align-items:center;gap:.6rem;width:100%;min-height:70px}.visit-time{font-variant-numeric:tabular-nums;font-size:1.04rem;font-weight:750}.visit-main,.visit-time,.summary,.record span{display:grid;gap:.16rem;min-width:0;overflow-wrap:anywhere}.visit-main span{color:var(--muted);font-size:.86rem}.visit-time small{font-weight:450}.status{justify-self:start;background:#483450;border-radius:.4rem;padding:.22rem .42rem;white-space:nowrap}.status.completed{color:#c6edce;background:#264232}.status.no_show,.status.cancelled{color:#ffe0d7;background:#583b42}.slot,.record{display:flex;justify-content:space-between;gap:.5rem;align-items:center}.slot{min-height:54px}.slot span{color:var(--muted)}.week-day{display:grid;gap:.35rem;padding-bottom:.5rem;border-bottom:1px solid var(--line)}.link-button{background:none;border-color:transparent;padding-left:0;text-transform:capitalize;justify-content:flex-start}.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.18rem;text-align:center}.month button{min-width:0;padding:.18rem;min-height:48px;display:grid;gap:.1rem}.month small{display:block;font-size:.68rem}.month .muted{opacity:.72}.empty{color:var(--muted);padding:1.35rem 1rem}.bottom-nav{position:fixed;bottom:0;width:100%;background:var(--chrome);border-top:1px solid var(--line);padding:.35rem var(--pad) calc(.35rem + env(safe-area-inset-bottom));z-index:1}.bottom-nav div{display:flex;gap:.34rem;width:min(100%,58rem);margin:0 auto}.bottom-nav button{flex:1;padding-inline:.15rem;border-color:transparent;background:none;min-width:0;font-size:clamp(.75rem,3.55vw,.98rem)}.bottom-nav button[aria-current=page]{background:var(--selected);font-weight:700}label{display:grid;gap:.27rem;min-width:0;font-size:.88rem;font-weight:650}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;min-height:44px;padding:.55rem .62rem;border:1px solid var(--line);border-radius:.55rem;background:var(--field);font-size:1rem}textarea{resize:vertical;min-height:77px}input[type=file]{font-size:.85rem}input[type=checkbox]{width:1.2rem;height:1.2rem;accent-color:var(--accent)}.form-grid,.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;align-items:end}.metrics{align-items:stretch}.metric{display:grid;align-content:start;text-align:left;gap:.33rem}.metric strong{font-size:clamp(1.1rem,4vw,1.45rem)}.metric[aria-pressed=true]{border-color:var(--accent);background:var(--selected)}details{border:1px solid var(--line);padding:.05rem .65rem;border-radius:.6rem}summary{cursor:pointer;font-weight:720;padding:.7rem 0;min-height:44px}.choices{padding-bottom:.35rem}.choice{display:flex;align-items:center;gap:.5rem;min-height:44px;cursor:pointer}.choice small{display:block}.notes{white-space:pre-wrap;overflow-wrap:anywhere}.error{background:#563745;color:#ffe0e8;border-radius:.6rem;padding:.68rem}.error button,.error .button{background:#fff;color:#241b2c;border-color:#d9b2c0}.error button:hover,.error .button:hover{background:#f5e8ef}.notice{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:.65rem;padding:.28rem .65rem}.notice button{background:none;border:0}dialog{padding:0;border:1px solid var(--line);border-radius:1rem;background:var(--surface);color:inherit;width:min(calc(100% - 1.1rem),34rem);max-height:min(91dvh,54rem)}dialog::backdrop{background:#100b16ba}.dialog-header{position:sticky;top:0;display:flex;justify-content:space-between;gap:.6rem;align-items:center;padding:.55rem .85rem;border-bottom:1px solid var(--line);background:var(--surface);z-index:1}.dialog-header button{font-size:1.25rem;width:44px}.dialog-content{padding:.85rem}.auth{display:grid;gap:1rem;margin:8vh auto 0;padding:var(--pad);width:min(100%,32rem)}.qr{width:180px;max-width:100%}.auth code,.dialog-content code{overflow-wrap:anywhere}.plain-list{list-style:none;padding:0;margin:0;display:grid;gap:.35rem}.plain-list li{display:grid;gap:.2rem;padding:.55rem 0;border-top:1px solid var(--line)}progress{width:100%;accent-color:var(--accent)}@media(max-width:340px){.date-actions label span{display:none}.visit{gap:.3rem;padding:.53rem}}.workspace-logo{width:38px;height:38px;object-fit:contain;border-radius:8px}.greeting{font-size:.8rem;color:var(--muted)}:root[data-theme=light],:root[data-theme=bw-light]{color-scheme:light;--ink:#241b2c;--bg:#f5eff7;--surface:#ffffff;--chrome:#f0e8f3;--field:#fff;--button:#fff;--hover:#e9deef;--selected:#e5d5ed;--line:#8d7896;--muted:#63546d;--accent:#69407c;--on-accent:#fff}:root[data-theme=champagne]{--bg:#262225;--surface:#363033;--chrome:#2e282c;--field:#211d20;--button:#433a3f;--hover:#53464d;--line:#8c797e;--muted:#dbc9cc;--accent:#eccead;--on-accent:#30241c;--selected:#55454c}:root[data-theme=gold]{--bg:#171613;--surface:#2c2922;--chrome:#211f19;--field:#171613;--button:#393429;--hover:#494130;--line:#8e7b53;--muted:#d7c8a7;--accent:#eac777;--on-accent:#292113;--selected:#51452d}:root[data-theme=midnight]{--bg:#18273c;--surface:#22364f;--chrome:#142238;--field:#142238;--button:#2d4360;--hover:#3d5676;--line:#7c95b7;--muted:#c0d2e9;--accent:#d6e4fa;--on-accent:#172a45;--selected:#3d5676}:root[data-theme=bw-light]{--bg:#fff;--surface:#fff;--chrome:#eee;--field:#fff;--button:#fff;--hover:#ddd;--selected:#ddd;--ink:#111;--muted:#444;--line:#777;--accent:#111;--on-accent:#fff}:root[data-theme=bw-dark]{--bg:#181818;--surface:#262626;--chrome:#121212;--field:#121212;--button:#333;--hover:#444;--selected:#444;--ink:#fff;--muted:#ccc;--line:#888;--accent:#fff;--on-accent:#111}:focus-visible{outline-color:var(--accent)}button.primary:hover,.button.primary:hover{background:var(--accent);filter:brightness(1.08)}dialog{overflow-y:auto;overscroll-behavior:contain;isolation:isolate;box-shadow:0 14px 60px #0006}.dialog-header{background:var(--surface);flex-shrink:0}.plan-badge{font-size:.65rem;font-weight:600;border:1px solid var(--line);border-radius:.4rem;padding:.1rem .3rem;vertical-align:middle}.day-holiday{border-color:#c18a67!important;box-shadow:inset 3px 0 #c18a67}.day-sunday{border-color:#a17ea9!important}.day-closed{border-style:dashed!important}.day-label{color:var(--muted);font-size:.78rem}.week-card{width:100%;align-items:flex-start}.week-visit{font-size:.85rem;color:var(--muted);padding-top:.2rem}.status{color:#f5eff7}:root{--pad:clamp(10px,3vw,22px)}.header-inner{min-height:46px}.brand img{width:30px;height:30px}.build-label{font-size:.62rem;letter-spacing:.03em}.account-menu{position:relative;border:0;padding:0;margin:0}.account-menu>summary{padding:.35rem .5rem;min-height:40px;list-style:none;font-size:.8rem}.account-menu-body{position:absolute;right:0;top:100%;width:min(88vw,350px);padding:.8rem;background:var(--surface);border:1px solid var(--line);border-radius:.7rem;z-index:20;box-shadow:0 8px 24px #0005}.shell{gap:.5rem;padding-top:.5rem}.workspace-bar{min-height:32px}.workspace-identity{display:flex;gap:.5rem;align-items:center}.workspace-identity strong{font-size:.84rem}.workspace-identity small{font-size:.7rem}.workspace-logo{width:28px;height:28px}h1{font-size:1.4rem}.title-line{min-height:38px}.title-line .primary{min-height:40px;padding:.4rem .6rem;font-size:.88rem}.segmented button{min-height:36px;padding:.35rem .3rem}.segmented{padding:.15rem}.date-bar{grid-template-columns:34px minmax(0,1fr) 34px 48px;gap:.25rem}.date-bar>button{min-height:38px}.date-bar .today-button{font-size:.76rem}.date-choice{position:relative;gap:.12rem;text-align:center;padding:.25rem;font-size:.85rem}.date-choice input{position:absolute;inset:0;opacity:0;cursor:pointer;height:100%;min-height:0}.date-choice:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-radius:.4rem}.date-choice small{font-size:.7rem}.visit{min-height:56px;padding:.55rem;gap:.4rem;grid-template-columns:2.9rem minmax(0,1fr) auto}.visit-main span{font-size:.76rem}.visit-main strong{font-size:.9rem}.status{font-size:.65rem;padding:.18rem .3rem}.empty{padding:.75rem}.notice{font-size:.8rem}dialog{width:min(calc(100% - .7rem),34rem);max-height:94dvh;scroll-padding-bottom:62px}.dialog-header{padding:.4rem .6rem}.dialog-header h2{font-size:1.05rem}.dialog-header button{width:36px;min-height:36px}.dialog-content{padding:.6rem}.dialog-content .stack{gap:.5rem}.dialog-content label{font-size:.8rem}.dialog-content input:not([type=checkbox]),.dialog-content select{min-height:40px;padding:.4rem .5rem}.dialog-content textarea{min-height:62px}.booking-form>.stack{gap:.35rem}.booking-form details summary{min-height:36px;padding:.45rem 0;font-size:.83rem}.booking-form .choices{max-height:190px;overflow-y:auto;overscroll-behavior:contain}.booking-form .choice{min-height:40px;font-size:.82rem}.booking-form .choice small{font-size:.7rem}.client-picker-title,.selected-client{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.client-picker-title strong{font-size:.85rem}.new-client-button{min-height:38px;border:1px solid var(--accent);color:var(--accent);font-weight:750;font-size:.85rem;padding:.35rem .55rem}.selected-client{border:1px solid var(--line);border-radius:.5rem;padding:.45rem .55rem}.selected-client span{display:grid;gap:.15rem}.selected-client button{min-height:34px;font-size:.75rem;padding:.25rem .4rem}.client-results{list-style:none;padding:0;margin:0;display:grid;gap:.2rem;max-height:190px;overflow-y:auto}.client-results .record{width:100%;min-height:43px;padding:.4rem .5rem;font-size:.85rem}.client-results small{font-size:.72rem}.form-footer{position:sticky;bottom:-.6rem;z-index:2;background:var(--surface);border-top:1px solid var(--line);display:flex;align-items:center;gap:.5rem;justify-content:space-between;padding:.55rem 0;margin-top:.3rem}.form-footer>button{min-height:40px;flex:1}.form-footer>span{font-size:.85rem;font-weight:700;white-space:nowrap}.import-actions{justify-content:flex-start}.import-actions button,.file-button{font-size:.82rem;min-height:38px}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.contact-help{font-size:.73rem}.client-form details summary{padding:.45rem 0;min-height:36px}.confirmation-options{display:flex;gap:.7rem;flex-wrap:wrap}.confirmation-options .choice{font-size:.8rem;min-height:36px}.dialog-content .message-preview{min-height:230px;line-height:1.45;font-size:.9rem}.conflict-inspection{padding:.55rem;border:1px solid var(--accent);border-radius:.55rem;font-size:.83rem}.conflict-inspection button{min-height:36px;font-size:.8rem;padding:.3rem .45rem}.timeline{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:.35rem;padding-top:.6rem}.timeline-clock,.timeline-track{position:relative}.timeline-clock>span{position:absolute;right:0;transform:translateY(-50%);font-size:.7rem;color:var(--muted);font-variant-numeric:tabular-nums}.timeline-track{background:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent 45px);border-bottom:1px solid var(--line)}.timeline-free,.timeline-event,.timeline-block,.timeline-request{position:absolute;left:0;width:100%;border-radius:.35rem;min-height:0;overflow:hidden;padding:.2rem .35rem;text-align:left;box-sizing:border-box}.timeline-free{background:var(--field);color:var(--muted);border:1px dashed var(--line);opacity:.85;justify-content:flex-start;font-size:.71rem;align-items:flex-start}.timeline-free:hover{opacity:1}.timeline-event{z-index:2;background:var(--selected);border:1px solid var(--accent);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.1rem;line-height:1.15}.timeline-event strong{font-size:.75rem}.timeline-event span{font-size:.86rem;font-weight:650}.timeline-event small{font-size:.72rem;overflow-wrap:anywhere}.timeline-short span,.timeline-short small{display:none}.timeline-block{background:var(--chrome);color:var(--muted);border:1px solid var(--line);font-size:.72rem;z-index:1}.timeline-request{left:-3px;width:calc(100% + 6px);z-index:3;border:2px dashed #df9b52;background:transparent;pointer-events:none;overflow:visible}.timeline-request>span{position:absolute;right:0;top:-1.1rem;font-size:.65rem;background:var(--surface);color:var(--ink);padding:0 .2rem}.timeline-conflict{border:2px solid #e89469}.timeline-short-list{grid-column:1/-1}.timeline-short-list button{font-size:.76rem;width:100%;margin:.2rem 0}@media(max-width:430px){.account-menu>summary span{display:none}.workspace-identity small{max-width:85vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dialog-content .panel{padding:.6rem}.title-line h1{font-size:1.3rem}.bottom-nav{padding-top:.2rem;padding-bottom:calc(.2rem + env(safe-area-inset-bottom))}.bottom-nav button{min-height:40px}.month button{min-height:42px}.brand{gap:.35rem}}
