/* Customer app look (phone app and /book): a floral satin backdrop, crisp porcelain
   cards, one glowing booking button and a glass tab bar. Loaded after skin.css and
   switched off in the signed-in Staff view. Colours come from the salon's own
   --accent / --candy tokens in skin.css, so each salon keeps its theme.

   Built for speed: the backdrop is one small picture on a fixed layer, cards are
   solid (no live blur behind lists), and every animation moves only transform or
   opacity. */

body:not(.staff-mode) {
  --as-backdrop: url("img/app-home-light.jpg");
  --as-card: #ffffff;
  --as-card-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 30px -20px var(--candy-glow, rgba(190, 50, 120, .5));
  --as-pop: cubic-bezier(.34, 1.4, .64, 1);
}
/* Dark mode only where the salon's theme follows the phone; Queen, LeBella and Victoria stay light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body:not(.staff-mode) {
    --as-backdrop: url("img/app-home-dark.jpg");
    --as-card: #2c1a36;
    --as-card-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 30px -20px rgba(0, 0, 0, .8);
  }
}
/* Each salon has its own flowers */
:root[data-theme="queen"] body:not(.staff-mode) { --as-backdrop: url("img/app-home-queen.jpg"); --as-card: #fffdf8; }
:root[data-theme="lebella"] body:not(.staff-mode) { --as-backdrop: url("img/app-home-lebella.jpg"); --as-card: #ffffff; }
:root[data-theme="victoria"] body:not(.staff-mode) { --as-backdrop: url("img/app-home-victoria.jpg"); --as-card: #ffffff; }

/* One still picture filling the whole screen, in place of the two blurred colour blobs.
   It sits on its own fixed layer behind the page, so it always covers the screen edge to
   edge (phone, tablet or computer) and costs nothing while scrolling. */
body:not(.staff-mode) { background: none; }
body:not(.staff-mode)::before {
  content: ""; display: block; position: fixed; z-index: -1; inset: 0;
  width: auto; height: auto; border-radius: 0; filter: none; opacity: 1;
  background: var(--as-backdrop) top center / cover no-repeat, var(--sky);
  pointer-events: none;
}
body:not(.staff-mode)::after { display: none; }

/* ---------- home ---------- */
body:not(.staff-mode) .muse-bubble {
  background: var(--as-card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--line);
  box-shadow: var(--as-card-shadow);
  border-radius: 24px;
}
body:not(.staff-mode) .home-name {
  font-size: 2.35rem; letter-spacing: -.005em;
  animation: as-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
body:not(.staff-mode) .home-name::after {
  width: 56px; height: 3px; border-radius: 3px;
  background: var(--candy);
}
body:not(.staff-mode) .home-status {
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--as-card) 88%, transparent);
  border: 1px solid var(--line);
  font-size: .95rem;
}
body:not(.staff-mode) .home-dot { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); animation: as-pulse 2.4s ease-in-out infinite; }

body:not(.staff-mode) .home-acts { gap: 12px; }
body:not(.staff-mode) .home-act {
  position: relative; overflow: hidden;
  min-height: 76px; border-radius: 24px;
  background: var(--as-card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--as-card-shadow);
  transition: transform .28s var(--as-pop), box-shadow .2s ease;
  animation: as-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
body:not(.staff-mode) .home-act:nth-child(2) { animation-delay: .06s; }
body:not(.staff-mode) .home-act:nth-child(3) { animation-delay: .12s; }
body:not(.staff-mode) .home-act:nth-child(4) { animation-delay: .18s; }
body:not(.staff-mode) .home-act:active { transform: scale(.975); }
body:not(.staff-mode) .home-act-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, var(--accent-soft)));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
body:not(.staff-mode) .home-act.is-quiet { background: none; box-shadow: none; }

/* The one big button: satin gradient, a soft glow, and a slow sheen */
body:not(.staff-mode) .home-act.is-primary {
  min-height: 88px;
  background: var(--candy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 20px 36px -16px var(--candy-glow, rgba(190, 50, 120, .6));
}
body:not(.staff-mode) .home-act.is-primary .home-act-icon {
  background: rgba(255, 255, 255, .22); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset;
}
body:not(.staff-mode) .home-act.is-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: as-sheen 5.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}

/* ---------- page titles ---------- */
body:not(.staff-mode) .view-head:not(.row)::after {
  width: 56px; height: 3px; border-radius: 3px; background: var(--candy);
}

/* ---------- booking: steps, services, days, times ---------- */
body:not(.staff-mode) .step span {
  width: 30px; height: 30px;
  background: var(--candy); color: var(--accent-ink);
  box-shadow: 0 8px 16px -8px var(--candy-glow, rgba(190, 50, 120, .6));
}
body:not(.staff-mode) .service {
  border-radius: 20px;
  background: var(--as-card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 10px 22px -20px var(--candy-glow, rgba(190, 50, 120, .5));
  transition: transform .24s var(--as-pop), box-shadow .2s ease, border-color .2s ease;
  /* long menus: the phone only lays out the rows on screen */
  content-visibility: auto; contain-intrinsic-size: auto 76px;
}
body:not(.staff-mode) .service:active { transform: scale(.985); }
body:not(.staff-mode) .service.is-selected,
body:not(.staff-mode) .service[aria-pressed="true"],
body:not(.staff-mode) .service[aria-checked="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent), 0 14px 26px -18px var(--candy-glow, rgba(190, 50, 120, .6));
}
body:not(.staff-mode) .service .price { font-family: var(--serif); font-size: 1.1rem; }
body:not(.staff-mode) .service-sub { color: var(--accent); }

body:not(.staff-mode) .date-strip button {
  border-radius: 20px; background: var(--as-card);
  transition: transform .24s var(--as-pop), background-color .2s ease, color .2s ease;
}
body:not(.staff-mode) .date-strip button:active { transform: scale(.95); }
body:not(.staff-mode) .date-strip button.is-active {
  background: var(--candy); border-color: transparent;
  box-shadow: 0 12px 20px -12px var(--candy-glow, rgba(190, 50, 120, .6));
}
body:not(.staff-mode) .slot {
  border-radius: 16px; background: var(--as-card);
  transition: transform .22s var(--as-pop), border-color .2s ease;
}
body:not(.staff-mode) .slot:active { transform: scale(.95); }

/* cards elsewhere: solid, so scrolling stays smooth */
body:not(.staff-mode) .card,
body:not(.staff-mode) .salon,
body:not(.staff-mode) .vp-visit,
body:not(.staff-mode) .vp-entry-card,
body:not(.staff-mode) .who,
body:not(.staff-mode) .result {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: var(--as-card);
  box-shadow: var(--as-card-shadow);
}
body:not(.staff-mode) .salon { border-radius: 24px; transition: transform .26s var(--as-pop); }
body:not(.staff-mode) .salon:active { transform: scale(.98); }

/* buttons */
body:not(.staff-mode) .btn,
body:not(.staff-mode) .primary-btn:not(.danger) {
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 14px 24px -14px var(--candy-glow, rgba(190, 50, 120, .6));
  transition: transform .24s var(--as-pop), filter .2s ease;
}
body:not(.staff-mode) .btn:active,
body:not(.staff-mode) .primary-btn:not(.danger):active { transform: scale(.97); }

/* ---------- tab bar: the active tab is a satin pill ---------- */
@media (max-width: 767px) {
  html body:not(.staff-mode) .rail {
    border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
    box-shadow: 0 16px 34px -14px var(--candy-glow, rgba(190, 50, 120, .45)), 0 1px 3px rgba(0, 0, 0, .06);
  }
  html body:not(.staff-mode) .rail .tab { transition: background-color .2s, color .2s, transform .26s var(--as-pop); }
  html body:not(.staff-mode) .rail .tab:active { transform: scale(.94); }
  html body:not(.staff-mode) .rail .tab.is-active {
    background: var(--candy); color: var(--accent-ink);
    box-shadow: 0 10px 18px -10px var(--candy-glow, rgba(190, 50, 120, .6)), 0 1px 0 rgba(255, 255, 255, .35) inset;
  }
  html body:not(.staff-mode) .rail .tab.is-active svg { fill: rgba(255, 255, 255, .22); }
}

@keyframes as-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes as-sheen { 0%, 62% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes as-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) {
  body:not(.staff-mode) .home-name, body:not(.staff-mode) .home-act, body:not(.staff-mode) .home-act.is-primary::after, body:not(.staff-mode) .home-dot { animation: none; }
  body:not(.staff-mode) .home-act, body:not(.staff-mode) .service, body:not(.staff-mode) .slot, body:not(.staff-mode) .date-strip button { transition: none; }
}

/* ---------- salon picker (the first screen of the iPhone app) ---------- */
.salon-picker {
  background: var(--as-backdrop, url("img/app-home-light.jpg")) top center / cover no-repeat, var(--sky, var(--bg));
  place-items: end center;
  padding-bottom: calc(15vh + var(--safe-b));
}
.salon-picker .picker-card { animation: as-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.salon-picker .picker-title {
  font-size: 1.95rem; line-height: 1.15; white-space: nowrap;
  background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.salon-picker .picker-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; border-radius: 3px;
  background: var(--candy); -webkit-text-fill-color: initial;
}
.salon-picker .picker-list { gap: 14px; margin: 22px 0; }
.salon-picker .picker-salon {
  min-height: 84px; padding: 16px 18px; gap: 16px; border-radius: 26px;
  background: var(--as-card, #fff);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 34px -20px var(--candy-glow, rgba(190, 50, 120, .5));
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1), border-color .2s ease;
}
.salon-picker .picker-salon:active { transform: scale(.975); }
.salon-picker .picker-salon::after {
  content: "\203A"; margin-left: auto; font-size: 1.6rem; line-height: 1; color: var(--ink-2); opacity: .7;
}
.salon-picker .picker-salon.is-current::after { content: none; }
.salon-picker .picker-text strong { font: 600 1.2rem/1.25 var(--serif); }
.salon-picker .picker-text small { font-size: .95rem; }
/* salon marks are perfect circles */
.salon-picker .picker-mark {
  width: 54px; height: 54px; aspect-ratio: 1 / 1; border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 10px 20px -8px rgba(190, 50, 120, .6), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.salon-picker .picker-salon[data-theme="queen"] .picker-mark { box-shadow: 0 0 0 3px #fff, 0 10px 20px -8px rgba(190, 140, 50, .7), 0 1px 0 rgba(255, 255, 255, .5) inset; }
@media (prefers-reduced-motion: reduce) { .salon-picker .picker-card { animation: none; } }

/* A two-line salon name must stay inside its tab pill */
@media (max-width: 767px) {
  html body:not(.staff-mode) .rail .tab[data-view="concierge"] { gap: 1px; padding-block: 4px; }
  html body:not(.staff-mode) .rail .tab[data-view="concierge"] svg { width: 20px; height: 20px; }
  html body:not(.staff-mode) .rail .tab[data-view="concierge"] span { font-size: .625rem; line-height: 1.05; }
}

/* ---------- side menu on iPad and computer: a satin panel with big porcelain buttons ---------- */
body:not(.staff-mode) { --as-rail: url("img/app-rail-light.jpg"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body:not(.staff-mode) { --as-rail: url("img/app-rail-dark.jpg"); }
}
:root[data-theme="queen"] body:not(.staff-mode) { --as-rail: url("img/app-rail-queen.jpg"); }
:root[data-theme="lebella"] body:not(.staff-mode) { --as-rail: url("img/app-rail-lebella.jpg"); }
:root[data-theme="victoria"] body:not(.staff-mode) { --as-rail: url("img/app-rail-victoria.jpg"); }

@media (min-width: 768px) {
  html body:not(.staff-mode) .rail {
    position: relative; isolation: isolate; gap: 12px; width: 104px;
    padding: calc(var(--safe-t) + 22px) 12px calc(var(--safe-b) + 18px);
    border-right: 0;
    background: var(--as-rail) top center / cover no-repeat, var(--as-card);
    box-shadow: 1px 0 0 color-mix(in srgb, var(--accent) 22%, transparent), 18px 0 40px -26px var(--candy-glow, rgba(190, 50, 120, .5));
  }
  /* a soft veil over the middle of the picture keeps the buttons easy to read */
  html body:not(.staff-mode) .rail::before {
    content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--as-card) 50%, transparent) 26%, color-mix(in srgb, var(--as-card) 50%, transparent) 76%, transparent);
  }

  html body:not(.staff-mode) .rail .brand { flex-direction: column; align-items: center; gap: 10px; margin: 0 0 10px; text-align: center; }
  html body:not(.staff-mode) .rail .brand-mark {
    flex: none; width: 56px; height: 56px; aspect-ratio: 1 / 1; border-radius: 50%; font-size: 1.6rem;
    box-shadow: 0 0 0 3px var(--as-card), 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent), 0 14px 22px -10px var(--candy-glow, rgba(190, 50, 120, .6)), 0 1px 0 rgba(255, 255, 255, .5) inset;
  }

  html body:not(.staff-mode) .rail .tab,
  html body:not(.staff-mode) .rail .tab.is-active {
    flex: none; width: 100%; margin: 0; padding: 10px 4px 9px; gap: 6px; border-radius: 22px; opacity: 1;
    flex-direction: column; justify-content: center; text-decoration: none; text-shadow: none;
    color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .01em;
    background: color-mix(in srgb, var(--as-card) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 14px 22px -16px var(--candy-glow, rgba(190, 50, 120, .55));
    transition: transform .26s var(--as-pop), box-shadow .2s ease, background-color .2s ease, color .2s ease;
  }
  html body:not(.staff-mode) .rail .tab svg,
  html body:not(.staff-mode) .rail .tab.is-active svg {
    flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; transform: none; fill: none;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--as-card));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
  }
  html body:not(.staff-mode) .rail .tab:hover { transform: translateY(-2px); background: var(--as-card); box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 18px 26px -16px var(--candy-glow, rgba(190, 50, 120, .7)); }
  html body:not(.staff-mode) .rail .tab:active { transform: scale(.97); }
  html body:not(.staff-mode) .rail .tab.is-active {
    background: var(--candy); color: var(--accent-ink); border-color: transparent;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 16px 26px -12px var(--candy-glow, rgba(190, 50, 120, .7));
  }
  html body:not(.staff-mode) .rail .tab.is-active svg {
    color: var(--accent-ink); background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  }
  html body:not(.staff-mode) .rail .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
}

@media (min-width: 1100px) {
  html body:not(.staff-mode) .rail { width: 288px; padding-left: 20px; padding-right: 20px; gap: 14px; }
  html body:not(.staff-mode) .rail .brand { margin-bottom: 14px; padding-bottom: 18px; position: relative; }
  /* a fine line with a jewel under the salon's name */
  html body:not(.staff-mode) .rail .brand::after {
    content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 9px;
    background:
      radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px) center / 9px 9px no-repeat,
      linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 30%, transparent 44%, transparent 56%, color-mix(in srgb, var(--accent) 55%, transparent) 70%, transparent) center / 100% 1px no-repeat;
  }
  html body:not(.staff-mode) .rail .brand-mark { width: 72px; height: 72px; font-size: 2rem; }
  html body:not(.staff-mode) .rail .brand-text { align-items: center; gap: 4px; }
  html body:not(.staff-mode) .rail .brand-text strong { font-size: 1.5rem; line-height: 1.1; text-wrap: balance; }
  html body:not(.staff-mode) .rail .brand-text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

  html body:not(.staff-mode) .rail .tab,
  html body:not(.staff-mode) .rail .tab.is-active {
    flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 64px; padding: 10px 16px 10px 11px; border-radius: 999px;
    font: 600 1.14rem/1.15 var(--serif); letter-spacing: .005em; text-align: left;
  }
  html body:not(.staff-mode) .rail .tab svg,
  html body:not(.staff-mode) .rail .tab.is-active svg { width: 44px; height: 44px; padding: 11px; }
  html body:not(.staff-mode) .rail .tab > span { flex: 1; min-width: 0; }
  html body:not(.staff-mode) .rail .tab[data-view="concierge"] > span { font-size: 1.04rem; }
  /* a small arrow at the end of each button */
  html body:not(.staff-mode) .rail .tab::after {
    content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid currentColor; border-width: 2px 2px 0 0;
    transform: rotate(45deg); opacity: .4; transition: transform .26s var(--as-pop), opacity .2s ease;
  }
  html body:not(.staff-mode) .rail .tab:hover::after,
  html body:not(.staff-mode) .rail .tab.is-active::after { opacity: .85; transform: translateX(3px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  html body:not(.staff-mode) .rail .tab, html body:not(.staff-mode) .rail .tab::after { transition: none; }
  html body:not(.staff-mode) .rail .tab:hover { transform: none; }
}

/* ---------- staff PIN screen: a clear porcelain card in the middle of the screen ---------- */
body:not(.staff-mode) .staff-main:has(> .pin-gate:not([hidden])) {
  min-height: 100%;
  justify-content: center; align-items: center; padding: 20px 16px;
}
body:not(.staff-mode) .pin-gate:not([hidden]) {
  width: min(400px, 100%); margin: 0 auto; padding: 30px 24px 26px; border-radius: 28px;
  background: color-mix(in srgb, var(--as-card, #fff) 92%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 60px -24px var(--candy-glow, rgba(120, 40, 80, .45)), 0 8px 20px -12px rgba(0, 0, 0, .18);
  animation: as-rise .45s var(--as-pop, ease) both;
}
body:not(.staff-mode) .pin-gate:not([hidden])::before {
  content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 26px 26px, cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"), var(--candy, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 12px 22px -10px var(--candy-glow, rgba(120, 40, 80, .6));
}
body:not(.staff-mode) .pin-gate:not([hidden]) h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 2rem; line-height: 1.1; font-weight: 600; color: var(--accent); text-shadow: none; }
body:not(.staff-mode) .pin-gate:not([hidden]) p { margin: 0; color: var(--ink); opacity: .8; font-size: 1rem; }
body:not(.staff-mode) .pin-gate:not([hidden]) form { margin-top: 20px; gap: 10px; }
body:not(.staff-mode) .pin-gate:not([hidden]) input { min-height: 52px; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: #fff; font-size: 20px; }
body:not(.staff-mode) .pin-gate:not([hidden]) input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
body:not(.staff-mode) .pin-gate:not([hidden]) .primary-btn { min-height: 52px; padding: 0 24px; }
/* the PIN box shrinks to make room, so Open always stays inside the card */
body:not(.staff-mode) .pin-gate:not([hidden]) form { display: flex; width: 100%; box-sizing: border-box; }
body:not(.staff-mode) .pin-gate:not([hidden]) input { flex: 1 1 0; width: auto; min-width: 0; box-sizing: border-box; }
body:not(.staff-mode) .pin-gate:not([hidden]) .primary-btn { flex: none; width: auto; margin: 0; }
@media (max-width: 380px) { body:not(.staff-mode) .pin-gate:not([hidden]) .primary-btn { padding: 0 18px; } }

/* ---------- page headings (Book, My visits): a frosted glass panel so the words stand out from the photo ---------- */
body:not(.staff-mode) .view > .view-head:not(.row):not(.chat-head) {
  position: relative; display: inline-block; max-width: min(100%, 560px); box-sizing: border-box;
  margin-bottom: 22px; padding: 16px 22px 18px; border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--as-card, #fff) 90%, transparent), color-mix(in srgb, var(--as-card, #fff) 74%, transparent));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, #fff 70%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 18px 40px -22px var(--candy-glow, rgba(120, 40, 80, .5)), 0 4px 14px -8px rgba(0, 0, 0, .16);
  animation: as-rise .45s var(--as-pop, ease) both;
}
body:not(.staff-mode) .view > .view-head:not(.row):not(.chat-head) h1 {
  margin: 0; color: var(--accent);
  background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, #fff) 48%, var(--accent) 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--accent) 30%, transparent));
  animation: as-shine 6s ease-in-out infinite;
}
body:not(.staff-mode) .view > .view-head:not(.row):not(.chat-head) h1 img.sr-title { -webkit-text-fill-color: initial; }
body:not(.staff-mode) .view > .view-head:not(.row):not(.chat-head) p { margin-top: 6px; color: var(--ink); opacity: .88; font-weight: 500; }
body:not(.staff-mode) .view > .view-head:not(.row):not(.chat-head)::after { margin-top: 12px; }
@keyframes as-shine { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { body:not(.staff-mode) .view > .view-head:not(.row):not(.chat-head) h1 { animation: none; } }

/* ---------- booking: a technician for each service ---------- */
.staff-per[hidden] { display: none; }
.staff-per { display: grid; gap: 8px; margin: 4px 0 14px; padding: 14px; border-radius: 20px; background: color-mix(in srgb, var(--as-card, #fff) 92%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: var(--as-card-shadow, 0 10px 24px -18px rgba(0, 0, 0, .3)); }
.staff-per-title { margin: 0 0 2px; font: 600 1.05rem var(--serif); color: var(--ink); }
.staff-per-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--c-bg, var(--accent-soft)) 45%, transparent); border-left: 4px solid var(--c-ink, var(--accent)); }
.staff-per-name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; line-height: 1.2; }
.staff-per-name small { font-weight: 400; color: var(--ink-2); font-size: .78rem; }
.staff-per-row select { width: 100%; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 16px; }
.staff-per-note { margin: 2px 2px 0; }
@media (max-width: 420px) { .staff-per-row { grid-template-columns: 1fr; gap: 6px; } }

/* times for a visit with several technicians: room for "Hang → Lisa" */
.slots.is-visit { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.slots.is-visit .slot small { white-space: normal; line-height: 1.2; }

/* the visit, part by part, in the summary and on the confirmation */
.visit-parts { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; text-align: left; }
.visit-parts li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.visit-parts li strong { font-variant-numeric: tabular-nums; }
.visit-parts li span { display: flex; flex-direction: column; min-width: 0; }
.visit-parts li small { color: var(--ink-2); }
