/* =========================================================
   Studio App — design system + components
   Depth: background mesh → cards → glass (bars, sheets).
   Every color, radius and font size goes through variables,
   so theme / accent / text size settings apply everywhere.
   ========================================================= */

/* Registered so theme and accent changes animate smoothly */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #C9796B; }
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #F7F5F2; }
@property --card   { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --text   { syntax: '<color>'; inherits: true; initial-value: #16161A; }
@property --text-2 { syntax: '<color>'; inherits: true; initial-value: #8A8A93; }

:root {
  /* Light theme */
  --bg: #F7F5F2;
  --card: #FFFFFF;
  --text: #16161A;
  --text-2: #8A8A93;
  --line: rgba(0, 0, 0, .06);
  --fill: rgba(22, 22, 26, .05);

  /* Layered, soft shadows */
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06), 0 24px 48px rgba(0, 0, 0, .04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .10), 0 30px 60px rgba(0, 0, 0, .06);

  /* Glass */
  --glass: color-mix(in srgb, var(--card) 62%, transparent);
  --glass-strong: color-mix(in srgb, var(--card) 80%, transparent);
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-edge: rgba(0, 0, 0, .05);
  --blur: blur(24px) saturate(180%);

  /* Mesh blobs */
  --mesh-1: .15;
  --mesh-2: .11;
  --mesh-3: .08;

  /* Accent (overwritten from JSON / settings) */
  --accent: #C9796B;
  --on-accent: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);

  /* Skeleton */
  --sk: color-mix(in srgb, var(--text) 6%, transparent);
  --sk-hi: color-mix(in srgb, var(--text) 12%, transparent);

  /* Text size: Small 1 · Default 1.1 · Large 1.2 */
  --text-scale: 1.1;
  --fs-10: calc(10px * var(--text-scale));
  --fs-11: calc(11px * var(--text-scale));
  --fs-12: calc(12px * var(--text-scale));
  --fs-13: calc(13px * var(--text-scale));
  --fs-14: calc(14px * var(--text-scale));
  --fs-15: calc(15px * var(--text-scale));
  --fs-17: calc(17px * var(--text-scale));
  --fs-19: calc(19px * var(--text-scale));
  --fs-22: calc(22px * var(--text-scale));
  --fs-28: calc(28px * var(--text-scale));
  --fs-lt: calc(31px * var(--text-scale));        /* Large title: 34px at Default */
  --fs-nav: calc(15.5px * var(--text-scale));     /* Nav title: 17px at Default */
  --fs-hero-name: calc(27.3px * var(--text-scale)); /* 30px */
  --fs-time: calc(29px * var(--text-scale));      /* 32px */
  --fs-rating: calc(44px * var(--text-scale));

  --r-card: 24px;
  --r-btn: 16px;
  --gap: 22px;
  --nav-h: 44px;
  --tab-h: 64px;
  --tab-gap: 16px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
  transition: --bg .3s var(--ease), --card .3s var(--ease), --text .3s var(--ease), --text-2 .3s var(--ease), --accent .3s var(--ease);
}

:root[data-theme="dark"] {
  --bg: #0E0E11;
  --card: #1A1A1F;
  --text: #F4F4F6;
  --text-2: #9A9AA3;
  --line: rgba(255, 255, 255, .07);
  --fill: rgba(255, 255, 255, .07);

  /* No drop shadows in dark: a thin light edge on top instead */
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 .5px rgba(255, 255, 255, .05);
  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 .5px rgba(255, 255, 255, .04);
  --shadow-float: 0 12px 36px rgba(0, 0, 0, .5);

  --glass: color-mix(in srgb, var(--card) 58%, transparent);
  --glass-strong: color-mix(in srgb, var(--card) 80%, transparent);
  --glass-hi: rgba(255, 255, 255, .16);
  --glass-edge: rgba(255, 255, 255, .07);

  --mesh-1: .2;
  --mesh-2: .16;
  --mesh-3: .12;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: var(--fs-15);
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
img {
  display: block;
  max-width: 100%;
  /* no iOS long-press preview, selection or drag ghost on any picture */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
img.is-broken { visibility: hidden; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

button, input { font: inherit; color: inherit; }
button, a, .tab, .chip, .row, .svc2, .promo, .press {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
button { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
input { -webkit-user-select: text; user-select: text; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Every tappable thing presses in (spring back) */
.press, .btn, .chip, .slot, .icon-btn, .nav-btn, .swatch, .tile, .msg-action, .send,
.svc-card, .svc2, .story, .review, .contact, .pick, .row--link, .day, .time, .bk-chosen, .pbtn, .cc-slot, .cc-row, .stories__cta, .onb__skip {
  transition: transform .45s var(--spring), filter .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), opacity .25s var(--ease);
}
.press:active, .btn:active, .chip:active, .slot:active, .icon-btn:active, .nav-btn:active, .swatch:active,
.tile:active, .msg-action:active, .send:active, .svc-card:active, .svc2:active, .story:active, .review:active,
.contact:active, .pick:active, .day:active, .time:active, .bk-chosen:active, .pbtn:active, .cc-slot:active,
.cc-row:active, .stories__cta:active, .onb__skip:active {
  transform: scale(.96);
  filter: brightness(.92);
  transition-duration: .1s;
}

/* ---------- Glass material ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-float);
}

/* ---------- Stage / device ---------- */
.stage { position: fixed; inset: 0; height: var(--vvh, 100%); display: flex; }
.device { position: relative; flex: 1; min-width: 0; }

.app {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-space: calc(var(--tab-h) + var(--tab-gap) + var(--safe-bottom) + 28px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
}

/* The app content as one layer: when a bottom sheet opens JS dims it and
   shrinks it to 94% (transform only); corners round to 12px like iOS */
.shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--bg);
  transform-origin: 50% 50%;
  will-change: transform;
}
.app.has-sheet .shell { border-radius: 12px; }

/* ---------- Mesh background ---------- */
.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh i {
  position: absolute;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, color-mix(in srgb, var(--accent) 40%, transparent) 35%, transparent 68%);
  will-change: transform;
}
.mesh i:nth-child(1) { top: -22%; left: -30%; opacity: var(--mesh-1); animation: drift-a 40s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { top: 30%; right: -45%; opacity: var(--mesh-2); animation: drift-b 40s ease-in-out -13s infinite alternate; }
.mesh i:nth-child(3) { bottom: -30%; left: -10%; opacity: var(--mesh-3); animation: drift-c 40s ease-in-out -26s infinite alternate; }
@keyframes drift-a { to { transform: translate(28%, 22%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-30%, -18%) scale(.9); } }
@keyframes drift-c { to { transform: translate(22%, -26%) scale(1.1); } }

.statusbar, .desk { display: none; }

/* ---------- Desktop: phone frame + QR ---------- */
@media (min-width: 760px) {
  body {
    background:
      radial-gradient(900px 600px at 15% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
      radial-gradient(800px 600px at 90% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
      color-mix(in srgb, var(--accent) 5%, var(--bg));
  }
  .stage { align-items: center; justify-content: center; gap: 72px; padding: 24px; height: 100%; }
  .device {
    flex: none;
    width: 410px;
    height: min(864px, calc(100vh - 48px));
    height: min(864px, calc(100dvh - 48px));
    border-radius: 60px;
    padding: 10px;
    background: #0B0B0D;
    box-shadow:
      0 0 0 1.5px #2C2C31 inset,
      0 50px 100px -30px rgba(20, 16, 12, .35),
      0 30px 60px -30px rgba(20, 16, 12, .25);
  }
  .app {
    --safe-top: 50px;
    --safe-bottom: 18px;
    inset: 10px;
    border-radius: 50px;
    transform: translateZ(0);
  }
  .app::after { /* home indicator */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 134px;
    height: 5px;
    border-radius: 3px;
    background: var(--text);
    opacity: .85;
    transform: translateX(-50%);
    z-index: 300;
    pointer-events: none;
  }
  .statusbar {
    position: absolute;
    inset: 0 0 auto;
    height: 50px;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 34px 0 42px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    pointer-events: none;
    transition: color .3s var(--ease);
  }
  .statusbar__island {
    position: absolute;
    left: 50%;
    top: 11px;
    width: 118px;
    height: 34px;
    border-radius: 20px;
    background: #000;
    transform: translateX(-50%);
  }
  .statusbar__icons { display: flex; gap: 6px; align-items: center; }
  .statusbar__icons svg:first-child { width: 17px; height: 11px; }
  .statusbar__icons svg:last-child { width: 26px; height: 12px; }
  .app.on-hero .statusbar { color: #fff; }
  .app.is-splash .statusbar { color: var(--text); }
  .app.is-splash-photo .statusbar { color: #fff; }
  .app.has-onb .statusbar { color: var(--text); }
  .app.is-dark-overlay .statusbar { color: #fff; }
  .app.is-dark-overlay::after { background: #fff; }

  .desk { display: block; width: 260px; }
  .desk__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .desk__title { margin: 10px 0 24px; font-size: 30px; line-height: 1.12; }
  .desk__qr {
    width: 196px;
    height: 196px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .desk__qr img, .desk__qr canvas { width: 160px !important; height: 160px !important; }
  .desk__hint { margin-top: 20px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
}
@media (min-width: 760px) and (max-width: 900px) { .desk { display: none; } }

/* ---------- Views ---------- */
.views {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transform-origin: 50% 40%;
  transition: transform .5s var(--ease-ios), filter .5s var(--ease-ios), border-radius .5s var(--ease-ios);
}
.app.has-sub .views { transform: translateX(-24%); filter: brightness(.94); }

.view { position: absolute; inset: 0; overflow: hidden; }

.scroller {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: calc(var(--safe-top) + var(--nav-h));
  padding-bottom: var(--tab-space);
}
.scroller::-webkit-scrollbar, .chat::-webkit-scrollbar { display: none; }

.body { display: flex; flex-direction: column; gap: var(--gap); padding: 0 20px; }
.lt-spacer { flex: none; height: calc(var(--fs-lt) * 1.2 + 14px); }

/* ---------- Navigation bar (glass) + Large Title ---------- */
.navbar {
  --nav-p: 0;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: calc(var(--safe-top) + var(--nav-h));
  padding: var(--safe-top) 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.navbar > * { pointer-events: auto; }
.navbar__glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--nav-p);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 -.5px 0 var(--line);
}
.navbar__side { display: flex; align-items: center; gap: 8px; min-width: 44px; }
.navbar__side--r { justify-content: flex-end; }
.navbar__title {
  position: absolute;
  left: 50%;
  bottom: 0;
  max-width: 58%;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-size: var(--fs-nav);
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: var(--nav-p);
  transform: translate(-50%, calc((1 - var(--nav-p)) * 6px));
  pointer-events: none;
}

.large-title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  margin: 0;
  font-size: var(--fs-lt);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0;
  height: 40px;
  padding: 0 10px 0 2px;
  border-radius: 999px;
  color: var(--accent);
  font-size: var(--fs-15);
  font-weight: 600;
}
.back-btn svg { width: 26px; height: 26px; }
.back-btn:active { opacity: .5; }

.nav-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge);
}
.nav-btn svg { width: 20px; height: 20px; }
.navbar--home:not(.is-solid) .nav-btn {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5), 0 0 0 .5px rgba(255, 255, 255, .22);
}
.badge-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.nav-btn.is-ringing svg { animation: ring .7s var(--ease); transform-origin: 50% 10%; }
@keyframes ring {
  20% { transform: rotate(16deg); } 40% { transform: rotate(-13deg); }
  60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); }
}

/* ---------- Generic card / buttons ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font-size: var(--fs-15);
  font-weight: 700;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px -10px var(--accent-glow);
}
.btn--soft { background: var(--accent-soft); color: var(--accent); }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--sm { height: 40px; padding: 0 18px; border-radius: 999px; font-size: var(--fs-13); }
.btn--block { width: 100%; }

.section { display: flex; flex-direction: column; gap: 16px; }
.section > .rail { margin-top: -10px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: -8px;
}
.section-head h2 { font-size: var(--fs-19); }
.link-btn { font-size: var(--fs-13); font-weight: 700; color: var(--accent); padding: 6px 0; }
.eyebrow { font-size: var(--fs-12); color: var(--text-2); font-weight: 600; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-11);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text-2);
}
.live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34C759; }
.live i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s cubic-bezier(.2, .8, .2, 1) infinite;
}
.live.is-off i { background: var(--text-2); }
.live.is-off i::after { animation: none; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* ---------- HOME: hero ---------- */
.view--home .scroller { padding-top: 0; }
.hero { position: relative; height: 420px; color: #fff; }
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  transform-origin: 50% 0;
  will-change: transform;
}
.hero__tilt, .hero__kb { position: absolute; inset: 0; will-change: transform; }
.hero__tilt { transform: scale(1.05); }
.hero__kb { animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  will-change: transform;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 38%, rgba(0, 0, 0, 0) 60%);
}
.hero__dim { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }
.hero__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform, opacity;
}
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .35), 0 0 0 .5px rgba(255, 255, 255, .18);
  font-size: var(--fs-12);
  font-weight: 700;
  white-space: nowrap;
}
.hero__status span { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.hero__status i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9A9AA3; }
.hero__status.is-open i { background: #34C759; }
.hero__status.is-open i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s cubic-bezier(.2, .8, .2, 1) infinite;
}
.hero__greet { margin-top: 12px; font-size: var(--fs-14); font-weight: 600; opacity: .92; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.hero__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  background: rgba(255, 255, 255, .2);
}
.hero__name {
  margin-top: 2px;
  font-size: var(--fs-hero-name);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: var(--fs-14);
  font-weight: 600;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 4px; opacity: .95; }
.hero__meta svg { width: 15px; height: 15px; }
.hero__meta .star { color: #FFD15C; }
.home-rest { margin-top: 18px; will-change: transform; }

/* ---------- Stories ---------- */
.stories-row {
  display: flex;
  gap: 14px;
  margin: 0 -20px;
  padding: 2px 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stories-row::-webkit-scrollbar { display: none; }
.story { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.story__ring {
  display: block;
  width: 72px;
  height: 72px;
  padding: 2.5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 55%, #FFC98A),
    color-mix(in srgb, var(--accent) 60%, #FF6FA8),
    var(--accent));
  transition: background .3s var(--ease);
}
.story__ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg);
  background: var(--fill);
}
.story.is-seen .story__ring { background: color-mix(in srgb, var(--text-2) 45%, transparent); }
.story__title {
  max-width: 76px;
  font-size: var(--fs-11);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story.is-seen .story__title { color: var(--text-2); }

/* ---------- Next available (glass) ---------- */
.next {
  position: relative;
  padding: 20px;
  border-radius: 28px;
  overflow: hidden;
  container-type: inline-size;
}
.next__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.next__top .live { margin-top: 4px; }
.next__icon {
  flex: none;
  width: 52px;
  height: 52px;
  margin: -8px -6px -14px 0;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .12));
  transform: rotate(8deg);
}
.next__label { margin-top: 10px; font-size: var(--fs-12); font-weight: 700; color: var(--text-2); }
.next__time {
  margin: 6px 0 6px;
  font-size: min(var(--fs-time), 10cqi);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.next__time--sm { margin-top: 2px; font-size: min(var(--fs-28), 9.5cqi); }
.next__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text-2);
}
.next__status svg { width: 16px; height: 16px; }
.slots {
  display: flex;
  gap: 8px;
  margin: 16px -20px 0;
  padding: 2px 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.slots::-webkit-scrollbar { display: none; }
.slot {
  flex: none;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-13);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slot.is-first, .slot.is-selected {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -8px var(--accent-glow);
}
.next__actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 16px; }

/* ---------- Promo (with shine) ---------- */
.promo {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 176px;
  padding: 22px;
  border-radius: var(--r-card);
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    linear-gradient(140deg,
      color-mix(in srgb, var(--accent) 14%, var(--card)) 0%,
      color-mix(in srgb, var(--accent) 34%, var(--card)) 100%);
  box-shadow: var(--shadow), 0 16px 36px -18px var(--accent-glow);
}
.promo::before, .promo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.promo::before {
  width: 190px; height: 190px;
  right: -40px; bottom: -70px;
  background: color-mix(in srgb, var(--card) 45%, transparent);
}
.promo::after {
  width: 90px; height: 90px;
  right: 110px; top: -40px;
  background: color-mix(in srgb, var(--card) 30%, transparent);
}
.promo__shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.promo__shine::before {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-16deg);
  animation: shine 6s cubic-bezier(.45, 0, .2, 1) 1.5s infinite;
}
:root[data-theme="dark"] .promo__shine::before { background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .16) 50%, transparent 100%); }
@keyframes shine {
  0% { transform: translateX(-160%) skewX(-16deg); }
  24%, 100% { transform: translateX(330%) skewX(-16deg); }
}
.promo__body { position: relative; z-index: 1; max-width: 64%; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-10);
  font-weight: 800;
  letter-spacing: .06em;
}
.promo h3 { margin: 12px 0 6px; font-size: var(--fs-19); }
.promo p { font-size: var(--fs-13); color: color-mix(in srgb, var(--text) 72%, transparent); margin-bottom: 16px; }
.promo__art {
  position: absolute;
  z-index: 1;
  right: 6px;
  bottom: 26px;
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--accent) 40%, transparent));
  animation: float 5s ease-in-out infinite;
}
.promo__art--photo {
  right: 16px;
  top: 50%;
  bottom: auto;
  width: 104px;
  height: 132px;
  margin-top: -66px;
  object-fit: cover;
  border-radius: 999px;
  filter: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--card) 70%, transparent);
  animation: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* ---------- Horizontal rails ---------- */
.rail {
  display: flex;
  gap: 12px;
  margin: 0 -20px;
  padding: 8px 20px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

/* Recent work */
.reel { padding-top: 12px; padding-bottom: 20px; }
.reel__item {
  --s: 1;
  flex: none;
  width: 150px;
  height: 200px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--fill);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  transform: scale(var(--s));
  transition: transform .45s var(--spring);
}
.reel__item:active { transform: scale(calc(var(--s) * .97)); }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }

/* Service cards with photos */
.svc-card {
  flex: none;
  width: 178px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  scroll-snap-align: start;
}
.svc-card__photo { position: relative; display: block; height: 124px; background: var(--fill); }
.svc-card__photo img:first-child { border-radius: 0; }
.svc-card__body { display: block; }
.svc-card__photo img:first-child { width: 100%; height: 100%; object-fit: cover; }
.svc-card__icon {
  position: absolute;
  left: 10px;
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), var(--shadow-sm);
}
.svc-card__icon img { width: 26px; height: 26px; }
.svc-card__body { padding: 24px 14px 14px; }
.svc-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.svc-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.svc-card__price { font-size: var(--fs-19); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.svc-card__dur { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* Reviews */
.rating { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.rating__big {
  font-size: var(--fs-rating);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rating__sub { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); color: var(--text-2); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: #FFB400; }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: color-mix(in srgb, var(--text-2) 35%, transparent); }
.reviews { padding-top: 4px; }
.review {
  flex: none;
  width: 276px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-align: left;
  scroll-snap-align: start;
}
.review .stars svg { width: 14px; height: 14px; }
.review p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-14);
  line-height: 1.5;
}
.review__who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review__initial {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-13);
  font-weight: 800;
}
.review__who b { display: block; font-size: var(--fs-13); font-weight: 700; }
.review__who small { display: block; font-size: var(--fs-12); color: var(--text-2); }

/* ---------- Course ---------- */
.course { display: flex; align-items: center; gap: 16px; padding: 18px; }
.course__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, var(--card)), color-mix(in srgb, var(--accent) 30%, var(--card)));
}
.course__icon img { width: 40px; height: 40px; }
.course__body { flex: 1; min-width: 0; }
.course__body .eyebrow { display: block; margin-bottom: 2px; }
.course h3 { font-size: var(--fs-15); margin-bottom: 4px; }
.course p { font-size: var(--fs-13); color: var(--text-2); line-height: 1.4; }
.course__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.course__go svg { width: 18px; height: 18px; }

/* ---------- Search & chips ---------- */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  cursor: text;
  transition: box-shadow .3s var(--ease);
}
.search:focus-within { box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-sm); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font-size: max(16px, var(--fs-15));
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--text-2); font-weight: 500; }
.search input:focus-visible { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
}
.search__clear svg { width: 14px; height: 14px; }

.chips {
  display: flex;
  gap: 8px;
  margin: 0 -20px;
  padding: 2px 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.chip.is-active { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 18px -8px var(--accent-glow); }

/* ---------- Services tab ---------- */
.search--glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
}

/* Category bar: glass capsule with a floating accent pill */
.chipbar {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
}
.chipbar::-webkit-scrollbar { display: none; }
.chipbar__chip {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .3s var(--ease), transform .45s var(--spring);
}
/* The active chip carries the accent itself (after the pill lands), so its
   text can never end up on a non-accent background */
.chipbar__chip { transition: color .3s var(--ease), background-color .2s var(--ease), transform .45s var(--spring); }
.chipbar__chip.is-active {
  color: var(--on-accent);
  background-color: var(--accent);
  transition: color .25s var(--ease), background-color .25s var(--ease), transform .45s var(--spring);
  box-shadow: 0 8px 18px -8px var(--accent-glow);
}
.chipbar__chip.is-active .chip-n { color: inherit; }
.chipbar__chip:active { transform: scale(.94); transition-duration: .12s; }

.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc2 {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  text-align: left;
  will-change: transform;
}
.svc2__photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--fill);
}
.svc2__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.svc2__cat {
  font-size: var(--fs-11);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc2__title { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.svc2__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.svc2__meta svg { width: 15px; height: 15px; }
.svc2__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.svc2__price { font-size: var(--fs-22); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.svc2__chev {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc2__chev svg { width: 16px; height: 16px; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: var(--fs-14);
}
.empty img { width: 64px; height: 64px; margin-bottom: 6px; }
.empty strong { color: var(--text); font-size: var(--fs-17); }

/* ---------- Ask (chat) — iMessage style ---------- */
.view--chat {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tab-h) + var(--tab-gap) + var(--safe-bottom) + 8px);
  transition: padding-bottom .45s var(--ease-ios);
}
.chat {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(var(--safe-top) + var(--nav-h)) 16px 14px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chat > * { flex-shrink: 0; }
.assistant { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 4px 6px; }
.assistant__avatar { position: relative; flex: none; }
.assistant__avatar img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.assistant__avatar::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 2.5px var(--card);
}
.assistant__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.assistant__text strong { font-size: var(--fs-15); font-weight: 800; letter-spacing: -.01em; }
.assistant__art { width: 36px; height: 36px; }
.chat__day { align-self: center; margin: 4px 0; font-size: var(--fs-11); font-weight: 700; color: var(--text-2); }

/* Bubbles */
.msg {
  --r: 20px;
  --r-in: 6px;
  position: relative;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: var(--fs-15);
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.msg--me {
  --tail: var(--accent);
  align-self: flex-end;
  color: var(--on-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff) 0%, var(--accent) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
/* "Glass" without backdrop-filter: many blurred bubbles would cost frames */
.msg--bot {
  --tail: color-mix(in srgb, var(--card) 86%, transparent);
  align-self: flex-start;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
  -webkit-user-select: text;
  user-select: text;
}

/* Grouping: inner corners straighten, 2px gaps inside a group */
.msg.g-mid, .msg.g-last { margin-top: -6px; }
.msg--me.g-first { border-bottom-right-radius: var(--r-in); }
.msg--me.g-mid { border-top-right-radius: var(--r-in); border-bottom-right-radius: var(--r-in); }
.msg--me.g-last { border-top-right-radius: var(--r-in); }
.msg--bot.g-first { border-bottom-left-radius: var(--r-in); }
.msg--bot.g-mid { border-top-left-radius: var(--r-in); border-bottom-left-radius: var(--r-in); }
.msg--bot.g-last { border-top-left-radius: var(--r-in); }

/* The tail on the last bubble of a group */
.msg.g-last::after, .msg.g-single::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 20px;
  background: var(--tail);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M0 0V20H16C11 19 7 15 6 8V0Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M0 0V20H16C11 19 7 15 6 8V0Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
.msg--me.g-last::after, .msg--me.g-single::after { right: -9px; }
.msg--bot.g-last::after, .msg--bot.g-single::after { left: -9px; transform: scaleX(-1); }
.msg + .msg--me.g-first, .msg + .msg--me.g-single, .msg--me + .msg--bot, .msg--me + .chat-card { margin-top: 6px; }

.msg-action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 2px 0 4px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-13);
  font-weight: 700;
  box-shadow: 0 10px 20px -10px var(--accent-glow);
}
.msg-action--soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.msg-action svg { width: 16px; height: 16px; }

/* Typing: three dots in a wave */
.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typing 1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Rich answers */
.chat-card {
  align-self: flex-start;
  width: min(292px, 86%);
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-top: -2px;
}
.cc-svc { display: block; cursor: pointer; }
.cc-photo--lg { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--fill); }
.cc-svc__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 2px; }
.cc-svc__body b { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.02em; }
.cc-meta { display: flex; align-items: center; gap: 5px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.cc-meta svg { width: 14px; height: 14px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 14px; }
.cc-price { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cc-price--lg { font-size: var(--fs-22); }
.cc-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  text-align: left;
}
.cc-row + .cc-row::before { content: ''; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--line); }
.cc-row img { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--fill); }
.cc-row__text { flex: 1; min-width: 0; }
.cc-row__text b { display: block; font-size: var(--fs-14); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-row__text small { font-size: var(--fs-12); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.chat-card--hours, .chat-card--review { padding: 14px; }
.cc-day + .cc-day { margin-top: 12px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); }
.cc-day__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: var(--fs-14); }
.cc-day__head b { font-weight: 800; }
.cc-day__head span { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-slot {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-13);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cc-week { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.cc-week span { display: flex; justify-content: space-between; font-size: var(--fs-13); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-week b { color: var(--text); font-weight: 700; }
.cc-week .is-today, .cc-week .is-today b { color: var(--accent); }
.cc-label { margin-bottom: 8px; font-size: var(--fs-11); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.cc-empty { font-size: var(--fs-13); color: var(--text-2); }
.cc-steps { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.cc-steps li { display: flex; gap: 10px; }
.cc-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-12);
  font-weight: 800;
}
.cc-steps b { display: block; font-size: var(--fs-14); font-weight: 700; }
.cc-steps small { font-size: var(--fs-12); color: var(--text-2); line-height: 1.4; }
.cc-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cc-rating__big { font-size: calc(34px * var(--text-scale)); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-rating small { display: block; margin-top: 2px; font-size: var(--fs-12); color: var(--text-2); }
.cc-quote { font-size: var(--fs-14); line-height: 1.5; margin-bottom: 12px; }

/* Quick replies */
.suggest { flex: none; margin: 0; padding: 4px 16px 8px; }
.suggest .chip {
  height: 36px;
  color: var(--accent);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge);
}

/* Composer: glass capsule, the send button springs in only with text */
.composer { flex: none; padding: 2px 12px 4px; }
.composer__field {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
}
.composer__field:focus-within { box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 1.5px color-mix(in srgb, var(--accent) 50%, transparent), var(--shadow-sm); }
.composer input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 48px 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font-size: max(16px, var(--fs-15));
  -webkit-appearance: none;
  appearance: none;
}
.composer input::placeholder { color: var(--text-2); }
.composer input:focus-visible { outline: none; }
.send {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 16px -8px var(--accent-glow);
  opacity: 0;
  transform: scale(.2);
  pointer-events: none;
  transition: transform .55s var(--spring), opacity .2s var(--ease);
}
.send svg { width: 18px; height: 18px; }
.composer.has-text .send { opacity: 1; transform: scale(1); pointer-events: auto; }
.composer.has-text .send:active { transform: scale(.9); }

/* ---------- Gallery: masonry + before/after ---------- */
.masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.masonry__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--fill);
  box-shadow: var(--shadow-sm);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y;
  cursor: ew-resize;
  -webkit-user-select: none;
  user-select: none;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: #fff;
  font-size: var(--fs-11);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__label--l { left: 12px; }
.ba__label--r { right: 12px; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateX(var(--pos));
  pointer-events: none;
  display: grid;
  place-items: center;
}
.ba__handle i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.ba__handle b {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: #16161A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .45s var(--spring);
}
.ba__handle b svg { width: 20px; height: 20px; }
.ba.is-dragging .ba__handle b { transform: scale(1.12); }

/* ---------- Photo viewer ---------- */
.lightbox {
  position: absolute;
  inset: 0;
  z-index: 95;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox__bg { position: absolute; inset: 0; background: #000; opacity: 0; }
.lightbox__track { position: absolute; inset: 0; display: flex; will-change: transform; }
.lightbox.is-flying .lightbox__track { opacity: 0; }
.lightbox__slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-top) + 56px) 0 calc(var(--safe-bottom) + 64px);
}
.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
}
.lightbox__close, .stories__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4);
  color: #fff;
}
.lightbox__close { position: absolute; top: calc(var(--safe-top) + 10px); right: 16px; }
.lightbox__close svg, .stories__close svg { width: 20px; height: 20px; }
.lightbox__bar {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 16px);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}
.lightbox__count, .lightbox__like {
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .35);
  color: #fff;
}
.lightbox__count {
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lightbox__like { display: grid; place-items: center; width: 36px; }
.lightbox__like svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; transition: fill .25s var(--ease), stroke .25s var(--ease); }
.lightbox__like.is-on svg { fill: #FF3B5C; stroke: #FF3B5C; }
.lightbox__close, .lightbox__bar { transition: opacity .3s var(--ease); }
.lightbox.is-dragging .lightbox__close, .lightbox.is-dragging .lightbox__bar,
.lightbox.is-flying .lightbox__close, .lightbox.is-flying .lightbox__bar { opacity: 0; }

/* The flying "shared element" between a tile and the viewer */
.lb-fly {
  position: absolute;
  z-index: 97;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, clip-path;
}
.lb-fly img { width: 100%; height: 100%; object-fit: cover; }

/* Double-tap heart */
.burst { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.burst__heart {
  position: absolute;
  left: -48px;
  top: -48px;
  width: 96px;
  height: 96px;
  color: #fff;
  filter: drop-shadow(0 8px 24px rgba(255, 59, 92, .55));
}
.burst__heart svg { width: 100%; height: 100%; }
.burst i {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  color: var(--c);
}
.burst i.is-heart { background: none; width: 14px; height: 14px; left: -7px; top: -7px; }
.burst i svg { width: 100%; height: 100%; }

/* ---------- Stories viewer ---------- */
.stories {
  position: absolute;
  inset: 0;
  z-index: 96;
  background: #000;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.stories__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  will-change: transform;
}
.stories__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.stories__img.is-loading { opacity: 0; }
.stories__shade {
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(rgba(0, 0, 0, .5), transparent);
  pointer-events: none;
}
.stories__bars {
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  transition: opacity .3s var(--ease);
}
.stories__bars i {
  position: relative;
  flex: 1;
  height: 2.5px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}
.stories__bars b {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.stories__head {
  position: absolute;
  top: calc(var(--safe-top) + 20px);
  left: 12px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: opacity .3s var(--ease);
}
.stories__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.stories__title { font-size: 14px; font-weight: 700; }
.stories__count { font-size: 13px; font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.stories__close { margin-left: auto; }
.stories.is-paused .stories__bars, .stories.is-paused .stories__head { opacity: 0; }

/* ---------- More (iOS Settings style) ---------- */
.profile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow);
}
.profile__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.profile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.5);
  transform: scale(1.35);
}
.profile__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .5) 100%);
}
.profile__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 18px; }
.profile__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 12px 30px rgba(0, 0, 0, .3);
}
.profile h2 { margin-top: 12px; font-size: var(--fs-22); color: #fff; }
.profile__city { display: flex; gap: 12px; margin-top: 5px; font-size: var(--fs-13); font-weight: 600; }
.profile__city span { display: inline-flex; align-items: center; gap: 4px; opacity: .92; }
.profile__city svg { width: 14px; height: 14px; }
.profile__city .star { color: #FFD15C; }
.profile__tagline { margin-top: 8px; font-size: var(--fs-14); opacity: .85; }
.profile__actions { display: flex; gap: 8px; width: 100%; margin-top: 18px; }
.pbtn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: 700;
}
.pbtn svg { width: 20px; height: 20px; }

.group-label {
  margin: 6px 0 -14px 16px;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-2);
}
.list {
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  text-align: left;
}
/* hairline separators inset past the icon, like iOS */
.row + .row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 56px;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--text) 13%, transparent);
  transform: scaleY(.5);
  transform-origin: 0 0;
}
.row--stack { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 14px 14px; }
.row__head { display: flex; align-items: center; gap: 12px; }
.row__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ic, var(--accent));
  color: #fff;
}
.row__icon svg { width: 18px; height: 18px; }
.row__label { flex: 1; min-width: 0; font-size: var(--fs-15); font-weight: 600; }
.row__sub { display: block; margin-top: 1px; font-size: var(--fs-12); font-weight: 500; color: var(--text-2); }
.row__value { font-size: var(--fs-15); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.row__chev { flex: none; width: 16px; height: 16px; color: color-mix(in srgb, var(--text-2) 70%, transparent); }
.row--link:active { background: var(--fill); transform: none; filter: none; }
.row--danger { justify-content: center; font-size: var(--fs-15); font-weight: 600; color: #FF3B30; }

/* Segmented control with a sliding white thumb */
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  padding: 2px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.segmented__thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 4px) / var(--n, 3));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04), 0 0 0 .5px rgba(0, 0, 0, .04);
  transform: translateX(calc(var(--idx, 0) * 100%));
  transition: transform .5s var(--spring);
}
:root[data-theme="dark"] .segmented__thumb { background: #636366; }
.segmented button {
  position: relative;
  z-index: 1;
  height: 32px;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text);
  opacity: .7;
  transition: opacity .25s var(--ease);
}
.segmented button[aria-checked="true"] { opacity: 1; font-weight: 700; }

.swatches { display: flex; justify-content: space-between; gap: 6px; padding: 2px 2px 0; }
.swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 0 var(--card), 0 0 0 0 var(--c);
}
.swatch svg { width: 18px; height: 18px; transform: scale(0); transition: transform .5s var(--spring); }
.swatch[aria-checked="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.swatch[aria-checked="true"] svg { transform: scale(1); }

.preview {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--fill);
  font-size: var(--fs-15);
  line-height: 1.4;
}
.preview strong { display: block; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.02em; }
.preview span { font-size: var(--fs-13); color: var(--text-2); }

/* iOS switch: green when on, springy knob */
.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #E9E9EA;
  transition: background-color .3s var(--ease);
}
:root[data-theme="dark"] .switch { background: #39393D; }
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06);
  transition: transform .5s var(--spring);
}
.switch[aria-checked="true"], :root[data-theme="dark"] .switch[aria-checked="true"] { background: #34C759; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch:active::after { transform: scaleX(1.15); transform-origin: 0 50%; }
.switch[aria-checked="true"]:active::after { transform: translateX(16px) scaleX(1.15); }

.foot-note { display: block; text-align: center; font-size: var(--fs-12); color: var(--text-2); padding: 4px 0 8px; }
.foot-note b { color: var(--accent); font-weight: 700; }

/* ---------- Pushed subview ---------- */
.view--sub {
  z-index: 20;
  background: var(--bg);
  box-shadow: -20px 0 40px rgba(0, 0, 0, .08);
  transform: translateX(100%);
  transition: transform .5s var(--ease-ios);
}
.app.has-sub .view--sub { transform: none; }

.sub-intro { font-size: var(--fs-14); color: var(--text-2); margin: -8px 2px 0; }
.policy { display: flex; gap: 14px; padding: 18px; }
.policy__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-13);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.policy h3 { font-size: var(--fs-15); margin: 6px 0 6px; }
.policy p { font-size: var(--fs-14); color: var(--text-2); line-height: 1.55; }

.steps { padding: 22px 20px 6px; }
.step { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-soft);
}
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-14);
  font-weight: 800;
  box-shadow: 0 8px 16px -8px var(--accent-glow);
}
.step h3 { font-size: var(--fs-15); margin: 7px 0 4px; }
.step p { font-size: var(--fs-14); color: var(--text-2); line-height: 1.5; }

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: var(--fs-15);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hours-row + .hours-row { border-top: 1px solid var(--line); }
.hours-row span:last-child { color: var(--text-2); }
.hours-row.is-closed span:last-child { opacity: .7; }
.hours-row.is-today { color: var(--accent); font-weight: 800; }
.hours-row.is-today span:last-child { color: var(--accent); }
.today-pill {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: var(--fs-10);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- Floating tab bar (liquid glass) ---------- */
.tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--safe-bottom) + var(--tab-gap));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--tab-h);
  padding: 6px;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transition: transform .55s var(--spring);
}
.tabbar.is-small { transform: scale(.94); }
.tabbar__pill {
  position: absolute;
  top: 6px;
  left: 0;
  width: 0;
  height: calc(var(--tab-h) - 12px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: inset 0 .5px 0 color-mix(in srgb, #fff 40%, transparent);
  will-change: transform, width;
}
.tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color .3s var(--ease);
}
.tab__icon { position: relative; display: block; width: 25px; height: 25px; }
.tab__icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tab .i-fill { opacity: 0; }
.tab.is-active .i-fill { opacity: 1; }
.tab.is-active .i-line { opacity: 0; }
.tab__label { font-size: var(--fs-10); font-weight: 700; letter-spacing: .01em; }
.tab.is-active { color: var(--accent); }

.app.kb-open .tabbar { transform: translateY(calc(100% + var(--tab-gap) + var(--safe-bottom) + 10px)); }
.app.kb-open .view--chat { padding-bottom: 8px; }

/* ---------- Bottom sheet (universal) ---------- */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .32);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.app.has-sheet .scrim { pointer-events: auto; }
.app.has-sheet { background: #000; }
.app.has-sheet .statusbar { color: #fff; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 92%;
  display: flex;
  flex-direction: column;
  border-radius: 30px 30px 0 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 -10px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
  touch-action: pan-y;
  transform: translate3d(0, 110%, 0);
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
}
.sheet__grab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  height: 22px;
  cursor: grab;
}
.sheet__grab i {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text-2) 55%, transparent);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25);
}
.sheet__content { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sheet__scroll::-webkit-scrollbar, .bk-pane::-webkit-scrollbar { display: none; }
/* Not fully open: the content can't scroll, dragging moves the sheet */
.sheet.is-medium [data-sheet-scroll] { overflow: hidden; }

.sheet__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
}
.sheet__x svg { width: 16px; height: 16px; }
.sheet__x--float {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: #fff;
}

/* Footer stays glued to the visible bottom edge at both heights */
.sheet__foot {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom)) 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--line);
}
.sheet__foot .btn { flex: none; }
.sheet__foot .btn:disabled { opacity: .4; box-shadow: none; }
.sheet__summary { flex: 1; min-width: 0; line-height: 1.3; }
.sheet__summary b { display: block; font-size: var(--fs-15); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__summary span { display: block; font-size: var(--fs-12); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--fill);
  font-size: var(--fs-13);
  color: var(--text-2);
  line-height: 1.45;
}
.sheet__note b { color: var(--text); }
.sheet__note svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

/* ---------- Service details ---------- */
.sd-photo { position: relative; margin: 8px 8px 0; height: 250px; overflow: hidden; border-radius: 24px; background: var(--fill); }
.sd-photo img { width: 100%; height: 100%; object-fit: cover; }
.sd-body { display: flex; flex-direction: column; padding: 18px 20px 48px; }
.sd-title { margin-top: 4px; font-size: var(--fs-28); }
.sd-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sd-price { font-size: var(--fs-28); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.sd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fill);
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--text-2);
}
.sd-chip svg { width: 15px; height: 15px; }
.sd-desc { margin-top: 14px; font-size: var(--fs-15); line-height: 1.55; color: color-mix(in srgb, var(--text) 80%, transparent); }
.sd-h { margin: 22px 0 10px; font-size: var(--fs-17); }
.sd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sd-list li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); font-weight: 600; }
.sd-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.sd-check svg { width: 12px; height: 12px; }
.sd-notes { padding: 4px 0; }
.sd-note { display: flex; gap: 12px; padding: 12px 14px; font-size: var(--fs-13); color: var(--text-2); line-height: 1.45; }
.sd-note + .sd-note { box-shadow: inset 0 1px 0 var(--line); }
.sd-note b { display: block; color: var(--text); font-size: var(--fs-14); margin-bottom: 2px; }

/* ---------- Booking (3 steps) ---------- */
.bk-head { display: flex; align-items: center; gap: 10px; padding: 26px 16px 10px; }
.bk-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: scale(.6);
  transition: opacity .25s var(--ease), transform .5s var(--spring);
}
.bk-back svg { width: 22px; height: 22px; }
.bk-back.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.bk-steps {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}
.bk-steps__pill {
  position: absolute;
  top: 3px;
  left: 0;
  width: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}
:root[data-theme="dark"] .bk-steps__pill { background: #2C2C33; }
.bk-steps button {
  position: relative;
  z-index: 1;
  height: 32px;
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--text-2);
  transition: color .25s var(--ease);
}
.bk-steps button.is-done { color: var(--accent); }
.bk-steps button.is-active { color: var(--text); }
.bk-steps button:disabled { opacity: .45; cursor: default; }

.bk-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.bk-pane {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 20px 48px;
}
.bk-title { font-size: var(--fs-22); }
.bk-sub { margin: 4px 0 16px; font-size: var(--fs-13); color: var(--text-2); }
.bk-label { margin: 18px 2px 10px; font-size: var(--fs-13); font-weight: 700; color: var(--text-2); }

.bk-chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 12px 0 16px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.bk-chosen img { flex: none; width: 44px; height: 44px; border-radius: 13px; object-fit: cover; }
.bk-chosen span { flex: 1; min-width: 0; }
.bk-chosen b { display: block; font-size: var(--fs-14); font-weight: 800; }
.bk-chosen small { font-size: var(--fs-12); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-chosen em { font-style: normal; font-size: var(--fs-13); font-weight: 700; color: var(--accent); }

.days {
  display: flex;
  gap: 8px;
  margin: 0 -20px;
  padding: 4px 20px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding: 0 20px;
  touch-action: pan-x;
  cursor: grab;
}
.days::after { content: ''; flex: 0 0 12px; } /* keeps 20px of room after the last day */
.days.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.days.is-wheeling { scroll-snap-type: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 58px;
  padding: 10px 0 12px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}
.day small { font-size: var(--fs-11); font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.day b { font-size: var(--fs-22); font-weight: 800; letter-spacing: -.02em; }
.day i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.day.is-empty { opacity: .45; }
.day.is-empty i { visibility: hidden; }
.day.is-selected { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 20px -10px var(--accent-glow); opacity: 1; }
.day.is-selected small { color: inherit; opacity: .85; }
.day.is-selected i { background: currentColor; }

.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time {
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-14);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.time.is-selected {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 20px -10px var(--accent-glow);
}
.times__empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  border-radius: 16px;
  background: var(--fill);
  text-align: center;
  font-size: var(--fs-14);
  color: var(--text-2);
}

.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  text-align: left;
  background: transparent;
}
.pick img { flex: none; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--fill); }
.pick__text { flex: 1; min-width: 0; }
.pick__text b { display: block; font-size: var(--fs-14); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick__text small { font-size: var(--fs-12); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick__price { font-size: var(--fs-15); font-weight: 800; font-variant-numeric: tabular-nums; }
.pick__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-2) 50%, transparent);
  color: var(--on-accent);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pick__check svg { width: 13px; height: 13px; transform: scale(0); transition: transform .5s var(--spring); }
.pick.is-selected { background: var(--accent-soft); }
.pick.is-selected .pick__check { background: var(--accent); box-shadow: none; }
.pick.is-selected .pick__check svg { transform: scale(1); }

.bk-sum { padding: 6px 16px; }
.bk-sum__svc { display: flex; align-items: center; gap: 12px; padding: 10px 0 12px; }
.bk-sum__svc img { flex: none; width: 52px; height: 52px; border-radius: 15px; object-fit: cover; }
.bk-sum__svc b { display: block; font-size: var(--fs-15); font-weight: 800; }
.bk-sum__svc small { font-size: var(--fs-12); color: var(--text-2); font-weight: 600; }
.bk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: var(--fs-14);
}
.bk-row span { color: var(--text-2); font-weight: 600; }
.bk-row b { font-weight: 800; text-align: right; }
.bk-row--accent b { color: var(--accent); }

/* ---------- View Transitions (service photo → sheet) ---------- */
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-new(sheet) { animation: vt-sheet-in .5s cubic-bezier(.32, .72, 0, 1) both; }
::view-transition-old(sheet) { display: none; }
::view-transition-group(svc-hero) { overflow: clip; border-radius: 24px; }
::view-transition-old(svc-hero), ::view-transition-new(svc-hero) { height: 100%; object-fit: cover; }
@keyframes vt-sheet-in { from { transform: translateY(70%); opacity: 0; } }

/* ---------- Skeletons ---------- */
.skeleton {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(var(--safe-top) + var(--nav-h) + var(--fs-lt) * 1.2 + 14px) 20px 0;
  pointer-events: none;
}
.sk {
  flex: none;
  border-radius: 18px;
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
.sk-row { display: flex; gap: 8px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sk-grid .sk { aspect-ratio: 1; border-radius: 14px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Notice popover ---------- */
.notice { position: absolute; inset: 0; z-index: 50; }
.notice__card {
  position: absolute;
  top: calc(var(--safe-top) + 50px);
  right: 14px;
  width: min(290px, calc(100% - 28px));
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 24px;
  background: var(--glass-strong);
  transform-origin: calc(100% - 22px) 0;
}
.notice__card img { flex: none; width: 44px; height: 44px; }
.notice__card strong { display: block; font-size: var(--fs-14); font-weight: 800; }
.notice__card p { margin-top: 3px; font-size: var(--fs-13); color: var(--text-2); line-height: 1.45; }
.notice__card time { display: block; margin-top: 8px; font-size: var(--fs-11); font-weight: 700; color: var(--accent); }

/* ---------- Toast: Dynamic Island ---------- */
.toast {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 8px); /* never above the status bar area */
  z-index: 99;
  display: none;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 40px;
  margin: 0 auto;
  padding: 0 18px 0 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .88);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .15), 0 10px 30px rgba(0, 0, 0, .28);
  color: #fff;
  font-size: var(--fs-14);
  font-weight: 700;
  white-space: nowrap;
  transform-origin: 50% 0;
  pointer-events: none;
}
.toast.is-visible { display: flex; }
.toast__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #34C759;
}
.toast__icon svg { width: 15px; height: 15px; }
.toast__icon--heart { background: none; color: #FF3B5C; }
.toast__icon--heart svg { width: 20px; height: 20px; }
.toast__icon--link { background: #0A84FF; }
.toast__icon--bell { background: #FF9500; }
.toast__icon--sparkle { background: var(--accent); }
.toast__text { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) { .toast { top: 11px; } }

/* ---------- Pull to refresh ---------- */
.ptr {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  left: 50%;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translate3d(-50%, -14px, 0) scale(.6);
  pointer-events: none;
  will-change: transform, opacity;
}
.ptr__spinner { position: relative; width: 22px; height: 22px; }
.ptr__spinner i {
  position: absolute;
  left: 10px;
  top: 0;
  width: 2.4px;
  height: 6.5px;
  border-radius: 2px;
  background: #fff;
  transform-origin: 1.2px 11px;
  transform: rotate(calc(var(--i) * 30deg));
}
.ptr__spinner i { opacity: calc(1 - var(--i) * .065); }
.ptr.is-spinning .ptr__spinner { animation: ptr-spin .9s steps(12) infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ---------- Stories: caption + CTA ---------- */
.stories__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 70px 18px calc(var(--safe-bottom) + 22px);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .7) 100%);
  color: #fff;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.stories__foot.is-empty { background: none; }
.stories__caption { max-width: 92%; font-size: 16px; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.stories__cta {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .55), 0 0 0 .5px rgba(255, 255, 255, .25);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  pointer-events: auto;
}
.stories__cta svg { width: 18px; height: 18px; }
.stories.is-paused .stories__foot { opacity: 0; }

/* ---------- Theme switch: circle reveal (View Transitions) ---------- */
:root.vt-theme { transition: none !important; }
:root.vt-theme::view-transition-old(root),
:root.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Onboarding ---------- */
.onb {
  position: absolute;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 16px) 0 calc(var(--safe-bottom) + 20px);
  overflow: hidden;
  background: var(--bg);
}
.onb__skip {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 16px;
  z-index: 2;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text-2);
}
.onb__viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.onb__track { display: flex; height: 100%; will-change: transform; }
.onb__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  text-align: center;
}
.onb__art { position: relative; display: grid; place-items: center; width: 240px; height: 240px; margin-bottom: 26px; }
.onb__glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 70%);
}
.onb__icon {
  position: relative;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 22px 30px color-mix(in srgb, var(--accent) 40%, transparent));
  animation: float 5s ease-in-out infinite;
}
.onb__chip, .onb__bubble {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), var(--shadow);
  font-size: var(--fs-12);
  font-weight: 700;
  white-space: nowrap;
}
.onb__chip--a { top: 12%; left: -6%; animation: float 6s ease-in-out -1s infinite; }
.onb__chip--b { bottom: 10%; right: -4%; background: var(--accent); color: var(--on-accent); animation: float 5.5s ease-in-out -2.5s infinite; }
.onb__bubble { border-radius: 18px; text-align: left; font-weight: 600; }
.onb__bubble--me { top: 10%; right: -8%; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; animation: float 6s ease-in-out -1s infinite; }
.onb__bubble:not(.onb__bubble--me) { bottom: 10%; left: -8%; border-bottom-left-radius: 6px; animation: float 5.5s ease-in-out -3s infinite; }
.onb__title { font-size: calc(29px * var(--text-scale)); letter-spacing: -.03em; }
.onb__text { max-width: 310px; margin-top: 12px; font-size: var(--fs-15); line-height: 1.5; color: var(--text-2); }
.onb__dots { display: flex; justify-content: center; gap: 9px; margin: 6px 0 18px; }
.onb__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-2) 40%, transparent);
  transition: transform .5s var(--spring), background-color .3s var(--ease);
}
.onb__dots i.is-active { background: var(--accent); transform: scale(1.35); }
.onb__next { width: auto; margin: 0 24px; }

/* Add to Home Screen hint */
.a2hs { width: 196px; height: 246px; margin-bottom: 26px; }
.a2hs__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 9%, transparent), var(--shadow);
}
.a2hs__page { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.a2hs__page i { display: block; border-radius: 6px; background: var(--fill); }
.a2hs__hero { height: 74px; border-radius: 14px !important; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, var(--card)), var(--accent)) !important; }
.a2hs__line { height: 8px; }
.a2hs__line--short { width: 60%; }
.a2hs__card { height: 42px; border-radius: 12px !important; }
.a2hs__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--glass-strong);
  box-shadow: inset 0 .5px 0 var(--line);
}
.a2hs__bar > i { width: 18px; height: 4px; border-radius: 2px; background: var(--fill); }
.a2hs__share { position: relative; display: grid; place-items: center; color: #0A84FF; }
.a2hs__share svg { width: 20px; height: 20px; }
.a2hs__tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: color-mix(in srgb, #0A84FF 35%, transparent);
  animation: a2hs-tap 5s ease-out infinite;
}
.a2hs__sheet {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .18), 0 0 0 .5px var(--line);
  animation: a2hs-sheet 5s cubic-bezier(.32, .72, 0, 1) infinite;
}
.a2hs__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}
.a2hs__row + .a2hs__row { box-shadow: inset 0 .5px 0 var(--line); }
.a2hs__row span { position: relative; display: grid; color: var(--text-2); }
.a2hs__row svg { width: 15px; height: 15px; }
.a2hs__glow { position: absolute; inset: 0; border-radius: 10px; background: var(--accent-soft); opacity: 0; animation: a2hs-hi 5s ease-in-out infinite; }
.a2hs__row--hi { color: var(--accent); }
.a2hs__row--hi span { color: var(--accent); }
@keyframes a2hs-tap { 0%, 8% { transform: scale(.3); opacity: 0; } 12% { opacity: 1; } 26%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes a2hs-sheet { 0%, 20% { transform: translateY(118%); } 34%, 82% { transform: translateY(0); } 94%, 100% { transform: translateY(118%); } }
@keyframes a2hs-hi { 0%, 46% { opacity: 0; } 54%, 74% { opacity: 1; } 82%, 100% { opacity: 0; } }

/* ---------- Splash ---------- */
.splash {
  --splash-bg: #FAF8F6;
  position: absolute;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background:
    radial-gradient(60% 42% at 50% 44%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 100%),
    var(--splash-bg);
  color: var(--text);
}
:root[data-theme="dark"] .splash { --splash-bg: #0E0E11; }
.splash__inner { position: absolute; inset: 0; display: grid; place-items: center; }

/* "clean": one 3D illustration, two-tone logo, tagline, three dots */
.splash__stack { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 32px; margin-top: -4vh; }
.splash__art { position: relative; display: grid; place-items: center; width: 150px; height: 160px; }
.splash__float { animation: splash-float 2.4s ease-in-out infinite; will-change: transform; }
.splash__emoji { display: block; width: 120px; height: 120px; filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--accent) 28%, transparent)); }
.splash__shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 78px;
  height: 14px;
  margin-left: -39px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 22%, transparent), transparent);
  animation: splash-shadow 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes splash-float { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-6px); } }
@keyframes splash-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .6; } }
.splash__logo {
  margin-top: 18px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--text);
}
.splash__logo span { color: var(--accent); }
.splash__tag { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.splash__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--safe-bottom) + 44px);
  display: flex;
  justify-content: center;
  gap: 7px;
}
.splash__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .25;
  animation: splash-dot 1.2s ease-in-out infinite;
}
.splash__dots i:nth-child(2) { animation-delay: .2s; }
.splash__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes splash-dot { 0%, 60%, 100% { opacity: .25; transform: scale(1); } 30% { opacity: 1; transform: scale(1.25); } }

/* "photo": full-bleed photo, white logo, thin progress line */
.splash--photo { background: #000; color: #fff; }
.splash__photo { position: absolute; inset: 0; overflow: hidden; }
.splash__zoom { position: absolute; inset: 0; will-change: transform; }
.splash__img { position: absolute; max-width: none; will-change: transform; }
.splash__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .78) 100%);
  transition: opacity .5s var(--ease);
}
.splash.is-landing { background: transparent; }
.splash.is-landing .splash__photo::after { opacity: 0; }
.splash__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: calc(var(--safe-bottom) + 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.splash__logo--white, .splash__logo--white span { color: #fff; }
.splash__logo--white { font-size: 34px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.splash--photo .splash__tag { color: rgba(255, 255, 255, .85); }
.splash__bar { width: 120px; height: 2px; margin-top: 22px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.splash__bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; }

/* ---------- Welcome (first launch) ---------- */
.welcome {
  position: absolute;
  inset: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.welcome__top {
  position: relative;
  flex: 0 0 55%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  background:
    radial-gradient(90% 70% at 20% 10%, color-mix(in srgb, #fff 40%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, var(--bg)) 0%, color-mix(in srgb, var(--accent) 62%, var(--bg)) 100%);
  padding-top: var(--safe-top);
}
:root[data-theme="dark"] .welcome__top {
  background:
    radial-gradient(90% 70% at 20% 10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--bg)) 0%, color-mix(in srgb, var(--accent) 48%, var(--bg)) 100%);
}
.welcome__photo {
  width: min(62%, 250px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  transform: rotate(-3deg);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .85), 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.welcome__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.welcome__emoji { width: 140px; height: 140px; }
.wchip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), 0 12px 30px -10px rgba(0, 0, 0, .25);
  color: var(--text);
  font-size: var(--fs-13);
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
}
.wchip .star { color: #FFB400; }
.wchip i { width: 8px; height: 8px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px color-mix(in srgb, #34C759 25%, transparent); }
.wchip--a { top: calc(var(--safe-top) + 20%); left: 6%; animation: wchip-a 5s ease-in-out infinite; }
.wchip--b { bottom: 12%; right: 6%; animation: wchip-b 5s ease-in-out infinite; }
@keyframes wchip-a { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes wchip-b { 0%, 100% { transform: translateY(5px); } 50% { transform: translateY(-5px); } }
.welcome__bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 24px calc(var(--safe-bottom) + 18px);
}
.welcome__title { font-size: calc(27.3px * var(--text-scale)); letter-spacing: -.03em; line-height: 1.12; }
.welcome__title span { color: var(--accent); }
.welcome__text { margin: 10px 0 auto; padding-bottom: 20px; font-size: var(--fs-15); line-height: 1.5; color: var(--text-2); }
.welcome__go { height: 56px; border-radius: 18px; font-size: var(--fs-17); }
.welcome__guest {
  align-self: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 16px;
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--text-2);
}
.welcome__guest:active { opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  .splash__float, .splash__shadow, .splash__dots i, .wchip { animation: none !important; }
}

/* ---------- Error state ---------- */
.error-state {
  position: absolute;
  inset: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  background: var(--bg);
}
.error-state img { width: 72px; height: 72px; margin-bottom: 8px; }
.error-state h1 { font-size: var(--fs-22); }
.error-state p { color: var(--text-2); font-size: var(--fs-14); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .mesh i, .promo__shine, .promo__art { animation: none !important; }
}

/* =========================================================
   New components
   ========================================================= */

/* ---------- Trust stats (count up) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 6px 12px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
  text-align: center;
}
.stat b { font-size: var(--fs-22); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat small { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }

/* ---------- Floating Book button ---------- */
.fab {
  position: absolute;
  right: 16px;
  bottom: calc(var(--safe-bottom) + var(--tab-gap) + var(--tab-h) + 12px);
  z-index: 12;
  height: 50px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 30px -10px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, .12);
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(.6);
  pointer-events: none;
  transition: transform .6s var(--spring), opacity .25s var(--ease), filter .3s var(--ease);
}
.fab svg { width: 18px; height: 18px; }
.fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-shown:active { transform: scale(.96); filter: brightness(.92); transition-duration: .1s; }
.app.kb-open .fab { opacity: 0; pointer-events: none; }

/* ---------- Loyalty card (3D flip) ---------- */
/* Flip = squash to an edge, swap faces, open again (2D only).
   Safari breaks preserve-3d / backface-visibility inside buttons and
   scroll containers, so nothing here relies on 3D. Both faces are opaque. */
.loyalty__card {
  position: relative;
  display: grid;
  width: 100%;
  text-align: left;
  transform-origin: 50% 50%;
  will-change: transform;
}
.loyalty__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--card);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow);
}
.loyalty__back { flex-direction: row; align-items: center; visibility: hidden; }
.loyalty__card.is-flipped .loyalty__front { visibility: hidden; }
.loyalty__card.is-flipped .loyalty__back { visibility: visible; }
.loyalty__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loyalty__head b { display: block; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.02em; }
.loyalty__head small { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.loyalty__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-17);
  font-weight: 800;
}
.loyalty__stamps { display: flex; justify-content: space-between; gap: 6px; }
.stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px dashed color-mix(in srgb, var(--text-2) 55%, transparent);
  color: var(--text-2);
}
.stamp svg { width: 22px; height: 22px; }
.stamp.is-on {
  border: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px var(--accent-glow);
}
.stamp.is-on::after { /* a slow glint across each filled stamp */
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: glint 4.5s cubic-bezier(.45, 0, .2, 1) calc(var(--i) * .25s + 1s) infinite;
}
@keyframes glint { 0% { transform: translateX(-120%); } 25%, 100% { transform: translateX(120%); } }
.stamp.is-reward:not(.is-on) { border-color: var(--accent); color: var(--accent); }
.loyalty__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-13); font-weight: 700; }
.loyalty__foot span { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); min-width: 0; }
.loyalty__foot span svg { flex: none; width: 16px; height: 16px; }
.loyalty__foot em, .loyalty__terms em { font-style: normal; font-size: var(--fs-11); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.loyalty__qr {
  flex: none;
  width: 104px;
  height: 104px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  color: #16161A;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08);
}
.loyalty__qr svg { width: 100%; height: 100%; fill: currentColor; }
.loyalty__terms { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.loyalty__terms b { font-size: var(--fs-15); font-weight: 800; }
.loyalty__terms small { font-size: var(--fs-12); line-height: 1.45; color: var(--text-2); }

/* ---------- Favorite (heart) buttons ---------- */
.fav {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .35);
  transition: transform .45s var(--spring), filter .3s var(--ease);
}
.fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: fill .2s var(--ease), stroke .2s var(--ease); overflow: visible; }
.fav[aria-pressed="true"] svg { fill: #FF3B5C; stroke: #FF3B5C; }
.fav:active { transform: scale(.88); }
.fav--photo { position: absolute; top: 8px; right: 8px; z-index: 2; }
.fav--sm { width: 28px; height: 28px; top: 5px; right: 5px; }
.fav--sm svg { width: 14px; height: 14px; }
.fav--lg { top: 14px; left: 14px; right: auto; width: 32px; height: 32px; }
/* "pop": a ring bursts out when something is saved */
.fav::after, .lightbox__like::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #FF3B5C;
  opacity: 0;
  pointer-events: none;
}
.fav.is-pop::after, .lightbox__like.is-pop::after { animation: fav-pop .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes fav-pop { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.lightbox__like { position: relative; }

/* service cards now host a heart, so they are role="button" divs */
.svc2, .svc-card { cursor: pointer; }
.svc2__media { position: relative; flex: none; display: block; }
.svc2:focus-visible, .svc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Notification center (sheet) ---------- */
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 28px 20px 10px; }
.sheet-head h2 { margin-top: 2px; font-size: var(--fs-22); }
.notif-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 48px; }
.notif {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 14px 12px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.notif__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); }
.notif__icon img { width: 28px; height: 28px; }
.notif__body { flex: 1; min-width: 0; }
.notif__body b { display: block; font-size: var(--fs-15); font-weight: 800; letter-spacing: -.01em; }
.notif__body p { margin-top: 3px; font-size: var(--fs-13); line-height: 1.45; color: var(--text-2); }
.notif__body time { display: block; margin-top: 6px; font-size: var(--fs-11); font-weight: 700; color: var(--text-2); }
.notif__dot { display: none; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.notif.is-unread .notif__dot { display: block; }
.notif.is-unread { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow-sm); }

/* ---------- Saved (More) ---------- */
.row__thumb { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--fill); }
.saved-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.saved-grid__item { aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--fill); }
.saved-grid__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Images: shimmer while loading, blur → sharp when ready ---------- */
img.fx-loading {
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
img.fx-in { animation: fx-in .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes fx-in { from { opacity: 0; filter: blur(12px); } }

/* ---------- Book buttons: one look everywhere ---------- */
.msg-book { align-self: flex-start; margin: 2px 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero__kb, .stamp.is-on::after { animation: none !important; }
}

/* =========================================================
   Final polish
   ========================================================= */

/* ---------- Book again ---------- */
.again { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; }
.again__photo { flex: none; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--fill); }
.again__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.again__text b { font-size: var(--fs-15); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Review: prep ---------- */
.prep { margin: 14px 0 12px; padding: 14px 16px; }
.prep__title { display: block; margin-bottom: 10px; font-size: var(--fs-15); font-weight: 800; }
.prep ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.prep li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-14); line-height: 1.4; }
.prep .sd-check { margin-top: 1px; }

/* ---------- Find the studio ---------- */
.place { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.place__head { display: flex; align-items: flex-start; gap: 12px; }
.place__head b { display: block; font-size: var(--fs-15); font-weight: 800; }
.place__head small { display: block; margin-top: 2px; font-size: var(--fs-13); color: var(--text-2); line-height: 1.4; }
.place__pin { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.place__pin svg { width: 18px; height: 18px; }
.place__note { display: flex; gap: 8px; font-size: var(--fs-13); color: var(--text-2); line-height: 1.45; }
.place__note svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.place__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.place__actions .btn { height: 44px; padding: 0 10px; }
.chat-card--place .place { padding: 14px; }

/* ---------- Invite a friend ---------- */
.invite {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 14px;
  padding: 16px;
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
}
.invite__art { flex: none; width: 44px; height: 44px; }
.invite__text { flex: 1; min-width: 0; }
.invite__text b { display: block; font-size: var(--fs-17); font-weight: 800; letter-spacing: -.02em; }
.invite__text p { margin-top: 2px; font-size: var(--fs-12); color: var(--text-2); line-height: 1.4; }
.invite .btn { grid-column: 1 / -1; height: 46px; width: 100%; }

/* ---------- Owner view (demo) ---------- */
.owner {
  position: absolute;
  inset: 0;
  z-index: 160;
  overflow: hidden;
  background: var(--bg);
}
.owner__bar {
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-float);
}
.owner__badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-14); font-weight: 800; }
.owner__badge svg { width: 17px; height: 17px; color: var(--accent); }
.demo-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #FF9500 18%, transparent);
  color: #C76B00;
  font-size: var(--fs-10);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
:root[data-theme="dark"] .demo-tag { color: #FFB340; }
.owner__exit {
  margin-left: auto;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-13);
  font-weight: 700;
}
.owner__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(var(--safe-top) + 76px) 16px calc(var(--safe-bottom) + 32px);
}
.owner__scroll::-webkit-scrollbar { display: none; }
.owner__scroll > * { flex-shrink: 0; }
.owner__head { padding: 0 4px; }
.owner__head h1 { margin-top: 4px; font-size: var(--fs-lt); }
.owner__head p { margin-top: 6px; font-size: var(--fs-14); color: var(--text-2); }
.owner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric {
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  text-align: left;
  border-radius: 22px;
}
.metric img { width: 32px; height: 32px; }
.metric b { font-size: calc(30px * var(--text-scale)); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.metric small { font-size: var(--fs-12); line-height: 1.3; }
.owner__card { padding: 16px; }
.owner__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.owner__h b { font-size: var(--fs-15); font-weight: 800; }
.owner__chart { display: block; width: 100%; height: auto; overflow: visible; }
.owner__chart .bar { fill: var(--accent-soft); }
.owner__chart .bar.is-max { fill: var(--accent); }
.owner__chart text { font-family: inherit; text-anchor: middle; }
.owner__chart .bar-v { font-size: 11px; font-weight: 800; fill: var(--text); }
.owner__chart .bar-l { font-size: 11px; font-weight: 600; fill: var(--text-2); }
.owner__qs { list-style: none; margin: 0; padding: 0; }
.owner__qs li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.owner__qs li + li { box-shadow: inset 0 1px 0 var(--line); }
.owner__rank { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--fill); font-size: var(--fs-12); font-weight: 800; color: var(--text-2); }
.owner__q { flex: 1; min-width: 0; font-size: var(--fs-14); font-weight: 600; }
.owner__count { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-13); font-weight: 800; }
.owner__svc { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.owner__svc img { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.owner__svc-body { flex: 1; min-width: 0; }
.owner__svc-top { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-13); }
.owner__svc-top b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner__svc-top span { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.owner__track { height: 8px; margin-top: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.owner__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent));
  transform: scaleX(var(--p));
  transform-origin: 0 50%;
  transition: transform 1s var(--spring);
}
.owner__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, #fff 22%, transparent), transparent 60%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 16px 36px -18px var(--accent-glow);
}
.owner__cta p { font-size: var(--fs-17); font-weight: 700; line-height: 1.35; }
.owner__cta .btn--dark { background: #16161A; color: #fff; }
.owner__cta small { font-size: var(--fs-11); opacity: .8; text-align: center; }

/* ---------- Offline ---------- */
.offline {
  position: absolute;
  inset: 0;
  z-index: 210;
  overflow-y: auto;
  background: var(--bg);
}
.offline__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 100%;
  padding: calc(var(--safe-top) + 56px) 20px calc(var(--safe-bottom) + 28px);
  text-align: center;
}
.offline__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); }
.offline__icon svg { width: 34px; height: 34px; }
.offline h1 { margin-top: 6px; font-size: var(--fs-28); }
.offline p { max-width: 300px; font-size: var(--fs-14); color: var(--text-2); }
.offline__list { width: 100%; margin: 8px 0 4px; padding: 6px 16px; text-align: left; }
.offline__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 0; }
.offline__name b { font-size: var(--fs-15); font-weight: 800; }
.offline__name small { font-size: var(--fs-12); color: var(--text-2); }
.offline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; box-shadow: inset 0 1px 0 var(--line); font-size: var(--fs-14); font-weight: 600; }
.offline__row small { display: block; font-size: var(--fs-12); font-weight: 500; color: var(--text-2); }
.offline__row b { font-weight: 800; }
.offline .btn { width: 100%; }
.offline-bar {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-top) + 8px);
  z-index: 98;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-float);
  font-size: var(--fs-12);
  font-weight: 700;
  white-space: nowrap;
  transform: translate3d(-50%, -160%, 0);
  transition: transform .55s var(--spring);
  pointer-events: none;
}
.offline-bar svg { width: 16px; height: 16px; color: #FF9500; }
.offline-bar.is-shown { transform: translate3d(-50%, 0, 0); }

/* ---------- Native feel ---------- */
.stage { height: 100vh; height: var(--vvh, 100dvh); }

/* black-translucent status bar: keep its white text readable on light screens */
@media (display-mode: standalone) {
  :root:not([data-theme="dark"]) .app::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: calc(var(--safe-top) + 6px);
    z-index: 290;
    background: linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, 0));
    pointer-events: none;
  }
}

/* 44×44 minimum touch targets without changing how things look */
:where(.sheet__x, .search__clear, .link-btn, .cc-slot, .chip, .bk-back, .back-btn, .stories__close, .owner__exit, .btn--sm, .slot) { position: relative; }
.sheet__x::before, .fav::before, .nav-btn::before, .back-btn::before, .search__clear::before,
.lightbox__close::before, .stories__close::before, .bk-back::before, .swatch::before, .link-btn::before,
.cc-slot::before, .lightbox__like::before, .onb__skip::before, .chip::before, .chipbar__chip::before,
.switch::before, .owner__exit::before, .btn--sm::before, .slot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

/* keyboard focus: always visible, never clipped */
.btn:focus-visible, .chip:focus-visible, .chipbar__chip:focus-visible, .tab:focus-visible,
.row--link:focus-visible, .pick:focus-visible, .day:focus-visible, .time:focus-visible,
.slot:focus-visible, .story:focus-visible, .fav:focus-visible, .nav-btn:focus-visible,
.segmented button:focus-visible, .swatch:focus-visible, .switch:focus-visible, .loyalty__card:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}
input, select, textarea { font-size: max(16px, 1em); }

@media (prefers-reduced-motion: reduce) {
}

/* ---------- Cosmos (splash + Welcome background) ---------- */
.cosmos { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cosmos__canvas { position: absolute; left: 0; top: 0; display: block; }
.cosmos__rays i {
  --r: 0deg;
  --ray: 255, 214, 160;
  position: absolute;
  top: -30%;
  width: 38%;
  height: 150%;
  background: linear-gradient(180deg, rgba(var(--ray), .9) 0%, rgba(var(--ray), 0) 72%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(30px);
  opacity: .06;
  transform-origin: 50% 0;
  transform: rotate(var(--r));
  animation: ray-sway 8s ease-in-out infinite alternate;
  will-change: transform;
}
.cosmos__rays i:nth-child(1) { left: 2%; --r: -16deg; }
.cosmos__rays i:nth-child(2) { left: 32%; --r: 3deg; opacity: .08; animation-delay: -3s; animation-duration: 9s; }
.cosmos__rays i:nth-child(3) { left: 62%; --r: 18deg; animation-delay: -6s; }
:root[data-theme="dark"] .cosmos__rays i { --ray: 225, 232, 255; opacity: .08; }
:root[data-theme="dark"] .cosmos__rays i:nth-child(2) { opacity: .1; }
.cosmos--on-accent .cosmos__rays i { --ray: 255, 255, 255; opacity: .1; }
@keyframes ray-sway { from { transform: rotate(calc(var(--r) - 3deg)); } to { transform: rotate(calc(var(--r) + 3deg)); } }

/* content always sits above the sky */
.splash__inner { z-index: 1; }
.welcome__photo, .welcome__emoji { position: relative; z-index: 1; }
.wchip { z-index: 2; }

/* =========================================================
   Looks — "Choose your look"
   ========================================================= */
.looks-sub { margin: -10px 2px -6px; font-size: var(--fs-14); color: var(--text-2); }
.chip-n {
  margin-left: 6px;
  font-size: var(--fs-11);
  font-weight: 800;
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.chipbar__chip.is-active .chip-n { opacity: .75; }

.masonry.is-empty { display: block; }
.look { position: relative; display: block; cursor: pointer; will-change: transform; transition: transform .45s var(--spring), filter .3s var(--ease); }
.look:active { transform: scale(.97); filter: brightness(.94); transition-duration: .1s; }
.look:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 20px; }
.look__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.look__lqip, .look__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.look__lqip { filter: blur(14px); transform: scale(1.12); }
.look__img { opacity: 0; filter: blur(12px); transition: opacity .55s var(--ease), filter .7s var(--ease); }
.look__img.is-in { opacity: 1; filter: none; }
.look__img.is-instant { transition: none; }
.look__media:has(.look__img.is-in) { animation: none; }

.look__badges { position: absolute; top: 8px; left: 8px; right: 42px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lbadge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: var(--fs-10);
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.lbadge--new { background: var(--accent); color: var(--on-accent); letter-spacing: .06em; text-transform: uppercase; }
.lbadge--hot { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; }
.look .fav--photo { z-index: 2; }
.look__plaque {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 32px;
  padding: 0 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .8), 0 6px 16px -8px rgba(0, 0, 0, .3);
  color: #16161A;
  font-size: var(--fs-12);
  white-space: nowrap;
}
:root[data-theme="dark"] .look__plaque { background: rgba(26, 26, 31, .66); color: #F4F4F6; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .14); }
.look__plaque b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.look__plaque span { flex: none; font-weight: 700; opacity: .75; }
.look__stats {
  position: absolute;
  left: 7px;
  bottom: 45px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: var(--fs-10);
  font-weight: 700;
  white-space: nowrap;
}

.looks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 24px 28px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: var(--fs-14);
  color: var(--text-2);
}
.looks-empty img { width: 72px; height: 72px; margin-bottom: 4px; animation: float 5s ease-in-out infinite; }
.looks-empty strong { color: var(--text); font-size: var(--fs-17); }
.looks-empty .btn { margin-top: 8px; }

/* owner demo: top look + banner */
.owner-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; cursor: pointer; }
.owner-top img { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.owner-top__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.owner-top__text b { font-size: var(--fs-15); font-weight: 800; letter-spacing: -.01em; }
.owner-top__text small { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-2); }
.owner__toplook { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.owner__toplook img { flex: none; width: 64px; height: 80px; border-radius: 14px; object-fit: cover; }
.owner__toplook b { display: block; font-size: var(--fs-17); font-weight: 800; }
.owner__toplook span > span { display: block; margin-top: 2px; font-size: var(--fs-13); font-weight: 700; color: var(--accent); }
.owner__toplook small { display: block; margin-top: 4px; font-size: var(--fs-12); color: var(--text-2); }
.owner-banner {
  position: absolute;
  left: 16px;
  bottom: calc(var(--safe-bottom) + var(--tab-gap) + var(--tab-h) + 12px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 0 0 .5px var(--glass-edge), var(--shadow-float);
}
.owner-banner .owner__badge { font-size: var(--fs-13); }
.owner-banner__btn { height: 36px; padding: 0 12px; border-radius: 999px; background: var(--fill); font-size: var(--fs-12); font-weight: 700; }
.owner-banner__btn--x { display: grid; place-items: center; width: 36px; padding: 0; }
.owner-banner__btn--x svg { width: 14px; height: 14px; }

/* ---------- Look viewer ---------- */
.lv { position: absolute; inset: 0; z-index: 95; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.lv__bg { position: absolute; inset: 0; background: #0B0B0D; opacity: 0; }
.lv.is-open .lv__bg { opacity: 1; }
.lv__stage { position: absolute; inset: 0; }
.lv__track { position: absolute; inset: 0; display: flex; will-change: transform; }
.lv.is-flying .lv__track { opacity: 0; }
.lv__slide { position: relative; flex: 0 0 100%; overflow: hidden; }
.lv__zoom {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--safe-top) + 56px);
  bottom: calc(var(--lv-peek, 240px) + 14px);
  display: grid;
  place-items: center;
  transform-origin: 0 0;
  will-change: transform;
}
.lv__zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; pointer-events: none; -webkit-user-drag: none; }
.lv__top {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity .3s var(--ease);
}
.lv__count {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.lv__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4);
  color: #fff;
}
.lv__close svg { width: 18px; height: 18px; }
.lv__close::before { content: ''; position: absolute; inset: -4px; }
.lv.is-dragging .lv__top, .lv.is-flying .lv__top, .lv.is-zoomed .lv__top .lv__count { opacity: 0; }
/* the wrapper is as tall as the expanded card: only the (translated) card takes touches */
.lv__panel { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.lv__card { pointer-events: auto; }
.lv.is-zoomed .lv__panel { opacity: 0; pointer-events: none; }
.lv__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 .5px 0 var(--glass-hi), 0 -12px 40px rgba(0, 0, 0, .35);
  will-change: transform;
}
.lv__grab { flex: none; display: grid; place-items: center; height: 20px; cursor: grab; }
.lv__grab i { width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text-2) 55%, transparent); }
.lv__content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 20px 12px; cursor: grab; }
.lv__titles { min-width: 0; }
.lv__head h2 { margin-top: 2px; font-size: var(--fs-22); }
.lv__meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.lv__meta svg { width: 14px; height: 14px; margin-left: 2px; }
.lv__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lv__price { font-size: var(--fs-22); font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.fav--panel {
  width: 38px;
  height: 38px;
  background: var(--fill);
  color: var(--text);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.fav--panel svg { width: 19px; height: 19px; }
.lv__body { flex: 1; min-height: 0; overflow: hidden; padding: 0 20px 16px; overscroll-behavior: contain; scrollbar-width: none; }
.lv__body::-webkit-scrollbar { display: none; }
.lv.is-expanded .lv__body { overflow-y: auto; touch-action: pan-y; }
.lv__review { margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); }
.lv__review blockquote { margin: 8px 0 10px; font-size: var(--fs-14); line-height: 1.5; }
.lv__review figcaption { display: flex; align-items: center; gap: 8px; font-size: var(--fs-12); font-weight: 700; color: var(--text-2); }
.lv__review .review__initial { width: 26px; height: 26px; font-size: var(--fs-11); }
.lv__label { margin: 4px 2px 10px; font-size: var(--fs-11); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.lv__body .ba { aspect-ratio: 4 / 5; touch-action: none; }
.lv__desc { font-size: var(--fs-14); line-height: 1.5; color: var(--text-2); }
.lv__foot {
  flex: none;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(12px + var(--safe-bottom));
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: inset 0 .5px 0 var(--line);
}
.lv__book { flex: 1; height: 54px; border-radius: 18px; font-size: calc(16px * var(--text-scale)); }
.lv__share { flex: none; height: 54px; padding: 0 16px; border-radius: 18px; }

/* ---------- Booking: reference look + saved looks ---------- */
.bk-ref { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px 14px 8px 8px; }
.bk-ref img { flex: none; width: 52px; height: 64px; border-radius: 12px; object-fit: cover; }
.bk-ref__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-ref__text small { font-size: var(--fs-11); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.bk-ref__text b { font-size: var(--fs-15); font-weight: 800; }
.bk-ref__pin { font-size: 18px; }
.bk-saved {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: left;
  font-size: var(--fs-13);
  font-weight: 700;
}
.bk-saved__thumbs { flex: none; display: flex; }
.bk-saved__thumbs img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg); }
.bk-saved__thumbs img + img { margin-left: -9px; }
.bk-saved__text { flex: 1; min-width: 0; }
.bk-saved svg { flex: none; width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .look__media, .looks-empty img { animation: none !important; }
}

/* heart icons: outline when not saved, filled red when saved (the path follows the svg fill) */
.fav svg path, .lightbox__like svg path { fill: inherit; }
.lv__foot { background: var(--bg); }
.lv__body { will-change: opacity; }

/* =========================================================
   iPhone fixes
   ========================================================= */

/* ---------- Status bar backing (installed PWA) ----------
   Height = the status bar itself. Above the content, below sheets
   and full-screen viewers. Hidden where it isn't needed. */
.sb-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 170;
  height: env(safe-area-inset-top, 0px);
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.app.is-dark-overlay .sb-scrim, .app.is-splash .sb-scrim { opacity: 0; }

@media (display-mode: standalone) {
  /* screens and Large Titles start 12px below the status bar */
  .app { --safe-top: calc(env(safe-area-inset-top, 0px) + 12px); }
  /* "black-translucent" always draws the clock in white: in the light theme
     the backing uses a deep accent so the time and battery stay readable */
  :root:not([data-theme="dark"]) .sb-scrim { background: color-mix(in srgb, var(--accent) 86%, #000); }
}

/* ---------- Owner long-press: progress ring ---------- */
.hero__avatar-wrap {
  position: relative;
  flex: none;
  display: block;
  width: 56px;
  height: 56px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.hero__avatar-wrap .hero__avatar { pointer-events: none; transition: transform .5s var(--ease); }
.hero__avatar-wrap.is-holding .hero__avatar { transform: scale(.9); }
.hold-ring {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.hold-ring circle {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .35));
}
.hero__avatar-wrap.is-holding .hold-ring { opacity: 1; }
.hero__avatar-wrap.is-holding .hold-ring circle { animation: hold-fill .5s linear forwards; }
@keyframes hold-fill { to { stroke-dashoffset: 0; } }

/* ---------- Owner chart: bars grow from the bottom ---------- */
.ochart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 172px;
  padding-top: 6px;
}
.ochart__col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.ochart__v { font-size: var(--fs-11); font-weight: 800; color: var(--text-2); }
.ochart__bar {
  display: block;
  width: 100%;
  max-width: 32px;
  height: calc(var(--h) * 116px);
  min-height: 6px;
  border-radius: 9px 9px 6px 6px;
  background: color-mix(in srgb, var(--accent) 22%, var(--fill));
  transform-origin: 50% 100%;
}
.ochart__d { font-size: var(--fs-11); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ochart__col.is-today .ochart__bar { background: var(--accent); box-shadow: 0 8px 18px -8px var(--accent-glow); }
.ochart__col.is-today .ochart__v, .ochart__col.is-today .ochart__d { color: var(--accent); font-weight: 800; }

/* =========================================================
   "Request sent" (booking hand-off) — both styles
   ========================================================= */
.bk-done {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px 20px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.bk-done::-webkit-scrollbar { display: none; }
.confetti { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; }
.bk-done__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.bk-done__check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 14px 30px -12px var(--accent-glow);
}
.bk-done__check svg { width: 30px; height: 30px; stroke-width: 2.4; }
.bk-done__head h2 { font-size: var(--fs-28); }
.bk-done__head p { max-width: 300px; font-size: var(--fs-14); line-height: 1.45; color: var(--text-2); }
.bk-done__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-done__actions .btn { min-width: 0; padding: 0 12px; font-size: var(--fs-14); }
.bk-done__ok { margin-top: auto; }
.bk-row--addr b { max-width: 66%; font-weight: 600; line-height: 1.35; }

/* Line art (maison) — thin strokes at every size */
.line-art { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--accent); }
.line-art svg { width: 100%; height: 100%; overflow: visible; }
.line-art svg * { vector-effect: non-scaling-stroke; }

/* =========================================================
   MAISON — quiet luxury: serif display, hairlines, air,
   champagne accent used sparingly. Enabled by "style":"maison".
   ========================================================= */
:root[data-style="maison"] {
  --bg: #F7F3EE;
  --card: #FFFFFF;
  --text: #2A211C;
  --text-2: #7D6F63;
  --line: rgba(42, 33, 28, .10);
  --fill: rgba(42, 33, 28, .05);
  --gold: #B8936C;

  --shadow: 0 1px 2px rgba(42, 33, 28, .04), 0 14px 34px -16px rgba(42, 33, 28, .16);
  --shadow-sm: 0 1px 2px rgba(42, 33, 28, .04), 0 6px 18px -10px rgba(42, 33, 28, .14);
  --shadow-float: 0 1px 2px rgba(42, 33, 28, .05), 0 16px 40px -14px rgba(42, 33, 28, .22);

  --glass: color-mix(in srgb, var(--bg) 74%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg) 88%, transparent);
  --glass-hi: rgba(255, 255, 255, .7);
  --glass-edge: rgba(42, 33, 28, .07);
  --blur: blur(22px) saturate(140%);

  --mesh-1: 0;
  --mesh-2: 0;
  --mesh-3: 0;

  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 30%, transparent);

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-lt: calc(32px * var(--text-scale));
  --fs-hero-name: calc(38px * var(--text-scale));

  --r-card: 18px;
  --r-btn: 14px;
  --gap: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
}
:root[data-style="maison"][data-theme="dark"] {
  --bg: #0F0D0C;
  --card: #191614;
  --text: #F3ECE4;
  --text-2: #A89E94;
  --line: rgba(255, 240, 225, .08);
  --fill: rgba(255, 240, 225, .05);
  --gold: #C9A27E;

  --shadow: inset 0 0 0 1px var(--line);
  --shadow-sm: inset 0 0 0 1px var(--line);
  --shadow-float: 0 18px 44px -12px rgba(0, 0, 0, .7);

  --glass: color-mix(in srgb, var(--bg) 70%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg) 86%, transparent);
  --glass-hi: rgba(255, 240, 225, .08);
  --glass-edge: rgba(255, 240, 225, .07);
}

/* ---------- Typography ---------- */
[data-style="maison"] body {
  font-family: var(--font-body);
  font-weight: 400;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -.003em;
}
[data-style="maison"] .mesh { display: none; }
[data-style="maison"] :is(
  h1, h2, h3, .large-title, .navbar__title, .hero__name, .next__time, .rating__big,
  .svc-card__price, .svc2__price, .sd-title, .sd-price, .bk-title,
  .splash__logo, .welcome__title, .onb__title, .pick__price,
  .menu-row__title, .menu-row__price, .loyalty__mark, .mono
),
[data-style="maison"] :is(.stat, .loyalty__head, .metric, .day, .invite__text, .bk-sum__svc, .sheet__summary) > b,
[data-style="maison"] :is(.profile h2, .assistant__text strong, .owner__head h1, .error-state h1) {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.012em;
  font-variant-numeric: tabular-nums;
}
/* light-on-dark serif reads heavier: one step lighter in the dark theme */
[data-style="maison"][data-theme="dark"] :is(.large-title, .hero__name, .next__time, .rating__big, .sd-title, .welcome__title, .onb__title, .splash__logo, .owner__head h1, .menu-row__title, .menu-row__price, .section-head h2, .promo h3, .bk-title, .bk-done__head h2),
[data-style="maison"][data-theme="dark"] :is(.stat, .metric, .loyalty__head) > b { font-weight: 300; }
[data-style="maison"] :is(.large-title, .hero__name, .sd-title, .welcome__title, .owner__head h1) { letter-spacing: -.022em; }
[data-style="maison"] .navbar__title { font-weight: 500; font-size: calc(17px * var(--text-scale)); }
[data-style="maison"] .section-head h2 { font-size: calc(24px * var(--text-scale)); }
[data-style="maison"] .section-head { margin-bottom: -4px; }

/* Eyebrows: caps, 11px, wide tracking */
[data-style="maison"] :is(.eyebrow, .live, .group-label, .svc2__cat, .hero__eyebrow, .bk-label, .next__label, .menu-sec__h, .chat__day, .desk__eyebrow) {
  font-family: var(--font-body);
  font-size: calc(10px * var(--text-scale));
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
}
[data-style="maison"] .group-label { margin-left: 2px; }
[data-style="maison"] .link-btn { font-weight: 500; font-size: var(--fs-13); color: var(--text-2); letter-spacing: .01em; }
[data-style="maison"] .badge {
  padding: 5px 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .18em;
}

/* Thin strokes everywhere */
[data-style="maison"] :is(.nav-btn, .btn, .row__icon, .tab__icon, .course__go, .svc2__chev, .back-btn, .sheet__x, .hero__next, .next__status, .sd-chip, .loyalty__foot) svg { stroke-width: 1.5; }

/* ---------- Buttons ---------- */
[data-style="maison"] .btn { height: 52px; border-radius: 14px; font-weight: 500; letter-spacing: .01em; }
[data-style="maison"] .btn--sm { height: 40px; border-radius: 12px; }
[data-style="maison"] .btn--primary { box-shadow: none; }
[data-style="maison"] .btn--soft {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent);
}
[data-style="maison"] .btn--dark { font-weight: 500; }
[data-style="maison"] .fab { border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
[data-style="maison"] :is(.btn, .chip, .slot, .day, .time, .pick, .bk-chosen, .review, .svc-card, .story, .swatch, .msg-action, .pbtn):active { transform: scale(.98); filter: brightness(.96); }

/* ---------- Cards: hairlines instead of shadows ---------- */
[data-style="maison"] .card { border-radius: var(--r-card); box-shadow: var(--shadow); }
[data-style="maison"]:not([data-theme="dark"]) .card { box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(42, 33, 28, .18); }

/* ---------- Glass only on the bars ---------- */
[data-style="maison"] .navbar__glass { box-shadow: inset 0 -1px 0 var(--line); }
[data-style="maison"] .nav-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-style="maison"] .navbar--home:not(.is-solid) .nav-btn {
  background: rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
}
[data-style="maison"] .nav-btn svg { width: 19px; height: 19px; }
[data-style="maison"] .badge-dot { top: 9px; right: 10px; width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 1.5px var(--bg); }
[data-style="maison"] .navbar--home:not(.is-solid) .badge-dot { background: #E2C3A0; box-shadow: none; }

/* Tab bar: thin icons, small labels, active = accent + dot (no fill) */
[data-style="maison"] .tabbar { border-radius: 26px; }
[data-style="maison"] .tabbar.glass { box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-float); }
[data-style="maison"] .tabbar__pill { display: none; }
[data-style="maison"] .tab { gap: 3px; padding-bottom: 4px; }
[data-style="maison"] .tab .i-fill { display: none; }
[data-style="maison"] .tab .i-line { opacity: 1 !important; }
[data-style="maison"] .tab__icon { width: 23px; height: 23px; }
[data-style="maison"] .tab__label { font-size: calc(9px * var(--text-scale)); font-weight: 500; letter-spacing: .04em; }
[data-style="maison"] .tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
[data-style="maison"] .tab.is-active::after { opacity: 1; transform: none; }

/* ---------- Monogram (logo) ---------- */
.mono {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--text);
  font-size: calc(14.5px * var(--text-scale));
  letter-spacing: .06em !important;
  line-height: 1;
  padding-left: .06em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  cursor: default;
  transition: color .3s var(--ease), transform .5s var(--ease);
}
.navbar--home:not(.is-solid) .mono { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.mono.is-holding { transform: scale(.92); }
.mono .hold-ring circle { stroke: currentColor; stroke-width: 2.5; filter: none; }

/* Hold ring works on any [data-owner-hold] */
[data-owner-hold].is-holding .hold-ring { opacity: 1; }
[data-owner-hold].is-holding .hold-ring circle { animation: hold-fill .5s linear forwards; }

/* ---------- Home: editorial hero ---------- */
[data-style="maison"] .hero { height: clamp(460px, 62vh, 640px); height: clamp(460px, 62svh, 640px); }
[data-style="maison"] .hero__media { border-radius: 0; background: linear-gradient(160deg, #3A2E26, #15110F); }
[data-style="maison"] .hero__kb { animation-duration: 30s; }
[data-style="maison"] .hero__media::after {
  background:
    linear-gradient(180deg, rgba(12, 9, 8, .42) 0%, rgba(12, 9, 8, 0) 24%),
    linear-gradient(0deg, rgba(12, 9, 8, .9) 0%, rgba(12, 9, 8, .5) 30%, rgba(12, 9, 8, 0) 62%);
}
.hero__content--maison { left: 24px; right: 24px; bottom: 34px; }
.hero__eyebrow {
  font-size: calc(10px * var(--text-scale));
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75) !important;
}
[data-style="maison"] .hero__name {
  margin-top: 10px;
  font-size: var(--fs-hero-name);
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
  text-wrap: balance;
}
.hero__content--maison .hero__meta {
  gap: 0;
  margin-top: 10px;
  font-size: var(--fs-13);
  font-weight: 400;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
}
.hero__content--maison .hero__meta > span + span { display: none; }
.hero__content--maison .hero__meta b { font-weight: 500; color: #fff; }
.hero__content--maison .hero__meta .star { color: #E2C3A0; font-weight: 400; }
.hero__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 22px;
  padding: 0 14px 0 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  font-size: var(--fs-13);
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), transform .4s var(--ease);
}
.hero__next svg { width: 16px; height: 16px; stroke-width: 1.5; transition: transform .4s var(--ease); }
.hero__next:active { transform: scale(.97); background: rgba(255, 255, 255, .16); }
@media (hover: hover) { .hero__next:hover svg { transform: translateX(3px); } }

[data-style="maison"] .home-rest { margin-top: 30px; gap: 22px; }
.rule {
  flex: none;
  display: block;
  height: 1px;
  margin: 0 8%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold, var(--accent)) 70%, transparent) 50%, transparent);
  opacity: .55;
}

/* Stories: thin outlined rings */
[data-style="maison"] .story__ring { padding: 3px; background: none; box-shadow: inset 0 0 0 1px var(--gold); }
[data-style="maison"] .story__ring img { border: 0; }
[data-style="maison"] .story.is-seen .story__ring { background: none; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="maison"] .story__title { font-weight: 400; font-size: var(--fs-11); letter-spacing: .02em; }

/* Stats: no boxes — numbers on hairlines */
[data-style="maison"] .stats { gap: 0; }
[data-style="maison"] .stat:not(.metric) {
  padding: 4px 4px;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
[data-style="maison"] .stat:not(.metric) + .stat { box-shadow: inset 1px 0 0 var(--line); }
[data-style="maison"] .stat b { font-size: calc(28px * var(--text-scale)); line-height: 1.1; }
[data-style="maison"] .stat small { font-size: calc(10px * var(--text-scale)); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Next available: open block, no glass */
[data-style="maison"] .next {
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
[data-style="maison"] .live i { width: 6px; height: 6px; background: var(--accent); }
[data-style="maison"] .next__icon.line-art { width: 24px; height: 24px; margin: 0; transform: none; filter: none; color: var(--text-2); }
[data-style="maison"] .next__time { margin: 12px 0 8px; font-size: min(calc(34px * var(--text-scale)), 10.5cqi); line-height: 1.08; }
[data-style="maison"] .next__time--sm { font-size: min(calc(28px * var(--text-scale)), 9.5cqi); }
[data-style="maison"] .next__status { font-weight: 400; }
[data-style="maison"] .slots { margin-top: 18px; }
[data-style="maison"] .slot {
  height: 38px;
  padding: 0 15px;
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500;
}
[data-style="maison"] .slot.is-first { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent); background: transparent; }
[data-style="maison"] .slot.is-selected { background: var(--accent); color: var(--on-accent); box-shadow: none; }
[data-style="maison"] .next__actions { margin-top: 20px; }

/* Loyalty: a matte black metal card with a gold monogram */
[data-style="maison"] .loyalty__face {
  border-radius: 18px;
  color: #EDE3D6;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(255, 240, 220, .08), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, #282320 0%, #151210 58%, #1D1916 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, .1),
    inset 0 0 0 1px rgba(255, 240, 220, .06),
    0 22px 44px -22px rgba(20, 14, 10, .7);
}
[data-style="maison"] .loyalty__card::after {
  content: '';
  grid-area: 1 / 1;
  z-index: 2;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent calc(var(--sheen, .3) * 100% - 34%),
    rgba(255, 236, 210, .13) calc(var(--sheen, .3) * 100%),
    transparent calc(var(--sheen, .3) * 100% + 34%));
  transition: background .2s linear;
}
[data-style="maison"] .loyalty__head b { font-size: calc(20px * var(--text-scale)); color: #F3ECE4; }
[data-style="maison"] .loyalty__head small { font-size: calc(10px * var(--text-scale)); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(237, 227, 214, .55); }
[data-style="maison"] .loyalty__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 1px rgba(214, 180, 140, .7), 0 0 0 3px rgba(0, 0, 0, .25), 0 0 0 4px rgba(214, 180, 140, .18);
  color: #D9B98F;
  font-size: calc(16px * var(--text-scale));
  letter-spacing: .06em;
  padding-left: .06em;
  /* embossed */
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 236, 210, .25);
}
[data-style="maison"] .stamp { border: 1px dashed rgba(214, 180, 140, .35); color: rgba(214, 180, 140, .7); }
[data-style="maison"] .stamp svg { stroke-width: 1.5; }
[data-style="maison"] .stamp.is-on {
  border: 0;
  background: linear-gradient(145deg, #E6CBA4 0%, #B9915F 55%, #8E6B44 100%);
  color: #1B1511;
  box-shadow: inset 0 1px 0 rgba(255, 245, 230, .55), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
[data-style="maison"] .stamp.is-on::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 250, 240, .45) 50%, transparent 65%); }
[data-style="maison"] .stamp.is-reward:not(.is-on) { border: 1px solid rgba(214, 180, 140, .7); color: #D9B98F; }
[data-style="maison"] .loyalty__foot { font-weight: 500; }
[data-style="maison"] .loyalty__foot span { color: #D9B98F; }
[data-style="maison"] .loyalty__foot em, [data-style="maison"] .loyalty__terms em { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: calc(9px * var(--text-scale)); color: rgba(237, 227, 214, .45); }
[data-style="maison"] .loyalty__terms b { font-family: var(--font-display); font-weight: 400; font-size: calc(18px * var(--text-scale)); color: #F3ECE4; }
[data-style="maison"] .loyalty__terms small { color: rgba(237, 227, 214, .62); }
[data-style="maison"] .loyalty__qr { border-radius: 12px; background: #F3ECE4; color: #15110F; }

/* Promo: a quiet key block, no 3D art, no shine */
[data-style="maison"] .promo {
  min-height: 0;
  padding: 24px;
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
}
[data-style="maison"]:not([data-theme="dark"]) .promo { box-shadow: 0 0 0 1px var(--line); }
[data-style="maison"] .promo::before, [data-style="maison"] .promo::after, [data-style="maison"] .promo__shine { display: none; }
[data-style="maison"] .promo__art:not(.promo__art--photo) { display: none; }
[data-style="maison"] .promo__body { max-width: none; }
[data-style="maison"] .promo:has(.promo__art--photo) .promo__body { max-width: 62%; }
[data-style="maison"] .promo__art--photo { border-radius: 14px; box-shadow: none; }
[data-style="maison"] .promo h3 { margin: 14px 0 6px; font-size: calc(24px * var(--text-scale)); line-height: 1.15; }
[data-style="maison"] .promo p { color: var(--text-2); margin-bottom: 18px; }

/* Rails: photos are the cards */
[data-style="maison"] .reel__item { border-radius: 14px; box-shadow: none; }
[data-style="maison"] .svc-card { width: 168px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
[data-style="maison"] .svc-card__photo { height: 210px; overflow: hidden; border-radius: 14px; }
[data-style="maison"] .svc-card__body { padding: 12px 2px 0; }
[data-style="maison"] .svc-card__title { min-height: 0; font-size: var(--fs-14); font-weight: 500; -webkit-line-clamp: 1; }
[data-style="maison"] .svc-card__row { margin-top: 4px; }
[data-style="maison"] .svc-card__price { font-size: calc(19px * var(--text-scale)); }
[data-style="maison"] .svc-card__dur { font-weight: 400; }

/* Reviews: hairline-framed quotes */
[data-style="maison"] .rating__big { font-size: calc(52px * var(--text-scale)); }
[data-style="maison"] .stars { color: var(--gold); }
[data-style="maison"] .rating__sub { font-weight: 400; }
[data-style="maison"] .review { padding: 20px; background: transparent; box-shadow: inset 0 0 0 1px var(--line) !important; }
[data-style="maison"] .review p { font-size: var(--fs-14); line-height: 1.55; color: color-mix(in srgb, var(--text) 86%, transparent); }
[data-style="maison"] .review__initial { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-family: var(--font-display); font-weight: 400; }
[data-style="maison"] .review__who b { font-weight: 500; }

/* Course: open row */
[data-style="maison"] .course { padding: 0; background: none; box-shadow: none !important; border-radius: 0; }
[data-style="maison"] .course__icon { width: 52px; height: 52px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="maison"] .course__icon .line-art { width: 22px; height: 22px; }
[data-style="maison"] .course h3 { font-size: calc(19px * var(--text-scale)); }
[data-style="maison"] .course__go { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }

/* Invite / book-again: hairlines */
[data-style="maison"] .invite { background: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-card); }
[data-style="maison"] .invite__art.line-art { width: 30px; height: 30px; }

/* ---------- Services: a restaurant menu ---------- */
[data-style="maison"] .search, [data-style="maison"] .search--glass {
  height: 48px;
  border-radius: 14px;
  background: var(--fill);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
[data-style="maison"] .search:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
[data-style="maison"] .search input { font-weight: 400; }
[data-style="maison"] .chipbar {
  gap: 6px;
  padding: 0;
  margin: 0 -20px;
  padding: 0 20px;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
[data-style="maison"] :is(.chipbar__chip, .chip) {
  flex: none;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: .01em;
}
[data-style="maison"] :is(.chipbar__chip, .chip).is-active { background-color: var(--accent); color: var(--on-accent); box-shadow: none; }

.svc-list--menu { gap: 36px; padding-top: 6px; }
.menu-sec { display: flex; flex-direction: column; }
.menu-sec__h { padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--line); }
.menu-sec__h .num { color: var(--accent); }
.svc2.menu-row {
  display: block;
  padding: 18px 0 16px;
  border-radius: 0;
  background: none;
  box-shadow: inset 0 -1px 0 var(--line);
  cursor: pointer;
}
.svc2.menu-row:active { transform: none; filter: none; opacity: .55; }
.menu-row__line { display: flex; align-items: baseline; gap: 10px; }
.menu-row__title { min-width: 0; font-size: calc(20px * var(--text-scale)); line-height: 1.2; }
.menu-row__dots {
  flex: 1 1 20px;
  min-width: 20px;
  height: 1px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text-2) 70%, transparent) .8px, transparent 1.1px);
  background-size: 6px 2px;
  background-repeat: repeat-x;
  transform: translateY(-4px);
}
.menu-row__price { flex: none; font-size: calc(20px * var(--text-scale)); }
.menu-row__meta { display: block; margin-top: 5px; font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; }

[data-style="maison"] .empty .line-art,
[data-style="maison"] .looks-empty .line-art,
[data-style="maison"] .error-state .line-art { width: 44px; height: 44px; margin-bottom: 8px; color: var(--text-2); }
[data-style="maison"] .looks-empty .line-art { animation: none; }

/* Service details */
[data-style="maison"] .sd-photo { border-radius: 18px; }
[data-style="maison"] .sd-title { font-size: calc(32px * var(--text-scale)); line-height: 1.1; }
[data-style="maison"] .sd-price { font-size: calc(28px * var(--text-scale)); }
[data-style="maison"] .sd-chip { background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
[data-style="maison"] .sd-h { font-family: var(--font-body); font-size: calc(10px * var(--text-scale)); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
[data-style="maison"] .sd-list li { font-weight: 400; }
[data-style="maison"] .sd-check { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- Ask: solid bubbles ---------- */
[data-style="maison"] .msg--me { --tail: var(--accent); background: var(--accent); box-shadow: none; }
[data-style="maison"] .msg--bot { --tail: var(--card); background: var(--card); box-shadow: none; }
[data-style="maison"]:not([data-theme="dark"]) .msg--bot { box-shadow: 0 1px 2px rgba(42, 33, 28, .06); }
[data-style="maison"] .assistant__art.line-art { width: 24px; height: 24px; color: var(--text-2); }
[data-style="maison"] .msg-action { box-shadow: inset 0 0 0 1px var(--line); background: transparent; font-weight: 500; color: var(--text); }
[data-style="maison"] .msg-action--soft { color: var(--accent); }
[data-style="maison"] .composer__field {
  background: var(--card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-style="maison"] .chat-card { box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }

/* ---------- More: open lists on hairlines ---------- */
[data-style="maison"] .profile { border-radius: 18px; }
[data-style="maison"] .profile h2 { font-size: calc(28px * var(--text-scale)); }
[data-style="maison"] .profile .star { color: #E2C3A0; }
[data-style="maison"] .list {
  border-radius: 0;
  background: none;
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
  overflow: visible;
}
[data-style="maison"] .row { padding-left: 0; padding-right: 0; }
[data-style="maison"] .row + .row::before { left: 42px; height: 1px; background: var(--line); transform: none; }
[data-style="maison"] .row__icon { width: 28px; height: 28px; background: none; color: var(--text-2); }
[data-style="maison"] .row__icon svg { width: 20px; height: 20px; }
[data-style="maison"] .row__label { font-weight: 400; }
[data-style="maison"] .row--link:active { background: none; opacity: .55; }
[data-style="maison"] .notice__card .line-art { width: 30px; height: 30px; }

/* ---------- Sheets & booking: solid, outlined choices ---------- */
[data-style="maison"] .sheet { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 22px 22px 0 0; }
[data-style="maison"] .sheet__foot { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 var(--line); }
[data-style="maison"] .sheet__note { background: none; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="maison"] .bk-title { font-size: calc(26px * var(--text-scale)); }
[data-style="maison"] .bk-steps button { font-weight: 500; letter-spacing: .02em; }
[data-style="maison"] .bk-steps__pill { box-shadow: 0 0 0 1px var(--line); }
[data-style="maison"][data-theme="dark"] .bk-steps__pill { background: #26211E; }
[data-style="maison"] :is(.day, .time, .bk-chosen) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="maison"] .day small { font-weight: 500; letter-spacing: .14em; }
[data-style="maison"] .day b { font-size: calc(22px * var(--text-scale)); }
[data-style="maison"] .time { font-weight: 500; }
[data-style="maison"] :is(.day, .time).is-selected { background: var(--accent); color: var(--on-accent); box-shadow: none; }
[data-style="maison"] .pick__text b { font-weight: 500; }
[data-style="maison"] .bk-row b { font-weight: 500; }
[data-style="maison"] .bk-done__check { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
[data-style="maison"] .bk-done__check svg { stroke-width: 1.6; }
[data-style="maison"] .bk-done__head h2 { font-size: calc(32px * var(--text-scale)); }

/* Notifications */
[data-style="maison"] .notif { background: none; box-shadow: inset 0 -1px 0 var(--line); border-radius: 0; padding-left: 0; padding-right: 0; }
[data-style="maison"] .notif__icon { background: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="maison"] .notif__icon .line-art { width: 20px; height: 20px; }

/* ---------- Owner view ---------- */
[data-style="maison"] .metric { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
[data-style="maison"] .metric .line-art { width: 22px; height: 22px; color: var(--text-2); }
[data-style="maison"] .metric b { font-size: calc(32px * var(--text-scale)); }
[data-style="maison"] .owner__count { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 500; }
[data-style="maison"] .owner__rank { background: none; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
[data-style="maison"] .ochart__bar { border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent) 16%, var(--fill)); }
[data-style="maison"] .ochart__col.is-today .ochart__bar { box-shadow: none; }

/* ---------- Splash, onboarding, Welcome ---------- */
[data-style="maison"] .splash { --splash-bg: #F7F3EE; }
[data-style="maison"][data-theme="dark"] .splash { --splash-bg: #0F0D0C; }
[data-style="maison"] .splash__logo { font-size: 38px; letter-spacing: -.015em; }
[data-style="maison"] .splash__logo--white { font-size: 42px; }
[data-style="maison"] .splash__tag { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
[data-style="maison"] .splash__dots i { width: 5px; height: 5px; }
[data-style="maison"] .onb__title { font-size: calc(32px * var(--text-scale)); }
[data-style="maison"] .onb__icon.line-art { width: 112px; height: 112px; filter: none; color: var(--accent); }
[data-style="maison"] .onb__glow { opacity: .5; }
[data-style="maison"] :is(.onb__chip, .onb__bubble):not(.onb__bubble--me):not(.onb__chip--b) {
  background: var(--card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  font-weight: 500;
}
[data-style="maison"] .welcome__top { border-radius: 0 0 28px 28px; }
[data-style="maison"] .welcome__photo { border-radius: 18px; transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 30px 60px -24px rgba(0, 0, 0, .45); }
[data-style="maison"] .welcome__emoji.line-art { width: 112px; height: 112px; color: var(--text); }
[data-style="maison"] .wchip {
  background: var(--card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgba(0, 0, 0, .3);
  font-weight: 500;
}
[data-style="maison"] .wchip .star { color: var(--gold); }
[data-style="maison"] .welcome__title { font-size: calc(36px * var(--text-scale)); line-height: 1.06; }
[data-style="maison"] .welcome__go { height: 52px; border-radius: 14px; font-size: var(--fs-15); }
[data-style="maison"] .welcome__guest { font-weight: 500; }

/* ---------- Film grain ---------- */
[data-style="maison"] .shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
[data-style="maison"][data-theme="dark"] .shell::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  [data-style="maison"] .hero__kb { animation: none; }
}
[data-style="maison"] .look__media { border-radius: 14px; box-shadow: none; }
[data-style="maison"] .look:focus-visible { border-radius: 14px; }
[data-style="maison"] .lbadge { font-weight: 500; letter-spacing: .04em; }
[data-style="maison"] .lbadge--new { letter-spacing: .16em; }
[data-style="maison"] .demo-tag { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); font-weight: 500; letter-spacing: .16em; }

/* =========================================================
   Style switch (More → Appearance)
   ========================================================= */
.style-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.style-pick__label { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); padding-left: 2px; }
.segmented[data-seg="style"] button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sdot { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.sdot--soft { background: linear-gradient(135deg, #F6D9CF, #C9796B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.sdot--maison { background: #15110F; box-shadow: inset 0 0 0 1.5px #C9A27E; }
.sdot--noir { background: radial-gradient(circle, #F4A6B8 0 2.5px, #0A0A0B 3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
:root.vt-style::view-transition-old(root),
:root.vt-style::view-transition-new(root) { animation-duration: .42s; animation-timing-function: cubic-bezier(.25, .8, .25, 1); }

/* check mark on a swatch: white or near-black, whichever reads (Pearl, Onyx) */
.swatch { color: var(--on, #fff); }

/* =========================================================
   NOIR — App Store feel: SF-like grotesk (Inter), neutral blacks,
   iOS inset-grouped lists, monochrome primary button, accent
   only on small things. Serif only for the studio name on Home.
   ========================================================= */
:root[data-style="noir"] {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card-2: #FFFFFF;
  --sheet-bg: #F2F2F7;
  --text: #0A0A0B;
  --text-2: #6E6E73;
  --line: rgba(60, 60, 67, .16);
  --fill: rgba(118, 118, 128, .12);
  --mono-bg: #0A0A0B;
  --mono-fg: #FFFFFF;

  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 28px -16px rgba(0, 0, 0, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-float: 0 0 0 .5px rgba(0, 0, 0, .06), 0 12px 32px -10px rgba(0, 0, 0, .2);

  --glass: color-mix(in srgb, var(--bg) 72%, transparent);
  --glass-strong: color-mix(in srgb, var(--bg) 88%, transparent);
  --glass-hi: rgba(255, 255, 255, .7);
  --glass-edge: rgba(0, 0, 0, .06);
  --blur: blur(24px) saturate(180%);

  --mesh-1: 0;
  --mesh-2: 0;
  --mesh-3: 0;

  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 28%, transparent);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 22px;
  --r-btn: 14px;
  --gap: 24px;

  --ease: cubic-bezier(.25, .8, .25, 1);
  --spring: cubic-bezier(.32, 1.15, .5, 1); /* a hint of overshoot, like UIKit */
}
:root[data-style="noir"][data-theme="dark"] {
  --bg: #0A0A0B;
  --card: #151517;
  --card-2: #1D1D20;
  --sheet-bg: #151517;
  --text: #FFFFFF;
  --text-2: #8E8E93;
  --line: rgba(255, 255, 255, .08);
  --fill: rgba(255, 255, 255, .08);
  --mono-bg: #FFFFFF;
  --mono-fg: #0A0A0B;

  --shadow: 0 0 0 .5px rgba(255, 255, 255, .05);
  --shadow-sm: 0 0 0 .5px rgba(255, 255, 255, .05);
  --shadow-float: 0 0 0 .5px rgba(255, 255, 255, .08), 0 16px 40px -10px rgba(0, 0, 0, .8);

  --glass: color-mix(in srgb, #151517 72%, transparent);
  --glass-strong: color-mix(in srgb, #151517 88%, transparent);
  --glass-hi: rgba(255, 255, 255, .1);
  --glass-edge: rgba(255, 255, 255, .08);
}

/* ---------- Type: Inter everywhere, iOS weights & tracking ---------- */
[data-style="noir"] body { font-family: var(--font-body); font-weight: 400; letter-spacing: -.006em; }
[data-style="noir"] .mesh { display: none; }
[data-style="noir"] :is(h1, h2, h3, .large-title) { font-weight: 700; letter-spacing: -.02em; }
[data-style="noir"] .navbar__title { font-weight: 600; letter-spacing: -.01em; }
[data-style="noir"] .section-head h2 { font-size: calc(21px * var(--text-scale)); }
[data-style="noir"] .link-btn { font-weight: 500; font-size: var(--fs-15); color: var(--accent); }
[data-style="noir"] .eyebrow { font-weight: 500; }
[data-style="noir"] .live { font-weight: 600; letter-spacing: .04em; }
[data-style="noir"] :is(.svc2__title, .svc-card__title, .course h3, .assistant__text strong, .review__who b, .pick__text b, .bk-chosen b, .bk-sum__svc b, .sheet__summary b, .notice__card strong) { font-weight: 600; }
[data-style="noir"] :is(.next__time, .rating__big, .stat b, .metric b, .sd-price, .svc-card__price, .svc2__price, .pick__price, .day b) { font-weight: 700; letter-spacing: -.025em; }

/* thin line icons */
[data-style="noir"] :is(.nav-btn, .btn, .row__icon, .tab__icon, .course__go, .back-btn, .sheet__x, .hero__next, .next__status, .sd-chip, .loyalty__foot, .search, .svc2__meta) svg { stroke-width: 1.6; }

/* ---------- Buttons: monochrome primary (Apple-style) ---------- */
[data-style="noir"] .btn { height: 50px; border-radius: 14px; font-weight: 600; letter-spacing: -.01em; }
[data-style="noir"] .btn--sm { height: 38px; border-radius: 999px; }
[data-style="noir"] .btn--primary { background: var(--mono-bg); color: var(--mono-fg); box-shadow: none; }
[data-style="noir"] .btn--soft { background: var(--fill); color: var(--text); }
[data-style="noir"] .btn--dark { background: var(--mono-bg); color: var(--mono-fg); }
[data-style="noir"] .fab { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255, 255, 255, .08); }
[data-style="noir"] .sheet__foot .btn:disabled { opacity: .3; }
[data-style="noir"] .badge { font-weight: 700; letter-spacing: .04em; }

/* ---------- Surfaces: solid cards, no extra glass ---------- */
[data-style="noir"] .card { border-radius: 22px; }
[data-style="noir"] .nav-btn { width: 38px; height: 38px; background: var(--fill); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
[data-style="noir"] .navbar--home:not(.is-solid) .nav-btn {
  background: rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25);
}
[data-style="noir"] .nav-btn svg { width: 19px; height: 19px; }
[data-style="noir"] .badge-dot { top: 8px; right: 9px; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
[data-style="noir"] .navbar--home:not(.is-solid) .badge-dot { box-shadow: none; }

/* Tab bar: quiet — line icons, small labels, accent + dot, no pill */
[data-style="noir"] .tabbar__pill { display: none; }
[data-style="noir"] .tab { gap: 3px; padding-bottom: 4px; }
[data-style="noir"] .tab .i-fill { display: none; }
[data-style="noir"] .tab .i-line { opacity: 1 !important; }
[data-style="noir"] .tab__icon { width: 24px; height: 24px; }
[data-style="noir"] .tab__label { font-size: var(--fs-10); font-weight: 500; letter-spacing: 0; }
[data-style="noir"] .tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
[data-style="noir"] .tab.is-active::after { opacity: 1; transform: none; }

/* Monogram: grotesk initials in a thin circle */
[data-style="noir"] .mono { font-weight: 600; font-size: calc(13px * var(--text-scale)); letter-spacing: .04em; }

/* ---------- Home ---------- */
[data-style="noir"] .hero { height: clamp(460px, 62vh, 640px); height: clamp(460px, 62svh, 640px); }
[data-style="noir"] .hero__media { border-radius: 0 0 28px 28px; background: linear-gradient(160deg, #2A2A2E, #0A0A0B); }
[data-style="noir"] .hero__media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 24%),
    linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .45) 32%, rgba(0, 0, 0, 0) 62%);
}
/* the one place with serif: the studio name on the photo */
[data-style="noir"] .hero__name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(38px * var(--text-scale));
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
}
[data-style="noir"] .hero__eyebrow { font-weight: 600; letter-spacing: .16em; }
[data-style="noir"] .hero__content--maison .hero__meta .star { color: #fff; }
[data-style="noir"] .hero__next { font-weight: 600; letter-spacing: 0; }
[data-style="noir"] .home-rest { margin-top: 24px; }

[data-style="noir"] .story__ring { padding: 2px; background: var(--accent); }
[data-style="noir"] .story__ring img { border-width: 2.5px; }
[data-style="noir"] .story.is-seen .story__ring { background: var(--line); }
[data-style="noir"] .story__title { font-weight: 500; }

/* trust stats: one grouped card with hairline dividers */
[data-style="noir"] .stats { gap: 0; padding: 14px 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
[data-style="noir"] .stat:not(.metric) { padding: 2px 6px; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
[data-style="noir"] .stat:not(.metric) + .stat { box-shadow: inset 1px 0 0 var(--line); }
[data-style="noir"] .stat small { font-weight: 500; }

[data-style="noir"] .next { border-radius: 22px; background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow); }
[data-style="noir"] .next__icon.line-art { width: 24px; height: 24px; margin: 0; transform: none; filter: none; color: var(--text-2); }
[data-style="noir"] .next__status { font-weight: 500; }
[data-style="noir"] .slot { height: 36px; background: var(--fill); color: var(--text); font-weight: 600; }
[data-style="noir"] .slot.is-first { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
[data-style="noir"] .slot.is-selected { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Loyalty: a black metal card with a silver / accent sheen */
[data-style="noir"] .loyalty__face {
  border-radius: 22px;
  color: #F2F2F5;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, .08), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, #2A2A2E 0%, #111113 58%, #1A1A1D 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 22px 44px -22px rgba(0, 0, 0, .6);
}
[data-style="noir"] .loyalty__card::after {
  content: '';
  grid-area: 1 / 1;
  z-index: 2;
  border-radius: 22px;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      transparent calc(var(--sheen, .3) * 100% - 30%),
      rgba(255, 255, 255, .14) calc(var(--sheen, .3) * 100%),
      transparent calc(var(--sheen, .3) * 100% + 30%)),
    linear-gradient(105deg,
      transparent calc(var(--sheen, .3) * 100% - 26%),
      color-mix(in srgb, var(--accent) 9%, transparent) calc(var(--sheen, .3) * 100% - 8%),
      transparent calc(var(--sheen, .3) * 100% + 12%));
}
[data-style="noir"] .loyalty__head b { color: #fff; font-weight: 600; }
[data-style="noir"] .loyalty__head small { color: rgba(255, 255, 255, .55); }
[data-style="noir"] .loyalty__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 1px rgba(232, 232, 237, .7), 0 0 0 3px rgba(0, 0, 0, .3), 0 0 0 4px rgba(232, 232, 237, .16);
  color: #E8E8ED;
  font-size: calc(14px * var(--text-scale));
  font-weight: 600;
  letter-spacing: .05em;
  padding-left: .05em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 255, 255, .25);
}
[data-style="noir"] .stamp { border: 1px dashed rgba(232, 232, 237, .32); color: rgba(232, 232, 237, .7); }
[data-style="noir"] .stamp svg { stroke-width: 1.6; }
[data-style="noir"] .stamp.is-on {
  border: 0;
  background: linear-gradient(145deg, #F7F7F9 0%, #C2C2C8 55%, #8C8C93 100%);
  color: #111113;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(0, 0, 0, .2);
}
[data-style="noir"] .stamp.is-reward:not(.is-on) { border: 1px solid rgba(232, 232, 237, .7); color: #F2F2F5; }
[data-style="noir"] .loyalty__foot span { color: #F2F2F5; }
[data-style="noir"] .loyalty__foot em, [data-style="noir"] .loyalty__terms em { color: rgba(255, 255, 255, .45); font-weight: 500; }
[data-style="noir"] .loyalty__terms b { color: #fff; font-weight: 600; }
[data-style="noir"] .loyalty__terms small { color: rgba(255, 255, 255, .62); }
[data-style="noir"] .loyalty__qr { border-radius: 14px; background: #F2F2F5; color: #0A0A0B; }

/* Promo: plain card, no 3D art, no shine */
[data-style="noir"] .promo {
  min-height: 0;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
}
[data-style="noir"] .promo::before, [data-style="noir"] .promo::after, [data-style="noir"] .promo__shine { display: none; }
[data-style="noir"] .promo__art:not(.promo__art--photo) { display: none; }
[data-style="noir"] .promo__body { max-width: none; }
[data-style="noir"] .promo:has(.promo__art--photo) .promo__body { max-width: 62%; }
[data-style="noir"] .promo p { color: var(--text-2); }

[data-style="noir"] .reel__item { border-radius: 18px; box-shadow: none; }
[data-style="noir"] .svc-card { border-radius: 22px; box-shadow: var(--shadow); }
[data-style="noir"] .svc-card__body { padding: 12px 14px 14px; }
[data-style="noir"] .svc-card__dur { font-weight: 500; }
[data-style="noir"] .stars { color: var(--text); }
[data-style="noir"] .stars .off { color: var(--line); }
[data-style="noir"] .review__initial { background: var(--fill); color: var(--text); font-weight: 600; }

[data-style="noir"] .course__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--fill); }
[data-style="noir"] .course__icon .line-art { width: 24px; height: 24px; color: var(--text); }
[data-style="noir"] .course__go { background: var(--fill); color: var(--text); }
[data-style="noir"] .invite { background: var(--card); box-shadow: var(--shadow); border-radius: 22px; }
[data-style="noir"] .invite__art.line-art { width: 30px; height: 30px; }

/* ---------- Services: inset grouped list ---------- */
[data-style="noir"] .search, [data-style="noir"] .search--glass {
  height: 44px;
  border-radius: 12px;
  background: var(--fill);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
[data-style="noir"] .search:focus-within { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); }
[data-style="noir"] .search input { font-weight: 400; }
[data-style="noir"] .chipbar {
  padding: 3px;
  border-radius: 12px;
  background: var(--fill);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
[data-style="noir"] .chipbar__chip { height: 32px; border-radius: 9px; color: var(--text); font-weight: 600; }
[data-style="noir"] .chipbar__chip.is-active { box-shadow: 0 2px 8px -2px var(--accent-glow); }
[data-style="noir"] .chip { background: var(--card); box-shadow: none; color: var(--text); font-weight: 500; }
[data-style="noir"] .chip.is-active { background: var(--accent); color: var(--on-accent); }

.svc-list--grouped { gap: 22px; }
.ngroup { display: flex; flex-direction: column; gap: 7px; }
.ngroup .group-label { margin: 0 0 0 16px; }
.svc2.nrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px 10px 12px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  cursor: pointer;
}
.svc2.nrow:active { transform: none; filter: none; background: var(--fill); transition-duration: .05s; }
/* hairline between visible rows, inset past the thumbnail (iOS) */
.nrow:not([hidden]) ~ .nrow:not([hidden])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 68px;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleY(.6);
  transform-origin: 0 0;
}
.nrow__thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.nrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nrow__text b { font-size: var(--fs-15); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow__text small { font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; }
.nrow__price { flex: none; font-size: var(--fs-15); font-weight: 600; letter-spacing: -.01em; }
.nrow .row__chev { margin-left: -4px; }

[data-style="noir"] :is(.empty, .looks-empty, .error-state) .line-art { width: 44px; height: 44px; margin-bottom: 8px; color: var(--text-2); animation: none; }

/* Service details */
[data-style="noir"] .sd-photo { border-radius: 22px; }
[data-style="noir"] .sd-price { color: var(--text); }
[data-style="noir"] .sd-chip { font-weight: 600; }
[data-style="noir"] .sd-list li { font-weight: 500; }

/* ---------- Ask ---------- */
[data-style="noir"] .msg--me { --tail: var(--accent); background: var(--accent); box-shadow: none; }
[data-style="noir"] .msg--bot { --tail: var(--card-2); background: var(--card-2); box-shadow: none; }
[data-style="noir"]:not([data-theme="dark"]) .msg--bot { --tail: #E9E9EB; background: #E9E9EB; }
[data-style="noir"] .assistant__art.line-art { width: 24px; height: 24px; color: var(--text-2); }
[data-style="noir"] .composer__field { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line); }
[data-style="noir"] .msg-action { box-shadow: none; }

/* ---------- More: inset grouped, mono icons ---------- */
[data-style="noir"] .profile { border-radius: 22px; }
[data-style="noir"] .profile .star { color: #fff; }
[data-style="noir"] .list { border-radius: 18px; box-shadow: none; }
[data-style="noir"] .group-label { font-weight: 500; letter-spacing: .02em; }
[data-style="noir"] .row { min-height: 50px; }
[data-style="noir"] .row + .row::before { left: 54px; background: var(--line); transform: scaleY(.6); }
[data-style="noir"] .row__icon { border-radius: 8px; background: var(--fill); color: var(--text); }
[data-style="noir"] .row__icon svg { width: 17px; height: 17px; }
[data-style="noir"] .row__label { font-weight: 500; }
[data-style="noir"] .notice__card .line-art { width: 30px; height: 30px; }
[data-style="noir"] .demo-tag { background: var(--fill); color: var(--text-2); font-weight: 600; }

/* ---------- Sheets & booking ---------- */
[data-style="noir"] .sheet { --card: var(--card-2); background: var(--sheet-bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 22px 22px 0 0; }
[data-style="noir"] .sheet__foot { background: var(--sheet-bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 var(--line); }
[data-style="noir"] :is(.day, .time, .bk-chosen) { background: var(--card); box-shadow: none; }
[data-style="noir"] :is(.day, .time).is-selected { background: var(--accent); color: var(--on-accent); box-shadow: none; }
[data-style="noir"] .bk-steps { background: var(--fill); }
[data-style="noir"][data-theme="dark"] .bk-steps__pill { background: #3A3A3F; }
[data-style="noir"] .bk-steps button.is-done { color: var(--text); }
[data-style="noir"] .bk-chosen em { color: var(--accent); }
[data-style="noir"] .bk-row--accent b { color: var(--text); }
[data-style="noir"] .sheet__note svg { color: var(--text-2); }
[data-style="noir"] .bk-done__check { box-shadow: none; }

[data-style="noir"] .notif { background: var(--card); box-shadow: none; }
[data-style="noir"] .notif__icon { background: var(--fill); border-radius: 12px; }
[data-style="noir"] .notif__icon .line-art { width: 22px; height: 22px; color: var(--text); }

/* Looks */
[data-style="noir"] .look__media { border-radius: 18px; box-shadow: none; }
[data-style="noir"] .look:focus-visible { border-radius: 18px; }

/* Owner */
[data-style="noir"] .metric { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow); }
[data-style="noir"] .metric .line-art { width: 24px; height: 24px; color: var(--text-2); }
[data-style="noir"] .ochart__bar { background: var(--fill); }
[data-style="noir"] .ochart__col.is-today .ochart__bar { box-shadow: none; }
[data-style="noir"] .owner__count { background: var(--fill); color: var(--text); }

/* ---------- Splash, onboarding, Welcome ---------- */
[data-style="noir"] .splash { --splash-bg: #F2F2F7; }
[data-style="noir"][data-theme="dark"] .splash { --splash-bg: #0A0A0B; }
[data-style="noir"] .splash__logo { font-weight: 700; letter-spacing: -.03em; }
[data-style="noir"] .onb__icon.line-art { width: 112px; height: 112px; filter: none; color: var(--accent); }
[data-style="noir"] :is(.onb__chip, .onb__bubble):not(.onb__bubble--me):not(.onb__chip--b) {
  background: var(--card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-float);
}
[data-style="noir"] .welcome__top { border-radius: 0 0 32px 32px; }
[data-style="noir"] .welcome__top,
[data-style="noir"][data-theme="dark"] .welcome__top {
  background:
    radial-gradient(90% 70% at 20% 10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--bg)) 0%, color-mix(in srgb, var(--accent) 30%, var(--bg)) 100%);
}
[data-style="noir"] .welcome__emoji.line-art { width: 112px; height: 112px; color: var(--text); }
[data-style="noir"] .welcome__title span { color: var(--text); }
[data-style="noir"] .wchip { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-float); font-weight: 600; }
[data-style="noir"] .wchip .star { color: var(--text); }
[data-style="noir"] .welcome__go { height: 52px; border-radius: 14px; }
[data-style="noir"] .chipbar__chip.is-active { color: var(--on-accent); background-color: var(--accent); }

/* =========================================================
   Built-in booking: details form, policy, statuses, my bookings,
   manage sheet. Built on the theme tokens → works in every style.
   ========================================================= */
.bk-steps { grid-template-columns: repeat(var(--n, 3), 1fr); }
.bk-head__title { flex: 1; text-align: center; font-size: var(--fs-15); font-weight: 700; }
.bk-head--move .bk-steps, .bk-head--move .bk-back { display: none; }
.bk-head--move::before { content: ''; width: 32px; flex: none; }

.bk-notice {
  display: flex;
  gap: 10px;
  margin: 10px 0 2px;
  padding: 11px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #FF9500 14%, transparent);
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.4;
}
.bk-notice svg { flex: none; width: 18px; height: 18px; color: #FF9500; }

.days.is-loading .day { pointer-events: none; }
.days.is-loading .day b, .days.is-loading .day i { opacity: .25; }
.time--sk {
  display: block;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) 0 0 / 300% 100%;
  box-shadow: none;
  animation: shimmer 1.1s ease-in-out infinite;
}
.times__empty { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.times__empty b { color: var(--text); font-size: var(--fs-15); }
.times__empty .btn { gap: 6px; }

/* ---------- Details form ---------- */
.bk-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { padding-left: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.field em { font-style: normal; font-weight: 500; opacity: .7; }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  font-size: max(16px, var(--fs-15)); /* no zoom on iOS */
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .2s var(--ease);
}
.field textarea { min-height: 92px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--text-2) 70%, transparent); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }

/* iOS-like round checkbox */
.tick { display: flex; align-items: center; gap: 12px; padding: 4px 4px; font-size: var(--fs-14); cursor: pointer; -webkit-user-select: none; user-select: none; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tick i {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-2) 60%, transparent);
  color: var(--on-accent);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tick i svg { width: 14px; height: 14px; stroke-width: 2.6; transform: scale(0); transition: transform .4s var(--spring); }
.tick input:checked + i { background: var(--accent); box-shadow: none; }
.tick input:checked + i svg { transform: scale(1); }
.tick input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.tick--agree { margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }

.bk-rules { margin-top: 16px; padding: 16px 18px; }
.bk-rules__title { display: block; margin-bottom: 8px; font-size: var(--fs-15); font-weight: 700; }
.bk-rules ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.bk-rules li { font-size: var(--fs-13); line-height: 1.45; color: var(--text-2); }
.bk-rules li b { color: var(--text); font-weight: 600; }

/* button states */
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn--danger { background: #FF3B30; color: #fff; }
.spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bk-done__check.is-pending { background: color-mix(in srgb, #FF9500 18%, transparent); color: #FF9500; box-shadow: none; }

/* ---------- Status pills ---------- */
.bstat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--fs-12);
  font-weight: 700;
  white-space: nowrap;
  background: var(--fill);
  color: var(--text-2);
}
.bstat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bstat--confirmed { background: color-mix(in srgb, #34C759 16%, transparent); color: #1E9E47; }
.bstat--pending { background: color-mix(in srgb, #FF9500 16%, transparent); color: #C26E00; }
.bstat--cancelled_client, .bstat--cancelled_master, .bstat--cancelled { background: color-mix(in srgb, #FF3B30 13%, transparent); color: #D7261C; }
.bstat--no_show { background: color-mix(in srgb, #FF3B30 13%, transparent); color: #D7261C; }
.bstat--completed { background: var(--fill); color: var(--text-2); }
:root[data-theme="dark"] .bstat--confirmed { color: #30D158; }
:root[data-theme="dark"] .bstat--pending { color: #FFB340; }
:root[data-theme="dark"] :is(.bstat--cancelled_client, .bstat--cancelled_master, .bstat--no_show) { color: #FF6961; }

/* ---------- Home: your appointment ---------- */
.mybk { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; text-align: left; cursor: pointer; }
.mybk__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mybk__main { display: flex; align-items: center; gap: 14px; }
.mybk__main img { flex: none; width: 58px; height: 58px; border-radius: 16px; object-fit: cover; background: var(--fill); }
.mybk__main > span, .mybk__main { min-width: 0; }
.mybk__main > span { display: flex; flex-direction: column; gap: 2px; }
.mybk__main b { font-size: var(--fs-17); font-weight: 700; letter-spacing: -.01em; }
.mybk__main .num { font-size: var(--fs-14); font-weight: 600; }
.mybk__count { font-size: var(--fs-12); font-weight: 600; color: var(--accent); }
.mybk--cancelled .mybk__main { flex-direction: column; align-items: flex-start; gap: 2px; }
.mybk__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mybk__actions .btn { width: 100%; }
.mybk--cancelled .mybk__actions { grid-template-columns: 1fr; }

/* More → My bookings rows */
.mybk-row img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.mybk-row .bstat { flex: none; }

/* ---------- Manage sheet ---------- */
.mg { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 14px; padding: 26px 20px calc(24px + var(--safe-bottom)); }
.mg::-webkit-scrollbar { display: none; }
.mg__head { display: flex; align-items: center; justify-content: space-between; }
.mg__hero { display: flex; align-items: center; gap: 16px; }
.mg__hero img { flex: none; width: 84px; height: 84px; border-radius: 20px; object-fit: cover; background: var(--fill); }
.mg__hero h2 { font-size: var(--fs-22); line-height: 1.15; }
.mg__hero p { margin-top: 4px; font-size: var(--fs-15); font-weight: 600; }
.mg__count { display: inline-block; margin-top: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--accent); }
.mg .sheet__note { margin-top: 0; }
.mg__note--bad svg { color: #FF3B30; }
.mg__actions { display: flex; gap: 8px; }
.mg__actions > .btn { flex: 1; min-width: 0; height: 48px; padding: 0 10px; font-size: var(--fs-14); gap: 6px; }
.mg__cancel { color: #FF3B30 !important; }
.mg__hint { font-size: var(--fs-12); color: var(--text-2); text-align: center; margin-top: -4px; }
.mg__late { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-13); line-height: 1.4; color: #C26E00; }
:root[data-theme="dark"] .mg__late { color: #FFB340; }
.mg__late svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.mg__confirm { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.mg__confirm > b { font-size: var(--fs-17); }
.mg__confirm > p { font-size: var(--fs-14); color: var(--text-2); }
.mg__reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.mg__reasons .chip { height: 34px; padding: 0 14px; }
.mg__reasons .chip.is-active { background: var(--accent); color: var(--on-accent); }
.mg__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.mg__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.mg__link svg { width: 16px; height: 16px; }
.mg__err { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; text-align: center; }
.mg__err .line-art, .mg__err img { width: 48px; height: 48px; color: var(--text-2); }
.mg__sk { display: flex; flex-direction: column; gap: 14px; }
.mg__sk i {
  display: block;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
.mg__sk i:first-child { width: 40%; height: 26px; }
.mg__sk i:nth-child(2) { height: 90px; }
.mg__sk i:nth-child(3) { height: 180px; }

.toast__icon--x { background: #FF3B30; }
.mg .bk-sum > .bk-row:first-child { box-shadow: none; }

/* =========================================================
   Master's dashboard (cabinet.js) — lives inside .shell, so
   bottom sheets open above it like everywhere else.
   ========================================================= */
.cab {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
.cab__bar {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-top) + 6px) 14px 10px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 -1px 0 var(--line);
}
.cab__mono {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.cab__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cab__who b { font-size: var(--fs-15); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab__who small { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-11); font-weight: 600; color: var(--text-2); }
.cab-dot { width: 7px; height: 7px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px color-mix(in srgb, #34C759 25%, transparent); }
.cab__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text);
}
.cab__ic svg { width: 19px; height: 19px; }
.cab__ic:active, .cab__done:active { transform: scale(.94); }
.cab__done { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: var(--fs-13); font-weight: 700; }

.cab__main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cab__main::-webkit-scrollbar { display: none; }
.cab__view { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px calc(var(--tab-h) + var(--safe-bottom) + 36px); }
.cab__view .group-label { margin: 6px 0 -8px 4px; }
.cab-load { display: grid; place-items: center; padding: 80px 0; color: var(--text-2); }
.cab-load .spin { width: 26px; height: 26px; }
.cab-muted { font-size: var(--fs-13); color: var(--text-2); padding: 0 4px; }
.cab-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.cab-h h1 { font-size: var(--fs-lt); line-height: 1.1; }
.cab-h .eyebrow { display: block; margin-bottom: 2px; }
.cab-h:has(.eyebrow) { flex-direction: column; align-items: flex-start; gap: 0; }

/* bottom tabs */
.cab__tabs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 12px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 62px;
  padding: 4px;
  border-radius: 26px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--shadow-float);
}
.cab__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 20px;
  color: var(--text-2);
  font-size: var(--fs-10);
  font-weight: 600;
  transition: color .25s var(--ease);
}
.cab__tab.is-active { color: var(--accent); }
.cab__tabic { position: relative; display: block; width: 23px; height: 23px; }
.cab__tabic svg { width: 100%; height: 100%; stroke-width: 1.6; }
.cab__badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FF3B30;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

/* live banner */
.cab__banner {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(var(--safe-top) + 62px);
  z-index: 5;
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.32, 1.15, .5, 1), opacity .3s var(--ease);
}
.cab__banner.is-on { transform: none; opacity: 1; pointer-events: auto; }
.cab__banner button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 .5px var(--line), 0 16px 40px -12px rgba(0, 0, 0, .35);
  text-align: left;
  font-size: var(--fs-14);
  font-weight: 600;
  line-height: 1.3;
}
.cab__banner i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #34C759; color: #fff; }
.cab__banner--cancel i { background: #FF3B30; }
.cab__banner--move i, .cab__banner--request i { background: #FF9500; }
.cab__banner i svg { width: 16px; height: 16px; stroke-width: 2.4; }

/* sign in */
.cab-auth { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; padding: 48px 24px 40px; text-align: center; }
.cab-auth__mono { align-self: center; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 22px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.cab-auth h1 { font-size: calc(28px * var(--text-scale)); }
.cab-auth p { font-size: var(--fs-15); line-height: 1.5; color: var(--text-2); }
.cab-auth p b { color: var(--text); }
.cab-auth .field { text-align: left; }
.cab-auth__err { color: #FF3B30 !important; font-size: var(--fs-14) !important; }
.cab-code { text-align: center; letter-spacing: .5em; font-size: 22px !important; font-variant-numeric: tabular-nums; }
.cab-link { align-self: center; min-height: 40px; font-size: var(--fs-14); font-weight: 600; color: var(--accent); }

/* today */
.cab-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0; }
.cab-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cab-stats > div + div { box-shadow: inset 1px 0 0 var(--line); }
.cab-stats b { font-size: var(--fs-22); font-weight: 700; letter-spacing: -.02em; }
.cab-stats small { font-size: var(--fs-12); color: var(--text-2); font-weight: 500; }
.cab-next { display: flex; flex-direction: column; gap: 6px; padding: 18px; text-align: left; cursor: pointer; }
.cab-next__top { display: flex; align-items: center; justify-content: space-between; }
.cab-next__in { font-size: var(--fs-13); font-weight: 700; color: var(--accent); }
.cab-next h2 { font-size: calc(26px * var(--text-scale)); }
.cab-next p { font-size: var(--fs-15); font-weight: 500; }
.cab-next__note { color: var(--text-2); font-style: italic; }
.cab-next .bstat { align-self: flex-start; }
.cab-next__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cab-next__actions .btn { height: 46px; }
.cab-next--none { cursor: default; }
.cab-next--none b { font-size: var(--fs-17); }
.cab-next--none span { font-size: var(--fs-14); color: var(--text-2); }
.cab-req { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.cab-req > svg:first-child { flex: none; width: 22px; height: 22px; color: #FF9500; }
.cab-req span { flex: 1; display: flex; flex-direction: column; }
.cab-req b { font-size: var(--fs-15); }
.cab-req small { font-size: var(--fs-12); color: var(--text-2); }
.cab-req > svg:last-child { width: 16px; height: 16px; color: var(--text-2); }
.cab-free { display: flex; flex-wrap: wrap; gap: 8px; }
.cab-free .chip { height: 36px; }

/* timeline */
.tl { position: relative; margin-left: 44px; border-radius: 0; cursor: copy; }
.tl__h { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.tl__h span { position: absolute; left: -46px; top: -8px; width: 40px; text-align: right; font-size: 11px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl__open { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--card) 70%, transparent); border-radius: 6px; }
:root[data-theme="dark"] .tl__open { background: color-mix(in srgb, var(--card) 85%, transparent); }
.tl__off {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  border-radius: 10px;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--text-2) 14%, transparent) 0 6px, transparent 6px 12px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tl__off span { position: absolute; top: 6px; left: 10px; font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.tl__b {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 12px;
  text-align: left;
  background: color-mix(in srgb, var(--accent) 18%, var(--card));
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--text);
  cursor: pointer;
  transition: transform .3s var(--spring);
}
.tl__b:active { transform: scale(.98); }
.tl__b b { font-size: var(--fs-13); font-weight: 700; white-space: nowrap; }
.tl__b span, .tl__b small { font-size: var(--fs-12); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tl__b.is-short { flex-direction: row; align-items: center; gap: 8px; padding-top: 3px; padding-bottom: 3px; }
.tl__b.is-short small { display: none; }
.tl__b--confirmed { background: color-mix(in srgb, #34C759 16%, var(--card)); box-shadow: inset 3px 0 0 #34C759; }
.tl__b--pending { background: color-mix(in srgb, #FF9500 14%, var(--card)); box-shadow: inset 3px 0 0 #FF9500, inset 0 0 0 1px color-mix(in srgb, #FF9500 45%, transparent); }
.tl__b--completed { background: var(--fill); box-shadow: inset 3px 0 0 var(--text-2); }
.tl__b--completed b { color: var(--text-2); }
.tl__b--no_show { background: color-mix(in srgb, #FF3B30 12%, var(--card)); box-shadow: inset 3px 0 0 #FF3B30; }
.tl__now { position: absolute; left: -6px; right: 0; z-index: 3; height: 2px; background: #FF3B30; pointer-events: none; }
.tl__now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; }

/* calendar */
.cab-seg { width: 150px; }
.cab-nav { display: flex; align-items: center; gap: 8px; }
.cab-nav b { flex: 1; text-align: center; font-size: var(--fs-15); font-weight: 700; }
.cab-today { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--fill); font-size: var(--fs-12); font-weight: 700; color: var(--accent); }
.cab-day { touch-action: pan-y; }
.wk { position: relative; display: grid; grid-template-columns: 22px repeat(7, 1fr); gap: 4px; touch-action: pan-y; }
.wk__marks { position: relative; margin-top: 52px; height: 420px; }
.wk__marks span { position: absolute; left: 0; transform: translateY(-50%); font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wk__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk__d { display: flex; flex-direction: column; align-items: center; height: 46px; padding-top: 4px; border-radius: 12px; }
.wk__d small { font-size: 11px; font-weight: 600; color: var(--text-2); }
.wk__d b { font-size: var(--fs-17); font-weight: 700; }
.wk__col.is-today .wk__d { background: var(--accent); color: var(--on-accent); }
.wk__col.is-today .wk__d small { color: inherit; opacity: .8; }
.wk__body { position: relative; height: 420px; border-radius: 10px; background: color-mix(in srgb, var(--fill) 60%, transparent); overflow: hidden; }
.wk__open { position: absolute; left: 0; right: 0; background: var(--card); }
.wk__b { position: absolute; left: 2px; right: 2px; min-height: 14px; overflow: hidden; padding: 2px 3px; border-radius: 6px; font-size: 9px; font-weight: 700; line-height: 1.1; text-align: left; color: var(--text); }
.wk__b span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk__n { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-2); min-height: 14px; }

/* requests */
.cab-reqs { display: flex; flex-direction: column; gap: 12px; }
.req { position: relative; overflow: hidden; border-radius: 22px; }
.req__bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-radius: 22px; background: var(--fill); font-weight: 700; }
.req__bg span { display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .2s var(--ease); }
.req__bg svg { width: 18px; height: 18px; }
.req.to-yes .req__bg { background: #34C759; color: #fff; }
.req.to-yes .req__yes { opacity: 1; }
.req.to-no .req__bg { background: #FF3B30; color: #fff; }
.req.to-no .req__no { opacity: 1; }
.req__card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; touch-action: pan-y; }
.req__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.req__top b { font-size: var(--fs-17); }
.req__top small { font-size: var(--fs-12); color: var(--text-2); }
.req__card p { font-size: var(--fs-14); }
.req__note { color: var(--text-2); font-style: italic; }
.req__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.req.is-yes .req__card, .req.is-no .req__card { pointer-events: none; }
.cab-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 24px; text-align: center; color: var(--text-2); font-size: var(--fs-14); }
.cab-empty b { color: var(--text); font-size: var(--fs-17); }
.cab-empty .line-art, .cab-empty img { width: 44px; height: 44px; margin-bottom: 6px; color: var(--text-2); }

/* clients */
.cl-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); font-size: var(--fs-14); font-weight: 700; color: var(--text); }
.cl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cl-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: var(--card); text-align: center; }
.cl-stats b { font-size: var(--fs-17); font-weight: 700; }
.cl-stats small { font-size: 11px; color: var(--text-2); line-height: 1.2; }

/* booking / client sheets */
.ob { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 14px; padding: 26px 20px calc(24px + var(--safe-bottom)); }
.ob::-webkit-scrollbar { display: none; }
.ob__head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.ob h2 { font-size: var(--fs-28); line-height: 1.1; }
.ob__sub { margin-top: -8px; font-size: var(--fs-15); font-weight: 500; color: var(--text-2); }
.ob__sub em { font-style: normal; color: var(--accent); font-weight: 600; }
.ob__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob__grid .btn, .ob__actions .btn { height: 48px; padding: 0 10px; gap: 6px; font-size: var(--fs-14); }
.ob__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ob__danger { color: #FF3B30 !important; }
.ob .bk-label { margin: 0 2px -6px; }
.ob .days { margin: 0 -20px; }
.cab-back { display: inline-flex; align-items: center; gap: 2px; height: 32px; color: var(--accent); font-size: var(--fs-15); font-weight: 600; }
.cab-back svg { width: 22px; height: 22px; }
.pk-custom input { max-width: 180px; }
.nb-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.nb-sugg:empty { display: none; }
.nb-sugg .chip { height: 32px; font-size: var(--fs-12); }

/* hours */
.hrs__day { gap: 10px; }
.hrs__day .row__value { margin-left: auto; }
.hrs__ints { display: flex; flex-direction: column; gap: 8px; padding-left: 2px; }
.hrs__int { display: flex; align-items: center; gap: 8px; }
.hrs__int input, .toff input, .toff__grid input {
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: max(16px, var(--fs-15));
  font-variant-numeric: tabular-nums;
}
.hrs__int input { flex: 1; min-width: 0; }
.hrs__int > span { color: var(--text-2); }
.hrs__del { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); color: var(--text-2); }
.hrs__del svg { width: 15px; height: 15px; }
.hrs__del-sp { flex: none; width: 32px; }
.hrs__add { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 34px; font-size: var(--fs-13); font-weight: 600; color: var(--accent); }
.hrs__add svg { width: 16px; height: 16px; }
.cab-sel {
  flex: none;
  max-width: 46%;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  color: var(--text);
  font: inherit;
  font-size: max(16px, var(--fs-14));
  -webkit-appearance: none;
  appearance: none;
}
.cab-sel--wide { width: 100%; max-width: none; height: 50px; border-radius: 14px; background-color: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.toff { padding: 0; overflow: hidden; }
.toff summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; list-style: none; cursor: pointer; font-size: var(--fs-15); font-weight: 600; color: var(--accent); }
.toff summary::-webkit-details-marker { display: none; }
.toff summary svg { width: 18px; height: 18px; }
.toff[open] { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.toff[open] > :not(summary) { margin: 0 16px; }
.toff__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.toff__grid input, .toff .field input { width: 100%; min-height: 44px; }
.tl__b { padding: 5px 10px; line-height: 1.25; }

/* password field with show / hide */
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 12px;
  color: var(--text-2);
}
.pw__eye svg { width: 20px; height: 20px; stroke-width: 1.6; }
.pw__eye.is-on { color: var(--accent); }
.cab-auth .btn { margin-top: 4px; }
input::-ms-reveal, input::-ms-clear { display: none; }

/* Toasts always sit below the status bar / Dynamic Island — in Safari, the
   installed app and the desktop frame alike — and above its backing strip */
.toast { top: calc(max(env(safe-area-inset-top, 0px), var(--safe-top, 0px)) + 8px); z-index: 180; }

/* Cabinet: cancelled bookings stay on the timeline, faded */
.tl__b--cx {
  z-index: 1;
  opacity: .45;
  background: var(--fill) !important;
  box-shadow: inset 3px 0 0 var(--text-2) !important;
}
.tl__b--cx:hover, .tl__b--cx:focus-visible { opacity: .8; }
.tl__b--cx s { text-decoration-thickness: 1.5px; }
.tl__b.is-side { left: 50%; }
.tl__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tl__tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.tl__tag--late { background: #FF3B30; color: #fff; }
.tl__b--cx .tl__tag--late { opacity: 1; }
.wk__b.tl__b--cx { opacity: .4; }
.cab-tlhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 -8px; }
.cab-tlhead .group-label { margin: 0 0 0 4px; }
.cab-cx { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.cab-cx .switch { transform: scale(.78); transform-origin: right center; margin-left: -6px; }
.cab__banner--late button { background: #FF3B30; color: #fff; box-shadow: 0 16px 40px -12px rgba(255, 59, 48, .55); }
.cab__banner--late i { background: #fff; color: #FF3B30; }
.cl-stats > div.is-bad b { color: #FF3B30; }
.cl-tags { display: inline-flex; align-items: center; gap: 6px; flex: none; }

/* Cabinet: push notifications card */
.push { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.push__head { display: flex; align-items: center; gap: 10px; }
.push__head b { font-size: var(--fs-15); font-weight: 700; }
.push__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.push__ic svg { width: 18px; height: 18px; stroke-width: 1.8; }
.push p { font-size: var(--fs-13); line-height: 1.45; color: var(--text-2); }
.push p b { color: var(--text); font-weight: 600; }
.push .btn--sm { align-self: flex-start; gap: 6px; }
.push .btn--sm svg { width: 16px; height: 16px; }
.push--on { gap: 12px; }
.push__row { display: flex; align-items: center; gap: 10px; }
.push__row span { display: flex; flex-direction: column; }
.push__row b { font-size: var(--fs-15); }
.push__row small { font-size: var(--fs-12); color: var(--text-2); }
.push__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 4px color-mix(in srgb, #34C759 22%, transparent); }
.push__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.push__actions .cab-link { color: var(--text-2); min-height: 32px; }
.push--blocked .push__ic { background: color-mix(in srgb, #FF3B30 14%, transparent); color: #FF3B30; }
.push--muted .push__ic { background: var(--fill); color: var(--text-2); }

/* "Add to Home Screen" hint: a finger taps Share, the sheet slides up, the row lights up */
.a2hs { display: grid; place-items: center; padding: 4px 0; }
.a2hs__screen {
  position: relative;
  width: 168px;
  height: 104px;
  overflow: hidden;
  border-radius: 16px;
  background: color-mix(in srgb, var(--text) 6%, var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
}
.a2hs__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 30px;
  background: var(--card);
  box-shadow: inset 0 1px 0 var(--line);
}
.a2hs__bar i { width: 12px; height: 3px; border-radius: 2px; background: var(--line); }
.a2hs__share { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #0A84FF; animation: a2hs-share 5s infinite; }
.a2hs__share svg { width: 17px; height: 17px; stroke-width: 2; }
.a2hs__sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 34px;
  padding: 8px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35);
  transform: translateY(120%);
  opacity: 0;
  animation: a2hs-sheet 5s infinite;
}
.a2hs__item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; animation: a2hs-item 5s infinite; }
.a2hs__item svg { width: 15px; height: 15px; stroke-width: 1.8; }
.a2hs__finger {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: rgba(10, 132, 255, .35);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, .5);
  opacity: 0;
  animation: a2hs-finger 5s infinite;
}
@keyframes a2hs-finger {
  0%, 8% { opacity: 0; transform: translateY(14px) scale(1.2); }
  16%, 22% { opacity: 1; transform: none; }
  26%, 30% { opacity: 1; transform: scale(.8); }
  34% { opacity: 0; transform: none; }
  50% { opacity: 0; transform: translateY(-40px); }
  58%, 62% { opacity: 1; transform: translateY(-48px); }
  66% { opacity: 1; transform: translateY(-48px) scale(.8); }
  72%, 100% { opacity: 0; transform: translateY(-48px); }
}
@keyframes a2hs-share { 0%, 24% { background: transparent; } 28%, 34% { background: rgba(10, 132, 255, .18); } 40%, 100% { background: transparent; } }
@keyframes a2hs-sheet { 0%, 32% { transform: translateY(120%); opacity: 0; } 42%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: translateY(120%); opacity: 0; } }
@keyframes a2hs-item { 0%, 62% { background: transparent; } 66%, 86% { background: rgba(10, 132, 255, .16); } 92%, 100% { background: transparent; } }
.a2hs__steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); color: var(--text-2); }
.a2hs__steps b { color: var(--text); }
.a2hs__steps svg { width: 14px; height: 14px; vertical-align: -2px; color: #0A84FF; }
@media (prefers-reduced-motion: reduce) {
  .a2hs__share, .a2hs__sheet, .a2hs__item, .a2hs__finger { animation: none; }
  .a2hs__sheet { transform: none; opacity: 1; }
}
/* fade the cancelled card's content, keep "Late cancel" fully red */
.tl__b--cx { opacity: 1; }
.tl__b--cx > b, .tl__b--cx > small, .tl__b--cx .tl__tag:not(.tl__tag--late) { opacity: .45; }
.tl__b--cx { background: color-mix(in srgb, var(--fill) 55%, transparent) !important; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--text-2) 45%, transparent) !important; }
.a2hs { display: flex; justify-content: center; align-items: center; height: 112px; }
.a2hs__screen { flex: none; }
.a2hs { align-self: stretch; width: 100%; }
/* narrow lanes: keep the important badge only */
.tl__b.is-narrow { padding-left: 8px; padding-right: 6px; }
.tl__b.is-narrow .tl__tag:not(.tl__tag--late) { display: none; }
.tl__b.is-narrow .tl__tags { flex-wrap: nowrap; overflow: hidden; }
.tl__b.is-narrow.is-short { flex-direction: column; align-items: flex-start; gap: 0; }

/* "Studio · Client view" — the master signed in on this device.
   The top inset grows by 44px so nothing sits under the switch. */
.app.has-ownsw { --safe-top: calc(env(safe-area-inset-top, 0px) + 44px); }
@media (min-width: 760px) { .app.has-ownsw { --safe-top: 94px; } }
@media (display-mode: standalone) { .app.has-ownsw { --safe-top: calc(env(safe-area-inset-top, 0px) + 12px + 44px); } }
.ownsw {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-top) - 40px);
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 232px;
  height: 34px;
  margin-left: -116px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 0 0 .5px var(--glass-edge), 0 6px 18px -8px rgba(0, 0, 0, .3);
}
.ownsw[hidden] { display: none; }
.ownsw button { position: relative; z-index: 1; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: color .25s var(--ease); }
.ownsw button[aria-selected="true"] { color: var(--text); }
.ownsw__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform .45s var(--spring);
}
.ownsw.is-client .ownsw__thumb { transform: translateX(100%); }
:root[data-theme="dark"] .ownsw__thumb { background: #3A3A3F; }
.app.has-ownsw .cab__done { display: none; }
.app.has-sheet .ownsw { opacity: 0; pointer-events: none; }

/* Confirm before "I agree": dimmed, but it answers the tap with a hint */
.btn.is-off { opacity: .4; box-shadow: none; }
.tick--agree.is-nudge { animation: nudge .5s var(--ease); box-shadow: inset 0 0 0 2px var(--accent); }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* =========================================================
   Cabinet → Studio: profile, look, services, looks, texts, FAQ, CRM
   ========================================================= */
.cab-back--top { align-self: flex-start; margin: -6px 0 -10px -4px; }
.cab-h--row { flex-direction: row; align-items: center; }
.cab-h--row .btn--sm { flex: none; }
.cab-h--row .btn svg { width: 16px; height: 16px; }
.cab-h .eyebrow { overflow-wrap: anywhere; }
.cab-link--in { display: inline; min-height: 0; margin-left: 4px; font-size: inherit; }

/* photo slot */
.phf { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.phf__img { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--fill); color: var(--text-2); }
.phf__img img { width: 100%; height: 100%; object-fit: cover; }
.phf__img svg { width: 26px; height: 26px; }
.phf__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.phf__body b { font-size: var(--fs-15); }
.phf__body small { font-size: var(--fs-12); color: var(--text-2); }
.phf__acts { flex: none; display: flex; align-items: center; gap: 6px; }
.phf__acts .btn { min-width: 84px; }
.phf__del { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--text-2); }
.phf__del svg { width: 14px; height: 14px; }
.phf.is-busy .phf__img { animation: phf-pulse 1.1s ease-in-out infinite; }
@keyframes phf-pulse { 50% { opacity: .45; } }

/* forms */
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-wrap .chip { min-height: 38px; }
.chip--warn.is-active { background: #FF3B30; color: #fff; box-shadow: none; }
.chip-input { flex: 1 1 120px; min-width: 0; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-size: max(16px, var(--fs-14)); }
.chip-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.hrs-switch { padding: 6px 4px; min-height: 0; }
.hrs-switch + .hrs-switch::before { display: none; }
.ob .bk-form + .btn { margin-top: 4px; }

/* services / looks list with drag handles */
.svc-row { gap: 10px; padding: 8px 12px 8px 4px; background: var(--card); touch-action: pan-y; }
.svc-row + .svc-row::before { left: 100px; }
.svc-row.is-hidden .svc-row__img, .svc-row.is-hidden .svc-row__main b { opacity: .45; }
.svc-row.is-dragging { z-index: 2; box-shadow: var(--shadow-float); border-radius: 12px; transition: none; }
.svc-row.is-dragging::before { display: none; }
.drag { flex: none; display: grid; place-items: center; width: 34px; height: 44px; color: var(--text-2); cursor: grab; touch-action: none; }
.drag svg { width: 18px; height: 18px; }
.svc-row__img { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.svc-row__img--look { width: 46px; height: 58px; }
.svc-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.svc-row__main b { font-size: var(--fs-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-row__main small { font-size: var(--fs-12); color: var(--text-2); }
.lk-new { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; }

/* look & feel preview */
.sty-acc { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px 6px; }
.sty-prev { overflow: hidden; border-radius: 22px; background: var(--pb); color: var(--pt); font-family: var(--pf); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: background .3s var(--ease); }
.sty-prev__hero { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--pa) 30%, var(--pb)), var(--pb)); }
.sty-prev__hero span { font-size: 26px; font-weight: var(--pw); line-height: 1.05; letter-spacing: -.01em; }
.sty-prev__hero small { font-family: system-ui, sans-serif; font-size: 12px; opacity: .65; }
.sty-prev__card { display: flex; flex-direction: column; gap: 8px; margin: 0 14px 14px; padding: 14px; border-radius: var(--pr); background: var(--pc); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .25); font-family: system-ui, sans-serif; }
.sty-prev__card b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.sty-prev__time { font-family: var(--pf); font-size: 20px; font-weight: var(--pw); }
.sty-prev__chips { display: flex; gap: 6px; }
.sty-prev__chips i { padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pt) 7%, transparent); font-size: 12px; font-style: normal; font-weight: 600; }
.sty-prev__chips i.on { background: var(--pa); color: #fff; }
.sty-prev__btn { display: grid; place-items: center; height: 42px; margin-top: 4px; border-radius: min(var(--pr), 999px); background: var(--pa); color: #fff; font-size: 14px; font-weight: 700; }

/* texts & FAQ editors */
.ac-step { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.ac-step + .ac-step { margin-top: 10px; }
.ac-step__top { display: flex; align-items: center; justify-content: space-between; }
.ac-step__top b { font-size: var(--fs-13); color: var(--text-2); }
.ac-in { width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font: inherit; font-size: max(16px, var(--fs-15)); line-height: 1.35; resize: none; }
.ac-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ac-in--sm { font-size: max(16px, var(--fs-13)); color: var(--text-2); }
#faq-list .cab-empty { padding: 28px 24px; }

/* CRM */
.ctags { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.ctag { padding: 2px 7px; border-radius: 6px; background: var(--fill); color: var(--text-2); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; }
h2 .ctag { font-family: system-ui, sans-serif; }
.ctag--vip { background: #1C1C1E; color: #FFD60A; }
.ctag--new { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.ctag--warn { background: #FF3B30; color: #fff; }
.ctag--ok { background: color-mix(in srgb, #34C759 18%, transparent); color: #1F9D47; }
:root[data-theme="dark"] .ctag--vip { background: #FFD60A; color: #1C1C1E; }
.cab-last { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 8px 12px; border-radius: 12px; background: var(--fill); font-size: var(--fs-13); color: var(--text-2); }
.cab-last svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.cab-last b { color: var(--text); }
.fm-row img, .fm-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.fm-ic { display: grid; place-items: center; color: var(--accent); }
.fm-ic svg { width: 20px; height: 20px; }
.ob [data-fm-new] svg { width: 18px; height: 18px; }
#crm-box { display: flex; flex-direction: column; gap: 12px; }
#crm-box .group-label { margin: 4px 0 -4px 4px; }
#crm-box .cab-tlhead { margin: 6px 0 -4px; }
#crm-box .cab-tlhead .cab-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
#crm-box .cab-tlhead .cab-link svg { width: 16px; height: 16px; }

/* =========================================================
   Deposits (paid straight to the studio) + after the visit
   ========================================================= */
.bstat--deposit { background: color-mix(in srgb, #AF52DE 15%, transparent); color: #8E3BBE; }
:root[data-theme="dark"] .bstat--deposit { color: #D49BF2; }
.dep { display: flex; flex-direction: column; gap: 12px; padding: 16px; text-align: left; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #AF52DE 35%, transparent), var(--shadow-sm); }
.dep__head { display: flex; align-items: flex-start; gap: 12px; }
.dep__head > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dep__head b { font-size: var(--fs-17); line-height: 1.2; letter-spacing: -.01em; }
.dep__head small { font-size: var(--fs-13); color: var(--text-2); line-height: 1.35; }
.dep__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, #AF52DE 15%, transparent); color: #8E3BBE; }
:root[data-theme="dark"] .dep__ic { color: #D49BF2; }
.dep__ic svg { width: 20px; height: 20px; }
.dep__list { display: flex; flex-direction: column; border-radius: 14px; background: var(--fill); }
.dep__row { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; }
.dep__row + .dep__row { box-shadow: inset 0 .5px 0 color-mix(in srgb, var(--text) 13%, transparent); }
.dep__m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dep__m b { font-size: var(--fs-15); }
.dep__m small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); color: var(--text-2); }
.dep__row .btn { flex: none; min-width: 64px; }
.dep__note, .dep__none { font-size: var(--fs-12); color: var(--text-2); line-height: 1.4; }
.dep__none { padding: 12px 14px; }
.bk-done .dep { margin-top: 2px; }
.mybk--deposit { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #AF52DE 35%, transparent), var(--shadow-sm); }

.after { cursor: default; }
.after__x { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; border-radius: 50%; color: var(--text-2); }
.after__x:active { background: var(--fill); }
.after__x svg { width: 14px; height: 14px; }
.after__main { display: flex; align-items: flex-start; gap: 12px; }
.after__main > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.after__main b { font-size: var(--fs-17); font-weight: 700; letter-spacing: -.01em; }
.after__main small { font-size: var(--fs-13); color: var(--text-2); line-height: 1.4; }
.after__em { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 22px; }
.after .mybk__actions:has(> :only-child) { grid-template-columns: 1fr; }

/* Cabinet: deposits, no-show flag, insights */
.ob__stats { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-dep { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.ob-dep--pending { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #AF52DE 35%, transparent), var(--shadow-sm); }
.ob-dep__top { display: flex; align-items: center; gap: 12px; }
.ob-dep__top > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-dep__top b { font-size: var(--fs-15); }
.ob-dep__top small { font-size: var(--fs-13); color: var(--text-2); line-height: 1.35; }
.ob-dep__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, #AF52DE 15%, transparent); color: #8E3BBE; }
:root[data-theme="dark"] .ob-dep__ic { color: #D49BF2; }
.ob-dep--paid .ob-dep__ic { background: color-mix(in srgb, #34C759 16%, transparent); color: #1E9E47; }
.ob-dep__ic svg { width: 18px; height: 18px; }
.ob-dep .cab-link { align-self: center; min-height: 32px; color: var(--text-2); }
.ob-flag { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #FF3B30 10%, transparent); color: #C4261D; font-size: var(--fs-13); line-height: 1.35; }
:root[data-theme="dark"] .ob-flag { color: #FF8A80; }
.ob-flag svg { flex: none; width: 20px; height: 20px; }
.tl__dep { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; background: #AF52DE; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.cab-next .bstat--deposit { align-self: flex-start; }

.ins-seg { flex: none; width: 168px; }
.ins-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; padding: 0; background: var(--line); }
.ins-kpi > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); }
.ins-kpi b { font-size: var(--fs-22, 22px); font-weight: 800; letter-spacing: -.02em; }
.ins-kpi small { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.ins-kpi .is-bad b { color: #FF3B30; }
.ins-chart { display: flex; flex-direction: column; gap: 12px; padding: 16px 12px 12px; }
.ins-cap { display: flex; flex-direction: column; gap: 2px; min-height: 40px; padding: 0 4px; }
.ins-cap b { font-size: var(--fs-15); }
.ins-cap span { font-size: var(--fs-13); color: var(--text-2); }
.ins-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 4px; height: 150px; }
.ins-bar { display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: 100%; padding: 0; }
.ins-bar__col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 6px; background: var(--fill); }
.ins-bar__col i { display: block; min-height: 0; transition: height .5s var(--ease); }
.ins-bar__rev { background: color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 4px 4px 0 0; }
.ins-bar__exp { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.ins-bar.is-sel .ins-bar__rev { background: var(--accent); }
.ins-bar.is-sel .ins-bar__col { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ins-bar small { height: 14px; font-size: 10px; font-weight: 600; color: var(--text-2); text-align: center; white-space: nowrap; overflow: visible; }
.ins-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 4px; font-size: var(--fs-12); color: var(--text-2); }
.ins-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ins-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.ins-dot--exp { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.ins-dot--ret { background: color-mix(in srgb, var(--text) 30%, transparent); }
.ins-meter { display: block; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.ins-meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.ins-top .row__head .row__value { font-size: var(--fs-13); }
.ins-cl { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ins-split { display: flex; gap: 3px; height: 14px; overflow: hidden; border-radius: 7px; }
.ins-split i { min-width: 0; }
.ins-split__new { background: var(--accent); }
.ins-split__ret { background: color-mix(in srgb, var(--text) 30%, transparent); }
.ins-split__none { flex: 1; background: var(--fill); }
.ins-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 16px 14px 12px; }
.ins-wd__d { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ins-wd__col { display: flex; align-items: flex-end; width: 100%; height: 80px; overflow: hidden; border-radius: 6px; background: var(--fill); }
.ins-wd__col i { display: block; width: 100%; background: color-mix(in srgb, var(--accent) 75%, transparent); border-radius: 4px 4px 0 0; }
.ins-wd__d b { font-size: var(--fs-13); }
.ins-wd__d small { font-size: 11px; font-weight: 600; color: var(--text-2); }

/* Calendar: date + Day/Week pinned while the day scrolls */
.cab-pin { position: sticky; top: 0; z-index: 4; display: flex; flex-direction: column; gap: 10px; margin: -18px -16px 0; padding: 14px 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 .5px 0 color-mix(in srgb, var(--text) 12%, transparent); }
.cab-pin .cab-h { align-items: center; }
.cab-pin .cab-h h1 { font-size: var(--fs-28, 28px); }

/* Today: "Finish setting up" */
.setup { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 8px; }
.setup__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.setup__top b { font-size: var(--fs-17); letter-spacing: -.01em; }
.setup__top span { font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.setup__bar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--fill); }
.setup__bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s var(--ease); }
.setup__list { display: flex; flex-direction: column; }
.setup__row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; text-align: left; font-size: var(--fs-15); font-weight: 600; }
.setup__row + .setup__row { box-shadow: inset 0 .5px 0 color-mix(in srgb, var(--text) 12%, transparent); }
.setup__row > span { flex: 1; min-width: 0; }
.setup__row > svg { flex: none; width: 16px; height: 16px; color: var(--text-2); }
.setup__chk { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 25%, transparent); }
.setup__chk svg { width: 13px; height: 13px; stroke-width: 2.6; }
.setup__row.is-done { color: var(--text-2); font-weight: 500; }
.setup__row.is-done .setup__chk { background: #34C759; color: #fff; box-shadow: none; }
.setup__row:active:not(.is-done) { opacity: .6; }
.card.is-nudge { animation: nudge .5s var(--ease); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-sm); }

/* Deposits on services, but no way to pay */
.dep-warn { display: flex; align-items: center; gap: 12px; padding: 14px; background: color-mix(in srgb, #FF9500 12%, var(--card)); }
.dep-warn > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dep-warn b { font-size: var(--fs-14); line-height: 1.3; }
.dep-warn small { font-size: var(--fs-12); color: var(--text-2); line-height: 1.35; }
.dep-warn .btn { flex: none; }

/* Service photos: the category icon shows until the photo is in (never an empty square) */
img[data-ph] { background-color: color-mix(in srgb, #8E8E93 13%, transparent); background-position: center; background-repeat: no-repeat; background-size: min(100%, 120px) auto; }
img[data-ph="lash"] { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238E8E93%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M30%2046c6%207%2013%2010%2020%2010s14-3%2020-10%22%2F%3E%3Cpath%20d%3D%22M35%2051.5l-3.5%205M42%2054.5l-1.5%206M50%2055.5v6.5M58%2054.5l1.5%206M65%2051.5l3.5%205%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
img[data-ph="brow"] { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238E8E93%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M29%2047c7-9%2015-12%2023-11%206%20.7%2011%203.2%2015%207%22%2F%3E%3Cpath%20d%3D%22M34%2056c5-3%2010-4.2%2016-4.2s11%201.2%2016%204.2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
img[data-ph="nail"] { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238E8E93%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M42%2043h16v22a3%203%200%200%201-3%203H45a3%203%200%200%201-3-3z%22%2F%3E%3Cpath%20d%3D%22M45.5%2043V31h9v12M42%2052h16%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
img[data-ph="spark"] { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%238E8E93%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M46%2052.5l-2.8%209.8-2.8-9.8-10.2-3.2%2010.2-3.2%202.8-9.8%202.8%209.8%2010.2%203.2z%22%2F%3E%3Cpath%20d%3D%22M62%2033v8M58%2037h8M64%2056v6M61%2059h6%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
img[data-ph].fx-loading { animation: ph-pulse 1.3s ease-in-out infinite; }
@keyframes ph-pulse { 50% { opacity: .55; } }

/* On-screen keyboard: the dashboard's tab bar steps aside too */
.cab__tabs { transition: transform .45s var(--spring), opacity .25s var(--ease); }
.app.kb-open .cab__tabs { transform: translateY(calc(100% + var(--safe-bottom) + 24px)); opacity: 0; pointer-events: none; }
.app.kb-open .tabbar { opacity: 0; pointer-events: none; }
.app.kb-open .cab__main { padding-bottom: 0; }

/* =========================================================
   Admin (?admin=1) — the platform owner's page
   ========================================================= */
html.is-admin .stage { padding: 0; gap: 0; height: 100%; }
html.is-admin .device { width: 100%; height: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; }
html.is-admin .app { inset: 0; border-radius: 0; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
html.is-admin .app::after, html.is-admin .statusbar, html.is-admin .desk, html.is-admin .mesh { display: none; }
.adm { position: absolute; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); color: var(--text); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); }
.adm-load { display: grid; place-items: center; padding: 120px 0; color: var(--text-2); }
.adm-load .spin { width: 26px; height: 26px; }
.adm-auth { display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 72px) 24px 40px; text-align: center; }
.adm-auth h1 { font-size: 26px; letter-spacing: -.02em; }
.adm-auth p { color: var(--text-2); font-size: var(--fs-15); line-height: 1.5; }
.adm-auth .field { text-align: left; }
.adm-auth__mark { align-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #0B0B0D; color: #fff; font-weight: 800; letter-spacing: .04em; }
.adm-err { color: #FF3B30; font-size: var(--fs-14); }
.adm-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, calc(50% - 560px)) 12px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 .5px 0 color-mix(in srgb, var(--text) 12%, transparent); }
.adm-bar__sp { flex: 1; }
.adm-logo { font-size: var(--fs-17); font-weight: 800; letter-spacing: -.01em; }
.adm-logo em { font-style: normal; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.adm-back { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-15); font-weight: 600; color: var(--accent); }
.adm-back svg { width: 20px; height: 20px; }
.adm-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fill); color: var(--text); }
.adm-ic svg { width: 18px; height: 18px; }
.adm-bar .btn svg { width: 16px; height: 16px; }
.adm-title { max-width: 1120px; margin: 18px auto 0; padding: 0 16px; font-size: 30px; letter-spacing: -.02em; }
.adm-main { display: flex; flex-direction: column; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 18px 16px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.adm-head h1 { font-size: 30px; letter-spacing: -.02em; }
.adm-search { flex: 0 1 320px; }
.adm-muted { color: var(--text-2); font-size: var(--fs-14); line-height: 1.45; }
.adm-warn-text { color: #D7261C; }
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; text-align: center; color: var(--text-2); }
.adm-empty b { color: var(--text); font-size: var(--fs-17); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.adm-card.is-warn { box-shadow: inset 0 0 0 2px #FF9500, var(--shadow-sm); }
.adm-card.is-paused { opacity: .85; }
.adm-card__top { display: flex; align-items: center; gap: 12px; }
.adm-card__icon { flex: none; width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }
.adm-card__icon--mono { display: grid; place-items: center; background: #0B0B0D; color: #fff; font-weight: 800; }
.adm-card__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adm-card__who b { font-size: var(--fs-17); letter-spacing: -.01em; }
.adm-card__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); color: var(--text-2); }
.adm-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px !important; }
.adm-pill { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.adm-pill--active { background: color-mix(in srgb, #34C759 16%, transparent); color: #1E9E47; }
.adm-pill--trial { background: color-mix(in srgb, #007AFF 14%, transparent); color: #0062CC; }
.adm-pill--trial.is-warn { background: #FF9500; color: #fff; }
.adm-pill--paused { background: var(--fill); color: var(--text-2); }
.adm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 0; border-block: .5px solid color-mix(in srgb, var(--text) 12%, transparent); }
@media (max-width: 420px) { .adm-stats { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } }
.adm-stats > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-stats small { font-size: 11px; font-weight: 600; color: var(--text-2); line-height: 1.2; }
.adm-stats b { font-size: var(--fs-15); }
.adm-meter { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--fill); }
.adm-meter i { display: block; height: 100%; background: var(--accent); }
.adm-notes { display: flex; flex-direction: column; gap: 4px; }
.adm-notes span { font-size: 11px; font-weight: 600; color: var(--text-2); }
.adm-notes textarea { width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font: inherit; font-size: max(16px, var(--fs-14)); resize: vertical; }
.adm-edit summary { cursor: pointer; font-size: var(--fs-14); font-weight: 600; color: var(--accent); }
.adm-edit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-actions .btn { flex: 1 1 auto; }
.adm-danger { color: #FF3B30 !important; }

.adm-form { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.adm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .adm-form__grid { grid-template-columns: 1fr; } }
.adm-slug { display: flex; align-items: center; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.adm-slug em { padding-left: 14px; font-style: normal; color: var(--text-2); font-size: var(--fs-14); white-space: nowrap; }
.adm-slug input { box-shadow: none !important; background: none !important; padding-left: 2px !important; }
.adm-slug__state { min-height: 16px; padding-left: 4px; font-size: var(--fs-12); color: var(--text-2); overflow-wrap: anywhere; }
.adm-ok { color: #1E9E47; }
.adm-bad { color: #D7261C; }
.adm-form__look { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.adm-form__look > .field { flex: 1 1 300px; }
.adm-form__look .segmented { max-width: 320px; }
.adm-icon-prev { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.adm-icon-prev canvas { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.adm-icon-prev small { font-size: 12px; color: var(--text-2); }

.adm-kit { max-width: 640px; }
.adm-kit h1 { font-size: 28px; letter-spacing: -.02em; }
.adm-kit__row .row__label, .adm-kit__pw .row__label { min-width: 0; }
.adm-kit__val { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px !important; }
.adm-kit__pw code { padding: 6px 10px; border-radius: 10px; background: var(--fill); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.adm-kit__msg textarea { width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-size: max(16px, var(--fs-14)); line-height: 1.5; resize: vertical; }
.adm-print { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: center; width: 320px; max-width: 100%; padding: 28px 24px; border-radius: 24px; background: #fff; color: #111; box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(0, 0, 0, .06); text-align: center; }
.adm-print__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #777; }
.adm-print__name { font-size: 24px; letter-spacing: -.01em; }
.adm-print__qr { padding: 10px; }
.adm-print__qr img, .adm-print__qr canvas { display: block; width: 220px; height: 220px; }
.adm-print__hint { font-size: 14px; color: #555; }
.adm-print__link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #555; overflow-wrap: anywhere; }
@media print {
  html.is-admin body * { visibility: hidden !important; }
  html.is-admin .adm-print, html.is-admin .adm-print * { visibility: visible !important; }
  html.is-admin .adm-print { position: fixed; left: 50%; top: 40px; transform: translateX(-50%); box-shadow: none; border: 1px solid #ddd; }
}
.adm-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .4); }
.adm-modal__card { display: flex; flex-direction: column; gap: 12px; width: min(440px, 100%); padding: 22px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-float); }
.adm-modal__card h2 { font-size: 20px; }
.adm-modal__card p { font-size: var(--fs-14); line-height: 1.5; color: var(--text-2); }
.adm-modal__card p b { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.adm-modal__in { height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text); font: inherit; font-size: 16px; }
.adm-modal__row { display: flex; gap: 8px; }
.adm-modal__row .btn { flex: 1; }

/* Dashboard: first sign-in — choose a password (noir, whatever the studio's style) */
.cab.is-forcepw { background: #0A0A0B; color: #F5F5F7; }
.cab.is-forcepw .cab__bar { background: #0A0A0B; color: #F5F5F7; box-shadow: none; }
.cab.is-forcepw .cab__done { background: #F5F5F7; color: #0A0A0B; }
.cab-force { display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; padding: 40px 24px; font-family: Inter, system-ui, sans-serif; }
.cab-force h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.cab-force p { font-size: 15px; line-height: 1.5; color: rgba(245, 245, 247, .66); }
.cab-force p b { color: #fff; }
.cab-force__mono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #18181B; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; font-weight: 700; letter-spacing: .04em; }
.cab-force .field > span { color: rgba(245, 245, 247, .66); }
.cab-force .field input { background: #18181B; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cab-force .field input:focus { box-shadow: inset 0 0 0 2px #fff; }
.cab-force .pw__eye { color: rgba(245, 245, 247, .66); }
.cab-force__go { background: #F5F5F7 !important; color: #0A0A0B !important; }
.cab-force__out { color: rgba(245, 245, 247, .66) !important; }

/* Dashboard opened by the admin: read only */
.cab.is-readonly .cab__bar::after { content: 'Read only'; position: absolute; right: 50%; bottom: -10px; transform: translateX(50%); padding: 2px 8px; border-radius: 999px; background: #FF9500; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* A paused studio: what clients see */
.paused-state { gap: 10px; padding: 32px; text-align: center; }
.paused-state p { max-width: 320px; color: var(--text-2); font-size: var(--fs-15); line-height: 1.5; }
.paused-state > p:first-of-type { color: var(--text); font-size: var(--fs-17); font-weight: 600; }
.paused-state__avatar, .paused-state__mono { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.paused-state__mono { display: grid; place-items: center; background: var(--fill); font-size: 26px; font-weight: 700; }
.paused-state__acts { display: flex; gap: 8px; margin-top: 8px; }
.paused-state__acts .btn svg { width: 16px; height: 16px; }
.cab-force h1, .cab-force p, .cab-force .btn { font-family: Inter, system-ui, sans-serif !important; }
.cab-force h1 { font-weight: 700 !important; letter-spacing: -.02em !important; }
.app.has-ownsw .cab.is-forcepw ~ .ownsw, .cab.is-forcepw ~ .ownsw { display: none; }
.adm-stats b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-14); }

/* Admin: manual billing (BSB Link) */
.adm-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .adm-stats { grid-template-columns: repeat(2, 1fr); } }
.adm-bill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--fill); }
.adm-bill.is-late { background: color-mix(in srgb, #FF3B30 12%, var(--card)); }
.adm-bill__when { flex: 1 1 160px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.adm-bill__when small { font-size: 11px; font-weight: 600; color: var(--text-2); }
.adm-bill__when b { font-size: var(--fs-14); }
.adm-bill.is-late .adm-bill__when b { color: #D7261C; }
.adm-edit__wide { grid-column: 1 / -1; }
.adm-due { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.adm-due__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.adm-due__head h2 { font-size: var(--fs-17); letter-spacing: -.01em; }
.adm-due__head span { font-size: var(--fs-14); font-weight: 600; color: var(--text-2); }
.adm-due__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
.adm-due__row + .adm-due__row { box-shadow: inset 0 .5px 0 color-mix(in srgb, var(--text) 12%, transparent); }
.adm-due__icon { flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; font-size: 12px; }
.adm-due__who { flex: 1 1 200px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.adm-due__who b { font-size: var(--fs-15); }
.adm-due__who small { font-size: var(--fs-13); color: var(--text-2); }
.adm-due__who em { font-style: normal; font-weight: 600; color: var(--text); }
.adm-due__row.is-late .adm-due__who em { color: #D7261C; }

/* Look & feel: labelled blocks with air between them, preview in light or dark */
#sty-box { display: flex; flex-direction: column; gap: 22px; }
.sty-block { display: flex; flex-direction: column; gap: 10px; }
.sty-label { padding-left: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.sty-label--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sty-pv { width: 150px; flex: none; }
.sty-prev--dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-sm); }
.sty-prev--dark .sty-prev__card { box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6); }
.cab__view:has(#sty-box) > .btn--primary { margin-top: 6px; }

/* Admin: plan in the new-studio form, founding price, undo bar */
.adm-plan { display: flex; gap: 10px; }
.adm-plan .cab-sel { flex: 1; }
.adm-plan__amt { flex: 0 0 140px; display: flex; align-items: center; height: 50px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.adm-plan__amt em { padding-left: 14px; font-style: normal; color: var(--text-2); }
.adm-plan__amt input { width: 100%; min-width: 0; height: 100%; padding: 0 12px 0 4px; border: 0; background: none; color: var(--text); font: inherit; font-size: 17px; font-weight: 600; }
.adm-plan__amt input:focus { outline: none; }
.adm-plan__amt:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.adm-plan select:disabled, .adm-plan__amt:has(input:disabled) { opacity: .55; }
.adm-founding { margin-top: 4px; }
.adm-plan__sum { padding-left: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.adm-founding-tag { font-style: normal; font-weight: 800; color: #B8860B; }
.adm-undo { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 500; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 12px 12px 12px 18px; border-radius: 16px; background: #1C1C1E; color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: adm-undo-in .3s var(--ease); font-size: var(--fs-15); font-weight: 600; }
.adm-undo button { min-width: 70px; height: 36px; padding: 0 14px; border-radius: 10px; background: #fff; color: #111; font-weight: 700; }
.adm-undo__time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #FF9F0A; transform-origin: 0 50%; animation: adm-undo-time 10s linear forwards; }
.adm-undo.is-out { opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s; }
@keyframes adm-undo-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes adm-undo-time { to { transform: scaleX(0); } }
.sty-prev__btn, .sty-prev__chips i.on { color: var(--pon, #fff); }

/* ---------- A salon: the team (Solo studios never render any of this) ---------- */
.team-rail { padding-top: 10px; }
.team-card {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 112px;
  padding: 14px 8px 12px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  scroll-snap-align: start;
}
.team-card__photo { display: block; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; background: var(--fill); }
.team-card__photo img, .team-card__photo .st-mono { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-card b { max-width: 100%; font-size: var(--fs-14); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card small { max-width: 100%; font-size: var(--fs-12); font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c, #8E8E93) 18%, var(--card));
  color: var(--c, #8E8E93);
  font-size: var(--fs-15);
  font-weight: 800;
  letter-spacing: .02em;
}
.team-card .st-mono { font-size: var(--fs-22, 22px); }
.st-mono--any { background: var(--accent-soft); color: var(--accent); }
.st-mono--any svg { width: 24px; height: 24px; }
.pick[data-bk-staff] > img { border-radius: 50%; }
.st-page { position: relative; padding: 18px 20px 40px; }
.st-page__x { position: absolute; top: 14px; right: 14px; z-index: 1; }
.st-page__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.st-page__photo { display: block; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--fill); box-shadow: var(--shadow); }
.st-page__photo img, .st-page__photo .st-mono { width: 100%; height: 100%; object-fit: cover; font-size: 34px; }
.st-page__head h2 { margin-top: 14px; font-size: var(--fs-24, 24px); }
.st-page__title { margin-top: 2px; font-size: var(--fs-14); font-weight: 600; color: var(--text-2); }
.st-page__bio { margin-top: 12px; font-size: var(--fs-15); line-height: 1.5; color: color-mix(in srgb, var(--text) 80%, transparent); }
.st-page__looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 16px; overflow: hidden; }
.st-page__looks button { aspect-ratio: 3 / 4; background: var(--fill); }
.st-page__looks img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- the dashboard of a salon ---------- */
.crew-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.crew-av--mono { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--c); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.crew-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: middle; }
.crew-tag { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: color-mix(in srgb, var(--c) 70%, var(--text)); font-size: 12px; font-weight: 700; white-space: nowrap; }
.req__top .crew-tag { margin-left: 8px; margin-right: auto; }
.crew-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.crew-chips::-webkit-scrollbar { display: none; }
.crew-chips .chip { flex: none; height: 32px; }
.crew-chips--hrs, .crew-chips--pk { margin-bottom: 6px; }
.crew-row { gap: 10px; }
.crew-row__time { flex: none; width: 62px; font-size: var(--fs-14); font-weight: 700; }
.crew-row.is-cx { opacity: .5; }
.crew-row.is-cx .row__label { text-decoration: line-through; }
/* the day, a column per master */
.cab-day--crew { touch-action: auto; }
/* isolate: the sticky time axis stays under the pinned calendar header; columns snap just right of the axis */
.crew-day { position: relative; z-index: 0; isolation: isolate; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 10px 0; scroll-snap-type: x proximity; scroll-padding-left: 52px; scrollbar-width: none; overscroll-behavior-x: contain; }
.crew-day::-webkit-scrollbar { display: none; }
.crew-day__axis { position: sticky; left: 0; z-index: 5; flex: none; width: 46px; margin-top: 10px; background: var(--bg); }
.crew-day__axis span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crew-day__axis span:first-child { transform: none; }
.crew-day__col { flex: 1 0 148px; min-width: 148px; padding-top: 10px; scroll-snap-align: start; }
/* the masters over the columns, pinned with the date; scrolled sideways together with the day */
.crew-heads { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 0 0; scrollbar-width: none; }
.crew-heads::-webkit-scrollbar { display: none; }
.crew-heads__axis { flex: none; width: 46px; }
.crew-heads .crew-day__head { flex: 1 0 148px; min-width: 148px; margin-bottom: 0; }
.crew-day__head { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; margin-bottom: 8px; padding: 0 10px 0 4px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); font-size: var(--fs-14); text-align: left; }
.crew-day__head .crew-av { width: 32px; height: 32px; }
.crew-day__head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl.tl--col { margin-left: 0; }
.tl--col .tl__b { left: 2px; right: 2px; padding: 4px 7px; }
.tl--col .tl__now { left: 0; }
.tl--col .tl__now::before { display: none; }
.wk__b--crew { box-shadow: inset 2px 0 0 var(--c); }
/* Team page */
.crew-kind { width: 180px; margin: 4px 0 10px; }
.crew-team__row { gap: 12px; }
.crew-team__row.is-off { opacity: .5; }
.crew-you { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--fill); font-size: 11px; font-style: normal; font-weight: 700; color: var(--text-2); vertical-align: 2px; }
.crew-colors { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.crew-color { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px color-mix(in srgb, #000 8%, transparent); transition: transform .3s var(--spring); }
.crew-color.is-active { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); transform: scale(1.05); }
.crew-svc { gap: 8px; }
.crew-svc .tick small { margin-left: 4px; font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.crew-svc__more { margin: -2px 0 0 40px; }
.crew-svc__more summary { display: inline-block; padding: 2px 0; font-size: var(--fs-13); font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; }
.crew-svc__more summary::-webkit-details-marker { display: none; }
.crew-svc__more[open] summary { margin-bottom: 8px; }
.crew-svc:not(:has(input[data-crew-svc]:checked)) .crew-svc__more { display: none; }
.crew-msg { font-size: var(--fs-13); line-height: 1.45; }
.crew-pw { letter-spacing: .04em; }
.crew-re { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.crew-re__b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.crew-re__b small { font-size: var(--fs-13); color: var(--text-2); }
.crew-re__b .crew-chips { margin: 4px 0 0; padding: 0; flex-wrap: wrap; }
.crew-re__b .cab-link { align-self: flex-start; }
/* Insights by master + payouts */
.crew-ins { padding: 6px 4px; overflow-x: auto; }
.crew-ins__row { display: grid; grid-template-columns: minmax(84px, 1.3fr) repeat(5, minmax(56px, 1fr)); align-items: center; gap: 6px; min-width: 410px; padding: 9px 10px; border-top: 1px solid var(--line); font-size: var(--fs-13); text-align: right; }
.crew-ins__row:first-child { border-top: 0; }
.crew-ins__row--h { font-size: 10px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; }
.crew-ins__row--h span { white-space: nowrap; }
.crew-ins__row.is-off { opacity: .55; }
.crew-ins__name { display: flex; align-items: center; min-width: 0; text-align: left; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-ins .is-bad { color: #FF3B30; }
.crew-pay { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.crew-pay__list { margin: 0 -14px; }
.crew-pay__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.crew-pay__total b { font-size: var(--fs-20, 20px); }
.adm-kind { width: 200px; }
.adm-kind-tag { font-family: var(--font, inherit); font-weight: 700; color: var(--text); }
.crew-inv .bk-row b { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.crew-msg { width: 100%; max-width: 100%; }
.adm-trial { width: 200px; }
/* New studio: the accents sit below the style switch with the same air as in Look & feel */
.adm-form__look .sty-acc { margin-top: 20px; }

/* ---------- emails (Studio → Emails) and "Forgot password" ---------- */
.eml-row { align-items: flex-start; }
.eml-row .switch { margin-top: 4px; }
.eml-pv { display: inline-block; margin-top: 4px; padding: 0; font-size: var(--fs-13); }
.eml-st { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--fill); font-size: 12px; font-weight: 700; color: var(--text-2); }
.eml-st--sent { background: color-mix(in srgb, #34C759 16%, var(--card)); color: #1F8A3D; }
.eml-st--failed { background: color-mix(in srgb, #FF3B30 14%, var(--card)); color: #C62B22; }
.eml-st--queued, .eml-st--sending { background: color-mix(in srgb, #FF9500 14%, var(--card)); color: #B26A00; }
.eml-sheet .eml-subj { font-weight: 600; color: var(--text); }
.eml-frame { margin: 4px 0 14px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.eml-frame iframe { display: block; width: 100%; height: 62vh; border: 0; }
.fg-code { font-size: 24px !important; font-weight: 700; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.adm-mail { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px; margin-bottom: 18px; padding: 14px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm, none); }
.adm-mail__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--fill); color: var(--text-2); }
.adm-mail__ic svg { width: 20px; height: 20px; }
.adm-mail__txt b { display: block; font-size: var(--fs-15); }
.adm-mail__txt small { font-size: var(--fs-13); color: var(--text-2); }
.adm-mail__bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.adm-mail__bar i { display: block; height: 100%; border-radius: 3px; background: #34C759; }
.adm-mail.is-warn { box-shadow: inset 0 0 0 1.5px #FF9500; }
.adm-mail.is-warn .adm-mail__bar i { background: #FF9500; }
.adm-mail.is-warn .adm-mail__ic { background: color-mix(in srgb, #FF9500 18%, var(--card)); color: #B26A00; }

/* "We moved to satinbook.com" (once per device) */
.moved { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; padding: 16px; box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-sm, none); }
.moved__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.moved__ic svg { width: 22px; height: 22px; }
.moved__txt b { display: block; font-size: var(--fs-16, 16px); }
.moved__txt small { display: block; margin-top: 2px; font-size: var(--fs-13); line-height: 1.45; color: var(--text-2); }
.moved__acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.moved__acts .btn { flex: 1; }
