:root{
  color:#101c32;
  background:#f5f7fa;
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ink:#101c32;
  --muted:#53647b;
  --line:#e0e7f0;
  --blue:#245ee4;
  --blue-dark:#194ac1;
  --navy:#041532;
  --surface:#fff;
  --wash:#f5f7fa;
  --blue-soft:#edf3ff;
  --page-inset:clamp(18px,2.6vw,32px);
}
*{box-sizing:border-box}
body{margin:0;min-width:300px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.15;letter-spacing:-.035em}
p,small{color:var(--muted)}
small{font-size:.84rem}
a{color:var(--blue)}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
:focus-visible{outline:2px solid #4385ff;outline-offset:3px}
[hidden]{display:none!important}
svg{flex:none;vertical-align:middle}
.brand{display:inline-flex;align-items:center;gap:9px;font-weight:750;font-size:18px;letter-spacing:-.045em;white-space:nowrap}
.brand-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:var(--blue-soft);color:var(--blue)}
.brand-accent{color:#245ee4}
.eyebrow{display:block;font-size:.71rem;font-weight:750;letter-spacing:.15em}
.eyebrow.accent{color:#45648a}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:7px;font-weight:650;font-size:.87rem;line-height:1.25;text-align:center;text-decoration:none;white-space:nowrap}
.button.primary{background:var(--blue);color:white;box-shadow:0 2px 5px #245ee42b}
.button.primary:hover{background:var(--blue-dark)}
.button.secondary{background:white;border-color:#dbe4f0;color:#264166}
.button.secondary:hover{background:var(--blue-soft);border-color:#cddcff}
.button.danger{background:#fff3f1;color:#9b3d32;border-color:#efd7d3}
.button.danger:hover{background:#fbe5e1}
.button.small{min-height:31px;padding:5px 10px;font-size:.8rem}
.button.wide{width:100%}
.icon-button{min-width:36px;font-size:1.2rem;padding:4px 10px}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.loading{display:grid;place-content:center;min-height:85vh;padding:20px;text-align:center;color:var(--muted)}
.auth-layout{display:grid;grid-template-columns:minmax(420px,.95fr) minmax(400px,1.05fr);min-height:100vh}
.auth-side{background:var(--navy);color:#f8fcf8;min-height:100vh;padding:44px clamp(42px,6vw,96px);display:flex;flex-direction:column;justify-content:space-between;gap:54px}
.auth-side .brand-accent,.sidebar .brand-accent{color:#dbe9ff}
.auth-side small,.auth-side p{color:#b9c9e0}
.auth-side small{font-size:.69rem;letter-spacing:.11em}
.auth-copy .eyebrow,.public-hero .eyebrow{color:#a9c7fb}
.auth-copy h1{font-size:clamp(42px,5.4vw,78px);margin:12px 0 17px;line-height:1.02;letter-spacing:-.07em}
.auth-copy p{font-size:1.06rem}
.auth-illustration{display:flex;align-items:center;gap:12px;margin-top:40px}
.auth-illustration span{display:grid;place-items:center;width:86px;height:86px;border-radius:18px;background:#e7f0ff;color:#245ee4;transform:rotate(-8deg)}
.auth-illustration i{width:11px;height:11px;border-radius:50%;background:#629dff}
.auth-illustration i:nth-of-type(2){opacity:.62}
.auth-illustration i:nth-of-type(3){opacity:.35}
.auth-main{background:var(--wash);display:grid;place-items:center;padding:40px 28px}
.auth-form{width:min(100%,405px)}
.auth-form h2{font-size:clamp(30px,4vw,42px);margin:9px 0 9px}
.auth-form form{margin-top:25px}
.mobile-brand{display:none}
.stack{display:grid;gap:15px}
label{display:grid;gap:6px;font-weight:650;font-size:.87rem}
input,textarea,select{width:100%;min-height:41px;background:white;border:1px solid #d6e0ec;border-radius:7px;padding:8px 11px;font-weight:450}
select:disabled{color:#64738a;background:var(--wash)}
textarea{resize:vertical}
.booking-details span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
input[type=checkbox]{min-height:auto;width:auto;accent-color:var(--blue)}
.checkbox{display:flex;gap:9px;align-items:center}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.optional{font-weight:400;color:var(--muted)}
.error{font-size:.88rem;background:#fff2ef;color:#8a332a;padding:9px 12px;border-radius:8px}
.layout{display:grid;grid-template-columns:196px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:var(--navy);color:white;border-right:1px solid #0e2445;padding:0 10px;overflow:auto}
.sidebar .brand{min-height:59px;margin:0 -10px;padding:0 16px;border-bottom:1px solid #192c4a}
.workspace{display:flex;align-items:center;gap:9px;min-width:0}
.workspace div{min-width:0}
.workspace strong,.workspace small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.workspace strong{color:var(--ink);font-size:.84rem;max-width:190px}
.workspace small{font-size:.72rem}
.avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;background:var(--blue);color:white;border-radius:50%;font-size:.76rem;font-weight:750}
.nav-caption{font-size:.68rem;color:#afc1da;letter-spacing:.08em;font-weight:700}
.nav-caption{margin:18px 0 8px 9px}
.sidebar nav{display:grid;gap:4px}
.sidebar .brand-icon,.auth-side .brand-icon{color:#63d9ff;background:#112d51}
.sidebar .nav-item[aria-current=page]{background:var(--blue);color:white}
.sidebar-footer{margin:auto -10px 0;padding:10px;border-top:1px solid #192c4a}
.sidebar-footer .logout:hover{background:#34223c;color:#ffc9cf}
.nav-item{display:flex;align-items:center;gap:10px;text-align:left;padding:9px 10px;border:0;background:transparent;color:#c0d0e6;border-radius:6px;font-weight:600;font-size:.86rem}
.nav-item:hover,.nav-item[aria-current]{background:#122b51;color:white}
.logout{margin-top:auto;color:#ffabab}
.top{height:59px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 var(--page-inset)}
.top-actions{display:flex;align-items:center;gap:12px}
.top-actions .button{min-height:34px}
.top strong{font-size:.91rem}
.content{padding:25px var(--page-inset) 42px}
.page-heading{display:flex;gap:14px;justify-content:space-between;align-items:end;margin-bottom:17px}
.page-heading h1{font-size:clamp(23px,2.4vw,32px);margin:4px 0 5px}
.page-heading p{font-size:.88rem}
.panel,.metric{background:var(--surface);border:1px solid var(--line);border-radius:9px}
.panel+.panel,.notice+.panel{margin-top:17px}
.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
.panel-head h2{font-size:1.07rem}
.panel-head p{font-size:.8rem;margin-top:3px}
.panel-body{padding:17px 16px}
.narrow{max-width:480px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.report-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));margin-top:14px}
.report-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.report-filter .error{flex-basis:100%}
.metric{display:flex;align-items:center;gap:10px;padding:11px 13px}
.metric div span,.metric div strong{display:block}
.metric div span{font-size:.83rem;color:var(--muted)}
.metric div strong{font-size:1.34rem;line-height:1.1;margin-top:2px}
.metric-icon,.empty-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:var(--blue-soft);color:var(--blue);flex:none}
.metric-icon.no_show{background:#fff2df;color:#92511e}
.metric-icon.cancelled{background:#feeeef;color:#ab4655}
.metric-icon.completed{background:#e4f8ed;color:#087047}
.badge{display:inline-flex;width:max-content;align-items:center;gap:5px;border-radius:5px;padding:3px 7px;font-size:.73rem;font-weight:700;background:#eef1f6;color:#4f6077;white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.badge.completed{background:#e4f8ed;color:#087047}
.badge.confirmed{background:var(--blue-soft);color:#234fae}
.badge.no_show{background:#fcf0e1;color:#914d23}
.badge.cancelled{background:#feeeef;color:#9e3747}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.toolbar strong{font-size:.86rem}
.date-filter{display:flex;align-items:center;gap:6px;font-size:.78rem}
.date-filter input{width:139px;min-height:37px;padding:6px 8px}
.segmented{display:flex;gap:3px;background:#edf2f9;padding:3px;border-radius:7px}
.segmented button{border:0;background:transparent;padding:6px 10px;border-radius:6px;font-size:.81rem;font-weight:650}
.segmented button[aria-pressed=true]{background:white;color:var(--blue-dark);box-shadow:0 1px 3px #17315920}
.empty{padding:38px 18px;text-align:center;display:grid;justify-items:center;gap:8px}
.empty-icon{width:48px;height:48px;border-radius:13px;margin-bottom:4px}
.empty h3{font-size:1.17rem}
.empty p{font-size:.87rem;max-width:400px}
.empty .button{margin-top:6px}
.booking-row,.booking-columns{display:grid;grid-template-columns:minmax(150px,1.65fr) minmax(88px,.75fr) minmax(105px,.8fr) 95px;align-items:center;gap:12px}
.booking-columns{padding:7px 16px;background:var(--wash);color:#536d92;font-size:.71rem;font-weight:750;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid var(--line)}
.booking-columns span:last-child{text-align:right}
.day-label{padding:6px 16px;background:#f9fbfe;color:#536781;font-size:.77rem;font-weight:650;border-bottom:1px solid #edf1f7}
.booking-row{padding:9px 16px;border-bottom:1px solid #edf1f7}
.booking-row:hover{background:#fbfdff}
.booking-row:last-child{border-bottom:0}
.booking-row small,.exception-row small,td small{display:block}
.booking-name{display:flex;align-items:center;gap:10px;min-width:0}
.booking-name strong,.booking-name small,.exception-row small,.table-item-text{overflow-wrap:anywhere}
.booking-time strong,.booking-name strong{font-size:.88rem}
.item-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:6px;background:#eef3fa;color:#45699d}
.booking-row .actions{justify-content:end}
.notice{padding:11px 14px;background:var(--blue-soft);border:1px solid #dce7fa;border-radius:8px;font-size:.9rem;overflow-wrap:anywhere}
.notice.warning{background:#fff6e7;border-color:#eed8b6;margin:0 0 16px;color:#70461d}
.notice.warning p{margin-top:3px;color:inherit}
.text-link{border:0;background:transparent;text-decoration:underline;color:inherit;padding:0}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left}
.table-item{display:flex;align-items:center;gap:10px}
.service-price{white-space:nowrap}
td,th{padding:9px 14px;border-bottom:1px solid #edf1f7}
tbody tr:hover{background:#fbfdff}
tbody tr:last-child td{border-bottom:0}
th{color:#536d92;font-size:.71rem;background:var(--wash);font-weight:750;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
td{font-size:.88rem}
.week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.week-row{background:#fafcff;padding:11px;border:1px solid var(--line);border-radius:8px;display:grid;align-content:start;gap:7px}
.period-editor{display:grid;gap:6px;justify-items:start;width:100%}
.period-editor>div{width:100%}
.period-row{display:flex;align-items:center;gap:6px;margin:0 0 5px;font-size:.84rem;color:var(--muted)}
.period-row input{min-height:32px;padding:4px 5px;min-width:0}
.remove{display:grid;place-items:center;flex:none;background:#eef2f8;border:0;color:#455e7d;border-radius:7px;width:31px;height:31px;font-size:1.23rem}
.remove:hover{background:#feeeef;color:#9e3747}
.exception-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid #edf0ed}
.exception-row:last-child{border-bottom:0}
dialog{width:min(100% - 28px,510px);max-height:calc(100dvh - 36px);border:1px solid var(--line);border-radius:14px;padding:21px;background:white;color:var(--ink);box-shadow:0 24px 90px #04153240}
dialog::backdrop{background:#041532a0}
.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:18px}
.dialog-heading p{font-size:.88rem;margin-top:5px}
.modal-actions{justify-content:end;margin-top:2px}
#toast{position:fixed;z-index:5;bottom:18px;right:18px;max-width:min(400px,calc(100% - 36px));padding:12px 15px;background:var(--navy);color:white;border:1px solid #29456d;border-radius:9px;box-shadow:0 5px 18px #04153230}
body:has(dialog[open]) #toast{display:none}
.public-layout{width:min(100% - 32px,690px);margin:22px auto 30px}
.public-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.public-hero{background:var(--navy);padding:clamp(19px,5vw,34px);color:white;border-radius:13px;margin-bottom:13px}
.public-hero h1{font-size:clamp(29px,6vw,49px);margin:7px 0;overflow-wrap:anywhere}
.public-hero p{color:#c5d5ef;font-size:.92rem}
.confirmation-hero{display:flex;align-items:flex-start;gap:clamp(12px,3vw,22px);background:#e5f7ed;border:1px solid #a5dec0;color:#113e29}
.confirmation-hero .eyebrow,.confirmation-hero p{color:#245b41}
.confirmation-hero h1{font-size:clamp(25px,5vw,42px)}
.confirmation-icon{display:grid;place-items:center;flex:none;width:clamp(40px,8vw,56px);aspect-ratio:1;border-radius:50%;background:#16734a;color:white}
.public-layout footer{text-align:center;margin:16px 0;color:var(--muted);font-size:.79rem}
.public-layout footer span{padding:0 5px}
.reservation{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--line);background:#f7faff;border-radius:8px;padding:12px 14px}
.reservation h3{font-size:1.24rem;margin:8px 0 4px;overflow-wrap:anywhere}
.reservation p{font-size:.86rem}
.slot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:8px}
.slot-option{display:grid;gap:3px;text-align:left;padding:9px 10px;border:1px solid #a5dec0;border-radius:8px;background:#eefaf3;color:#175d3b;cursor:pointer}
.slot-option span{font-size:.75rem}
.slot-option[data-availability="wait"]{border-color:#efd2a1;background:#fff8eb;color:#754b0e}
.slot-option[aria-pressed="true"]{border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor;font-weight:700}
.slot-option[aria-pressed="true"] span::before{content:"✓ "}
@media(max-width:880px){
  .layout{grid-template-columns:174px minmax(0,1fr)}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .week-grid{grid-template-columns:1fr}
  .form-grid.three{grid-template-columns:1fr}
  .auth-layout{grid-template-columns:1fr 1fr}
  .auth-side{padding:32px 22px}
}
@media(max-width:740px){
  .auth-layout{display:block}
  .auth-side{display:none}
  .auth-main{min-height:100dvh;padding:24px}
  .mobile-brand{display:block;margin-bottom:25px}
  .layout{display:block}
  .sidebar{position:static;height:auto;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;padding:7px 12px;border:0}
  .sidebar .brand{min-height:36px;margin:0;padding:0;border:0}
  .sidebar-footer{margin:0;padding:0;border:0}
  .sidebar .nav-caption{display:none}
  .sidebar nav{order:3;width:100%;display:flex;overflow:auto;gap:3px}
  .nav-item{font-size:.79rem;padding:8px;gap:5px;white-space:nowrap}
  .nav-item svg{width:15px;height:15px}
  .logout{margin:0}
  .top{height:54px;padding:0 12px}
  .top .button{min-height:34px}
  .top .workspace{display:none}
  .content{padding:19px 12px 30px}
  .page-heading{align-items:start;flex-direction:column;gap:10px;margin-bottom:15px}
  .page-heading h1{margin:4px 0}
  .panel-head,.panel-body,.toolbar{padding-left:12px;padding-right:12px}
  .panel-head h2{font-size:1.1rem}
  .booking-columns{display:none}
  .booking-row{padding:10px 12px;grid-template-columns:minmax(75px,1fr) minmax(48px,.5fr) auto;gap:5px 7px}
  .booking-name .item-icon{display:none}
  .booking-row .actions:empty{display:none}
  .booking-row .actions{grid-column:1/-1;justify-content:start}
  .table-wrap table{min-width:520px}
  .booking-time small{font-size:.73rem}
  .day-label{padding:8px 12px}
  .metric{padding:9px;gap:6px}
  .exception-row{padding:9px 11px}
}
@media(max-width:370px){
  .form-grid{grid-template-columns:1fr}
  .public-top .badge{font-size:.66rem}
}

.dialog-status{margin-top:10px}
.notification-list{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px}
.notification-list li{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}
.notification-list small{grid-column:1/-1}
