:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202340;background:#fff;font-synthesis:none;--line:#e6e6ec;--muted:#83869b;--orange:#e7ae83;--navy:#202340}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #bd8457;outline-offset:3px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}a{color:inherit}#app{height:100dvh}.workspace{height:100%;display:flex;flex-direction:column;overflow:hidden}.top{flex:none;background:linear-gradient(180deg,#e7ae83 0%,#f3d4bd 48%,#fff 100%);padding:calc(8px + env(safe-area-inset-top)) 14px 8px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:60px}.top h1,.month{font-size:17px;font-weight:650;margin:0;text-align:center}.month{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px}.month svg{width:13px;height:13px}.icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px}.week{display:grid;grid-template-columns:25px repeat(7,1fr) 25px;flex:none;align-items:center;padding:4px 4px 10px;border-bottom:1px solid var(--line);background:#fff}.week .icon{width:25px}.week .icon svg{width:18px}.day{display:flex;flex-direction:column;align-items:center;gap:5px;padding:0}.day small{font-size:11px;color:var(--muted)}.day span{width:36px;height:36px;display:grid;place-items:center;font-size:17px}.day.selected span{background:#ecd0ba;border-radius:50%}.staff-head{display:grid;flex:none;grid-template-columns:48px repeat(2,minmax(0,1fr));min-height:36px;align-items:center;border-bottom:1px solid var(--line);font-size:12px;text-align:center;font-weight:600}.calendar-scroll{flex:1;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.grid{display:grid;grid-template-columns:48px repeat(var(--columns),minmax(0,1fr));min-height:1080px;position:relative}.ruler{position:relative;background:#fafafa;border-right:1px solid var(--line)}.ruler span{position:absolute;right:7px;font-size:9px;color:#73768b;transform:translateY(-50%)}.ruler span:first-child{transform:none}.column{height:1080px;position:relative;border-right:1px solid var(--line);background:repeating-linear-gradient(to bottom,#fff 0,#fff 29px,#f1f1f4 29px,#f1f1f4 30px,#fff 30px,#fff 59px,#e0e0e6 59px,#e0e0e6 60px)}.appointment{position:absolute;left:3px;right:4px;text-align:left;padding:8px;overflow:hidden;border-radius:3px;display:flex;flex-direction:column;gap:3px;font-size:11px;color:#23243f;border-left:3px solid #00000015}.appointment strong{font-size:13px;line-height:1.25}.appointment small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appointment.block{background:repeating-linear-gradient(135deg,#e8e8eb,#e8e8eb 5px,#f1f1f3 5px,#f1f1f3 10px)}.bottom{background:#fff;border-top:1px solid var(--line);display:flex;flex:none;justify-content:space-around;padding:7px 8px calc(7px + env(safe-area-inset-bottom));z-index:3}.bottom button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:72px;color:#8d91ac;font-size:10px;padding:4px}.bottom .selected{color:#202340}.bottom svg{width:25px;height:25px}.content{flex:1;min-height:0;overflow:auto;background:#f5f6f8;padding:24px}.content.white{background:#fff;padding:0}.search{padding:16px;background:#fff;position:sticky;top:0;z-index:1}.search input{border:0;border-radius:28px;background:#f1f1f6;padding:14px 18px;width:100%;outline-offset:2px}.client{display:flex;gap:13px;align-items:center;width:100%;padding:14px 20px;border-bottom:1px solid var(--line);text-align:left}.avatar{background:#e2d8ee;color:#373152;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;flex:none;font-size:14px}.client b{font-size:16px}.client small{display:block;margin-top:4px;color:#777c95}.group{background:white;border-radius:14px;padding:0 18px;box-shadow:0 4px 15px #20234004;margin:20px 0}.menu-row{display:flex;align-items:center;gap:15px;width:100%;padding:20px 0;text-decoration:none;text-align:left;border-bottom:1px solid var(--line);font-size:16px}.menu-row:last-child{border-bottom:0}.menu-row svg:last-child{margin-left:auto;width:15px}.profile{display:flex;align-items:center;gap:15px}.profile h2{margin:0 0 4px}.profile p{margin:0;color:var(--muted);font-size:13px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.primary{background:#202340;color:white;border-radius:10px;padding:14px 18px;font-weight:600;border:0;text-decoration:none;display:inline-block;text-align:center}.secondary{border:1px solid #dadce6;background:#fff;padding:13px;border-radius:10px}.full{width:100%}.danger{color:#b03c36}.empty{text-align:center;padding:50px 24px;color:#7a7f95;font-size:14px;line-height:1.6}.welcome{max-width:420px;margin:auto;padding:12vh 26px 30px;line-height:1.6}.welcome h1{font-size:62px;font-weight:550;letter-spacing:-5px;margin:0}.welcome h2{font-size:22px}.welcome .primary{margin-top:15px}dialog{border:0;border-radius:20px;padding:24px;max-width:470px;width:calc(100% - 28px);max-height:90dvh;color:#202340;box-shadow:0 20px 90px #171b4033}dialog::backdrop{background:#1a1c3a55;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-head h2{font-size:21px;margin:0}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#73788d;margin:16px 0}.field input,.field select,.field textarea{border:1px solid #dce0e7;background:white;border-radius:8px;padding:13px;color:#202340;min-width:0;width:100%;font-size:15px}.field textarea{min-height:75px;resize:vertical}.row{display:flex;gap:12px}.row>*{flex:1}.quote{background:#f6eee7;padding:14px;border-radius:9px;display:flex;justify-content:space-between;margin:16px 0;font-size:13px}.error{color:#ad3b35;background:#fff2ee;padding:12px;border-radius:8px;font-size:13px;margin:12px 0}.error:empty{display:none}#toast{position:fixed;left:50%;bottom:95px;transform:translateX(-50%);max-width:90%;background:#202340;color:white;border-radius:10px;padding:12px 18px;font-size:13px;z-index:20;opacity:0;pointer-events:none;transition:opacity .15s}#toast.show{opacity:1}.connection{flex:none;background:#fff0db;color:#79451d;font-size:12px;padding:8px 14px;text-align:center}.total{font-size:28px;font-weight:650;margin:15px 0}.entry{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.desktop-wordmark{display:none}.service-row{display:flex;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.service-row button{font-size:13px;text-align:right}.service-row small{display:block;margin-top:5px;color:var(--muted)}@media(min-width:800px){.workspace{max-width:1400px;margin:auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}.top{height:78px;padding-inline:28px}.top h1,.month{font-size:21px}.day span{width:42px;height:42px}.bottom{gap:30px;justify-content:center}.bottom button{flex-direction:row;gap:10px;font-size:13px;padding:9px 25px}.content{padding:32px max(30px,calc((100% - 750px)/2))}.content.white{padding:0 max(0px,calc((100% - 800px)/2))}.appointment{padding:12px}.appointment strong{font-size:15px}.appointment small{font-size:11px}.staff-head{font-size:14px;min-height:45px}.grid{grid-template-columns:64px repeat(var(--columns),minmax(0,1fr))}.staff-head{grid-template-columns:64px repeat(2,minmax(0,1fr))}.ruler span{font-size:11px}}
/* Full month picker shared by the owner and barber schedules. */
.grid{min-height:var(--day-height,1080px)}.column{height:var(--day-height,1080px)}.non-working{position:absolute;left:0;right:0;background:#85899419;pointer-events:none}.appointment{z-index:1}
.staff-signout{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;font-size:14px;color:#686e85;text-decoration:none;margin-top:32px}
.access-badge{display:inline-block;background:#f3e4d6;border-radius:20px;padding:8px 12px;font-size:14px}.access-cancel{margin-top:14px}
.hours-day{border:1px solid #e5e1dc;border-radius:12px;margin:18px 0;padding:14px;min-width:0}.hours-day legend{font-size:16px;font-weight:650;padding:0 6px}.work-period{display:flex;align-items:end;gap:8px;margin:10px 0}.work-period label{flex:1;min-width:0;font-size:14px;color:#687083}.work-period input,.work-period select{display:block;margin-top:6px;width:100%;min-width:0;padding:10px 6px;border:1px solid #dce0e7;border-radius:8px;background:white;font-size:16px;color:#202340;min-height:44px}.work-period .icon{width:30px;flex:none}.work-period .icon svg{width:18px}.add-period,.remove-override{font-size:14px;min-height:44px;text-align:left;padding:8px 0;color:#77512f}.remove-override{display:block;text-decoration:underline}.off-day{font-size:14px;color:#73788d;margin:8px 0}.exception-add{align-self:center;font-size:14px}.hours-day .muted{font-size:14px}#working-hours-form .section-label{font-size:15px}#working-hours-form .module-note,#working-hours-form .muted,#staff-access-form .muted,#staff-access-form .module-note{font-size:14px}
.earnings-total{grid-column:1/-1}.earnings-total .summary-card{background:#f3e4d6;border:0;padding:24px}.earnings-total strong{font-size:36px}.earnings-breakdown{display:grid;gap:14px;padding:18px 0;border-block:1px solid var(--line);font-size:14px}.earnings-breakdown>span{display:flex;justify-content:space-between}.commission-subtitle{display:block;font-size:12px;color:var(--muted);margin-top:6px}

.bottom button{min-height:44px;justify-content:center}.bottom svg{width:27px;height:27px}
.app-menu .profile{padding:8px 2px 16px}.app-menu .profile .avatar{width:60px;height:60px;font-size:20px;background:#efddce}.app-menu .profile h2{font-size:24px}.app-menu .group{margin:24px 0;padding:0 20px}.app-menu .menu-row{min-height:69px;font-size:17px;gap:18px}.app-menu .menu-row>svg:first-child{width:28px;height:28px;color:#65517f;fill:#e8ddf6;fill-opacity:.45}.app-menu .menu-row>svg:last-child{color:#959aaf;fill:none}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.summary-card{border:1px solid #ece8e4;border-radius:13px;padding:18px 13px;background:#fcf8f5}.summary-card span{display:block;color:#777c95;font-size:12px;line-height:1.5}.summary-card strong{display:block;font-size:24px;margin-top:10px;overflow-wrap:anywhere}
.module-note{background:#faf3e9;border-radius:10px;padding:14px;color:#846044;line-height:1.6;font-size:12px}.module-empty{text-align:center;padding:25px 8px}.module-symbol{display:inline-grid;place-items:center;width:66px;height:66px;border-radius:18px;background:#efe4f6;color:#65517f}.module-symbol svg{width:33px;height:33px}.draft-badge{display:inline-block;flex:none;border-radius:15px;background:#f3ece4;color:#876345;font-size:11px;padding:5px 9px}.flow-row span:first-of-type{flex:1}.flow-row small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:6px}.flow-row{gap:10px;font-size:14px}.section-label{font-size:13px;color:#83869b;margin-top:26px}.staff-card{display:flex;gap:13px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.staff-card:last-child{border:0}.staff-card small{display:block;color:var(--muted);font-size:12px;margin-top:5px;line-height:1.5}
.date-picker{width:100%;max-width:370px;margin:0 auto}
.picker-heading{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:0 0 16px}
.picker-heading h3{font-size:18px;font-weight:650;text-align:center;margin:0}
.picker-heading .icon{border-radius:50%;background:#f8f3ef}
.picker-weekdays,.picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.picker-weekdays{color:#7c8094;font-size:11px;font-weight:600;margin-bottom:8px}
.picker-weekdays span{padding:8px 0}
.picker-days{row-gap:5px}
.picker-field{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left;font-size:14px;color:var(--ink)}
.picker-field svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}.row>.field{min-width:0}
#booking-picker{max-height:85dvh}.time-context{font-size:15px;line-height:1.7;margin:0 0 16px}.time-context small{font-size:12px;color:#83869b}
.time-options{max-height:min(440px,52dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px}
.time-option{display:flex;align-items:center;gap:12px;padding:16px 14px;border-bottom:1px solid var(--line);cursor:pointer;position:relative;border-radius:9px;min-height:52px}
.time-option input{position:absolute;opacity:0;width:1px;height:1px}.time-option:has(input:checked){background:#f5e7dc;color:#202340;font-weight:650}.time-option:has(input:focus-visible){outline:2px solid #bd8457;outline-offset:-2px}
.time-check{margin-left:auto;width:20px;height:20px;border:1.5px solid #c9cbd4;border-radius:50%}.time-option input:checked~.time-check{border:6px solid #c08a60;background:white}.time-option:hover{background:#faf4ef}
.picker-day{width:100%;aspect-ratio:1;max-height:46px;min-height:36px;border-radius:50%;font-size:15px;display:grid;place-items:center;position:relative}
.picker-day.outside{color:#b8bac6}
.picker-day.today::after{content:'';position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:#bd8457}
.picker-day.selected{background:#ecd0ba;color:#202340;font-weight:700}
.picker-day:hover{background:#f7eee6}
.picker-day.selected:hover{background:#e7c4a9}
.picker-footer{margin-top:20px;padding-top:15px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#83869b}
.picker-footer button{font-weight:650;color:#202340;font-size:13px;padding:10px 12px;border-radius:8px;background:#f8f3ef}
@media(max-width:380px){dialog:has(.date-picker){padding:18px}.picker-heading h3{font-size:16px}}
.client-toggle{display:flex;align-items:center;gap:12px;position:relative;margin:20px 0 24px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer}
.client-toggle>span:first-child{flex:1}.client-toggle strong{display:block;font-size:14px;font-weight:600}.client-toggle small{display:block;font-size:11px;color:#83869b;margin-top:6px}
.client-toggle input{position:absolute;right:0;width:48px;height:30px;opacity:0;cursor:pointer;margin:0;z-index:1}
.toggle-track{width:48px;height:28px;flex:none;border-radius:18px;background:#d9dbe2;position:relative;transition:background .15s}
.toggle-track::after{content:'';position:absolute;width:22px;height:22px;top:3px;left:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}
.client-toggle input:checked+.toggle-track{background:#ca946b}.client-toggle input:checked+.toggle-track::after{transform:translateX(20px)}
.client-toggle input:focus-visible+.toggle-track{outline:3px solid #bd8457;outline-offset:3px}
.client-notes{background:#faf5f0;border-radius:10px;padding:14px;margin:16px 0}.client-notes h3{font-size:12px;margin:0 0 8px;color:#777c95}.client-notes p{font-size:14px;line-height:1.5;white-space:pre-wrap;margin:0;overflow-wrap:anywhere}.client-booking-preference{font-size:13px;margin:18px 0;color:#777c95}.client-booking-preference strong{color:#202340}

/* Keep the ruler, staff headings and slots within the viewport. */
.grid,.staff-head{width:100%;min-width:0}.column,.staff-head>span{min-width:0}.staff-head>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 3px}.schedule-draft{position:absolute;left:3px;right:4px;z-index:5;border:2px solid #b6713e;border-radius:6px;background:#f4d9c0e8;box-shadow:0 5px 15px #78401c25;padding:8px 5px;pointer-events:none;overflow:hidden;color:#663817;display:flex;flex-direction:column;gap:5px}.schedule-draft strong{font-size:13px;white-space:nowrap}.schedule-draft small{font-size:10px;line-height:1.3}.schedule-draft.unavailable{background:#f8dcdcee;border-color:#bd4949;color:#8d3030}.dragging-draft{cursor:grabbing}.appointment{max-width:calc(100% - 7px)}

/* One native scroll surface for names and appointments; the time rail never scrolls horizontally. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior-x:none}
.workspace{--ruler-width:48px;--staff-width:148px}
.calendar-layout{--heading-height:0px;display:flex;flex:1;min-height:0;min-width:0;overflow:hidden;position:relative}
.calendar-layout.multi-staff{--heading-height:36px}
.time-rail{position:relative;flex:0 0 var(--ruler-width);overflow:hidden;background:#fafafa;border-right:1px solid var(--line);padding-top:var(--heading-height);touch-action:pan-y;z-index:2}
.time-rail::after{content:'';position:absolute;inset:0 0 auto;height:var(--heading-height);background:white;border-bottom:1px solid var(--line)}
.time-rail .ruler{position:relative;left:auto;height:var(--day-height);border:0;box-shadow:none;will-change:transform}
.calendar-scroll{overflow:auto;touch-action:pinch-zoom;overscroll-behavior:contain;scroll-behavior:auto}
.calendar-layout .grid,.calendar-layout .staff-head{width:100%;min-width:0;grid-template-columns:repeat(var(--columns),minmax(0,1fr))}
.calendar-layout.multi-staff .grid,.calendar-layout.multi-staff .staff-head{min-width:calc(var(--columns)*var(--staff-width));grid-template-columns:repeat(var(--columns),minmax(var(--staff-width),1fr))}
.calendar-layout .staff-head{position:sticky;top:0;height:var(--heading-height);min-height:var(--heading-height);z-index:8;background:white;overflow:hidden}
@media(min-width:800px){.workspace{--ruler-width:64px}.calendar-layout.multi-staff{--heading-height:45px}}
.schedule-draft{background:#edc9a650;box-shadow:none}.schedule-draft.unavailable{background:#f8dcdc70}.schedule-drag-preview{position:fixed;z-index:40;width:208px;max-width:calc(100vw - 16px);min-height:76px;border:2px solid #b6713e;border-radius:12px;background:#fff6ee;box-shadow:0 8px 28px #56311730;padding:10px 13px;color:#663817;pointer-events:none;display:flex;flex-direction:column;gap:4px}.schedule-drag-preview strong{font-size:16px;line-height:1.3;white-space:nowrap}.schedule-drag-preview small{font-size:12px;line-height:1.3}.schedule-drag-preview.unavailable{background:#fff1f1;border-color:#bd4949;color:#8d3030}@media(min-width:800px){.workspace{--ruler-width:64px}}
