:root{--ink: #12232e;--muted: #4d5b66;--line: #e1e7ea;--panel: #f5f8f8;--sea: #dcebea;--sand: #efe6d8;--accent: #2e6f6a;--accent-ink: #ffffff;--danger: #b3261e;--danger-bg: #fdecea;--warn: #6e4b00;--warn-bg: #fff4d6;--ok: #1e6b3a;--ok-bg: #e6f4ea;--radius: 14px;--tabbar: 64px;--safe-bottom: env(safe-area-inset-bottom, 0px);font-family:Manrope,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:#fff;-webkit-text-size-adjust:100%}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-size:16px;line-height:1.45}body.sheet-open{overflow:hidden}a{color:var(--accent)}h1,h2,h3,h4{margin:0;letter-spacing:-.01em}h1{font-size:22px;font-weight:700}h2{font-size:19px;font-weight:700}h3{font-size:16px;font-weight:700}h4{font-size:15px;margin-bottom:8px}p{margin:0 0 8px}pre{white-space:pre-wrap;font-family:inherit;margin:0}input,select,textarea,button{font:inherit;color:inherit}input:not([type=checkbox]):not([type=color]):not([type=file]),select,textarea{width:100%;min-height:46px;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:16px}textarea{min-height:70px;resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}.shell{display:flex;flex-direction:column;height:100%}.main{flex:1;min-height:0;overflow:auto;padding-bottom:calc(var(--tabbar) + var(--safe-bottom))}.page{max-width:760px;margin:0 auto;padding:16px 16px 32px;display:flex;flex-direction:column;gap:14px}.page-head{display:flex;align-items:center;gap:10px}.page-head h1{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;height:calc(var(--tabbar) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:#fff;border-top:1px solid var(--line)}.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;font-weight:600;color:var(--muted);text-decoration:none}.tab-active{color:var(--accent)}.stack{display:flex;flex-direction:column;gap:14px}.stack-s{display:flex;flex-direction:column;gap:8px}.row{display:flex;gap:10px;align-items:flex-end}.row>*{flex:1;min-width:0}.row.center-v{align-items:center}.row.center-v>span,.row.center-v>.icon-btn{flex:0 0 auto}.actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.center{text-align:center;align-items:center}.block{display:block}.small{font-size:14px}.muted{color:var(--muted)}.danger-text{color:var(--danger)}.pre{white-space:pre-wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-weight:600;font-size:15px;text-decoration:none;color:var(--ink);cursor:pointer;white-space:nowrap}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--ink);border-color:var(--ink);color:#fff}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-ghost{border-color:transparent;background:transparent}.btn-small{min-height:38px;padding:0 12px;font-size:14px;border-radius:10px}.btn-block{width:100%}.btn-tall{min-height:60px;font-size:17px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:0;background:transparent;color:var(--ink);cursor:pointer;text-decoration:none;font-size:18px}.icon-btn:hover{background:var(--panel)}.linklike{border:0;background:none;color:var(--accent);padding:0;cursor:pointer;text-decoration:underline}.segmented{display:flex;background:var(--panel);border-radius:12px;padding:4px;gap:4px}.segmented button{flex:1;min-height:38px;border:0;border-radius:9px;background:transparent;font-weight:600;font-size:14px;color:var(--muted);cursor:pointer;padding:0 8px}.segmented button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px #12232e1f}.field{display:flex;flex-direction:column;gap:6px}.field>label{font-size:14px;font-weight:600}.hint{font-size:13px;color:var(--muted)}.toggle{display:flex;gap:12px;align-items:flex-start;cursor:pointer;min-height:44px;padding-top:4px}.toggle input{position:absolute;opacity:0;width:1px;height:1px}.toggle-track{flex:0 0 46px;height:28px;border-radius:999px;background:#c9d2d6;position:relative;transition:background .15s}.toggle-track:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s}.toggle input:checked+.toggle-track{background:var(--accent)}.toggle input:checked+.toggle-track:after{transform:translate(18px)}.toggle input:focus-visible+.toggle-track{outline:3px solid color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:2px}.banner{padding:12px 14px;border-radius:12px;font-size:15px}.banner ul{margin:6px 0 10px;padding-left:18px}.banner-info{background:var(--sea)}.banner-warn{background:var(--warn-bg);color:var(--warn)}.banner-danger{background:var(--danger-bg);color:var(--danger)}.banner-ok{background:var(--ok-bg);color:var(--ok)}.card{background:var(--panel);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:38px}.chip-row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.chip-row select{width:auto;min-height:38px;padding:6px 10px}.chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--sea);font-size:13px;font-weight:600}.chip-big{font-size:16px;padding:8px 14px}.chip-confirmed{background:#d7ecdf}.chip-arrived{background:var(--sand)}.chip-completed{background:#e3e7ea}.chip-cancelled,.chip-no_show{background:var(--danger-bg);color:var(--danger)}.note{background:var(--warn-bg);color:#4a3a00;padding:10px 12px;border-radius:10px;white-space:pre-wrap}.empty{padding:32px 16px;text-align:center;color:var(--muted)}.spinner{display:flex;align-items:center;gap:10px;justify-content:center;padding:32px;color:var(--muted)}.spinner-dot{width:18px;height:18px;border-radius:50%;border:3px solid var(--sea);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner-dot{animation:none}}.quick-actions{display:flex;gap:8px;flex-wrap:wrap}.list-plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.danger-zone{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding-top:8px;border-top:1px solid var(--line)}.details{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0}.details dt{color:var(--muted);font-size:14px}.details dd{margin:0}.details .contents{display:contents}.sheet-backdrop{position:fixed;inset:0;z-index:50;background:#12232e66;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#fff;width:100%;max-height:94vh;height:94vh;border-radius:20px 20px 0 0;display:flex;flex-direction:column;outline:none}.sheet-head{display:flex;align-items:center;gap:8px;padding:10px 8px 10px 18px;border-bottom:1px solid var(--line)}.sheet-head h2{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-body{flex:1;overflow:auto;padding:16px 18px 24px;-webkit-overflow-scrolling:touch}.sheet-foot{display:flex;gap:10px;justify-content:flex-end;padding:12px 18px calc(12px + var(--safe-bottom));border-top:1px solid var(--line)}.sheet-foot .btn{flex:1;max-width:260px}@media(min-width:760px){.sheet-backdrop{align-items:center}.sheet{width:620px;height:auto;max-height:90vh;border-radius:20px}.sheet-wide{width:900px}}.dialog{background:#fff;width:min(440px,calc(100% - 24px));margin:auto;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:12px}.dialog-actions{display:flex;flex-direction:column;gap:8px}.toasts{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--tabbar) + var(--safe-bottom) + 12px);z-index:70;display:flex;flex-direction:column;gap:8px;width:min(440px,calc(100% - 24px))}.toast{background:var(--ink);color:#fff;padding:12px 16px;border-radius:12px;font-weight:600;font-size:15px;box-shadow:0 6px 20px #12232e40}.toast-error{background:var(--danger)}.auth{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;background:#f9e9ee}.auth-logo{display:block;width:120px;height:auto;margin:0 auto 4px}.auth-card{background:#fff;border-radius:24px;padding:32px 24px;width:min(420px,100%);display:flex;flex-direction:column;gap:16px}.brand{font-weight:700;letter-spacing:.06em;font-size:14px;color:var(--muted)}.cal-page{height:100%;display:flex;flex-direction:column}.cal-head{padding:10px 12px 8px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--line)}.cal-nav{display:flex;align-items:center;gap:4px}.cal-title{font-size:18px;margin-left:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-body{flex:1;min-height:0}@media(min-width:760px){.cal-head{flex-direction:row;justify-content:space-between;align-items:center}.cal-head .segmented{width:360px}}.fab{position:fixed;right:18px;bottom:calc(var(--tabbar) + var(--safe-bottom) + 18px);z-index:30;width:60px;height:60px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px #12232e4d;cursor:pointer}.fc{--fc-border-color: var(--line);--fc-today-bg-color: #f3f9f8;--fc-now-indicator-color: var(--danger);--fc-non-business-color: rgba(18, 35, 46, .045);font-size:13px}.fc .fc-timegrid-slot{height:22px}.fc .fc-timegrid-slot-label,.fc .fc-col-header-cell-cushion{color:var(--muted);font-weight:600;text-decoration:none}.fc .fc-daygrid-day-number{color:var(--ink);text-decoration:none}.fc-event.ev{border-radius:8px;border-width:0;overflow:hidden}.fc-timegrid-event.ev{box-shadow:0 0 0 1px #fff}.fc-event.ev-confirmed{filter:saturate(1.15)}.fc-event.ev-arrived{outline:2px solid var(--ink)}.fc-event.ev-completed{opacity:.6}.fc-event.ev-blocked{background:repeating-linear-gradient(135deg,#e7ebed,#e7ebed 6px,#dfe4e7 6px 12px)!important;color:var(--muted)!important}.fc-event.ev-blocked .ev-title,.fc-event.ev-blocked .ev-sub{color:var(--muted)}.fc-event.ev-personal{background:var(--sand)!important}.fc-event.ev-personal .ev-title,.fc-event.ev-personal .ev-sub{color:#4a3a00}.ev-inner{position:relative;height:100%;padding:2px 4px;color:inherit;overflow:hidden}.ev-title{font-weight:700;font-size:13px;line-height:1.2;position:relative}.ev-sub{font-size:12px;opacity:.92;position:relative;line-height:1.2}.ev-services{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ev-alert{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-right:4px;border-radius:50%;background:#fff;color:var(--danger);font-size:11px;font-weight:800}.ev-tags{position:relative;display:flex;gap:3px;flex-wrap:wrap;margin-top:2px}.ev-tag{background:#ffffff73;border-radius:6px;padding:0 5px;font-size:11px;font-weight:700}.ev-processing{position:absolute;left:0;right:0;background:repeating-linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,.28) 5px,transparent 5px,transparent 10px);border-top:1px dashed rgba(255,255,255,.7);border-bottom:1px dashed rgba(255,255,255,.7)}.fc-daygrid-event .ev-inner{color:var(--ink)}.picker input{margin-bottom:6px}.picker-list{list-style:none;margin:0;padding:0;border:1.5px solid var(--line);border-radius:12px;overflow:hidden}.picker-list li+li{border-top:1px solid var(--line)}.picker-list button{width:100%;min-height:50px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:8px 14px;border:0;background:#fff;text-align:left;cursor:pointer}.picker-list button:hover{background:var(--panel)}.picker-new{color:var(--accent);font-weight:700}.svc-pick{display:flex;flex-direction:column;gap:10px}.svc-cat{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:4px 0}.svc-opt{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;min-height:48px;padding:6px 12px;border:1.5px solid var(--line);border-radius:12px;margin-bottom:6px;cursor:pointer}.svc-opt.on{border-color:var(--accent);background:#f0f7f6}.svc-opt input{width:20px;height:20px;accent-color:var(--accent)}.price-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.money-input{display:flex;align-items:center;gap:4px;width:120px;flex:0 0 auto}.summary{background:var(--sea);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.appt-head{display:flex;flex-direction:column;gap:4px}.appt-when{font-size:18px;font-weight:700}.money-rows{display:flex;flex-direction:column;gap:4px}.money-row{display:flex;justify-content:space-between;gap:10px}.money-row.strong{font-weight:700;border-top:1px solid var(--line);padding-top:4px}.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}.thumb{display:flex;flex-direction:column;gap:2px;border:0;padding:0;background:none;cursor:pointer;text-decoration:none;color:var(--muted);font-size:12px;text-align:left}.thumb img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:var(--sea)}.photo-full{width:100%;border-radius:12px;margin-bottom:12px}.formula{background:#fff;border-radius:10px;padding:10px 12px}.big-amount{font-size:40px;font-weight:700}.search{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:12px;padding:0 12px}.search input{border:0!important;padding-left:0!important}.client-list{list-style:none;margin:0;padding:0}.client-list li+li{border-top:1px solid var(--line)}.client-row{display:flex;align-items:center;gap:12px;padding:10px 4px;min-height:60px;color:inherit;text-decoration:none}.avatar{flex:0 0 40px;height:40px;border-radius:50%;background:var(--sea);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.client-main{flex:1;min-width:0;display:flex;flex-direction:column}.client-main strong{display:flex;align-items:center;gap:6px}.client-when{text-align:right}.client-when .next{color:var(--accent);font-weight:600}.alert-dot{width:8px;height:8px;border-radius:50%;background:var(--danger);display:inline-block}.appt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.appt-list button{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-align:left;min-height:48px;padding:8px 12px;border:0;border-radius:10px;background:#fff;cursor:pointer}.appt-list button .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patch-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.patch-row select{width:auto}.result-pass{color:var(--ok)}.result-fail{color:var(--danger)}.note-row{background:#fff;border-radius:10px;padding:8px 12px}.settings-list{list-style:none;margin:0;padding:0;border-radius:var(--radius);overflow:hidden;background:var(--panel)}.settings-list li+li{border-top:1px solid var(--line)}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;min-height:60px;color:inherit;text-decoration:none}.svc-admin{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.svc-admin li{display:flex;align-items:center;gap:8px;background:var(--panel);border-radius:12px;padding:8px 8px 8px 14px}.svc-admin-main{flex:1;min-width:0;display:flex;flex-direction:column}.svc-admin-actions{display:flex;align-items:center}.hours-day input[type=time]{max-width:140px}.gallery-admin{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.gallery-item{display:flex;flex-direction:column;gap:6px}.gallery-item img{width:100%;aspect-ratio:4 / 5;object-fit:cover;border-radius:12px;background:var(--sea)}.tpl{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:8px}.msg-row{display:flex;flex-direction:column;gap:2px;background:#fff;border-radius:10px;padding:8px 10px}.pre-scroll{max-height:260px;overflow:auto;background:#fff;padding:10px;border-radius:10px}.fc-timegrid-col:has(.seg-proc) .fc-timegrid-col-events{margin-right:28%!important}.fc .fc-timegrid-bg-harness:has(.seg-proc){left:auto!important;right:2px!important;width:calc(27% - 2px)}.fc .fc-timegrid-bg-harness:has(.pl-2-0),.fc .fc-timegrid-bg-harness:has(.pl-2-1){width:calc(13.5% - 2px)}.fc .fc-timegrid-bg-harness:has(.pl-2-0){right:calc(13.5% + 2px)!important}.fc .fc-timegrid-bg-harness:has(.pl-3-0),.fc .fc-timegrid-bg-harness:has(.pl-3-1),.fc .fc-timegrid-bg-harness:has(.pl-3-2){width:calc(9% - 2px)}.fc .fc-timegrid-bg-harness:has(.pl-3-0){right:calc(18% + 2px)!important}.fc .fc-timegrid-bg-harness:has(.pl-3-1){right:calc(9% + 2px)!important}.fc .fc-bg-event.seg-proc{background:transparent!important;opacity:1!important;height:100%;border-radius:8px;overflow:hidden;box-shadow:0 0 0 1px #fff}.proc-fill{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:4px 0}.proc-label{writing-mode:vertical-rl;font-size:11px;font-weight:700;color:var(--ink);background:#ffffffd1;border-radius:6px;padding:4px 1px;white-space:nowrap;overflow:hidden;max-height:100%}.fc-timegrid-event.ev-cont .ev-title{font-weight:600}.ev-step{font-weight:500}.item-row{display:flex;align-items:center;gap:8px}.item-name{flex:1;min-width:0}.item-move{display:flex;gap:4px}.icon-btn-s{width:32px;height:32px;min-width:32px}.icon-btn-s:disabled{opacity:.35}.steps{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.step{display:grid;grid-template-columns:46px 1fr auto auto;align-items:center;gap:8px;padding:8px 10px;border-top:1px solid var(--line)}.step:first-child{border-top:0}.step-time{font-variant-numeric:tabular-nums;font-weight:700;font-size:14px}.step-name{min-width:0;font-size:15px}.step-processing{background:repeating-linear-gradient(135deg,#f5f8f8 0 8px,#eaf2f1 8px 16px)}.step-end{grid-template-columns:46px 1fr;background:var(--panel)}.step-kind{border:0;border-radius:999px;padding:4px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.step-kind.active{background:var(--ink);color:#fff}.step-kind.processing{background:var(--sea);color:var(--accent)}.step-min{display:flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;font-size:14px}.step-min span{min-width:34px;text-align:center}.fit{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.fit>.btn.on{background:var(--sea)}.fit-panel{width:100%;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.fit-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.fit-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}.fit-slot{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;cursor:pointer;color:var(--ink)}.fit-slot strong{font-size:15px;font-variant-numeric:tabular-nums}.fit-slot span{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:600;color:var(--accent);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fit-slot.share{border-color:#b9d9d6;background:#f1f8f7}.fit-slot.on{background:var(--ink);color:#fff;border-color:var(--ink)}.fit-slot.on span{color:#fff}.share-note{display:flex;gap:8px;align-items:flex-start;color:var(--accent);font-size:14px;font-weight:600}.appt-steps{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}.appt-steps li{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:10px;background:var(--panel);font-size:14px}.appt-steps li.processing{background:repeating-linear-gradient(135deg,#f5f8f8 0 8px,#eaf2f1 8px 16px)}.appt-steps li .btn{margin-left:auto}.day-colour{display:flex;flex-direction:column;gap:6px}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{width:34px;height:34px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.swatch.on{box-shadow:0 0 0 2px var(--ink)}.palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px}.palette-cell{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--muted)}.palette-cell input[type=color]{width:52px;height:52px;padding:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px var(--line);background:none;cursor:pointer}.palette-cell input[type=color]::-webkit-color-swatch-wrapper{padding:0}.palette-cell input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}.palette-cell input[type=color]::-moz-color-swatch{border:0;border-radius:50%}.cal-preview{display:flex;flex-direction:column;gap:4px}.cal-preview div{border-radius:8px;padding:6px 10px;font-size:13px;font-weight:700}.svc-step{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:var(--radius)}.check-row{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}.check-row input{width:20px;height:20px}.stretch-btn{margin-top:8px;background:#fff}.step-svc{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stretch-btn{white-space:normal;height:auto;min-height:44px;padding:8px 12px;text-align:left;justify-content:flex-start}
