@font-face{font-family:KThai;src:url(thai-regular.ttf)}
@font-face{font-family:KThai;src:url(thai-bold.ttf);font-weight:650 1000}

.salon-shell.customer{--bg:#fff9f3;--ink:#29232a;--forest:#502f49;--muted:#695e65;--line:#e2d7d1;--pale:#f5e9e2;--lime:#f4c3a7;--orange:#a65e52;--white:#fff;--font:Arial,KThai,"Noto Sans Thai",sans-serif}
.salon-shell.customer .design button,.salon-shell.customer .design input,.salon-shell.customer .design select{font:inherit;color:inherit}
.salon-shell.customer .design button{cursor:pointer;touch-action:manipulation;background:none;border:0;padding:0;text-align:left}
.salon-shell.customer .design button:focus-visible,.salon-shell.customer .design input:focus-visible{outline:3px solid #a34744;outline-offset:2px}
.salon-shell.customer .design button:disabled{cursor:default;opacity:.5}
.salon-shell.customer .design h1,.salon-shell.customer .design h2,.salon-shell.customer .design h3,.salon-shell.customer .design h4,.salon-shell.customer .design p{margin:0}
.salon-shell.customer .design h2{font-size:24px;letter-spacing:-.6px;line-height:1.32}
.salon-shell.customer .design h3{font-size:19px;letter-spacing:-.35px;line-height:1.45}
.salon-shell.customer .design h4{font-size:16px}
.salon-shell.customer .design small,.salon-shell.customer .design .small{font-size:13px;color:var(--muted)}
.salon-shell.customer .design svg{width:21px;height:21px;flex:none;vertical-align:middle}
.salon-shell.customer .design .logo span{color:var(--orange)}
.salon-shell.customer .design .circle{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:26px}
.salon-shell.customer .design .topact{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:bold;min-height:44px}
.salon-shell.customer .design .backtitle{display:flex;align-items:center;gap:3px;font-weight:bold}

.salon-shell.customer .design .nav{display:flex;justify-content:space-evenly;height:66px}
.salon-shell.customer .design .nav button{min-width:80px;display:grid;justify-items:center;align-content:center;gap:3px;font-size:12px;color:#695e65;font-weight:bold}
.salon-shell.customer .design .nav button i{display:grid;place-items:center;width:48px;height:25px;border-radius:9px}
.salon-shell.customer .design .nav .active{color:var(--forest)}
.salon-shell.customer .design .nav .active i{background:var(--lime)}
.salon-shell.customer .design .pad{padding:18px}
.salon-shell.customer .design .section{padding:16px 18px}
.salon-shell.customer .design .section+.section{border-top:1px solid var(--line)}
.salon-shell.customer .design .row,.salon-shell.customer .design .spread{display:flex;align-items:center;gap:8px}
.salon-shell.customer .design .spread{justify-content:space-between}
.salon-shell.customer .design .wrap{flex-wrap:wrap}
.salon-shell.customer .design .muted{color:var(--muted)}
.salon-shell.customer .design .link{display:inline-flex;justify-content:center;align-items:center;gap:5px;min-height:44px;font-size:14px;font-weight:bold;text-decoration:underline;text-underline-offset:3px}
.salon-shell.customer .design .link svg{width:17px}
.salon-shell.customer .design .mainbtn,.salon-shell.customer .design .secondary{min-height:49px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;background:var(--forest);color:white;font-weight:bold;width:100%;padding:9px 12px;text-align:center}
.salon-shell.customer .design .mainbtn.lime{background:var(--lime);color:var(--forest)}
.salon-shell.customer .design .secondary{background:transparent;color:var(--forest);border:1px solid #baa5af}
.salon-shell.customer .design .actionfoot{padding:10px 16px}
.salon-shell.customer .design .actionfoot small{display:block;text-align:center;margin:0 0 6px}

.salon-shell.customer .design .locband{background:var(--forest);color:#fff;position:relative;isolation:isolate;overflow:hidden;padding:16px 18px 13px}
.salon-shell.customer .design .locband>svg{position:absolute;z-index:-1;width:59%;height:150%;right:-30px;top:-28%;opacity:.86}
.salon-shell.customer .design .locband .context{font-size:13px;color:#f4e5e6;font-weight:bold}
.salon-shell.customer .design .locname{display:flex;align-items:center;min-height:44px;gap:8px;color:white;font-weight:bold;font-size:34px;letter-spacing:-1.5px}
.salon-shell.customer .design .locname svg{width:18px}
.salon-shell.customer .design .locband .quick{display:flex;gap:8px;margin-top:8px}
.salon-shell.customer .design .quick button,.salon-shell.customer .design .locrow button{min-height:44px;border-radius:8px;padding:7px 11px;display:inline-flex;gap:5px;align-items:center;font-size:14px;font-weight:bold}
.salon-shell.customer .design .quick button{background:#58364f;color:#fff6ef;border:1px solid #9c788b}
.salon-shell.customer .design .quick svg,.salon-shell.customer .design .locrow svg{width:16px}
.salon-shell.customer .design .when{padding:13px 18px 14px;border-bottom:1px solid var(--line)}
.salon-shell.customer .design .when .heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.salon-shell.customer .design .change{font-size:14px;font-weight:bold;min-height:44px;display:inline-flex;align-items:center;gap:5px}
.salon-shell.customer .design .change svg{width:16px}
.salon-shell.customer .design .segments{display:flex;background:#f1e8e2;border-radius:11px;padding:3px;gap:3px}
.salon-shell.customer .design .segments button{flex:1;min-height:44px;text-align:center;border-radius:8px;font-weight:bold;font-size:14px}
.salon-shell.customer .design .segments .selected{background:var(--forest);color:#fff}
.salon-shell.customer .design .results{padding:13px 18px 22px}
.salon-shell.customer .design .minor{font-size:13px;color:var(--muted);font-weight:normal;letter-spacing:0}
.salon-shell.customer .design .portfolio{display:grid;grid-template-columns:1.45fr 1fr;gap:3px;width:100%;height:138px;border-radius:13px;overflow:hidden;margin:8px 0 10px}
.salon-shell.customer .design .photo,.salon-shell.customer .design .tile{height:100%;width:100%;position:relative;overflow:hidden;background:#e4d7cd}
.salon-shell.customer .design .photo img,.salon-shell.customer .design .tile img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 27%}
.salon-shell.customer .design .photo span{position:absolute;bottom:6px;left:8px;font-size:12px;font-weight:bold;background:#332331d9;color:white;border-radius:4px;padding:2px 6px}
.salon-shell.customer .design .shopname{font-size:21px;font-weight:bold;letter-spacing:-.7px;line-height:1.4}
.salon-shell.customer .design .priceline{display:flex;justify-content:space-between;align-items:center;gap:5px}
.salon-shell.customer .design .price{font-weight:bold;font-size:16px;white-space:nowrap}
.salon-shell.customer .design .subline{color:var(--muted);font-size:14px;line-height:1.55}
.salon-shell.customer .design .times{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.salon-shell.customer .design .slot,.salon-shell.customer .design .chip{border:1px solid #caaebc;border-radius:8px;background:#fbf1ee;min-height:44px;padding:7px 13px;text-align:center;color:var(--forest);font-weight:bold}
.salon-shell.customer .design .slot{font-size:17px;font-variant-numeric:tabular-nums}
.salon-shell.customer .design .slot.on,.salon-shell.customer .design .chip.on{background:var(--forest);color:white;border-color:var(--forest)}
.salon-shell.customer .design .slot:disabled{background:#eee;color:#777;text-decoration:line-through}
.salon-shell.customer .design .shopline{display:flex;align-items:center;justify-content:space-between;gap:4px}
.salon-shell.customer .design .slotlabel{margin-top:9px;font-size:14px;font-weight:bold}
.salon-shell.customer .design .results .link{margin-top:4px}

.salon-shell.customer .design .stylehead{padding:11px 18px 0}
.salon-shell.customer .design .stylehead h2{font-size:31px;letter-spacing:-1.3px;margin:2px 0 1px}
.salon-shell.customer .design .locrow{display:flex;gap:3px;align-items:center;justify-content:space-between}
.salon-shell.customer .design .locrow button{padding:5px 0}
.salon-shell.customer .design .locrow button:first-child{color:var(--forest)}
.salon-shell.customer .design .locrow button+button{font-size:13px}
.salon-shell.customer .design .lookfeed{padding:6px 18px 20px}
.salon-shell.customer .design .heroPhoto{position:relative;display:block;width:100%;height:clamp(225px,34dvh,295px);border-radius:14px;overflow:hidden;background:#a26735}
.salon-shell.customer .design .heroPhoto img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
.salon-shell.customer .design .heroPhoto:after{content:"";position:absolute;inset:52% 0 0;background:linear-gradient(transparent,#301a24d9)}
.salon-shell.customer .design .cap{position:absolute;z-index:1;left:15px;bottom:12px;color:white}
.salon-shell.customer .design .cap b{display:block;font-size:28px;letter-spacing:-1px;line-height:1.2}
.salon-shell.customer .design .cap small{color:white;font-size:13px}
.salon-shell.customer .design .lookmeta{padding:10px 0 14px}
.salon-shell.customer .design .lookmeta .mainbtn{margin-top:10px}
.salon-shell.customer .design .twogrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:7px}
.salon-shell.customer .design .tile{display:block;border-radius:11px;height:113px}
.salon-shell.customer .design .tile img{object-position:center 23%}
.salon-shell.customer .design .thumbname{font-weight:bold;font-size:14px;display:block;padding-top:4px}

.salon-shell.customer .design .cover{height:206px;margin:0;width:100%;object-fit:cover;object-position:center 25%;display:block}
.salon-shell.customer .design .rules{display:grid;gap:6px;margin-top:13px}
.salon-shell.customer .design .rules p{display:flex;align-items:center;gap:8px;font-size:14px}
.salon-shell.customer .design .rules svg{width:17px}
.salon-shell.customer .design .receipt{border-top:1px solid var(--line);margin-top:10px}
.salon-shell.customer .design .line{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px}
.salon-shell.customer .design .line span{color:var(--muted)}
.salon-shell.customer .design .line b{text-align:right}
.salon-shell.customer .design .big{font-size:27px;letter-spacing:-.7px}
.salon-shell.customer .design .choice{width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:11px;min-height:52px;margin-top:8px}
.salon-shell.customer .design .choice.on{border-color:#9e7189;background:var(--pale)}
.salon-shell.customer .design .choice .tick{margin-left:auto;font-weight:bold;color:#593249}
.salon-shell.customer .design .avatar{width:44px;height:44px;object-fit:cover;border-radius:50%}
.salon-shell.customer .design .note{background:var(--pale);border-radius:9px;padding:12px 14px;margin:12px 0;color:#542f43;font-size:14px}
.salon-shell.customer .design .alert{background:#ffeadb;color:#782e0e}
.salon-shell.customer .design .kicker{font-size:13px;color:var(--muted);font-weight:bold}
.salon-shell.customer .design .statusbox{background:var(--forest);color:white;padding:21px 18px;position:relative}
.salon-shell.customer .design .statusbox .kicker{color:var(--lime)}
.salon-shell.customer .design .statusbox h2{margin:5px 0}
.salon-shell.customer .design .statusbox p{font-size:15px;color:#f7e6e8}
.salon-shell.customer .design .ticket{margin-top:14px;border-top:2px dashed #d9c4cd}
.salon-shell.customer .design .ticket .time{font-size:34px;font-weight:750;letter-spacing:-1.5px}
.salon-shell.customer .design .listappt{width:100%;padding:15px 0;border-bottom:1px solid var(--line);display:grid;gap:5px}
.salon-shell.customer .design .statepill{display:inline-flex;align-items:center;align-self:start;justify-self:start;color:var(--forest);background:var(--pale);padding:3px 8px;font-size:13px;font-weight:bold;border-radius:5px}
.salon-shell.customer .design .empty{padding:30px 18px;text-align:center}
.salon-shell.customer .design .empty button{margin-top:17px}
.salon-shell.customer .design .sheetbody>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.salon-shell.customer .design .sheetbody>header h2{font-size:22px}
.salon-shell.customer .design .sheetbody{padding:15px 18px 22px}
.salon-shell.customer .design .sheetbody input[type=text]{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #ad929e;min-height:47px;margin:4px 0 10px;background:#fff}
.salon-shell.customer .design .sheetbody .mainbtn,.salon-shell.customer .design .sheetbody .secondary{margin-top:10px}
.salon-shell.customer .design .sheetbody label{font-weight:bold;font-size:14px}
.salon-shell.customer .design .mapbox{height:218px;background:#57364a;display:grid;place-items:center;isolation:isolate;position:relative;border-radius:12px;overflow:hidden}
.salon-shell.customer .design .mapbox>svg{z-index:-1;position:absolute;width:100%;height:100%}
.salon-shell.customer .design .mapbox button{background:#f9ddc8;color:var(--forest);font-weight:bold;padding:10px;border-radius:9px;box-shadow:0 4px 12px #39213340}
.salon-shell.customer .design .checkrow{display:flex;align-items:center;gap:9px;min-height:48px}
.salon-shell.customer .design .checkrow input{width:20px;height:20px}
.salon-shell.customer .design .opts{margin-top:10px}
.salon-shell.customer .design .opt{width:100%;padding:12px 2px;border-bottom:1px solid var(--line);min-height:48px}
.salon-shell.customer .design .opt:disabled{color:#7b6873}
.salon-shell.customer .design .dategrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.salon-shell.customer .design .dategrid button{border:1px solid var(--line);padding:8px;text-align:center;border-radius:8px}
.salon-shell.customer .design .dategrid .on{background:var(--forest);color:white}
.salon-shell.customer .design .dategrid button:disabled{background:#eee}
.salon-shell.customer .design .stack{display:grid;gap:10px}
.salon-shell.customer .design .proof{border:1px dashed #a78b98;border-radius:10px;padding:14px;display:grid;gap:7px}
.salon-shell.customer .design .proof input{width:100%;font-size:14px}
.salon-shell.customer .design .proof .link{justify-self:start}
.salon-shell.customer .design .sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}

@media(max-height:740px){.salon-shell.customer .design .portfolio{height:109px}
.salon-shell.customer .design .locband{padding-top:10px;padding-bottom:10px}
.salon-shell.customer .design .when{padding-top:5px;padding-bottom:10px}
.salon-shell.customer .design .results{padding-top:10px}
}

.salon-shell.customer .design .photo img,.salon-shell.customer .design .heroPhoto img,.salon-shell.customer .design .tile img,.salon-shell.customer .design .cover{object-position:center 4%}
.salon-shell.customer .design .locband>svg{mask-image:linear-gradient(to right,transparent,#000 24%)}
.salon-shell.customer .design .shopname{min-height:44px}
.salon-shell.customer .design .locname{max-width:100%;overflow-wrap:anywhere}
.salon-shell.customer .design .thumbname{min-height:26px}


.salon-shell.customer .design .wordmark{display:flex;align-items:center;gap:.045em;color:#502f49;font:700 31px/.98 Georgia,"Times New Roman",serif;letter-spacing:-.065em;white-space:nowrap}
.salon-shell.customer .design .wordmark img{display:block;height:1.05em;width:1.05em;object-fit:contain;margin:0 .02em}
.salon-shell.customer .design .brandhint{font-size:12px;color:var(--muted);line-height:1.35}
.salon-shell.customer .design .locband{padding:12px 18px}
.salon-shell.customer .design .locband>svg{width:57%;right:-5%;top:-12%;height:127%;opacity:.68}
.salon-shell.customer .design .locband .quick{margin-top:1px}
.salon-shell.customer .design .quick button{border:0;background:transparent;padding:0 14px 0 0;color:#fff4ef}
.salon-shell.customer .design .quick button+button{padding-left:10px}
.salon-shell.customer .design .context{line-height:1.45}
.salon-shell.customer .design .locname{font-size:32px;line-height:1.22;min-height:44px}
.salon-shell.customer .design .segments .selected{background:#f4c3a7;color:#44213b}
.salon-shell.customer .design .segments{background:#f3ebe5}
.salon-shell.customer .design .portfolio{grid-template-columns:1fr 1fr;gap:4px;border-radius:11px}
.salon-shell.customer .design .photo span{background:linear-gradient(transparent,#241823bd);border-radius:0;left:0;right:0;bottom:0;padding:18px 10px 6px;text-align:left}
.salon-shell.customer .design .slot{background:transparent;border-color:#bf9eb0}
.salon-shell.customer .design .results .times{display:grid;grid-template-columns:repeat(3,1fr)}
.salon-shell.customer .design .results .slot{background:#502f49;color:white;border-color:#502f49}
.salon-shell.customer .design .shopname,.salon-shell.customer .design .price,.salon-shell.customer .design .link,.salon-shell.customer .design .stylehead h2{color:var(--forest)}
.salon-shell.customer .design .stylehead h2{margin:6px 0 1px}
.salon-shell.customer .design .heroPhoto img{object-position:50% 44%}
.salon-shell.customer .design .heroPhoto .cap small{font:italic 21px Georgia,serif}
.salon-shell.customer .design .cap b{font-size:30px}
.salon-shell.customer .design .nav button i{border-radius:99px}
.salon-shell.customer .design .price{font-size:18px}
.salon-shell.customer .design .link:hover{text-decoration:underline}
.salon-shell.customer .design .dategrid button{min-height:44px}
.salon-shell.customer .design .quick button:focus-visible,.salon-shell.customer .design .locname:focus-visible{outline-color:#ffd5b9}
.salon-shell.customer .design .photo:hover img,.salon-shell.customer .design .heroPhoto:hover img{filter:brightness(1.04)}
.salon-shell.customer .design .lookmeta .priceline strong{font-size:15px}
.salon-shell.customer .design .lookmeta{padding:9px 0 14px}
.salon-shell.customer .design .nav .active{font-weight:bold}
.salon-shell.customer .design .quick button{min-width:82px}
.salon-shell.customer .design .locrow button:first-child{max-width:54%;overflow-wrap:anywhere}

@media(max-height:740px){.salon-shell.customer .design .locband{padding-top:9px;padding-bottom:5px}
.salon-shell.customer .design .when .heading{margin-bottom:3px}
}


/* App shell, native safe areas and server-backed booking screens. */
.salon-shell.customer{background:var(--bg);color:var(--ink);font:16px/1.5 var(--font);--pine:var(--forest);--rule:var(--line);height:100dvh;scroll-behavior:auto;scroll-padding-bottom:84px}
.salon-shell.customer main,.salon-shell.customer .brandbar,.salon-shell.customer .tabbar{box-sizing:border-box;width:min(100%,680px);margin:auto}
.salon-shell.customer main{padding:0 0 82px;min-height:calc(100dvh - 73px)}
.salon-shell.customer .brandbar{height:73px;display:flex;align-items:center;justify-content:space-between;padding:7px 18px;background:var(--bg);border-bottom:1px solid var(--line)}
.customer .wordlink{display:grid;gap:3px;text-decoration:none;color:var(--forest)}
.customer .brand-actions{display:flex;align-items:center;gap:6px}
.customer .bottom{position:fixed;bottom:0;left:0;right:0;z-index:8;background:var(--bg);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.customer .tabbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:64px;align-items:center}
.customer .tabbar a{display:grid;justify-items:center;align-content:center;gap:3px;min-height:48px;padding:3px 2px;min-width:0;text-decoration:none;color:var(--muted);font-size:12px;font-weight:bold}
.customer .tabbar i{display:grid;place-items:center;width:48px;height:26px;border-radius:99px}
.customer .tabbar a[aria-current]{color:var(--forest)}
.customer .tabbar a[aria-current] i{background:var(--lime)}
.customer .customer-profile { max-width: 600px; margin: auto; padding: clamp(24px,5vw,40px) clamp(16px,4vw,32px) 4px; }
.customer-profile h1 { margin: 0 0 18px; color: #392533; font-size: clamp(26px,5vw,34px); line-height: 1.3; }
.customer-profile .profile-identity { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px; padding: clamp(20px,5vw,32px); border-radius: 18px; background: #502f49; color: white; }
.profile-identity h2 { margin: 0; font-size: clamp(21px,4vw,28px); line-height: 1.35; color: white; overflow-wrap: anywhere; }
.profile-identity p { color: #f0dfeb; margin: 4px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.profile-avatar { display: grid; place-items: center; width: 52px; height: 52px; background: #f4ceb5; color: #502f49; border-radius: 50%; }
.profile-avatar svg { width: 27px; height: 27px; }
.profile-auth-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.profile-auth-actions button { min-height: 44px; border: 1px solid #eed1dd; background: transparent; color: white; border-radius: 10px; padding: 8px 17px; font-weight: 700; }
.profile-auth-actions button:first-child { color: #45243b; border-color: #f4ceb5; background: #f4ceb5; }
.profile-links { margin-top: 24px; background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.profile-link { display: grid; grid-template-columns: 22px minmax(0,1fr) 16px; align-items: center; gap: 14px; padding: 16px; color: #452c40; text-decoration: none; min-height: 56px; }
.profile-link + .profile-link { border-top: 1px solid var(--line); }
.profile-link:hover { background: #fbf4ef; }
.profile-link svg:last-child { width: 16px; color: #897984; }
.profile-session { margin: 24px 0 4px; }
.salon-shell.customer .customer-profile .profile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #77384f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
@media (hover: hover) {
  .salon-shell.customer .customer-profile .profile-logout:hover:enabled { background: #662d43; }
}
.salon-shell.customer .customer-profile .profile-logout:active:enabled { background: #542337; }
.salon-shell.customer .customer-profile .profile-logout:focus-visible { outline: 3px solid #58283e; outline-offset: 3px; }
.salon-shell.customer .customer-profile .profile-logout:disabled { background: #735966; opacity: 1; cursor: progress; }
.profile-feedback p,.profile-session p { margin: 10px 0; }
.customer-profile :is(a,button):focus-visible { outline: 3px solid #ab6b8e; outline-offset: -3px; }
.customer .locband{background:var(--forest) url(area.svg) no-repeat right center!important;background-size:auto 132%!important}
.customer .locband::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--forest) 27%,transparent 72%)}
.customer .design .booking-date{border:0;background:transparent;font-size:14px;font-weight:bold;color:var(--forest);min-height:44px}
.customer .design .booking-date:before{content:"";width:17px;height:17px;margin-right:6px;background:currentColor;mask:url(calendar.svg) center/contain no-repeat}
.customer .design .portfolio.single{grid-template-columns:1fr}
.customer .results article+article{border-top:1px solid var(--line);padding-top:8px;margin-top:4px}
.customer .design .shopname{text-align:left}
.customer .design .heroPhoto .cap{text-align:left}
.customer .design .photo img{height:100%;width:100%}
.customer .design .branch-image img{width:100%;height:205px;object-fit:cover}
.customer .bs-dialog{border:1px solid var(--line);border-radius:17px;background:var(--bg);color:var(--ink);width:min(460px,96vw);max-height:85dvh;padding:16px}
.customer .bs-dialog::backdrop{background:#2c1826a8}
.customer .bs-dialog iframe{display:block;width:100%;border:0;height:270px}
.customer .bs-dialog .sheetbody{padding:0}
.customer .section select,.customer .bs-dialog select{width:100%;min-height:44px;background:white;border:1px solid var(--line);margin:6px 0;padding:8px}
.customer .design .mainbtn{margin-top:12px}
.customer .branch-page>.link,.customer .booking-summary>.link{margin-left:18px}
.customer .design .note{margin:10px 0}
.customer .design .choice.on{background:var(--pale);color:var(--forest);border-color:#9e7189}
.customer .booking-summary dl,.customer .detail dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;margin:9px 0;padding:0}
.customer .booking-summary :is(dt,dd),.customer .detail :is(dt,dd){margin:0;padding:8px 0;border-bottom:1px solid var(--line)}
.customer dd{text-align:right;font-weight:bold}
.customer .booking-summary h1{font-size:27px}
.customer .appointment-page,.customer .work-layout,.customer .title,.customer main>aside{margin:0;padding:12px 18px}
.customer .appointment-page .detail{margin-top:12px;outline:0;background:white;border:1px solid var(--line);border-radius:13px;padding:18px;overflow-wrap:anywhere}
.customer .detail .status{background:var(--forest);color:white;padding:7px 12px;border-radius:6px}
.customer .detail .notice,.customer .detail .hint{background:var(--pale);color:var(--forest)}
.customer .appointment-page .primary,.customer .appointment-page .primary:hover{background:var(--forest);color:white}
.customer .work-layout{display:block}
.customer .rows button{min-height:66px}
@media(max-height:740px){.salon-shell.customer .brandbar{height:64px}.customer .tabbar{height:56px}}
@media(min-width:681px){.salon-shell.customer{background:#f1e6df}.salon-shell.customer main,.salon-shell.customer .brandbar{background:var(--bg)}}

.customer .receipt-head{background:var(--forest);color:white;margin:-18px -18px 16px;padding:18px;border-radius:12px 12px 0 0}
.customer .receipt-head small{color:var(--lime)}
.customer .receipt-head h2{margin:5px 0}
.customer .receipt-head .status{background:#fae7d9;color:var(--forest)}
.customer .work-layout .rows button{background:var(--bg);border:0;border-bottom:1px solid var(--line);border-radius:0}

.salon-shell.customer .pay-review{padding:16px 0}
.salon-shell.customer .design .proof{margin:12px 0}
.salon-shell.customer:has(.branch-page,.booking-summary) .bottom{display:none}
.salon-shell.customer :is(.branch-page,.booking-summary)>.section:last-child>.mainbtn:last-of-type{position:sticky;bottom:8px;box-shadow:0 0 0 7px var(--bg);z-index:2}
.customer .design .branch-page select{max-width:100%}
@media(max-height:680px){
 .salon-shell.customer .brandbar{height:57px}
 .salon-shell.customer .design .portfolio{height:82px;margin-top:5px;margin-bottom:5px}
 .salon-shell.customer .design .locband{padding-top:5px;padding-bottom:4px}
}

.customer .design h2.locname{margin:0;color:white}
.salon-shell.customer .design .locband .quick{flex-wrap:wrap;gap:8px;margin-top:6px}
.salon-shell.customer .design .locband .quick button{background:var(--forest);border:1px solid #b499ab;padding:8px 12px;border-radius:9px}
.salon-shell.customer .design .locband .quick button:first-child{background:#f4c4aa;border-color:#f4c4aa;color:#392337}
.customer .area-matches{display:grid;max-height:27dvh;overflow:auto;margin:6px 0 12px}
.customer .design .trial-shop{padding:15px 18px;border-top:1px solid var(--line)}
.customer .trial-shop button{display:flex;align-items:center;gap:12px;width:100%;text-align:left}
.customer .trial-shop img{width:68px;height:68px;object-fit:cover;border-radius:9px}
.customer .trial-shop small{display:block}
.customer .trial-shop button>span:last-child{margin-left:auto}

/* Customer discovery */
.salon-shell.customer .discovery-layout {
  --paper: #fdf9f4;
  --gutter: clamp(16px, 4.1vw, 32px);
  background: var(--paper);
}
.customer .search-panel { padding: 0 var(--gutter); }
.customer .area-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  isolation: isolate;
  margin-inline: calc(-1 * var(--gutter));
  min-height: 106px;
  padding: 12px var(--gutter);
  background: #4f2d48;
  color: #fffaf6;
}
.customer .area-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: url(area.svg) right 40% / 62% auto no-repeat;
  mask-image: linear-gradient(90deg, transparent 34%, #000 72%);
  opacity: .9;
}
.salon-shell.customer .design .area-switch {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 52px;
  padding: 3px 6px;
  color: inherit;
}
.salon-shell.customer .design .area-switch:focus-visible { outline-color: #ffd5ae; }
.salon-shell.customer .area-copy strong svg { width: 15px; height: 15px; vertical-align: middle; }
.salon-shell.customer .design .nearby-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #fff6ed;
  border-radius: 9px;
  background: #4c3045df;
  color: #fffaf6;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
}
.salon-shell.customer .design .nearby-action:hover { background: #65465e; }
.salon-shell.customer .nearby-action svg { width: 18px; height: 18px; }
.salon-shell.customer .design .search-panel .area-feedback {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.customer .area-copy { display: grid; gap: 1px; overflow-wrap: anywhere; }
.salon-shell.customer .design .area-copy small { display: flex; align-items: center; gap: 5px; color: #ffd6b4; font-size: 14px; }
.salon-shell.customer .area-copy small svg { width: 16px; height: 16px; }
.customer .area-copy strong { font-size: 24px; line-height: 1.35; }
.salon-shell.customer .design .area-dialog .area-locate {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  width: 100%;
  margin: 9px 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f5e6dc;
  color: var(--forest);
  font-weight: bold;
}
.customer .area-dialog { box-sizing: border-box; }
.customer .area-dialog label { display: block; }
.salon-shell.customer .area-dialog input[type=search] {
  box-sizing: border-box;
  width: 100%;
  margin: 5px 0 12px;
  padding: 10px 12px;
  border: 1px solid #bcaeb3;
  border-radius: 9px;
  background: white;
  min-height: 44px;
}
.salon-shell.customer .area-dialog .location-status { margin: 8px 0 14px; }
.salon-shell.customer .search-panel .when { padding: 7px 0 11px; }
.salon-shell.customer .search-panel .when h3 { font-size: 18px; }
.salon-shell.customer .search-panel .booking-date { font-size: 15px; }
.salon-shell.customer .search-panel .segments { padding: 0; border-radius: 8px; background: #f2eae2; }
.salon-shell.customer .search-panel .segments button { border-radius: 8px; }
.salon-shell.customer .search-panel .segments .selected {
  color: var(--forest);
  background: #f6c9ab;
  box-shadow: none;
}
.salon-shell.customer .design .shop-feed { min-width: 0; padding: 11px var(--gutter) 24px; }
.salon-shell.customer .shop-feed > .spread { margin-bottom: 9px; }
.salon-shell.customer .shop-feed h3 { font-size: 23px; color: var(--forest); }
.customer .shop-feed .salon-preview {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.customer .shop-feed .salon-preview + .salon-preview { margin-top: 20px; padding-top: 0; }
.salon-shell.customer .shop-feed .portfolio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  height: auto;
  aspect-ratio: 2.27;
  border-radius: 8px;
  margin: 0;
}
.salon-shell.customer .shop-feed .portfolio.single { grid-template-columns: 1fr; }
.salon-shell.customer .shop-feed .photo img { object-position: center 43%; }
.salon-shell.customer .shop-feed .photo span {
  font-size: 13px;
  background: linear-gradient(transparent, #21141cce);
  padding: 24px 13px 9px;
}

.salon-shell.customer .shop-feed .shopname { font-size: 23px; }
.customer .shop-feed .subline { margin: 2px 0 8px; }
.customer .shop-feed .times:empty { display: none; }
.salon-shell.customer .shop-feed .slot {
  background: #f7eff3;
  color: var(--forest);
  border: 1px solid #dfced8;
  border-radius: 10px;
}
.salon-shell.customer .shop-feed .slot:hover { background: #ecdde5; }
.salon-shell.customer .shop-feed .queue-status {
  font-size: 14px;
  padding: 8px 0;
  color: var(--muted);
}
.salon-shell.customer .shop-feed .profile-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: 1px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: 14px;
  font-weight: bold;
}
/* Shared brand header and a single primary action for each shop. */
.customer .brandbar .customer-wordmark {
  display: block;
  width: clamp(140px, 41vw, 180px);
  height: auto;
}
.customer .brandbar .wordlink { min-width: 0; }
.customer .brandbar .customer-wordmark { max-width: 100%; }
.salon-shell.customer .brand-actions { flex: none; gap: 4px; }
.salon-shell.customer .brand-actions > button {
  min-height: 44px;
  padding-inline: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  color: var(--forest);
}
.salon-shell.customer .brand-actions > .header-signup {
  padding-inline: 14px;
  border-radius: 10px;
  color: white;
  background: var(--forest);
}
.salon-shell.customer { scroll-padding-top: 73px; }
.salon-shell.customer .brandbar {
  position: sticky;
  top: 0;
  z-index: 7;
  column-gap: 8px;
}
.salon-shell.customer .app-details { padding: 4px 16px; }
.salon-shell.customer .app-details button {
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px;
}
.salon-shell.customer .shop-feed .preview-info { padding: 5px 0 0; }
.salon-shell.customer .shop-feed .salon-preview .photo { border-radius: 0; }
.salon-shell.customer .shop-feed .salon-preview .profile-action {
  min-height: 44px;
  font-size: 16px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--forest);
}
.salon-shell.customer .shop-feed .profile-action:hover { text-decoration: underline; }
.salon-shell.customer .shop-feed .profile-action svg { width: 17px; height: 17px; }
.salon-shell.customer .shop-feed .preview-info .slot {
  color: #fff;
  font-size: 18px;
  background: var(--forest);
  border-radius: 7px;
  border: 1px solid var(--forest);
}
.salon-shell.customer .shop-feed .preview-info .slot:hover { background: #643c59; }

.salon-shell.customer .tabbar { height: 68px; }
.salon-shell.customer .tabbar a { font-size: 13px; }
.salon-shell.customer .tabbar a[aria-current] i { background: #ffd1af; }
.salon-shell.customer .shop-feed .preview-info .subline { font-size: 14px; color: #5d4e58; }
.salon-shell.customer .shop-feed .preview-info .price { font-size: 19px; }
.salon-shell.customer .shop-feed .portfolio.single { aspect-ratio: 2.27; }

@media (max-width: 859px) {
  .salon-shell.customer .brandbar { height: 67px; }
}
@media (min-width: 860px) {
  .salon-shell.customer:has(.discovery-layout) :is(main, .brandbar, .tabbar) { width: min(100%, 1120px); }
  .customer .discovery-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.6fr);
    align-items: start;
    padding: 36px var(--gutter);
    gap: 32px;
  }
  .customer .search-panel { padding: 0; }
  .customer .area-toolbar { margin: 0; border-radius: 12px; }
  .salon-shell.customer .design .shop-feed { padding: 0; }
  .salon-shell.customer .search-panel .when { padding: 14px 2px; border: 0; }
  .salon-shell.customer .search-panel .when .heading { flex-wrap: wrap; }
  .salon-shell.customer .shop-feed .portfolio { height: clamp(220px, 22vw, 280px); }
}

/* Keep the portfolio portrait and the booking controls together when comparing shops. */
.salon-shell.customer .shop-feed .shop-summary {
  display: grid;
  grid-template-columns: clamp(88px, 25%, 154px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(12px, 3vw, 20px);
  padding: 12px 0 14px;
}
.salon-shell.customer .shop-feed .shop-summary + .shop-summary { margin-top: 0; padding-top: 16px; }
.salon-shell.customer .shop-summary .portfolio.single {
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}
.salon-shell.customer .shop-summary .photo img { object-position: 50% 38%; }
.salon-shell.customer .shop-summary .preview-info { min-width: 0; padding: 0; }
.salon-shell.customer .shop-summary .priceline { display: grid; gap: 0; }
.salon-shell.customer .shop-summary .shopname { min-height: 32px; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.4; }
.salon-shell.customer .shop-summary .preview-info .price { font-size: 15px; }
.salon-shell.customer .shop-summary .preview-info .subline { margin: 3px 0 6px; font-size: 13px; }
.salon-shell.customer .shop-summary .preview-info .times { margin: 0; gap: 4px; }
.salon-shell.customer .shop-summary .preview-info .slot {
  padding: 4px 2px;
  min-height: 42px;
  min-width: 0;
  background: #f4e9ef;
  border-color: #decdd8;
  color: var(--forest);
  font-size: 15px;
}
.salon-shell.customer .shop-summary .preview-info .slot:hover { background: #ead7e2; }
.salon-shell.customer .shop-summary .profile-action { min-height: 36px; font-size: 14px; }
.customer .shop-chooser {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: clamp(6px, 2vw, 14px);
  align-items: start;
}
.salon-shell.customer .design .shop-chooser button {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0 0 8px;
  color: var(--forest);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  text-align: left;
  background: transparent;
}
.customer .shop-chooser img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 36%;
  border-radius: 11px;
}
.customer .shop-chooser strong { font-size: clamp(14px, 3.6vw, 17px); line-height: 1.4; }
.salon-shell.customer .design .shop-chooser button[aria-pressed=true] { border-bottom-color: var(--forest); }
.salon-shell.customer .shop-feed .selected-shop { padding: 10px 0; border-top: 1px solid var(--line); }
.customer .shop-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(12px, 3vw, 22px);
  margin: 6px clamp(16px, 4.1vw, 32px) 14px;
}
.salon-shell.customer .shop-intro :is(.branch-image img, .cover) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 12px;
}
.salon-shell.customer .shop-intro .section { padding: 0; border: 0; min-width: 0; }
.customer .shop-intro .section strong { color: var(--forest); }
@media (max-width: 350px) {
  .customer .shop-intro { grid-template-columns: 1fr; }
  .salon-shell.customer .shop-intro :is(.branch-image img, .cover) { aspect-ratio: 1.7; }
}

.customer .discovery-tools, .customer .map-selection {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
}
.customer .discovery-tools label, .customer .map-selection label { flex: 1; min-width: 9rem; }
.customer .discovery-tools select, .customer .map-selection select { width: 100%; }
.customer .discovery-tools .link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.customer .shop-rating { margin-top: 4px; color: var(--forest); font-size: .88rem; }
.customer .design .clip-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 4rem;
  height: 100%;
  width: 100%;
  color: #fff;
  background: #4c3049;
}
.customer .shop-chooser .clip-preview { aspect-ratio: 4 / 5; border-radius: 11px; }
.customer .shop-feed .selected-shop { touch-action: pan-y pinch-zoom; }

.customer .loading-map {
  min-height: 106px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 32px);
  color: var(--bg);
  background: linear-gradient(90deg, var(--forest) 32%, transparent 95%),
    var(--forest) url(area.svg) right center / auto 132% no-repeat;
}
.customer .loading-map strong { font-size: clamp(18px, 4vw, 22px); }
.customer .loading-locator {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
}
.customer .loading-locator::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid #ffffff40;
  border-top-color: var(--lime);
  border-right-color: var(--lime);
  border-radius: 50%;
}
.customer .loading-locator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
@media (prefers-reduced-motion: no-preference) {
  .customer .loading-locator::before { animation: salon-locate 1.4s linear infinite; }
}
@keyframes salon-locate { to { transform: rotate(1turn); } }
.customer .loading-preview { padding: 24px clamp(16px, 4.1vw, 32px) 20px; }
.customer .loading-preview :is(i, span) { display: block; border-radius: 5px; background: var(--pale); }
.customer .loading-filter { display: flex; align-items: center; justify-content: space-between; }
.customer .loading-filter i { width: 26%; height: 13px; }
.customer .loading-filter i + i { width: 19%; height: 10px; }
.customer .loading-period, .customer .loading-portraits { display: grid; grid-template-columns: repeat(3, 1fr); }
.customer .loading-period { gap: 3px; margin: 18px 0; border-radius: 10px; overflow: hidden; }
.customer .loading-period i { height: 40px; border-radius: 0; }
.customer .loading-shops { padding-top: 22px; border-top: 1px solid var(--line); }
.customer .loading-title { width: 32%; height: 17px; margin-bottom: 16px; }
.customer .loading-portraits { gap: 8px; }
.customer .loading-portraits i {
  aspect-ratio: 4 / 5;
  border-radius: 11px;
  background: linear-gradient(145deg, #f3e8e1, #eadbd4);
}
.customer .loading-portraits span { width: 72%; height: 10px; margin-top: 10px; }

.salon-shell.customer-auth {
  height: 100dvh;
  color: #342a31;
  background: #f6efe9;
  font: 16px/1.55 KThai, sans-serif;
}
.customer-auth main { display: grid; place-items: center; min-height: 100%; width: 100%; padding: 32px 20px; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  width: min(100%, 860px);
  background: #fffcf8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px #482b3910;
}
.auth-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 24px; background: #46283f; color: white; overflow: hidden; }
.auth-portrait { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 36%; }
.auth-cover::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #321f30 0%, #321f3060 28%, transparent 62%); }
.auth-back { display: inline-flex; gap: 8px; align-items: center; padding: 0 13px; min-height: 44px; color: white; background: #382534e6; border-radius: 30px; text-decoration: none; font-size: 14px; }
.auth-back span { font: 24px/1 Arial, sans-serif; }
.auth-signature { display: grid; gap: 5px; margin-top: 20px; }
.auth-signature img { width: clamp(170px, 23vw, 245px); height: auto; }
.auth-signature span { color: #f4d8c8; font-size: 14px; }
.auth-content { padding: clamp(28px, 4vw, 56px); }
.customer-auth h1 { font-size: clamp(30px, 4vw, 38px); line-height: 1.32; margin: 0 0 4px; color: #502f49; }
.customer-auth .auth-intro { color: #695e65; margin: 0 0 26px; }
.auth-content form { display: grid; gap: 18px; }
.auth-content label { display: block; font-weight: 700; }
.auth-content input { display: block; width: 100%; height: 50px; padding: 10px 14px; margin-top: 6px; border: 1px solid #baabb2; background: white; color: #342a31; border-radius: 9px; font-weight: 400; }
.auth-content input::placeholder { color: #796e75; }
.auth-password { position: relative; }
.auth-password input { padding-right: 72px; }
.auth-content .auth-password button { position: absolute; right: 4px; top: 3px; height: 44px; padding: 0 12px; background: transparent; border: 0; color: #59334f; font-size: 14px; }
.auth-content small { display: block; margin-top: 5px; color: #695e65; }
.auth-content .auth-submit { min-height: 50px; margin-top: 4px; background: #502f49; color: white; border: 0; font-weight: 700; }
.auth-content .auth-submit:hover { background: #42253b; }
.auth-content .auth-line { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; background: #06c755; color: white; border: 0; font-weight: 700; }
.auth-content .auth-line:hover { background: #05b34d; }
.auth-content .auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; background: white; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.auth-content .auth-line + .auth-google { margin-top: 10px; }
.auth-content .auth-google:hover { background: #f8fafd; }
.auth-line-progress {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fffcf8;
  color: #502f49;
  text-align: center;
}
.auth-line-progress img { width: min(200px, 70vw); height: auto; }
.auth-line-progress p { margin: 0; color: #665860; font-size: 16px; font-weight: 500; }
.auth-line-progress-track {
  width: 64px; height: 3px; margin: 26px 0 16px;
  border-radius: 3px; overflow: hidden; background: #eadedc;
}
.auth-line-progress-track::after {
  content: ""; display: block; width: 50%; height: 100%;
  border-radius: inherit; background: #80536c;
  animation: auth-line-travel 1.3s ease-in-out infinite alternate;
}
@keyframes auth-line-travel { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .auth-line-progress-track::after { animation: none; margin: auto; }
}
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #695e65; font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid #e2d7d1; }
.auth-switch { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 14px; }
.auth-switch button { color: #502f49; border: 0; background: transparent; min-height: 44px; padding: 5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.auth-policy { display: block; width: fit-content; margin: 20px auto 0; padding: 8px 0; color: #695e65; font-size: 13px; text-underline-offset: 3px; }
.auth-content .auth-error { color: #862f36; background: #fbecea; border-radius: 8px; margin: 0; padding: 10px 12px; }
.customer-auth :is(a, button, input):focus-visible { outline: 3px solid #9d587e; outline-offset: 2px; }
@media (max-width: 650px) {
  .customer-auth main { padding: 0; align-items: start; background: #fffcf8; }
  .auth-layout { display: block; max-width: 480px; border-radius: 0; box-shadow: none; }
  .auth-cover { min-height: 172px; padding: 12px 22px 21px; }
  .auth-cover::after { background: linear-gradient(90deg, #46283f 32%, #46283feb 44%, transparent 79%); }
  .auth-portrait { width: 55%; left: auto; object-position: center 42%; }
  .auth-back { padding-left: 0; background: transparent; }
  .auth-content { padding: 26px clamp(20px, 6vw, 32px) max(24px, env(safe-area-inset-bottom)); }
}

/* Keep a recognisable destination on screen while its data arrives. */
.customer-skeleton { position: relative; }
.shop-skeleton-card { position: relative; overflow: hidden; display: grid; gap: 24px; padding: clamp(20px, 5vw, 32px); background: #fff; border: 1px solid #e3d8d1; border-radius: 16px; }
.shop-skeleton-card i { display: block; background: #eee6e1; border-radius: 5px; }
.shop-skeleton-summary { display: flex; align-items: center; gap: 14px; }
.shop-skeleton-summary .shop-skeleton-photo { width: 56px; height: 56px; border-radius: 14px; }
.shop-skeleton-summary div { display: grid; gap: 9px; flex: 1; }
.shop-skeleton-summary div i:first-child { width: min(60%, 190px); height: 16px; }
.shop-skeleton-summary div i:last-child { width: min(82%, 250px); height: 10px; }
.shop-skeleton-field { display: grid; gap: 8px; }
.shop-skeleton-field i:first-child { width: 22%; max-width: 115px; height: 12px; }
.shop-skeleton-field i:last-child { height: 44px; border-radius: 8px; background: #f4eeea; }
@media (prefers-reduced-motion: no-preference) {
  .shop-skeleton-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 25%, rgb(255 255 255 / .82) 50%, transparent 75%); animation: salon-shimmer 1.6s ease-in-out -.35s infinite; }
}
.loading-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skeleton-card { display: flex; align-items: center; gap: 16px; padding: clamp(20px,5vw,32px); background: white; border: 1px solid var(--line); border-radius: 18px; }
.skeleton-symbol, .skeleton-copy i { display: block; background: #ece3df; border-radius: 6px; }
.skeleton-symbol { flex: none; width: 48px; height: 48px; border-radius: 15px; }
.skeleton-copy { display: grid; gap: 9px; width: min(60%,240px); }
.skeleton-copy i { height: 10px; }
.skeleton-copy i:first-child { width: 65%; height: 15px; }
.skeleton-profile .skeleton-card { background: #502f49; border: none; }
.skeleton-profile .skeleton-symbol { width: 52px; height: 52px; border-radius: 50%; background: #cdb0bd; }
.skeleton-profile .skeleton-copy i { background: #805f78; }
.skeleton-looks { padding: 16px; }
.skeleton-looks .skeleton-card { min-height: 190px; align-items: end; background: #efe5e1; }
.skeleton-looks .skeleton-symbol { display: none; }
.skeleton-looks .skeleton-copy i { background: #d9c9c6; }
.skeleton-appointments .skeleton-card, .customer .appointments-empty { display: grid; justify-items: center; align-content: center; min-height: 212px; }
.skeleton-appointments .skeleton-copy { justify-items: center; width: min(76%,270px); }
.skeleton-appointments .skeleton-copy i { width: 100%; }
.skeleton-appointments .skeleton-copy i:first-child { width: 52%; }
.customer .appointments-empty { text-align: center; padding: 24px 16px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.appointments-empty .empty-calendar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #f8e5db; color: #57364e; }
.customer .appointments-empty h2 { margin: 12px 0 2px; color: #42283c; font-size: 21px; }
.appointments-empty p { margin: 2px 0 12px; color: var(--muted); font-size: 15px; }
.appointments-empty a { display: inline-grid; place-items: center; min-height: 44px; padding: 6px 22px; border-radius: 10px; background: #502f49; color: white; font-weight: 700; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .customer-skeleton :is(.skeleton-symbol, .skeleton-copy i) {
    position: relative;
    overflow: hidden;
  }
  .customer-skeleton :is(.skeleton-symbol, .skeleton-copy i)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 12%, rgb(255 255 255 / .8) 50%, transparent 88%);
    animation: salon-shimmer 1.4s linear -.35s infinite;
  }
  .skeleton-profile .skeleton-symbol::after { animation-delay: -.65s; }
  @keyframes salon-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
  }
}
.customer .appointments-heading { padding: clamp(24px,5vw,40px) 18px 4px; }
.appointments-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.customer .appointments-toolbar h1 { margin: 0; color: #392533; font-size: clamp(26px,5vw,34px); line-height: 1.3; }
.customer .appointments-toolbar button { min-height: 44px; padding: 6px 12px; border-radius: 10px; background: transparent; color: #56364d; font-weight: 600; }

/* Customer-facing shop application */
.salon-shell.join-shop { background: #fbf7f3; color: #302630; font: 16px/1.55 Arial,KThai,sans-serif; }
.join-shop header { background: #fffaf6; border-color: #e8ded8; }
.join-shop .mast, .join-shop main { width: min(calc(100% - 36px), 800px); }
.join-shop .mast { min-height: 68px; gap: 12px; padding: 8px 0; }
.join-shop .brand img { max-width: 34vw; height: auto; }
.join-shop .join-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 650; color: #502f49; }
.join-back span { font: 26px/1 system-ui; }
.join-shop main { display: grid; align-content: start; gap: 16px; padding: 20px 0 max(40px,env(safe-area-inset-bottom)); }
.join-shop .join-heading { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: #502f49; color: white; }
.join-heading::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 32%; background: linear-gradient(90deg,#502f49,rgba(80,47,73,.72) 23%,rgba(80,47,73,.12)),url('/salon/design/stylist.webp') center 38% / cover; }
.join-heading > div { max-width: 76%; padding: clamp(22px,4vw,38px); }
.join-shop .join-heading h1 { color: #fff; margin: 0; font-size: clamp(28px,4.5vw,40px); line-height: 1.25; letter-spacing: -.025em; }
.join-shop .join-heading p { color: #fff2eb; margin: 7px 0 0; font-size: 15px; text-wrap: balance; }
.join-shop .panel { background: #fff; border: 1px solid #e3d7d1; border-radius: 16px; margin: 0; padding: clamp(18px,4vw,32px); }
.join-shop .join-editor form { display: grid; gap: 24px; }
.join-shop .join-editor form > * { margin: 0; }
.join-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.join-shop .join-editor fieldset + fieldset { padding-top: 22px; position: relative; }
.join-shop .join-editor fieldset + fieldset::before { content: ""; position: absolute; inset: 0 0 auto; border-top: 1px solid #e9dfda; }
.join-editor legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 21px; font-weight: 700; color: #502f49; }
.join-editor legend + * { clear: both; }
.join-fields { display: grid; gap: 16px 20px; }
.join-wide { grid-column: 1/-1; }
.join-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(118px,1fr)); gap: 12px; margin: 12px 0; padding: 0; list-style: none; }
.join-photos:empty { margin: 8px 0; }
.join-photos li { display: grid; align-content: start; gap: 5px; min-width: 0; }
.join-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #f5eff1; }
.join-photos strong { color: #502f49; font-size: 14px; }
.join-shop .join-photos button,.join-shop .panel .join-photo-replace { position: relative; display: grid; place-items: center; margin: 0; min-height: 40px; padding: 4px; border: 1px solid #d5c5cf; border-radius: 8px; color: #502f49; background: white; font-size: 14px; cursor: pointer; }
.join-shop .panel .join-photo-replace input { position: absolute; inset: 0; opacity: 0; height: 100%; min-height: 0; cursor: pointer; }
.join-photo-replace:focus-within { outline: 2px solid #93527a; }
.join-save-spinner { display: inline-block; vertical-align: middle; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-inline-end: 8px; animation: join-save-spin .8s linear infinite; }
@keyframes join-save-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .join-save-spinner { animation: none; } }
.join-entries { display: grid; gap: 14px; }
.join-entry { min-width: 0; padding: 16px; border: 1px solid #e3d7df; border-radius: 12px; }
.join-entry-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.join-entry-heading h3 { margin: 0; font-size: 16px; color: #502f49; }
.join-shop .join-entry-heading button { min-height: 40px; background: transparent; border: 0; color: #823e55; }
.join-shop .join-add-entry { width: 100%; border: 1px dashed #ad829a; background: #faf4f7; border-radius: 10px; color: #502f49; }
.join-skills { margin-top: 14px; display: grid; gap: 4px; }
.join-skills strong { font-size: 15px; }
.join-shop .panel .join-skills label { display: flex; flex-direction: row; align-items: center; min-height: 42px; gap: 10px; font-weight: 400; cursor: pointer; }
.join-shop .panel .join-skills input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; flex: none; padding: 0; accent-color: #502f49; }
.join-shop .panel label { margin: 0; gap: 6px; font-weight: 650; font-size: 15px; }
.join-shop .panel :is(input,select,textarea) { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; margin: 0; border: 1px solid #bfb2ba; border-radius: 9px; padding: 10px 12px; color: #302630; background: white; font: 400 16px/1.5 Arial,KThai,sans-serif; }
.join-shop textarea { resize: vertical; }
.join-shop .panel input[type=file] { background: #fbf7f4; border-style: dashed; }
.join-shop input::file-selector-button { padding: 6px 10px; margin-right: 10px; color: #502f49; background: #f1e4ed; border: 0; border-radius: 5px; font: inherit; }
.join-shop .panel small { display: block; color: #655b61; margin-top: 4px; }
.join-shop .join-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.join-shop button { min-height: 46px; border-color: #c7b7c2; color: #502f49; font-weight: 650; }
.join-shop .join-actions .primary { background: #502f49; color: #fff; border-color: #502f49; flex: 1; }
.join-shop :is(input,select,textarea,summary,button,a):focus-visible { outline: 3px solid #93527a; outline-offset: 2px; }
.join-shop .panel.join-referral { padding-block: 4px; background: #fffaf7; }
.join-shop summary { cursor: pointer; padding: 12px 0; color: #502f49; font-weight: 650; }
.join-referral-body { display: grid; justify-items: start; gap: 12px; padding: 4px 0 16px; }
.join-referral-body > label,.join-referral-body > details { width: 100%; }
.join-shop p:empty { display: none; }
.join-shop p[role=status]:not(:empty) { background: #faf1eb; padding: 12px 14px; border-radius: 8px; }
@media(min-width:600px) {
  .join-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .join-shop .join-actions { justify-content: flex-end; }
  .join-shop .join-actions .primary { flex: 0 1 auto; padding-inline: 26px; }
}

.shop-entrance .entrance-pin { display: grid; gap: 8px; }
.address-picker { display: grid; gap: 6px; }
.address-input { position: relative; }
.join-shop .address-input input { padding-right: 38px; }
.address-input::after { content: ""; position: absolute; right: 15px; top: 18px; width: 7px; height: 7px; border: solid #705e6b; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.address-input:has([aria-expanded=true])::after { top: 21px; transform: rotate(225deg); }
.address-input input:disabled { background: #f6f3f4; }
.address-results { border: 1px solid #cbbcc5; border-radius: 9px; overflow: hidden; background: white; }
.address-results ul { list-style: none; max-height: min(220px,32dvh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; }
.address-results li { padding: 11px 12px; min-height: 44px; box-sizing: border-box; cursor: pointer; }
.address-results li[aria-selected=true] { color: #502f49; font-weight: 700; }
.address-results li:hover,.address-results li[data-active] { background: #f5ebf1; }
.join-shop .address-results p { margin: 0; padding: 12px; color: #655b61; }
.join-shop .entrance-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; background: #faf1ec; color: #502f49; border: 1px solid #d3b7c5; border-radius: 12px; }
.entrance-open span { font: 25px/1 system-ui; }
.entrance-open span:last-child { margin-left: auto; }
.entrance-link { border-top: 1px solid #e8ded8; }
.entrance-link button { margin-top: 8px; }
.entrance-map { position: relative; min-height: 0; height: 190px; overflow: hidden; border-radius: 12px; background: #f4efea; }
.entrance-canvas,.entrance-map-status { width: 100%; height: 100%; }
.entrance-map-status { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; background: #faf6f2; }
.entrance-map button { min-height: 0; }
.join-shop .entrance-dialog { width: min(680px,100%); height: min(820px,100dvh); max-width: 100%; max-height: 100dvh; padding: 0; border: none; border-radius: 18px; color: #302630; background: #fffaf6; }
.entrance-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.entrance-dialog::backdrop { background: rgb(45 31 42 / .48); }
.entrance-top,.entrance-controls,.entrance-confirm { display: flex; align-items: center; gap: 10px; }
.entrance-top { padding: 8px 16px; border-bottom: 1px solid #e8ded8; }
.join-shop .entrance-top h2 { margin: 0; font-size: 21px; }
.join-shop .entrance-top button { font-size: 27px; border: 0; background: transparent; }
.entrance-tools { padding: 10px 16px; }
.join-shop .entrance-tools p { margin: 0 0 8px; font-size: 14px; }
.entrance-controls { flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.join-shop .entrance-controls button { font-size: 14px; padding-inline: 10px; }
.entrance-controls div { display: flex; gap: 3px; }
.join-shop .entrance-controls [aria-pressed=true],.join-shop .entrance-confirm .primary { color: white; background: #502f49; border-color: #502f49; }
.entrance-dialog .entrance-map { height: 100%; border-radius: 0; }
.entrance-confirm { padding: 12px 16px max(12px,env(safe-area-inset-bottom)); }
.entrance-confirm .primary { flex: 1; }
@media(max-width:600px){.join-shop .entrance-dialog { width:100%; height:100dvh; border-radius:0; } }

.join-shop .recruit-row {border-top:1px solid #e6dbdf;padding-block:16px;margin-top:16px}
.join-shop .recruit-row h3,.join-shop .recruit-row p {margin:0 0 8px}
.join-shop .recruit-invite input {width:100%;margin-bottom:12px}
.join-shop .recruit-back {
  justify-self: start;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #655a62;
  font-size: 14px;
  font-weight: 400;
}
.join-shop .recruit-back:hover { text-decoration: underline; text-underline-offset: .2em; }

.salon-fee-qr canvas {display:block;width:min(100%,300px);height:auto;margin:0 auto}.annual-charge,.annual-settings .panel {display:grid;gap:12px}.annual-charge label,.annual-settings label {display:grid;gap:6px}.annual-settings {max-width:680px}.annual-charge h3,.annual-charge p,.annual-settings .panel p {margin:0}.annual-charge input {max-width:100%}
