/* Settee: a customer booking app for local services. Tokens first; every value below comes from them. */
:root {
  /* colour: warm neutrals + one accent */
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --surface-2: #EEEAE2;
  --ink: #1B1A17;
  --ink-2: #5C574E;
  --ink-3: #8C867B;
  --line: #E4DFD5;
  --line-strong: #D3CDC1;
  --accent: #1F5A45;
  --accent-press: #174535;
  --accent-soft: #E1ECE5;
  --on-accent: #FFFFFF;
  --on-accent-2: #C9DED3;
  --danger: #B42318;
  --danger-soft: #FBE9E7;
  --stage: #E8E3D9;
  --map-ground: #EFEBE3;
  --map-road: #FFFFFF;
  --map-street: #F8F6F1;
  --map-block: #E2DCD0;
  --map-water: #D3E2DA;
  --sk: #ECE7DE;
  --sk-hi: #F6F3EE;

  /* type */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-large: 30px;
  --fs-title1: 24px;
  --fs-title2: 20px;
  --fs-headline: 17px;
  --fs-body: 15px;
  --fs-callout: 14px;
  --fs-caption: 13px;
  --fs-label: 12px;
  --fs-tab: 11px;

  /* space (4 px scale) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  /* depth */
  --sh-1: 0 1px 2px rgba(27, 26, 23, .06), 0 1px 1px rgba(27, 26, 23, .04);
  --sh-2: 0 10px 28px -10px rgba(27, 26, 23, .22), 0 2px 6px rgba(27, 26, 23, .06);
  --sh-device: 0 60px 120px -40px rgba(27, 26, 23, .45), 0 30px 60px -30px rgba(27, 26, 23, .30), 0 0 0 1px rgba(0, 0, 0, .55);

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;

  --tabbar-h: 64px;
  --home-ind: 0px;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
.tabbar { view-transition-name: tabbar; }
.about { view-transition-name: about; }
.statusbar { view-transition-name: statusbar; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--stage); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.45;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------- stage: device frame on wide screens ---------- */
.stage { min-height: 100dvh; display: grid; place-items: center; padding: var(--s6); }
.device {
  position: relative; width: 412px; height: min(866px, calc(100dvh - 48px)); min-height: 640px;
  padding: 11px; border-radius: 56px; background: #151412; box-shadow: var(--sh-device);
}
.device::before { /* side buttons */
  content: ""; position: absolute; left: -3px; top: 160px; width: 3px; height: 64px; border-radius: 2px 0 0 2px; background: #2a2824;
  box-shadow: 0 84px 0 #2a2824;
}
.app {
  --home-ind: 18px;
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 45px;
  background: var(--bg); display: flex; flex-direction: column; isolation: isolate; container-type: inline-size;
}
.app::after { /* home indicator */
  content: ""; position: absolute; left: 50%; bottom: 7px; width: 128px; height: 5px; margin-left: -64px; border-radius: 3px; background: var(--ink); opacity: .9; z-index: 40; pointer-events: none;
}
.statusbar {
  flex: none; height: 48px; padding: 14px 30px 0 36px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; position: relative; z-index: 6;
}
.statusbar__icons { display: flex; gap: 6px; align-items: center; }
.statusbar svg { fill: currentColor; }
.statusbar::after { /* camera island */
  content: ""; position: absolute; left: 50%; top: 11px; width: 116px; height: 32px; margin-left: -58px; border-radius: 20px; background: #0d0c0b;
}

.about { display: none; }
@media (min-width: 960px) {
  .stage { grid-template-columns: minmax(0, 400px) 412px; justify-content: center; column-gap: clamp(48px, 7vw, 112px); }
  .about { display: block; max-width: 400px; }
}
@media (max-width: 599px) {
  .stage { display: block; padding: 0; }
  .device { width: 100%; height: 100dvh; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .device::before, .statusbar, .app::after { display: none; }
  .app { border-radius: 0; --home-ind: env(safe-area-inset-bottom, 0px); padding-top: env(safe-area-inset-top, 0px); }
  body { background: var(--bg); }
}

/* ---------- about panel (desktop only) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__mark { width: 32px; height: 32px; }
.about__title { margin-top: var(--s8); font-size: 36px; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.about__lede { margin-top: var(--s4); color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.screens { margin-top: var(--s8); border-top: 1px solid var(--line-strong); }
.screens__link { display: flex; gap: var(--s4); align-items: baseline; padding: 11px var(--s2) 11px 0; border-bottom: 1px solid var(--line-strong); transition: color var(--dur-1); }
.screens__n { font-size: var(--fs-label); color: var(--ink-3); font-variant-numeric: tabular-nums; width: 20px; }
.screens__t { display: flex; flex-wrap: wrap; column-gap: var(--s3); align-items: baseline; }
.screens__name { font-weight: 600; font-size: var(--fs-body); }
.screens__desc { color: var(--ink-2); font-size: var(--fs-caption); }
.screens__link:hover .screens__name { color: var(--accent); }
.screens__link[aria-current="page"] .screens__name { color: var(--accent); }
.screens__link[aria-current="page"] .screens__n { color: var(--accent); font-weight: 700; }
.about__note { margin-top: var(--s6); display: flex; gap: var(--s2); color: var(--ink-2); font-size: var(--fs-caption); }
.about__note .ic { width: 16px; height: 16px; margin-top: 1px; }

/* ---------- app chrome ---------- */
.screen { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: var(--s8); -webkit-overflow-scrolling: touch; }
.screen::-webkit-scrollbar { display: none; }

.largetitle { flex: none; padding: var(--s2) var(--s5) var(--s3); }
.large { font-size: var(--fs-large); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.title1 { font-size: var(--fs-title1); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.title2 { font-size: var(--fs-title2); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.headline { font-size: var(--fs-headline); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-size: var(--fs-caption); color: var(--ink-2); font-weight: 500; }
.hint { color: var(--ink-2); font-size: var(--fs-callout); }
.link { color: var(--accent); font-weight: 600; font-size: var(--fs-callout); padding: 6px 0; }

.navbar {
  flex: none; height: 52px; padding: 0 var(--s2); display: grid; grid-template-columns: 44px 1fr minmax(44px, auto); align-items: center; gap: var(--s1);
  position: relative; z-index: 5; background: var(--bg);
}
.navbar__title { text-align: center; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.navbar__main { font-weight: 700; font-size: var(--fs-headline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar__sub { font-size: var(--fs-label); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar__right { display: flex; justify-content: flex-end; gap: var(--s1); }

.ibtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; position: relative;
  background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); transition: background var(--dur-1);
}
.ibtn .ic { width: 22px; height: 22px; }
.ibtn--plain { background: transparent; box-shadow: none; }
.ibtn:active { background: var(--surface-2); }

.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px var(--s2) calc(6px + var(--home-ind));
  background: var(--surface); border-top: 1px solid var(--line); position: relative; z-index: 6;
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; color: var(--ink-2); }
.tab__icon { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background var(--dur-2) var(--ease-out); }
.tab__icon .ic { width: 22px; height: 22px; }
.tab__label { font-size: var(--fs-tab); font-weight: 600; letter-spacing: .01em; }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"] .tab__icon { background: var(--accent-soft); }
.tab[aria-current="page"] .tab__label { font-weight: 700; }

.footbar {
  flex: none; display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s4) calc(var(--s3) + var(--home-ind));
  background: var(--surface); border-top: 1px solid var(--line); position: relative; z-index: 6;
}
.footbar__sum { display: flex; flex-direction: column; min-width: 0; flex: 1 1 40%; }
.footbar__k { font-size: var(--fs-caption); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footbar__v { font-weight: 700; font-size: var(--fs-headline); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grow { flex: 1 1 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 48px; padding: 0 var(--s5);
  border-radius: var(--r-md); font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1), opacity var(--dur-1);
}
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-press); }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] { background: var(--line-strong); color: var(--ink-2); cursor: not-allowed; }
.btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-3); }
.btn--quiet { color: var(--accent); padding: 0 var(--s3); }
.btn--quiet-danger { color: var(--danger); padding: 0 var(--s3); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--onaccent { background: rgba(255, 255, 255, .14); color: var(--on-accent); }
.btn--onaccent:hover { background: rgba(255, 255, 255, .22); }
.btn--sm { height: 38px; padding: 0 var(--s3); font-size: var(--fs-callout); border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- lists ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.list > li + li, .list > div + div, .list > * + .navrow, .list > .setrow + .setrow { border-top: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s2); border-radius: 6px; font-size: var(--fs-label); font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag--ok { background: var(--accent-soft); color: var(--accent); }
.tag--muted { background: var(--surface-2); color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: inline-block; margin-right: 6px; flex: none; }
.dot--open { background: var(--accent); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: var(--fs-label); background: var(--surface-2); font-variant-numeric: tabular-nums; margin-left: 4px; }

/* ---------- onboarding ---------- */
.onb-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s3) var(--s2) var(--s5); height: 52px; }
.brand--app { font-size: 18px; }
.brand--app .brand__mark { width: 28px; height: 28px; }
.screen--onb { display: flex; padding: 0; overflow: hidden; }
.onb { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.onb::-webkit-scrollbar { display: none; }
.onb__slide { flex: 0 0 100%; scroll-snap-align: start; padding: var(--s2) var(--s5) 0; display: flex; flex-direction: column; min-height: 0; }
.onb__media { flex: 1 1 auto; min-height: 180px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.onb__media img { width: 100%; height: 100%; object-fit: cover; }
.onb__step { margin-top: var(--s5); font-size: var(--fs-caption); font-weight: 600; color: var(--accent); }
.onb__title { margin-top: var(--s2); font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.onb__text { margin-top: var(--s2); color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5; min-height: 4.5em; }
.onb-foot { flex: none; padding: var(--s3) var(--s5) calc(var(--s4) + var(--home-ind)); display: flex; flex-direction: column; gap: var(--s4); align-items: center; }
.pager { display: flex; gap: 6px; }
.pager__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width var(--dur-2) var(--ease-out), background var(--dur-2); }
.pager__dot.is-on { width: 20px; background: var(--accent); }

/* ---------- home ---------- */
.home-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s4) var(--s2) var(--s5); }
.home-top__hi { font-size: var(--fs-caption); color: var(--ink-2); }
.loc { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-headline); min-height: 32px; }
.loc .ic { width: 18px; height: 18px; color: var(--accent); }
.loc .ic:last-child { width: 16px; height: 16px; color: var(--ink-2); }
.searchbox { margin: var(--s2) var(--s5) 0; display: flex; align-items: center; gap: var(--s3); height: 48px; padding: 0 var(--s4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.sect { padding: var(--s6) var(--s5) 0; }
.sect__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); }

.upnext { background: var(--accent); color: var(--on-accent); border-radius: var(--r-md); padding: var(--s4); box-shadow: var(--sh-2); }
.upnext__top { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
.upnext__when { font-size: var(--fs-title2); font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.upnext__what { margin-top: 2px; font-weight: 600; }
.upnext__where { margin-top: 2px; font-size: var(--fs-caption); color: var(--on-accent-2); }
.upnext__in { flex: none; font-size: var(--fs-label); font-weight: 700; background: rgba(255, 255, 255, .14); padding: 4px 8px; border-radius: 6px; }
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .16); }
.wk__d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: var(--r-sm); font-size: var(--fs-label); color: var(--on-accent-2); }
.wk__d b { font-size: var(--fs-callout); color: var(--on-accent); font-variant-numeric: tabular-nums; }
.wk__d.is-today span { color: var(--on-accent); font-weight: 700; }
.wk__d.is-on { background: var(--on-accent); color: var(--accent); }
.wk__d.is-on b { color: var(--accent); }
.upnext__actions { display: flex; gap: var(--s2); margin-top: var(--s3); }
.upnext__actions .btn { flex: 1; }

.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat__icon { width: 100%; max-width: 52px; aspect-ratio: 1; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); transition: border-color var(--dur-1); }
.cat__icon .ic { width: 22px; height: 22px; }
.cat:hover .cat__icon { border-color: var(--line-strong); }
.cat__label { font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); }

.pcards { display: flex; flex-direction: column; gap: var(--s5); }
.pcard { display: block; }
.pcard__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__body { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); row-gap: 2px; padding-top: var(--s3); }
.pcard__name { font-weight: 700; font-size: var(--fs-headline); letter-spacing: -.01em; }
.pcard__state { grid-column: 2; grid-row: 1; font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); align-self: center; white-space: nowrap; }
.pcard__state.is-open { color: var(--accent); }
.pcard__meta { grid-column: 1 / -1; font-size: var(--fs-caption); color: var(--ink-2); }
.pcard__next { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pcard__next .ic { width: 15px; height: 15px; color: var(--accent); }

/* ---------- skeletons ---------- */
.sk { display: block; background: var(--sk); border-radius: 6px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--sk-hi), transparent); animation: shimmer 1.1s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk--media { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.sk--line { height: 12px; margin-top: 10px; }
.sk--thumb { width: 72px; height: 72px; border-radius: var(--r-sm); flex: none; }
.sk--slot { height: 44px; border-radius: 10px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sk-card { display: block; }
.sk-row { display: flex; gap: var(--s3); padding: var(--s3); }
.sk-row__t { flex: 1; }
.sk-row__t .sk--line:first-child { margin-top: 6px; }
.sk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); padding: 0 var(--s5); }

/* ---------- search ---------- */
.searchbar { flex: none; display: flex; gap: var(--s2); padding: 0 var(--s5); }
.field-search { flex: 1; display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.field-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.field-search input::placeholder { color: var(--ink-2); }
.filterbtn { border-radius: var(--r-md); box-shadow: none; border: 1px solid var(--line); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.chips { flex: none; display: flex; gap: var(--s2); padding: var(--s3) var(--s5); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; padding: 0; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s3); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-callout); font-weight: 600; color: var(--ink);
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.chip .ic { width: 16px; height: 16px; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] .ic { color: var(--accent); }
.results-n { padding: var(--s1) var(--s5) var(--s3); font-size: var(--fs-caption); color: var(--ink-2); }
.screen > .loadable, .screen > .empty { margin: 0 var(--s5); }
.prows { }
.prow { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); transition: background var(--dur-1); }
.prow:active { background: var(--bg); }
.prow__thumb { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--surface-2); }
.prow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prow__name { font-weight: 700; }
.prow__meta { font-size: var(--fs-caption); color: var(--ink-2); display: flex; align-items: center; }
.prow__next { font-size: var(--fs-caption); font-weight: 600; font-variant-numeric: tabular-nums; }
.prow__chev { color: var(--ink-3); width: 18px; height: 18px; }

/* ---------- empty states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s10) var(--s5); gap: var(--s2); }
.empty__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); margin-bottom: var(--s2); }
.empty__icon .ic { width: 24px; height: 24px; }
.empty__title { font-weight: 700; font-size: var(--fs-headline); }
.empty__text { color: var(--ink-2); font-size: var(--fs-callout); max-width: 30ch; margin-bottom: var(--s3); }

/* ---------- place ---------- */
.navbar--float { position: absolute; left: 0; right: 0; top: 48px; background: transparent; transition: background var(--dur-2), box-shadow var(--dur-2); }
.navbar--float .navbar__main { display: none; }
.navbar--float.is-solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.navbar--float.is-solid .navbar__main { display: block; animation: titlein var(--dur-2) var(--ease-out); }
@keyframes titlein { from { opacity: 0; transform: translateY(4px); } }
.navbar--float.is-solid .ibtn { box-shadow: none; background: transparent; }
@media (max-width: 599px) { .navbar--float { top: env(safe-area-inset-top, 0px); } }
.screen--place { margin-top: -48px; }
@media (max-width: 599px) { .screen--place { margin-top: 0; } }
.place-hero { position: relative; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal__item { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; }
.gal__count { position: absolute; right: var(--s4); bottom: var(--s4); background: rgba(27, 26, 23, .72); color: #fff; font-size: var(--fs-label); font-weight: 600; padding: 4px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.place-head { padding: var(--s5) var(--s5) var(--s2); }
.place-head .title1 { margin-top: 2px; }
.place-head__meta { margin-top: var(--s2); display: flex; align-items: center; font-size: var(--fs-caption); color: var(--ink-2); font-weight: 500; flex-wrap: wrap; }
.place-head__about { margin-top: var(--s3); color: var(--ink-2); font-size: var(--fs-callout); line-height: 1.5; }
.seg--sticky {
  position: sticky; top: 100px; z-index: 4; display: flex; gap: var(--s1); padding: var(--s2) var(--s5); background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
@media (max-width: 599px) { .seg--sticky { top: 52px; } }
.seg__btn { flex: none; height: 34px; padding: 0 var(--s3); display: inline-flex; align-items: center; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-callout); color: var(--ink-2); transition: background var(--dur-1), color var(--dur-1); }
.seg__btn.is-on { background: var(--ink); color: var(--bg); }
.block { padding: var(--s6) var(--s5) 0; }
.block .headline { margin-bottom: var(--s3); }
.svc { width: 100%; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4); text-align: left; min-height: 60px; transition: background var(--dur-1); }
.svc:active { background: var(--bg); }
.svc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc__name { font-weight: 600; }
.svc__dur { font-size: var(--fs-caption); color: var(--ink-2); }
.svc__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.svc__chev { color: var(--ink-3); width: 18px; height: 18px; }
.staff-row { display: flex; gap: var(--s4); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--s1); }
.staff { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.staff__name { margin-top: 6px; font-weight: 600; font-size: var(--fs-callout); }
.staff__role { font-size: var(--fs-label); color: var(--ink-2); line-height: 1.3; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--any { background: var(--surface-2); color: var(--ink-2); }
.avatar--any .ic { width: 20px; height: 20px; }
.hours { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--line); }
.hours th, .hours td { padding: 11px var(--s4); text-align: left; font-size: var(--fs-callout); border-top: 1px solid var(--line); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }
.hours .tag { height: 20px; margin-left: 6px; background: var(--accent-soft); color: var(--accent); }
.map { border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; }
.map svg { display: block; width: 100%; height: auto; }
.addr { border-radius: 0 0 var(--r-md) var(--r-md); }
.addr__row { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); }
.addr__row .ic { color: var(--accent); margin-top: 2px; }
.addr__line { display: block; font-weight: 600; font-size: var(--fs-callout); }
.addr__sub { display: block; font-size: var(--fs-caption); color: var(--ink-2); }
.addr__actions { display: flex; border-top: 1px solid var(--line); }
.addr__actions .btn { flex: 1; border-radius: 0; height: 46px; font-size: var(--fs-callout); }
.addr__actions .btn + .btn { border-left: 1px solid var(--line); }
.fav[aria-pressed="true"] { color: var(--danger); }
.fav[aria-pressed="true"] .ic { fill: currentColor; }
.svcsheet__meta { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--fs-headline); font-variant-numeric: tabular-nums; }
.svcsheet__meta span:first-child { color: var(--ink-2); font-weight: 600; }
.svcsheet__note { margin-top: var(--s3); color: var(--ink-2); line-height: 1.5; }

/* ---------- booking ---------- */
.steps { flex: none; padding: 0 var(--s5) var(--s3); }
.steps__label { font-size: var(--fs-caption); color: var(--ink-2); font-weight: 600; }
.steps__bar { margin-top: var(--s2); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.steps__bar span { height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.steps__bar span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.steps__bar span.is-done::after { transform: scaleX(1); }
.step { padding: var(--s2) var(--s5) 0; }
.step + .step { margin-top: var(--s8); }
.js .step + .step { margin-top: 0; }
.step__t { margin-bottom: var(--s4); }
.opts { }
.opt { width: 100%; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 56px; text-align: left; cursor: pointer; transition: background var(--dur-1); position: relative; }
.opt:active { background: var(--bg); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > .ic { color: var(--ink-2); }
.opt__icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.opt__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt__main { font-weight: 600; }
.opt__sub { font-size: var(--fs-caption); color: var(--ink-2); }
.opt__right { font-weight: 700; font-variant-numeric: tabular-nums; }
.opt__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: border-color var(--dur-1); }
.opt__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--dur-2) var(--ease-out); }
.opt input:checked ~ .opt__radio { border-color: var(--accent); }
.opt input:checked ~ .opt__radio::after { transform: scale(1); }
.opt:has(input:checked) { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.opt input:focus-visible ~ .opt__radio { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt__tick { color: var(--accent); opacity: 0; transition: opacity var(--dur-1); }
.opt[aria-checked="true"] .opt__tick { opacity: 1; }
.opt[aria-checked="true"] .opt__t { font-weight: 700; }

.daypick { margin: 0 calc(var(--s5) * -1); }
.daypick__month { padding: 0 var(--s5) var(--s2); font-weight: 700; font-size: var(--fs-callout); }
.days { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px var(--s5) var(--s1); scroll-padding: 0 var(--s5); }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 52px; height: 78px; scroll-snap-align: start; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.day__w { font-size: var(--fs-label); color: var(--ink-2); font-weight: 600; }
.day__d { font-size: var(--fs-title2); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fdots { display: inline-flex; gap: 3px; height: 4px; }
.fdots i { width: 4px; height: 4px; border-radius: 2px; background: var(--accent); }
.fdots i.off { background: var(--line-strong); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day[aria-pressed="true"] .day__w { color: var(--on-accent-2); }
.day[aria-pressed="true"] .fdots i { background: var(--on-accent); }
.day[aria-pressed="true"] .fdots i.off { background: rgba(255, 255, 255, .3); }
.day:disabled { cursor: not-allowed; background: transparent; }
.day:disabled .day__d { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.day:disabled .day__w { color: var(--ink-3); }
.daypick__legend { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s5) 0; font-size: var(--fs-label); color: var(--ink-2); }
.slotgroup { padding: var(--s5) 0 0; }
.slotgroup__h { display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s2); }
.slotgroup__h .ic { width: 16px; height: 16px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.slot { height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--fs-callout); transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.slot:disabled { border-color: var(--line); background: transparent; color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot:not(:disabled):hover { border-color: var(--accent); }
[data-slots] .empty { padding: var(--s8) 0; }
.sheet [data-slots], .sheet .sk-slots { padding: 0; }
.summary > div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s4); }
.summary dt { color: var(--ink-2); font-size: var(--fs-callout); flex: none; }
.summary dd { text-align: right; font-weight: 600; font-size: var(--fs-callout); font-variant-numeric: tabular-nums; min-width: 0; }
.summary__total dd { font-size: var(--fs-headline); font-weight: 800; }
.summary + .fset__l, .step .fset__l { margin-top: var(--s6); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s5); }
.field__l { font-size: var(--fs-callout); font-weight: 600; }
.field__opt { color: var(--ink-2); font-weight: 400; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); padding: 12px var(--s4); font-size: 16px; resize: none; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field__err { color: var(--danger); font-size: var(--fs-caption); font-weight: 500; }
.form .field:first-child { margin-top: 0; }
.policy { display: flex; gap: var(--s2); margin-top: var(--s4); font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.45; }
.policy .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--ink-2); }

/* ---------- confirmed ---------- */
.screen--done { padding: 0 var(--s5) var(--s8); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s4) 0 var(--s6); }
.done__tick { width: 72px; height: 72px; }
.done__t { margin-top: var(--s4); }
.done__lede { margin-top: var(--s2); color: var(--ink-2); max-width: 32ch; text-wrap: balance; }
.done__actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s6); }

/* ---------- bookings ---------- */
.segc { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.segc--full { margin-top: var(--s3); }
.segc__b { height: 34px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-callout); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur-2), color var(--dur-2), box-shadow var(--dur-2); }
.segc__b[aria-selected="true"], .segc__b[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.segc__b[aria-selected="true"] .count { background: var(--accent-soft); color: var(--accent); }
.bks { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s2) var(--s5) 0; }
.bk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.bk__row { display: flex; gap: var(--s3); padding: var(--s4); align-items: flex-start; }
.bk__body { flex: 1; min-width: 0; }
.bk__when { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk__what { font-size: var(--fs-callout); margin-top: 2px; }
.bk__where { font-size: var(--fs-caption); color: var(--ink-2); margin-top: 2px; }
.bk__actions { display: flex; gap: var(--s1); padding: var(--s2) var(--s3); border-top: 1px solid var(--line); flex-wrap: wrap; }
.bk__actions .btn--secondary { border-color: var(--line-strong); }
.dblock { flex: none; width: 48px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; padding: 6px 0; line-height: 1.1; }
.dblock__w, .dblock__m { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dblock__d { font-size: var(--fs-title2); font-weight: 800; font-variant-numeric: tabular-nums; }
.pasts { margin: var(--s2) var(--s5) 0; }
.past { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); align-items: center; }
.past .dblock { background: var(--surface-2); color: var(--ink-2); }
.past__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.past__what { font-weight: 600; font-size: var(--fs-callout); }
.past__where { font-size: var(--fs-caption); color: var(--ink-2); }
.past .btn { flex: none; }
@media (max-width: 380px) { .past { flex-wrap: wrap; } .past .btn { margin-left: 60px; } }
.bk.is-moved .bk__when { color: var(--accent); }

/* ---------- profile ---------- */
.me { margin: var(--s2) var(--s5) 0; width: calc(100% - 2 * var(--s5)); display: flex; align-items: center; gap: var(--s4); text-align: left; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.me__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me__name { font-weight: 700; font-size: var(--fs-headline); }
.me__sub { font-size: var(--fs-caption); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me__edit { margin-right: calc(var(--s2) * -1); }
.group { padding: var(--s6) var(--s5) 0; }
.group__h { font-size: var(--fs-caption); font-weight: 600; color: var(--ink-2); padding: 0 var(--s4) var(--s2); }
.group__foot { display: flex; gap: var(--s2); padding: var(--s2) var(--s4) 0; font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.45; }
.group__foot .ic { width: 15px; height: 15px; margin-top: 2px; }
.setrow { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 56px; }
.setrow__t { flex: 1; display: flex; flex-direction: column; font-weight: 500; }
.setrow__sub { font-size: var(--fs-caption); color: var(--ink-2); font-weight: 400; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--line-strong); position: relative; flex: none; transition: background var(--dur-2) var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform var(--dur-2) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.navrow { width: 100%; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s3) 0 var(--s4); min-height: 52px; text-align: left; transition: background var(--dur-1); }
.navrow:active { background: var(--bg); }
.navrow__icon { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.navrow__icon .ic { width: 17px; height: 17px; }
.navrow__t { flex: 1; font-weight: 500; }
.navrow__v { color: var(--ink-2); font-size: var(--fs-callout); }
.navrow__chev { color: var(--ink-3); width: 18px; height: 18px; }
.navrow--add .navrow__icon { background: var(--accent-soft); color: var(--accent); }
.navrow--add .navrow__t { color: var(--accent); font-weight: 600; }
.navrow--danger { justify-content: center; }
.navrow--danger .navrow__icon { background: var(--danger-soft); color: var(--danger); }
.navrow--danger .navrow__t { color: var(--danger); font-weight: 600; flex: none; }
.version { text-align: center; font-size: var(--fs-label); color: var(--ink-2); margin-top: var(--s4); }
.addcard__lede { color: var(--ink-2); line-height: 1.5; }
.facts { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.facts li { display: flex; gap: var(--s3); font-size: var(--fs-callout); }
.facts .ic { color: var(--accent); }
.addcard__state { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s2); color: var(--accent); font-weight: 600; }
.facts-list li { display: flex; flex-direction: column; padding: var(--s3) var(--s4); gap: 2px; font-size: var(--fs-callout); }
.facts-list span { color: var(--ink-2); }
.sheet .facts-list + .btn, .sheet .hint + .btn, .sheet .opts + .btn, .sheet .opts + .hint { margin-top: var(--s4); }
.sheet .hint + .opts { margin-top: var(--s3); }

/* ---------- sheets ---------- */
.scrim { position: absolute; inset: 0; background: rgba(20, 18, 14, .42); z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 88%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -10px 40px rgba(27, 26, 23, .18);
  padding-bottom: var(--home-ind);
}
.sheet__grab { width: 36px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: var(--s2) auto 0; flex: none; cursor: grab; touch-action: none; }
.sheet__grab::before { content: ""; display: block; height: 28px; margin-top: -12px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s2) var(--s2) var(--s5); flex: none; touch-action: none; }
.sheet__body { padding: 0 var(--s5) var(--s5); overflow-y: auto; scrollbar-width: none; }
.sheet__body > .list { margin-top: 0; }
.sheet__foot { display: flex; gap: var(--s2); padding: var(--s3) var(--s5) var(--s4); border-top: 1px solid var(--line); flex: none; }
.fset { margin-bottom: var(--s5); }
.fset__l { display: block; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s2); }

/* ---------- toasts ---------- */
.toasts { position: absolute; left: var(--s3); right: var(--s3); bottom: calc(var(--tabbar-h) + var(--home-ind) + 20px); z-index: 30; display: flex; flex-direction: column; gap: var(--s2); pointer-events: none; }
[data-page="place"] .toasts, [data-page="book"] .toasts { bottom: calc(76px + var(--home-ind)); }
[data-page="confirmed"] .toasts, [data-page="onboarding"] .toasts { bottom: calc(var(--s6) + var(--home-ind)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s2) var(--s2) var(--s4); background: var(--ink); color: #fff; border-radius: var(--r-md); box-shadow: var(--sh-2); font-size: var(--fs-callout); font-weight: 500; }
.toast .ic { width: 18px; height: 18px; color: var(--on-accent-2); }
.toast__t { flex: 1; }
.toast__a { color: #A9D9C1; font-weight: 700; padding: 0 var(--s3); height: 36px; border-radius: var(--r-sm); }
.toast__a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- entrance (JS adds .js; content is visible without it) ---------- */
.js [data-enter]:not(.in) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .sk::after { display: none; }
  .js [data-enter]:not(.in) { opacity: 1; }
  @view-transition { navigation: none; }
}

@container (max-width: 375px) {
  .bk__actions .btn--quiet .btn__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bk__actions .btn--quiet { margin-left: auto; }
}
.sheet .daypick { margin-top: var(--s4); }
