:root{--bg:#f5f6fa;--paper:#fff;--ink:#222a40;--muted:#697286;--line:#e1e5ef;--accent:#6555b7;--tint:#efecfa;--green:#36715e;--red:#a9464b;--warn:#84621d;--top:0px;--bottom:env(safe-area-inset-bottom,0px);font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;color-scheme:light}
:root[data-theme="dark"]{--bg:#161b28;--paper:#22293a;--ink:#f0f2f9;--muted:#adb6c9;--line:#354057;--accent:#b9a8ff;--tint:#35304c;--green:#8bceb4;--red:#f1a1a7;--warn:#dec183;color-scheme:dark}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:wait}a{color:var(--accent)}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.2px;font-weight:650}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px}svg{width:22px;height:22px;flex-shrink:0;pointer-events:none}small,.muted{color:var(--muted)}.app{max-width:1100px;margin:auto;padding:var(--top) 28px calc(116px + var(--bottom))}.top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:26px 0}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;letter-spacing:-.6px;text-decoration:none;color:var(--ink)}.brand img{border-radius:12px}.top-actions{display:flex;align-items:center;gap:10px}.mode{font-size:11px;background:var(--tint);color:var(--accent);border-radius:18px;padding:8px 11px;font-weight:600;white-space:nowrap}.icon-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:var(--paper);flex-shrink:0}.hero{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{font-size:13px;color:var(--muted);margin-bottom:7px}.sub{font-size:13px;line-height:1.65;color:var(--muted);margin-top:8px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;background:var(--accent);color:var(--paper);padding:14px 18px;font-weight:600;min-height:48px;text-decoration:none}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:12px;background:var(--paper);border:1px solid var(--line);font-weight:600;text-decoration:none;color:var(--ink)}.text-button{border:0;background:transparent;color:var(--accent);padding:11px 0;font-size:13px;font-weight:600;min-height:44px}.danger{color:var(--red)}.full-width{width:100%}.week-bar{display:flex;align-items:center;gap:10px;margin:25px 0 18px}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;flex:1}.day{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:76px;justify-content:center;border:1px solid transparent;border-radius:16px;background:transparent}.day small{font-size:12px}.day b{font-size:20px;font-weight:600}.day.selected{background:var(--ink);color:var(--bg)}.day.selected small{color:var(--bg);opacity:.75}.day:hover:not(.selected){background:var(--paper)}.day.today:not(.selected){border-color:var(--line)}.day .dot{width:4px;height:4px;border-radius:50%;background:currentColor}.tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:10px}.segmented{display:flex;gap:2px;background:var(--line);padding:3px;border-radius:11px}.segmented button{border:0;background:transparent;color:var(--muted);min-height:34px;padding:5px 14px;border-radius:8px;font-size:12px;font-weight:600}.segmented button.selected{background:var(--paper);color:var(--ink)}.columns{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0 17px}.section-head h2 small{font-size:13px;font-weight:400;margin-left:6px}.section-head>small{font-size:12px}.timeline{display:flex;flex-direction:column;gap:12px}.slot{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px}.time{padding-top:17px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.visit{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:16px;padding:16px;text-align:left;transition:border-color .15s}.visit:hover{border-color:var(--accent)}.visit-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.visit h3{font-weight:650;overflow-wrap:anywhere}.service{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.5}.visit-footer{display:flex;justify-content:space-between;gap:8px;margin-top:16px;font-size:12px;color:var(--muted)}.status{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;color:var(--green)}.status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.waiting{color:var(--warn)}.status.done,.status.noshow{color:var(--muted)}.status.cancelled{color:var(--red)}.slot.cancelled .visit,.slot.noshow .visit{opacity:.65}.visit.block{border-style:dashed;background:var(--bg)}.free{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:13px 15px;text-align:left;background:transparent;border:1px dashed var(--line);border-radius:13px;color:var(--muted);font-size:12px;min-height:48px}.free svg{width:17px;height:17px;color:var(--accent)}.panel{background:var(--paper);border:1px solid var(--line);border-radius:19px;padding:21px}.aside-label{font-size:12px;color:var(--muted)}.aside-time{font-size:40px;letter-spacing:-2px;font-weight:600;margin-top:16px}.aside-name{font-size:18px;font-weight:600;margin-top:7px;overflow-wrap:anywhere}.panel .secondary{margin-top:18px;width:100%}.summary{padding:22px 2px}.summary-row{display:flex;justify-content:space-between;font-size:13px;margin-bottom:15px;color:var(--muted)}.summary-row b{color:var(--ink);font-weight:600}.progress{height:5px;background:var(--line);border-radius:5px;overflow:hidden;margin-top:17px}.progress span{height:100%;display:block;background:var(--accent)}.sync-note{display:flex;gap:9px;color:var(--muted);font-size:12px;line-height:1.6;border-top:1px solid var(--line);padding-top:17px;margin-top:22px}.sync-note svg{width:17px;height:17px;margin-top:2px}.sync-note b{display:block;color:var(--ink);font-weight:600}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--line);padding:7px 15px calc(7px + var(--bottom));z-index:5}.bottom-nav[hidden]{display:none}.nav-inner{max-width:550px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.nav-item{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:transparent;color:var(--muted);font-size:10px;padding:8px 3px;border-radius:12px;min-height:55px}.nav-item.active{color:var(--accent);background:var(--tint)}.calendar{max-width:650px;margin:24px auto;background:var(--paper);padding:24px;border:1px solid var(--line);border-radius:20px}.month-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.month-head h2{font-size:19px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekday{text-align:center;color:var(--muted);font-size:12px;padding:7px 0}.calendar-day{height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;border-radius:12px;font-size:16px}.calendar-day.selected{background:var(--ink);color:var(--bg)}.calendar-day .dot{height:5px;width:5px;border-radius:50%;background:var(--accent)}.calendar-day.selected .dot{background:var(--bg)}.calendar-day.off{color:var(--muted)}.calendar-day:hover:not(.selected){background:var(--tint)}.search{width:100%;margin:23px 0 17px;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:15px}.client-list{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden}.client{display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;width:100%;padding:17px}.client:last-child{border:0}.avatar{display:grid;place-items:center;height:42px;width:42px;flex-shrink:0;background:var(--tint);color:var(--accent);border-radius:50%;font-weight:600}.client-meta{flex:1;min-width:0;overflow-wrap:anywhere}.client-meta b{font-size:15px;display:block}.client-meta small{font-size:12px;display:block;margin-top:5px;line-height:1.4}.empty{text-align:center;padding:34px 18px;border:1px dashed var(--line);border-radius:18px;line-height:1.7;color:var(--muted)}.empty h3{color:var(--ink);font-size:18px;margin-bottom:8px}.empty p{font-size:13px}.empty button{margin-top:17px}.toast{position:fixed;bottom:calc(94px + var(--bottom));left:50%;transform:translateX(-50%);padding:13px 18px;border-radius:13px;background:var(--ink);color:var(--bg);max-width:calc(100% - 30px);width:max-content;font-size:13px;line-height:1.5;z-index:30}.toast:empty{display:none}.toast button{color:inherit;background:transparent;border:0;text-decoration:underline;margin-left:12px}dialog{border:1px solid var(--line);border-radius:23px;padding:0;background:var(--paper);color:var(--ink);width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 35px - var(--top) - var(--bottom));overscroll-behavior:contain}dialog::backdrop{background:#11182a80}.dialog-content{padding:23px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.dialog-head h2{font-size:23px}.dialog-head .icon-button{border:0;background:var(--bg)}.dialog-sub{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:19px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:var(--paper);min-height:46px;font-weight:400;font-size:15px}.field textarea{resize:vertical;min-height:83px}.error{color:var(--red);font-size:13px;line-height:1.6;margin-top:13px}.error:empty{display:none}.actions{display:flex;gap:10px;margin-top:20px}.actions .primary{flex:1}.confirm{background:var(--bg);padding:15px;border-radius:12px;margin-top:13px;font-size:13px;line-height:1.6}.confirm button{margin-top:8px;margin-right:10px}.help-copy{font-size:13px;line-height:1.75;color:var(--muted)}.settings-section{margin:24px 0}.settings-section h3{margin-bottom:14px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:14px;min-height:52px}.switch-row input{accent-color:var(--accent);width:20px;height:20px;flex-shrink:0}.workdays{display:flex;gap:5px;margin-top:13px;justify-content:space-between}.workday{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;flex:1}.workday input{accent-color:var(--accent);width:20px;height:20px}.service-editor{border-top:1px solid var(--line);padding-top:14px;margin-bottom:16px}.service-editor .fields{grid-template-columns:1fr 1fr}.service-top{display:flex;gap:10px;align-items:center;margin-bottom:10px}.service-top .field{flex:1}.service-top button{align-self:end}.settings-list{display:flex;flex-direction:column;gap:10px}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.metric{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:17px}.metric small{font-size:12px}.metric strong{display:block;font-size:28px;font-weight:600;margin:9px 0 0;letter-spacing:-.7px}.history{display:flex;flex-direction:column;gap:10px;margin-top:18px}.history-item{border-top:1px solid var(--line);padding:13px 0;background:none;border-right:0;border-left:0;border-bottom:0;text-align:left;color:var(--ink);width:100%}.history-item small{display:block;font-size:12px;margin-top:5px}.client-note{margin:18px 0}.week-list{display:flex;flex-direction:column;gap:12px;margin-top:10px}.week-row{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px;text-align:left;width:100%;display:grid;grid-template-columns:65px 1fr 20px;gap:12px;align-items:center}.week-row b{font-size:19px}.week-row small{display:block;font-size:12px;margin-top:4px}.week-row strong{font-size:14px;font-weight:600}.week-row.today{border-color:var(--accent)}.access{max-width:470px;margin:45px auto;text-align:center}.access img{width:86px;height:86px;border-radius:25px;margin-bottom:25px}.access h1{font-size:29px;line-height:1.2}.access p{font-size:14px;color:var(--muted);line-height:1.8;margin:18px 0 25px}.access .primary{width:100%}.access .text-button{margin-top:8px}.loading{padding:100px 20px;text-align:center;font-size:13px;color:var(--muted)}.loader{display:block;width:27px;height:27px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;margin:0 auto 18px}.invite-link{width:100%;padding:12px;border:1px solid var(--line);border-radius:11px;color:var(--ink);background:var(--bg);font-size:13px;word-break:break-all}.chart{margin-top:25px;padding:22px}.bars{height:150px;display:flex;align-items:flex-end;gap:10px;margin-top:20px}.bar-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;flex:1;height:100%;font-size:11px;color:var(--muted)}.bar{width:100%;max-width:44px;background:var(--accent);border-radius:7px 7px 3px 3px;min-height:3px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.inline-hint{margin-top:12px;color:var(--muted);font-size:12px;line-height:1.7}.sync-banner{margin:20px 0 0;border:1px solid var(--line);border-radius:13px;padding:12px 14px;font-size:12px;line-height:1.65;display:flex;align-items:flex-start;gap:9px;color:var(--muted)}.sync-banner svg{width:17px;height:17px;margin-top:1px}.week-title{margin-top:24px}.network{padding:12px 15px;margin:0 0 16px;border:1px solid var(--red);border-radius:12px;font-size:13px;color:var(--red)}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:720px){.app{padding-left:17px;padding-right:17px}.top{padding:19px 0 25px}.brand{font-size:21px}.top-actions{gap:8px}.columns{grid-template-columns:1fr;gap:0}.aside{display:none}h1{font-size:31px}.hero .primary{width:48px;padding:0;flex-shrink:0}.hero .primary span{display:none}.week-bar{gap:3px;margin:23px 0 15px}.week-bar>.icon-button{width:24px;border:0;background:transparent}.week{gap:2px}.day{min-height:70px;border-radius:13px}.day b{font-size:18px}.day small{font-size:11px}.slot{grid-template-columns:40px minmax(0,1fr);gap:9px}.visit{padding:14px}.time{font-size:12px}.visit h3{font-size:15px}.visit-head{display:block}.status{margin-top:8px;font-size:10px}.calendar{padding:17px}.calendar-day{height:54px}.calendar-grid{gap:2px}.month-head h2{font-size:17px}.metric-row{gap:7px}.metric{padding:15px 12px}.metric strong{font-size:24px}.metric small{font-size:11px}.dialog-content{padding:20px}.mode{font-size:10px;padding:8px 9px}.section-head>small{font-size:11px}.tools .text-button{font-size:12px}}
@media(max-width:360px){.app{padding-left:12px;padding-right:12px}.slot{grid-template-columns:36px minmax(0,1fr);gap:7px}.visit{padding:12px}.fields{gap:11px}.field input,.field select{padding:10px;font-size:14px}.day b{font-size:17px}.week-bar>.icon-button{width:19px}.section-head h2{font-size:18px}.section-head h2 small{font-size:11px}.free{padding:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.day-hours{font-size:12px;white-space:nowrap;padding:8px 0;min-height:40px}
.restore-summary{display:grid;grid-template-columns:auto 1fr;gap:10px 14px;align-items:center;padding:18px;background:var(--bg);border-radius:14px;color:var(--muted);font-size:14px}
.restore-summary strong{font-size:26px;font-weight:600;color:var(--ink)}
@media(max-width:360px){.section-head h2 small{margin-left:3px}.day-hours{font-size:10px}}
