/* Maya Nails: one stylesheet for the clients' page and Maya's page.
   The look follows the printed price list: paper background, Didot for Latin
   and numbers, light Hebrew, hairlines, one pink accent. Phone layout only;
   on a wide screen the page stays a centred phone-width column. */

:root {
  --ink: #2b2224;
  --mut: #7d6d70;
  --faint: #b5a9ab;
  --pink: #d68b9c;
  --pink-d: #bf6f83;
  --blush: #f8ebed;
  --line: rgba(43, 34, 36, .13);
  --line-2: rgba(43, 34, 36, .36);
  --card: #fffdfc;
  --danger: #b24c58;
  --ok: #4f8a66;
  --lat: Didot, "Bodoni Moda", "Bodoni 72", "Times New Roman", serif;
  --heb: Heebo, Assistant, -apple-system, "Segoe UI", Arial, sans-serif;
  --w: 460px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: #ece5e2; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--heb); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--ink);
  min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

#app {
  max-width: var(--w); margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative;
  background:
    radial-gradient(ellipse 95% 420px at 45% 120px, #fff 0%, rgba(255, 255, 255, 0) 75%),
    linear-gradient(170deg, #fff 0%, #faf7f5 45%, #f3ece9 100%);
  box-shadow: 0 0 80px rgba(90, 60, 60, .1);
}

.lat { font-family: var(--lat); font-weight: 400; }
.it { font-style: italic; }
.muted { color: var(--mut); }
.center { text-align: center; }
.ic { display: inline-flex; flex: none; }

/* ---------- brand header ---------- */

.brand { text-align: center; padding: 46px 24px 6px; }
.brand .hr { height: 1px; background: var(--line-2); width: 74%; margin: 0 auto; }
.logo { font-family: var(--lat); font-weight: 400; font-size: 39px; letter-spacing: .1em; padding-left: .1em; direction: ltr; line-height: 1; margin-top: 34px; white-space: nowrap; }
.brand .sub { font-family: var(--lat); font-style: italic; font-size: 19px; direction: ltr; margin: 12px 0 30px; line-height: 1; }
.brand.small { padding-top: 34px; }
.brand.small .logo { font-size: 30px; margin-top: 26px; }
.brand.small .sub { font-size: 16px; margin-bottom: 24px; }

.page { padding: 18px 20px calc(120px + var(--safe-b)); }
.sec { padding: 34px 0 6px; }
.sec-title { font-weight: 200; font-size: 32px; text-align: center; line-height: 1; margin-bottom: 26px; }
.sec-title:after { content: ""; display: block; width: 44px; height: 1px; background: var(--pink); margin: 16px auto 0; }
.eyebrow { font-size: 13px; letter-spacing: .08em; color: var(--pink-d); font-weight: 400; margin-bottom: 8px; }
.h3 { font-weight: 300; font-size: 19px; margin: 24px 2px 14px; }
.hint { font-size: 13.5px; color: var(--mut); line-height: 1.55; }
.empty { text-align: center; color: var(--mut); padding: 34px 10px; font-size: 15px; }
.loading { text-align: center; color: var(--mut); padding: 70px 10px; }

/* ---------- buttons ---------- */

.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 54px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 400; font-size: 17px;
  text-decoration: none; white-space: nowrap; transition: transform .12s, opacity .2s, background .2s;
}
.btn:active { transform: scale(.975); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.soft { background: var(--blush); border-color: transparent; color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(178, 76, 88, .45); }
.btn.sm { height: 46px; font-size: 15px; padding: 0 14px; }
.btn[disabled] { opacity: .32; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: grid; gap: 10px; }
.link { color: var(--mut); text-decoration: underline; text-underline-offset: 3px; font-size: 14.5px; padding: 8px 4px; }
.link.danger { color: var(--danger); }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.iconbtn:active { background: var(--blush); }

/* Bottom action bar, pinned over the page. */
.cta-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--w)); z-index: 20;
  padding: 26px 20px calc(18px + var(--safe-b));
  background: linear-gradient(to top, #f6f0ed 62%, rgba(246, 240, 237, 0));
}

/* ---------- cards ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 6px 24px rgba(120, 90, 90, .06); }
.card + .card { margin-top: 14px; }
.card h3 { font-weight: 400; font-size: 17px; margin-bottom: 4px; }
.card .hint { margin-bottom: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 400; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--blush); color: var(--pink-d); margin-inline-start: 8px; vertical-align: middle; white-space: nowrap; }
.pill.off { background: #efe9e7; color: var(--mut); }

/* ---------- client home: own appointment ---------- */

.mine { margin-top: 18px; border-color: rgba(214, 139, 156, .5); }
.mine-when { display: flex; align-items: baseline; gap: 12px; font-size: 18px; }
.mine-when .big { font-size: 34px; line-height: 1.1; }
.mine .cal-add { margin: 14px 0 6px; }

/* one calendar button; the Apple / Google choice opens under it */
.cal-add { display: grid; gap: 10px; }
.cal-add .row2 { animation: drop .2s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- price list ---------- */

.pg { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.pg:last-child { border-bottom: 0; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pname { font-size: 23px; line-height: 1.25; }
.pname small { font-size: 14.5px; color: var(--mut); margin-inline-start: 8px; }
.price { direction: ltr; font-family: var(--lat); font-size: 25px; white-space: nowrap; line-height: 1; }
.price i { font-style: normal; margin: 0 3px; }
.price .cur { font-family: var(--heb); font-weight: 300; font-size: .72em; margin-left: 4px; }
.psub { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0 0 0; margin-inline-start: 16px; color: var(--mut); font-size: 17px; }
.psub .price { font-size: 19px; color: var(--ink); }
.var-lat { font-family: var(--lat); font-style: italic; direction: ltr; display: inline-block; }
.price-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 22px; }
.notes { font-size: 14px; line-height: 1.6; color: var(--mut); }
.notes p { padding-inline-start: 12px; text-indent: -12px; }
.notes p:before { content: "* "; color: var(--pink); }
.notes p + p { margin-top: 4px; }
.nail { flex: none; direction: ltr; }
.nail svg { width: 78px; height: auto; display: block; }

/* ---------- gallery ---------- */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #efe8e5; padding: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.lb { position: fixed; inset: 0; background: rgba(28, 20, 22, .97); z-index: 90; }
.lb-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-item { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 64px 0; }
.lb-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; color: #fff; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.lb-count { position: absolute; bottom: calc(22px + var(--safe-b)); left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 16px; letter-spacing: .08em; direction: ltr; }

/* ---------- client home: cover, round logo, contact row ---------- */

.cover { position: relative; height: 216px; background: linear-gradient(160deg, #f6e9ea, #efe4e0); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.cover:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(to top, #fdfbfa, rgba(253, 251, 250, 0)); }
.cover.none { height: 120px; }
.seal {
  position: relative; z-index: 2; width: 112px; height: 112px; margin: -66px auto 0; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(90, 60, 60, .18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; direction: ltr;
}
.seal:before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid var(--pink); opacity: .75; }
.seal b { font-family: var(--lat); font-weight: 400; font-size: 36px; letter-spacing: .06em; padding-left: .06em; line-height: 1; }
.seal i { font-family: var(--lat); font-style: italic; font-size: 11.5px; line-height: 1; margin-top: 5px; color: var(--mut); }
.hero { text-align: center; padding: 18px 20px 0; }
.hero .logo { margin-top: 0; font-size: 37px; }
.hero .sub { font-family: var(--lat); font-style: italic; font-size: 18px; direction: ltr; line-height: 1; margin-top: 10px; }
.hero-addr { display: block; color: var(--mut); font-size: 16.5px; margin-top: 18px; text-decoration: none; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 20px; text-decoration: none; margin-top: 6px; direction: ltr; }
.quick { display: flex; justify-content: center; gap: 22px; padding: 20px 0 24px; }
.quick a { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: flex; align-items: center; justify-content: center; transition: transform .12s, background .2s; }
.quick a:active { transform: scale(.94); background: var(--blush); }
.rule { height: 1px; background: var(--line-2); opacity: .6; margin: 0 20px; }
.home { padding-top: 22px; }
.home .mine:first-child { margin-top: 0; }
.home .mine { margin-bottom: 22px; }

/* Work photos as one rounded block: two large tiles, then three small ones. */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; border-radius: 22px; overflow: hidden; }
.mosaic .ph { border-radius: 0; grid-column: span 3; aspect-ratio: 1; }
.mosaic .ph.s2 { grid-column: span 2; }
.mosaic .ph.s6 { grid-column: span 6; aspect-ratio: 16 / 11; }
.ph .more { position: absolute; inset: 0; background: rgba(43, 34, 36, .52); color: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--lat); font-size: 23px; }

.tabs { display: flex; gap: 6px; padding: 0 6px; margin-top: 28px; border-bottom: 1px solid var(--line-2); }
.tabs button { padding: 11px 20px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 13px 13px 0 0; color: var(--mut); font-size: 16.5px; margin-bottom: -1px; }
.tabs button.on { background: var(--card); color: var(--ink); font-weight: 400; border-color: var(--line-2); box-shadow: 0 1px 0 var(--card); }
.panel { border: 1px solid var(--line-2); border-radius: 18px; background: rgba(255, 253, 252, .7); padding: 4px 16px; margin-top: 20px; }
.hrow { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 2px; border-top: 1px solid var(--line); font-size: 17px; }
.hrow:first-child { border-top: 0; }
.hrow .lat { font-size: 18.5px; }
.hrow.closed { color: var(--faint); }
.hrow.today { font-weight: 400; }

/* ---------- contact footer ---------- */

.contacts { display: grid; gap: 4px; justify-items: center; padding: 6px 0 0; }
.contact { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 12px; font-size: 16.5px; }
.contact .ic { color: var(--pink-d); }
.hours { text-align: center; color: var(--mut); font-size: 15px; line-height: 1.8; margin-top: 10px; }
.hours b { font-weight: 400; color: var(--ink); }
.foot-mark { text-align: center; font-family: var(--lat); font-style: italic; color: var(--faint); font-size: 14px; padding: 34px 0 0; direction: ltr; }

/* ---------- booking flow ---------- */

.topbar { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; height: 60px; padding: 0 10px; background: rgba(255, 253, 252, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tb-title { text-align: center; font-size: 18px; font-weight: 400; }
.steps { position: absolute; bottom: -1px; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; direction: rtl; }
.steps i { height: 2px; background: transparent; transition: background .3s; }
.steps i.on { background: var(--pink); }

.svc { padding: 16px 18px 8px; }
.svc-name { font-size: 22px; font-weight: 300; padding-bottom: 8px; }
.svc-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border-top: 1px solid var(--line); text-align: start; }
.svc-var { flex: 1; display: flex; flex-direction: column; align-items: flex-start; font-size: 19px; line-height: 1.3; }
.svc-var small { font-size: 13.5px; color: var(--mut); font-family: var(--heb); font-style: normal; }
.svc-opt .ic { color: var(--faint); }
.svc-opt:active { opacity: .6; }

.picked { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 4px 16px; font-size: 16px; }
.datestrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 6px; margin: 0 -20px; scrollbar-width: none; scroll-snap-type: x proximity; }
.datestrip::-webkit-scrollbar { display: none; }
.day { flex: 0 0 58px; height: 82px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: center; position: relative; transition: background .2s, color .2s; }
.day small { font-size: 12px; color: var(--mut); line-height: 1.2; }
.day b { font-size: 25px; line-height: 1.15; font-weight: 400; }
.day.off { opacity: .34; }
.day.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.on small { color: rgba(255, 255, 255, .7); }
.day .dot { position: absolute; top: 8px; left: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { height: 50px; border-radius: 15px; border: 1px solid var(--line); background: var(--card); font-size: 19px; letter-spacing: .02em; transition: background .15s, color .15s; }
.slot.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.sum { display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 16.5px; }
.sum-row > span:first-child { color: var(--mut); font-size: 14.5px; flex: none; }
.sum-row > span:last-child { text-align: end; }
.sum-row .lat { font-size: 19px; }
.sum-row .price { font-size: 21px; }

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13.5px; color: var(--mut); margin: 0 4px 6px; }
.inp { width: 100%; height: 52px; border-radius: 15px; border: 1px solid var(--line-2); background: #fff; padding: 0 16px; font-size: 16.5px; font-weight: 300; outline: 0; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
textarea.inp { height: auto; padding: 13px 16px; resize: none; line-height: 1.5; }
.inp:focus { border-color: var(--pink-d); box-shadow: 0 0 0 3px rgba(214, 139, 156, .2); }
.inp[dir="ltr"] { text-align: left; }
select.inp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237d6d70' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-left: 38px; }
input[type="date"].inp, input[type="time"].inp { display: flex; align-items: center; min-width: 0; font-family: var(--lat); font-size: 18px; }
/* Bot trap field: invisible, but not pushed off-screen (that would add sideways scroll in RTL). */
.hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }

.done { text-align: center; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: 28px; padding-bottom: 56px; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--pink); color: var(--pink-d); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--blush); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-title { font-weight: 200; font-size: 36px; line-height: 1.1; margin-bottom: 8px; }
.done .card { text-align: start; margin: 26px 0 22px; }
.done .eyebrow { margin-bottom: 12px; }
.done .notes { text-align: start; margin: 22px 4px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
/* The pinned action bar is left out: an animated transform would move it off its place. */
.rise > :not(.cta-bar) { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .05s; }
.rise > *:nth-child(3) { animation-delay: .1s; }
.rise > *:nth-child(4) { animation-delay: .15s; }
.rise > *:nth-child(n+5) { animation-delay: .2s; }

/* ---------- sheets and toasts ---------- */

.backdrop { position: fixed; inset: 0; background: rgba(43, 34, 36, .4); z-index: 50; opacity: 0; transition: opacity .28s; }
.backdrop.on { opacity: 1; }
.sheet {
  position: fixed; bottom: 0; left: 50%; width: min(100%, var(--w)); transform: translate(-50%, 104%); z-index: 51;
  background: var(--card); border-radius: 28px 28px 0 0; padding: 10px 20px calc(22px + var(--safe-b));
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; transition: transform .34s cubic-bezier(.2, .85, .2, 1);
  box-shadow: 0 -10px 40px rgba(60, 40, 40, .18);
}
.sheet.on { transform: translate(-50%, 0); }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 18px; }
.sheet h2 { font-weight: 300; font-size: 25px; line-height: 1.2; }
.sheet .lead { color: var(--mut); margin: 6px 0 18px; }
.sheet .stack { margin-top: 18px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kv { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.chip { height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--lat); font-size: 16px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.toast { position: fixed; bottom: calc(104px + var(--safe-b)); left: 50%; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 16px; font-size: 15px; font-weight: 400; z-index: 95; opacity: 0; transition: opacity .25s, transform .25s; max-width: min(88vw, 400px); text-align: center; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); }

/* ---------- Maya's page ---------- */

.mhead { padding: calc(20px + env(safe-area-inset-top, 0px)) 22px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mlogo { font-size: 19px; letter-spacing: .12em; direction: ltr; white-space: nowrap; }
.mtitle { font-weight: 200; font-size: 30px; line-height: 1.1; }
.admin { padding-top: 12px; padding-bottom: calc(150px + var(--safe-b)); }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--w)); z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 253, 252, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + var(--safe-b)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 12px; color: var(--faint); position: relative; font-weight: 400; }
.tab.on { color: var(--ink); }
.tab .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink-d); color: #fff; font-size: 11.5px; line-height: 18px; font-family: var(--heb); }
.fab { position: fixed; bottom: calc(86px + var(--safe-b)); left: max(18px, calc(50% - var(--w) / 2 + 18px)); width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 25; box-shadow: 0 10px 26px rgba(43, 34, 36, .3); }
.fab:active { transform: scale(.94); }

.dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 2px 12px; }
.dayhead h2 { font-weight: 300; font-size: 20px; }
.dayhead span { color: var(--mut); font-size: 14.5px; white-space: nowrap; }
.group-title { font-size: 14.5px; color: var(--mut); margin: 22px 4px 8px; }
.group-title b { color: var(--ink); font-weight: 400; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 24px rgba(120, 90, 90, .05); }
.arow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: start; border-top: 1px solid var(--line); }
.arow:first-child { border-top: 0; }
.arow:active { background: var(--blush); }
.atime { flex: 0 0 54px; font-size: 20px; line-height: 1.15; text-align: center; padding-inline-end: 12px; border-inline-end: 1px solid var(--pink); direction: ltr; }
.atime small { display: block; font-size: 13.5px; color: var(--mut); }
.abody { flex: 1; min-width: 0; }
.aname { font-size: 17.5px; font-weight: 400; line-height: 1.3; }
.abody .muted { font-size: 14.5px; }
.anote { font-size: 13.5px; color: var(--pink-d); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow > .ic { color: var(--faint); }
.arow.cancelled .aname, .arow.cancelled .atime { text-decoration: line-through; color: var(--mut); }
.arow.block { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(43, 34, 36, .035) 8px 16px); }
.arow.block .atime { border-color: var(--line-2); font-size: 17px; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--blush); border-radius: 16px; padding: 10px 16px; margin-bottom: 6px; font-size: 15px; font-weight: 400; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.preview { border-radius: 18px; max-height: 52vh; margin: 0 auto; }

.srow { display: grid; grid-template-columns: 62px 50px 1fr 1fr; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: 0; }
.srow .inp { height: 44px; padding: 0 8px; text-align: center; }
.srow.closed .inp { opacity: .3; pointer-events: none; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: #ddd4d2; transition: background .2s; }
.switch i:after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + i { background: var(--pink-d); }
.switch input:checked + i:after { transform: translateX(-18px); }
.svc-edit { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.svc-edit:first-of-type { border-top: 0; padding-top: 4px; }
.svc-edit .inp { height: 46px; padding: 0 12px; font-size: 15.5px; }
.svc-edit .r1 { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: center; }
.svc-edit .r2 { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; }
.svc-edit select.inp { padding-left: 30px; background-position: left 10px center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin-top: 10px; }
.save-bar { position: fixed; bottom: calc(66px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: min(100%, var(--w)); padding: 14px 20px; z-index: 26; background: linear-gradient(to top, #f6f0ed 70%, rgba(246, 240, 237, 0)); }
.urlbox { direction: ltr; text-align: left; font-size: 13px; color: var(--mut); background: #f6f1ef; border-radius: 12px; padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 10px; font-family: ui-monospace, Menlo, monospace; }
.auth { padding: 10px 24px 60px; }
.auth h2 { font-weight: 200; font-size: 30px; text-align: center; margin: 18px 0 6px; }
.auth .btn { margin-top: 20px; }

/* ---------- settings: text messages ---------- */

.trow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16.5px; }
.trow small { display: block; font-size: 13px; color: var(--mut); margin-top: 2px; line-height: 1.4; }
.meter { margin: 6px 4px 12px !important; font-size: 12.5px; }
.tags { direction: rtl; unicode-bidi: isolate; color: var(--ink); white-space: nowrap; }
.banner.note { display: block; font-size: 14px; line-height: 1.5; margin: 4px 0 6px; }
.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { cursor: pointer; padding: 10px 0; font-size: 15.5px; color: var(--pink-d); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary:after { content: "+"; float: left; font-family: var(--lat); font-size: 20px; line-height: 1; color: var(--mut); }
.more[open] summary:after { content: "–"; }
.testrow { display: grid; grid-template-columns: 1fr 104px; gap: 8px; }
.smslog { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.srow2 { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; text-align: start; border-top: 1px solid var(--line); font-size: 15px; }
.srow2:first-child { border-top: 0; }
.srow2 small { color: var(--mut); font-size: 12.5px; white-space: nowrap; }
.srow2 .pill { margin: 0; }
.bubble { background: var(--blush); border-radius: 18px 18px 18px 6px; padding: 12px 16px; font-size: 16px; line-height: 1.55; margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- booking step 1: treatments that open, length guide at the bottom ---------- */

.step1 { display: flex; flex-direction: column; min-height: calc(100vh - 198px - var(--safe-b)); min-height: calc(100dvh - 198px - var(--safe-b)); }
.acc { display: grid; gap: 12px; }
.acc .svc { padding: 0 18px; margin: 0; }
.acc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 19px 0; text-align: start; }
.acc-head .svc-name { flex: 1; padding: 0; }
.acc-head .price { font-size: 17px; color: var(--mut); }
.acc-head .ic { color: var(--faint); transition: transform .25s; }
.svc.open .acc-head .ic { transform: rotate(180deg); }
.acc-body { animation: drop .22s ease-out; padding-bottom: 4px; }
.guide { margin: auto 0 0; padding-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.guide .nail svg { width: 58px; }
.guide figcaption { font-size: 12px; letter-spacing: .08em; color: var(--mut); }

/* ---------- signing in with a phone number ---------- */

.acct-in { margin-top: 18px; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 4px 0; font-size: 16.5px; }
.acct > span { display: inline-flex; align-items: center; gap: 8px; }
.acct .ic { color: var(--pink-d); }
.inp.code { text-align: center; font-size: 28px; letter-spacing: .28em; padding-left: .28em; height: 60px; }
.inp[disabled] { opacity: .55; }

/* ---------- booking: summary rows, note box, done screen ---------- */

.irow { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16.5px; }
.irow .ic { color: var(--mut); flex: none; }
.irow .lat { font-size: 18.5px; }
textarea.notebox { margin-top: 12px; }
.party { width: 196px; margin: 0 auto 14px; animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.party svg { width: 100%; height: auto; display: block; }
.party .bits { animation: bits .7s .15s ease-out both; transform-origin: 100px 100px; }
@keyframes bits { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
.done .done-title { font-weight: 300; font-size: 30px; }
.done-actions { width: min(100%, 310px); margin: 30px auto 0; }

.banner.bad { background: #fbe9ea; color: var(--danger); width: 100%; text-align: start; }

/* typed like a password (dots), but a plain text field, so the browser's password manager does not fill it */
.inp.secret:not(:placeholder-shown) { -webkit-text-security: disc; }
.inp.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .03em; }
.inp.mono::placeholder { font-family: var(--heb); letter-spacing: 0; }

/* SMS account: "saved" tags and the connection check */
.field > span .tag { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; margin-inline-start: 8px; vertical-align: 1px; }
.tag.on { background: #e6f1ea; color: var(--ok); }
.tag.off { background: #fbe9ea; color: var(--danger); }
.conn { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f6f1ef; font-size: 14.5px; line-height: 1.45; }
.conn b { font-weight: 400; display: block; }
.conn small { display: block; font-size: 12.5px; color: var(--mut); margin-top: 3px; }
.conn.ok { background: #e6f1ea; }
.conn.ok b { color: var(--ok); }
.conn.bad { background: #fbe9ea; }
.conn.bad b { color: var(--danger); }
.conn .btn { width: auto; justify-self: start; background: rgba(255, 255, 255, .6); }
