/* Customer brand layer (September 2026).

   One violet taken from the logo (#916be8) replaces the dusk purples across
   Discover, Salons, salon pages, AI Try-on and My Hair. Solid fills replace the
   old gradients, every control gets the same hover and press feedback, and the
   logo gradient appears only as a small brand accent. This file loads after the
   older layers on purpose; status colours (confirmed, cancelled, …) are left
   alone. */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --rl-violet: #916be8;
  --rl-violet-hover: #7f58e0;
  --rl-violet-deep: #6a48d0;
  --rl-violet-ink: #5236b3;
  --rl-violet-soft: #f4f0fd;
  --rl-violet-soft-2: #e7defa;
  --rl-violet-line: #d9cdf8;
  --rl-violet-shadow: rgba(145, 107, 232, 0.42);
  --rl-brand-gradient: linear-gradient(135deg, #a374fa 0%, #93a2f7 55%, #8ff7d2 100%);
  --rl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --future-violet-950: #2e2159;
  --future-violet-800: #6a48d0;
  --future-violet-700: #916be8;
  --future-violet-600: #a68aee;
  --future-violet-300: #cfc0f6;
  --future-violet-100: #ede6fd;
  --future-violet-50: #f6f2fe;
  --future-violet-glow: rgba(145, 107, 232, 0.24);
}

body.customer-mode,
body.auth-screen-mode,
body.booking-workspace-mode {
  --accent: var(--future-violet-300);
  --accent-strong: #916be8;
  --accent-soft: var(--future-violet-50);
  --customer-violet: #916be8;
  --customer-violet-dark: #6a48d0;
  --customer-neon: #a68aee;
  --customer-neon-line: var(--future-violet-300);
  --customer-neon-soft: var(--future-violet-50);
  --customer-neon-glow: var(--future-violet-glow);
  --booking-neon: #916be8;
  --salon-profile-violet: #916be8;
  --auth-accent: #916be8;
  --sup-accent: #916be8;
  --mobile-accent: #916be8;
}

body.salon-site-mode,
body.pro-mode .salon-home-editor-canvas {
  --salon-profile-violet: #916be8;
}

/* ---------- Header ---------- */

body.customer-mode .customer-topbar .primary-nav .nav-link {
  position: relative;
  z-index: 1;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 220ms var(--rl-ease);
}

body.customer-mode .customer-topbar .primary-nav .nav-link .icon {
  transition: color 180ms ease, transform 260ms var(--rl-ease);
}

body.customer-mode .customer-topbar .primary-nav .nav-link.active {
  color: var(--rl-violet-ink);
  background: var(--rl-violet-soft);
}

body.customer-mode .customer-topbar .primary-nav .nav-link.active .icon {
  color: var(--rl-violet);
}

/* Between tablet and laptop widths the header needs about 850px; drop the
   tab icons and tighten it so it stays on one row instead of wrapping. */
@media (min-width: 769px) and (max-width: 920px) {
  body.customer-mode .customer-topbar {
    gap: 8px;
    padding-inline: 14px;
  }

  body.customer-mode .customer-topbar .primary-nav .nav-link .icon {
    display: none;
  }
}

/* The sliding glider (ui/customer-motion.js) paints the active tab. */
.primary-nav.has-glider,
.me-rail-nav.has-glider {
  position: relative;
}

.nav-glider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--rl-violet-soft);
  box-shadow: inset 0 0 0 1px #ebe3fc;
  pointer-events: none;
}

.me-rail-nav > .nav-glider {
  border-radius: 12px;
  box-shadow: none;
}

body.customer-mode .customer-topbar .primary-nav.has-glider .nav-link.active,
body.me-workspace-mode .me-rail-nav.has-glider button.active:not(.me-rail-pro-link) {
  background: transparent;
}

body.me-workspace-mode .me-rail-nav button {
  position: relative;
  z-index: 1;
}

body.me-workspace-mode .me-rail-nav button.active:not(.me-rail-pro-link) {
  color: var(--rl-violet-ink);
}

body.me-workspace-mode .me-rail-nav button.active:not(.me-rail-pro-link) .icon {
  color: var(--rl-violet);
}

body.customer-mode .customer-topbar .user-chip {
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--rl-ease);
}

/* ---------- Buttons ---------- */

body.customer-mode .solid-button.customer:not(.danger),
body.auth-screen-mode .solid-button.customer:not(.danger),
body.customer-mode .solid-button.pro.pro-account-salon-open:not(:disabled) {
  border-color: transparent;
  color: #fff;
  background: var(--rl-violet);
  box-shadow: 0 10px 22px -14px var(--rl-violet-shadow);
}

body.customer-mode .outline-button.customer:not(.danger) {
  border-color: #ddd5ea;
  color: #3b3446;
  background: #fff;
}

:is(body.customer-mode, body.pro-mode .salon-home-editor-canvas) :is(
    .solid-button,
    .outline-button,
    .ghost-button,
    .icon-button,
    .text-button,
    .pill,
    .filter-chip,
    .discovery-filter-trigger,
    .directory-book-button,
    .directory-detail-button,
    .discover-card-book-link,
    .salon-save-button,
    .salon-profile-book-button,
    .salon-profile-outline-button,
    .me-service-book,
    .customer-day-pill
  ) {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 240ms ease,
    transform 240ms var(--rl-ease);
}

@media (hover: hover) and (pointer: fine) {
  body.customer-mode .customer-topbar .primary-nav .nav-link:not(.active):hover {
    color: #2b2432;
    background: rgba(145, 107, 232, 0.07);
  }

  body.customer-mode .customer-topbar .primary-nav .nav-link:hover .icon {
    color: var(--rl-violet);
    transform: translateY(-1px) rotate(-6deg);
  }

  body.customer-mode .customer-topbar .user-chip:hover {
    border-color: var(--rl-violet-line);
    box-shadow: 0 8px 20px -14px var(--rl-violet-shadow);
    transform: translateY(-1px);
  }

  body.customer-mode .solid-button.customer:not(.danger):not(:disabled):hover,
  body.auth-screen-mode .solid-button.customer:not(.danger):not(:disabled):hover,
  body.customer-mode .solid-button.pro.pro-account-salon-open:not(:disabled):hover {
    background: var(--rl-violet-hover);
    box-shadow: 0 16px 28px -14px rgba(127, 88, 224, 0.62);
    transform: translateY(-1px);
  }

  :is(body.customer-mode, body.pro-mode .salon-home-editor-canvas) :is(.outline-button.customer, .directory-detail-button, .salon-profile-outline-button):not(.danger):not(:disabled):hover {
    border-color: var(--rl-violet-line);
    color: var(--rl-violet-ink);
    background: #fbf9ff;
    box-shadow: 0 10px 22px -16px var(--rl-violet-shadow);
    transform: translateY(-1px);
  }

  body.customer-mode :is(.ghost-button, .text-button):not(:disabled):hover {
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
  }

  body.customer-mode .icon-button:not(:disabled):hover {
    border-color: var(--rl-violet-line);
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
    transform: translateY(-1px);
  }

  body.customer-mode :is(.pill, .filter-chip, .discovery-filter-trigger):not(.active):not(:disabled):hover {
    border-color: var(--rl-violet-line);
    color: var(--rl-violet-ink);
    background: #fbf9ff;
    transform: translateY(-1px);
  }

  body.customer-mode :is(.directory-book-button, .discover-card-book-link, .me-service-book):hover {
    transform: translateY(-1px);
  }

  body.customer-mode .salon-save-button:hover {
    transform: scale(1.08);
  }
}

:is(body.customer-mode, body.pro-mode .salon-home-editor-canvas) :is(.solid-button, .outline-button, .ghost-button, .icon-button, .directory-book-button, .directory-detail-button, .discover-card-book-link, .salon-profile-book-button, .me-service-book):not(:disabled):active {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}

/* ---------- Discover ---------- */

body.customer-mode .discover-search-submit {
  background: var(--rl-violet);
  box-shadow: 0 10px 22px -12px var(--rl-violet-shadow);
}

body.customer-mode .discover-search-submit:hover {
  background: var(--rl-violet-hover);
}

body.customer-mode .discover-card-book-link {
  color: var(--rl-violet-ink);
}

/* ---------- Salons: list and map ---------- */

body.customer-mode .directory-book-button {
  border-color: transparent;
  color: #fff;
  background: var(--rl-violet);
  box-shadow: 0 8px 18px -12px var(--rl-violet-shadow);
}

@media (hover: hover) and (pointer: fine) {
  body.customer-mode .directory-book-button:hover {
    background: var(--rl-violet-hover);
  }
}

.directory-splitter {
  display: none;
}

@media (min-width: 769px) {
  body.salon-directory-mode .salon-map-directory {
    position: relative;
  }

  body.salon-directory-mode .salon-map-directory.has-custom-split {
    grid-template-columns: minmax(0, var(--directory-list-width, 50%)) minmax(0, 1fr);
  }

  body.salon-directory-mode .salon-directory-panel {
    container-type: inline-size;
  }

  /* The list reflows with its own width: an older rule pins two columns with
     !important, so these do too. */
  @container (max-width: 640px) {
    body.salon-directory-mode .salon-directory-panel .directory-list {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }

  @container (min-width: 1100px) {
    body.salon-directory-mode .salon-directory-panel .directory-list {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

  @container (min-width: 1500px) {
    body.salon-directory-mode .salon-directory-panel .directory-list {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
  }

  .directory-splitter {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--splitter-x, 50%);
    /* Above the map's loading layer (z-index 600) and its controls. */
    z-index: 900;
    display: grid;
    width: 18px;
    margin-left: -9px;
    place-items: center;
    cursor: col-resize;
    touch-action: none;
    outline: none;
  }

  .directory-splitter::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    border-radius: 2px;
    background: transparent;
    transition: background-color 180ms ease;
  }

  .directory-splitter > span {
    position: relative;
    display: grid;
    width: 12px;
    height: 56px;
    place-items: center;
    border: 1px solid #e3dcef;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 16px -8px rgba(40, 24, 90, 0.35);
    transition:
      height 220ms var(--rl-ease),
      border-color 180ms ease,
      background-color 180ms ease;
  }

  .directory-splitter > span::before {
    content: "";
    width: 2px;
    height: 20px;
    border-radius: 2px;
    background: #b9aed0;
    box-shadow: 3px 0 0 #b9aed0;
    transform: translateX(-1.5px);
  }

  .directory-splitter[data-view="map"] {
    margin-left: 4px;
  }

  .directory-splitter[data-view="list"] {
    margin-left: -22px;
  }

  .directory-splitter:hover::before,
  .directory-splitter:focus-visible::before,
  .is-resizing-directory .directory-splitter::before {
    background: var(--rl-violet);
  }

  .directory-splitter:hover > span,
  .directory-splitter:focus-visible > span,
  .is-resizing-directory .directory-splitter > span {
    height: 72px;
    border-color: var(--rl-violet);
    background: var(--rl-violet);
  }

  .directory-splitter:hover > span::before,
  .directory-splitter:focus-visible > span::before,
  .is-resizing-directory .directory-splitter > span::before {
    background: #fff;
    box-shadow: 3px 0 0 #fff;
  }

  .is-resizing-directory,
  .is-resizing-directory * {
    cursor: col-resize !important;
    user-select: none !important;
  }

  .is-resizing-directory .directory-map-panel {
    pointer-events: none;
  }

  /* The line only shows while the list and map are both on screen. */
  .salon-directory-page:not(.directory-view-split) .directory-splitter::before,
  .salon-directory-page[data-split-preview="map"] .directory-splitter::before,
  .salon-directory-page[data-split-preview="list"] .directory-splitter::before {
    display: none;
  }

  /* Map only: the map spans the page and the search floats over it. */
  body.salon-directory-mode .salon-directory-page.directory-view-map .salon-map-directory {
    grid-template-columns: minmax(0, 1fr);
  }

  body.salon-directory-mode .salon-directory-page.directory-view-map :is(.directory-map-panel, .salon-directory-controls) {
    grid-column: 1;
  }

  /* List only: the list spans the page and the search sits above it. */
  body.salon-directory-mode .salon-directory-page.directory-view-list .salon-map-directory {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.salon-directory-mode .salon-directory-page.directory-view-list .salon-directory-controls {
    grid-column: 1;
    grid-row: 1;
    width: min(720px, 100%);
    margin: 4px 0 0;
  }

  body.salon-directory-mode .salon-directory-page.directory-view-list .salon-directory-panel {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ---------- Salon pages ---------- */

body.customer-mode .salon-profile-book-button:not(:disabled),
body.pro-mode .salon-home-editor-canvas .salon-profile-book-button:not(:disabled) {
  background: var(--rl-violet);
  box-shadow: 0 12px 26px -16px var(--rl-violet-shadow);
}

@media (hover: hover) and (pointer: fine) {
  :is(body.customer-mode, body.pro-mode .salon-home-editor-canvas) .salon-profile-book-button:not(:disabled):hover {
    background: var(--rl-violet-hover);
    transform: translateY(-1px);
  }
}

/* ---------- My Hair ---------- */

.customer-day-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--rl-violet);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.customer-day-pill.is-soft {
  color: var(--rl-violet-ink);
  background: var(--rl-violet-soft);
}

body.me-workspace-mode .me-rail-footer {
  gap: 0;
}

/* Overview: next appointment with the salon photo beside it. */
body.me-workspace-mode .me-booking-feature.has-appointment {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 30%);
  min-height: 0;
  border: 1px solid #ebe4fb;
  background: linear-gradient(115deg, #f4f0fd 0%, #fff 62%);
}

body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-copy {
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 2.1vw, 28px);
}

body.me-workspace-mode .me-feature-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.me-workspace-mode .me-feature-heading .me-feature-label {
  color: var(--rl-violet-ink);
}

body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-copy h2 {
  margin: 0;
}

body.me-workspace-mode .me-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

body.me-workspace-mode .me-feature-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3b3446;
  font-size: 13.5px;
  font-weight: 500;
}

body.me-workspace-mode .me-feature-meta .icon {
  width: 16px;
  height: 16px;
  color: #8c8597;
}

body.me-workspace-mode .me-feature-facts {
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  gap: 0;
  border: 1px solid #ece8f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}

body.me-workspace-mode .me-feature-facts > span {
  display: grid;
  gap: 1px;
  padding: 9px 16px;
}

body.me-workspace-mode .me-feature-facts > span + span {
  border-left: 1px solid #ece8f2;
}

body.me-workspace-mode .me-feature-facts small {
  color: #6b6478;
  font-size: 11px;
  font-weight: 600;
}

body.me-workspace-mode .me-feature-facts b {
  color: #17131f;
  font-size: 13px;
  font-weight: 700;
}

body.me-workspace-mode .me-booking-feature.has-appointment .button-row {
  align-items: center;
}

body.me-workspace-mode .me-feature-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #efe9f7;
}

body.me-workspace-mode .me-feature-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--rl-ease);
}

body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  width: 86px;
  gap: 1px;
  padding: 10px 0 11px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px -14px rgba(23, 19, 31, 0.45);
}

body.me-workspace-mode .me-feature-media:not(:has(> img)) .me-feature-date {
  inset: 0;
  width: auto;
  place-content: center;
  border-radius: 0;
  background: #efe9f7;
  box-shadow: none;
}

body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-date span {
  color: var(--rl-violet-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-date strong {
  margin: 0;
  color: #17131f;
  font-size: 32px;
  letter-spacing: -0.04em;
}

body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-date b {
  color: #6b6478;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: none;
}

@media (hover: hover) and (pointer: fine) {
  body.me-workspace-mode .me-booking-feature.has-appointment:hover .me-feature-media > img {
    transform: scale(1.04);
  }
}

/* Overview: featured services in place of the old profile checklist. */
body.me-workspace-mode .me-featured-services {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 1.9vw, 24px);
  border: 1px solid var(--hair-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 6px #33244a03;
}

body.me-workspace-mode .me-service-list {
  display: grid;
}

body.me-workspace-mode .me-service-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

body.me-workspace-mode .me-service-row + .me-service-row {
  border-top: 1px solid var(--hair-line);
}

body.me-workspace-mode .me-service-row img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

body.me-workspace-mode .me-service-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.me-workspace-mode .me-service-row strong {
  overflow: hidden;
  color: #17131f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.me-workspace-mode .me-service-row span {
  color: #6b6478;
  font-size: 12px;
}

body.me-workspace-mode .me-service-book {
  min-width: 0;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--rl-violet-ink);
  background: var(--rl-violet-soft);
  font-size: 12px;
  font-weight: 720;
}

@media (hover: hover) and (pointer: fine) {
  body.me-workspace-mode .me-service-book:hover {
    color: #fff;
    background: var(--rl-violet);
  }
}

/* Overview: the AI style studio card shows the style switcher. */
body.me-workspace-mode .me-looks-feature:has(> .me-ai-empty-visual) {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

body.me-workspace-mode .me-looks-feature > .me-ai-empty-visual {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 210px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.me-workspace-mode .me-looks-feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--hair-line);
}

body.me-workspace-mode .me-looks-feature-footer .eyebrow {
  margin: 0 0 3px;
}

body.me-workspace-mode .me-looks-feature-footer h2 {
  margin: 0;
  color: #17131f;
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

/* Appointments: Today / Tomorrow and a photo that never stretches the card. */
body.me-workspace-mode .customer-appointment-feature-heading {
  flex-wrap: wrap;
}

body.me-workspace-mode .customer-appointment-feature-date {
  gap: 2px;
}

body.me-workspace-mode .customer-appointment-feature-day {
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--rl-violet-ink);
  background: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The brand gradient, mint into violet, a shade deeper so white reads on
   it, and not the violet of Manage appointment beside it. */
body.me-workspace-mode .customer-appointment-feature.is-soon .customer-appointment-feature-date {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(165deg, #45c9a3 0%, #7486ee 55%, #8e5cec 100%);
  text-shadow: 0 1px 2px rgba(29, 24, 48, .28);
}

body.me-workspace-mode .customer-appointment-feature.is-soon .customer-appointment-feature-date :is(span, small, strong, b, i) {
  color: #fff;
}

body.me-workspace-mode .customer-appointment-feature.is-soon .customer-appointment-feature-day { text-shadow: none; }

/* The one-line date is for phones. */
.customer-appointment-feature-fulldate { display: none; }

@media (min-width: 769px) {
  body.me-workspace-mode .customer-appointment-feature > .customer-appointment-map {
    position: relative;
    min-height: 100%;
  }

  body.me-workspace-mode .customer-appointment-feature > .customer-appointment-map .customer-appointment-salon-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature {
    grid-template-columns: 84px minmax(0, 1fr) minmax(180px, 26%);
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-copy {
    gap: 8px;
    padding: 18px 20px;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-copy h2 {
    font-size: 19px;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-date strong {
    font-size: 34px;
  }
}

/* Notifications: unread rows use a dot instead of a left bar. */
body.me-workspace-mode .customer-notification-row.is-unread {
  position: relative;
}

body.me-workspace-mode .customer-notification-row.is-unread::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--rl-violet);
}

/* Chats: tighter rows, header and composer. */
body.me-workspace-mode .customer-chats-layout {
  grid-template-columns: minmax(230px, 27%) minmax(0, 1fr);
}

body.me-workspace-mode .customer-chat-list > header {
  padding: 16px 14px 10px;
}

body.me-workspace-mode .customer-chats .customer-chat-salon-row {
  min-height: 60px !important;
  gap: 10px;
  margin: 1px 0;
  padding: 8px 10px;
}

body.me-workspace-mode .customer-chat-avatar {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

body.me-workspace-mode .customer-chat-room-header {
  min-height: 60px;
  padding: 10px 18px;
}

body.me-workspace-mode .customer-chat-stream.appointment-message-thread article {
  padding: 8px 12px 7px;
  border-radius: 16px;
}

body.me-workspace-mode .customer-chat-stream.appointment-message-thread article.customer:not(.is-failed) {
  border-color: transparent;
  color: #fff;
  background: var(--rl-violet);
}

body.me-workspace-mode .customer-chat-stream.appointment-message-thread article.customer:not(.is-failed) :is(p, time, span) {
  color: #fff;
}

body.me-workspace-mode .customer-chat-composer.appointment-message-composer {
  gap: 6px;
  padding: 8px 14px 12px;
}

body.me-workspace-mode .customer-chat-unread,
body.me-workspace-mode .customer-chat-unread-badge {
  border-radius: 999px;
  background: var(--rl-violet);
}

/* Salons (pro): the salon card leads with its photo and a dominant
   "Open dashboard" panel. */
body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-primary {
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-avatar {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: 0;
  font-size: 2.4rem;
}

body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-copy {
  align-content: center;
  padding: 22px 26px;
}

body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-copy h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 780;
  letter-spacing: -0.045em;
}

/* Open dashboard is an ordinary button, the size of Admin Dashboard. */
body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-open {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: end;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0 24px 0 0;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--rl-violet);
  box-shadow: 0 10px 22px -14px var(--rl-violet-shadow);
}

body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-open .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-open:not(:disabled):hover {
    background: var(--rl-violet-hover);
    transform: translateY(-1px);
  }
}

/* The rating sits above the name, and the address is always shown whole. */
body.me-workspace-mode .me-salons-view .pro-account-salon-copy > .pro-account-salon-rating {
  justify-self: start;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  color: #17131f;
  background: var(--rl-violet-soft);
  font-size: 12.5px;
  font-weight: 700;
}

body.me-workspace-mode .me-salons-view .pro-account-salon-copy > p {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

@media (max-width: 900px) {
  body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-avatar {
    min-height: 170px;
  }

  body.me-workspace-mode .me-salons-view .pro-account-salon-card.is-expanded .pro-account-salon-open {
    justify-self: start;
    margin: 0 26px 20px;
  }
}

/* My Hair sub-tab changes: a clearer rise than before. */
@keyframes customerSurfaceEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- The AI style switcher ---------- */

.tryon-style-switcher {
  position: relative;
  min-width: 0;
}

.tryon-style-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #fff4ee 0%, transparent 60%),
    linear-gradient(160deg, #f6efe8 0%, #efe6fb 100%);
}

.tryon-style-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  clip-path: inset(0 100% 0 0);
  animation: tryonStyleLook 12.5s linear infinite;
  animation-delay: calc(var(--look, 0) * 2.5s - 1.2s);
}

.tryon-style-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 3px;
  background: linear-gradient(180deg, transparent, #fff 20%, #fff 80%, transparent);
  box-shadow: 0 0 18px 6px rgba(163, 116, 250, 0.55);
  opacity: 0;
  animation: tryonStyleScan 2.5s var(--rl-ease) infinite;
  animation-delay: -1.2s;
  pointer-events: none;
}

.tryon-style-chips {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  height: 30px;
  pointer-events: none;
}

.tryon-style-chips span {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 19, 31, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  animation: tryonStyleChip 12.5s var(--rl-ease) infinite;
  animation-delay: calc(var(--look, 0) * 2.5s - 1.2s);
}

.tryon-style-chips .icon {
  width: 13px;
  height: 13px;
  color: #cdb8ff;
}

@keyframes tryonStyleLook {
  0% {
    z-index: 2;
    clip-path: inset(0 100% 0 0);
  }
  9% {
    z-index: 2;
    clip-path: inset(0 0 0 0);
  }
  20% {
    z-index: 2;
    clip-path: inset(0 0 0 0);
  }
  20.01% {
    z-index: 1;
    clip-path: inset(0 0 0 0);
  }
  29% {
    z-index: 1;
    clip-path: inset(0 0 0 0);
  }
  29.01%,
  100% {
    z-index: 0;
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes tryonStyleScan {
  0% {
    left: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  44% {
    left: 100%;
    opacity: 1;
  }
  50%,
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes tryonStyleChip {
  0%,
  5% {
    opacity: 0;
    transform: translateY(6px);
  }
  10%,
  19% {
    opacity: 1;
    transform: none;
  }
  23%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.tryon-style-switcher.is-card,
.tryon-style-switcher.is-card .tryon-style-stage {
  position: absolute;
  inset: 0;
}

.tryon-style-switcher.is-card .tryon-style-stage img {
  object-position: center 26%;
}

.me-empty-showcase-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 18px;
}

.tryon-style-switcher.is-showcase,
.tryon-style-switcher.is-showcase .tryon-style-stage {
  position: absolute;
  inset: 0;
}

body.me-workspace-mode .me-empty-showcase:has(> .me-empty-showcase-visual) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--hair-line);
  background: linear-gradient(160deg, #f4f0fd 0%, #fff 75%);
}

body.me-workspace-mode .me-empty-showcase:has(> .me-empty-showcase-visual) > div:last-child {
  align-content: center;
  padding: clamp(24px, 3vw, 40px);
}

body.me-workspace-mode .me-empty-showcase:has(> .me-empty-showcase-visual) .me-empty-showcase-visual {
  border-radius: 0;
}

/* ---------- AI Try-on page ---------- */

body.customer-mode .tryon-coming-soon .tryon-coming-soon-copy h1 {
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
  font-weight: 790;
  letter-spacing: -0.055em;
}

.tryon-coming-soon-badge {
  color: var(--rl-violet-ink);
  background: #fff;
  border-color: var(--rl-violet-soft-2);
}

.tryon-coming-soon-visual figure.tryon-style-switcher {
  animation: none;
}

.tryon-coming-soon-visual figure.tryon-style-switcher .tryon-style-stage {
  aspect-ratio: 4 / 5;
  height: auto;
}

.tryon-coming-soon-visual figure.tryon-style-switcher .tryon-style-chips {
  bottom: auto;
  top: 14px;
  left: 14px;
}

.tryon-coming-soon-visual figure.tryon-style-switcher .tryon-style-stage img {
  height: 100%;
}

.tryon-coming-soon-details article {
  transition:
    transform 260ms var(--rl-ease),
    box-shadow 260ms ease,
    border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .tryon-coming-soon-details article:hover {
    border-color: var(--rl-violet-line);
    box-shadow: 0 18px 36px -24px var(--rl-violet-shadow);
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  /* The phone tab bar and header chip shared the Pro mint; customers get violet. */
  body.customer-mode .customer-shell .mobile-tabbar .nav-link.active {
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
  }

  body.customer-mode .customer-shell .mobile-tabbar .nav-link.active .icon {
    color: var(--rl-violet);
  }

  body.customer-mode .customer-shell .mobile-tabbar {
    border-top-color: #ece6f7;
    box-shadow: 0 -5px 25px rgba(60, 30, 140, 0.07);
  }

  body.me-workspace-mode .pro-account-salons > header .me-count {
    align-self: flex-start;
  }

  body.customer-mode .customer-mobile-header-actions a {
    border-color: #e7dffa;
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
  }

  body.customer-mode .tryon-coming-soon-visual figure.tryon-style-switcher {
    width: 70%;
  }

  body.me-workspace-mode .me-booking-feature.has-appointment {
    grid-template-columns: minmax(0, 1fr);
  }

  body.me-workspace-mode .me-feature-media {
    order: -1;
    min-height: 170px;
  }

  body.me-workspace-mode .me-booking-feature.has-appointment .me-feature-date {
    grid-column: auto;
    grid-row: auto;
    border-left: 0;
  }

  body.me-workspace-mode .me-feature-facts > span {
    padding: 8px 12px;
  }

  body.me-workspace-mode .me-empty-showcase:has(> .me-empty-showcase-visual) {
    grid-template-columns: minmax(0, 1fr);
  }

  .me-empty-showcase-visual {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tryon-style-stage img,
  .tryon-style-chips span {
    animation: none;
  }

  .tryon-style-stage img:first-child {
    clip-path: none;
  }

  .tryon-style-chips span:first-child {
    opacity: 1;
  }

  .tryon-style-scan {
    display: none;
  }

  body.customer-mode :is(.solid-button, .outline-button, .ghost-button, .icon-button, .nav-link, .directory-splitter > span) {
    transition: none !important;
  }
}

/* ---------- My Hair, round 2: the remaining tabs ---------- */

/* Appointments: later visits are compact rows on one grid, so every column
   lines up whatever the row holds. */
.customer-appointment-feature-daytag {
  display: none;
}

@media (min-width: 769px) {
  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-list {
    display: grid;
    gap: 0;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature {
    grid-template-columns: 64px max-content minmax(0, 1fr) 200px 150px;
    grid-template-areas:
      "date name tag when status"
      "date meta meta when status"
      "date actions actions actions actions";
    align-items: center;
    column-gap: 18px;
    row-gap: 6px;
    min-height: 0;
    padding: 20px 8px 22px;
    border: 0;
    border-bottom: 1px solid var(--hair-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature:last-child {
    border-bottom: 0;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-copy {
    display: contents;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-date {
    grid-area: date;
    align-self: start;
    width: 64px;
    height: 70px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature.is-soon .customer-appointment-feature-date {
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-date :is(span, small) {
    color: var(--rl-violet-ink);
    font-size: 10px;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-date strong {
    margin: 1px 0;
    color: #17131f;
    font-size: 22px;
    letter-spacing: -0.03em;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-day,
  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-copy > p,
  body.me-workspace-mode .me-later-appointments .customer-appointment-policy-timeline,
  body.me-workspace-mode .me-later-appointments .customer-appointment-feature > :is(.customer-appointment-map, .customer-appointment-map-fallback) {
    display: none;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-copy h2 {
    grid-area: name;
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.02em;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-daytag {
    grid-area: tag;
    display: inline-flex;
    justify-self: start;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
    font-size: 11px;
    font-weight: 750;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-meta {
    grid-area: meta;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-when {
    grid-area: when;
    margin: 0;
    color: #3b3446;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature-heading {
    grid-area: status;
  }

  body.me-workspace-mode .me-later-appointments .button-row {
    grid-area: actions;
    margin: 8px 0 0;
  }

}

/* Chats: three columns. The conversation uses its full width, appointment
   events are single compact rows, and the right column shows the salon, the
   next visit and past visits there. */
@media (min-width: 1101px) {
  body.me-workspace-mode .customer-chats-layout.has-details {
    grid-template-columns: minmax(240px, 24%) minmax(0, 1fr) minmax(280px, 300px);
  }
}

body.me-workspace-mode .customer-chat-stream.appointment-message-thread {
  gap: 10px;
  padding: 18px 24px;
  background: #faf9fc;
}

body.me-workspace-mode .customer-chat-stream.appointment-message-thread article {
  max-width: min(68%, 560px);
}

body.me-workspace-mode .customer-chat-date {
  margin: 6px 0 2px;
}

body.me-workspace-mode .customer-chat-appointment {
  grid-template-columns: 32px minmax(0, 1fr) auto 14px;
  gap: 12px;
  width: min(100%, 620px);
  padding: 9px 12px;
  border-color: #ebe6f3;
  border-radius: 14px;
}

body.me-workspace-mode .customer-chat-appointment > span:first-child {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--rl-violet);
  background: var(--rl-violet-soft);
}

body.me-workspace-mode .customer-chat-appointment > span:first-child .icon {
  width: 16px;
  height: 16px;
}

body.me-workspace-mode .customer-chat-appointment-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}

body.me-workspace-mode .customer-chat-appointment-copy small {
  flex-basis: 100%;
}

body.me-workspace-mode .customer-chat-appointment-copy strong {
  font-size: 13px;
}

body.me-workspace-mode .customer-chat-appointment-copy > span {
  font-size: 12px;
}

body.me-workspace-mode .customer-chat-appointment-copy > span + span::before {
  content: "· ";
}

.customer-chat-details {
  display: none;
}

@media (min-width: 1101px) {
  body.me-workspace-mode .customer-chat-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    border-left: 1px solid var(--hair-line);
    background: #fcfbfe;
    scrollbar-width: thin;
  }
}

.customer-chat-details-cover {
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--rl-violet-soft);
}

.customer-chat-details-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-chat-details-cover > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--rl-violet-ink);
  font-size: 36px;
  font-weight: 780;
}

.customer-chat-details-cover > div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 36px 14px 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(23, 19, 31, 0.72));
}

.customer-chat-details-cover > div strong {
  font-size: 16px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.customer-chat-details-cover > div small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.customer-chat-details-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.customer-chat-details-actions > button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 0;
  padding: 10px 4px;
  border: 1px solid #ece8f3;
  border-radius: 14px;
  color: #3b3446;
  background: #fff;
  font-size: 11.5px;
  font-weight: 650;
}

.customer-chat-details-actions > button .icon {
  width: 17px;
  height: 17px;
  color: var(--rl-violet);
}

@media (hover: hover) and (pointer: fine) {
  .customer-chat-details-actions > button:hover {
    border-color: var(--rl-violet-line);
    color: var(--rl-violet-ink);
    background: var(--rl-violet-soft);
  }
}

.customer-chat-details-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ece8f3;
  border-radius: 16px;
  background: #fff;
}

.customer-chat-details-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-chat-details-section > header > span {
  color: var(--rl-violet-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.customer-chat-details-section > header > small {
  color: #6b6478;
  font-size: 12px;
  font-weight: 650;
}

.customer-chat-details-next {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.customer-chat-details-day {
  display: grid;
  width: 50px;
  height: 54px;
  place-content: center;
  justify-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--rl-violet);
}

.customer-chat-details-day small {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.customer-chat-details-day strong {
  font-size: 20px;
  font-weight: 780;
  line-height: 1;
}

.customer-chat-details-day.is-small {
  width: 42px;
  height: 44px;
  color: var(--rl-violet-ink);
  background: var(--rl-violet-soft);
}

.customer-chat-details-day.is-small strong {
  color: #17131f;
  font-size: 17px;
}

.customer-chat-details-next > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-chat-details-next > div strong {
  color: #17131f;
  font-size: 15px;
  font-weight: 740;
}

.customer-chat-details-next > div span {
  color: #3b3446;
  font-size: 12.5px;
  font-weight: 600;
}

.customer-chat-details-next > div small {
  color: #6b6478;
  font-size: 12px;
}

.customer-chat-details-section > .solid-button {
  width: 100%;
  min-height: 38px;
  font-size: 12.5px;
}

.customer-chat-details-history {
  display: grid;
}

.customer-chat-details-history > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 12px;
  color: #17131f;
  background: transparent;
  text-align: left;
}

.customer-chat-details-history > button + button {
  border-top: 1px solid #f1eef6;
  border-radius: 0;
}

.customer-chat-details-history > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.customer-chat-details-history strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-chat-details-history small {
  color: #6b6478;
  font-size: 11.5px;
}

.customer-chat-details-history .status-badge {
  font-size: 10.5px;
}

@media (hover: hover) and (pointer: fine) {
  .customer-chat-details-history > button:hover {
    background: #faf8ff;
  }
}

/* Settings: every field in a group lines up on the same row rhythm. */
body.me-workspace-mode .me-settings-group .profile-grid {
  align-items: start;
}

body.me-workspace-mode .me-settings-group .profile-grid > label,
body.me-workspace-mode .me-settings-group .verified-phone-setting > label {
  display: grid;
  gap: 8px;
  align-content: start;
}

body.me-workspace-mode .me-settings-group .profile-grid :is(input, select) {
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
}

body.me-workspace-mode .me-settings-group .verified-phone-setting {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

body.me-workspace-mode .me-settings-group .verified-phone-setting > button {
  width: auto;
  min-height: 46px;
  height: 46px;
  padding: 0 14px;
  white-space: nowrap;
}

body.me-workspace-mode .me-language-settings .language-picker {
  width: 100%;
  max-width: none;
}

/* Saved salons: photo-led rows. */
body.me-workspace-mode .me-saved-list {
  display: grid;
}

body.me-workspace-mode .me-saved-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

body.me-workspace-mode .me-saved-row + .me-saved-row {
  border-top: 1px solid var(--hair-line);
}

body.me-workspace-mode .me-saved-photo {
  position: relative;
  width: 150px;
  height: 104px;
  overflow: hidden;
  border-radius: 16px;
}

body.me-workspace-mode .me-saved-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--rl-ease);
}

body.me-workspace-mode .me-saved-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--rl-violet);
  background: #fff;
}

body.me-workspace-mode .me-saved-heart .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

body.me-workspace-mode .me-saved-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.me-workspace-mode .me-saved-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.me-workspace-mode .me-saved-title strong {
  color: #17131f;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

body.me-workspace-mode .me-saved-title span {
  color: #17131f;
  font-size: 13px;
  font-weight: 700;
}

body.me-workspace-mode .me-saved-title span.is-new {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--rl-violet-ink);
  background: var(--rl-violet-soft);
  font-size: 11px;
}

body.me-workspace-mode .me-saved-copy p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #6b6478;
  font-size: 13px;
}

body.me-workspace-mode .me-saved-copy p .icon {
  width: 14px;
  height: 14px;
  color: #8c8597;
}

body.me-workspace-mode .me-saved-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.me-workspace-mode .me-saved-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  color: #6e6577;
  background: #f1f0f3;
  font-size: 12px;
  font-weight: 650;
}

body.me-workspace-mode .me-saved-tags span:first-child {
  color: var(--rl-violet-ink);
  background: var(--rl-violet-soft);
}

body.me-workspace-mode .me-saved-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

body.me-workspace-mode .me-saved-actions small {
  color: #6b6478;
  font-size: 13px;
}

body.me-workspace-mode .me-saved-actions > div {
  display: flex;
  gap: 8px;
}

@media (hover: hover) and (pointer: fine) {
  body.me-workspace-mode .me-saved-row:hover .me-saved-photo img {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  body.me-workspace-mode .me-saved-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  body.me-workspace-mode .me-saved-photo {
    width: 104px;
    height: 88px;
  }

  body.me-workspace-mode .me-saved-actions {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

/* Payments: a receipt tile, the salon and the amount on one line. */
body.me-workspace-mode .me-dashboard .customer-payment-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 110px 120px;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
}

body.me-workspace-mode .customer-payment-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--rl-violet);
  background: var(--rl-violet-soft);
}

body.me-workspace-mode .customer-payment-icon .icon {
  width: 18px;
  height: 18px;
}

body.me-workspace-mode .customer-payment-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.me-workspace-mode .customer-payment-row > div strong {
  color: #17131f;
  font-size: 14px;
  font-weight: 700;
}

body.me-workspace-mode .customer-payment-row > div span {
  color: #6b6478;
  font-size: 12px;
}

body.me-workspace-mode .customer-payment-row > b {
  color: #17131f;
  font-size: 15px;
  font-weight: 720;
  text-align: right;
}

body.me-workspace-mode .customer-payment-row > .status-badge {
  justify-self: end;
  text-transform: capitalize;
}

@media (max-width: 768px) {
  body.me-workspace-mode .me-dashboard .customer-payment-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  body.me-workspace-mode .customer-payment-row > .status-badge {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* Salons workspace: links under the name, the summary as tiles and the
   dashboard shortcuts. */
body.me-workspace-mode .pro-account-salon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

body.me-workspace-mode .pro-account-salon-rating {
  margin-right: 6px;
  color: #17131f;
  font-size: 13px;
  font-weight: 700;
}

body.me-workspace-mode .pro-account-salon-rating small {
  color: #6b6478;
  font-weight: 500;
}

body.me-workspace-mode .pro-account-salon-links .outline-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

body.me-workspace-mode .pro-account-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.me-workspace-mode .pro-account-shortcut {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 1px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--hair-line);
  border-radius: 16px;
  color: #17131f;
  background: #fff;
  text-align: left;
}

body.me-workspace-mode .pro-account-shortcut > span {
  display: grid;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--rl-violet);
  background: var(--rl-violet-soft);
}

body.me-workspace-mode .pro-account-shortcut > span .icon {
  width: 18px;
  height: 18px;
}

body.me-workspace-mode .pro-account-shortcut strong {
  font-size: 14px;
  font-weight: 720;
}

body.me-workspace-mode .pro-account-shortcut small {
  color: #6b6478;
  font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  body.me-workspace-mode .pro-account-shortcut:not(:disabled):hover {
    border-color: var(--rl-violet-line);
    box-shadow: 0 12px 26px -18px var(--rl-violet-shadow);
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  body.me-workspace-mode .pro-account-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Settings: the photo badge was the Pro green. */
body.me-workspace-mode .settings-photo-control b {
  background: var(--rl-violet);
}

/* Appointments: later rows keep dark text on the light date tile. */
@media (min-width: 769px) {
  body.me-workspace-mode .me-later-appointments .customer-appointment-feature.is-soon .customer-appointment-feature-date :is(span, small) {
    color: var(--rl-violet-ink);
  }

  body.me-workspace-mode .me-later-appointments .customer-appointment-feature.is-soon .customer-appointment-feature-date strong {
    color: #17131f;
  }
}

/* Payments: dates read lighter than the title. */
body.me-workspace-mode .customer-payment-row > div span {
  font-weight: 500;
}

/* History: the card actions sit in one compact row. */
body.me-workspace-mode .me-history-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.me-workspace-mode .me-history-card-actions > :is(button, a, span) {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

body.me-workspace-mode .me-history-card-actions > .ghost-button {
  border: 1px solid #ddd5ea;
  color: #3b3446;
  background: #fff;
}

/* Chats fills the workspace instead of floating in a wide margin. */
@media (min-width: 1041px) {
  body.me-workspace-mode .me-workspace:has(> .customer-chats) {
    padding: 18px;
  }
}

/* Appointments: one button language. Every action is the same height, padding
   and weight; only Manage appointment is filled. */
body.me-workspace-mode .customer-appointment-feature .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.me-workspace-mode .me-dashboard .customer-appointment-feature .button-row > :is(.solid-button, .outline-button) {
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

body.me-workspace-mode .me-dashboard .customer-appointment-feature .button-row > .outline-button {
  border: 1px solid #ddd5ea;
  color: #3b3446;
  background: #fff;
  box-shadow: none;
}

body.me-workspace-mode .me-dashboard .customer-appointment-feature .button-row .icon {
  display: none;
}

/* ---------- Sign in and sign up: one design for customers and Pro ---------- */

/* The customer pages take the Pro sign-in design: Figtree, the same top
   buttons, the same dark primary button and the same brand footprint. Only
   the page colour and the photo tint differ. */
.auth-screen {
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-screen,
.pro-auth-screen,
.auth-workspace,
.pro-auth-workspace {
  transition:
    background-color 420ms ease,
    color 420ms ease;
}

.auth-screen .auth-workspace-top :is(.ghost-button, .outline-button) {
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #e6e1ee;
  border-radius: 10px;
  color: #3b3446;
  background: #fff;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1;
}

body.auth-screen-mode .auth-screen .auth-panel .solid-button.customer:not(.danger) {
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #1d1826;
  border-radius: 14px;
  color: #fff;
  background: #1d1826;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.auth-screen-mode .auth-screen .auth-panel .solid-button.customer:not(.danger):not(:disabled):hover {
    border-color: #2c2537;
    background: #2c2537;
    box-shadow: none;
  }
}

/* The wordmark takes the footprint of the Pro brand chip. */
body.auth-screen-mode .auth-screen .shared-auth-visual .customer-auth-brand .customer-brand-wordmark {
  width: auto;
  max-width: none;
  height: 42px;
}

/* The form keeps its place: it is pinned near the top instead of centred, so
   a taller sign-up form only grows downward and nothing above it shifts. */
@media (min-width: 821px) {
  .auth-screen .auth-panel[data-auth-surface="page"],
  .pro-auth-screen .pro-auth-panel {
    align-self: start;
    margin-top: clamp(32px, 11vh, 140px);
  }
}

/* Sign-in pages always keep room for the scrollbar. A taller form (sign-up,
   Pro role step) used to bring the scrollbar in and narrow the whole page by
   its width a moment after the switch. */
html:has(body.auth-screen-mode) {
  scrollbar-gutter: stable;
}

/* The sign-in form never scrolls on its own (the page does), so it reserves
   no scrollbar gutter. It used to: its content was 15px narrower than the
   panel, and the height animation's temporary clip dropped that gutter, so
   every switch showed the form 15px wider and then narrowed it again. */
.auth-screen .auth-panel[data-auth-surface],
.pro-auth-screen .pro-auth-panel {
  overflow: visible;
  scrollbar-gutter: auto;
}

/* ---------------------------------------------------------------------------
   Salon names read as titles on Discover and Salons; the services heading on a
   salon page carries the same weight.
--------------------------------------------------------------------------- */
.discover-salon-card h3,
.discover-salon-card .discover-card-title-link,
.directory-salon-heading h3 {
  font-weight: 700;
}
#site-services .salon-profile-section-heading h2 {
  font-weight: 700;
}

/* The salon page map: a map without Mapbox's pin, and a pin of our own in the
   middle that names the salon. */
.salon-profile-map-frame {
  position: relative;
  overflow: hidden;
}
.salon-profile-map-frame .mapbox-static-preview {
  display: block;
  object-fit: cover;
}
.salon-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.salon-map-pin-head {
  position: absolute;
  left: -23px;
  /* Turned 45 degrees, the square's sharp corner lands 9px below its box. */
  bottom: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 4px;
  background: linear-gradient(145deg, var(--rl-violet) 0%, var(--rl-violet-deep) 100%);
  box-shadow: 0 12px 24px -8px rgba(82, 54, 179, 0.6), 0 2px 6px rgba(23, 19, 31, 0.18);
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
  animation: salon-map-pin-drop 620ms var(--rl-ease) both;
}
.salon-map-pin-head .icon {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: currentColor;
  transform: rotate(45deg);
}
.salon-map-pin-pulse {
  position: absolute;
  left: -14px;
  top: -8px;
  width: 28px;
  height: 16px;
  border-radius: 50%;
  background: rgba(106, 72, 208, 0.28);
  animation: salon-map-pin-pulse 2.4s ease-out 700ms infinite;
}
.salon-map-pin-label {
  position: absolute;
  bottom: 72px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #17131f;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(23, 19, 31, 0.5), 0 0 0 1px rgba(145, 107, 232, 0.18);
  animation: salon-map-pin-label 520ms var(--rl-ease) 260ms both;
}
@keyframes salon-map-pin-drop {
  from { opacity: 0; translate: 0 -18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes salon-map-pin-label {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes salon-map-pin-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .salon-map-pin-head, .salon-map-pin-label, .salon-map-pin-pulse { animation: none; }
}

/* Booking policies: three cards, each with its own icon. */
.salon-profile-policy-card {
  gap: 16px;
  margin-top: 18px;
  padding: 22px 22px 22px;
  border: 1px solid #ebe6f3;
  border-radius: 20px;
  background: #fff;
}
.salon-profile-policy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.salon-profile-policy-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #17131f;
}
.salon-profile-policy-head p {
  margin: 0;
  font-size: 0.8rem;
  color: #7a7285;
}
.salon-profile-policy-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.salon-profile-policy-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: var(--rl-violet-soft);
  transition: transform 220ms var(--rl-ease), box-shadow 220ms var(--rl-ease);
}
.salon-profile-policy-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -20px var(--rl-violet-shadow);
}
.salon-profile-policy-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.salon-profile-policy-group > header strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #17131f;
}
.salon-profile-policy-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #fff;
  color: var(--rl-violet-deep);
  box-shadow: 0 1px 0 rgba(145, 107, 232, 0.18);
}
.salon-profile-policy-icon .icon {
  width: 17px;
  height: 17px;
}
.salon-profile-policy-card .salon-profile-policy-group dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.salon-profile-policy-card .salon-profile-policy-group dl > div {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(145, 107, 232, 0.16);
}
.salon-profile-policy-card .salon-profile-policy-group dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.salon-profile-policy-card .salon-profile-policy-group dt {
  color: var(--rl-violet-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.salon-profile-policy-card .salon-profile-policy-group dd {
  margin: 0;
  color: #2a2432;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .salon-profile-policy-groups { grid-template-columns: minmax(0, 1fr); }
}

/* Salon page: the name in the side panel and each service category read as
   titles. */
.salon-profile-book-card-heading h2,
.salon-profile-service-group > h3 {
  font-weight: 700;
}

/* Text rising in as the salon page is scrolled (customer-motion.js). */
.rl-text-rise {
  opacity: 0;
  transform: translateY(16px);
}
.rl-text-rise.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 520ms var(--rl-ease) var(--rl-rise-delay, 0ms),
    transform 620ms var(--rl-ease) var(--rl-rise-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .rl-text-rise { opacity: 1; transform: none; }
}

/* ===========================================================================
   Booking flow, pared back: fewer words, one look per element, and items that
   rise in the first time they appear (customer-motion.js).
   ======================================================================== */
body.booking-workspace-mode .booking-main { position: relative; }

/* Service categories: a sticky row of chips that jump to their group. */
body.booking-workspace-mode .booking-category-chips {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  gap: 8px;
  margin: 2px -4px 8px;
  padding: 10px 4px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(to bottom, var(--rl-booking-bg, #f7f7fa) 78%, rgba(247, 247, 250, 0));
}
body.booking-workspace-mode .booking-category-chips::-webkit-scrollbar { display: none; }
body.booking-workspace-mode .booking-category-chip {
  flex: 0 0 auto;
  min-height: 0;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e4e0ec;
  border-radius: 999px;
  background: #fff;
  color: #2a2432;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms var(--rl-ease), border-color 180ms var(--rl-ease), color 180ms var(--rl-ease), transform 180ms var(--rl-ease);
}
body.booking-workspace-mode .booking-category-chip:hover { border-color: var(--rl-violet-line); transform: translateY(-1px); }
body.booking-workspace-mode .booking-category-chip.is-active { border-color: #17131f; background: #17131f; color: #fff; }
body.booking-workspace-mode .booking-service-group { scroll-margin-top: 72px; }

/* "N selected services" pills that take the customer to what they chose. */
body.booking-workspace-mode .booking-selected-jump {
  position: absolute;
  left: 50%;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--rl-violet);
  border-radius: 999px;
  background: #fff;
  color: var(--rl-violet-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 10px 22px -12px var(--rl-violet-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 200ms var(--rl-ease), transform 260ms var(--rl-ease), background-color 160ms var(--rl-ease);
  cursor: pointer;
}
body.booking-workspace-mode .booking-selected-jump.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
body.booking-workspace-mode .booking-selected-jump:hover { background: var(--rl-violet-soft); }
body.booking-workspace-mode .booking-selected-jump svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Stylist cards: photo, name, price. */
body.booking-workspace-mode .booking-professional-info { gap: 4px; }
body.booking-workspace-mode .booking-professional-info strong { font-size: 1rem; font-weight: 700; }
body.booking-workspace-mode .booking-professional-info [data-professional-price] { font-size: 0.875rem; font-weight: 600; color: var(--rl-violet-deep); }
body.booking-workspace-mode .booking-professional-option-shell { transition: transform 220ms var(--rl-ease), box-shadow 220ms var(--rl-ease); }
body.booking-workspace-mode .booking-professional-option-shell:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgba(23, 19, 31, 0.45); }

/* Date and time. */
body.booking-workspace-mode .booking-professional-time-grid {
  display: grid;
  /* auto-fill keeps empty columns, so a lone evening time stays one button wide. */
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
  gap: 8px;
}
body.booking-workspace-mode .booking-professional-time-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #e4e0ec;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: border-color 160ms var(--rl-ease), background-color 160ms var(--rl-ease), transform 160ms var(--rl-ease), box-shadow 160ms var(--rl-ease);
}
body.booking-workspace-mode .booking-professional-time-grid button strong { width: 100%; text-align: center; font-size: 0.875rem; font-weight: 600; color: #2a2432; }
body.booking-workspace-mode .booking-professional-time-grid button:hover { border-color: var(--rl-violet-line); transform: translateY(-1px); }
body.booking-workspace-mode .booking-professional-time-grid button.active { border-color: var(--rl-violet); background: var(--rl-violet); box-shadow: 0 10px 20px -12px var(--rl-violet-shadow); }
body.booking-workspace-mode .booking-professional-time-grid button.active strong { color: #fff; }
body.booking-workspace-mode .booking-time-periods h4 { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8394; }
body.booking-workspace-mode .booking-time-periods section + section { margin-top: 16px; }
body.booking-workspace-mode .booking-month-day { transition: background-color 160ms var(--rl-ease), color 160ms var(--rl-ease), transform 160ms var(--rl-ease); }
body.booking-workspace-mode .booking-month-day:not(:disabled):hover { transform: translateY(-1px); }

body.booking-workspace-mode .booking-party-plan { padding: 6px 14px; border: 1px solid #ece8f3; border-radius: 16px; background: #fff; box-shadow: none; }
body.booking-workspace-mode .booking-party-plan-rows { display: flex; flex-direction: column; }
body.booking-workspace-mode .booking-party-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1eef6;
}
body.booking-workspace-mode .booking-party-plan-row:first-child { border-top: 0; }
body.booking-workspace-mode .booking-party-plan-row time { font-size: 0.8125rem; font-weight: 600; color: #8a8394; white-space: nowrap; }
body.booking-workspace-mode .booking-party-plan-row.is-scheduled time { color: var(--rl-violet-deep); }

/* Reference photos: two quiet drop zones, then the note. */
body.booking-workspace-mode .booking-photo-group {
  border: 1px solid #ece8f3;
  border-top: 1px solid #ece8f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
body.booking-workspace-mode .booking-photo-group::before { display: none; }
body.booking-workspace-mode .booking-photo-group-head h3 { font-size: 1rem; font-weight: 700; color: #17131f; }
body.booking-workspace-mode .booking-photo-dropzone {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1.5px dashed #d9d2e8;
  border-radius: 14px;
  background: #fbfaff;
  transition: border-color 180ms var(--rl-ease), background-color 180ms var(--rl-ease);
  cursor: pointer;
}
body.booking-workspace-mode .booking-photo-dropzone:hover { border-color: var(--rl-violet); background: var(--rl-violet-soft); }
body.booking-workspace-mode .booking-photo-dropzone > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
body.booking-workspace-mode .booking-photo-dropzone strong { font-size: 0.9375rem; font-weight: 700; color: #2a2432; }
body.booking-workspace-mode .booking-photo-dropzone small { font-size: 0.8125rem; color: #8a8394; }
body.booking-workspace-mode .booking-customer-note { margin-top: 18px; }
body.booking-workspace-mode .booking-customer-note-heading strong { font-size: 1rem; font-weight: 700; }

/* Review: one short payment card. */
body.booking-workspace-mode .booking-submit-policy > h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; color: #17131f; }
body.booking-workspace-mode .booking-review-deposit { gap: 16px; min-height: 0; padding: 18px; border-radius: 16px; }
body.booking-workspace-mode .booking-review-deposit { display: block; }
body.booking-workspace-mode .booking-review-deposit-copy { gap: 6px; }
body.booking-workspace-mode .booking-review-deposit-copy > span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
body.booking-workspace-mode .booking-review-deposit-copy > strong { font-size: 1.05rem; font-weight: 700; }
body.booking-workspace-mode .booking-review-deposit-copy > p { margin: 0; font-size: 0.875rem; line-height: 1.5; }

/* Summary rail: roomier, and every line said once. */
body.booking-workspace-mode .booking-summary-body { padding: 26px 26px 20px; gap: 20px; }
body.booking-workspace-mode .booking-summary-salon {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0edf5;
}
body.booking-workspace-mode .booking-summary-salon img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
body.booking-workspace-mode .booking-summary-salon > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.booking-workspace-mode .booking-summary-salon strong { font-size: 1rem; font-weight: 700; color: #17131f; }
body.booking-workspace-mode .booking-summary-salon span { font-size: 0.8125rem; font-weight: 500; color: #6f6879; }
body.booking-workspace-mode .booking-summary-salon span b { color: #17131f; font-weight: 700; }
body.booking-workspace-mode .booking-summary-salon small { display: block; overflow: hidden; font-size: 0.8125rem; font-weight: 400; color: #8a8394; white-space: nowrap; text-overflow: ellipsis; }

body.booking-workspace-mode .booking-summary-when { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid #f0edf5; }
body.booking-workspace-mode .booking-summary-when p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.9375rem; color: #2a2432; }
body.booking-workspace-mode .booking-summary-when p > span { display: inline-flex; color: #6f6879; }
body.booking-workspace-mode .booking-summary-when p .icon { width: 18px; height: 18px; }
body.booking-workspace-mode .booking-summary-when p strong { font-weight: 600; }
body.booking-workspace-mode .booking-summary-when p small { font-size: 0.8125rem; color: #8a8394; }
body.booking-workspace-mode .booking-summary-when-people { list-style: none; margin: 0 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
body.booking-workspace-mode .booking-summary-when-people li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8125rem; color: #6f6879; }

body.booking-workspace-mode .booking-summary-guests { display: flex; flex-direction: column; gap: 12px; }
body.booking-workspace-mode .booking-summary-guest { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #ece8f3; border-radius: 16px; background: #fff; box-shadow: none; }
body.booking-workspace-mode .booking-summary-guest > header { display: flex; align-items: center; gap: 8px; }
body.booking-workspace-mode .booking-summary-guest > header strong { font-size: 0.9375rem; font-weight: 700; }
body.booking-workspace-mode .booking-summary-guest-services { display: flex; flex-direction: column; gap: 10px; }
body.booking-workspace-mode .booking-summary-guest-service { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 0; border: 0; }
body.booking-workspace-mode .booking-summary-guest-service > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.booking-workspace-mode .booking-summary-guest-service b { font-size: 0.9375rem; font-weight: 600; color: #17131f; }
body.booking-workspace-mode .booking-summary-guest-service small { font-size: 0.8125rem; color: #8a8394; }
body.booking-workspace-mode .booking-summary-guest-service > strong { flex-shrink: 0; font-size: 0.9375rem; font-weight: 600; color: #17131f; }
body.booking-workspace-mode .booking-summary-selected-stylist {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #f3f0f7;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 0.8125rem;
  color: #6f6879;
}
body.booking-workspace-mode .booking-summary-selected-stylist img { width: 24px; height: 24px; border-radius: 999px; object-fit: cover; }
body.booking-workspace-mode .booking-summary-guest > footer { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f3f0f7; font-size: 0.875rem; }
body.booking-workspace-mode .booking-summary-price { padding: 16px 0 0; border-top: 1px solid #f0edf5; }
body.booking-workspace-mode .booking-summary-price > div { display: flex; justify-content: space-between; align-items: baseline; }
body.booking-workspace-mode .booking-summary-price span { font-size: 1rem; font-weight: 700; color: #17131f; }
body.booking-workspace-mode .booking-summary-price strong { font-size: 1.05rem; font-weight: 700; color: #17131f; }
body.booking-workspace-mode .booking-summary .booking-review-deposit.is-compact { margin-top: 12px; padding: 14px; gap: 12px; }
body.booking-workspace-mode .booking-summary-action { padding: 16px 26px 22px; }

@media (prefers-reduced-motion: reduce) {
  body.booking-workspace-mode .booking-category-chip,
  body.booking-workspace-mode .booking-selected-jump,
  body.booking-workspace-mode .booking-professional-time-grid button { transition: none; }
}
body.booking-workspace-mode .booking-summary-guests { padding-bottom: 0; border-bottom: 0; }
body.booking-workspace-mode .booking-summary-body > .booking-summary-progress-slot:empty { display: none; }
body.booking-workspace-mode .booking-photo-group-head { align-items: center; }
body.booking-workspace-mode .booking-photo-group-head h3 { margin: 0; }

/* ---- Booking summary, round two ------------------------------------------
   A landscape photo across the top, then name, rating and address; one
   divider, the date and time with even space on both sides; people and
   services; the total. Regular weights except names and prices. */
body.booking-workspace-mode .booking-summary { position: relative; }
body.booking-workspace-mode .booking-summary-body { padding: 30px 26px 22px; gap: 0; }
body.booking-workspace-mode .booking-summary-body > * + * { margin-top: 0; }
body.booking-workspace-mode .booking-summary-salon {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0 0 22px;
  border-bottom: 1px solid #efecf4;
}
body.booking-workspace-mode .booking-summary-salon img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: 16px !important;
  object-fit: cover;
}
body.booking-workspace-mode .booking-summary-salon > div { gap: 4px; }
body.booking-workspace-mode .booking-summary-salon strong { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
body.booking-workspace-mode .booking-summary-salon span { font-size: 0.875rem; font-weight: 400; color: #6f6879; }
body.booking-workspace-mode .booking-summary-salon span b { font-weight: 600; color: #17131f; }
body.booking-workspace-mode .booking-summary-salon small { font-size: 0.875rem; color: #8a8394; }

body.booking-workspace-mode .booking-summary-progress-slot[data-booking-summary-slot="schedule"] { margin: 0; }
body.booking-workspace-mode .booking-summary-when {
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid #efecf4;
}
body.booking-workspace-mode .booking-summary-when p { gap: 12px; font-size: 0.9375rem; font-weight: 400; color: #2a2432; }
body.booking-workspace-mode .booking-summary-when p strong,
body.booking-workspace-mode .booking-summary-when-time { font-weight: 400; color: #2a2432; }
body.booking-workspace-mode .booking-summary-when-who { flex: 1; min-width: 0; font-weight: 500; color: #17131f; }
body.booking-workspace-mode .booking-summary-when p small { font-size: 0.875rem; color: #8a8394; }
body.booking-workspace-mode .booking-summary-guests { padding-top: 22px; gap: 12px; }
body.booking-workspace-mode .booking-summary-guest { padding: 16px 18px; gap: 12px; }
body.booking-workspace-mode .booking-summary-guest-service b { font-weight: 500; }
body.booking-workspace-mode .booking-summary-guest-service > strong { font-weight: 500; }
body.booking-workspace-mode .booking-summary-guest > header strong { font-weight: 600; }
body.booking-workspace-mode .booking-summary-price { margin-top: 22px; padding-top: 20px; border-top: 1px solid #efecf4; }
body.booking-workspace-mode .booking-summary-price span,
body.booking-workspace-mode .booking-summary-price strong { font-size: 1rem; font-weight: 600; }
body.booking-workspace-mode .rl-flip-ghost { box-sizing: border-box; }

/* ---- Party plan: a bar per person on one clock ------------------------------ */
body.booking-workspace-mode .booking-party-plan.is-single { display: none; }
body.booking-workspace-mode .booking-party-plan.is-party { padding: 16px 16px 12px; }
body.booking-workspace-mode .booking-plan-axis {
  position: relative;
  height: 16px;
  margin: 2px 0 4px;
}
body.booking-workspace-mode .booking-plan-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: #8a8394;
  white-space: nowrap;
}
body.booking-workspace-mode .booking-plan-axis span:first-child { transform: none; }
body.booking-workspace-mode .booking-plan-axis span:last-child { transform: translateX(-100%); }
/* Name and time on one line, the bar full width under them. */
body.booking-workspace-mode .booking-party-plan.is-party .booking-party-plan-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "person time" "track track";
  row-gap: 8px;
  column-gap: 12px;
  padding: 12px 0;
}
body.booking-workspace-mode .booking-party-plan.is-party .booking-party-plan-person { grid-area: person; }
body.booking-workspace-mode .booking-party-plan.is-party .booking-party-plan-row time { grid-area: time; font-size: 0.8125rem; text-align: right; }
body.booking-workspace-mode .booking-party-plan.is-party .booking-plan-track { grid-area: track; }
body.booking-workspace-mode .booking-plan-track {
  position: relative;
  height: 36px;
  border-radius: 10px;
  background: #f4f1fa;
  cursor: pointer;
  touch-action: none;
  overflow: hidden;
}
body.booking-workspace-mode .booking-plan-off {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg, rgba(23, 19, 31, 0.07) 0 5px, rgba(23, 19, 31, 0.02) 5px 10px);
  pointer-events: none;
}
body.booking-workspace-mode .booking-plan-block {
  position: absolute;
  top: 3px;
  bottom: 3px;
  min-width: 34px;
  min-height: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rl-violet) 0%, var(--rl-violet-deep) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 6px 14px -8px rgba(82, 54, 179, 0.7);
  transition: left 160ms var(--rl-ease), box-shadow 160ms var(--rl-ease);
}
body.booking-workspace-mode .booking-plan-track.is-dragging .booking-plan-block { cursor: grabbing; transition: none; box-shadow: 0 10px 22px -8px rgba(82, 54, 179, 0.8); }
body.booking-workspace-mode .booking-plan-block:focus-visible { outline: 2px solid var(--rl-violet-deep); outline-offset: 2px; }
body.booking-workspace-mode .booking-plan-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #8a8394;
  pointer-events: none;
}

/* ---- The stylist profile, tall like a sheet -------------------------------- */
@media (min-width: 761px) {
  .stylist-profile-modal-card {
    width: min(760px, calc(100vw - 48px));
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
  }
}
body.booking-workspace-mode .booking-submit-policy > .booking-review-deposit:not(.is-compact) { min-height: 0; }
body.booking-workspace-mode .booking-plan-block { min-width: 46px; }

/* ---- Booking, round three ------------------------------------------------ */
@media (min-width: 1081px) {
  body.booking-workspace-mode .booking-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); }
}
/* The summary keeps a fixed height and scrolls inside; it starts lower than
   the column so there is room above it, and the button stays at its foot. */
body.booking-workspace-mode .booking-layout > .booking-summary {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  margin-top: clamp(24px, 4.5vh, 48px);
  overflow: hidden;
}
body.booking-workspace-mode .booking-summary-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.booking-workspace-mode .booking-summary-action { flex: 0 0 auto; }

/* Reference photos: big tiles, no file names, and an instant preview with a
   spinner while the upload finishes. */
body.booking-workspace-mode .booking-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
body.booking-workspace-mode .booking-photo-grid:empty { display: none; }
body.booking-workspace-mode .booking-photo-preview {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f1eef6;
}
body.booking-workspace-mode .booking-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.booking-workspace-mode .booking-photo-preview figcaption { display: none; }
body.booking-workspace-mode .booking-photo-preview > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 19, 31, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background-color 160ms var(--rl-ease), transform 160ms var(--rl-ease);
}
body.booking-workspace-mode .booking-photo-preview > button:hover { background: rgba(23, 19, 31, 0.8); transform: scale(1.06); }
body.booking-workspace-mode .booking-photo-preview > button .icon { width: 15px; height: 15px; }
body.booking-workspace-mode .booking-photo-preview.is-pending img { filter: saturate(0.7) brightness(0.92); }
body.booking-workspace-mode .booking-photo-pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.28);
}
body.booking-workspace-mode .booking-photo-pending::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 999px;
  animation: rl-photo-spin 800ms linear infinite;
}
@keyframes rl-photo-spin { to { transform: rotate(360deg); } }

body.booking-workspace-mode .booking-customer-note-heading { display: flex; align-items: baseline; gap: 6px; }
body.booking-workspace-mode .booking-customer-note-heading small { font-size: 0.875rem; font-weight: 400; color: #8a8394; }

/* Summary: the attached photos, large and labelled Before / After. */
body.booking-workspace-mode .booking-summary-references {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}
body.booking-workspace-mode .booking-summary-references .reference-mini {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f1eef6;
}
body.booking-workspace-mode .booking-summary-references .reference-mini img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}
body.booking-workspace-mode .booking-summary-references .reference-mini figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #17131f;
  font-size: 0.75rem;
  font-weight: 600;
}
body.booking-workspace-mode .booking-summary-salon img { aspect-ratio: 2 / 1; }
body.booking-workspace-mode .booking-summary-references .reference-mini { aspect-ratio: 1 / 1; }

/* No visible scrollbars in the booking workspace: the service column and the
   summary still scroll by wheel, trackpad and touch. */
body.booking-workspace-mode .booking-scroll,
body.booking-workspace-mode .booking-summary-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.booking-workspace-mode .booking-scroll::-webkit-scrollbar,
body.booking-workspace-mode .booking-summary-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Leaving a booking: a small confirmation card over a soft backdrop. */
.booking-exit-layer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.booking-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 31, 0.42);
  backdrop-filter: blur(3px);
}
.booking-exit-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(23, 19, 31, 0.55);
  text-align: center;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.booking-exit-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--rl-violet-soft, #f4f0fd);
  color: var(--rl-violet-deep, #6a48d0);
}
.booking-exit-icon .icon { width: 24px; height: 24px; }
.booking-exit-card h2 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; color: #17131f; }
.booking-exit-card p { margin: 0 0 22px; font-size: 0.9375rem; line-height: 1.5; color: #6f6879; }
.booking-exit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking-exit-actions button { min-height: 48px; border-radius: 999px; font-weight: 700; }

/* A salon page redrawn in place keeps still; only the first open animates. */
body.salon-profile-settled .salon-profile-heading,
body.salon-profile-settled .salon-profile-gallery figure,
body.salon-profile-settled .salon-map-pin-head,
body.salon-profile-settled .salon-map-pin-label {
  animation: none;
}

.rl-text-rise:not(.is-in) { transition: none; }

/* ---- Save hearts on Discover and Salons cards ------------------------------
   No chip behind the heart: a white outline with a soft shadow reads on any
   photo, and a saved salon's heart is filled. */
body.customer-mode .discover-page .discover-salon-image .salon-save-button,
body.customer-mode .directory-media-save,
body.customer-mode .directory-media-save.icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #fff;
}
body.customer-mode .discover-page .discover-salon-image .salon-save-button .icon,
body.customer-mode .directory-media-save .icon {
  width: 22px;
  height: 22px;
  fill: rgba(23, 19, 31, 0.18);
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  transition: fill 200ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}
body.customer-mode .discover-page .discover-salon-image .salon-save-button:hover,
body.customer-mode .directory-media-save:hover {
  background: transparent;
  color: #fff;
}
body.customer-mode .discover-page .discover-salon-image .salon-save-button:hover .icon,
body.customer-mode .directory-media-save:hover .icon { transform: scale(1.1); }
body.customer-mode .discover-page .discover-salon-image .salon-save-button.active,
body.customer-mode .directory-media-save.active {
  background: transparent;
  color: var(--rl-violet);
}
body.customer-mode .discover-page .discover-salon-image .salon-save-button.active .icon,
body.customer-mode .directory-media-save.active .icon {
  fill: var(--rl-violet);
  stroke: #fff;
}
body.customer-mode .discover-page .discover-card-rating { right: 48px; }
@media (max-width: 760px) {
  /* Touch keeps a 44px target around the smaller heart. */
  body.customer-mode .discover-page .discover-salon-image .salon-save-button,
  body.customer-mode .directory-media-save { width: 44px; min-width: 44px; height: 44px; min-height: 44px; top: 4px; right: 4px; }
  body.customer-mode .discover-page .discover-card-rating { right: 50px; }
}

/* A salon card under the pointer grows its pin on the map. The pin grows
   around the tip of its pointer (36px down: the marker's anchor, the salon's
   exact spot), and keeps its own centring, so the point never moves. */
/* The marker box ends at the pointer's tip (the global 44px button height
   had left every pin 8px above its salon), so the map anchor is the point. */
.prelook-mapbox-marker-shell {
  min-height: 0;
  height: 36px;
}
.prelook-mapbox-marker-shell .mapbox-rating-pin {
  transform-origin: 50% 36px;
  /* Size only: the colours stay as they are, and the scale runs on the
     compositor so growing and shrinking never flickers. */
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  backface-visibility: hidden;
}
.prelook-mapbox-marker-shell.is-hovered { z-index: 5; }
.prelook-mapbox-marker-shell.is-hovered .mapbox-rating-pin,
.prelook-mapbox-marker-shell.active.is-hovered .mapbox-rating-pin {
  transform: translateX(-50%) scale(1.35);
}

/* ---- Discover, round two ---------------------------------------------------
   A soft wash of the brand violet and mint behind the top of the page, arrows
   that sit on each row of salons, and rows that show a little under three and
   a half cards so there is visibly more to see. */
body.customer-mode .discover-page { position: relative; isolation: isolate; }
/* The wash is wider than the page column; clipping (not hiding) keeps the
   sticky header working and adds no horizontal scroll. */
html:has(body.customer-mode .discover-page),
body.customer-mode:has(.discover-page) { overflow-x: clip; }
body.customer-mode .discover-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 50%;
  width: 100vw;
  height: 860px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(40% 60% at 14% 20%, rgba(163, 116, 250, 0.55), transparent 70%),
    radial-gradient(34% 50% at 58% 8%, rgba(147, 162, 247, 0.45), transparent 70%),
    radial-gradient(38% 58% at 90% 34%, rgba(143, 247, 210, 0.60), transparent 70%),
    radial-gradient(60% 60% at 42% 62%, rgba(206, 190, 255, 0.50), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
body.customer-mode .discover-page .customer-main-grid {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  box-shadow: 0 30px 60px -48px rgba(82, 54, 179, 0.45);
}

body.customer-mode .discover-page .discover-rail { position: relative; min-width: 0; container-type: inline-size; }
body.customer-mode .discover-page .discover-salon-track {
  grid-auto-columns: calc((100% - 3 * 18px) / 3.4);
  scrollbar-width: none;
}
body.customer-mode .discover-page .discover-salon-track::-webkit-scrollbar { display: none; }
body.customer-mode .discover-page .discover-rail-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.customer-mode .discover-page .discover-rail-controls .carousel-nav-button {
  position: absolute;
  /* Level with the middle of the card photos. */
  /* Level with the middle of the card photos: a card is (rail - gaps) / 3.4
     wide and its photo is 1.8 times wider than tall. */
  top: calc(5px + ((100cqw - 3 * 18px) / 3.4) / 1.8 / 2);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid #ebe7f2;
  border-radius: 999px;
  background: #fff;
  color: #17131f;
  box-shadow: 0 10px 26px -12px rgba(23, 19, 31, 0.45);
  pointer-events: auto;
  transform: translateY(-50%);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms ease;
}
body.customer-mode .discover-page .discover-rail-controls .carousel-nav-button.previous { left: -22px; }
body.customer-mode .discover-page .discover-rail-controls .carousel-nav-button.next { right: -22px; }
body.customer-mode .discover-page .discover-rail-controls .carousel-nav-button:hover { transform: translateY(-50%) scale(1.06); box-shadow: 0 14px 30px -12px rgba(23, 19, 31, 0.5); }
/* Nothing more that way: the arrow fades out rather than sitting greyed. */
body.customer-mode .discover-page .discover-rail-controls .carousel-nav-button:disabled {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.9);
}
@media (max-width: 760px) {
  body.customer-mode .discover-page .discover-rail-controls { display: none; }
  body.customer-mode .discover-page .discover-salon-track { grid-auto-columns: min(264px, 82%); }
  body.customer-mode .discover-page::before { height: 620px; }
}

/* Discover: the header stays white; the wash starts just under it and fades
   in from white, the same way it fades out at the bottom. */
body.customer-mode .discover-page::before {
  top: -24px;
  height: 900px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 58%, transparent 100%);
}
/* Discover is the only tab where the page itself scrolls; its scrollbar used
   to narrow the page and nudge the header buttons 15px. The page still
   scrolls, it just draws no bar, so the header sits where it does elsewhere. */
html:has(body.customer-mode .discover-page) { scrollbar-width: none; }
html:has(body.customer-mode .discover-page)::-webkit-scrollbar { display: none; width: 0; }

/* Sign-up and sign-in on wider screens: the page itself never scrolls. The
   photo stays put and only the form column scrolls when the form is taller
   than the window; when it fits, the form sits centred below the top bar. */
@media (min-width: 769px) {
  body.auth-screen-mode {
    overflow: hidden;
  }
  body.auth-screen-mode .auth-screen {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  body.auth-screen-mode .auth-screen > .auth-visual-panel {
    height: 100dvh;
    min-height: 0;
  }
  body.auth-screen-mode .auth-screen > .auth-workspace {
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    grid-template-rows: auto 1fr;
    align-content: stretch;
    padding-block: 28px;
  }
  body.auth-screen-mode .auth-workspace > .auth-panel {
    align-self: center;
    margin-top: 0;
    padding-block: 8px 20px;
  }
}

/* App Store and Google Play badges (placeholders until the apps are listed). */
.store-badges{display:flex;flex-wrap:wrap;gap:10px}
.store-badge{display:inline-flex;align-items:center;gap:10px;min-width:150px;height:48px;padding:0 18px 0 13px;border:1px solid #2b2833;border-radius:13px;color:#fff;background:linear-gradient(180deg,#22202a,#0c0b10);box-shadow:0 12px 24px -16px rgba(12,11,16,.75),inset 0 1px 0 rgba(255,255,255,.08);text-decoration:none;cursor:default;user-select:none;-webkit-user-select:none;transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .45s cubic-bezier(.22,1,.36,1)}
.store-badge:hover{transform:translateY(-2px);box-shadow:0 18px 30px -16px rgba(12,11,16,.8),inset 0 1px 0 rgba(255,255,255,.1)}
.store-badge-mark{width:24px;height:24px;flex:none}
.store-badge.is-apple .store-badge-mark{width:22px;height:26px;margin-top:-2px}
.store-badge>span{display:grid;gap:1px;line-height:1.05;text-align:left}
.store-badge small{font-size:10px;font-weight:500;letter-spacing:.01em;opacity:.85}
.store-badge strong{font-size:17px;font-weight:600;letter-spacing:-.02em}
@media(prefers-reduced-motion:reduce){.store-badge{transition:none}.store-badge:hover{transform:none}}
.customer-footer-stores{display:grid;gap:8px;margin-top:6px}
.customer-footer-stores .store-badge{width:164px}
@media(max-width:760px){
  body.customer-mode .customer-footer-brand{flex-wrap:wrap}
  body.customer-mode .customer-footer-stores{display:flex;width:100%;margin-top:4px}
  body.customer-mode .customer-footer-stores .store-badge{flex:1 1 140px;width:auto;min-width:0;justify-content:center}
}
