/* Prelook salon workspace operations */
.dashboard-context-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.dashboard-context-switcher label {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 5px 4px 11px;
  border: 1px solid #e2dce6;
  border-radius: 12px;
  color: #706a76;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 750;
}

.dashboard-context-switcher select {
  min-width: 0;
  min-height: 36px;
  padding: 0 30px 0 9px;
  border: 0;
  border-radius: 8px;
  color: #332d39;
  background: #f5f2f8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
}

.dashboard-context-switcher :focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-workspace-page,
.business-operations-shell {
  --ops-violet: #6750b8;
  --ops-violet-soft: #f1edfb;
  --ops-mint: #dff5ed;
  --ops-mint-strong: #2f755f;
  --ops-ink: #27222f;
  --ops-muted: #706a76;
  --ops-line: #e4dfe7;
  display: grid;
  gap: 22px;
  min-width: 0;
}

/* Appointment board --------------------------------------------------------
   Cards keep the decision-making essentials visible while the drawer carries
   the complete, consistently aligned booking view. */
.business-bookings-list {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: stretch;
  gap: 14px;
}

.business-bookings-list > .business-empty {
  grid-column: 1 / -1;
}

.business-booking-row.business-booking-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  padding: 13px 13px 12px 16px;
  border-color: color-mix(in srgb, var(--stylist-color, #b5482d) 16%, #ded8e3);
  background: #fff;
  box-shadow: 0 9px 24px rgba(43, 34, 55, 0.055);
  color: var(--ops-ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.business-booking-row.business-booking-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--stylist-color, #b5482d);
  content: "";
}

.business-booking-row.business-booking-card:hover,
.business-booking-row.business-booking-card:has(
    .business-booking-card-open:focus-visible
  ) {
  border-color: color-mix(in srgb, var(--stylist-color, #b5482d) 46%, #d9d2df);
  box-shadow: 0 14px 32px rgba(43, 34, 55, 0.09);
  outline: 0;
  transform: translateY(-2px);
}

.business-booking-row.business-booking-card:has(
    .business-booking-card-open:focus-visible
  ) {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--stylist-color, #b5482d) 28%, transparent),
    0 14px 32px rgba(43, 34, 55, 0.09);
}

.business-booking-card-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.business-booking-card-open:focus-visible {
  outline: 0;
}

.business-booking-row.business-booking-card
  > :not(.business-booking-card-open) {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.business-booking-row.business-booking-card > .business-booking-card-actions {
  z-index: 3;
  pointer-events: auto;
}

.business-booking-card-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  min-width: 0;
}

.business-booking-card-identity > div {
  display: grid;
  min-width: 0;
  gap: 1px;
  justify-self: start;
}

.business-booking-card-identity > div > span,
.business-booking-card-details dt,
.business-booking-card-service > span,
.business-booking-card-meta span {
  color: var(--ops-muted);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.business-booking-card-identity > div > small {
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-card-identity > .business-status {
  max-width: none;
  min-width: max-content;
  justify-self: end;
  padding: 5px 8px;
  font-size: 0.6rem;
  white-space: nowrap;
}

.business-booking-card-identity > .business-status.status-booked {
  color: #5f4997;
  background: #eee8fb;
}

.business-booking-stylist-avatar {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--stylist-soft, #fbe9e4);
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--stylist-color, #b5482d) 22%, #e5dfea);
}

.business-booking-stylist-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-booking-row.business-booking-card h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ops-ink);
  font-size: 0.9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-card-details {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.business-booking-card-details > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(68px, 0.44fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.business-booking-card-details dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #403946;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-card-details time {
  display: grid;
  max-width: 100%;
  gap: 2px;
  color: inherit;
  font-size: inherit;
}

.business-booking-card-details time > span {
  color: var(--ops-muted);
  font-size: 0.69rem;
  font-weight: 620;
}

.business-booking-card-appointment {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.9fr);
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid
    color-mix(in srgb, var(--stylist-color, #b5482d) 12%, #e8e3eb);
  border-radius: 13px;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 28%, #fbfafc);
}

.business-booking-card-service,
.business-booking-card-customer,
.business-booking-card-appointment time {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-booking-card-customer {
  grid-column: 1 / -1;
  padding-bottom: 8px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--stylist-color, #b5482d) 10%, #e5e0e8);
}

.business-booking-card-customer > span,
.business-booking-card-service > span {
  color: var(--ops-muted);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.business-booking-card-customer > strong {
  overflow: hidden;
  color: #2f2935;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-card-service strong {
  overflow: hidden;
  color: #302a36;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-card-appointment time {
  padding-left: 10px;
  border-left: 1px solid
    color-mix(in srgb, var(--stylist-color, #b5482d) 10%, #e5e0e8);
}

.business-booking-card-appointment time > span {
  color: #675f6c;
  font-size: 0.64rem;
  font-weight: 690;
  line-height: 1.25;
}

.business-booking-card-appointment time > strong {
  color: #302a36;
  font-size: 0.78rem;
  font-weight: 830;
  line-height: 1.25;
}

.business-booking-card-meta {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.business-booking-card-meta > div {
  display: grid;
  gap: 2px;
}

.business-booking-card-meta strong {
  color: #37313d;
  font-size: 0.82rem;
}

.business-booking-card-meta > span:last-child {
  color: color-mix(in srgb, var(--stylist-color, #b5482d) 78%, #302a36);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: none;
}

.business-booking-card-reference {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e9e4ec;
  border-radius: 11px;
  background: rgba(250, 249, 251, 0.92);
}

.business-booking-card-reference-preview {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border-radius: 9px;
  background: #eeeaf2;
}

.business-booking-card-reference-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-booking-card-reference.is-empty
  .business-booking-card-reference-preview::before {
  width: 12px;
  height: 10px;
  border: 1.5px solid #91899a;
  border-radius: 3px;
  content: "";
}

.business-booking-card-reference > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-booking-card-reference > div > span {
  color: var(--ops-muted);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.business-booking-card-reference > div > strong {
  overflow: hidden;
  color: #413a47;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #eee9f0;
}

.business-booking-card-actions.is-two-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-booking-card-actions > button {
  min-width: 0;
  min-height: 32px;
  padding: 6px 5px;
  font-size: 0.62rem;
}

.business-booking-card-actions.business-booking-approval-row {
  display: block;
}

.business-booking-card-actions.business-booking-approval-row
  > .business-booking-approval-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-booking-card-actions.business-booking-approval-row
  > .business-booking-approval-actions
  > button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.business-booking-decision-form {
  gap: 18px;
}

.business-booking-decision-summary {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid #e7e1eb;
  border-radius: 13px;
  background: #faf8fc;
}

.business-booking-decision-summary > span,
.business-booking-reason-suggestions > span {
  color: var(--ops-muted);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-booking-decision-summary > strong {
  color: var(--ops-ink);
  font-size: 0.88rem;
}

.business-booking-reason-suggestions {
  display: grid;
  gap: 9px;
}

.business-booking-reason-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.business-booking-reason-suggestions button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.business-booking-move-modal {
  width: min(680px, calc(100vw - 32px));
}

/* Booking details is a 1210-level drawer. Keep its review dialog and backdrop
   in the foreground so the confirmation can be completed without dismissing
   the drawer first. */
body:has(.business-team-drawer-layer)
  .business-modal-layer:has(.business-booking-move-modal) {
  z-index: 1240;
}

.business-booking-move-confirmation {
  gap: 18px;
}

.business-booking-move-context {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #e8e2eb;
  border-radius: 13px;
  background: #fbfafc;
}

.business-booking-move-context > span,
.business-booking-move-time > span {
  color: var(--ops-muted);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-booking-move-context > strong {
  color: var(--ops-ink);
  font-size: 0.94rem;
}

.business-booking-move-context > small {
  color: #6f6774;
  font-size: 0.74rem;
}

.business-booking-move-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.business-booking-move-time {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #ded7e2;
  border-radius: 15px;
  background: #f8f6f9;
}

.business-booking-move-time.is-updated {
  border-color: #8c75c7;
  background: linear-gradient(145deg, #faf8ff, #f5f1fc);
  box-shadow: inset 0 0 0 1px rgba(108, 85, 179, 0.18);
}

.business-booking-move-time > strong {
  color: #342d39;
  font-size: 0.85rem;
}

.business-booking-move-time > time {
  color: #2d2732;
  font-size: 1.05rem;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.business-booking-move-time > small {
  color: #716978;
  font-size: 0.72rem;
  font-weight: 700;
}

.business-booking-move-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  color: #5f499f;
  background: #f0ebf8;
  font-size: 0.95rem;
  font-weight: 900;
}

.business-booking-move-note {
  margin: 0;
  color: #655d6b;
  font-size: 0.74rem;
  line-height: 1.5;
}

.business-booking-move-reason {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e7e1ea;
  border-radius: 12px;
  background: #faf8fb;
}

.business-booking-move-reason-editor,
.business-booking-override-note-editor {
  display: grid;
  gap: 14px;
}

.business-booking-move-reason > span {
  color: var(--ops-muted);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-booking-move-reason > strong {
  color: var(--ops-ink);
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .business-booking-move-comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-move-time {
    min-height: 112px;
  }

  .business-booking-move-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (min-width: 1900px) {
  .business-bookings-list {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }
}

@media (max-width: 1100px) {
  .business-bookings-list {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }
}

@media (max-width: 820px) {
  .business-bookings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .business-bookings-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.business-operations-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.business-operations-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ops-muted);
  font-size: 0.8rem;
}

.business-operations-summary strong {
  color: var(--ops-ink);
  font-size: 0.95rem;
}

.business-list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: #fff;
}

.business-list-toolbar .search-field {
  width: min(380px, 100%);
  margin-right: auto;
}
.business-list-toolbar > label:not(.search-field) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ops-muted);
  font-size: 0.78rem;
  font-weight: 650;
}
.business-list-toolbar select {
  min-height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid #dcd6e1;
  border-radius: 11px;
  background: #fff;
  color: var(--ops-ink);
}

.business-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0edf3;
  color: #625b69;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.business-status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.business-status-pill.status-active,
.business-status-pill.status-received,
.business-status-pill.status-working {
  background: #def3eb;
  color: #236b55;
}
.business-status-pill.status-pending,
.business-status-pill.status-submitted,
.business-status-pill.status-partially_received {
  background: #fff2d8;
  color: #85601e;
}
.business-status-pill.status-archived,
.business-status-pill.status-inactive,
.business-status-pill.status-not_linked,
.business-status-pill.status-draft {
  background: #efedf1;
  color: #68616e;
}
.business-status-pill.status-suspended,
.business-status-pill.status-cancelled,
.business-status-pill.status-revoked,
.business-status-pill.status-disabled,
.business-status-pill.status-terminated,
.business-status-pill.status-unavailable {
  background: #fae7e7;
  color: #963f48;
}

.business-team-grid,
.business-service-catalog,
.business-inventory-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.business-team-card,
.business-service-row,
.business-inventory-product,
.business-supplier-card,
.business-purchase-order-list > article {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--ops-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(43, 34, 55, 0.045);
}

.business-team-card {
  display: grid;
  gap: 15px;
}
.business-team-card > header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.business-team-header-meta {
  display: flex;
  max-width: 180px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.business-team-add-service {
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
}
.business-team-role-pill {
  overflow: hidden;
  max-width: 116px;
  padding: 6px 9px;
  border: 1px solid #ded7e7;
  border-radius: 999px;
  color: #59477c;
  background: #f5f1fa;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-team-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--team-color) 24%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--team-color) 12%, white);
  color: var(--team-color);
  font-size: 1.15rem;
  font-weight: 800;
}
.business-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.business-team-card h3,
.business-team-card p {
  margin: 0;
}
.business-team-card > header p {
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 0.8rem;
}
.business-team-bio {
  color: #5f5865;
  font-size: 0.86rem;
  line-height: 1.5;
}
.business-team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.business-team-specialties span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5f3f6;
  color: #665f6c;
  font-size: 0.7rem;
}
.business-team-card dl,
.business-service-row dl,
.business-inventory-product dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  border-block: 1px solid #eeeaf0;
}
.business-team-card dl > div,
.business-service-row dl > div,
.business-inventory-product dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.business-team-card dt,
.business-service-row dt,
.business-inventory-product dt {
  color: var(--ops-muted);
  font-size: 0.75rem;
}
.business-team-card dd,
.business-service-row dd,
.business-inventory-product dd {
  margin: 0;
  color: #4a444f;
  font-size: 0.77rem;
  font-weight: 650;
  text-align: right;
}
.business-team-card footer,
.business-service-row footer,
.business-inventory-product footer,
.business-purchase-order-list footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.business-team-card-footer-spacer {
  flex: 1 1 auto;
}

.business-invitations-panel,
.business-schedule-configuration,
.business-inventory-products,
.business-inventory-suppliers,
.business-purchase-orders {
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--ops-line);
  border-radius: 20px;
  background: #fff;
}

.business-invitations-panel > header,
.business-schedule-configuration > header,
.business-inventory-products > header,
.business-inventory-suppliers > header,
.business-purchase-orders > header,
.business-inventory-ledger > header,
.business-po-lines > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.business-invitations-panel h3,
.business-schedule-configuration h3,
.business-inventory-page section > header h3,
.business-po-lines h3 {
  margin: 0 0 4px;
}
.business-invitations-panel p,
.business-schedule-configuration header p,
.business-inventory-page section > header p,
.business-po-lines header p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.business-invitations-panel > div {
  display: grid;
  gap: 5px;
}
.business-invitations-panel article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 0;
  border-top: 1px solid #eeeaf0;
}
.business-invitations-panel article > div {
  display: grid;
  gap: 3px;
}
.business-invitations-panel article span,
.business-invitations-panel time {
  color: var(--ops-muted);
  font-size: 0.74rem;
}

.business-service-row {
  display: grid;
  gap: 13px;
}
.business-service-row > header,
.business-inventory-product > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.business-service-row h3,
.business-inventory-product h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}
.business-service-row header span:first-child,
.business-inventory-product header span:first-child {
  color: var(--ops-violet);
  font-size: 0.68rem;
  font-weight: 780;
  text-transform: uppercase;
}
.business-service-row > p {
  min-height: 42px;
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.business-service-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.business-service-price strong {
  font-size: 1.08rem;
}
.business-service-price span {
  color: var(--ops-muted);
  font-size: 0.72rem;
}
.business-avatar-stack {
  display: flex;
  align-items: center;
  min-height: 38px;
}
.business-avatar-stack img,
.business-avatar-stack > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ops-mint);
  object-fit: cover;
  color: var(--ops-mint-strong);
  font-size: 0.72rem;
  font-weight: 800;
}
.business-avatar-stack :first-child {
  margin-left: 0;
}
.business-avatar-stack small {
  margin-left: 9px;
  color: var(--ops-muted);
}

.business-service-category-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.business-service-category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  color: #625b69;
  background: #fff;
  font: 720 0.72rem/1 inherit;
}

.business-service-category-tabs button span {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  color: #77707d;
  background: #f1eef3;
  font-size: 0.62rem;
}

.business-service-category-tabs button.active {
  border-color: #6d55b5;
  color: #fff;
  background: #6d55b5;
}

.business-service-category-tabs button.active span {
  color: #4b397e;
  background: #fff;
}

.business-service-groups,
.business-service-group {
  display: grid;
  gap: 16px;
}

.business-service-group {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--ops-line);
  border-radius: 20px;
  background: #fbfafc;
}

.business-service-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.business-service-group > header > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.business-service-group > header h3 {
  margin: 0;
  color: #393241;
  font-size: 1rem;
}

.business-service-group > header span {
  color: var(--ops-muted);
  font-size: 0.7rem;
}

.business-service-readiness {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid #eadfbf;
  border-radius: 14px;
  background: #fffaf0;
}

.business-service-readiness > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #7d5d1b;
  background: #f7e7b8;
  font-size: 0.75rem;
  font-weight: 850;
}

.business-service-readiness strong,
.business-service-readiness p {
  margin: 0;
}

.business-service-readiness strong {
  color: #59451f;
  font-size: 0.8rem;
}

.business-service-readiness p {
  margin-top: 3px;
  color: #786a4f;
  font-size: 0.7rem;
  line-height: 1.45;
}

.business-service-readiness.is-ready {
  border-color: #cde8df;
  background: #f3faf7;
}

.business-service-readiness.is-ready > span {
  color: #286b59;
  background: #d9f1e8;
}

.business-service-readiness.is-ready strong {
  color: #2d6555;
}

.business-service-readiness.is-ready p {
  color: #5d766e;
}

.business-service-category-picker,
.business-service-professional-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-service-category-picker legend,
.business-service-professional-picker legend {
  margin-bottom: 8px;
  color: #514a58;
  font-size: 0.8rem;
  font-weight: 720;
}

.business-service-category-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.business-service-category-picker label {
  position: relative;
}

.business-service-category-picker input {
  position: absolute;
  opacity: 0;
}

.business-service-category-picker label span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #ded8e3;
  border-radius: 999px;
  color: #645d6b;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 730;
}

.business-service-category-picker input:checked + span {
  border-color: #6d55b5;
  color: #513b92;
  background: #f0ebfa;
  box-shadow: inset 0 0 0 1px #6d55b5;
}

.business-service-category-picker input:focus-visible + span {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-service-category-picker > small,
.business-service-professional-picker > small {
  display: block;
  margin-top: 7px;
  color: var(--ops-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-service-professional-picker > p {
  margin: -2px 0 10px;
  color: var(--ops-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.business-service-professional-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-service-professional-picker .business-service-professional-choice {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid #e0dae4;
  border-radius: 13px;
  background: #fff;
}

.business-service-professional-picker
  .business-service-professional-choice
  > input {
  position: absolute;
  opacity: 0;
}

.business-service-professional-card.is-selected
  > .business-service-professional-choice {
  border-color: #6c55b3;
  background: #f4f0fb;
  box-shadow: inset 0 0 0 1px #6c55b3;
}

.business-service-professional-choice:has(input:focus-visible) {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-service-professional-card.is-ineligible {
  opacity: 0.55;
}

.business-service-professional-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  color: #2e705e;
  background: #dff4ed;
  font-size: 0.78rem;
  font-weight: 820;
}

.business-service-professional-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-service-professional-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-service-professional-copy strong {
  overflow: hidden;
  color: #403946;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-professional-copy small {
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-professional-picker
  .business-service-professional-choice
  > b {
  color: #5d4a98;
  font-size: 0.61rem;
  white-space: nowrap;
}

.business-service-team-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e4ddeb;
  border-radius: 14px;
  background: #f9f7fb;
}

.business-service-team-empty strong,
.business-service-team-empty p {
  margin: 0;
}

.business-service-team-empty strong {
  color: #4c4256;
  font-size: 0.78rem;
}

.business-service-team-empty p {
  margin-top: 4px;
  color: var(--ops-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-service-advanced {
  border: 1px solid #e6e0e8;
  border-radius: 15px;
  background: #fbfafc;
}

.business-service-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  cursor: pointer;
}

.business-service-advanced > summary span {
  display: grid;
  gap: 3px;
}

.business-service-advanced > summary strong {
  color: #4a424f;
  font-size: 0.78rem;
}

.business-service-advanced > summary small,
.business-service-advanced > summary b {
  color: var(--ops-muted);
  font-size: 0.66rem;
}

.business-service-advanced > .business-form-grid,
.business-service-advanced > .business-service-products,
.business-service-advanced > [data-business-style-preview] {
  margin: 0 14px 14px;
}

/* Category-first service catalog */
.business-services-page {
  min-width: 0;
}

.business-services-workbench {
  --service-violet: #6750b8;
  --service-violet-soft: #f3effb;
  --service-mint: #dff5ed;
  --service-mint-strong: #2f755f;
  --service-line: #e5e0e8;
  --service-muted: #756e7c;
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(420px, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.business-services-workbench.has-inspector {
  grid-template-columns:
    minmax(190px, 0.56fr)
    minmax(360px, 1.32fr)
    minmax(340px, 0.96fr);
}

.business-services-workbench > * {
  min-width: 0;
}

.business-service-category-rail,
.business-service-board,
.business-service-inspector {
  border: 1px solid var(--service-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(43, 34, 55, 0.055);
}

.business-service-category-rail {
  position: sticky;
  top: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  max-height: calc(100dvh - 36px);
  padding: 14px;
  overflow: hidden;
}

.business-service-category-rail > header,
.business-service-board-header,
.business-service-inspector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.business-service-category-rail > header > div,
.business-service-board-header > div,
.business-service-inspector-header > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-service-category-rail :where(h2, h3),
.business-service-board-header :where(h2, h3),
.business-service-inspector-header :where(h2, h3) {
  margin: 0;
  color: #312b38;
  font-size: 0.98rem;
  line-height: 1.25;
}

.business-service-category-rail :where(p, small),
.business-service-board-header :where(p, small),
.business-service-inspector-header :where(p, small) {
  margin: 0;
  color: var(--service-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.business-service-category-rail > header > div > span,
.business-service-board-header > div:first-child > span,
.business-service-inspector-header > div > span {
  color: #796f80;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.business-service-category-rail > header > div > strong,
.business-service-board-header > div:first-child > strong,
.business-service-inspector-header > div > strong {
  color: #312b38;
  font-size: 0.98rem;
  line-height: 1.25;
}

.business-service-category-rail > header > button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border-color: #cfe7df;
  color: #2f725e;
  background: #edf9f5;
}

.business-service-category-list {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  margin-inline: -3px;
  padding: 2px 3px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.business-service-category-list > :where(button, a) {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #5d5663;
  background: transparent;
  font: 700 0.78rem/1.25 inherit;
  text-align: left;
}

.business-service-category-list > :where(button, a) > i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--category-color, #a894cf);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--category-color, #a894cf) 14%, transparent);
}

.business-service-category-list > :where(button, a) > span:first-of-type {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-service-category-list > :where(button, a) > span:first-of-type strong,
.business-service-category-list > :where(button, a) > span:first-of-type small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-category-list
  > :where(button, a)
  > span:first-of-type
  strong {
  color: inherit;
  font-size: 0.76rem;
}

.business-service-category-list > :where(button, a) > span:first-of-type small {
  color: #817987;
  font-size: 0.61rem;
  font-weight: 550;
}

.business-service-category-list > :where(button, a) > :where(small, b) {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  color: #756d7b;
  background: #f1eef3;
  font-size: 0.64rem;
  font-weight: 780;
}

.business-service-category-list > :where(button, a):hover {
  border-color: #e5dfee;
  background: #faf8fc;
}

.business-service-category-list
  > :where(button, a):is(.active, .is-active, [aria-current="true"]) {
  border-color: #d8ceec;
  color: #4f3b8c;
  background: var(--service-violet-soft);
  box-shadow: inset 3px 0 0 var(--service-violet);
}

.business-service-category-list
  > :where(button, a):is(.active, .is-active, [aria-current="true"])
  > :where(small, b) {
  color: #4f3b8c;
  background: #fff;
}

.business-category-composer {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d8ece5;
  border-radius: 14px;
  background: #f5fbf9;
}

.business-category-composer > label {
  display: grid;
  gap: 6px;
  color: #4f655e;
  font-size: 0.7rem;
  font-weight: 700;
}

.business-category-composer .business-category-color {
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.business-category-composer .business-category-color input[type="color"] {
  width: 44px;
  min-height: 44px;
  padding: 3px;
}

.business-category-composer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.business-category-composer h3 {
  margin: 0;
  color: #315f51;
  font-size: 0.8rem;
}

.business-category-composer :where(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #cfe3dc;
  border-radius: 10px;
  color: #302a37;
  background: #fff;
  font: inherit;
}

.business-category-composer textarea {
  min-height: 76px;
  padding-block: 10px;
  resize: vertical;
}

.business-category-composer footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.business-category-composer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.business-category-composer footer > *,
.business-category-composer > div > * {
  min-height: 44px;
}

.business-category-hint {
  margin: 0;
  padding: 11px;
  border-radius: 11px;
  color: #68776f;
  background: #f1f8f5;
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-service-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(650px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  padding: 16px;
  overflow: hidden;
}

.business-service-board-header {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  padding: 2px 2px 15px;
  border-bottom: 1px solid #eeeaf0;
}

.business-service-board-header > :where(button, a) {
  flex: 0 0 auto;
  min-height: 44px;
}

.business-service-board-tools {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.business-service-board-tools .search-field {
  width: 100%;
  min-width: 0;
}

.business-service-board-tools .business-segmented {
  min-width: max-content;
}

.business-service-board-tools .business-segmented button {
  min-width: 44px;
  min-height: 44px;
}

.business-service-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin: 0 -3px;
  padding: 16px 3px 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.business-services-workbench.has-inspector .business-service-visual-grid {
  grid-template-columns: minmax(0, 1fr);
}

.business-service-visual-grid > .business-empty {
  grid-column: 1 / -1;
}

.business-service-tile {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e6e1e9;
  border-radius: 16px;
  color: #302a37;
  background: #fff;
  box-shadow: 0 7px 22px rgba(43, 34, 55, 0.045);
  font: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.business-service-tile:hover {
  border-color: #cabfe0;
  box-shadow: 0 12px 30px rgba(63, 45, 86, 0.09);
  transform: translateY(-1px);
}

.business-service-tile:is(
  .active,
  .is-active,
  .is-selected,
  .is-editing,
  [aria-current="true"]
) {
  border-color: #745db1;
  box-shadow:
    0 0 0 2px #ebe5f8,
    0 12px 30px rgba(63, 45, 86, 0.1);
}

.business-service-tile-media {
  position: relative;
  display: grid;
  min-height: 116px;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  padding: 0;
  border: 0;
  color: #5c4b8e;
  background: #f0ecf6;
  font: inherit;
}

.business-service-tile-media :where(img, picture) {
  width: 100%;
  height: 100%;
}

.business-service-tile-media img {
  display: block;
  object-fit: cover;
}

.business-service-tile-media > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: color-mix(
    in srgb,
    var(--category-color, #8f79bd) 22%,
    rgba(255, 255, 255, 0.92)
  );
  font-size: 1.05rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.business-service-tile-media > :where(small, b, i) {
  position: absolute;
  top: 9px;
  left: 9px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #4f3c85;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  font-style: normal;
}

.business-service-tile-media > i.status-active {
  color: #246b58;
  background: rgba(232, 249, 243, 0.94);
}

.business-service-tile-media > i.status-archived {
  color: #6c6571;
  background: rgba(245, 243, 246, 0.94);
}

.business-service-tile-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 13px;
}

.business-service-tile-copy > span:first-child {
  overflow: hidden;
  color: #6d58a1;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.business-service-tile-copy > header,
.business-service-tile-details,
.business-service-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.business-service-tile-copy h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #352e3c;
  font-size: 0.88rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-tile-copy p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--service-muted);
  font-size: 0.69rem;
  line-height: 1.35;
}

.business-service-tile-copy p strong {
  color: #332c3a;
  font-size: 0.82rem;
}

.business-service-tile-copy p span {
  flex: 0 0 auto;
}

.business-service-tile-details {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #6d6573;
  font-size: 0.68rem;
}

.business-service-tile-details strong {
  color: #3b3442;
  font-size: 0.78rem;
}

.business-service-tile-footer {
  min-height: 36px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid #efebf1;
}

.business-service-tile .business-avatar-stack {
  min-width: 0;
}

.business-service-tile .business-avatar-stack small {
  min-width: 0;
  overflow: hidden;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-tile > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 10px 12px;
  border-top: 1px solid #efebf1;
  background: #fcfbfc;
}

.business-service-tile > footer > * {
  min-width: 44px;
  min-height: 44px;
}

.business-service-add-tile {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 20px;
  border: 1.5px dashed #86cdb8;
  border-radius: 16px;
  color: #2d6d5a;
  background: #f4fbf8;
  font: inherit;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.business-service-add-tile:hover {
  border-color: #4ea98e;
  background: #eaf8f3;
  transform: translateY(-1px);
}

.business-service-add-tile > span:first-child {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #276550;
  background: var(--service-mint);
  font-size: 1.25rem;
}

.business-service-add-tile strong {
  font-size: 0.86rem;
}

.business-service-add-tile small {
  max-width: 190px;
  color: #668177;
  font-size: 0.7rem;
  line-height: 1.45;
}

.business-service-inspector {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  max-height: calc(100dvh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.business-service-inspector-header {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #ebe7ed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.business-service-inspector-header > :where(button, a) {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
}

.business-service-inspector > form,
.business-service-inspector-body {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
}

.business-service-inspector > form {
  padding-top: 0;
}

.business-service-inspector > form > .business-service-inspector-header {
  margin-inline: -16px;
}

.business-service-inspector .business-form-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.business-service-inspector .business-modal-section {
  gap: 12px;
  padding: 14px;
}

.business-service-inspector .business-modal-section > h4 {
  margin: 0;
  color: #3e3645;
  font-size: 0.82rem;
}

.business-service-photo-field {
  position: relative;
  display: grid;
  min-height: 170px;
  overflow: hidden;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1.5px dashed #cfc5dc;
  border-radius: 15px;
  color: #5d4b8d;
  background: #f8f6fb;
  cursor: pointer;
  text-align: center;
}

.business-service-photo-field:hover {
  border-color: #8e79bc;
  background: #f3eff9;
}

.business-service-photo-field > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.business-service-photo-field > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-service-photo-field [data-service-photo-preview] {
  display: grid;
  width: 50px;
  height: 50px;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  color: #5b478f;
  background: #eee8f8;
  font-size: 1.05rem;
}

.business-service-photo-field [data-service-photo-preview]:has(img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.business-service-photo-field [data-service-photo-preview] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-service-photo-field:has(img)::after {
  content: "Change photo";
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #342a42;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(35, 27, 45, 0.14);
  font-size: 0.68rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.business-service-photo-field:has(img) > :where(strong, small) {
  opacity: 0;
}

.business-service-photo-field > :where(strong, small) {
  position: relative;
  z-index: 1;
}

.business-service-photo-field strong {
  font-size: 0.82rem;
}

.business-service-photo-field small {
  max-width: 230px;
  color: #756d7d;
  font-size: 0.68rem;
  line-height: 1.4;
}

.business-service-team-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-service-team-picker > legend {
  margin-bottom: 8px;
  color: #514a58;
  font-size: 0.8rem;
  font-weight: 720;
}

.business-service-team-picker > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.business-service-team-picker .business-service-professional-choice {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid #e0dae4;
  border-radius: 13px;
  background: #fff;
}

.business-service-team-picker .business-service-professional-choice > input {
  position: absolute;
  opacity: 0;
}

.business-service-team-picker
  .business-service-professional-card.is-selected
  > .business-service-professional-choice {
  border-color: #6c55b3;
  background: #f4f0fb;
  box-shadow: inset 0 0 0 1px #6c55b3;
}

.business-service-team-picker
  .business-service-professional-choice:has(input:focus-visible) {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-service-inspector .business-service-professional-picker > div {
  grid-template-columns: minmax(0, 1fr);
}

.business-service-professional-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0dae4;
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.business-service-professional-card.is-selected {
  border-color: #8069bf;
  box-shadow: inset 0 0 0 1px rgba(108, 85, 179, 0.22);
}

.business-service-professional-picker
  .business-service-professional-card
  > .business-service-professional-choice,
.business-service-team-picker
  .business-service-professional-card
  > .business-service-professional-choice {
  min-height: 62px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.business-service-professional-card.is-selected
  > .business-service-professional-choice {
  background: #f7f4fc;
  box-shadow: none;
}

.business-service-inspector .business-service-team-picker > legend {
  margin-bottom: 3px;
  color: #332d38;
  font-size: 0.82rem;
}

.business-service-inspector .business-service-professional-help {
  margin: 0 0 10px;
  color: #756d7b;
  font-size: 0.66rem;
}

.business-service-inspector .business-service-professional-card {
  border-color: #ddd6e2;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(52, 42, 62, 0.035);
}

.business-service-inspector .business-service-professional-card.is-selected {
  border-color: #846dc1;
  box-shadow:
    inset 3px 0 0 #6b54b7,
    0 4px 12px rgba(69, 53, 91, 0.07);
}

.business-service-inspector
  .business-service-professional-card
  > .business-service-professional-choice {
  min-height: 68px;
  padding: 10px 13px;
  cursor: pointer;
}

.business-service-inspector .business-service-professional-choice > b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #5e5268;
  background: #f0edf2;
  font-size: 0.61rem;
  font-weight: 780;
}

.business-service-inspector
  .business-service-professional-card.is-selected
  .business-service-professional-choice
  > b {
  color: #3d735f;
  background: #dcf2e9;
}

.business-service-professional-pricing {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e8e2eb;
  background: #faf9fc;
}

.business-service-professional-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-service-professional-price-head > span {
  overflow: hidden;
  color: #4c4452;
  font-size: 0.68rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-professional-price-head > strong {
  flex: none;
  padding: 4px 8px;
  border: 1px solid #e0d9e5;
  border-radius: 999px;
  color: #645b6b;
  background: #fff;
  font-size: 0.6rem;
}

.business-stylist-custom-price {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0 9px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.business-stylist-custom-price > input {
  position: absolute;
  opacity: 0;
}

.business-stylist-custom-price > span {
  position: relative;
  grid-row: span 2;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d9d4dd;
  transition: background-color 150ms ease;
}

.business-stylist-custom-price > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35, 28, 42, 0.2);
  content: "";
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.business-stylist-custom-price:has(input:checked) > span {
  background: #5cb99f;
}

.business-stylist-custom-price:has(input:checked) > span::after {
  transform: translateX(14px);
}

.business-stylist-custom-price:has(input:focus-visible) > span {
  outline: 3px solid rgba(81, 185, 158, 0.4);
  outline-offset: 2px;
}

.business-stylist-custom-price > b {
  color: #433b49;
  font-size: 0.72rem;
}

.business-stylist-custom-price > small {
  color: #7a727f;
  font-size: 0.62rem;
  line-height: 1.3;
}

.business-stylist-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
  border: 1px solid #e5dfe8;
  border-radius: 11px;
  background: #fff;
}

.business-stylist-price-fields > label {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.business-stylist-price-fields > label > span {
  color: #625a68;
  font-size: 0.62rem;
  font-weight: 760;
}

.business-stylist-price-fields :is(select, input) {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid #ded7e3;
  border-radius: 9px;
  color: #332d38;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
}

.business-stylist-price-fields > label > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #ded7e3;
  border-radius: 9px;
  background: #fff;
}

.business-stylist-price-fields > label > div > b {
  padding-left: 9px;
  color: #756d7b;
  font-size: 0.68rem;
}

.business-stylist-price-fields > label > div > input {
  border: 0;
  border-radius: 0;
}

[data-stylist-pricing][hidden],
[data-stylist-price-fields][hidden],
[data-stylist-price-min][hidden],
[data-stylist-price-max][hidden] {
  display: none !important;
}

.business-service-inspector-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -16px -16px;
  padding: 13px 16px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e9e4eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.business-service-inspector > form > footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 -16px -16px;
  padding: 13px 16px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e9e4eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.business-service-inspector > form > footer > * {
  min-height: 44px;
}

.business-service-inspector-actions > * {
  min-height: 44px;
}

.business-services-workbench
  :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-service-inspector-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 28px;
  color: var(--service-muted);
  text-align: center;
}

.business-service-inspector-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #5a478e;
  background: var(--service-violet-soft);
}

.business-service-inspector-empty :where(h3, p) {
  max-width: 270px;
  margin: 0;
}

.business-service-inspector-empty h3 {
  color: #403747;
  font-size: 0.9rem;
}

.business-service-inspector-empty p {
  font-size: 0.74rem;
  line-height: 1.5;
}

@media (max-width: 1240px) {
  .business-services-workbench,
  .business-services-workbench.has-inspector {
    grid-template-columns: minmax(190px, 0.48fr) minmax(0, 1.52fr);
    gap: 14px;
  }

  .business-service-inspector {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
    overflow: visible;
  }

  .business-service-inspector-header {
    position: static;
  }

  .business-services-workbench.has-inspector .business-service-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .business-services-workbench,
  .business-services-workbench.has-inspector {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .business-service-category-rail {
    position: static;
    display: grid;
    grid-template-rows: auto auto auto;
    max-height: none;
    padding: 12px;
    overflow: visible;
  }

  .business-service-category-list {
    display: flex;
    margin: 0;
    padding: 1px 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: auto;
    scroll-snap-type: inline proximity;
  }

  .business-service-category-list > :where(button, a) {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    scroll-snap-align: start;
  }

  .business-service-board {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .business-service-visual-grid {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 540px) {
  .business-service-category-rail,
  .business-service-board,
  .business-service-inspector {
    border-radius: 16px;
  }

  .business-service-board {
    padding: 12px;
  }

  .business-service-board-header {
    padding-bottom: 12px;
  }

  .business-service-board-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-board-tools .business-segmented {
    display: flex;
    width: 100%;
  }

  .business-service-board-tools .business-segmented button {
    flex: 1 1 0;
  }

  .business-service-visual-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 12px;
  }

  .business-services-workbench.has-inspector .business-service-visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-add-tile {
    min-height: 170px;
  }

  .business-service-inspector-header {
    padding: 13px;
  }

  .business-service-inspector > form,
  .business-service-inspector-body {
    padding: 13px;
  }

  .business-service-inspector-actions {
    margin: 0 -13px -13px;
    padding-inline: 13px;
  }

  .business-service-inspector > form {
    padding: 13px;
    padding-top: 0;
  }

  .business-service-inspector > form > .business-service-inspector-header {
    margin-inline: -13px;
  }

  .business-service-inspector > form > footer {
    margin: 0 -13px -13px;
    padding-inline: 13px;
  }

  .business-service-inspector-actions > *,
  .business-service-inspector > form > footer > * {
    flex: 1 1 0;
    justify-content: center;
  }
}

.business-modal > header p {
  max-width: 560px;
  margin: 5px 0 0;
  color: var(--ops-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.business-modal-section {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #ebe6ed;
  border-radius: 15px;
  background: #fcfbfc;
}
.business-modal-section > h3 {
  margin: 0;
  font-size: 0.9rem;
}
.business-modal-form > footer {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  margin: 2px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid var(--ops-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.business-modal-form > footer > span {
  flex: 1;
}
.business-confirm-form {
  display: grid;
  gap: 18px;
}
.business-confirm-form p {
  margin: 0;
  color: #5f5865;
  line-height: 1.55;
}
.business-confirm-form footer,
.business-invitation-detail footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.business-option-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.business-option-picker > legend {
  margin-bottom: 7px;
  color: #514a58;
  font-size: 0.76rem;
  font-weight: 700;
}
.business-option-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.business-option-picker label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #dcd6e1;
  border-radius: 999px;
  background: #fff;
  color: #5f5865;
  cursor: pointer;
}
.business-option-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.business-option-picker label > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #cfc7d5;
  border-radius: 50%;
  color: transparent;
  font-size: 0.7rem;
}
.business-option-picker input:checked + span {
  border-color: #2f755f;
  background: #dff5ed;
  color: #25634f;
}
.business-option-picker label:has(input:checked) {
  border-color: #8ccfba;
  background: #f2fbf8;
  color: #315f51;
}
.business-option-picker input:focus-visible + span {
  outline: 3px solid #51b99e;
  outline-offset: 3px;
}
.business-option-picker > small {
  display: block;
  margin-top: 7px;
  color: var(--ops-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.business-policy-terms {
  min-width: 0;
  margin: 0;
}

.business-booking-cancellation-policy > .business-form-grid {
  gap: 12px;
}

.business-booking-cancellation-policy .business-policy-step {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3dce8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(58, 43, 70, 0.04);
}

.business-policy-step-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: #514a58;
}

legend.business-policy-step-heading {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
}

.business-policy-step-heading > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-policy-step-heading :is(b, h4, p, small) {
  margin: 0;
}

.business-policy-step-heading :is(b, h4) {
  color: #39313f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.business-policy-step-heading :is(p, small) {
  color: var(--ops-muted);
  font-size: 0.69rem;
  font-weight: 520;
  line-height: 1.4;
}

.business-policy-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #d8cced;
  border-radius: 10px;
  color: #60459d;
  background: #f2edfb;
  font-size: 0.72rem;
  font-weight: 900;
}

.business-booking-cancellation-policy .business-policy-term-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.business-booking-cancellation-policy .business-policy-term-group {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e4dfe7;
  border-radius: 12px;
  background: #faf9fb;
}

.business-policy-term-group h4 {
  margin: 0;
  color: #6f6677;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-booking-cancellation-policy .business-policy-term-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.business-policy-term-group label {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #dfd9e3;
  border-radius: 11px;
  color: #514a58;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.business-policy-term-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-policy-term-group label > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #cfc7d5;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  font-size: 0.68rem;
}

.business-policy-term-group label > b {
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

.business-policy-term-group label:has(input:checked) {
  border-color: #97d3c0;
  color: #315f51;
  background: #f2fbf8;
  box-shadow: inset 0 0 0 1px rgba(47, 117, 95, 0.08);
}

.business-policy-term-group input:checked + span {
  border-color: #2f755f;
  color: #fff;
  background: #3b8c73;
}

.business-policy-term-group input:focus-visible + span {
  outline: 3px solid #51b99e;
  outline-offset: 3px;
}

.business-policy-controls {
  display: grid;
  gap: 14px;
}

.business-policy-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.business-policy-control-grid .business-choice-field > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-policy-control-grid .business-choice-field:last-child > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.business-custom-policy-editor {
  display: grid;
  gap: 12px;
}

.business-custom-policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.business-custom-policy-empty {
  margin: 0;
}

.business-custom-policy-empty {
  margin-top: 2px;
  color: var(--ops-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.business-custom-policy-add,
.business-custom-policy-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d1e2;
  color: #61566c;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.business-custom-policy-add {
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.business-custom-policy-add > span {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.business-custom-policy-add:hover,
.business-custom-policy-remove:hover {
  border-color: #9e8fbe;
  color: #58437d;
  background: #f7f3ff;
}

.business-custom-policy-add:focus-visible,
.business-custom-policy-remove:focus-visible,
.business-custom-policy-item input:focus-visible {
  outline: 3px solid rgba(137, 102, 222, 0.28);
  outline-offset: 2px;
}

.business-custom-policy-add:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.business-custom-policy-list {
  display: grid;
  gap: 8px;
}

.business-custom-policy-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #e1dbe5;
  border-radius: 12px;
  background: #fff;
}

.business-custom-policy-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #5f4f81;
  background: #f0eafb;
  font-size: 0.72rem;
  font-weight: 850;
}

.business-custom-policy-item label {
  min-width: 0;
}

.business-custom-policy-item input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #332d38;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
}

.business-custom-policy-item input::placeholder {
  color: #99919f;
}

.business-custom-policy-remove {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.business-custom-policy-remove svg {
  width: 15px;
  height: 15px;
}

.business-custom-policy-empty {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px dashed #dcd4e2;
  border-radius: 11px;
  background: #fff;
}

.business-custom-policy-empty[hidden] {
  display: none;
}

.business-settings-policy-panel {
  gap: 16px !important;
}

.business-settings-policy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 2px;
}

.business-settings-policy-header :is(h3, p) {
  margin: 0;
}

.business-settings-policy-header p {
  margin-top: 4px;
  color: var(--ops-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.business-settings-save-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #d4e9e2;
  border-radius: 999px;
  color: #316d5b;
  background: #f2faf7;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.2;
}

.business-settings-save-state[data-state="saving"] {
  border-color: #dfd7ec;
  color: #675481;
  background: #f8f5fc;
}

.business-settings-save-state[data-state="error"] {
  border-color: #efd1d3;
  color: #923f46;
  background: #fff6f6;
}

.business-settings-save-state > button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.business-settings-save-check,
.business-settings-save-error-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: #55aa91;
  font-size: 0.62rem;
}

.business-settings-save-error-icon {
  background: #cc6a72;
}

.business-settings-save-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(103, 84, 129, 0.22);
  border-top-color: #675481;
  border-radius: 50%;
  animation: business-settings-save-spin 700ms linear infinite;
}

@keyframes business-settings-save-spin {
  to {
    transform: rotate(1turn);
  }
}

.business-policy-readonly {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.business-policy-readonly > section {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e4dfe7;
  border-radius: 14px;
  background: #faf9fb;
}

.business-policy-readonly :is(h4, p, ul) {
  margin: 0;
}

.business-policy-readonly h4 {
  color: #6f6677;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-policy-readonly :is(p, ul) {
  margin-top: 9px;
  color: #514a58;
  font-size: 0.72rem;
  line-height: 1.5;
}

.business-policy-readonly ul {
  padding-left: 17px;
}

.business-policy-readonly li + li {
  margin-top: 6px;
}

.business-policy-readonly-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1060px) {
  .business-policy-term-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-policy-term-group:last-child {
    grid-column: 1 / -1;
  }

  .business-policy-readonly {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .business-policy-term-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-policy-term-group:last-child {
    grid-column: auto;
  }

  .business-policy-control-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-cancellation-policy .business-policy-term-group,
  .business-booking-cancellation-policy
    .business-policy-term-group
    > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-custom-policy-header {
    align-items: flex-start;
  }

  .business-custom-policy-item {
    grid-template-columns: 26px minmax(0, 1fr) 36px;
  }

  .business-settings-policy-header {
    display: grid;
  }

  .business-settings-save-state {
    justify-self: start;
  }

  .business-policy-readonly,
  .business-policy-readonly-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-settings-save-spinner {
    animation-duration: 1.5s;
  }
}

/* Booking-change context and the persistent workspace notification center. */
.business-booking-change {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(105, 82, 177, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbf9ff, #f4f8f7);
}

.business-booking-change > header,
.business-booking-change > header > div,
.business-booking-change-times > div {
  display: grid;
  gap: 4px;
}

.business-booking-change > header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.business-booking-change > header span,
.business-booking-change-times span {
  color: #756f7d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-booking-change > header strong {
  color: #292430;
  font-size: 1rem;
}

.business-booking-change > header b {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eee8ff;
  color: #6048a4;
  font-size: 0.72rem;
  white-space: nowrap;
}

.business-booking-change.needs-decision > header b {
  background: #fff0d6;
  color: #8a5b06;
}

.business-booking-change-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.business-booking-change-times > div {
  height: 100%;
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.business-booking-change-times strong {
  color: #312b38;
  line-height: 1.35;
}

.business-booking-change-times > i {
  color: #735cba;
  font-size: 1.1rem;
  font-style: normal;
}

.business-booking-change > p {
  margin: 0;
  color: #68616f;
  font-size: 0.86rem;
  line-height: 1.5;
}

.business-booking-change.is-compact {
  position: relative;
  z-index: 2;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.business-booking-change.is-compact > header strong {
  font-size: 0.9rem;
}

.business-booking-change.is-compact .business-booking-change-times > div {
  padding: 9px 10px;
}

.business-booking-change.is-compact .business-booking-change-times strong {
  font-size: 0.82rem;
}

.business-notifications-page {
  display: grid;
  gap: 18px;
}

.business-notification-summary {
  display: grid;
  grid-template-columns: repeat(2, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(89, 143, 126, 0.2);
  border-radius: 18px;
  background: linear-gradient(120deg, #f6fbf9, #faf8ff);
}

.business-notification-summary > div {
  display: grid;
  grid-template-columns: auto auto;
  min-height: 54px;
  align-content: center;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(111, 83, 190, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.business-notification-summary span {
  color: #696270;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-notification-summary strong {
  color: #5f48a7;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.business-notification-summary p {
  margin: 0;
  padding-inline: 4px;
  color: #615b68;
  font-size: 0.88rem;
  line-height: 1.45;
}

.business-notification-filters {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.business-notification-filter {
  --notification-filter-color: #635b69;
  --notification-filter-soft: #f4f1f6;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #ded8e3;
  border-radius: 999px;
  background: #fff;
  color: #5e5764;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.business-notification-filter.is-action {
  --notification-filter-color: #87500d;
  --notification-filter-soft: #fff3de;
}

.business-notification-filter.is-changes {
  --notification-filter-color: #6349a8;
  --notification-filter-soft: #f1ecfc;
}

.business-notification-filter.is-messages {
  --notification-filter-color: #1e6c5d;
  --notification-filter-soft: #e8f7f2;
}

.business-notification-filter.is-bookings {
  --notification-filter-color: #315f96;
  --notification-filter-soft: #eaf3fc;
}

.business-notification-filter.is-other {
  --notification-filter-color: #655f69;
  --notification-filter-soft: #f2f0f3;
}

.business-notification-filter:hover {
  transform: translateY(-1px);
  border-color: color-mix(
    in srgb,
    var(--notification-filter-color) 45%,
    #ded8e3
  );
}

.business-notification-filter:focus-visible {
  outline: 3px solid rgba(104, 78, 174, 0.22);
  outline-offset: 2px;
}

.business-notification-filter.is-active {
  border-color: color-mix(
    in srgb,
    var(--notification-filter-color) 48%,
    transparent
  );
  background: var(--notification-filter-soft);
  color: var(--notification-filter-color);
}

.business-notification-filter b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #f0edf2;
  color: #625b67;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.business-notification-filter.is-active b {
  background: rgba(255, 255, 255, 0.8);
  color: inherit;
}

.business-notification-results {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.business-notification-results > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.business-notification-results > header strong {
  color: #332e37;
  font-size: 0.88rem;
}

.business-notification-results > header span {
  color: #756e79;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.business-notification-list {
  display: grid;
  gap: 10px;
}

.business-notification-row {
  --notification-color: #625b68;
  --notification-soft: #f3f1f4;
  --notification-border: #dcd7df;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #e2dde8;
  border-radius: 17px;
  background: #fff;
  color: inherit;
  content-visibility: auto;
  contain-intrinsic-size: auto 82px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.business-notification-row.is-category-changes {
  --notification-color: #6349a8;
  --notification-soft: #f1ecfc;
  --notification-border: #cfc1ed;
}

.business-notification-row.is-category-messages {
  --notification-color: #1e6c5d;
  --notification-soft: #e8f7f2;
  --notification-border: #addbce;
}

.business-notification-row.is-category-bookings {
  --notification-color: #315f96;
  --notification-soft: #eaf3fc;
  --notification-border: #b8d2eb;
}

.business-notification-row.is-category-other {
  --notification-color: #655f69;
  --notification-soft: #f2f0f3;
  --notification-border: #d4cfd6;
}

.business-notification-row::before {
  position: absolute;
  inset: 13px auto 13px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: transparent;
  content: "";
}

.business-notification-row.is-unread {
  border-color: var(--notification-border);
  background: linear-gradient(105deg, var(--notification-soft), #fff 36%);
  box-shadow: 0 12px 28px rgba(69, 51, 99, 0.07);
}

.business-notification-row.is-unread::before {
  background: var(--notification-color);
}

.business-notification-row.needs-action {
  border-color: var(--notification-border);
  box-shadow: 0 12px 28px rgba(105, 68, 18, 0.08);
}

.business-notification-row:hover,
.business-notification-row:focus-visible {
  transform: translateY(-1px);
  border-color: var(--notification-border);
  box-shadow: 0 14px 30px rgba(69, 51, 99, 0.11);
}

.business-notification-row:focus-visible {
  outline: 3px solid color-mix(
    in srgb,
    var(--notification-color) 24%,
    transparent
  );
  outline-offset: 2px;
}

.business-notification-row-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--notification-soft);
  color: var(--notification-color);
}

.business-notification-row-icon svg {
  width: 20px;
  height: 20px;
}

.business-notification-row-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-notification-row-copy > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-notification-row-copy small,
.business-notification-row-copy time {
  color: #7c7483;
  font-size: 0.74rem;
}

.business-notification-row-copy small {
  color: var(--notification-color);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-notification-row-copy b {
  padding: 3px 7px;
  border-radius: 999px;
  background: #efeaf4;
  color: #625a69;
  font-size: 0.68rem;
}

.business-notification-row-copy b.is-action {
  background: #fff0d6;
  color: #79500b;
}

.business-notification-row-copy b.is-new {
  background: var(--notification-soft);
  color: var(--notification-color);
}

.business-notification-row-copy strong {
  overflow: hidden;
  color: #2c2731;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-notification-row-copy p {
  overflow: hidden;
  margin: 0;
  color: #66606b;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-notification-row-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--notification-color);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.business-notification-row-action i {
  font-size: 0.95rem;
  font-style: normal;
}

@media (max-width: 700px) {
  .business-booking-change-times {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-change-times > i {
    transform: rotate(90deg);
    justify-self: center;
  }

  .business-notification-row {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .business-notification-row-action {
    grid-column: 2;
  }

  .business-notification-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-notification-summary > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .business-notification-summary p {
    grid-column: 1 / -1;
  }

  .business-notification-row-copy strong,
  .business-notification-row-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-notification-row,
  .business-notification-filter {
    transition: none;
  }
}

/* Bookings workspace periods, search, and customer history deep links. */
.business-bookings-page-header {
  align-items: center;
}

.business-bookings-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.business-bookings-title-row h2 {
  margin: 0;
}

.business-booking-title-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.business-booking-settings-button {
  min-height: 44px;
  gap: 7px;
  white-space: nowrap;
}

.business-booking-settings-form {
  gap: 14px;
}

.business-booking-configuration-stack {
  display: grid;
  gap: 14px;
}

.business-booking-settings-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5dfe9;
  border-radius: 16px;
  background: #fcfbfd;
}

.business-booking-settings-section > header {
  display: grid;
  gap: 3px;
}

.business-booking-settings-section > header > span {
  color: var(--ops-violet);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-booking-settings-section > header h3 {
  margin: 0;
  color: var(--ops-ink);
  font-size: 1rem;
}

.business-booking-deposit-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-booking-deposit-mode {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e3ddea;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.business-booking-deposit-mode:has(input:checked) {
  border-color: #8568c5;
  background: #f7f3ff;
  box-shadow: 0 0 0 2px rgba(124, 92, 190, 0.08);
}

.business-booking-deposit-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-booking-deposit-mode > span {
  position: relative;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 2px solid #c6bdcf;
  border-radius: 50%;
  background: #fff;
}

.business-booking-deposit-mode input:checked + span {
  border-color: #7254b4;
}

.business-booking-deposit-mode input:checked + span::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #7254b4;
}

.business-booking-deposit-mode input:focus-visible + span {
  outline: 3px solid rgba(114, 84, 180, 0.22);
  outline-offset: 2px;
}

.business-booking-deposit-mode strong,
.business-booking-deposit-mode small {
  grid-column: 2;
}

.business-booking-deposit-mode strong {
  color: var(--ops-ink);
  font-size: 0.8rem;
}

.business-booking-deposit-mode small {
  color: var(--ops-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.business-booking-settings-deposit-panel {
  display: none;
  gap: 12px;
  padding-top: 2px;
}

.business-booking-settings-form:has(
    input[name="depositMode"][value="fixed"]:checked
  )
  [data-deposit-panel="fixed"],
.business-booking-settings-form:has(
    input[name="depositMode"][value="proportion"]:checked
  )
  [data-deposit-panel="proportion"],
.business-booking-settings-form:has(
    input[name="depositMode"][value="outside"]:checked
  )
  [data-deposit-panel="outside"] {
  display: grid;
}

.business-booking-outside-deposit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-booking-deposit-due-by {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #e1d9e7;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 0%, #faf8fd 100%);
}

.business-booking-deposit-due-by > legend {
  padding: 0;
  color: var(--ops-ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.business-booking-deposit-due-by > p,
.business-booking-deposit-due-by > small {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.business-booking-deposit-due-by > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.business-booking-deposit-due-by > output {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid #d9ceed;
  border-radius: 11px;
  color: #5d439c;
  background: #f7f3ff;
  font-size: 0.73rem;
  font-weight: 820;
}

.business-booking-policy-image {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #dfd6e7;
  border-radius: 15px;
  color: var(--ops-ink);
  background:
    radial-gradient(circle at 95% 0%, rgba(117, 83, 190, 0.1), transparent 38%),
    linear-gradient(145deg, #fff 0%, #fbf9fe 100%);
  font-size: 0.76rem;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.business-booking-policy-image.is-drag-over {
  border-color: #7355b5;
  background: #f7f2ff;
  box-shadow:
    0 0 0 3px rgba(115, 85, 181, 0.13),
    0 12px 26px rgba(59, 43, 89, 0.1);
}

.business-booking-policy-image-heading {
  display: grid;
  gap: 3px;
}

.business-booking-policy-image-heading > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.business-booking-policy-image-heading p,
.business-booking-policy-image-heading small,
.business-booking-policy-image-status {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.45;
}

.business-booking-policy-image-drop {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 11px;
  border: 1px dashed #c7b8d8;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.business-booking-policy-image-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #6544ad;
  background: linear-gradient(145deg, #efe8ff, #e6f6f1);
}

.business-booking-policy-image-mark svg {
  width: 20px;
  height: 20px;
}

.business-booking-policy-image-drop > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-booking-policy-image-drop strong {
  font-size: 0.76rem;
}

.business-booking-policy-image-drop small {
  color: var(--ops-muted);
  font-size: 0.64rem;
  font-weight: 600;
}

.business-booking-policy-image-drop button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.business-booking-policy-image-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 9px;
  border: 1px solid #e1d9e8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(49, 35, 69, 0.06);
}

.business-booking-policy-image-preview img {
  width: 74px;
  height: 62px;
  object-fit: contain;
  border: 1px solid #e4dce9;
  border-radius: 10px;
  background: #f8f5fa;
}

.business-booking-policy-image-preview figcaption {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-booking-policy-image-preview figcaption :is(strong, span) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-policy-image-preview figcaption strong {
  color: var(--ops-ink);
  font-size: 0.72rem;
}

.business-booking-policy-image-preview figcaption span {
  color: var(--ops-muted);
  font-size: 0.63rem;
  font-weight: 600;
}

.business-booking-policy-image-preview button {
  min-height: 36px;
  padding-inline: 10px;
}

.business-booking-settings-save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #746c7d;
  font-size: 0.68rem;
  font-weight: 760;
}

.business-booking-settings-save-state[data-state="dirty"] {
  color: #7254b4;
}

.business-booking-settings-save-state[data-state="error"] {
  color: #a33f57;
}

.business-booking-settings-footer [data-booking-settings-save] {
  min-width: 128px;
}

.business-booking-settings-help {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.business-refund-policy-slider {
  display: grid;
  gap: 13px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #e4dce9;
  border-radius: 14px;
  background: #fff;
}

.business-refund-policy-sequence {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #6f6677;
  font-size: 0.64rem;
  font-weight: 820;
}

.business-refund-policy-sequence i {
  height: 1px;
  min-width: 18px;
  flex: 1 1 auto;
  background: #ded6e5;
}

.business-refund-slider-list {
  display: grid;
  gap: 10px;
}

.business-refund-slider-row {
  --refund-accent: #5c9f8d;
  --refund-accent-soft: #e6f4f0;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e7e0eb;
  border-radius: 12px;
  background: #fbfafc;
}

.business-refund-slider-row.is-half {
  --refund-accent: #7254b4;
  --refund-accent-soft: #eee9fa;
}

.business-refund-slider-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.business-refund-slider-copy label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-refund-slider-copy label > span {
  color: #4c4453;
  font-size: 0.73rem;
  font-weight: 850;
}

.business-refund-slider-copy label > small {
  color: var(--ops-muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.business-refund-slider-copy output {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--refund-accent) 24%, white);
  border-radius: 999px;
  color: var(--refund-accent);
  background: var(--refund-accent-soft);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.business-refund-slider-control {
  display: grid;
  min-width: 0;
  align-items: center;
  min-height: 32px;
}

.business-refund-range {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  appearance: none;
  direction: rtl;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.business-refund-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--refund-accent) 0 var(--refund-position),
    #e4dfe8 var(--refund-position) 100%
  );
}

.business-refund-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--refund-accent) 0 var(--refund-position),
    #e4dfe8 var(--refund-position) 100%
  );
}

.business-refund-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--refund-accent);
  box-shadow:
    0 0 0 2px var(--refund-accent),
    0 4px 10px rgba(52, 39, 65, 0.18);
  cursor: grab;
}

.business-refund-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--refund-accent);
  box-shadow:
    0 0 0 2px var(--refund-accent),
    0 4px 10px rgba(52, 39, 65, 0.18);
  cursor: grab;
}

.business-refund-range:focus-visible::-webkit-slider-thumb {
  outline: 3px solid color-mix(in srgb, var(--refund-accent) 28%, transparent);
  outline-offset: 3px;
}

.business-refund-range:focus-visible::-moz-range-thumb {
  outline: 3px solid color-mix(in srgb, var(--refund-accent) 28%, transparent);
  outline-offset: 3px;
}

.business-refund-slider-ends {
  display: flex;
  justify-content: space-between;
  padding-inline: 1px;
  color: #746c7d;
  font-size: 0.6rem;
  font-weight: 800;
}

.business-booking-view-switch[data-active="past"]::before {
  transform: translateX(var(--title-view-tab-width));
}

.business-bookings-page-header .business-header-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.business-bookings-search {
  width: clamp(220px, 24vw, 340px);
}

.business-bookings-view-stage {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.business-bookings-filter-toolbar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  align-items: end;
  gap: 12px;
}

.business-bookings-filter-toolbar > .business-filter-row {
  min-width: 0;
  margin: 0;
}

.business-bookings-stylist-filter {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.business-bookings-stylist-filter > span {
  color: #716979;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.business-bookings-stylist-filter select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 38px 8px 12px;
  border: 1px solid #ddd6e4;
  border-radius: 12px;
  color: #3b3441;
  background: #fff;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 760;
  cursor: pointer;
}

.business-bookings-stylist-filter select:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.22);
  outline-offset: 2px;
  border-color: #7760ae;
}

.business-bookings-load-state {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e7e1eb;
  border-radius: 13px;
  color: #706879;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.business-bookings-load-state.is-error {
  color: #8a3449;
  border-color: #efccd5;
  background: #fff8fa;
}

.business-crm-customer-bookings {
  display: grid;
  gap: 16px;
  margin: 18px 22px 0;
}

.business-crm-customer-bookings > section {
  overflow: hidden;
  border: 1px solid #e5dfe9;
  border-radius: 16px;
  background: #fff;
}

.business-crm-customer-bookings > section > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid #ece7ef;
  background: #faf8fc;
}

.business-crm-customer-bookings > section > header > div {
  display: grid;
  gap: 2px;
}

.business-crm-customer-bookings > section > header span {
  color: #6750a4;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-crm-customer-bookings > section > header h3 {
  margin: 0;
  color: #332d39;
  font-size: 0.9rem;
}

.business-crm-customer-bookings > section > header > strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #5d489e;
  background: #eee9f7;
  font-size: 0.68rem;
}

.business-crm-customer-bookings > section > div {
  display: grid;
  padding: 5px 12px;
}

.business-crm-customer-booking {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid #f0ecf2;
  color: #3b3541;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.business-crm-customer-booking:last-child {
  border-bottom: 0;
}

.business-crm-customer-booking:hover {
  background: #f7f3fc;
}

.business-crm-customer-booking:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(105, 80, 164, 0.42);
  outline-offset: -3px;
  border-radius: 10px;
  background: #f7f3fc;
}

.business-crm-customer-booking > span:not(.business-status) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-crm-customer-booking strong {
  overflow: hidden;
  color: #342e39;
  font-size: 0.73rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-crm-customer-booking small {
  overflow: hidden;
  color: #756d7a;
  font-size: 0.64rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-crm-customer-booking .business-status {
  justify-self: end;
  white-space: nowrap;
}

.business-crm-customer-bookings .business-crm-muted,
.business-crm-customer-bookings .business-history-loading {
  margin: 0;
  padding: 16px 4px;
}

.business-crm-booking-error {
  margin: 0;
  padding: 10px 14px 14px;
  color: #8a3449;
  font-size: 0.68rem;
}

.business-crm-booking-pagination {
  display: flex;
  justify-content: center;
  padding: 5px 12px 12px;
}

@media (max-width: 900px) {
  .business-bookings-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-bookings-page-header .business-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .business-bookings-search {
    flex: 1 1 260px;
    width: auto;
  }
}

@media (max-width: 720px) {
  .business-bookings-title-row {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .business-booking-view-switch {
    width: max-content;
  }

  .business-booking-view-switch > button {
    width: var(--title-view-tab-width);
  }

  .business-bookings-filter-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-bookings-stylist-filter {
    width: min(100%, 320px);
  }

  .business-crm-customer-bookings {
    margin-inline: 16px;
  }

  .business-crm-customer-booking {
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  }

  .business-crm-customer-booking .business-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .business-booking-card-appointment {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-card-appointment time {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid
      color-mix(in srgb, var(--stylist-color, #b5482d) 10%, #e5e0e8);
    border-left: 0;
  }
}

/* Customer ownership and lifecycle controls -------------------------------
   Selection stays independent from the dedicated customer-open control, and
   the mutually-exclusive built-in status is visually separate from optional
   custom groups. */
.business-crm-customer-heading,
.business-crm-row-leading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.business-crm-customer-heading > input,
.business-crm-row-leading > input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: #6650b8;
  cursor: pointer;
}

.business-crm-customer-heading > input:focus-visible,
.business-crm-row-leading > input:focus-visible {
  outline: 3px solid rgb(102 80 184 / 22%);
  outline-offset: 3px;
}

.business-crm-row-leading {
  min-width: 225px;
}

.business-crm-customer-cell {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-crm-customer-cell:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(102 80 184 / 18%);
  outline-offset: 3px;
}

.business-crm-table tbody tr.is-selected {
  background: #faf8ff;
  box-shadow: inset 3px 0 #7054c7;
}

.business-header-actions .outline-button.danger:disabled {
  border-color: #ddd7df;
  color: #9b949e;
  background: #f5f3f5;
  box-shadow: none;
  cursor: not-allowed;
}

.business-crm-category-sections {
  display: grid;
  gap: 14px;
}

.business-crm-category-section {
  overflow: hidden;
  border: 1px solid #e7e1ea;
  border-radius: 17px;
  background: #fff;
}

.business-crm-category-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid #ebe6ed;
}

.business-crm-category-section.is-built-in > header {
  background: linear-gradient(110deg, #f3f0ff, #f0faf7);
}

.business-crm-category-section.is-custom > header {
  background: #faf8fb;
}

.business-crm-category-section > header > div {
  display: grid;
  gap: 3px;
}

.business-crm-category-section > header span {
  color: #6b56a7;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-crm-category-section > header h3,
.business-crm-category-section > header p {
  margin: 0;
}

.business-crm-category-section > header h3 {
  color: #332d39;
  font-size: 0.88rem;
}

.business-crm-category-section > header p {
  max-width: 530px;
  color: #716977;
  font-size: 0.65rem;
  line-height: 1.45;
  text-align: right;
}

.business-crm-category-section .business-crm-category-list {
  padding: 12px;
}

.business-crm-category-section-empty {
  margin: 0;
  padding: 20px 16px;
  color: #756d79;
  font-size: 0.68rem;
}

.business-crm-category-members > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-crm-category-member {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border-top: 1px solid #eee9f1;
  background: #fff;
}

.business-crm-category-member:nth-child(even) {
  border-left: 1px solid #eee9f1;
}

.business-crm-category-members > div .business-crm-category-member-open {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 1px 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-crm-category-member-open > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-crm-category-member-open:focus-visible {
  border-radius: 9px;
  outline: 3px solid rgb(102 80 184 / 18%);
  outline-offset: 3px;
}

.business-crm-lifecycle-editor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid
    color-mix(in srgb, var(--crm-customer-classification) 24%, #e6e0e8);
  border-radius: 12px;
  background: color-mix(
    in srgb,
    var(--crm-customer-classification) 5%,
    #fff
  );
}

.business-crm-lifecycle-editor > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-crm-lifecycle-editor > div:first-child > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3d3542;
  font-size: 0.68rem;
}

.business-crm-lifecycle-editor > div:first-child > strong > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--crm-customer-classification);
}

.business-crm-lifecycle-editor small {
  color: #766e79;
  font-size: 0.58rem;
  line-height: 1.4;
}

.business-crm-lifecycle-actions,
.business-crm-import-classification {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.business-crm-lifecycle-actions > button,
.business-crm-import-classification > button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #dcd5e1;
  border-radius: 999px;
  color: #5d5364;
  background: #fff;
  font: inherit;
  font-size: 0.57rem;
  font-weight: 800;
  cursor: pointer;
}

.business-crm-lifecycle-actions > button[aria-pressed="true"],
.business-crm-import-classification > button[aria-pressed="true"] {
  border-color: var(--crm-customer-classification, #7054c7);
  color: color-mix(
    in srgb,
    var(--crm-customer-classification, #7054c7) 78%,
    #29232f
  );
  background: color-mix(
    in srgb,
    var(--crm-customer-classification, #7054c7) 11%,
    #fff
  );
}

.business-crm-lifecycle-actions > button:disabled,
.business-crm-import-classification > button:disabled {
  cursor: default;
}

.business-crm-lifecycle-actions > button:focus-visible,
.business-crm-import-classification > button:focus-visible {
  outline: 3px solid rgb(102 80 184 / 18%);
  outline-offset: 2px;
}

.business-crm-lifecycle-editor.is-compact {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 8px 9px;
}

.business-crm-import-bulk-management {
  display: grid;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #d9cfeb;
  border-radius: 14px;
  background: linear-gradient(115deg, #f6f2ff, #f1faf7);
}

.business-crm-import-bulk-management > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.business-crm-import-bulk-management > header > div {
  display: grid;
  gap: 2px;
}

.business-crm-import-bulk-management :is(h3, p) {
  margin: 0;
}

.business-crm-import-bulk-management h3 {
  color: #3a3240;
  font-size: 0.84rem;
}

.business-crm-import-bulk-management header span {
  color: #6b56a7;
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-crm-import-bulk-management header p {
  color: #716977;
  font-size: 0.61rem;
}

.business-crm-import-bulk-management > div {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.business-crm-import-bulk-management > div > label {
  display: grid;
  min-width: 190px;
  gap: 5px;
  color: #574d5e;
  font-size: 0.58rem;
  font-weight: 800;
}

.business-crm-import-bulk-management select {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #d7cfe0;
  border-radius: 9px;
  color: #39323f;
  background: #fff;
  font: inherit;
}

.business-crm-import-management {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin: 12px 14px 0;
  padding: 12px;
  border: 1px solid #ded6e8;
  border-radius: 12px;
  background: #faf8fc;
}

.business-crm-import-management > div,
.business-crm-import-management > label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
}

.business-crm-import-management > :is(div, label) > span {
  color: #554b5b;
  font-size: 0.59rem;
  font-weight: 820;
}

.business-crm-import-management small {
  color: #756c7a;
  font-size: 0.54rem;
  line-height: 1.4;
}

.business-crm-import-management select {
  width: 100%;
  min-height: 66px;
  padding: 5px;
  border: 1px solid #d9d1df;
  border-radius: 9px;
  color: #3b3440;
  background: #fff;
  font: inherit;
  font-size: 0.63rem;
}

.business-crm-import-management select option {
  padding: 5px 7px;
}

.business-crm-import-management-retry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e4bd72;
  border-radius: 14px;
  color: #654c20;
  background: #fff8e9;
}

.business-crm-import-management-retry > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b87a16;
  font-weight: 900;
}

.business-crm-import-management-retry > div {
  display: grid;
  gap: 3px;
}

.business-crm-import-management-retry :is(strong, p) {
  margin: 0;
}

.business-crm-import-management-retry strong {
  font-size: 0.72rem;
}

.business-crm-import-management-retry p {
  color: #79613a;
  font-size: 0.61rem;
  line-height: 1.45;
}

.business-crm-delete-confirmation > ul {
  display: grid;
  gap: 5px;
  max-height: 170px;
  margin: 0;
  padding: 10px 14px 10px 32px;
  overflow-y: auto;
  border: 1px solid #e7e0e9;
  border-radius: 12px;
  color: #4b424f;
  background: #faf8fb;
  font-size: 0.68rem;
}

.business-crm-delete-confirmation > aside {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid #ebbdc7;
  border-radius: 12px;
  color: #75404d;
  background: #fff5f7;
  font-size: 0.65rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .business-crm-row-leading {
    min-width: 0;
  }

  .business-crm-table tbody tr.is-selected {
    box-shadow:
      inset 3px 0 #7054c7,
      0 10px 24px rgba(47, 37, 66, 0.08);
  }

  .business-crm-category-member:nth-child(even) {
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .business-crm-category-section > header,
  .business-crm-import-bulk-management > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-crm-import-management-retry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .business-crm-import-management-retry > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .business-crm-category-section > header p {
    text-align: left;
  }

  .business-crm-category-members > div,
  .business-crm-import-management {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-import-bulk-management > div > label,
  .business-crm-import-bulk-management > div > button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .business-crm-lifecycle-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-crm-lifecycle-actions,
  .business-crm-lifecycle-actions > button {
    width: 100%;
  }
}

/* Today dashboard ----------------------------------------------------------
   A read-only daily view. Editing stays in Schedule, Customers, and Services
   so every operational change still follows those surfaces' permission rules. */
.business-today-page {
  gap: 20px;
}

.business-service-tile.is-today-target {
  border-color: #7359b9;
  box-shadow:
    0 0 0 4px rgba(103, 80, 184, 0.16),
    0 12px 28px rgba(48, 36, 62, 0.1);
  outline: 0;
}

.business-service-tile.is-today-target:focus-visible {
  box-shadow:
    0 0 0 4px rgba(103, 80, 184, 0.24),
    0 12px 28px rgba(48, 36, 62, 0.1);
}

.business-today-hero {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid #ded7e5;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 92% 16%,
      rgba(115, 84, 190, 0.12),
      transparent 34%
    ),
    linear-gradient(135deg, #fff 0%, #f8f5fc 100%);
  box-shadow: 0 12px 34px rgba(49, 38, 61, 0.055);
}

.business-today-hero > div:first-child {
  min-width: 0;
}

.business-today-hero .eyebrow {
  margin: 0 0 5px;
}

.business-today-hero h2 {
  margin: 0;
  color: var(--ops-ink);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.business-today-hero > div:first-child > p:last-child {
  margin: 8px 0 0;
  color: var(--ops-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.business-today-open-hours {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  min-width: 190px;
  padding: 12px 15px;
  border: 1px solid #dcd4e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.business-today-open-hours span,
.business-today-metric > span,
.business-today-booking small {
  color: var(--ops-muted);
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.business-today-open-hours strong {
  color: var(--ops-ink);
  font-size: 0.8rem;
  line-height: 1.35;
}

.business-today-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}

.business-today-metric {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  min-height: 118px;
  align-content: center;
  overflow: hidden;
  padding: 17px 18px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(47, 37, 58, 0.045);
}

.business-today-metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d8d0e2;
  content: "";
}

.business-today-metric.is-revenue::before {
  background: #4a9e7c;
}

.business-today-metric.is-completed::before {
  background: #57a08a;
}

.business-today-metric.is-cancelled::before {
  background: #d5836e;
}

.business-today-metric.is-no-show::before {
  background: #6d6574;
}

.business-today-metric > strong {
  overflow: hidden;
  color: var(--ops-ink);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-metric > small {
  color: var(--ops-muted);
  font-size: 0.67rem;
  font-weight: 620;
  line-height: 1.35;
}

.business-today-overview {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.business-today-overview.is-owner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.business-today-overview.is-stylist {
  grid-template-columns: minmax(0, 1fr);
}

.business-today-team-panel,
.business-today-notices-panel,
.business-today-hours-panel,
.business-today-chart-panel,
.business-today-schedule-panel {
  min-width: 0;
  padding: 20px;
  border-color: var(--ops-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(47, 37, 58, 0.04);
}

.business-today-hours-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.business-today-hours-panel .business-page-header {
  flex: 1 1 auto;
}

.business-today-team-list,
.business-today-notice-list,
.business-today-groups,
.business-today-booking-list {
  display: grid;
  min-width: 0;
}

.business-today-team-list,
.business-today-notice-list {
  gap: 9px;
  margin-top: 16px;
}

.business-today-team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #e9e4ec;
  border-radius: 13px;
  background: #fcfbfd;
}

.business-today-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #ddd5e4;
  border-radius: 50%;
  color: #5c4f67;
  background: #f0ebf5;
  font-size: 0.75rem;
  font-weight: 800;
}

.business-today-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-today-team-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-today-team-row > div strong {
  overflow: hidden;
  color: var(--ops-ink);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-team-row > div span {
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 0.65rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-team-row > b {
  display: grid;
  justify-items: end;
  color: var(--ops-ink);
  font-size: 0.9rem;
  line-height: 1;
}

.business-today-team-row > b small {
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 0.55rem;
  font-weight: 700;
}

.business-today-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e7e0e9;
  border-radius: 13px;
  background: #fcfbfd;
}

.business-today-notice.is-unconfirmed {
  border-color: #eadbc0;
  background: #fffaf1;
}

.business-today-notice.is-move {
  border-color: #dcd3e8;
  background: #faf8fd;
}

.business-today-notice-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #745a21;
  background: #f6e5bd;
  font-size: 0.72rem;
  font-weight: 850;
}

.business-today-notice.is-move .business-today-notice-icon {
  color: #5b4986;
  background: #e9e2f6;
}

.business-today-notice > div {
  min-width: 0;
}

.business-today-notice > div > strong {
  display: block;
  overflow: hidden;
  color: var(--ops-ink);
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-notice p {
  margin: 3px 0 0;
  color: var(--ops-muted);
  font-size: 0.62rem;
  font-weight: 620;
  line-height: 1.4;
}

.business-today-groups {
  gap: 18px;
  margin-top: 17px;
}

.business-today-booking-group {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.business-today-booking-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 3px;
}

.business-today-booking-group > header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.business-today-group-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ops-violet);
  box-shadow: 0 0 0 4px var(--ops-violet-soft);
}

.business-today-booking-group h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ops-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-booking-group > header > span {
  color: var(--ops-muted);
  font-size: 0.63rem;
  font-weight: 700;
}

.business-today-booking-list {
  gap: 7px;
}

.business-booking-compact.business-today-booking {
  display: grid;
  grid-template-columns: minmax(94px, 0.72fr) minmax(130px, 1.15fr) minmax(
      130px,
      1.15fr
    ) auto auto;
  min-width: 0;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px 13px;
  border: 1px solid #e8e3eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.business-today-booking > time,
.business-today-booking-customer,
.business-today-booking-service {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-today-booking > time > strong {
  color: var(--ops-ink);
  font-size: 0.78rem;
}

.business-today-booking > time > span {
  color: var(--ops-muted);
  font-size: 0.59rem;
  font-weight: 620;
}

.business-today-booking-customer > strong,
.business-today-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ops-ink);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.business-today-link {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #c7bbd5;
  text-underline-offset: 3px;
}

button.business-today-link:hover {
  color: var(--ops-violet);
  text-decoration-color: currentColor;
}

button.business-today-link:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.22);
  outline-offset: 2px;
}

.business-today-booking > .business-status {
  min-width: max-content;
  justify-self: end;
  white-space: nowrap;
}

.business-today-open-booking {
  min-width: max-content;
}

@media (max-width: 1120px) {
  .business-today-overview.is-owner {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-compact.business-today-booking {
    grid-template-columns: minmax(88px, 0.72fr) minmax(120px, 1fr) minmax(
        120px,
        1fr
      ) auto;
  }

  .business-today-booking > .business-status {
    grid-column: 4;
    grid-row: 1;
  }

  .business-today-open-booking {
    grid-column: 4;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .business-today-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .business-today-open-hours {
    min-width: 0;
  }

  .business-today-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-today-hours-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .business-today-team-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .business-today-team-row > button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .business-today-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .business-today-notice > button {
    grid-column: 2;
    justify-self: start;
  }

  .business-today-notice > div > strong {
    white-space: normal;
  }

  .business-booking-compact.business-today-booking {
    grid-template-columns: minmax(86px, 0.72fr) minmax(0, 1fr) auto;
  }

  .business-today-booking-service {
    grid-column: 2;
    grid-row: 2;
  }

  .business-today-booking > .business-status {
    grid-column: 3;
    grid-row: 1;
  }

  .business-today-open-booking {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .business-today-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-today-metric {
    min-height: 100px;
  }

  .business-today-team-panel,
  .business-today-notices-panel,
  .business-today-hours-panel,
  .business-today-chart-panel,
  .business-today-schedule-panel {
    padding: 16px;
  }

  .business-booking-compact.business-today-booking {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .business-today-booking > time,
  .business-today-booking-customer,
  .business-today-booking-service {
    grid-column: 1;
  }

  .business-today-booking > time {
    grid-row: 1;
  }

  .business-today-booking-customer {
    grid-row: 2;
  }

  .business-today-booking-service {
    grid-row: 3;
  }

  .business-today-booking > .business-status {
    grid-column: 2;
    grid-row: 1;
  }

  .business-today-open-booking {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-crm-customer-booking {
    transition: none;
  }
}

/* Today appointment activity --------------------------------------------- */
.business-today-chart-panel {
  --today-chart-booked: #4f7fe8;
  --today-chart-completed: #42a47a;
  --today-chart-cancelled: #da625e;
  --today-chart-no-show: #e4ad2b;
  display: grid;
  gap: 17px;
}

.business-today-chart-header {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.business-today-chart-header > div {
  min-width: 0;
}

.business-today-chart-header .eyebrow {
  margin: 0 0 4px;
}

.business-today-chart-header h2 {
  margin: 0;
  color: var(--ops-ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.business-today-chart-header p:last-child {
  margin: 5px 0 0;
  color: var(--ops-muted);
  font-size: 0.66rem;
  font-weight: 620;
  line-height: 1.4;
}

.business-today-chart-legend {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-today-chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #625a68;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.business-today-chart-legend li > span,
.business-today-chart-tooltip dt > span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: #c8c1cc;
}

.business-today-chart-panel .is-booked {
  background: var(--today-chart-booked);
}

.business-today-chart-panel .is-completed {
  background: var(--today-chart-completed);
}

.business-today-chart-panel .is-cancelled {
  background: var(--today-chart-cancelled);
}

.business-today-chart-panel .is-no-show {
  background: var(--today-chart-no-show);
}

.business-today-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 3px 3px;
  border-radius: 12px;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.business-service-general-save-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e6b2ba;
  border-radius: 10px;
  color: #8f3040;
  background: #fff6f7;
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.45;
}

.business-today-chart-scroll:focus-visible {
  outline: 3px solid rgba(104, 79, 184, 0.2);
  outline-offset: 2px;
}

.business-today-chart {
  position: relative;
  display: grid;
  min-width: 620px;
  grid-template-areas:
    "axis plot"
    ". x-title";
  grid-template-columns: 44px minmax(560px, 1fr);
  grid-template-rows: 230px 18px;
  padding-left: 21px;
}

.business-today-chart-y-title {
  position: absolute;
  top: 96px;
  left: -19px;
  color: #716977;
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transform: rotate(-90deg);
}

.business-today-chart-y-axis {
  position: relative;
  height: 180px;
  grid-area: axis;
  margin-top: 12px;
  border-right: 1px solid #d8d1dd;
}

.business-today-chart-y-axis > span {
  position: absolute;
  right: 8px;
  bottom: var(--today-chart-position);
  color: #7e7583;
  font-size: 0.57rem;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  line-height: 1;
  transform: translateY(50%);
}

.business-today-chart-plot {
  position: relative;
  min-width: 0;
  height: 230px;
  grid-area: plot;
}

.business-today-chart-grid {
  position: absolute;
  inset: 12px 0 38px;
  height: 180px;
  pointer-events: none;
}

.business-today-chart-grid > span {
  position: absolute;
  right: 0;
  bottom: var(--today-chart-position);
  left: 0;
  border-top: 1px dashed #e7e1e9;
}

.business-today-chart-bars {
  position: relative;
  z-index: 1;
  display: grid;
  height: 230px;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: clamp(8px, 1.6vw, 20px);
  padding: 12px 9px 0;
}

.business-today-chart-bar-cell {
  display: grid;
  min-width: 0;
  grid-template-rows: 180px 38px;
  gap: 7px;
}

.business-today-chart-bar {
  position: relative;
  display: flex;
  width: 100%;
  height: 180px;
  align-items: flex-end;
  justify-content: center;
  padding-inline: 7px;
  border-radius: 9px;
}

.business-today-chart-bar:hover,
.business-today-chart-bar:focus-visible {
  z-index: 8;
  outline: 3px solid rgba(104, 79, 184, 0.18);
  outline-offset: 2px;
  background: rgba(104, 79, 184, 0.035);
}

.business-today-chart-stack {
  display: flex;
  width: clamp(28px, 4vw, 50px);
  height: 100%;
  overflow: hidden;
  flex-direction: column-reverse;
  justify-content: flex-start;
  border: 1px solid rgba(100, 87, 111, 0.11);
  border-radius: 8px 8px 4px 4px;
  background: rgba(112, 99, 123, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.business-today-chart-stack > span {
  width: 100%;
  min-height: 0;
  flex: 0 0 var(--today-chart-segment);
  border-top: 1px solid rgba(255, 255, 255, 0.44);
}

.business-today-chart-stack > span:first-child {
  border-top: 0;
}

.business-today-chart-stack > span.is-empty {
  border: 0;
}

.business-today-chart-bar-cell > time {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #746c79;
  font-size: 0.57rem;
  line-height: 1.15;
  text-align: center;
}

.business-today-chart-bar-cell > time strong {
  color: #423a49;
  font-size: 0.62rem;
  font-weight: 760;
}

.business-today-chart-bar-cell > time span {
  white-space: nowrap;
}

.business-today-chart-tooltip {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 20;
  display: grid;
  width: 174px;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: #fff;
  background: rgba(42, 35, 49, 0.97);
  box-shadow: 0 13px 28px rgba(38, 30, 45, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.business-today-chart-bar:hover .business-today-chart-tooltip,
.business-today-chart-bar:focus-visible .business-today-chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.business-today-chart-bar-cell:first-child .business-today-chart-tooltip {
  left: 0;
  transform: translate(0, 5px);
}

.business-today-chart-bar-cell:first-child
  .business-today-chart-bar:hover
  .business-today-chart-tooltip,
.business-today-chart-bar-cell:first-child
  .business-today-chart-bar:focus-visible
  .business-today-chart-tooltip {
  transform: translate(0, 0);
}

.business-today-chart-bar-cell:last-child .business-today-chart-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 5px);
}

.business-today-chart-bar-cell:last-child
  .business-today-chart-bar:hover
  .business-today-chart-tooltip,
.business-today-chart-bar-cell:last-child
  .business-today-chart-bar:focus-visible
  .business-today-chart-tooltip {
  transform: translate(0, 0);
}

.business-today-chart-tooltip > strong {
  overflow: hidden;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-chart-tooltip > span {
  color: #d8d0dc;
  font-size: 0.58rem;
  font-weight: 620;
}

.business-today-chart-tooltip dl {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
}

.business-today-chart-tooltip dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.business-today-chart-tooltip :is(dt, dd) {
  margin: 0;
  font-size: 0.57rem;
}

.business-today-chart-tooltip dt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ded7e2;
}

.business-today-chart-tooltip dt > span {
  width: 7px;
  height: 7px;
}

.business-today-chart-tooltip dd {
  color: #fff;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.business-today-chart-x-title {
  grid-area: x-title;
  justify-self: center;
  color: #716977;
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .business-today-chart-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .business-today-chart-legend {
    justify-content: flex-start;
  }

  .business-today-chart {
    min-width: 540px;
    grid-template-columns: 40px minmax(480px, 1fr);
    padding-left: 18px;
  }

  .business-today-chart-bars {
    grid-template-columns: repeat(7, minmax(55px, 1fr));
    gap: 7px;
    padding-inline: 5px;
  }

  .business-today-chart-x-title {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-today-chart-tooltip {
    transition: none;
  }
}

/* Today timeline ---------------------------------------------------------- */
.business-today-timeline {
  min-width: 0;
  margin-top: 17px;
  border: 1px solid #ded8e5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 0%, rgba(112, 78, 190, 0.09), transparent 34%),
    #fbfafd;
  box-shadow: 0 16px 38px rgba(48, 36, 61, 0.07);
}

.business-today-timeline-scroll {
  max-height: min(720px, 70vh);
  overflow: auto;
  border-radius: inherit;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.business-today-timeline-scroll:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.24);
  outline-offset: 3px;
}

.business-today-timeline-board {
  display: grid;
  min-width: calc(74px + var(--today-staff-count) * 216px);
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: 66px auto;
  grid-template-areas:
    "corner headers"
    "axis columns";
}

.business-today-timeline-corner,
.business-today-timeline-headers {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #dfd9e5;
  background: rgba(252, 250, 254, 0.96);
  backdrop-filter: blur(16px);
}

.business-today-timeline-corner {
  left: 0;
  display: grid;
  grid-area: corner;
  z-index: 35;
  place-items: center;
  border-right: 1px solid #dfd9e5;
  color: #7a7180;
  font-size: 0.61rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-today-timeline-headers {
  display: grid;
  grid-area: headers;
  grid-template-columns: repeat(var(--today-staff-count), minmax(216px, 1fr));
}

.business-today-timeline-header {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-right: 1px solid #e7e2eb;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.business-today-timeline-header > :first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ded6e7;
  border-radius: 50%;
  color: #604b87;
  background: #eee8f7;
  font-size: 0.72rem;
  font-weight: 850;
  object-fit: cover;
}

.business-today-timeline-header > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-today-timeline-header strong,
.business-today-timeline-header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-timeline-header:hover {
  background: rgba(238, 233, 245, 0.72);
}

.business-today-timeline-header:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(103, 80, 184, 0.25);
  outline-offset: -4px;
  background: #f4f0f9;
}

.business-today-timeline-header strong {
  color: #302a37;
  font-size: 0.73rem;
}

.business-today-timeline-header small {
  color: #7b7380;
  font-size: 0.6rem;
  font-weight: 680;
}

.business-today-timeline-axis {
  position: sticky;
  left: 0;
  display: grid;
  height: var(--today-rows-height);
  grid-area: axis;
  grid-auto-rows: var(--today-hour-height);
  z-index: 20;
  border-right: 1px solid #dfd9e5;
  background: rgba(250, 248, 252, 0.96);
}

.business-today-timeline-axis time {
  padding: 8px 10px 0 0;
  color: #817985;
  font-size: 0.59rem;
  font-weight: 720;
  text-align: right;
  transform: translateY(-1px);
}

.business-today-timeline-columns {
  display: grid;
  grid-area: columns;
  grid-template-columns: repeat(var(--today-staff-count), minmax(216px, 1fr));
}

.business-today-timeline-column {
  position: relative;
  min-width: 0;
  height: var(--today-column-height);
  border-right: 1px solid #e5dfea;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 12%, white);
}

.business-today-timeline-slots {
  display: grid;
  height: 100%;
  grid-auto-rows: var(--today-hour-height);
}

.business-today-timeline-slot {
  position: relative;
  border-bottom: 1px solid #eeeaf1;
  cursor: pointer;
}

.business-today-timeline-slot::after {
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px dashed rgba(117, 104, 128, 0.09);
  content: "";
}

.business-today-timeline-slot:hover {
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 42%, transparent);
}

.business-today-timeline-slot:focus-visible {
  z-index: 2;
  outline: 2px solid color-mix(in srgb, var(--stylist-color, #b5482d) 62%, white);
  outline-offset: -3px;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 52%, transparent);
}

.business-today-timeline-events {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.business-today-timeline-column.is-secondary-time-layer
  > .business-calendar-now-line
  > :is(span, time) {
  display: none;
}

.business-today-timeline-event {
  position: absolute;
  top: var(--today-event-top);
  left: calc(var(--today-event-left) + 4px);
  width: calc(var(--today-event-width) - 8px);
  min-height: min(var(--today-event-height), 32px);
  height: max(var(--today-event-height), 32px);
  z-index: 5;
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 2px;
  overflow: visible;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, var(--stylist-color, #b5482d) 34%, white);
  border-left: 3px solid var(--stylist-color, #b5482d);
  border-radius: 10px;
  color: #302a38;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 78%, white);
  box-shadow: 0 7px 16px rgba(53, 40, 67, 0.1);
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow 150ms ease;
}

.business-today-timeline-event:hover,
.business-today-timeline-event:focus-visible {
  z-index: 18;
  outline: 0;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--stylist-color, #b5482d) 18%, transparent),
    0 12px 28px rgba(52, 39, 68, 0.2);
}

.business-today-timeline-event > :is(strong, span, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-timeline-event > strong {
  font-size: 0.7rem;
  line-height: 1.2;
}

.business-today-timeline-event > span,
.business-today-timeline-event > small {
  color: #6f6675;
  font-size: 0.57rem;
  font-weight: 680;
}

.business-today-event-time {
  color: var(--stylist-color, #b5482d) !important;
  font-weight: 830 !important;
}

/* Today is intentionally read-only, but its appointment card language mirrors
   Schedule: lavender means booking, the left rail identifies the stylist, and
   the dot/badge communicate lifecycle status. Keeping these channels separate
   prevents a booking from looking like an ochre Break when a stylist happens
   to use that palette color. */
.business-today-timeline-event.is-booking {
  --today-status-color: #3f73cf;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  column-gap: 7px;
  padding: 5px 7px;
  border-color: #d6caed;
  border-left-color: var(--stylist-color, #b5482d);
  border-left-width: 5px;
  background: #f1ecfb;
  box-shadow: 0 3px 10px rgba(47, 39, 57, 0.09);
  container: today-booking / inline-size;
  isolation: isolate;
}

.business-today-timeline-event.is-booking.status-completed {
  --today-status-color: #2f946c;
}

.business-today-timeline-event.is-booking.status-cancelled {
  --today-status-color: #d4525d;
}

.business-today-timeline-event.is-booking.status-no_show {
  --today-status-color: #d2a020;
}

.business-today-timeline-event.is-booking:is(
    .status-requested,
    .status-proposed
  ) {
  --today-status-color: #7458bc;
}

.business-today-timeline-event.is-booking > .business-booking-stylist-dot {
  width: 9px;
  height: 9px;
  margin: 0;
  border: 1px solid #fff;
  background: var(--today-status-color);
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--today-status-color) 62%, #d6cfdb);
}

.business-today-timeline-event.is-booking
  > .business-booking-event-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.business-today-timeline-event.is-booking
  > .business-booking-event-summary
  > :is(strong, span, small) {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-today-timeline-event.is-booking
  > .business-booking-event-summary
  > strong {
  flex: 0 1 auto;
  color: #2f2933;
  font-size: 0.68rem;
  font-weight: 900;
}

.business-today-timeline-event.is-booking
  > .business-booking-event-summary
  > span {
  flex: 0 1 auto;
  color: #655e69;
  font-size: 0.6rem;
  font-weight: 700;
}

.business-today-timeline-event.is-booking
  > .business-booking-event-summary
  > .business-today-event-time {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
}

.business-today-booking-status {
  min-width: max-content;
  padding: 2px 5px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--today-status-color) 84%, #27212d) !important;
  background: color-mix(in srgb, var(--today-status-color) 13%, #fff);
  font-size: 0.52rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.business-today-timeline-event.is-booking.is-history {
  opacity: 0.88;
  background: #f1ecfb;
  box-shadow: 0 2px 8px rgba(47, 39, 57, 0.06);
}

@container today-booking (max-width: 300px) {
  .business-today-booking-status {
    position: absolute;
    width: 1px;
    min-width: 0;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .business-today-timeline-event.is-booking
    > .business-booking-event-summary
    > strong {
    flex: 1 1 auto;
  }
}

.business-today-timeline-event.is-block {
  border-style: dashed;
  border-left-style: solid;
  color: #615968;
  background: rgba(242, 239, 244, 0.92);
  box-shadow: none;
}

.business-today-timeline-event.is-block.is-break {
  border-color: #c9b27c;
  border-left-color: #af8e3f;
  background: #fbf6e8;
}

.business-today-timeline-event.is-history {
  opacity: 0.58;
  background: #f3f1f4;
  box-shadow: none;
}

.business-today-event-tooltip {
  position: fixed;
  inset: auto;
  top: var(--today-tooltip-top, 12px);
  left: var(--today-tooltip-left, 50vw);
  z-index: 60;
  display: grid;
  width: min(260px, calc(100vw - 44px));
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: #fff;
  background: rgba(41, 34, 48, 0.96);
  box-shadow: 0 16px 34px rgba(35, 27, 44, 0.28);
  opacity: 0;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.business-today-event-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: rgba(41, 34, 48, 0.96);
  content: "";
  transform: translateX(-50%);
}

.business-today-timeline-event:hover > .business-today-event-tooltip,
.business-today-timeline-event:focus-visible > .business-today-event-tooltip,
.business-today-timeline-event:focus-within > .business-today-event-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.business-today-event-tooltip:popover-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.business-today-event-tooltip > strong {
  font-size: 0.76rem;
}

.business-today-event-tooltip > span {
  color: #d8d0dc;
  font-size: 0.66rem;
}

.business-today-event-tooltip dl {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
}

.business-today-event-tooltip dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.business-today-event-tooltip :is(dt, dd) {
  margin: 0;
  color: #d8d0dc;
  font-size: 0.61rem;
  line-height: 1.35;
}

.business-today-event-tooltip dd {
  color: #fff;
  font-weight: 720;
  text-align: right;
}

@media (max-width: 760px) {
  .business-today-timeline-board {
    min-width: calc(62px + var(--today-staff-count) * 260px);
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .business-today-timeline-headers,
  .business-today-timeline-columns {
    grid-template-columns: repeat(var(--today-staff-count), minmax(260px, 1fr));
  }

  .business-today-timeline-scroll {
    max-height: min(660px, 68vh);
    -webkit-overflow-scrolling: touch;
  }
}

@media (hover: none) and (pointer: coarse) {
  .business-today-timeline-event {
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-today-timeline-event,
  .business-today-event-tooltip {
    transition: none;
  }

}

.business-readonly-value {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e0e8;
  border-radius: 10px;
  background: #f6f4f7;
  color: #514a58;
  overflow-wrap: anywhere;
}
.business-readonly-field {
  align-content: start;
}
.business-readonly-field > strong {
  display: block;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #e5e0e8;
  border-radius: 10px;
  background: #f6f4f7;
  color: #332d38;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.business-readonly-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d9eee7;
  border-radius: 12px;
  background: #f4fbf8;
  color: #48665d;
  line-height: 1.5;
}
.business-switch {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 48px;
  color: #514a58;
  font-size: 0.82rem;
}
.business-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.business-switch > span {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #ccc6d0;
  transition: background 0.18s ease;
}
.business-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}
.business-switch input:checked + span {
  background: var(--ops-mint-strong);
}
.business-switch input:checked + span::after {
  transform: translateX(18px);
}
.business-switch input:focus-visible + span {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}
.business-switch small {
  grid-column: 2;
  color: var(--ops-muted);
  font-weight: 400;
}
.business-role-explainer,
.business-account-identity {
  padding: 13px;
  border-radius: 12px;
  background: var(--ops-violet-soft);
}
.business-role-explainer p {
  margin: 4px 0 0;
  color: #685f74;
  font-size: 0.78rem;
  line-height: 1.5;
}
.business-account-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.business-stylist-account-identity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.business-stylist-account-identity > div > span {
  color: var(--ops-violet);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.business-stylist-account-identity > div > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-invitation-detail {
  display: grid;
  gap: 13px;
}
.business-invitation-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid #eeeaf0;
}
.business-invitation-detail > div > span {
  color: var(--ops-muted);
}
.business-copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
.business-copy-field > span {
  grid-column: 1 / -1;
  color: var(--ops-muted);
  font-size: 0.76rem;
}
.business-copy-field input {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #dcd6e1;
  border-radius: 10px;
}

.business-schedule-configuration > header > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.business-schedule-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.business-schedule-rule {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ops-ink);
  text-align: left;
}
.business-schedule-rule > span {
  color: var(--ops-violet);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.business-schedule-rule small {
  color: var(--ops-muted);
}
.business-schedule-rule b {
  color: var(--ops-mint-strong);
  font-size: 0.7rem;
}
.business-schedule-exceptions {
  margin-top: 20px;
}
.business-schedule-exceptions h4 {
  margin: 0 0 8px;
}
.business-schedule-exceptions > :is(button, article) {
  display: grid;
  grid-template-columns: 110px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 8px;
  border: 0;
  border-top: 1px solid #eeeaf0;
  background: transparent;
  color: var(--ops-ink);
  text-align: left;
}
.business-inline-empty {
  color: var(--ops-muted);
  font-size: 0.82rem;
}

.business-inventory-toolbar .business-segmented {
  overflow-x: auto;
}
.business-inventory-products,
.business-inventory-suppliers,
.business-purchase-orders {
  display: grid;
  gap: 4px;
}
.business-inventory-product {
  display: grid;
  gap: 13px;
}
.business-stock-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.business-stock-number strong {
  font: 700 2rem/1 var(--display-font, Georgia, serif);
}
.business-stock-number span {
  color: var(--ops-muted);
  font-size: 0.78rem;
}
.business-stock-alert {
  margin: 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff0e6;
  color: #8b512b;
  font-size: 0.75rem;
}
.business-inventory-product.low-stock {
  border-color: #e5bda3;
}
.business-inventory-ledger table small {
  display: block;
  margin-top: 3px;
  color: var(--ops-muted);
}
.business-inventory-ledger td.positive {
  color: #247158;
  font-weight: 750;
}
.business-inventory-ledger td.negative {
  color: #9a4141;
  font-weight: 750;
}
.business-inventory-suppliers .business-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.business-supplier-card {
  display: grid;
  gap: 7px;
}
.business-supplier-card > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.business-supplier-card h3,
.business-supplier-card p {
  margin: 0;
}
.business-supplier-card address,
.business-supplier-card p,
.business-supplier-card small {
  color: var(--ops-muted);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.45;
}
.business-purchase-order-list {
  display: grid;
  gap: 12px;
}
.business-purchase-order-list > article {
  display: grid;
  gap: 14px;
}
.business-purchase-order-list article > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.business-purchase-order-list h3,
.business-purchase-order-list header p {
  margin: 3px 0 0;
}
.business-purchase-order-list header span {
  color: var(--ops-violet);
  font-size: 0.7rem;
  font-weight: 800;
}
.business-order-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.business-order-facts span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: #f7f5f8;
  color: var(--ops-muted);
  font-size: 0.7rem;
}
.business-order-facts strong {
  color: var(--ops-ink);
  font-size: 0.85rem;
}
.business-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.business-order-items span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ops-mint);
  color: #356f5d;
  font-size: 0.7rem;
}
.business-po-lines {
  display: grid;
  gap: 10px;
}
.business-po-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 120px 44px;
  gap: 9px;
  align-items: end;
  padding: 10px;
  border: 1px solid #ebe6ed;
  border-radius: 12px;
}
.business-po-line label {
  display: grid;
  gap: 5px;
  color: var(--ops-muted);
  font-size: 0.72rem;
}
.business-po-line :is(input, select) {
  min-width: 0;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid #dcd6e1;
  border-radius: 9px;
  background: #fff;
}
.business-receive-lines {
  display: grid;
  gap: 8px;
}
.business-receive-lines label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid #eeeaf0;
}
.business-receive-lines label span {
  display: grid;
  gap: 3px;
}
.business-receive-lines small {
  color: var(--ops-muted);
}
.business-receive-lines input {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #dcd6e1;
  border-radius: 10px;
}

.business-operations-shell
  :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}
.business-operations-shell :where(button, a) {
  touch-action: manipulation;
}
.business-operations-shell
  :where(button, a.outline-button, a.solid-button, a.ghost-button) {
  min-height: 44px;
}
.business-operations-shell .icon-button {
  min-width: 44px;
  min-height: 44px;
}
.business-operations-shell .business-segmented button,
.business-operations-shell .small {
  min-width: 44px;
  min-height: 44px;
}
.business-operations-shell .danger {
  color: #953d49;
}
.business-operations-shell .solid-button.danger {
  background: #9d4350;
  color: #fff;
}

.business-operations-shell .outline-button.danger {
  border-color: #d7aab0;
  color: #8d3542;
  background: #fff;
}

.business-operations-shell .outline-button.danger:hover {
  border-color: #b95f6b;
  background: #fff5f6;
}

@media (max-width: 1180px) {
  .business-team-grid,
  .business-service-catalog,
  .business-inventory-product-grid,
  .business-inventory-suppliers .business-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-schedule-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-context-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-context-switcher label {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .business-service-category-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .business-service-board {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .business-service-visual-grid {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 820px) {
  .business-list-toolbar {
    flex-wrap: wrap;
  }
  .business-list-toolbar .search-field {
    width: 100%;
  }
  .business-invitations-panel article {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .business-invitations-panel article time {
    grid-column: 1;
  }
  .business-po-line {
    grid-template-columns: minmax(0, 1fr) 90px 100px 44px;
  }
  .business-week-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  .business-week-grid > section {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ops-line);
  }
  .business-week-grid section > div {
    min-height: 64px;
  }
}

@media (max-width: 640px) {
  .dashboard-context-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-context-switcher label {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 5px;
  }

  .dashboard-context-switcher label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .business-operations-shell {
    gap: 16px;
  }
  .business-team-grid,
  .business-service-catalog,
  .business-inventory-product-grid,
  .business-inventory-suppliers .business-card-grid,
  .business-schedule-rules {
    grid-template-columns: 1fr;
  }
  .business-team-card > header {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .business-team-card > header .business-team-header-meta {
    grid-column: 2;
    max-width: none;
    justify-content: flex-start;
  }
  .business-list-toolbar > label:not(.search-field) {
    flex: 1;
  }
  .business-list-toolbar > label:not(.search-field) select {
    flex: 1;
  }
  .business-list-toolbar .business-segmented {
    width: 100%;
    overflow-x: auto;
  }
  .business-list-toolbar .business-segmented button {
    flex: 1;
    min-width: max-content;
  }
  .business-invitations-panel > header,
  .business-schedule-configuration > header,
  .business-inventory-page section > header,
  .business-po-lines > header {
    display: grid;
  }
  .business-invitations-panel article {
    grid-template-columns: 1fr auto;
  }
  .business-schedule-exceptions > :is(button, article) {
    grid-template-columns: 88px auto;
  }
  .business-schedule-exceptions > :is(button, article) > span:last-child {
    grid-column: 1 / -1;
  }
  .business-modal-layer {
    align-items: end;
    padding: 0;
  }
  .business-modal {
    width: 100%;
    max-height: 92dvh;
    padding: 18px;
    border-radius: 20px 20px 0 0;
  }
  .business-modal-form > footer {
    bottom: -18px;
    margin: 2px -18px -18px;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  }
  .business-modal-form > footer > span {
    display: none;
  }
  .business-modal-form > footer button {
    flex: 1;
  }
  .business-order-facts {
    grid-template-columns: 1fr;
  }
  .business-po-line {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .business-po-line label {
    grid-column: 1;
  }
  .business-po-line .icon-button {
    grid-column: 2;
    grid-row: 1;
  }
  .business-receive-lines label {
    grid-template-columns: minmax(0, 1fr) 95px;
  }
  .business-copy-field {
    grid-template-columns: 1fr;
  }
}

.business-service-simple-row.is-readonly {
  grid-template-columns: 8px minmax(0, 1fr);
  padding-inline: 10px;
}

.business-team-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  width: 100%;
  gap: 8px;
}

.business-team-card-actions > :is(button, a) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding-inline: 12px;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.business-service-simple-row.is-stylist-service {
  grid-template-columns: 8px minmax(0, 1fr) auto;
}

.business-service-simple-stylist-state {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-width: 0;
}

.business-service-simple-stylist-state b,
.business-service-simple-stylist-state small {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.business-service-simple-stylist-state.is-assigned b {
  color: #236a58;
  background: #e5f6f0;
}

.business-service-simple-stylist-state.is-assigned small {
  color: #4f3d83;
  background: #f0ecf9;
}

.business-service-simple-stylist-state.is-unassigned b {
  color: #756e79;
  background: #f1eef2;
}

.business-service-own-assignment {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-top: 3px;
  color: #716a76;
  font-size: 0.65rem;
}

.business-service-own-assignment > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  background: #f0edf2;
  font-size: 0.68rem;
  font-weight: 850;
}

.business-service-own-assignment > strong {
  font-size: 0.67rem;
}

.business-service-own-assignment > small {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #59448f;
  background: #f0ecf9;
  font-size: 0.56rem;
  font-weight: 780;
}

.business-service-own-assignment.is-assigned {
  color: #286e5c;
}

.business-service-own-assignment.is-assigned > span {
  color: #226653;
  background: #def3ec;
}

.business-service-tile.is-stylist-service.is-unassigned {
  border-color: #ebe7ec;
  box-shadow: 0 5px 16px rgba(43, 34, 55, 0.025);
}

@media (max-width: 560px) {
  .business-service-simple-stylist-state {
    gap: 5px;
  }

  .business-service-simple-stylist-state b,
  .business-service-simple-stylist-state small {
    padding-inline: 7px;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-operations-shell *,
  .business-modal * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Calendar availability states and seven-day routine editor */
.business-calendar-surface {
  min-width: 0;
  max-width: 100%;
}

.business-week-day-columns > section,
.business-day-timeline,
.business-day-staff-column,
.business-day-staff-grid {
  position: relative;
  isolation: isolate;
}

.business-calendar-salon-availability,
.business-calendar-stylist-availability,
.business-calendar-availability-state {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.business-calendar-salon-availability {
  z-index: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(82, 73, 88, 0.025) 0 8px,
      rgba(82, 73, 88, 0.07) 8px 9px
    ),
    #f8f7f8;
}

.business-calendar-salon-open-window {
  position: absolute;
  top: var(--availability-top, 0);
  right: 0;
  left: 0;
  height: var(--availability-height, 0);
  min-height: 1px;
  border-block: 1px solid rgba(42, 146, 117, 0.24);
  background: rgba(218, 244, 235, 0.86);
  box-shadow: inset 3px 0 0 rgba(42, 146, 117, 0.42);
}

.business-calendar-salon-open-window > small {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 1;
  max-width: calc(100% - 14px);
  overflow: hidden;
  color: #307b67;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-salon-open-window.is-custom {
  border-color: rgba(101, 75, 172, 0.5);
  background: rgba(238, 233, 251, 0.92);
  box-shadow: inset 3px 0 0 rgba(101, 75, 172, 0.48);
}

.business-calendar-salon-open-window.is-custom > small {
  color: #5d4797;
}

.business-calendar-salon-availability.is-hours-navigation {
  z-index: 4;
}

.business-calendar-salon-availability.is-hours-navigation
  .business-calendar-salon-open-window {
  pointer-events: auto;
  cursor: pointer;
}

.business-calendar-salon-availability.is-hours-navigation
  .business-calendar-salon-open-window:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(47, 117, 95, 0.52);
  outline-offset: -3px;
}

.business-calendar-salon-availability.is-context-only {
  background: transparent;
}

.business-calendar-salon-availability.is-context-only
  .business-calendar-salon-open-window {
  right: auto;
  width: 5px;
  border-block: 0;
  background: rgba(42, 146, 117, 0.72);
  box-shadow: none;
}

.business-calendar-salon-availability.is-context-only
  .business-calendar-salon-open-window.is-custom {
  background: rgba(101, 75, 172, 0.72);
}

.business-calendar-salon-availability.is-context-only
  .business-calendar-salon-open-window
  > small {
  display: none;
}

.business-calendar-stylist-availability {
  z-index: 1;
}

.business-calendar-stylist-availability.is-team-overview {
  z-index: 1;
  overflow: hidden;
}

.business-calendar-stylist-working-window {
  position: absolute;
  top: var(--availability-top, 0);
  right: 3px;
  left: 3px;
  height: var(--availability-height, 0);
  min-height: 2px;
  border: 1px solid
    color-mix(in srgb, var(--stylist-color, #b5482d) 34%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 62%, transparent);
  box-shadow: inset 3px 0 0
    color-mix(in srgb, var(--stylist-color, #b5482d) 72%, transparent);
}

.business-calendar-stylist-working-window.is-added {
  border-style: dashed;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 78%, #fff);
}

.business-calendar-stylist-availability.is-team-overview
  .business-calendar-stylist-working-window {
  right: auto;
  left: calc(var(--availability-left, 0%) + 2px);
  width: calc(var(--availability-width, 100%) - 4px);
  min-width: 2px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 70%, transparent);
  box-shadow: inset 2px 0 0 var(--stylist-color, #b5482d);
}

.business-calendar-availability-state {
  z-index: 2;
  display: grid;
  place-items: start center;
  padding-top: 12px;
  color: #746d78;
}

.business-calendar-availability-state > span {
  position: sticky;
  top: 8px;
  z-index: 1;
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid rgba(84, 76, 90, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(47, 40, 52, 0.06);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-availability-state.is-salon-closed,
.business-day-off-duty-layer.is-salon-closed {
  color: #68616c;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(83, 75, 88, 0.08) 0 8px,
      rgba(83, 75, 88, 0.18) 8px 10px
    ),
    rgba(239, 237, 240, 0.88);
}

.business-calendar-availability-state.is-stylist-off,
.business-day-off-duty-layer.is-stylist-off {
  color: #725f4b;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(154, 119, 74, 0.035) 0 8px,
      rgba(154, 119, 74, 0.14) 8px 10px
    ),
    #fff9ef;
}

.business-calendar-availability-state.is-stylist-off > span,
.business-day-off-duty-layer.is-stylist-off > span {
  border-color: rgba(153, 112, 62, 0.22);
  background: rgba(255, 249, 238, 0.94);
}

.business-routine-week-grid > .business-hours-day.is-salon-closed {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(83, 75, 88, 0.045) 0 8px,
      rgba(83, 75, 88, 0.11) 8px 9px
    ),
    #f2f0f2;
}

.business-routine-week-grid > .business-hours-day.is-stylist-off {
  background: #fffaf1;
}

.business-routine-week-grid.is-stylist-routine
  > .business-hours-day.is-stylist-off
  .business-hours-selection {
  background: #b2a38f;
}

.business-routine-week-grid
  > .business-hours-day.is-salon-closed
  .business-hours-selection {
  background: #aaa4ad;
}

.business-week-drop-grid,
.business-day-staff-slots,
.business-day-timeline-grid .business-time-row {
  position: relative;
  z-index: 3;
}

/* While a range is being dragged, lift the whole hour-row interaction layer
   above existing appointments. The reserved right lane remains the reliable
   gesture target, while the selected range is painted across the full row. */
.business-week-drop-grid:has(> .is-creating-booking),
.business-day-staff-slots:has(> .is-creating-booking),
.business-day-timeline-grid .business-time-row:has(> .is-creating-booking) {
  z-index: 9;
}

/* Bookings keeps working time neutral, but closed time must still be legible.
   Salon closure is the stronger gray; a stylist's off-hours use the quieter
   gray underneath it so the two states remain distinct without Hours colors. */
.business-booking-closure-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.business-booking-closure-band {
  position: absolute;
  top: var(--booking-closure-top, 0);
  right: 0;
  left: 0;
  height: var(--booking-closure-height, 0);
  min-height: 1px;
}

.business-booking-closure-band.is-stylist-not-working {
  z-index: 1;
  border-block: 1px solid rgba(95, 88, 101, 0.055);
  background: #f2f1f3;
}

.business-booking-closure-band.is-salon-closed {
  z-index: 2;
  border-block: 1px solid rgba(82, 75, 87, 0.1);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(79, 72, 84, 0.025) 0 8px,
      rgba(79, 72, 84, 0.065) 8px 9px
    ),
    #e6e4e7;
}

.business-week-event,
.business-day-event,
.business-date-hours-window,
.business-team-hours-window {
  z-index: 6;
}

.business-date-hours-window.is-salon-closed {
  border-color: rgba(92, 84, 98, 0.26);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(91, 82, 97, 0.08) 0 8px,
      rgba(91, 82, 97, 0.17) 8px 10px
    ),
    #efedef;
  box-shadow: inset 3px 0 0 rgba(88, 79, 94, 0.34);
}

.business-date-hours-window.is-stylist-off {
  border-color: rgba(154, 119, 74, 0.24);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(154, 119, 74, 0.025) 0 9px,
      rgba(154, 119, 74, 0.1) 9px 10px
    ),
    rgba(255, 249, 238, 0.86);
  box-shadow: inset 3px 0 0 rgba(157, 119, 70, 0.3);
}

.business-day-staff-column.is-salon-closed .business-day-staff-grid {
  background: #efedef;
}

.business-day-staff-column.is-off-duty:not(.is-salon-closed)
  .business-day-staff-grid {
  background: #fbf7ef;
}

.business-day-staff-header.is-salon-closed {
  color: #6c6570;
  background: #efedef;
}

.business-day-staff-header.is-off-duty:not(.is-salon-closed) {
  color: #735f48;
  background: #fcf7ee;
  opacity: 1;
}

.business-day-salon-open-window {
  background: rgba(215, 242, 233, 0.88);
}

.business-day-salon-closed-window {
  position: absolute;
  top: var(--salon-closed-top, 0);
  right: 0;
  left: 0;
  display: grid;
  height: var(--salon-closed-height, 0);
  min-height: 1px;
  place-items: start center;
  padding-top: 12px;
  color: #6c6570;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(82, 76, 86, 0.035) 0 8px,
      rgba(82, 76, 86, 0.1) 8px 9px
    ),
    #e7e5e8;
  pointer-events: none;
}

.business-day-salon-closed-window > small {
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid rgba(84, 76, 90, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-day-off-duty-layer.is-within-salon-hours {
  top: var(--off-duty-top, 0);
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--off-duty-height, 0);
  min-height: 1px;
}

.business-day-shift-window {
  z-index: 1;
  border-color: color-mix(
    in srgb,
    var(--stylist-color, #b5482d) 38%,
    transparent
  );
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 66%, transparent);
  box-shadow: inset 3px 0 0
    color-mix(in srgb, var(--stylist-color, #b5482d) 68%, transparent);
}

.business-day-off-duty-layer {
  z-index: 2;
}

.business-booking-calendar-key .is-salon-closed > i {
  border-color: rgba(92, 84, 98, 0.3);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(83, 75, 88, 0.06) 0 3px,
      rgba(83, 75, 88, 0.2) 3px 4px
    ),
    #efedef;
}

/* A true Monday-Sunday week board. Time runs vertically, matching the calendar. */
@media (min-width: 901px) {
  .business-weekly-hours.business-routine-week-grid {
    --routine-track-height: 384px;
    --routine-track-inset: 14px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    overflow: hidden;
    padding-left: 42px;
    border-radius: 18px;
    background: #fff;
  }

  .business-routine-week-grid > .business-hours-day.is-salon-closed {
    background:
      repeating-linear-gradient(
        -45deg,
        rgba(83, 75, 88, 0.045) 0 8px,
        rgba(83, 75, 88, 0.11) 8px 9px
      ),
      #f2f0f2;
  }

  .business-routine-week-grid > .business-hours-day.is-stylist-off {
    background: #fffaf1;
  }

  .business-routine-week-grid > .business-hours-scale {
    position: absolute;
    top: 109px;
    bottom: auto;
    left: 0;
    z-index: 3;
    display: block;
    width: 40px;
    height: var(--routine-track-height);
    margin: 0;
    color: #8e8792;
    font-size: 0.56rem;
    pointer-events: none;
  }

  .business-routine-week-grid > .business-hours-scale span {
    right: 5px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
  }

  .business-routine-week-grid > .business-hours-scale span:nth-child(1) {
    top: 0;
    transform: none;
  }

  .business-routine-week-grid > .business-hours-scale span:nth-child(2) {
    top: 25%;
  }

  .business-routine-week-grid > .business-hours-scale span:nth-child(3) {
    top: 50%;
  }

  .business-routine-week-grid > .business-hours-scale span:nth-child(4) {
    top: 75%;
  }

  .business-routine-week-grid > .business-hours-scale span:last-child {
    top: 100%;
    right: 5px;
    transform: translateY(-100%);
  }

  .business-routine-week-grid > .business-hours-day {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 76px auto;
    align-content: start;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    padding: 11px 8px 13px;
    border-top: 0;
    border-left: 1px solid #ece8ee;
  }

  .business-routine-week-grid > .business-hours-day:first-of-type {
    border-left: 0;
  }

  .business-routine-week-grid .business-hours-day-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    justify-items: stretch;
    min-width: 0;
    min-height: 76px;
    gap: 4px;
  }

  .business-routine-week-grid .business-hours-day-label > div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .business-routine-week-grid .business-hours-day-label strong,
  .business-routine-week-grid .business-hours-day-label small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .business-routine-week-grid .business-hours-day-label strong {
    color: #393340;
    font-size: clamp(0.68rem, 0.78vw, 0.8rem);
  }

  .business-routine-week-grid .business-hours-day-label small {
    color: #7d7582;
    font-size: 0.54rem;
  }

  .business-routine-week-grid .business-closed-toggle {
    width: 100%;
    min-width: 28px;
    min-height: 24px;
    justify-content: flex-start;
    gap: 3px;
    padding: 0;
    font-size: 0.54rem;
  }

  .business-routine-week-grid .business-closed-toggle input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
  }

  .business-routine-week-grid
    > .business-hours-day:is(.is-salon-closed, .is-stylist-off)
    .business-closed-toggle {
    color: #625968;
    font-weight: 760;
  }

  .business-routine-week-grid .business-hours-editor {
    align-content: start;
    gap: 7px;
  }

  .business-routine-week-grid .business-hours-track {
    height: 412px;
    min-height: 412px;
    overflow: clip;
    border: 1px solid #ece8ee;
    border-radius: 10px;
    background: #fbfafb;
  }

  .business-routine-week-grid .business-hours-rail {
    top: var(--routine-track-inset);
    right: 5px;
    bottom: var(--routine-track-inset);
    left: 5px;
    width: auto;
    height: auto;
    overflow: visible;
    border-inline: 1px solid rgba(104, 94, 109, 0.09);
    background: #fff;
    transform: none;
  }

  .business-routine-week-grid .business-hours-rail::before {
    inset: 0;
    width: auto;
    height: auto;
    background:
      repeating-linear-gradient(
        180deg,
        transparent 0 calc(5.882% - 1px),
        rgba(80, 70, 87, 0.13) calc(5.882% - 1px) 5.882%
      ),
      repeating-linear-gradient(
        180deg,
        transparent 0 calc(1.4705% - 1px),
        rgba(97, 86, 106, 0.055) calc(1.4705% - 1px) 1.4705%
      );
  }

  .business-routine-week-grid .business-hours-selection {
    top: var(--hours-start);
    right: 5px;
    bottom: auto;
    left: 5px;
    width: auto;
    height: calc(var(--hours-end) - var(--hours-start));
    min-height: 3px;
    border: 1px solid rgba(91, 70, 157, 0.42);
    border-radius: 7px;
    background: rgba(111, 85, 181, 0.2);
    box-shadow: inset 3px 0 0 #6f55b5;
  }

  .business-routine-week-grid .business-hours-selection-label {
    position: absolute;
    top: 50%;
    right: 4px;
    left: 7px;
    overflow: hidden;
    color: #4f3e83;
    font-size: clamp(0.52rem, 0.58vw, 0.62rem);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .business-routine-week-grid.is-salon-routine .business-hours-selection {
    border-color: rgba(42, 142, 116, 0.4);
    background: rgba(85, 173, 149, 0.2);
    box-shadow: inset 3px 0 0 #3f9b82;
  }

  .business-routine-week-grid.is-salon-routine .business-hours-selection-label {
    color: #246d5a;
  }

  /* A retained stylist interval is not active while the stylist is off. Keep
     the mint salon boundary visible, but remove the active violet treatment. */
  .business-routine-week-grid.is-stylist-routine
    > .business-hours-day.is-stylist-off
    .business-hours-selection {
    border-color: rgba(142, 118, 83, 0.3);
    border-style: dashed;
    background: rgba(202, 188, 166, 0.16);
    box-shadow: inset 3px 0 0 rgba(151, 128, 94, 0.42);
  }

  .business-routine-week-grid.is-stylist-routine
    > .business-hours-day.is-stylist-off
    .business-hours-selection-label {
    color: #756a5c;
  }

  .business-routine-week-grid
    > .business-hours-day.is-salon-closed
    .business-hours-selection {
    border-color: rgba(96, 88, 102, 0.24);
    border-style: dashed;
    background: rgba(151, 144, 156, 0.12);
    box-shadow: inset 3px 0 0 rgba(101, 93, 107, 0.3);
  }

  .business-routine-week-grid
    > .business-hours-day.is-salon-closed
    .business-hours-selection-label {
    color: #68616c;
  }

  .business-routine-week-grid .business-hours-selection::before,
  .business-routine-week-grid .business-hours-selection::after {
    position: absolute;
    left: 50%;
    z-index: 5;
    width: 28px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #61499f;
    box-shadow:
      0 0 0 1px rgba(72, 53, 123, 0.24),
      0 2px 5px rgba(48, 37, 64, 0.18);
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .business-routine-week-grid .business-hours-selection::before {
    top: 0;
  }

  .business-routine-week-grid .business-hours-selection::after {
    top: 100%;
  }

  .business-routine-week-grid.is-salon-routine
    .business-hours-selection::before,
  .business-routine-week-grid.is-salon-routine
    .business-hours-selection::after {
    background: #348d75;
  }

  .business-routine-week-grid.is-stylist-routine
    > .business-hours-day.is-stylist-off
    .business-hours-selection::before,
  .business-routine-week-grid.is-stylist-routine
    > .business-hours-day.is-stylist-off
    .business-hours-selection::after {
    background: #b2a38f;
    box-shadow:
      0 0 0 1px rgba(116, 99, 76, 0.18),
      0 2px 5px rgba(65, 54, 42, 0.12);
  }

  .business-routine-week-grid
    > .business-hours-day.is-salon-closed
    .business-hours-selection::before,
  .business-routine-week-grid
    > .business-hours-day.is-salon-closed
    .business-hours-selection::after {
    background: #aaa4ad;
    box-shadow:
      0 0 0 1px rgba(83, 76, 88, 0.16),
      0 2px 5px rgba(48, 42, 52, 0.1);
  }

  .business-routine-week-grid
    .business-hours-track:has(
      input[data-business-hours-range="start"]:focus-visible
    )
    .business-hours-selection::before,
  .business-routine-week-grid
    .business-hours-track:has(
      input[data-business-hours-range="end"]:focus-visible
    )
    .business-hours-selection::after {
    outline: 3px solid #6750b8;
    outline-offset: 2px;
  }

  .business-routine-week-grid .business-hours-salon-boundary {
    position: absolute;
    top: var(--salon-hours-start);
    right: 2px;
    bottom: auto;
    left: 2px;
    z-index: 0;
    height: calc(var(--salon-hours-end) - var(--salon-hours-start));
    border-block: 1px dashed rgba(42, 146, 117, 0.5);
    border-inline: 0;
    border-radius: 6px;
    background: rgba(215, 242, 233, 0.5);
    pointer-events: none;
  }

  .business-routine-week-grid .business-hours-salon-break {
    position: absolute;
    top: var(--salon-break-start);
    right: 7px;
    left: 7px;
    z-index: 2;
    width: auto;
    height: calc(var(--salon-break-end) - var(--salon-break-start));
    min-height: 3px;
    border-radius: 999px;
    background: rgba(83, 74, 90, 0.24);
    pointer-events: none;
  }

  .business-routine-week-grid .business-hours-track input[type="range"] {
    top: calc(var(--routine-track-inset) + var(--start-range-center-px));
    right: auto;
    left: 50%;
    width: var(--start-range-length-px);
    max-width: none;
    height: 44px;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }

  .business-routine-week-grid
    .business-hours-track
    input[data-business-hours-range="end"] {
    top: calc(var(--routine-track-inset) + var(--end-range-center-px));
    width: var(--end-range-length-px);
  }

  .business-routine-week-grid
    .business-hours-track
    input[type="range"]::-webkit-slider-thumb {
    width: 34px;
    height: 34px;
    margin-top: -14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    cursor: ns-resize;
  }

  .business-routine-week-grid
    .business-hours-track
    input[type="range"]::-moz-range-thumb {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    cursor: ns-resize;
  }

  .business-routine-week-grid .business-hours-create-zone {
    top: var(--hours-start);
    right: 5px;
    left: 5px;
    width: auto;
    height: calc(var(--hours-end) - var(--hours-start));
    min-height: 2px;
    cursor: row-resize;
    touch-action: pan-x;
  }

  .business-routine-week-grid .business-hours-playhead {
    top: var(--pointer-position, 0%);
    right: 3px;
    bottom: auto;
    left: 3px;
    width: auto;
    height: 1px;
  }

  .business-routine-week-grid .business-hours-playhead output {
    top: 0;
    left: 50%;
    transform: translate(-50%, -110%);
  }

  .business-routine-week-grid .business-hours-provisional,
  .business-routine-week-grid .business-break-track-segment {
    top: var(--provisional-start, var(--break-start));
    right: 8px;
    left: 8px;
    width: auto;
    height: calc(
      var(--provisional-end, var(--break-end)) -
        var(--provisional-start, var(--break-start))
    );
    min-height: 3px;
  }

  .business-routine-week-grid .business-break-track-segment {
    top: var(--break-start);
    height: calc(var(--break-end) - var(--break-start));
    font-size: 0;
  }

  .business-routine-week-grid .business-break-track-item input[type="range"] {
    top: 50%;
    right: auto;
    left: 50%;
    width: var(--routine-track-height);
    height: 38px;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }

  .business-routine-week-grid
    .business-break-track-item
    input[type="range"]::-webkit-slider-thumb {
    width: 25px;
    height: 25px;
    margin-top: -9px;
    border-width: 6px;
  }

  .business-routine-week-grid
    .business-break-track-item
    input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-width: 6px;
  }

  .business-routine-week-grid .business-break-handle-label {
    top: var(--break-start);
    left: calc(50% + 14px);
    transform: translateY(-50%);
  }

  .business-routine-week-grid .business-break-handle-label.end {
    top: var(--break-end);
    left: calc(50% + 14px);
  }

  .business-routine-week-grid .business-hours-meta {
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
  }

  .business-routine-week-grid .business-hours-meta output {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .business-routine-week-grid .business-add-break {
    display: grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    flex: 0 0 30px;
    place-items: center;
    padding: 0;
    border-color: #c9e7dd;
    border-radius: 50%;
    color: #24725e;
    background: #e9f8f3;
    font-size: 0.95rem;
    line-height: 1;
  }

  .business-routine-week-grid .business-add-break:disabled {
    border-color: #ddd8df;
    color: #8b838f;
    background: #f3f1f3;
    box-shadow: none;
    opacity: 0.62;
  }

  .business-routine-week-grid .business-hours-break {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 4px;
    padding: 5px;
    font-size: 0.55rem;
  }

  .business-routine-week-grid .business-hours-break > span {
    grid-column: 1;
    grid-row: 1;
    color: #6f6673;
    font-size: 0.55rem;
    font-weight: 800;
  }

  .business-routine-week-grid .business-hours-break > label {
    display: block;
    grid-column: 1;
    min-width: 0;
  }

  .business-routine-week-grid .business-hours-break > label:first-of-type {
    grid-row: 2;
  }

  .business-routine-week-grid .business-hours-break > label:nth-of-type(2) {
    grid-row: 3;
  }

  .business-routine-week-grid .business-hours-break > i {
    display: none;
  }

  .business-routine-week-grid .business-hours-break input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 2px;
    font-size: 0.55rem;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break
    .icon-button.small {
    box-sizing: border-box;
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .business-routine-week-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .business-routine-week-grid > .business-hours-scale {
    margin: 0 32px 0 136px;
  }

  .business-routine-week-grid > .business-hours-day {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px;
  }

  .business-routine-week-grid .business-hours-day-label {
    min-width: 0;
  }

  .business-routine-week-grid .business-hours-day-label > div {
    display: grid;
    min-width: 0;
  }

  .business-routine-week-grid .business-hours-day-label small {
    overflow: hidden;
    color: #8a828e;
    font-size: 0.56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .business-routine-week-grid
    .business-hours-track
    input[data-business-hours-range="start"] {
    right: auto;
    left: var(--start-range-begin);
    width: var(--start-range-span);
  }

  .business-routine-week-grid
    .business-hours-track
    input[data-business-hours-range="end"] {
    right: auto;
    left: var(--end-range-begin);
    width: var(--end-range-span);
  }

  .business-routine-week-grid .business-hours-break {
    grid-template-columns: auto minmax(88px, 1fr) auto minmax(88px, 1fr) 40px;
    grid-template-rows: auto;
    align-items: end;
  }

  .business-routine-week-grid .business-hours-break > span,
  .business-routine-week-grid .business-hours-break > label,
  .business-routine-week-grid .business-hours-break > i,
  .business-routine-week-grid .business-hours-break > .icon-button {
    display: initial;
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  .business-routine-week-grid .business-hours-break > label {
    display: block;
    min-width: 0;
  }

  .business-routine-week-grid .business-hours-break > .icon-button {
    display: grid;
  }
}

@media (max-width: 560px) {
  .business-routine-week-grid > .business-hours-scale {
    display: none;
  }

  .business-routine-week-grid > .business-hours-day {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 11px 10px;
  }

  .business-routine-week-grid .business-hours-day-label {
    min-height: 34px;
  }

  .business-routine-week-grid .business-hours-break {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px;
    gap: 5px;
    font-size: 0;
  }

  .business-routine-week-grid .business-hours-break > span {
    display: none;
  }

  .business-routine-week-grid .business-hours-break > label:first-of-type {
    grid-column: 1;
  }

  .business-routine-week-grid .business-hours-break > i {
    display: block;
    grid-column: 2;
    font-size: 0.6rem;
  }

  .business-routine-week-grid .business-hours-break > label:nth-of-type(2) {
    grid-column: 3;
  }

  .business-routine-week-grid .business-hours-break > .icon-button {
    grid-column: 4;
  }

  .business-routine-week-grid .business-hours-break .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-calendar-salon-open-window,
  .business-calendar-stylist-working-window,
  .business-calendar-availability-state,
  .business-date-hours-window,
  .business-day-shift-window,
  .business-routine-week-grid .business-hours-day,
  .business-routine-week-grid .business-hours-selection,
  .business-routine-week-grid .business-hours-playhead,
  .business-routine-week-grid .business-break-handle-label,
  .business-routine-week-grid .business-add-break,
  .business-routine-week-grid input[type="range"]::-webkit-slider-thumb,
  .business-routine-week-grid input[type="range"]::-moz-range-thumb {
    animation: none !important;
    transition: none !important;
  }
}

/* Per-stylist booking exception approvals */
.business-stylist-booking-policy {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5dfe9;
  border-radius: 15px;
  background: #fcfbfd;
}

.business-stylist-booking-policy > header > div {
  display: grid;
  gap: 2px;
}

.business-stylist-booking-policy > header :is(span, h3) {
  margin: 0;
}

.business-stylist-booking-policy > header span {
  color: #6953af;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-stylist-booking-policy > header h3 {
  color: #38313d;
  font-size: 0.92rem;
}

.business-stylist-booking-policy-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e7e1ea;
  border-radius: 12px;
  background: #fff;
}

.business-booking-policy-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  cursor: pointer;
}

.business-booking-policy-toggle + .business-booking-policy-toggle {
  border-top: 1px solid #eee9f0;
}

.business-booking-policy-toggle:hover {
  background: #faf8fc;
}

.business-booking-policy-toggle > input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.business-booking-policy-switch {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbc5ce;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.business-booking-policy-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(43, 34, 52, 0.22);
  transition: transform 180ms ease;
}

.business-booking-policy-toggle
  > input:checked
  + .business-booking-policy-switch {
  background: #6d54bb;
}

.business-booking-policy-toggle
  > input:checked
  + .business-booking-policy-switch::after {
  transform: translateX(18px);
}

.business-booking-policy-toggle
  > input:focus-visible
  + .business-booking-policy-switch {
  outline: 3px solid rgba(81, 185, 158, 0.42);
  outline-offset: 3px;
}

.business-booking-policy-copy {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 3px;
  min-width: 0;
}

.business-booking-policy-copy small {
  color: #857b8c;
  font-size: 0.63rem;
  font-weight: 760;
}

.business-booking-policy-copy strong {
  color: #413946;
  font-size: 0.76rem;
  line-height: 1.3;
}

.business-booking-approval-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d8cdee;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf9ff, #f7fffc);
  box-shadow: inset 3px 0 0 #7056b6;
}

.business-booking-approval-card > header,
.business-booking-approval-card > div:not(.business-booking-approval-actions) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.business-booking-approval-card > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-booking-approval-card > header strong {
  color: #37303c;
  font-size: 0.82rem;
}

.business-booking-approval-card > header span,
.business-booking-approval-card > div > :is(time, span) {
  overflow: hidden;
  color: #756d7b;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-approval-badge,
.business-booking-approval-waiting {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #5b4499 !important;
  background: #ede7f8;
  font-size: 0.67rem !important;
  font-weight: 820;
  white-space: nowrap;
}

.business-booking-approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.business-booking-approval-actions > button {
  min-width: 86px;
}

.business-booking-approval-row {
  justify-content: flex-end;
}

.business-booking-approval-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #59468d;
  background: #f1ecfa;
}

.business-booking-approval-context span {
  font-size: 0.74rem;
  font-weight: 800;
}

.business-booking-approval-context small {
  color: #756c82;
  font-size: 0.68rem;
}

@media (max-width: 540px) {
  .business-stylist-booking-policy {
    padding: 11px;
  }

  .business-booking-policy-toggle {
    min-height: 66px;
    padding-inline: 10px;
  }

  .business-booking-approval-card > header,
  .business-booking-approval-card > div:not(.business-booking-approval-actions),
  .business-booking-approval-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-booking-approval-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-booking-approval-actions > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-booking-policy-switch,
  .business-booking-policy-switch::after {
    transition: none;
  }
}

/* Roles: explicit members and permission checkboxes */
.business-role-manager.business-role-workspace {
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.business-role-selector {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4dfe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(43, 34, 55, 0.045);
}

.business-role-selector > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.business-role-selector > header > div {
  display: grid;
  gap: 2px;
}

.business-role-selector :is(h3, p) {
  margin: 0;
}

.business-role-selector h3 {
  color: #332d39;
  font-size: 0.9rem;
}

.business-role-selector p {
  color: #7b747f;
  font-size: 0.75rem;
  line-height: 1.4;
}

.business-role-selector > header > span {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #5f4da0;
  background: #eee9f7;
  font-size: 0.72rem;
  font-weight: 850;
}

.business-role-selector > nav {
  display: grid;
  gap: 6px;
}

.business-role-selector > nav > button {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) 18px;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #514a57;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-role-selector > nav > button:hover {
  border-color: color-mix(in srgb, var(--role-color) 24%, #e2dde6);
  background: color-mix(in srgb, var(--role-color) 4%, #fff);
}

.business-role-selector > nav > button.is-selected {
  border-color: color-mix(in srgb, var(--role-color) 54%, #ded8e2);
  color: color-mix(in srgb, var(--role-color) 72%, #2f2934);
  background: color-mix(in srgb, var(--role-color) 9%, #fff);
  box-shadow: inset 3px 0 0 var(--role-color);
}

.business-role-selector > nav > button:focus-visible,
.business-role-selector-add:focus-visible,
.business-role-member-manage:focus-visible,
.business-role-members-editor input:focus-visible,
.business-access-checkbox:has(input:focus-visible) {
  outline: 3px solid rgba(81, 185, 158, 0.4);
  outline-offset: 2px;
}

.business-role-selector > nav > button > span {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--role-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color) 12%, transparent);
}

.business-role-selector > nav > button > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-role-selector > nav > button strong,
.business-role-selector > nav > button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-role-selector > nav > button strong {
  font-size: 0.72rem;
}

.business-role-selector > nav > button small {
  color: #847c89;
  font-size: 0.72rem;
}

.business-role-selector > nav > button > i {
  color: #918899;
  font-size: 0.9rem;
  font-style: normal;
  text-align: right;
}

.business-role-selector-add {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border: 1px dashed #bcb0d0;
  border-radius: 11px;
  color: #5e4b91;
  background: #faf8fd;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.business-role-selector-add > span {
  font-size: 0.85rem;
}

.business-role-detail {
  min-width: 0;
  animation: business-role-detail-enter 180ms ease-out both;
}

@keyframes business-role-detail-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.business-role-detail > .business-role-card {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: clamp(14px, 1.7vw, 22px);
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--role-color) 25%, #e3dde7);
  border-top: 4px solid var(--role-color);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(43, 34, 55, 0.045);
}

.business-role-card > .business-selected-role-header {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
}

.business-selected-role-header > span {
  width: 13px;
  height: 13px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--role-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--role-color) 13%, transparent);
}

.business-selected-role-header > div:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-selected-role-header :is(p, h3, small) {
  margin: 0;
}

.business-selected-role-header p {
  color: #8a818e;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-selected-role-header h3 {
  color: #302a36;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.business-selected-role-header small {
  max-width: 720px;
  color: #746d79;
  font-size: 0.7rem;
  line-height: 1.45;
}

.business-selected-role-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.business-selected-role-actions > b {
  padding: 6px 9px;
  border-radius: 999px;
  color: #2d6c59;
  background: #e5f4ef;
  font-size: 0.7rem;
  white-space: nowrap;
}

.business-selected-role-members {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e7e2e9;
  border-radius: 13px;
  background: #fbfafc;
}

.business-selected-role-members > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-selected-role-members > header > div:first-child {
  display: grid;
  gap: 2px;
}

.business-selected-role-members > header :is(h4, p) {
  margin: 0;
}

.business-selected-role-members > header h4 {
  color: #3f3845;
  font-size: 0.8rem;
}

.business-selected-role-members > header p {
  color: #817985;
  font-size: 0.72rem;
}

.business-selected-role-members > header > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.business-selected-role-members > header > div:last-child > span {
  color: #77707c;
  font-size: 0.72rem;
  font-weight: 750;
}

.business-selected-role-members > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-selected-role-members > ul > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border: 1px solid #e6e1e8;
  border-radius: 10px;
  background: #fff;
}

.business-role-member-avatar.business-team-avatar {
  width: 28px;
  height: 28px;
  border-width: 2px;
}

.business-selected-role-members > ul > li > strong {
  overflow: hidden;
  color: #443d49;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-selected-role-members > ul > li > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.business-selected-role-members > ul > li > div :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-selected-role-members > ul > li > div strong {
  color: #443d49;
  font-size: 0.76rem;
}

.business-selected-role-members > ul > li > div small {
  color: #847c88;
  font-size: 0.7rem;
}

.business-role-member-manage {
  min-height: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: #645188;
  background: #f2eef8;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 780;
  cursor: pointer;
}

.business-selected-role-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 82px;
  padding: 14px;
  border: 1px dashed #dcd5e0;
  border-radius: 11px;
  color: #7c7481;
  text-align: left;
}

.business-selected-role-empty > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #397766;
  background: #e7f5f0;
}

.business-selected-role-empty > div {
  display: grid;
  gap: 2px;
}

.business-selected-role-empty :is(strong, p) {
  margin: 0;
}

.business-selected-role-empty strong {
  color: #504955;
  font-size: 0.75rem;
}

.business-selected-role-empty p {
  font-size: 0.7rem;
}

.business-role-detail .business-role-access-matrix {
  gap: 12px;
  padding: 14px;
  border-color: #e5dfe8;
}

.business-role-detail .business-role-access-matrix > header strong {
  font-size: 0.88rem;
}

.business-role-detail .business-role-access-matrix > header p {
  font-size: 0.74rem;
}

.business-role-detail .business-access-domain-group > header strong {
  font-size: 0.78rem;
}

.business-role-detail .business-access-domain-group > header small {
  font-size: 0.7rem;
}

.business-role-access-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-role-access-guide > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #655d69;
  background: #f6f3f8;
  font-size: 0.72rem;
}

.business-role-access-guide > span > i {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #6954a4;
  font-size: 0.48rem;
  font-style: normal;
}

.business-role-access-guide > span:last-child > i {
  background: #39816d;
}

.business-role-detail .business-role-access-domains {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.business-role-detail .business-access-domain-group {
  align-self: start;
}

.business-role-detail .business-access-capability {
  grid-template-columns: minmax(0, 1fr) 150px;
  min-height: 66px;
  gap: 10px;
  padding: 9px 11px;
}

.business-role-detail .business-access-capability-copy strong {
  font-size: 0.78rem;
}

.business-role-detail .business-access-capability-copy small {
  display: block;
  overflow: visible;
  font-size: 0.72rem;
  line-height: 1.4;
  -webkit-line-clamp: unset;
}

.business-role-detail .business-access-level-controls,
.business-role-detail .business-access-domain-group > header > span {
  grid-template-columns: repeat(2, 72px);
  gap: 6px;
}

.business-access-checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #dcd6e0;
  border-radius: 9px;
  color: #746c79;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    background-color 140ms ease;
}

.business-access-checkbox > input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #6954a4;
  cursor: pointer;
}

.business-access-checkbox > i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #cfc8d4;
  border-radius: 5px;
  font-size: 0.52rem;
  font-style: normal;
}

.business-access-checkbox > b {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
}

.business-access-checkbox.is-selected {
  border-color: #a899ca;
  color: #503b84;
  background: #f1ecfa;
}

.business-access-checkbox:has(input[data-level="edit"]).is-selected {
  border-color: #7ec6b3;
  color: #286b59;
  background: #e8f6f1;
}

.business-access-checkbox.is-just-changed {
  animation: businessAccessCheckPulse 220ms ease-out;
}

@keyframes businessAccessCheckPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(81, 185, 158, 0.32);
  }

  55% {
    box-shadow: 0 0 0 4px rgba(81, 185, 158, 0.16);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(81, 185, 158, 0);
  }
}

.business-access-checkbox:has(input:disabled),
.business-access-checkbox.is-unavailable {
  color: #aaa3ae;
  background: #f3f1f4;
  cursor: not-allowed;
  opacity: 0.65;
}

.business-role-members-editor {
  display: grid;
  gap: 14px;
  padding: 18px 20px 28px;
}

.business-role-members-editor > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.business-role-members-editor > header > div {
  display: grid;
  gap: 3px;
}

.business-role-members-editor > header :is(strong, p) {
  margin: 0;
}

.business-role-members-editor > header strong {
  color: #403944;
  font-size: 0.78rem;
}

.business-role-members-editor > header p {
  max-width: 520px;
  color: #7a727e;
  font-size: 0.72rem;
  line-height: 1.45;
}

.business-role-members-editor > header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #5f4da0;
  background: #eee9f7;
  font-size: 0.7rem;
  font-weight: 800;
}

.business-role-members-editor > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-role-members-editor > ul > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5e0e7;
  border-radius: 11px;
  background: #fff;
}

.business-role-members-editor > ul > li.is-assigned {
  border-color: #b9dcd2;
  background: #f4fbf8;
}

.business-role-members-editor label {
  position: relative;
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
}

.business-role-members-editor label > input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: #3e8a75;
  cursor: pointer;
}

.business-role-members-editor label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.7;
}

.business-role-members-editor label > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-role-members-editor label > div strong {
  color: #443d49;
  font-size: 0.7rem;
}

.business-role-members-editor label > div small {
  overflow: hidden;
  color: #7f7783;
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.business-role-members-editor > ul > li > button {
  min-height: 36px;
  white-space: nowrap;
}

.business-role-members-editor > footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 1180px) {
  .business-role-manager.business-role-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .business-role-detail .business-role-access-domains {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .business-role-manager.business-role-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-selector {
    position: static;
  }

  .business-role-selector > nav {
    display: flex;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scroll-snap-type: x proximity;
  }

  .business-role-selector > nav > button {
    min-width: 184px;
    scroll-snap-align: start;
  }

  .business-role-selector-add {
    width: max-content;
    min-width: 132px;
    padding-inline: 14px;
  }
}

@media (max-width: 560px) {
  .business-role-detail > .business-role-card {
    padding: 12px;
  }

  .business-role-card > .business-selected-role-header {
    grid-template-columns: 13px minmax(0, 1fr);
  }

  .business-selected-role-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 24px;
  }

  .business-selected-role-members > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-selected-role-members > header > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .business-selected-role-members > ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-access-matrix > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-role-detail .business-access-capability {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-detail .business-access-level-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-access-checkbox {
    min-height: 44px;
  }

  .business-role-members-editor {
    padding-inline: 16px;
  }

  .business-role-members-editor > ul > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-members-editor > ul > li > button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-role-detail,
  .business-role-selector > nav > button,
  .business-access-checkbox {
    animation: none;
    transition: none;
  }
}

.business-required-mark {
  margin-left: 0.22em;
  color: #a83f56;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

/* Services menu workspace: complete category map + overlay editor */
.business-services-page {
  --service-surface: #ffffff;
  --service-canvas: #f7faf8;
  --service-ink: #2f2935;
  --service-muted: #746e79;
  --service-line: #e7e2e9;
  display: grid;
  gap: 18px;
}

.business-services-page > .business-page-header {
  margin-bottom: 0;
}

.business-services-page .business-header-actions {
  align-items: center;
}

.business-service-board {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 16px;
  overflow: visible;
  border: 1px solid var(--service-line);
  border-radius: 20px;
  background: var(--service-surface);
  box-shadow: 0 14px 42px rgba(43, 34, 55, 0.05);
}

.business-service-board-header {
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(320px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eeeaf0;
}

.business-service-board-tools {
  grid-template-columns: minmax(180px, 1fr) auto;
  justify-self: end;
  width: min(680px, 100%);
}

.business-service-category-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.business-service-category-group {
  scroll-margin-top: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid
    color-mix(in srgb, var(--category-color) 20%, var(--service-line));
  border-radius: 17px;
  background: color-mix(in srgb, var(--category-color) 2.5%, #fff);
}

.business-service-category-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.business-service-category-group > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.business-category-swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 40px;
  border-radius: 999px;
  background: var(--category-color);
}

.business-service-category-group h3,
.business-service-category-group h4,
.business-service-category-group p {
  margin: 0;
}

.business-service-category-group h3 {
  color: var(--service-ink);
  font-size: 0.95rem;
}

.business-service-category-group > header p {
  margin-top: 3px;
  color: var(--service-muted);
  font-size: 0.68rem;
}

.business-service-category-lane {
  min-width: 0;
  padding: 10px;
  border: 1px solid #ebe7ed;
  border-radius: 13px;
  background: #fbfafc;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.business-service-category-lane.is-drag-over {
  border-color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 8%, #fff);
  box-shadow: inset 0 0 0 2px
    color-mix(in srgb, var(--category-color) 18%, transparent);
}

.business-service-visual-grid,
.business-services-workbench.has-inspector .business-service-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.business-service-drop-empty {
  grid-column: 1 / -1;
  min-height: 52px;
  margin: 0;
  padding: 16px;
  border: 1px dashed #ddd6e0;
  border-radius: 10px;
  color: #918995;
  font-size: 0.68rem;
  text-align: center;
}

.business-service-tile {
  position: relative;
  display: grid;
  grid-template-columns: 20px 64px minmax(0, 1fr) auto;
  grid-template-rows: minmax(78px, auto);
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: visible;
  padding: 8px;
  border: 1px solid #e6e1e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(43, 34, 55, 0.035);
  cursor: default;
}

.business-service-tile[draggable="true"] {
  cursor: grab;
}

.business-service-tile.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.business-service-drag-handle {
  display: grid;
  align-self: stretch;
  place-items: center;
  color: #aaa2ae;
  font-size: 1rem;
  cursor: grab;
}

.business-service-tile-media {
  width: 64px;
  min-height: 64px;
  aspect-ratio: 1;
  border-radius: 10px;
}

.business-service-tile-media > span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.business-service-tile-copy {
  align-content: center;
  gap: 4px;
  padding: 0;
}

.business-service-tile-copy > button {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.business-service-tile-copy h3 {
  font-size: 0.82rem;
}

.business-service-tile-copy p {
  justify-content: flex-start;
  font-size: 0.65rem;
}

.business-service-tile .business-avatar-stack {
  margin-top: 2px;
}

.business-service-tile > footer {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 2px;
  padding: 0 0 0 8px;
  border: 0;
  border-left: 1px solid #f0edf1;
  background: transparent;
}

.business-service-tile > footer > * {
  min-width: 44px;
  min-height: 36px;
  padding-inline: 8px;
}

.business-services-workbench {
  display: block;
  min-width: 0;
}

.business-services-welcome {
  min-height: 340px;
  border: 1px solid var(--service-line);
  border-radius: 20px;
  background: #fff;
}

.business-service-drawer-layer {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}

.business-service-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(32, 26, 38, 0.38);
  backdrop-filter: blur(2px);
  animation: none;
}

.business-service-inspector {
  position: relative;
  top: auto;
  z-index: 1;
  align-self: stretch;
  width: min(560px, calc(100vw - 48px));
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: clip;
  border: 0;
  border-left: 1px solid #e2dce6;
  border-radius: 0;
  background: #fff;
  box-shadow: -22px 0 64px rgba(35, 27, 44, 0.2);
  animation: none;
}

.business-service-inspector > form {
  min-height: 100%;
  padding: 0 20px 88px;
}

.business-service-inspector > form > .business-service-inspector-header {
  margin-inline: -20px;
  padding: 18px 20px;
}

.business-service-inspector .business-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-service-inspector > form > footer {
  position: fixed;
  right: 0;
  bottom: 0;
  width: min(560px, calc(100vw - 48px));
  margin: 0;
  padding: 13px 20px calc(13px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 30px rgba(40, 32, 49, 0.07);
}

.business-category-composer {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.business-category-composer .business-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-category-presets {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-category-presets legend {
  color: #4c4551;
  font-size: 0.76rem;
  font-weight: 750;
}

.business-category-presets > p {
  margin: 0;
  color: #7b747f;
  font-size: 0.69rem;
}

.business-category-presets > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.business-category-preset {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid #e7e2e9;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.business-category-preset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-category-preset > span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--category-color);
}

.business-category-preset small {
  max-width: 100%;
  overflow: hidden;
  color: #6c6571;
  font-size: 0.57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-category-preset > em {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 4px;
  border-radius: 999px;
  color: #655d69;
  background: #eeeaf0;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.business-category-preset:has(input:checked) {
  border-color: #6550ad;
  box-shadow: 0 0 0 2px #eee9f8;
}

.business-category-preset:has(input:focus-visible) {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-category-preset.is-used {
  border-color: #e3dfe5;
  opacity: 0.48;
  background: #f8f6f9;
  cursor: not-allowed;
}

.business-category-preset.is-used > span {
  filter: grayscale(0.5);
}

.business-category-preset.is-current > em {
  color: #fff;
  background: #6550ad;
}

.business-category-composer > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

@media (max-width: 1000px) {
  .business-service-board-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .business-service-board-tools {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .business-service-board {
    padding: 11px;
    border-radius: 16px;
  }

  .business-service-board-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-category-group {
    padding: 10px;
  }

  .business-service-category-group > header {
    align-items: flex-start;
  }

  .business-service-category-group > header > .ghost-button {
    min-width: 44px;
    font-size: 0;
  }

  .business-service-category-group > header > .ghost-button::before {
    content: "•••";
    font-size: 0.72rem;
  }

  .business-service-visual-grid,
  .business-services-workbench.has-inspector .business-service-visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-inspector,
  .business-service-inspector > form > footer {
    width: 100vw;
  }

  .business-service-inspector .business-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-category-composer .business-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-category-presets > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .business-service-tile {
    grid-template-columns: 18px 54px minmax(0, 1fr);
  }

  .business-service-tile-media {
    width: 54px;
    min-height: 54px;
  }

  .business-service-tile > footer {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 0 0;
    border-top: 1px solid #f0edf1;
    border-left: 0;
  }

  .business-category-presets > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-service-drawer-backdrop,
  .business-service-inspector {
    animation: none;
  }

  .business-service-category-lane,
  .business-service-tile {
    transition: none;
  }

  .business-team-view-stage,
  .business-team-view-stage.is-leaving,
  .business-team-list-stage,
  .business-team-list-stage.is-leaving {
    animation: none;
  }

  .business-team-view-switch::before,
  .business-team-list-switch::before {
    transition: none;
  }
}

/* Compact service catalog hierarchy */
.business-services-page {
  gap: 14px;
}

.business-service-board {
  gap: 10px;
  padding: 12px;
}

.business-service-board-header {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.business-service-board-tools {
  display: flex;
  flex: 1 1 auto;
  flex-flow: row nowrap;
  justify-self: stretch;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
}

.business-service-board-tools .search-field {
  flex: 0 1 420px;
  width: min(420px, 38vw);
  min-width: 240px;
  max-width: 420px;
}

.business-service-board-tools .business-segmented {
  flex: 0 0 auto;
  width: max-content;
}

.business-service-board-actions {
  display: flex;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: max-content;
  margin-left: auto;
}

.business-service-board-actions > * {
  min-height: 44px;
  white-space: nowrap;
}

.business-service-board-actions
  > .solid-button.pro[data-business-action="start-inline-service"] {
  border-color: #6750b8;
  color: #fff;
  background: #6750b8;
  box-shadow: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-service-board-actions
  > .solid-button.pro[data-business-action="start-inline-service"]:hover {
  border-color: #58429f;
  background: #58429f;
  box-shadow: none;
}

.business-service-board-actions
  > .solid-button.pro[data-business-action="start-inline-service"]:active {
  box-shadow: none;
}

.business-service-category-groups {
  gap: 10px;
}

.business-service-category-group {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid
    color-mix(in srgb, var(--category-color) 30%, var(--service-line));
  border-left: 4px solid var(--category-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(43, 34, 55, 0.035);
}

.business-service-category-group > .business-service-category-heading {
  min-height: 58px;
  padding: 9px 10px 9px 12px;
  background: color-mix(in srgb, var(--category-color) 7%, #fff);
}

.business-service-category-heading > div {
  min-width: 0;
}

.business-service-category-heading .business-category-swatch {
  width: 9px;
  height: 34px;
}

.business-service-category-heading h3 {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-category-heading p {
  margin-top: 1px;
  font-size: 0.64rem;
}

.business-category-menu {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #6f6874;
  background: transparent;
  font: 800 0.76rem/1 inherit;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-category-menu:hover {
  color: #3f3747;
  background: color-mix(in srgb, var(--category-color) 12%, #fff);
}

.business-category-menu:active {
  transform: scale(0.96);
}

.business-category-menu:focus-visible {
  outline: 3px solid rgba(81, 185, 158, 0.42);
  outline-offset: 1px;
}

.business-service-category-lane {
  border-radius: 0;
}

.business-service-category-lane.is-root {
  padding: 8px 10px 9px;
  border: 0;
  background: #fff;
}

.business-service-visual-grid,
.business-services-workbench.has-inspector .business-service-visual-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 7px;
}

.business-service-drop-empty {
  min-height: 44px;
  padding: 12px;
  border-color: color-mix(in srgb, var(--category-color) 24%, #ddd6e0);
  border-radius: 9px;
  background: color-mix(in srgb, var(--category-color) 2%, #fff);
  font-size: 0.65rem;
}

.business-service-tile {
  grid-template-columns: 18px 52px minmax(0, 1fr);
  grid-template-rows: minmax(68px, auto);
  gap: 8px;
  padding: 7px 76px 7px 7px;
  overflow: hidden;
  border-left: 3px solid var(--category-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--category-color) 1.8%, #fff);
  cursor: pointer;
}

.business-service-tile[draggable="true"] {
  cursor: pointer;
}

.business-service-tile:hover {
  border-color: color-mix(in srgb, var(--category-color) 62%, #d4cbd9);
  border-left-color: var(--category-color);
  box-shadow: 0 7px 18px rgba(43, 34, 55, 0.075);
  transform: translateY(-1px);
}

.business-service-tile:focus-visible {
  outline: 3px solid #4eb79b;
  outline-offset: 2px;
}

.business-service-tile.is-dragging {
  opacity: 0.42;
  cursor: grabbing;
  transform: scale(0.99);
}

.business-service-drag-handle {
  width: 18px;
  color: color-mix(in srgb, var(--category-color) 48%, #aaa2ae);
}

.business-service-tile-media {
  width: 52px;
  min-height: 52px;
  border-radius: 9px;
}

.business-service-tile-media > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.business-service-tile-copy {
  gap: 2px;
}

.business-service-tile-copy > span:first-child {
  color: color-mix(in srgb, var(--category-color) 78%, #453e49);
  font-size: 0.56rem;
}

.business-service-tile-copy h3 {
  font-size: 0.8rem;
}

.business-service-tile-copy p {
  gap: 7px;
  font-size: 0.62rem;
}

.business-service-tile-copy p strong {
  font-size: 0.75rem;
}

.business-service-tile .business-avatar-stack {
  margin-top: 1px;
}

.business-service-tile-status {
  position: absolute;
  top: 9px;
  right: 8px;
  max-width: 64px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  color: #2e725f;
  background: #e5f5ef;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-tile-status.status-archived {
  color: #6e6772;
  background: #eeebef;
}

.business-service-category-lane.is-drag-over {
  border-color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 9%, #fff);
  box-shadow: inset 0 0 0 2px
    color-mix(in srgb, var(--category-color) 20%, transparent);
}

.business-field[data-service-price-max][hidden] {
  display: none !important;
}

body:has(.business-service-drawer-layer) {
  overflow: hidden;
}

.business-service-drawer-layer.is-closing {
  pointer-events: none;
}

.business-service-inspector > form > .business-service-inspector-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}

.business-service-inspector-footer > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1100px) {
  .business-service-board-header {
    display: flex;
  }

  .business-service-board-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .business-service-board-tools {
    display: flex;
  }

  .business-service-board-tools .search-field {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
  }

  .business-service-board-tools .business-segmented {
    display: flex;
    width: max-content;
  }

  .business-service-board-actions {
    display: flex;
  }

  .business-service-board-actions > * {
    min-width: 0;
    padding-inline: 8px;
  }

  .business-service-inspector > form > .business-service-inspector-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .business-service-inspector-footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.business-category-composer > .business-category-basics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: initial;
  gap: 12px;
}

.business-category-basics-row > .business-field {
  min-width: 0;
}

@media (max-width: 460px) {
  .business-services-page {
    gap: 10px;
  }

  .business-service-board {
    padding: 8px;
  }

  .business-service-board-actions {
    gap: 5px;
  }

  .business-service-board-actions > * {
    font-size: 0.66rem;
  }

  .business-service-category-group > .business-service-category-heading {
    padding-left: 9px;
  }

  .business-service-category-lane.is-root {
    padding-inline: 7px;
  }

  .business-service-tile {
    grid-template-columns: 16px 46px minmax(0, 1fr);
    padding-right: 66px;
  }

  .business-service-tile-media {
    width: 46px;
    min-height: 46px;
  }

  .business-service-tile-copy p {
    flex-wrap: wrap;
    gap: 2px 7px;
  }
}

@media (max-width: 640px) {
  .business-category-composer > .business-category-basics-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Registered stylist connection flow */
.business-team-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-width: 0;
  align-items: stretch;
  gap: 14px;
}

.business-team-overview:not(.has-salon-code) {
  grid-template-columns: minmax(0, 1fr);
}

.business-team-overview > .business-operations-summary {
  min-width: 0;
  align-content: center;
  align-items: center;
}

.business-salon-code-card {
  display: flex;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dceae5;
  border-radius: 14px;
  background: #f7fcfa;
}

.business-salon-code-card > div {
  display: grid;
  gap: 3px;
}

.business-salon-code-card :is(h3, p) {
  margin: 0;
}

.business-salon-code-card h3 {
  color: #285f50;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.business-salon-code-card > button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.business-stylist-requests {
  display: grid;
  gap: 14px;
  padding: clamp(17px, 2vw, 24px);
  border: 1px solid #e7ddc7;
  border-radius: 18px;
  background: #fffcf5;
}

.business-stylist-requests > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.business-stylist-requests > header > div {
  display: grid;
  gap: 4px;
}

.business-stylist-requests :is(h3, p) {
  margin: 0;
}

.business-stylist-requests > header p:last-child {
  color: var(--ops-muted);
  font-size: 0.82rem;
}

.business-stylist-requests > header > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #765a1b;
  background: #fff0cb;
  font-size: 0.72rem;
  font-weight: 800;
}

.business-stylist-requests > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.business-stylist-requests article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #ede3cf;
  border-radius: 14px;
  background: #fff;
}

.business-stylist-requests .business-team-avatar {
  width: 44px;
  height: 44px;
  border-width: 2px;
  --team-color: #6a54b6;
}

.business-stylist-requests article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-stylist-requests article strong,
.business-stylist-requests article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-stylist-requests article small {
  color: var(--ops-muted);
  font-size: 0.73rem;
}

.business-stylist-request-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.business-stylist-request-actions :is(.ghost-button, .solid-button) {
  min-height: 30px;
  padding-inline: 10px;
}

.business-stylist-connection-form {
  gap: 20px;
}

.business-connection-intro {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 15px;
  border: 1px solid #d7ede5;
  border-radius: 15px;
  background: #f3faf7;
}

.business-connection-intro > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #4c388c;
  background: #eee9fa;
  font-size: 1.1rem;
}

.business-connection-intro > div {
  display: grid;
  gap: 5px;
}

.business-connection-intro p {
  margin: 0;
  color: #5e6f69;
  font-size: 0.8rem;
  line-height: 1.5;
}

.business-connection-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-connection-flow li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: #fcfbfd;
}

.business-connection-flow li > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--ops-violet);
  font-size: 0.72rem;
}

.business-connection-flow li > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-connection-flow small {
  color: var(--ops-muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.business-linked-stylist,
.business-team-connection-note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid #d7ede5;
  border-radius: 15px;
  background: #f3faf7;
}

.business-linked-stylist > span,
.business-team-connection-note > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #4f398e;
  background: #eee9fa;
  font-weight: 900;
}

.business-linked-stylist > div,
.business-team-connection-note > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.business-linked-stylist small,
.business-team-connection-note p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .business-stylist-requests > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .business-salon-code-card {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .business-salon-code-card > button {
    width: 100%;
  }

  .business-stylist-requests > header {
    align-items: start;
  }

  .business-stylist-requests article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .business-stylist-requests article .business-status-pill {
    grid-column: auto;
  }

  .business-stylist-request-actions {
    grid-column: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .business-connection-flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Salon onboarding: concise, scroll-aware, location-first setup */
.business-onboarding {
  --ops-violet: #6750b8;
  --ops-violet-soft: #f1edfb;
  --ops-mint: #dff5ed;
  --ops-mint-strong: #2f755f;
  --ops-ink: #27222f;
  --ops-muted: #706a76;
  --ops-line: #e4dfe7;
  --business-shell-sticky-offset: 88px;
  --business-onboarding-scroll-offset: 94px;
}

.business-onboarding > .business-page-header {
  padding-inline: clamp(18px, 3vw, 52px);
}

.pro-portal-shell .pro-topbar:has([data-action="cancel-salon-onboarding"]) {
  width: calc(100% - clamp(20px, 2vw, 40px));
  max-width: none;
}

.business-onboarding-layout {
  align-items: start;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}

.business-onboarding-steps {
  position: sticky;
  top: calc(var(--business-shell-sticky-offset) + 8px);
  max-height: calc(100vh - 122px);
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(226, 220, 230, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(46, 35, 62, 0.07);
  backdrop-filter: blur(16px);
}

.business-onboarding-steps button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 6px 9px;
  border: 0;
  border-radius: 12px;
  color: #6d6674;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.business-onboarding-steps button:hover {
  color: #4f3c8b;
  background: #f7f4fc;
}

.business-onboarding-steps button.active {
  color: #4f3c8b;
  background: #f0ebfb;
}

.business-onboarding-steps button > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d9d1e2;
  border-radius: 50%;
  color: #6b6371;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}

.business-onboarding-steps button > span {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.business-onboarding-steps button.active > b {
  border-color: #6d55b5;
  color: #fff;
  background: #6d55b5;
}

.business-onboarding-steps button.complete:not(.active) > b {
  border-color: #a8dfcf;
  color: #246b58;
  background: #ddf5ed;
}

.business-onboarding-sections {
  gap: 18px;
  padding-bottom: 118px;
}

.business-onboarding-sections > section {
  scroll-margin-top: var(--business-onboarding-scroll-offset);
  padding: clamp(20px, 3vw, 34px);
  border-color: rgba(226, 220, 230, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(48, 37, 65, 0.045);
}

.business-onboarding-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
}

.business-onboarding-section-head > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #5f4aa0;
  background: #f0ebfa;
  font-size: 0.68rem;
  font-weight: 850;
}

.business-onboarding-section-head > div {
  display: grid;
  gap: 4px;
}

.business-onboarding-section-head h3,
.business-onboarding-section-head p {
  margin: 0;
}

.business-onboarding-section-head h3 {
  color: #2d2734;
  font-size: 1.05rem;
}

.business-onboarding-section-head p {
  max-width: 680px;
  color: #7a7380;
  font-size: 0.8rem;
  line-height: 1.5;
}

.business-onboarding-footer {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px clamp(24px, 3vw, 58px);
  border-top: 1px solid rgba(217, 210, 226, 0.94);
  background: #fff;
  box-shadow: 0 -18px 42px rgba(44, 34, 60, 0.1);
}

.business-onboarding-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.business-onboarding-delete-button {
  margin-right: 10px;
}

.business-onboarding-delete-dialog .business-onboarding-cancel-icon.danger {
  color: #a33f4b;
  background: #fff0f1;
  font-size: 1.45rem;
  font-weight: 500;
}

.business-onboarding .business-check {
  align-items: center;
  width: fit-content;
  margin-top: 2px;
}

.business-onboarding .business-check input {
  flex: 0 0 auto;
  margin: 0;
}

.business-onboarding .business-check > span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.business-onboarding-footer::after {
  position: absolute;
  inset: 100% 0 auto;
  height: 40px;
  background: #fff;
  content: "";
}

.business-onboarding-cancel-backdrop {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 28, 45, 0.34);
  backdrop-filter: blur(8px);
  animation: businessOnboardingBackdropIn 180ms ease both;
}

.business-onboarding-cancel-dialog {
  display: grid;
  width: min(100%, 510px);
  gap: 20px;
  padding: 28px;
  border: 1px solid #e6e0ec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(38, 29, 53, 0.22);
  animation: businessOnboardingDialogIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1)
    both;
}

.business-onboarding-cancel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #7054cf;
  background: #f2edff;
}

.business-onboarding-cancel-dialog h2,
.business-onboarding-cancel-dialog p {
  margin: 0;
}

.business-onboarding-cancel-dialog h2 {
  margin-top: 5px;
  color: #2b2631;
  font-size: 1.55rem;
}

.business-onboarding-cancel-dialog > div > p:last-child {
  margin-top: 8px;
  color: #746d79;
}

.business-onboarding-cancel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.business-salon-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #edcfd3;
  background: #fffafb;
}

.business-salon-danger-zone > div {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.business-salon-danger-zone :where(h3, p) {
  margin: 0;
}

.business-salon-danger-zone .eyebrow {
  color: #9d4350;
}

.business-salon-deletion-dialog {
  width: min(100%, 650px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.business-salon-deletion-dialog .business-onboarding-cancel-icon.danger {
  color: #a33f4b;
  background: #fff0f1;
}

.business-salon-deletion-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #e1d9e7;
  border-radius: 16px;
  background: #faf8fc;
}

.business-salon-deletion-export > div {
  display: grid;
  gap: 4px;
}

.business-salon-deletion-export span {
  color: #746d79;
  font-size: 0.82rem;
  line-height: 1.45;
}

.business-salon-deletion-export .outline-button {
  flex: 0 0 auto;
}

.business-salon-deletion-export .outline-button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.business-salon-deletion-fields {
  display: grid;
  gap: 14px;
}

.business-salon-deletion-fields label {
  display: grid;
  gap: 7px;
  color: #4f4855;
  font-size: 0.82rem;
  font-weight: 700;
}

.business-salon-deletion-fields code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #812f3b;
  background: #fff0f1;
  font: inherit;
}

.business-salon-deletion-fields input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d8d1de;
  border-radius: 12px;
  color: #2b2631;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

@media (max-width: 640px) {
  .business-salon-danger-zone,
  .business-salon-deletion-export {
    align-items: stretch;
    flex-direction: column;
  }

  .business-salon-danger-zone > button,
  .business-salon-deletion-export .outline-button,
  .business-salon-deletion-dialog .business-onboarding-cancel-actions > button {
    width: 100%;
  }
}

@keyframes businessOnboardingBackdropIn {
  from {
    opacity: 0;
  }
}

@keyframes businessOnboardingDialogIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.business-address-search {
  position: relative;
  display: grid;
  gap: 7px;
  z-index: 4;
}

.business-address-control {
  position: relative;
}

.business-address-control > .business-field {
  gap: 7px;
}

.business-address-combobox {
  position: relative;
}

.business-address-combobox input {
  padding-right: 46px;
}

.business-address-spinner {
  position: absolute;
  top: 50%;
  right: 15px;
  display: none;
  width: 17px;
  height: 17px;
  margin-top: -8px;
  border: 2px solid #ddd5e8;
  border-top-color: #6e56b5;
  border-radius: 50%;
}

.business-address-spinner.active {
  display: block;
  animation: business-address-spin 0.65s linear infinite;
}

@keyframes business-address-spin {
  to {
    transform: rotate(360deg);
  }
}

.business-address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(360px, 52vh);
  padding: 6px;
  border: 1px solid #dcd4e4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(40, 31, 54, 0.17);
  scrollbar-gutter: stable;
  animation: business-address-results-in 0.16s ease-out both;
}

.business-address-suggestions[hidden] {
  display: none;
}

.business-address-suggestions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  color: #332d39;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.business-address-suggestions button:hover,
.business-address-suggestions button:focus-visible {
  background: #f4f1f9;
}

.business-address-option-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-address-suggestions button strong {
  font-size: 0.82rem;
}

.business-address-suggestions button small,
.business-address-suggestions p,
.business-address-search > small {
  color: #7b7481;
  font-size: 0.72rem;
  line-height: 1.4;
}

.business-address-suggestions p {
  margin: 0;
  padding: 12px;
}

.business-best-match {
  align-self: center;
  padding: 5px 7px;
  border-radius: 999px;
  color: #286b59;
  background: #def4ec;
  font-size: 0.62rem;
  white-space: nowrap;
}

.business-address-loading {
  display: grid;
  gap: 7px;
  padding: 5px;
}

.business-address-loading span {
  display: block;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4f1f6 20%, #faf8fb 50%, #f4f1f6 80%);
  background-size: 220% 100%;
  animation: business-address-skeleton 1.1s ease-in-out infinite;
}

@keyframes business-address-results-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes business-address-skeleton {
  to {
    background-position-x: -220%;
  }
}

.business-timezone-field input {
  color: #3f6f60;
  border-color: #cfe8df;
  background: #f3faf7;
}

.business-timezone-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #326e5d;
  background: #e2f5ee;
  font-size: 0.72rem;
  white-space: nowrap;
}

.business-weekly-hours {
  display: grid;
  overflow: hidden;
  border: 1px solid #e6e1e8;
  border-radius: 16px;
  background: #fcfbfc;
}

.business-hours-scale {
  position: relative;
  height: 29px;
  margin: 0 42px 0 190px;
  color: #918a95;
  font-size: 0.62rem;
}

.business-hours-scale span {
  position: absolute;
  bottom: 7px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.business-hours-scale span:nth-child(1) {
  left: 0;
  transform: none;
}

.business-hours-scale span:nth-child(2) {
  left: 25%;
}

.business-hours-scale span:nth-child(3) {
  left: 50%;
}

.business-hours-scale span:nth-child(4) {
  left: 75%;
}

.business-hours-scale span:last-child {
  right: 0;
  left: auto;
  transform: none;
}

.business-hours-day {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  padding: 16px 20px;
  border-top: 1px solid #ece8ee;
  background: #fff;
  transition:
    background 0.18s ease,
    opacity 0.18s ease;
}

.business-hours-day:first-of-type {
  border-top: 0;
}

.business-hours-day.is-closed {
  background: #faf9fa;
}

.business-hours-day-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}

.business-hours-day-label strong {
  color: #393340;
  font-size: 0.84rem;
}

.business-closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: 4px;
  color: #7c7581;
  font-size: 0.66rem;
}

.business-closed-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #6d55b5;
}

.business-closed-toggle input:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 2px;
}

.business-hours-day.is-stylist-off .business-closed-toggle {
  color: #75634f;
}

.business-hours-day.is-stylist-off .business-closed-toggle input {
  accent-color: #9d7b55;
}

.business-hours-day.is-salon-closed .business-closed-toggle {
  color: #68616c;
}

.business-hours-day.is-salon-closed .business-closed-toggle input {
  accent-color: #85808a;
}

.business-hours-editor {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.business-hours-track {
  position: relative;
  height: 56px;
}

.business-hours-rail {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 44px;
}

.business-hours-rail::before {
  position: absolute;
  top: 19px;
  right: 0;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(1.4705% - 1px),
      rgba(97, 86, 106, 0.11) calc(1.4705% - 1px),
      rgba(97, 86, 106, 0.11) 1.4705%
    ),
    #ebe7ed;
  content: "";
}

.business-hours-selection {
  position: absolute;
  top: 19px;
  left: var(--hours-start);
  z-index: 1;
  width: calc(var(--hours-end) - var(--hours-start));
  height: 6px;
  border-radius: 999px;
  background: #69bca7;
}

.business-hours-track input[type="range"] {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.business-hours-track input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.business-hours-track input[type="range"]::-webkit-slider-thumb {
  width: 44px;
  height: 44px;
  margin-top: -19px;
  appearance: none;
  border: 10px solid #fff;
  border-radius: 50%;
  background: #5b469d;
  box-shadow: 0 2px 8px rgba(47, 34, 72, 0.28);
  pointer-events: auto;
  cursor: grab;
}

.business-hours-track input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.business-hours-track input[type="range"]::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 10px solid #fff;
  border-radius: 50%;
  background: #5b469d;
  box-shadow: 0 2px 8px rgba(47, 34, 72, 0.28);
  pointer-events: auto;
  cursor: grab;
}

.business-hours-track input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 3px solid #51b99e;
  outline-offset: 3px;
}

.business-hours-create-zone {
  position: absolute;
  top: 7px;
  left: var(--hours-start);
  z-index: 2;
  width: calc(var(--hours-end) - var(--hours-start));
  height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: crosshair;
  touch-action: pan-y;
}

.business-hours-create-zone:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 4px;
  border-radius: 999px;
}

.business-hours-day.is-creating-break .business-hours-create-zone {
  touch-action: none;
}

.business-hours-playhead {
  position: absolute;
  top: 7px;
  bottom: 6px;
  left: var(--pointer-position, 0%);
  z-index: 8;
  width: 1px;
  opacity: 0;
  background: #55438e;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.business-hours-playhead output {
  position: absolute;
  top: -24px;
  left: 50%;
  min-width: max-content;
  padding: 4px 6px;
  border-radius: 6px;
  color: #fff;
  background: #46366f;
  font-size: 0.62rem;
  font-weight: 750;
  transform: translateX(-50%);
}

.business-hours-day.show-break-pointer .business-hours-playhead,
.business-hours-day.is-creating-break .business-hours-playhead {
  opacity: 1;
}

.business-hours-provisional {
  position: absolute;
  top: 16px;
  left: var(--provisional-start, 0%);
  z-index: 5;
  display: none;
  width: calc(var(--provisional-end, 0%) - var(--provisional-start, 0%));
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(102, 76, 176, 0.58);
  box-shadow: 0 0 0 1px rgba(83, 60, 146, 0.22);
  pointer-events: none;
}

.business-hours-day.is-creating-break .business-hours-provisional {
  display: block;
}

.business-break-track-layer,
.business-break-track-item {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.business-break-track-item {
  z-index: 6;
}

.business-break-track-segment {
  position: absolute;
  top: 16px;
  left: var(--break-start);
  z-index: 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: calc(var(--break-end) - var(--break-start));
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #6951ad;
  box-shadow: 0 0 0 1px rgba(73, 50, 131, 0.2);
  font-size: 0.52rem;
  line-height: 1;
  white-space: nowrap;
}

.business-break-track-item input[type="range"] {
  top: 0;
  left: -16px;
  z-index: 7;
  width: calc(100% + 32px);
  height: 44px;
  pointer-events: none;
}

.business-break-track-item input[type="range"]::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  margin-top: -13px;
  border: 9px solid #fff;
  background: #6951ad;
  box-shadow: 0 2px 7px rgba(47, 34, 72, 0.3);
  pointer-events: auto;
}

.business-break-track-item input[type="range"]::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border: 9px solid #fff;
  background: #6951ad;
  box-shadow: 0 2px 7px rgba(47, 34, 72, 0.3);
  pointer-events: auto;
}

.business-break-handle-label {
  position: absolute;
  top: -24px;
  z-index: 9;
  min-width: max-content;
  padding: 4px 6px;
  border-radius: 6px;
  color: #fff;
  background: #55418e;
  font-size: 0.61rem;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.business-break-handle-label.start {
  left: clamp(40px, var(--break-start), calc(100% - 40px));
  transform: translateX(-100%);
}

.business-break-handle-label.end {
  left: clamp(40px, var(--break-end), calc(100% - 40px));
}

.business-break-track-item input:focus + .business-break-handle-label,
.business-break-track-item:hover .business-break-handle-label {
  opacity: 1;
}

.business-hours-day.is-closed .business-hours-track,
.business-hours-day.is-closed .business-hours-meta,
.business-hours-day.is-closed .business-hours-breaks {
  opacity: 0.46;
}

.business-hours-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.business-hours-meta output {
  color: #3d3744;
  font-size: 0.76rem;
  font-weight: 750;
}

.business-hours-instruction {
  color: #817a86;
  font-size: 0.66rem;
  line-height: 1.45;
}

.business-add-break {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d8d1df;
  border-radius: 9px;
  color: #5f4a9f;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 750;
}

.business-add-break:disabled {
  cursor: not-allowed;
}

.business-hours-breaks {
  display: grid;
  gap: 6px;
}

.business-hours-break {
  display: grid;
  grid-template-columns:
    auto minmax(104px, 136px) auto minmax(104px, 136px)
    44px;
  align-items: center;
  justify-content: end;
  gap: 7px;
  padding: 7px;
  border-radius: 10px;
  color: #77707c;
  background: #f6f4f7;
  font-size: 0.68rem;
}

.business-hours-break input {
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #dad4df;
  border-radius: 8px;
  color: #3c3543;
  background: #fff;
  font: inherit;
}

.business-hours-break .icon-button {
  min-width: 44px;
  min-height: 44px;
}

.business-choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-choice-field > legend {
  margin-bottom: 8px;
  color: #514a58;
  font-size: 0.84rem;
  font-weight: 650;
}

.business-choice-field > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.business-choice-field label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #ddd7e2;
  border-radius: 11px;
  color: #645d6b;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: center;
}

.business-choice-field input {
  position: absolute;
  opacity: 0;
}

.business-choice-field label:has(input:checked) {
  border-color: #7058b6;
  color: #523d91;
  background: #f0ebfa;
  box-shadow: inset 0 0 0 1px #7058b6;
}

.business-choice-field label:has(input:focus-visible) {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-choice-field > small {
  display: block;
  margin-top: 7px;
  color: #7d7682;
  font-size: 0.7rem;
  line-height: 1.45;
}

.business-payout-choice {
  align-items: center;
  padding: 16px;
  border: 1px solid #d9ece5;
  border-radius: 14px;
  background: #f4faf8;
}

.business-payout-choice > span {
  display: grid;
  gap: 4px;
}

.business-payout-choice small {
  color: #687a74;
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .business-onboarding {
    --business-shell-sticky-offset: 76px;
    --business-onboarding-scroll-offset: 146px;
  }

  .business-onboarding-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-onboarding-steps {
    position: sticky;
    top: var(--business-shell-sticky-offset);
    z-index: 12;
    display: flex;
    max-height: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-radius: 14px;
    scrollbar-width: thin;
  }

  .business-onboarding-steps button {
    grid-template-columns: 28px auto;
    min-width: max-content;
  }

  .business-onboarding-sections > section {
    scroll-margin-top: var(--business-onboarding-scroll-offset);
  }
}

@media (max-width: 700px) {
  .business-onboarding-section-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .business-onboarding-section-head .business-timezone-badge {
    grid-column: 2;
    width: max-content;
  }

  .business-hours-scale {
    display: none;
  }

  .business-hours-day {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
  }

  .business-hours-day-label {
    min-height: 28px;
  }

  .business-hours-break {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) 44px;
  }

  .business-choice-field > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .business-service-professional-picker > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-group > header,
  .business-service-team-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .business-onboarding-footer > div {
    display: none;
  }
}

@media (max-width: 430px) {
  .business-onboarding-sections {
    padding-bottom: 188px;
  }

  .business-onboarding-steps {
    margin-inline: -6px;
  }

  .business-onboarding-sections > section {
    padding: 18px 15px;
  }

  .business-hours-break {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px;
  }

  .business-hours-break > span {
    grid-column: 1 / -1;
  }

  .business-hours-break .icon-button {
    grid-column: 4;
  }

  .business-choice-field > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-onboarding-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .business-onboarding-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
  }

  .business-onboarding-delete-button {
    width: 100%;
    margin-right: 0;
  }

  .business-onboarding-cancel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-onboarding-steps button,
  .business-hours-day,
  .business-hours-playhead,
  .business-break-handle-label {
    transition: none;
  }

  .business-address-suggestions,
  .business-address-loading span,
  .business-onboarding-cancel-backdrop,
  .business-onboarding-cancel-dialog {
    animation: none;
  }
}

/* Final Services toolbar geometry */
.business-service-board-header > .business-service-board-tools {
  display: flex;
  flex: 1 1 auto;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: max-content;
}

.business-service-board-header > .business-service-board-actions {
  display: flex;
  flex: 0 0 auto;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  width: max-content;
  min-width: max-content;
  margin-left: auto;
}

/* Team role groups */
.business-team-grid.business-team-empty {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(320px, 44vh, 520px);
  place-items: center;
}

.business-team-empty > .business-empty {
  grid-column: 1;
  width: 100%;
  margin: auto;
  text-align: center;
}

.business-role-manager {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid #e5dfe8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(43, 34, 55, 0.04);
}

.business-role-manager > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.business-role-manager > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-role-manager :is(h3, h4, p) {
  margin: 0;
}

.business-role-manager > header h3 {
  color: #302a37;
  font-size: 1.02rem;
}

.business-role-manager > header p:last-child {
  max-width: 680px;
  color: #746d79;
  font-size: 0.76rem;
  line-height: 1.45;
}

.business-role-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.business-role-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--role-color) 30%, #e3dde7);
  border-top: 4px solid var(--role-color);
  border-radius: 14px;
  background: color-mix(in srgb, var(--role-color) 3%, #fff);
}

.business-role-card > header {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
}

.business-role-card > header > span {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 4px;
  background: var(--role-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--role-color) 13%, transparent);
}

.business-role-card > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-role-card > header h4 {
  overflow: hidden;
  color: #37303e;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-role-card > header p {
  display: -webkit-box;
  overflow: hidden;
  color: #77707c;
  font-size: 0.67rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.business-role-card > header > b {
  padding: 5px 7px;
  border-radius: 999px;
  color: #2d6c59;
  background: #e5f4ef;
  font-size: 0.57rem;
  white-space: nowrap;
}

.business-role-card > header .icon-button {
  min-width: 36px;
  min-height: 36px;
}

.business-role-members,
.business-role-permissions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--role-color) 14%, #ede9ef);
}

.business-role-members > div {
  display: flex;
  min-width: 0;
}

.business-role-members > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: color-mix(in srgb, var(--role-color) 82%, #28222e);
  background: color-mix(in srgb, var(--role-color) 16%, #fff);
  font-size: 0.62rem;
  font-weight: 850;
}

.business-role-members > div > span:first-child {
  margin-left: 0;
}

.business-role-members > strong {
  color: #68616d;
  font-size: 0.66rem;
}

.business-role-permissions {
  display: grid;
  justify-content: stretch;
}

.business-role-permissions > span {
  color: #817985;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-role-permissions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.business-role-permissions > div > span {
  padding: 4px 6px;
  border-radius: 7px;
  color: color-mix(in srgb, var(--role-color) 78%, #39323f);
  background: color-mix(in srgb, var(--role-color) 10%, #fff);
  font-size: 0.58rem;
  font-weight: 720;
}

.business-access-role-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-access-role-picker > legend,
.business-role-permission-picker > legend,
.business-role-color-presets > legend {
  color: #4b4451;
  font-size: 0.76rem;
  font-weight: 800;
}

.business-access-role-picker > p,
.business-role-permission-picker > p {
  margin: 0;
  color: #7b747f;
  font-size: 0.68rem;
}

.business-access-role-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-access-role-picker label {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e3dee6;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.business-access-role-picker label:has(input:checked) {
  border-color: var(--role-color);
  background: color-mix(in srgb, var(--role-color) 7%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--role-color) 13%, transparent);
}

.business-access-role-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-access-role-picker label > span[aria-hidden] {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--role-color);
}

.business-access-role-picker label > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-access-role-picker strong {
  color: #3b3442;
  font-size: 0.75rem;
}

.business-access-role-picker small {
  overflow: hidden;
  color: #79717e;
  font-size: 0.64rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.business-role-color-presets,
.business-role-permission-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-role-color-presets > p {
  margin: 0;
  color: #7b747f;
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-role-color-presets > div {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.business-role-color-presets label {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid #e5e0e8;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-role-color-presets input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-role-color-presets label:has(input:checked) {
  border-color: #6650b8;
  background: #faf8fd;
  box-shadow: 0 0 0 2px #ece7f7;
}

.business-role-color-presets label:not(.is-unavailable):hover {
  border-color: #c9bfda;
  transform: translateY(-1px);
}

.business-role-color-presets label:has(input:focus-visible) {
  outline: 3px solid rgba(81, 185, 158, 0.4);
  outline-offset: 2px;
}

.business-role-color-presets label.is-unavailable {
  background: #f6f4f6;
  cursor: not-allowed;
  opacity: 0.48;
}

.business-role-color-presets label > span {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--role-color);
}

.business-role-color-presets small {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  color: #736c78;
  font-size: 0.55rem;
  line-height: 1.2;
  text-align: center;
}

.business-role-color-presets small > i {
  color: #9a919d;
  font-size: 0.47rem;
  font-style: normal;
}

.business-role-permission-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.business-role-permission-picker label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 126px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e6e1e8;
  border-radius: 11px;
  background: #fff;
}

.business-role-permission-picker label.is-selected {
  border-color: #cfc3e4;
  background: #faf8fd;
}

.business-role-permission-picker label > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-role-permission-picker strong {
  color: #443d49;
  font-size: 0.72rem;
}

.business-role-permission-picker small {
  color: #7a737e;
  font-size: 0.6rem;
  line-height: 1.35;
}

.business-role-permission-picker select {
  min-width: 0;
  min-height: 40px;
  padding-inline: 8px;
  border: 1px solid #ddd7e1;
  border-radius: 9px;
  color: #514959;
  background: #fff;
  font: inherit;
  font-size: 0.65rem;
}

.business-role-permission-picker select:disabled {
  opacity: 0.45;
}

@media (max-width: 1080px) {
  .business-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .business-role-manager > header {
    align-items: stretch;
    flex-direction: column;
  }

  .business-role-manager > header > button {
    align-self: flex-start;
  }

  .business-role-list,
  .business-access-role-picker > div,
  .business-role-permission-picker > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .business-role-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-permission-picker label {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .business-role-permission-picker select {
    grid-column: 2;
  }
}

/* Team workspace: staff and IAM role views */
.business-team-page {
  gap: 14px;
}

.business-team-page-header {
  align-items: center;
}

.business-team-page-header > div:first-child {
  display: grid;
  gap: 3px;
}

.business-team-page-header .pro-eyebrow {
  margin: 0;
}

.business-team-title-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.business-team-title-row h2 {
  margin: 0;
}

.business-team-view-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 88px);
  width: max-content;
  padding: 3px;
  border: 1px solid #e2dce6;
  border-radius: 999px;
  background: #f4f1f6;
  isolation: isolate;
}

.business-team-view-switch::before {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: 88px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: #6550b6;
  box-shadow: 0 4px 12px rgba(75, 55, 137, 0.2);
  content: "";
  transform: translateX(0);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease;
}

.business-team-view-switch[data-active="roles"]::before {
  transform: translateX(88px);
}

.business-team-view-switch button {
  position: relative;
  z-index: 1;
  min-width: 88px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #6d6572;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease;
}

.business-team-view-switch button.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.business-team-view-switch button:focus-visible {
  outline: 3px solid rgba(88, 185, 159, 0.42);
  outline-offset: 2px;
}

.business-team-view-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.business-team-view-stage {
  display: grid;
  min-width: 0;
}

.business-team-view-stage.is-entering {
  animation: business-team-view-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-team-view-stage[data-team-view="staff"] {
  --team-view-enter-x: -10px;
  --team-view-exit-x: 8px;
}

.business-team-view-stage[data-team-view="roles"] {
  --team-view-enter-x: 10px;
  --team-view-exit-x: -8px;
}

.business-team-view-stage.is-leaving {
  animation: business-team-view-leave 150ms ease both;
  pointer-events: none;
}

.business-team-list-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #e2dce6;
  border-radius: 11px;
  background: #f7f5f8;
  isolation: isolate;
}

.business-team-list-switch::before {
  position: absolute;
  z-index: 0;
  inset: 3px auto 3px 3px;
  width: calc((100% - 9px) / 2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(58, 46, 72, 0.1);
  content: "";
  transform: translateX(0);
  transition: transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
}

.business-team-list-switch[data-active="deleted"]::before {
  transform: translateX(calc(100% + 3px));
}

.business-team-list-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #756d79;
  background: transparent;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 780;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.business-team-list-switch button > span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #e9e5eb;
  font-size: 0.58rem;
}

.business-team-list-switch button.active {
  color: #4f416c;
  background: transparent;
  box-shadow: none;
}

.business-team-list-switch button:focus-visible {
  outline: 3px solid rgba(88, 185, 159, 0.38);
  outline-offset: 2px;
}

.business-deleted-staff-panel {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid #e5dfe8;
  border-radius: 18px;
  background: #fff;
}

.business-team-list-stage {
  min-width: 0;
  --team-list-enter-x: 12px;
  --team-list-exit-x: -10px;
}

.business-team-list-stage[data-team-list-direction="backward"] {
  --team-list-enter-x: -12px;
  --team-list-exit-x: 10px;
}

.business-team-list-stage.is-entering {
  animation: business-team-list-enter 210ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-team-list-stage.is-leaving {
  animation: business-team-list-leave 145ms ease both;
  pointer-events: none;
}

.business-deleted-staff-panel > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.business-deleted-staff-panel > header :is(h3, p) {
  margin: 0;
}

.business-deleted-staff-panel > header h3 {
  color: #3e3744;
  font-size: 0.95rem;
}

.business-deleted-staff-panel > header p {
  margin-top: 3px;
  color: #7a727e;
  font-size: 0.74rem;
  line-height: 1.45;
}

.business-deleted-staff-panel > header > span {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #6e6572;
  background: #f0edf2;
  font-size: 0.7rem;
  font-weight: 800;
}

.business-deleted-staff-panel > ul {
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-deleted-staff-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ebe6ed;
  border-radius: 13px;
  background: #fbfafb;
}

.business-deleted-staff-row .business-team-avatar {
  width: 40px;
  height: 40px;
  filter: grayscale(0.7);
  opacity: 0.72;
}

.business-deleted-staff-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-deleted-staff-row :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-deleted-staff-row strong {
  color: #4e4752;
  font-size: 0.76rem;
}

.business-deleted-staff-row small {
  color: #89818c;
  font-size: 0.64rem;
}

@keyframes business-team-view-enter {
  from {
    opacity: 0;
    transform: translateX(var(--team-view-enter-x, 0));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes business-team-view-leave {
  to {
    opacity: 0;
    transform: translateX(var(--team-view-exit-x, 0));
  }
}

@keyframes business-team-list-enter {
  from {
    opacity: 0;
    transform: translateX(var(--team-list-enter-x));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes business-team-list-leave {
  to {
    opacity: 0;
    transform: translateX(var(--team-list-exit-x));
  }
}

.business-role-manager.business-role-workspace {
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #f8f6f9;
}

.business-role-palette {
  position: sticky;
  z-index: 8;
  top: 8px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(400px, 1.7fr) 156px;
  align-items: stretch;
  gap: 9px;
}

.business-role-staff-pool,
.business-permission-pool,
.business-permission-remove-zone {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e3dee6;
  border-radius: 13px;
  background: #fff;
}

.business-role-staff-pool > header,
.business-permission-pool > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.business-role-staff-pool > header > div,
.business-permission-pool > header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-role-staff-pool :is(h3, p),
.business-permission-pool :is(h3, p) {
  margin: 0;
}

.business-role-staff-pool h3,
.business-permission-pool h3 {
  color: #3e3744;
  font-size: 0.78rem;
}

.business-role-staff-pool p,
.business-permission-pool p {
  color: #7a727e;
  font-size: 0.6rem;
  line-height: 1.35;
}

.business-role-staff-pool > header > span,
.business-permission-pool > header > span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #5f4da0;
  background: #eee9f7;
  font-size: 0.62rem;
  font-weight: 850;
}

.business-role-member-list {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-role-member-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.business-role-member {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 3px 5px 3px 7px;
  border: 1px solid color-mix(in srgb, var(--role-color, #6650b8) 18%, #e8e3ea);
  border-radius: 9px;
  background: #fff;
}

.business-role-member-pool .business-role-member {
  grid-template-columns: 12px auto;
  max-width: 190px;
  padding-right: 9px;
  background: #f9f7fb;
}

.business-role-member[draggable="true"],
.business-role-permission[draggable="true"],
.business-permission-token[draggable="true"] {
  cursor: grab;
}

.business-role-member[draggable="true"]:active,
.business-role-permission[draggable="true"]:active,
.business-permission-token[draggable="true"]:active {
  cursor: grabbing;
}

.business-role-member[draggable="true"]:hover {
  border-color: color-mix(in srgb, var(--role-color, #6650b8) 45%, #d9d2de);
  background: color-mix(in srgb, var(--role-color, #6650b8) 5%, #fff);
}

.business-role-member.is-dragging,
.business-role-permission.is-dragging,
.business-permission-token.is-dragging {
  opacity: 0.42;
}

.business-role-member.is-saving {
  opacity: 0.58;
  pointer-events: none;
}

.business-role-member-grip {
  display: grid;
  width: 16px;
  place-items: center;
  color: #918899;
  font-size: 0.83rem;
  line-height: 1;
}

.business-role-member > button:not(.business-role-member-remove) {
  min-width: 0;
  padding: 7px 4px;
  overflow: hidden;
  border: 0;
  color: #4b4451;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 760;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.business-role-member-remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #8c6670;
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.business-role-member-remove:hover {
  color: #9c3348;
  background: #faecef;
}

.business-role-member > i {
  padding-right: 5px;
  color: #2f8872;
  font-style: normal;
}

.business-role-list-empty {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px;
  border: 1px dashed #dcd5e0;
  border-radius: 9px;
  color: #928a97;
  font-size: 0.64rem;
  text-align: center;
}

.business-permission-pool > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.business-permission-token {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dcd5e8;
  border-radius: 8px;
  color: #66557b;
  background: #faf8fd;
  font-size: 0.6rem;
  font-weight: 760;
  white-space: nowrap;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-permission-token[draggable="true"]:hover {
  border-color: #a99aca;
  background: #f4f0fb;
  transform: translateY(-1px);
}

.business-permission-token-summary {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.business-permission-token-summary small {
  display: none;
}

.business-permission-token-summary i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #6d5994;
  background: #ebe5f6;
  font-size: 0.56rem;
  font-style: normal;
}

.business-permission-remove-zone {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border-style: dashed;
  color: #8c5966;
  text-align: center;
}

.business-permission-remove-zone > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #f7e8ec;
  font-size: 1rem;
}

.business-permission-remove-zone strong {
  font-size: 0.68rem;
}

.business-permission-remove-zone small {
  color: #9b7b84;
  font-size: 0.56rem;
}

.business-role-workspace > .business-role-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
  gap: 9px;
}

.business-role-lane {
  position: relative;
  gap: 9px;
  padding: 12px;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.business-role-workspace.is-dragging-member .business-role-lane::after,
.business-role-workspace.is-dragging-permission
  .business-role-lane[data-business-drop-permission]::after {
  position: absolute;
  z-index: 5;
  inset: 7px;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--role-color, #58b99f) 64%, #fff);
  border-radius: 13px;
  color: color-mix(in srgb, var(--role-color, #4c8875) 76%, #292331);
  background: color-mix(in srgb, var(--role-color, #58b99f) 8%, #fff 92%);
  box-shadow: 0 8px 28px rgba(49, 40, 60, 0.08);
  content: "Drop into " attr(data-role-name);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  opacity: 0.92;
  pointer-events: none;
}

.business-role-workspace.is-dragging-member
  .business-role-lane.is-drag-over::after,
.business-role-workspace.is-dragging-permission
  .business-role-lane.is-drag-over::after {
  border-style: solid;
  background: color-mix(in srgb, var(--role-color, #58b99f) 16%, #fff 84%);
  box-shadow: 0 0 0 4px
    color-mix(in srgb, var(--role-color, #58b99f) 16%, transparent);
  opacity: 1;
}

.business-role-lane.is-drag-over,
.business-permission-remove-zone.is-drag-over {
  border-color: var(--role-color, #58b99f);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--role-color, #58b99f) 18%, transparent);
  transform: translateY(-2px);
}

.business-permission-remove-zone.is-drag-over {
  border-color: #b8495f;
  background: #fff4f6;
  box-shadow: 0 0 0 3px rgba(184, 73, 95, 0.13);
}

.business-role-lane > header p {
  -webkit-line-clamp: 1;
}

.business-role-lane > .business-role-members {
  display: flex;
  justify-content: space-between;
  padding-top: 7px;
}

.business-role-lane > .business-role-members strong {
  color: #56505c;
  font-size: 0.64rem;
}

.business-role-lane > .business-role-members small {
  color: #948c99;
  font-size: 0.56rem;
}

.business-role-lane > .business-role-permissions {
  gap: 6px;
  padding-top: 8px;
}

.business-role-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.business-role-permission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 32px;
  padding: 2px 3px;
  border: 1px solid color-mix(in srgb, var(--role-color, #6650b8) 16%, #e8e3ea);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-role-permission[draggable="true"]:hover {
  border-color: color-mix(in srgb, var(--role-color, #6650b8) 42%, #ddd6e2);
  background: color-mix(in srgb, var(--role-color, #6650b8) 4%, #fff);
  transform: translateY(-1px);
}

.business-role-permission-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 3px 5px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-role-permission-summary > span {
  overflow: hidden;
  color: #554d5c;
  font-size: 0.59rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-role-permission-summary > small {
  color: #8b838f;
  font-size: 0.51rem;
}

.business-role-permission-summary > i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: var(--role-color, #6650b8);
  background: color-mix(in srgb, var(--role-color, #6650b8) 11%, #fff);
  font-size: 0.68rem;
  font-style: normal;
}

.business-role-permission > .business-role-permission-remove {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #9a6974;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.business-role-permission > .business-role-permission-remove:hover {
  color: #9c3348;
  background: #faecef;
}

.business-role-permission > i {
  color: #2f8872;
  font-style: normal;
}

.business-permission-explanation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 4px 0 0;
}

.business-permission-explanation-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #5d479c;
  background: #eee9f8;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
}

.business-permission-explanation > section {
  display: grid;
  gap: 14px;
}

.business-permission-explanation p {
  margin: 0;
  color: #675f6d;
  font-size: 0.82rem;
  line-height: 1.55;
}

.business-permission-explanation dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.business-permission-explanation dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e9e3ec;
  border-radius: 11px;
  background: #fbfafc;
}

.business-permission-explanation :is(dt, dd) {
  margin: 0;
}

.business-permission-explanation dt {
  color: #8a828e;
  font-size: 0.68rem;
  font-weight: 760;
}

.business-permission-explanation dd {
  display: grid;
  gap: 2px;
  color: #403a45;
  font-size: 0.73rem;
}

.business-permission-explanation dd span {
  color: #7b737f;
  line-height: 1.4;
}

.business-permission-explanation > aside,
.business-permission-explanation > footer {
  grid-column: 1 / -1;
}

.business-permission-explanation > aside {
  padding: 12px 14px;
  border-radius: 12px;
  color: #4f675f;
  background: #edf8f4;
}

.business-permission-explanation > aside strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.73rem;
}

.business-permission-explanation > aside p {
  color: #59746b;
  font-size: 0.72rem;
}

.business-permission-explanation > footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .business-role-palette {
    grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.5fr);
  }

  .business-permission-remove-zone {
    grid-column: 1 / -1;
    grid-template-columns: auto auto auto;
    min-height: 54px;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .business-team-view-switch {
    flex: 0 0 auto;
  }

  .business-team-view-switch button {
    min-height: 44px;
  }

  .business-team-page-header {
    align-items: flex-start;
  }

  .business-team-page-header > .business-header-actions {
    width: 100%;
  }

  .business-team-page-header > .business-header-actions > * {
    flex: 1;
  }

  .business-team-list-switch {
    width: 100%;
    margin-top: 2px;
  }

  .business-team-list-switch button {
    flex: 1;
    min-height: 44px;
  }

  .business-role-palette {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-permission-remove-zone {
    grid-column: 1;
  }

  .business-role-workspace > .business-role-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .business-team-title-row {
    gap: 14px;
  }

  .business-team-view-switch {
    grid-template-columns: repeat(2, 82px);
  }

  .business-team-view-switch::before {
    width: 82px;
  }

  .business-team-view-switch[data-active="roles"]::before {
    transform: translateX(82px);
  }

  .business-team-view-switch button {
    min-width: 82px;
    padding-inline: 6px;
    font-size: 0.64rem;
  }

  .business-role-manager.business-role-workspace {
    margin-inline: -5px;
    padding: 8px;
  }

  .business-role-permission-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-member-remove,
  .business-role-permission > .business-role-permission-remove {
    width: 44px;
    height: 44px;
  }

  .business-role-permission-summary,
  .business-permission-token-summary {
    min-height: 44px;
  }

  .business-deleted-staff-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .business-deleted-staff-row > .business-status-pill {
    grid-column: 2;
  }

  .business-permission-explanation {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .business-permission-explanation-icon {
    width: 36px;
    height: 36px;
  }

  .business-permission-explanation dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-role-lane,
  .business-team-view-switch::before,
  .business-team-view-stage,
  .business-team-view-stage.is-leaving,
  .business-team-list-stage,
  .business-team-list-stage.is-leaving,
  .business-permission-token,
  .business-role-permission,
  .business-team-list-switch button,
  .business-team-list-switch::before {
    animation: none;
    transition: none;
  }
}

/* Team access controls and right-side work drawers */
body:has(.business-team-drawer-layer) {
  overflow: hidden;
}

.business-team-drawer-layer {
  position: fixed;
  z-index: 1210;
  inset: 0;
  display: grid;
  justify-items: end;
}

.business-team-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(31, 25, 37, 0.42);
  backdrop-filter: blur(2px);
  cursor: default;
  animation: none;
}

.business-team-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(640px, calc(100vw - 48px));
  height: 100dvh;
  max-height: 100dvh;
  margin-left: auto;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-left: 1px solid #e1dbe5;
  background: #fff;
  box-shadow: -24px 0 72px rgba(35, 27, 44, 0.23);
  animation: none;
}

.business-team-drawer-layer.is-opening .business-team-drawer-backdrop {
  animation: business-team-drawer-fade-in 180ms ease both;
}

.business-team-drawer-layer.is-opening .business-team-drawer {
  animation: business-team-drawer-in 260ms cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.business-team-drawer-layer[data-team-drawer="access-role"]
  .business-team-drawer {
  width: min(720px, calc(100vw - 48px));
}

.business-team-drawer-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid #e8e3eb;
  background: rgba(255, 255, 255, 0.97);
}

.business-team-drawer-header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-team-drawer-header :is(h2, p) {
  margin: 0;
}

.business-team-drawer-header > div > span {
  color: #6750b8;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.business-team-drawer-header h2 {
  color: #2f2935;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.4vw, 1.82rem);
  line-height: 1.08;
}

.business-team-drawer-header p {
  max-width: 520px;
  color: #756e79;
  font-size: 0.74rem;
  line-height: 1.45;
}

.business-team-drawer-header > .icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.business-team-drawer-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.business-team-drawer-form {
  display: grid;
  min-height: 100%;
  align-content: start;
  gap: 18px;
  padding: 20px 22px 100px;
}

.business-team-drawer-form > .business-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-manual-search-field {
  position: relative;
  min-width: 0;
}

.business-manual-search-field > label {
  color: #39313e;
  font-size: 0.72rem;
  font-weight: 800;
}

.business-manual-search-field > small {
  color: #777079;
  font-size: 0.64rem;
  line-height: 1.35;
}

.business-manual-search-select {
  position: relative;
  display: grid;
  gap: 6px;
}

.business-manual-search-select > input[type="search"],
.business-manual-search-select > input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid #ddd5e3;
  border-radius: 12px;
  color: #332c38;
  background: #fff;
  font: inherit;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.business-manual-search-select > input[type="search"]:focus,
.business-manual-search-select > input[type="text"]:focus {
  border-color: #8068c4;
  box-shadow: 0 0 0 3px rgba(112, 83, 184, 0.12);
}

.business-manual-search-select > input[type="search"]:disabled,
.business-manual-search-select > input[type="text"]:disabled {
  border-color: #e5e0e8;
  color: #8a838d;
  background: #f6f4f7;
  box-shadow: none;
  cursor: not-allowed;
}

.business-manual-search-results {
  position: absolute;
  z-index: 28;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: none;
  max-height: min(280px, 38dvh);
  gap: 3px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #ddd5e3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(43, 33, 54, 0.18);
}

.business-manual-search-results.is-open {
  display: grid;
}

.business-manual-search-results > button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: #39313e;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.business-manual-search-results > button[hidden] {
  display: none;
}

.business-manual-search-results > button:hover,
.business-manual-search-results > button:focus-visible,
.business-manual-search-results > button.is-keyboard-active {
  background: #f4effb;
  outline: none;
}

.business-manual-search-results > .business-manual-new-customer-option {
  margin-bottom: 3px;
  border-bottom: 1px solid #ebe5ef;
  border-radius: 10px 10px 4px 4px;
  background: #faf7ff;
}

.business-manual-search-results > .business-manual-new-customer-option > span {
  color: #fff;
  background: #7158b5;
  font-size: 1rem;
}

.business-manual-new-customer-option small b {
  font: inherit;
  font-weight: 750;
}

.business-manual-search-results > button > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #5f499b;
  background: #eee8f8;
  font-size: 0.7rem;
  font-weight: 850;
}

.business-manual-search-results > button > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-manual-search-results :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-manual-search-results strong {
  font-size: 0.75rem;
}

.business-manual-search-results small,
.business-manual-search-results > p {
  color: #756d79;
  font-size: 0.64rem;
}

.business-manual-new-customer-phone {
  min-width: 0;
  animation: business-manual-field-in 180ms ease both;
}

.business-manual-new-customer-phone[hidden] {
  display: none;
}

@keyframes business-manual-field-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.business-manual-service-field {
  position: relative;
  min-width: 0;
}

.business-manual-service-field > label {
  color: #39313e;
  font-size: 0.72rem;
  font-weight: 800;
}

.business-manual-service-field > small {
  color: #777079;
  font-size: 0.64rem;
  line-height: 1.35;
}

.business-manual-service-select {
  position: relative;
}

.business-manual-service-trigger {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px 0 14px;
  border: 1px solid #ddd5e3;
  border-radius: 12px;
  color: #777079;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
}

.business-manual-service-trigger.has-selection {
  color: #332c38;
}

.business-manual-service-trigger:focus-visible,
.business-manual-service-trigger[aria-expanded="true"] {
  border-color: #8068c4;
  box-shadow: 0 0 0 3px rgba(112, 83, 184, 0.12);
  outline: none;
}

.business-manual-service-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-manual-service-trigger > b {
  color: #6e6273;
  font-size: 0.9rem;
  transition: transform 160ms ease;
}

.business-manual-service-trigger[aria-expanded="true"] > b {
  transform: rotate(180deg);
}

.business-manual-service-menu {
  position: absolute;
  z-index: 29;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  max-height: min(360px, 46dvh);
  gap: 7px;
  padding: 7px;
  overflow-y: auto;
  visibility: hidden;
  border: 1px solid #ddd5e3;
  border-radius: 15px;
  opacity: 0;
  background: #fff;
  box-shadow: 0 18px 46px rgba(43, 33, 54, 0.18);
  transform: translateY(-5px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s linear 140ms;
}

.business-manual-service-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.business-manual-service-menu > p {
  margin: 0;
  padding: 12px;
  color: #756d79;
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-manual-service-group {
  overflow: hidden;
  border: 1px solid
    color-mix(in srgb, var(--manual-service-category) 22%, #e6e0e9);
  border-radius: 11px;
  background: #fff;
}

.business-manual-service-group > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #564e5b;
  background: color-mix(in srgb, var(--manual-service-category) 9%, #fff);
}

.business-manual-service-group > header > span,
.business-manual-service-group > div > button > span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--manual-service-category);
}

.business-manual-service-group > header > strong {
  font-size: 0.66rem;
  font-weight: 850;
}

.business-manual-service-group > header > small {
  color: #7a717e;
  font-size: 0.58rem;
  font-weight: 750;
}

.business-manual-service-group > div {
  display: grid;
  gap: 2px;
  padding: 3px;
}

.business-manual-service-group > div > button {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: #39313e;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.business-manual-service-group > div > button:hover,
.business-manual-service-group > div > button:focus-visible,
.business-manual-service-group > div > button.is-keyboard-active,
.business-manual-service-group > div > button[aria-selected="true"] {
  background: color-mix(in srgb, var(--manual-service-category) 10%, #f8f5fb);
  outline: none;
}

.business-manual-service-group > div > button > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-manual-service-group > div > button :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-manual-service-group > div > button strong {
  font-size: 0.72rem;
}

.business-manual-service-group > div > button small {
  color: #786f7c;
  font-size: 0.61rem;
}

.business-manual-service-group > div > button > b {
  color: var(--manual-service-category);
  font-size: 0.72rem;
}

.business-manual-search-results > p {
  margin: 0;
  padding: 12px;
  line-height: 1.4;
}

.business-manual-search-results > p[hidden] {
  display: none;
}

.business-manual-search-results > p > :is(span, small) {
  display: block;
}

.business-manual-search-results > p > span {
  color: #4b424f;
  font-weight: 750;
}

.business-manual-search-results > p > small {
  margin-top: 3px;
  color: #817884;
  font-size: 0.6rem;
}

.business-team-drawer-layer[data-team-drawer="service-category"]
  .business-team-drawer {
  width: min(560px, calc(100vw - 48px));
}

.business-team-drawer-layer[data-team-drawer="client-category"]
  .business-team-drawer {
  width: min(560px, calc(100vw - 48px));
}

.business-crm-blacklist-visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border-top: 1px solid #ebe5ef;
  border-bottom: 1px solid #ebe5ef;
  background: #fff8fa;
}

.business-crm-blacklist-visibility > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-crm-blacklist-visibility > div > span {
  color: #9a3851;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-crm-blacklist-visibility :is(h4, p) {
  margin: 0;
}

.business-crm-blacklist-visibility h4 {
  color: #342831;
  font-size: 0.88rem;
}

.business-crm-blacklist-visibility p {
  max-width: 680px;
  color: #746970;
  font-size: 0.73rem;
  line-height: 1.5;
}

.business-crm-blacklist-switch {
  display: grid;
  grid-template-columns: 38px auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 74px;
  cursor: pointer;
}

.business-crm-blacklist-switch > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.business-crm-blacklist-switch > span {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c9c2cb;
  transition: background-color 140ms ease;
}

.business-crm-blacklist-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(42, 31, 39, 0.24);
  content: "";
  transition: transform 140ms ease;
}

.business-crm-blacklist-switch > input:checked + span {
  background: #b94b62;
}

.business-crm-blacklist-switch > input:checked + span::after {
  transform: translateX(16px);
}

.business-crm-blacklist-switch > input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, #b94b62 28%, transparent);
  outline-offset: 3px;
}

.business-crm-blacklist-switch > input:disabled + span,
.business-crm-blacklist-switch:has(input:disabled) strong {
  opacity: 0.55;
}

.business-crm-blacklist-switch:has(input:disabled) {
  cursor: not-allowed;
}

.business-crm-blacklist-switch > strong {
  color: #50464d;
  font-size: 0.73rem;
}

@media (max-width: 640px) {
  .business-crm-blacklist-visibility {
    align-items: stretch;
    flex-direction: column;
  }
}

.business-client-category-form {
  gap: 20px;
  padding: 22px 22px 104px;
}

.business-client-category-color-presets {
  padding: 16px;
  border: 1px solid #e7e1e9;
  border-radius: 16px;
  background: #fcfbfd;
}

.business-client-category-color-presets > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-team-drawer-layer[data-team-drawer="client-category"]
  .business-team-drawer-footer {
  display: flex;
  justify-content: flex-end;
}

.business-team-drawer-layer[data-team-drawer="service-category"]
  .business-category-composer {
  gap: 20px;
  padding: 22px 22px 104px;
}

.business-team-drawer-layer[data-team-drawer="service-category"]
  .business-category-presets {
  gap: 10px;
  padding: 16px;
  border: 1px solid #e7e1e9;
  border-radius: 16px;
  background: #fcfbfd;
}

.business-team-drawer-layer[data-team-drawer="service-category"]
  .business-category-presets
  > p {
  font-size: 0.7rem;
}

.business-team-drawer-layer[data-team-drawer="service-category"]
  .business-category-presets
  > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.business-modal-layer:has(.business-category-delete-modal) {
  z-index: 1240;
  place-items: center;
  padding: 18px;
}

.business-category-delete-modal {
  width: min(540px, 100%);
  border: 1px solid #eadfe2;
  border-radius: 20px;
}

.business-category-delete-form > p {
  color: #675c63;
  line-height: 1.55;
}

.business-category-delete-form > p > strong {
  color: #3b3035;
}

.business-category-delete-services {
  display: grid;
  max-height: min(300px, 40dvh);
  gap: 0;
  margin: 14px 0 4px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #eadfe2;
  border-radius: 14px;
  background: #fff9fa;
  list-style: none;
}

.business-category-delete-services > li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #473b40;
  font-size: 0.76rem;
}

.business-category-delete-services > li + li {
  border-top: 1px solid #eee4e7;
}

.business-category-delete-services > li > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bd5368;
}

.business-category-delete-services > li > strong {
  overflow-wrap: anywhere;
}

.business-category-delete-empty {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid #ece6ee;
  border-radius: 12px;
  color: #746d78;
  background: #faf9fb;
  font-size: 0.74rem;
}

.business-team-service-groups {
  display: grid;
  gap: 22px;
  padding: 20px 22px 36px;
}

.business-team-service-group {
  display: grid;
  gap: 8px;
}

.business-team-service-group > header {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 4px 6px;
}

.business-team-service-group > header > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--team-service-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--team-service-color) 12%, white);
}

.business-team-service-group > header :is(h3, small) {
  margin: 0;
}

.business-team-service-group > header h3 {
  color: #37303d;
  font-size: 0.84rem;
  font-weight: 850;
}

.business-team-service-group > header small {
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #716879;
  background: #f4f1f6;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
}

.business-team-service-group > div {
  display: grid;
  gap: 8px;
}

.business-team-service-row {
  overflow: hidden;
  border: 1px solid #e7e2e9;
  border-radius: 15px;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.business-team-service-row.is-assigned {
  border-color: color-mix(in srgb, var(--team-service-color) 46%, #ded8e4);
  background: color-mix(in srgb, var(--team-service-color) 4%, white);
  box-shadow: 0 8px 24px rgba(45, 37, 52, 0.055);
}

.business-team-service-toggle {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 0;
  color: #37303d;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-team-service-toggle:focus-visible {
  outline: 3px solid rgba(103, 79, 184, 0.3);
  outline-offset: -3px;
}

.business-team-service-toggle:disabled {
  cursor: wait;
}

.business-team-service-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #dcd5e2;
  border-radius: 9px;
  color: #746a7c;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.business-team-service-row.is-assigned .business-team-service-check {
  border-color: var(--team-service-color);
  color: #fff;
  background: var(--team-service-color);
}

.business-team-service-toggle > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-team-service-toggle strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-team-service-toggle small {
  overflow: hidden;
  color: #77707c;
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-team-service-toggle > b {
  color: #6750b8;
  font-size: 0.68rem;
  font-weight: 850;
}

.business-team-service-price {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 13px 13px 54px;
  border-top: 1px solid #ebe6ed;
}

.business-team-service-price > label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.business-team-service-price > label > span {
  color: #665e6c;
  font-size: 0.64rem;
  font-weight: 800;
}

.business-team-service-price :is(select, input) {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #ddd6e2;
  border-radius: 10px;
  color: #39323f;
  background: #fff;
  font: inherit;
  font-size: 0.75rem;
}

.business-team-service-price select {
  padding: 0 32px 0 10px;
}

.business-team-service-money {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #ddd6e2;
  border-radius: 10px;
  background: #fff;
}

.business-team-service-money > b {
  padding-left: 10px;
  color: #746b79;
  font-size: 0.72rem;
}

.business-team-service-money > input {
  border: 0;
  border-radius: 0;
}

.business-team-service-money > input:focus-visible {
  outline: 0;
}

.business-team-service-money:has(> input:focus-visible) {
  border-color: #745db1;
  box-shadow: 0 0 0 3px rgba(116, 93, 177, 0.16);
}

.business-team-service-price-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.business-team-service-price [hidden] {
  display: none !important;
}

.business-team-service-loading,
.business-team-service-error {
  display: grid;
  min-height: 320px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  color: #6f6676;
  text-align: center;
}

.business-team-service-loading {
  grid-template-columns: repeat(3, 9px);
}

.business-team-service-loading > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6f57bd;
  animation: business-team-service-loading 900ms ease-in-out infinite;
}

.business-team-service-loading > span:nth-child(2) {
  animation-delay: 120ms;
}

.business-team-service-loading > span:nth-child(3) {
  animation-delay: 240ms;
}

.business-team-service-loading > strong {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

.business-team-service-error :is(strong, p) {
  margin: 0;
}

.business-team-service-error p {
  max-width: 360px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.business-team-professional-setup {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 14px;
  min-height: 360px;
  padding: 28px;
}

.business-team-professional-setup > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.business-team-professional-setup :is(h3, p) {
  margin: 0;
}

.business-team-professional-setup > div > span {
  color: #6550b6;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-team-professional-setup h3 {
  color: #37303d;
  font-size: 1rem;
}

.business-team-professional-setup p {
  color: #756d79;
  font-size: 0.72rem;
  line-height: 1.5;
}

.business-team-professional-setup
  > :is(button, .business-team-professional-setup-error) {
  grid-column: 1 / -1;
}

.business-team-professional-setup > button {
  justify-self: end;
}

.business-team-professional-setup-error {
  padding: 10px 12px;
  border: 1px solid #efd0d4;
  border-radius: 10px;
  color: #8d3944 !important;
  background: #fff5f6;
}

@keyframes business-team-service-loading {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@media (max-width: 560px) {
  .business-team-service-groups {
    padding: 16px 14px 28px;
  }

  .business-team-service-price {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 13px;
  }

  .business-team-service-price-actions {
    grid-column: 1;
  }

  .business-team-professional-setup {
    min-height: 300px;
    padding: 22px 16px;
  }
}

.business-role-details {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e7e1e9;
  border-radius: 14px;
  background: #fcfbfd;
}

.business-access-role-form > .business-role-color-presets,
.business-access-role-form > .business-role-form-access {
  padding: 16px;
  border: 1px solid #e7e1e9;
  border-radius: 14px;
  background: #fff;
}

.business-team-drawer-form-error {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #e8b7c0;
  border-radius: 11px;
  color: #873447;
  background: #fff2f4;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.45;
}

.business-team-drawer-form-error[hidden] {
  display: none;
}

.business-team-drawer .business-team-drawer-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 13px 22px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e8e3eb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 32px rgba(40, 32, 49, 0.08);
  backdrop-filter: blur(12px);
}

.business-team-drawer-layer[data-team-drawer="access-role"]
  .business-team-drawer-footer {
  display: flex;
  justify-content: space-between;
}

.business-team-drawer-layer[data-team-drawer="service-category"]
  .business-team-drawer-footer {
  display: flex;
  justify-content: space-between;
}

.business-team-drawer-footer-danger {
  display: flex;
  min-width: 0;
  align-items: center;
}

.business-team-drawer-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
}

.business-team-drawer-footer-actions > button {
  min-width: 104px;
  min-height: 44px;
}

.business-team-drawer-layer.is-closing {
  pointer-events: none;
}

.business-team-drawer-layer.is-closing .business-team-drawer-backdrop {
  animation: business-team-drawer-fade-out 220ms ease both;
}

.business-team-drawer-layer.is-closing .business-team-drawer {
  animation: business-team-drawer-out 240ms cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes business-team-drawer-in {
  from {
    opacity: 0.92;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes business-team-drawer-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0.94;
    transform: translateX(100%);
  }
}

@keyframes business-team-drawer-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes business-team-drawer-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.business-operations-summary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px 7px 13px;
  border: 1px solid #d8cfe7;
  border-radius: 999px;
  color: #59458e;
  background: #faf8fd;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-operations-summary-action:hover {
  border-color: #aa9ac7;
  background: #f3eefb;
  transform: translateY(-1px);
}

.business-operations-summary-action strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  color: #fff;
  background: #6750b8;
  font-size: 0.65rem;
}

.business-operations-summary-action i {
  color: #8e80a0;
  font-size: 0.9rem;
  font-style: normal;
}

.business-operations-summary-action:focus-visible,
.business-access-level-controls button:focus-visible,
.business-access-capability-copy:focus-visible,
.business-team-drawer-back-link:focus-visible,
.business-invitation-drawer-row:focus-visible,
.business-role-form-levels label:has(input:focus-visible),
.business-role-form-scope select:focus-visible {
  outline: 3px solid rgba(81, 185, 158, 0.4);
  outline-offset: 2px;
}

.business-role-workspace > .business-role-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-role-lane {
  grid-template-columns: minmax(0, 1fr);
}

.business-role-lane > header,
.business-role-lane > .business-role-access-drop,
.business-role-lane > .business-role-members,
.business-role-lane > .business-role-member-list,
.business-role-lane > .business-role-permissions {
  grid-column: 1;
}

.business-role-lane > .business-role-access-matrix {
  grid-column: 1;
  grid-row: auto;
}

.business-role-access-matrix {
  display: grid;
  align-self: stretch;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--role-color) 18%, #e7e2e9);
  border-radius: 13px;
  background: #fff;
}

.business-role-access-drop {
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr);
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px dashed color-mix(in srgb, var(--role-color) 32%, #dcd5e1);
  border-radius: 9px;
  color: #766d7b;
  background: color-mix(in srgb, var(--role-color) 3%, #fff);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.business-role-access-drop > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: color-mix(in srgb, var(--role-color) 78%, #38303e);
  background: color-mix(in srgb, var(--role-color) 12%, #fff);
  font-size: 0.68rem;
  font-weight: 850;
}

.business-role-access-drop strong {
  color: #5d5562;
  font-size: 0.58rem;
}

.business-role-access-drop small {
  justify-self: end;
  color: #948b98;
  font-size: 0.52rem;
}

.business-role-workspace.is-dragging-permission .business-role-access-drop {
  border-color: color-mix(in srgb, var(--role-color) 64%, #fff);
  color: color-mix(in srgb, var(--role-color) 80%, #302938);
  background: color-mix(in srgb, var(--role-color) 8%, #fff);
}

.business-role-access-drop.is-drag-over {
  border-style: solid;
  border-color: var(--role-color);
  background: color-mix(in srgb, var(--role-color) 15%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color) 15%, transparent);
}

.business-role-access-matrix > header,
.business-access-domain-group > header,
.business-role-form-domain > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.business-role-access-matrix > header > div {
  display: grid;
  gap: 2px;
}

.business-role-access-matrix > header :is(strong, p) {
  margin: 0;
}

.business-role-access-matrix > header strong {
  color: #38313e;
  font-size: 0.78rem;
}

.business-role-access-matrix > header p {
  color: #7b737f;
  font-size: 0.68rem;
  line-height: 1.4;
}

.business-role-access-matrix > header > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #387360;
  background: #e9f6f1;
  font-size: 0.55rem;
  font-weight: 780;
  white-space: nowrap;
}

.business-role-access-domains,
.business-role-form-domains {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.business-access-domain-group,
.business-role-form-domain {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e3ea;
  border-radius: 11px;
  background: #fcfbfc;
}

.business-access-domain-group > header,
.business-role-form-domain > header {
  padding: 9px 10px 8px;
  border-bottom: 1px solid #ebe7ed;
  background: #f7f5f8;
}

.business-access-domain-group > header > div,
.business-role-form-domain > header > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.business-access-domain-group > header strong,
.business-role-form-domain > header strong {
  color: #4a424f;
  font-size: 0.72rem;
}

.business-access-domain-group > header small,
.business-role-form-domain > header small {
  color: #89818d;
  font-size: 0.62rem;
  line-height: 1.3;
}

.business-access-domain-group > header > span,
.business-role-form-domain > header > span {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 4px;
  padding-top: 2px;
  color: #817887;
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.business-access-domain-group > header i,
.business-role-form-domain > header i {
  font-style: normal;
}

.business-access-domain-group.is-toggle-domain > header > span,
.business-role-form-domain.is-toggle-domain > header > span {
  grid-template-columns: 78px;
}

.business-access-domain-group.is-toggle-domain .business-access-capability {
  grid-template-columns: minmax(0, 1fr) 78px;
  min-height: 54px;
}

.business-access-level-controls.is-single-toggle,
.business-role-form-levels.is-single-toggle {
  grid-template-columns: minmax(0, 1fr);
}

.business-role-form-domain.is-toggle-domain .business-role-form-capability {
  grid-template-columns: minmax(150px, 1fr) 88px;
  min-height: 54px;
}

.business-role-form-domain.is-toggle-domain .business-role-form-scope {
  display: none;
}

.business-access-domain-group > div,
.business-role-form-domain > div {
  display: grid;
}

.business-client-access-rules {
  overflow: hidden;
  border: 1px solid #e5dfe8;
  border-radius: 12px;
  background: #fff;
}

.business-client-access-rules > header {
  padding: 10px 12px;
  border-bottom: 1px solid #ebe7ed;
  background: #f7f5f8;
}

.business-role-booking-policy > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-role-booking-policy > header > span {
  color: #7d7282;
  font-size: 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.business-role-booking-policy.is-saving {
  cursor: progress;
}

.business-role-booking-policy-group + .business-role-booking-policy-group {
  border-top: 8px solid #f7f5f8;
}

.business-role-booking-policy-group-title {
  display: grid;
  gap: 2px;
  padding: 9px 11px 7px;
  color: #514956;
}

.business-role-booking-policy-group-title strong {
  font-size: 0.66rem;
}

.business-role-booking-policy-group-title small {
  color: #8a818e;
  font-size: 0.58rem;
}

.business-client-access-rules > header > div {
  display: grid;
  gap: 2px;
}

.business-client-access-rules > header strong {
  color: #4a424f;
  font-size: 0.72rem;
}

.business-client-access-rules > header small {
  color: #89818d;
  font-size: 0.62rem;
}

.business-client-access-rules > div > article {
  padding: 9px 11px;
  border-top: 1px solid #eeeaf0;
}

.business-client-access-rules > div > article:first-child {
  border-top: 0;
}

.business-client-access-row-head {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #514956;
  font-size: 0.7rem;
  font-weight: 750;
}

.business-role-booking-policy .business-client-access-row-head > span {
  display: grid;
  gap: 2px;
}

.business-role-booking-policy .business-client-access-row-head > span small {
  color: #8a818e;
  font-size: 0.6rem;
  font-weight: 550;
}

.business-booking-policy-options label {
  min-width: 82px;
}

.business-client-access-audiences {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #dcd5e0;
  border-radius: 10px;
  background: #f7f5f8;
}

.business-client-access-audiences label {
  min-width: 42px;
  cursor: pointer;
}

.business-client-access-audiences input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.business-client-access-audiences span {
  display: grid;
  min-height: 28px;
  place-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  color: #756d79;
  font-size: 0.62rem;
  font-weight: 750;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.business-client-access-audiences label.is-selected span {
  color: #493578;
  background: #fff;
  box-shadow: 0 1px 4px rgba(53, 42, 63, 0.13);
}

.business-client-access-audiences label:has(input:focus-visible) span {
  outline: 3px solid rgba(81, 185, 158, 0.35);
  outline-offset: 1px;
}

.business-client-access-audiences label:has(input:disabled) {
  cursor: default;
  opacity: 0.48;
}

.business-client-access-groups {
  display: flex;
  width: min(100%, 520px);
  max-height: 76px;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0 auto;
  padding: 0 2px 1px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.business-client-access-groups[hidden] {
  display: none;
}

.business-client-access-groups label {
  display: inline-grid;
  grid-template-columns: 14px minmax(0, auto);
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border: 1px solid #e1dbe5;
  border-radius: 999px;
  color: #655d69;
  background: #fff;
  font-size: 0.63rem;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.business-client-access-groups label:has(input:checked) {
  border-color: color-mix(in srgb, var(--client-group-color) 58%, #ddd6e2);
  color: color-mix(in srgb, var(--client-group-color) 72%, #2f2836);
  background: color-mix(in srgb, var(--client-group-color) 10%, #fff);
}

.business-client-access-groups label:hover {
  border-color: color-mix(in srgb, var(--client-group-color) 42%, #d8d1dc);
  transform: translateY(-1px);
}

.business-client-access-groups label:has(input:focus-visible) {
  outline: 3px solid rgba(81, 185, 158, 0.35);
  outline-offset: 1px;
}

.business-client-access-groups label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-client-access-groups input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--client-group-color);
}

.business-client-access-groups label:has(input:disabled) {
  cursor: default;
  opacity: 0.72;
}

.business-client-access-groups label:has(input:disabled):hover {
  transform: none;
}

.business-access-capability {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 7px 9px;
  border-top: 1px solid #eeeaf0;
}

.business-access-capability:first-child {
  border-top: 0;
}

.business-access-capability-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 3px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: help;
}

.business-access-capability-copy > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.business-access-capability-copy strong {
  color: #49424e;
  font-size: 0.7rem;
}

.business-access-capability-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #837b87;
  font-size: 0.59rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.business-access-capability-copy > i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: #6650a2;
  background: #eee9f7;
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 850;
}

.business-access-level-controls {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 4px;
}

.business-access-level-controls button {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #ddd7e1;
  border-radius: 8px;
  color: #766e7b;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.business-access-level-controls button > span {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid #d0c9d5;
  border-radius: 4px;
  font-size: 0.48rem;
}

.business-access-level-controls button > b {
  overflow: hidden;
  font-size: 0.6rem;
  text-align: left;
  text-overflow: ellipsis;
}

.business-access-level-controls button[aria-pressed="true"] {
  border-color: #9f8dc8;
  color: #4f3b82;
  background: #f1ecfa;
}

.business-access-level-controls button[data-level="edit"][aria-pressed="true"] {
  border-color: #7ec6b3;
  color: #286b59;
  background: #e8f6f1;
}

.business-access-level-controls button[aria-pressed="true"] > span {
  border-color: currentColor;
  color: #fff;
  background: currentColor;
}

.business-access-level-controls button:disabled {
  color: #aaa3ae;
  background: #f3f1f4;
  cursor: not-allowed;
  opacity: 0.62;
}

.business-role-access-matrix > footer {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #587067;
  background: #edf7f3;
}

.business-role-access-matrix > footer > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #4a8b78;
  font-family: Georgia, serif;
  font-size: 0.6rem;
  font-weight: 850;
}

.business-role-access-matrix > footer p {
  margin: 0;
  font-size: 0.63rem;
  line-height: 1.45;
}

.business-permission-pool h3 small {
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #6e5d91;
  background: #eee9f7;
  font-size: 0.48rem;
  font-weight: 800;
}

.business-role-form-access {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.business-role-form-access > legend {
  color: #4b4451;
  font-size: 0.78rem;
  font-weight: 820;
}

.business-role-form-access > legend > small {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #76698d;
  background: #eee9f7;
  font-size: 0.52rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: none;
}

.business-role-form-access > p {
  margin: 0 0 2px;
  color: #7b747f;
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-role-form-domains {
  grid-template-columns: minmax(0, 1fr);
}

.business-role-form-capability {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 128px 108px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  border-top: 1px solid #eeeaf0;
}

.business-role-form-capability:first-child {
  border-top: 0;
}

.business-role-form-capability > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-role-form-capability > div:first-child strong {
  color: #49424e;
  font-size: 0.67rem;
}

.business-role-form-capability > div:first-child small {
  color: #837b87;
  font-size: 0.55rem;
  line-height: 1.35;
}

.business-role-form-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.business-role-form-levels > :is(label, span) {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  min-height: 36px;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #ddd7e1;
  border-radius: 8px;
  color: #766e7b;
  background: #fff;
  cursor: pointer;
}

.business-role-form-levels input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-role-form-levels > :is(label, span) > span,
.business-role-form-levels > span > i {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid #d0c9d5;
  border-radius: 4px;
  font-size: 0.48rem;
  font-style: normal;
}

.business-role-form-levels b {
  overflow: hidden;
  font-size: 0.52rem;
  text-overflow: ellipsis;
}

.business-access-capability[data-capability="exports"]
  .business-access-checkbox,
.business-role-form-capability[data-capability="exports"]
  .business-role-form-levels
  > :is(label, span) {
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 4px;
  padding-inline: 5px;
}

.business-access-capability[data-capability="exports"]
  .business-access-checkbox
  > b,
.business-role-form-capability[data-capability="exports"]
  .business-role-form-levels
  b {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.business-role-form-levels label.is-selected {
  border-color: #9f8dc8;
  color: #4f3b82;
  background: #f1ecfa;
}

.business-role-form-levels
  label:has(input[data-access-level="edit"]).is-selected {
  border-color: #7ec6b3;
  color: #286b59;
  background: #e8f6f1;
}

.business-role-form-levels label.is-selected > span {
  border-color: currentColor;
  color: #fff;
  background: currentColor;
}

.business-role-form-levels > span.is-unavailable {
  color: #aaa3ae;
  background: #f3f1f4;
  cursor: not-allowed;
  opacity: 0.62;
}

.business-role-form-scope {
  display: grid;
  gap: 2px;
}

.business-role-form-scope > span {
  color: #827985;
  font-size: 0.5rem;
  font-weight: 780;
  text-transform: uppercase;
}

.business-role-form-scope select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 25px 0 8px;
  border: 1px solid #ddd7e1;
  border-radius: 8px;
  color: #514959;
  background: #fff;
  font: inherit;
  font-size: 0.58rem;
}

.business-role-form-scope select:disabled {
  color: #aaa3ae;
  background: #f3f1f4;
}

.business-invitations-drawer-list,
.business-invitation-drawer-detail {
  display: grid;
  gap: 14px;
  padding: 18px 20px 28px;
}

.business-invitations-drawer-summary {
  display: flex;
  gap: 8px;
}

.business-invitations-drawer-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid #e4dfe7;
  border-radius: 999px;
  color: #77707b;
  background: #fff;
  font-size: 0.66rem;
}

.business-invitations-drawer-summary strong {
  color: #3f3745;
  font-size: 0.78rem;
}

.business-invitations-drawer-list > div:last-child {
  display: grid;
  gap: 7px;
}

.business-invitation-drawer-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid #e7e2e9;
  border-radius: 12px;
  color: inherit;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.business-invitation-drawer-row:hover {
  border-color: #cfc4df;
  background: #faf8fd;
  transform: translateX(-2px);
}

.business-invitation-drawer-row > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #4c3c76;
  background: #ede8f7;
  font-size: 0.78rem;
  font-weight: 850;
}

.business-invitation-drawer-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-invitation-drawer-row :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-invitation-drawer-row strong {
  color: #413a46;
  font-size: 0.72rem;
}

.business-invitation-drawer-row small {
  color: #7e7682;
  font-size: 0.6rem;
}

.business-invitation-drawer-row > i {
  color: #8b8194;
  font-size: 1rem;
  font-style: normal;
}

.business-team-drawer-back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  color: #5e4b92;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 780;
  cursor: pointer;
}

.business-team-drawer-back-link:hover {
  background: #f1edf8;
}

.business-invitation-drawer-detail .business-invitation-detail {
  display: grid;
  gap: 10px;
}

.business-invitation-delivery-note {
  padding: 12px 14px;
  border: 1px solid #cfe7df;
  border-radius: 11px;
  color: #477064;
  background: #edf8f4;
}

.business-invitation-delivery-note :is(strong, p) {
  margin: 0;
}

.business-invitation-delivery-note strong {
  font-size: 0.7rem;
}

.business-invitation-delivery-note p {
  margin-top: 2px;
  font-size: 0.64rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .business-role-workspace > .business-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-role-access-domains {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .business-role-palette {
    position: static;
  }

  .business-role-workspace > .business-role-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-lane > .business-role-access-matrix {
    grid-column: 1;
    grid-row: auto;
  }

  .business-role-lane > header,
  .business-role-lane > .business-role-access-drop,
  .business-role-lane > .business-role-members,
  .business-role-lane > .business-role-member-list,
  .business-role-lane > .business-role-permissions {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .business-team-drawer,
  .business-team-drawer-layer[data-team-drawer="service-category"]
    .business-team-drawer,
  .business-team-drawer-layer[data-team-drawer="client-category"]
    .business-team-drawer,
  .business-team-drawer-layer[data-team-drawer="access-role"]
    .business-team-drawer {
    width: 100vw;
  }

  .business-team-drawer-header {
    padding-inline: 16px;
  }

  .business-team-drawer-form {
    padding: 16px 16px 112px;
  }

  .business-team-drawer-form > .business-form-grid,
  .business-role-access-domains {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-team-drawer-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 16px;
  }

  .business-team-drawer-footer > span {
    display: none;
  }

  .business-team-drawer-footer > * {
    min-height: 44px;
  }

  .business-team-drawer-layer[data-team-drawer="access-role"]
    .business-team-drawer-footer {
    align-items: stretch;
    gap: 8px;
  }

  .business-team-drawer-layer[data-team-drawer="service-category"]
    .business-team-drawer-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .business-team-drawer-layer[data-team-drawer="client-category"]
    .business-team-drawer-footer {
    display: flex;
  }

  .business-team-drawer-layer[data-team-drawer="service-category"]
    .business-team-drawer-footer-danger,
  .business-team-drawer-layer[data-team-drawer="service-category"]
    .business-team-drawer-footer-actions {
    grid-column: 1;
    width: 100%;
  }

  .business-team-drawer-layer[data-team-drawer="service-category"]
    .business-team-drawer-footer-danger
    > button {
    width: 100%;
  }

  .business-team-drawer-footer-danger:empty {
    display: none;
  }

  .business-team-drawer-footer-actions {
    flex: 1;
  }

  .business-team-drawer-footer-actions > button {
    flex: 1;
    min-width: 0;
  }

  .business-role-color-presets > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .business-role-form-capability {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .business-role-form-scope {
    grid-column: 1 / -1;
  }

  .business-invitations-drawer-list,
  .business-invitation-drawer-detail {
    padding-inline: 16px;
  }
}

@media (max-width: 480px) {
  .business-client-access-row-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .business-client-access-audiences {
    width: 100%;
  }

  .business-client-access-audiences label {
    min-width: 0;
    flex: 1;
  }

  .business-client-access-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-access-domain-group > header,
  .business-role-form-domain > header {
    display: grid;
  }

  .business-access-domain-group > header > span,
  .business-role-form-domain > header > span {
    justify-self: end;
  }

  .business-access-capability {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-access-level-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-access-level-controls button {
    min-height: 44px;
  }

  .business-role-form-capability {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-form-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-role-form-levels > :is(label, span) {
    min-height: 44px;
  }

  .business-role-form-scope {
    grid-column: 1;
  }

  .business-invitation-drawer-row {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
  }

  .business-invitation-drawer-row > .business-status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-team-drawer-backdrop,
  .business-team-drawer,
  .business-team-drawer-layer.is-closing .business-team-drawer-backdrop,
  .business-team-drawer-layer.is-closing .business-team-drawer {
    animation: none;
  }

  .business-operations-summary-action,
  .business-invitation-drawer-row,
  .business-access-level-controls button,
  .business-team-service-row {
    transition: none;
  }

  .business-team-service-loading > span {
    animation: none;
    opacity: 0.8;
  }
}

/* Keep the simplified roles workspace authoritative over legacy role-card rules. */
.business-role-manager.business-role-workspace {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.business-role-card > .business-selected-role-header {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
}

.business-role-card > .business-selected-role-header > span {
  width: 13px;
  height: 13px;
  margin-top: 8px;
}

.business-role-card > .business-selected-role-header > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.business-role-card
  > .business-selected-role-header
  > .business-selected-role-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 560px) {
  .business-role-manager.business-role-workspace {
    margin-inline: 0;
    padding: 0;
  }

  .business-role-card > .business-selected-role-header {
    grid-template-columns: 13px minmax(0, 1fr);
  }

  .business-role-card
    > .business-selected-role-header
    > .business-selected-role-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 24px;
  }
}

/* Responsive Team roles workspace
   The role selector becomes a compact horizontal directory before the
   permissions canvas gets narrow. Permission groups then collapse by the
   actual card width (not just the viewport), which also handles browser zoom
   and the persistent business sidebar. */
.business-team-page,
.business-team-view-panel,
.business-team-view-stage,
.business-role-manager.business-role-workspace,
.business-role-selector,
.business-role-detail,
.business-role-card,
.business-role-access-matrix,
.business-role-access-domains,
.business-access-domain-group {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.business-role-manager.business-role-workspace {
  grid-template-columns: 248px minmax(0, 1fr);
}

.business-team-view-stage {
  container: team-workspace / inline-size;
}

@container team-workspace (max-width: 900px) {
  .business-team-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-team-overview > .business-salon-code-card {
    width: 100%;
    justify-self: stretch;
  }
}

.business-role-detail {
  container: role-detail / inline-size;
}

.business-role-detail .business-access-capability-copy strong {
  font-size: 0.8rem;
}

.business-role-detail .business-access-capability-copy small {
  font-size: 0.71rem;
  line-height: 1.42;
}

.business-role-detail .business-access-domain-group > header strong {
  font-size: 0.8rem;
}

.business-role-detail .business-access-domain-group > header small {
  font-size: 0.69rem;
  line-height: 1.35;
}

@container team-workspace (max-width: 1240px) {
  .business-role-manager.business-role-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-selector {
    position: static;
    top: auto;
    gap: 8px;
    padding: 11px 12px;
  }

  .business-role-selector > header {
    align-items: center;
  }

  .business-role-selector > header p {
    max-width: 620px;
  }

  .business-role-selector > nav {
    display: flex;
    gap: 7px;
    min-width: 0;
    padding: 1px 1px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
  }

  .business-role-selector > nav > button {
    flex: 0 0 clamp(158px, 22cqi, 210px);
    min-height: 48px;
    scroll-snap-align: start;
  }
}

@container role-detail (max-width: 900px) {
  .business-role-detail .business-role-access-domains {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-detail .business-access-capability {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@container role-detail (max-width: 620px) {
  .business-role-detail > .business-role-card {
    padding: 13px;
  }

  .business-role-card > .business-selected-role-header {
    grid-template-columns: 13px minmax(0, 1fr);
  }

  .business-role-card
    > .business-selected-role-header
    > .business-selected-role-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 24px;
  }

  .business-selected-role-members > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-selected-role-members > header > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .business-role-access-matrix > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-role-detail .business-access-capability {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .business-role-detail
    .business-access-domain-group.is-toggle-domain
    .business-access-capability {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-detail .business-access-level-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .business-role-detail .business-access-level-controls.is-single-toggle {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 160px);
  }

  .business-role-detail .business-access-checkbox {
    min-height: 44px;
  }
}

@container team-workspace (max-width: 480px) {
  .business-role-selector {
    padding: 10px;
  }

  .business-role-selector > header p {
    display: none;
  }

  .business-role-selector > nav > button {
    flex-basis: 150px;
  }

  .business-role-access-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .business-role-access-guide > span {
    width: 100%;
  }
}

/* Calendar and availability workspace */
.business-schedule-page,
.business-schedule-page > *,
.business-calendar-surface,
.business-week-calendar,
.business-week-timeline-desktop,
.business-week-day-columns,
.business-month-grid,
.business-day-timeline {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.business-calendar-surface {
  overflow: hidden;
}

html[data-business-calendar-transition] .business-calendar-surface {
  view-transition-name: business-calendar-period;
}

html[data-business-calendar-transition]::view-transition-old(root) {
  opacity: 0;
  animation: none;
}

html[data-business-calendar-transition]::view-transition-new(root) {
  animation: none;
}

html[data-business-calendar-transition]::view-transition-old(root),
html[data-business-calendar-transition]::view-transition-new(root),
html[data-business-calendar-transition]::view-transition-old(
    business-calendar-period
  ),
html[data-business-calendar-transition]::view-transition-new(
    business-calendar-period
  ) {
  mix-blend-mode: normal;
}

html[data-business-calendar-transition="next"]::view-transition-old(
    business-calendar-period
  ) {
  animation: business-calendar-leave-left 260ms cubic-bezier(0.32, 0.72, 0, 1)
    both;
}

html[data-business-calendar-transition="next"]::view-transition-new(
    business-calendar-period
  ) {
  animation: business-calendar-enter-right 260ms cubic-bezier(0.32, 0.72, 0, 1)
    both;
}

html[data-business-calendar-transition="previous"]::view-transition-old(
    business-calendar-period
  ) {
  animation: business-calendar-leave-right 260ms cubic-bezier(0.32, 0.72, 0, 1)
    both;
}

html[data-business-calendar-transition="previous"]::view-transition-new(
    business-calendar-period
  ) {
  animation: business-calendar-enter-left 260ms cubic-bezier(0.32, 0.72, 0, 1)
    both;
}

.business-calendar-surface.is-entering-next {
  animation: business-calendar-enter-right 260ms cubic-bezier(0.32, 0.72, 0, 1)
    both;
}

.business-calendar-surface.is-entering-previous {
  animation: business-calendar-enter-left 260ms cubic-bezier(0.32, 0.72, 0, 1)
    both;
}

@keyframes business-calendar-leave-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0.68;
    transform: translateX(-4%);
  }
}

@keyframes business-calendar-enter-right {
  from {
    opacity: 0.68;
    transform: translateX(4%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes business-calendar-leave-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0.68;
    transform: translateX(4%);
  }
}

@keyframes business-calendar-enter-left {
  from {
    opacity: 0.68;
    transform: translateX(-4%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.business-schedule-page {
  --calendar-time-axis-width: 66px;
  --calendar-day-header-height: 62px;
  gap: 4px;
}

.business-schedule-page > .business-page-header {
  align-items: end;
  margin-bottom: 0;
}

.business-schedule-page > .business-page-header .business-header-actions {
  align-self: end;
}

.business-schedule-page-header > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-schedule-title-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.business-schedule-title-row h2 {
  margin: 0;
}

.business-schedule-mode-switch {
  --schedule-mode-tab-width: 84px;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, var(--schedule-mode-tab-width));
  width: max-content;
  padding: 3px;
  border: 1px solid #ded7e4;
  border-radius: 999px;
  background: #f5f2f7;
  box-shadow: inset 0 1px 2px rgba(53, 42, 65, 0.04);
  isolation: isolate;
}

.business-schedule-mode-switch::before {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: var(--schedule-mode-tab-width);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: #6550b6;
  box-shadow: 0 4px 13px rgba(75, 55, 137, 0.18);
  content: "";
  transform: translateX(0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease;
}

.business-schedule-mode-switch[data-active="hours"]::before {
  transform: translateX(var(--schedule-mode-tab-width));
}

.business-schedule-mode-switch[data-previous="bookings"][data-active="hours"]::before {
  animation: business-schedule-indicator-to-hours 340ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-schedule-mode-switch[data-previous="hours"][data-active="bookings"]::before {
  animation: business-schedule-indicator-to-bookings 340ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-schedule-mode-switch button {
  position: relative;
  z-index: 1;
  min-width: 84px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #504859;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 260ms ease;
}

.business-schedule-mode-switch button.active,
.business-schedule-mode-switch button[aria-selected="true"] {
  color: #fff;
}

.business-schedule-mode-switch button:focus-visible {
  outline: 3px solid #2f755f;
  outline-offset: 2px;
}

.business-schedule-mode-stage {
  display: grid;
  min-width: 0;
}

.business-schedule-mode-stage.is-entering {
  animation: business-schedule-mode-enter 340ms cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

@keyframes business-schedule-mode-enter {
  from {
    opacity: 0.72;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes business-schedule-indicator-to-hours {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--schedule-mode-tab-width));
  }
}

@keyframes business-schedule-indicator-to-bookings {
  from {
    transform: translateX(var(--schedule-mode-tab-width));
  }
  to {
    transform: translateX(0);
  }
}

.business-calendar-toolbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content minmax(210px, 1fr) minmax(
      174px,
      max-content
    );
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding: 6px;
  border-color: #e2dce6;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(47, 38, 58, 0.035);
}

.business-calendar-view-switch {
  gap: 2px;
  padding: 3px;
  border: 1px solid #e5dfe9;
  border-radius: 12px;
  background: #f7f5f8;
}

.business-calendar-view-switch button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 760;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.business-calendar-view-switch button.active {
  color: #fff;
  background: #6750ad;
  box-shadow: 0 4px 11px rgba(75, 54, 128, 0.2);
}

.business-calendar-period-navigation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(122px, 1fr) 36px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #e5dfe9;
  border-radius: 12px;
  background: #fff;
}

.business-calendar-period-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  color: #332c39;
  background: transparent;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 780;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.business-calendar-period-trigger::after {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.business-calendar-period-trigger:hover,
.business-calendar-period-trigger[aria-expanded="true"] {
  color: #513a94;
  background: #f4f0fa;
}

.business-calendar-period-trigger[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.business-calendar-period-trigger:focus-visible {
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-calendar-date-picker {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  left: 50%;
  width: min(328px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #ddd6e3;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 54px rgba(45, 34, 55, 0.17),
    0 5px 16px rgba(45, 34, 55, 0.08);
  isolation: isolate;
  transform: translateX(-50%);
  transform-origin: top center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.business-calendar-date-picker:not([hidden]) {
  animation: business-calendar-date-picker-enter 190ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-calendar-date-picker[hidden] {
  display: none !important;
}

@keyframes business-calendar-date-picker-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -7px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.business-calendar-date-picker-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.business-calendar-date-picker-header > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #665b70;
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.business-calendar-date-picker-header > button:hover {
  color: #513a94;
  background: #f1edf8;
}

.business-calendar-date-picker-header > button:active {
  transform: scale(0.92);
}

.business-calendar-date-picker-header > button:focus-visible,
.business-calendar-date-picker-month:focus-visible,
.business-calendar-date-picker-day:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-calendar-date-picker-month {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #332c39;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-date-picker-month-control {
  display: block;
  min-width: 0;
}

:is(input, select).business-calendar-date-picker-month {
  border-color: #e5dfe9;
  background: #fbfafc;
  cursor: pointer;
}

.business-calendar-date-picker-weekdays,
.business-calendar-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.business-calendar-date-picker-weekdays {
  align-items: center;
  min-height: 28px;
  margin-bottom: 2px;
  color: #7c7281;
  font-size: 0.61rem;
  font-weight: 810;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

.business-calendar-date-picker-day {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #3c3541;
  background: transparent;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 740;
  line-height: 1;
  cursor: pointer;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.business-calendar-date-picker-booking-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #7054bc;
  box-shadow: 0 1px 3px rgba(75, 54, 128, 0.2);
  transform: translateX(-50%);
}

.business-calendar-date-picker-day.is-selected
  .business-calendar-date-picker-booking-dot {
  border-color: rgba(101, 80, 182, 0.82);
  background: #fff;
}

.business-calendar-date-picker-day:hover:not(:disabled):not(.is-selected) {
  color: #2e6f5c;
  background: #edf8f4;
}

.business-calendar-date-picker-day:active:not(:disabled) {
  transform: scale(0.92);
}

.business-calendar-date-picker-day.is-outside {
  color: #aaa2ae;
}

.business-calendar-date-picker-day.is-today,
.business-calendar-date-picker-day[aria-current="date"] {
  border-color: #4e9d86;
  color: #286b58;
  box-shadow: inset 0 0 0 1px rgba(78, 157, 134, 0.1);
}

.business-calendar-date-picker-day.is-selected,
.business-calendar-date-picker-day[aria-selected="true"] {
  border-color: #6550b6;
  color: #fff;
  background: #6550b6;
  box-shadow: 0 5px 12px rgba(83, 61, 151, 0.24);
}

.business-calendar-date-picker-day.is-selected.is-today,
.business-calendar-date-picker-day[aria-selected="true"][aria-current="date"] {
  border-color: #fff;
  box-shadow:
    0 0 0 2px #4e9d86,
    0 5px 12px rgba(83, 61, 151, 0.24);
}

.business-calendar-date-picker-day:disabled,
.business-calendar-date-picker-day[aria-disabled="true"] {
  color: #c7c1c9;
  background: transparent;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.58;
}

.business-calendar-date-picker-footer {
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.business-calendar-date-picker-footer > button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: #5c4697;
  background: #f2eef9;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 820;
  cursor: pointer;
}

.business-calendar-date-picker-footer > button:hover {
  color: #fff;
  background: #6550b6;
}

.business-calendar-date-picker-footer > button:focus-visible {
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-calendar-period-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #665b70;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  transition:
    color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.business-calendar-period-button:hover {
  color: #513a94;
  background: #f1edf8;
}

.business-calendar-period-button:active {
  transform: scale(0.93);
}

.business-calendar-period-button:focus-visible {
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-calendar-professional-control {
  min-width: 0;
  min-height: 42px;
}

.business-calendar-professional-control .prelook-select-shell {
  width: 100%;
  min-width: 0;
}

.business-calendar-professional-control .prelook-select-trigger {
  min-height: 42px;
}

.business-calendar-own-schedule {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #d8e9e3;
  border-radius: 12px;
  color: #315f53;
  background: #f4fbf8;
  font-size: 0.72rem;
}

.business-calendar-own-schedule > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #50ad92;
  box-shadow: 0 0 0 4px rgba(80, 173, 146, 0.12);
}

.business-working-hours-legend {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #e4dfe7;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
}

.business-working-hours-legend > strong {
  flex: 0 0 auto;
  color: #625a67;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.business-working-hours-legend > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-working-hours-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f4854;
  font-size: 0.68rem;
  font-weight: 720;
}

.business-working-hours-legend li > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stylist-color, #b5482d);
  box-shadow: 0 0 0 3px var(--stylist-soft, #fbe9e4);
}

.business-working-hours-legend .business-salon-hours-legend {
  color: #2e705e;
  font-weight: 790;
}

.business-working-hours-legend .business-salon-hours-legend > i {
  border-radius: 3px;
  background: #45a889;
  box-shadow: 0 0 0 3px #dff3ec;
}

.business-booking-calendar-key {
  display: flex;
  align-items: center;
  gap: 7px 11px;
  min-width: 0;
  min-height: 36px;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid #e3dee7;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
}

.business-booking-calendar-key > strong {
  flex: 0 0 auto;
  color: #514956;
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.business-booking-calendar-key > ul {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 11px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-booking-calendar-key li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #4f4853;
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1;
}

.business-booking-calendar-key li > i {
  flex: 0 0 auto;
  width: 11px;
  height: 8px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.business-booking-calendar-key li > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-calendar-key .is-salon-open > i {
  border-color: rgba(43, 148, 118, 0.3);
  background: #d7f2e9;
}

.business-booking-calendar-key .is-stylist-working > i {
  border-color: rgba(101, 80, 184, 0.25);
  background: #eee9fb;
}

.business-booking-calendar-key .is-stylist > i {
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--stylist-color, #b5482d);
  box-shadow: 0 0 0 1px
    color-mix(in srgb, var(--stylist-color, #b5482d) 58%, #d6cfdb);
}

.business-booking-calendar-key .is-calendar-booking > i {
  border-color: #cfc0ef;
  background: #eee8fb;
}

.business-booking-calendar-key .is-calendar-break > i {
  border-color: #e4c779;
  background: #fff2cf;
}

.business-booking-calendar-key .is-calendar-other > i {
  border-color: #bfd0da;
  background: #e7f0f4;
}

.business-booking-calendar-key .is-calendar-gap > i {
  border-color: #9ccfbd;
  background: #def2e9;
}

.business-booking-calendar-key .is-phase-active > i {
  background: #765cbd;
}

.business-booking-calendar-key .is-phase-processing > i {
  background: #55b89c;
}

.business-booking-calendar-key .is-phase-processing-occupied > i {
  background: #b78a34;
}

.business-booking-calendar-key .is-phase-buffer > i {
  background: #8c858f;
}

.business-booking-stylist-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--booking-status-color, #766c7a);
  box-shadow: 0 0 0 1px
    color-mix(
      in srgb,
      var(--booking-status-color, #766c7a) 62%,
      #d6cfdb
    );
}

.business-booking-event {
  --stylist-color: #b5482d;
  --stylist-soft: #fbe9e4;
  --booking-status-color: #766c7a;
  --booking-status-soft: #f0edf4;
  --booking-status-text: #554e59;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  align-content: start;
  column-gap: 11px;
  border: 1px solid #d6caed;
  border-left: 5px solid var(--stylist-color);
  background: #f1ecfb;
  box-shadow: 0 3px 10px rgba(47, 39, 57, 0.08);
  color: #312a36;
  isolation: isolate;
  container: booking-event / inline-size;
  text-align: left;
}

:is(.business-booking-event, .business-month-booking-marker).status-booked {
  --booking-status-color: #3f73cf;
  --booking-status-soft: #e8f0fd;
  --booking-status-text: #244e98;
}

:is(.business-booking-event, .business-month-booking-marker).status-requested {
  --booking-status-color: #9a6a18;
  --booking-status-soft: #fff2d5;
  --booking-status-text: #704a0b;
}

:is(.business-booking-event, .business-month-booking-marker).status-confirmed {
  --booking-status-color: #2f946c;
  --booking-status-soft: #e2f4ec;
  --booking-status-text: #176047;
}

:is(.business-booking-event, .business-month-booking-marker).status-proposed {
  --booking-status-color: #7658ba;
  --booking-status-soft: #eee8fb;
}

:is(.business-booking-event, .business-month-booking-marker).status-completed {
  --booking-status-color: #227562;
  --booking-status-soft: #ddf3eb;
}

:is(
    .business-booking-event,
    .business-month-booking-marker
  ):is(.status-cancelled, .status-declined) {
  --booking-status-color: #b94f5c;
  --booking-status-soft: #fae5e7;
}

:is(.business-booking-event, .business-month-booking-marker).status-no_show {
  --booking-status-color: #a97716;
  --booking-status-soft: #fff1c8;
}

:is(
    .business-booking-event,
    .business-month-booking-marker
  ):is(.status-checked_in, .status-in_progress) {
  --booking-status-color: #315f85;
  --booking-status-soft: #e7f2fa;
}

.business-booking-event > .business-booking-stylist-dot {
  margin-top: 3px;
}

.business-booking-event.is-calendar-event-short {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 1px 3px;
}

.business-booking-event.is-calendar-event-short
  > .business-booking-stylist-dot {
  margin: 0;
}

.business-booking-event.is-calendar-event-short
  > .business-booking-event-summary {
  display: none;
}

.business-booking-event[tabindex] {
  cursor: pointer;
}

.business-booking-event:focus-visible {
  z-index: 30;
  outline: 3px solid #6b56a8;
  outline-offset: 2px;
}

.business-booking-event-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-content: start;
  gap: 2px;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  text-align: left;
}

.business-booking-event-summary > :is(strong, span, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-event-summary > strong {
  grid-column: 1;
  grid-row: 1;
  color: #2f2933;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.12;
}

.business-booking-event-summary > span,
.business-booking-event-summary > small {
  color: #655e69;
  font-size: 0.62rem;
}

.business-booking-event-summary > .business-booking-event-status {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  width: max-content;
  max-width: 100%;
  min-height: 16px;
  align-items: center;
  align-self: start;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--booking-status-text, #554e59);
  background: var(--booking-status-soft, #f0edf4);
  font-size: 0.52rem;
  font-weight: 850;
  line-height: 1;
  text-overflow: clip;
}

.business-booking-event-summary
  > :is(.business-booking-event-service, small) {
  grid-column: 1 / -1;
}

.business-booking-event.has-booking-gap.business-week-event {
  display: block;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.business-booking-event.has-booking-gap
  > .business-booking-stylist-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--stylist-color, #b5482d);
  pointer-events: none;
}

.business-booking-event.has-booking-gap
  > .business-booking-occupied-segment {
  position: absolute;
  top: var(--booking-segment-top, 0%);
  right: 0;
  left: 0;
  z-index: 2;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 12px minmax(0, 1fr);
  min-width: 0;
  min-height: 2px;
  height: var(--booking-segment-height, 100%);
  align-content: start;
  align-items: start;
  column-gap: 11px;
  overflow: hidden;
  padding: 6px 7px 6px 12px;
  border: 1px solid #d6caed;
  border-left: 0;
  border-radius: 8px;
  color: #312a36;
  background: #f1ecfb;
  box-shadow: 0 3px 10px rgba(47, 39, 57, 0.08);
  cursor: pointer;
  pointer-events: auto;
}

.business-booking-event.has-booking-gap
  > .business-booking-occupied-segment.is-continuation {
  cursor: pointer;
}

.business-booking-event.has-booking-gap
  > .business-booking-occupied-segment
  > .business-booking-stylist-dot {
  margin-top: 3px;
}

.business-booking-event.has-booking-gap
  > .business-calendar-event-resize-handle {
  pointer-events: auto;
}

.business-booking-event-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 7px;
  width: min(230px, calc(100vw - 40px));
  padding: 11px 12px;
  border: 1px solid #dcd5e1;
  border-radius: 12px;
  color: #362f3b;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 13px 32px rgba(40, 31, 51, 0.2);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 130ms ease,
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 150ms;
  text-align: left;
}

.business-week-day-columns
  > section:nth-child(n + 6)
  .business-booking-event-tooltip,
.business-booking-event.is-calendar-edge-end .business-booking-event-tooltip {
  right: 0;
  left: auto;
}

.business-booking-event.is-calendar-edge-bottom .business-booking-event-tooltip,
.business-month-booking-marker.is-calendar-edge-bottom
  + .business-booking-event-tooltip {
  top: auto;
  bottom: calc(100% + 7px);
}

.business-booking-event.is-calendar-event-tall .business-booking-event-tooltip {
  top: 8px;
  bottom: auto;
}

.business-booking-event:hover .business-booking-event-tooltip,
.business-month-booking-marker:hover + .business-booking-event-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 70ms, 70ms, 0s;
  pointer-events: none;
}

.business-booking-event-tooltip > strong {
  overflow: hidden;
  color: #2f2933;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-event-tooltip > header {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.business-booking-event-tooltip > header > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stylist-color, #b5482d);
}

.business-booking-event-tooltip > header strong {
  overflow: hidden;
  color: #2f2933;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-booking-event-tooltip dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.business-booking-event-tooltip dl > div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
}

.business-booking-event-tooltip :is(dt, dd) {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.35;
}

.business-booking-event-tooltip dt {
  color: #817985;
}

.business-booking-event-tooltip dd {
  overflow-wrap: anywhere;
  color: #49414d;
  font-weight: 720;
}

.business-booking-event.is-selecting-gap {
  z-index: 32 !important;
  cursor: ns-resize;
  user-select: none;
}

.business-booking-event.is-selecting-gap > .business-booking-event-tooltip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.business-calendar-gap-selection {
  position: absolute;
  top: var(--calendar-gap-selection-top, 0%);
  right: 3px;
  left: 3px;
  z-index: 24;
  display: grid;
  min-height: 8px;
  height: max(8px, var(--calendar-gap-selection-height, 10%));
  place-items: start;
  overflow: hidden;
  padding: 3px 5px;
  border: 1px solid #4b9380;
  border-radius: 6px;
  color: #235f50;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.24) 0 7px,
      rgba(255, 255, 255, 0.52) 7px 9px
    ),
    rgba(181, 231, 216, 0.96);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.72),
    0 5px 14px rgba(35, 95, 80, 0.2);
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1.15;
  pointer-events: none;
  animation: business-calendar-draft-in 100ms ease-out both;
}

.business-calendar-event-field {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  overflow: visible;
  pointer-events: none;
}

/* Day view keeps a quiet, unpainted interaction lane available beside events.
   Week view intentionally remains edge-to-edge. */
.business-day-staff-grid.has-calendar-interaction-lane
  > .business-calendar-event-field,
.business-day-timeline-grid.has-calendar-interaction-lane
  > .business-calendar-event-field {
  right: var(--calendar-interaction-lane-width);
}

.business-day-booking-layer.business-calendar-event-field {
  left: var(--calendar-time-axis-width, 66px);
}

.business-calendar-event-field > .business-week-event {
  pointer-events: auto;
}

.business-day-booking-layer .business-week-event {
  position: absolute;
  top: calc(var(--calendar-live-top, var(--event-top, 0px)) + 3px);
  left: calc(
    var(--calendar-live-left, var(--event-left, 0%)) + 3px +
      var(--event-gap-rail-inset, 0px)
  );
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 2px;
  width: calc(
    var(--calendar-live-width, var(--event-width, 100%)) - 6px -
      var(--event-gap-rail-inset, 0px)
  );
  min-width: 0;
  height: calc(var(--calendar-live-height, var(--event-height, 32px)) - 5px);
  min-height: 10px;
  overflow: visible;
  padding: 6px 8px;
  border-radius: 8px;
  pointer-events: auto;
  transition:
    top 170ms cubic-bezier(0.22, 1, 0.36, 1),
    left 170ms cubic-bezier(0.22, 1, 0.36, 1),
    width 170ms cubic-bezier(0.22, 1, 0.36, 1),
    height 170ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease,
    transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 170ms ease;
}

.business-day-booking-layer .business-week-event:not(.business-booking-event) {
  border: 1px solid #d8d2dc;
  border-left: 3px solid #89818f;
  color: #5f5865;
  background: #efedf1;
}

.business-day-booking-layer .business-booking-event:hover,
.business-day-booking-layer .business-booking-event:focus-visible {
  z-index: 30;
}

.business-week-timeline-desktop .business-booking-event.business-week-event {
  overflow: visible;
  min-height: 10px;
  padding: 6px 7px;
}

.business-week-timeline-desktop
  .business-booking-event.business-week-event.is-calendar-event-short,
.business-day-booking-layer .business-booking-event.is-calendar-event-short {
  padding: 1px 3px;
}

.business-week-timeline-desktop
  .business-booking-event.business-week-event
  > :not(.business-booking-event-tooltip) {
  min-width: 0;
}

@container booking-event (max-width: 82px) {
  .business-booking-event-summary > :is(span, small),
  .business-booking-event > :is(span, small) {
    display: none;
  }

  .business-booking-event-summary > strong,
  .business-booking-event > strong {
    font-size: 0.74rem;
  }
}

@container booking-event (max-width: 46px) {
  .business-booking-event-summary > :is(strong, span, small),
  .business-booking-event > :is(strong, span, small) {
    display: none;
  }

  .business-booking-event-summary {
    display: none;
  }
}

.business-month-grid > section:has(.business-month-booking-marker:hover),
.business-month-grid
  > section:has(.business-month-booking-marker:focus-visible) {
  z-index: 20;
  overflow: visible;
}

.business-month-booking-marker-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 3px;
}

.business-month-booking-marker {
  position: relative;
  display: grid;
  grid-template-columns: 8px auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 25px;
  margin-top: 0;
  overflow: visible;
  padding: 4px 6px;
  border: 0;
  border-radius: 7px;
  color: #3d3542;
  background: var(
    --stylist-soft,
    color-mix(in srgb, var(--stylist-color, #b5482d) 12%, #fff)
  );
  box-shadow: inset 3px 0 0 var(--stylist-color, #b5482d);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-month-booking-marker > .business-booking-stylist-dot {
  width: 7px;
  height: 7px;
  border-width: 1px;
}

.business-month-booking-marker > :is(b, span) {
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-month-booking-marker > b {
  color: #403847;
  font-weight: 820;
}

.business-month-booking-marker > span {
  color: #5f5764;
  font-weight: 700;
}

.business-month-booking-marker:focus-visible {
  z-index: 30;
  outline: 3px solid var(--stylist-color, #b5482d);
  outline-offset: 1px;
}

.business-month-grid
  > section:nth-child(7n + 6)
  .business-month-booking-marker
  + .business-booking-event-tooltip,
.business-month-grid
  > section:nth-child(7n)
  .business-month-booking-marker
  + .business-booking-event-tooltip,
.business-month-booking-marker.is-calendar-edge-end
  + .business-booking-event-tooltip {
  right: 0;
  left: auto;
}

.business-calendar-surface[data-calendar-mode="bookings"]
  .business-month-grid
  > section.is-location-open {
  background: #fff;
}

.business-calendar-surface[data-calendar-mode="bookings"]
  .business-month-grid
  > section.has-custom-hours {
  background: #fff;
}

/* Booking timelines use a generous vertical scale so short appointments remain
   legible. The schedule stays within the workspace and scrolls through time. */
.business-calendar-surface[data-calendar-mode="bookings"]
  :is(
    .business-week-timeline-desktop,
    .business-day-staff-scroll,
    .business-bookings-no-team-calendar
  ) {
  height: clamp(520px, 72dvh, 820px);
  max-height: none;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: #c8bfd9 #f6f3f8;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

/* On desktop the timeline grows to the bottom of the visible workspace. The
   extra week offset accounts for its color key, while time remains internally
   scrollable at the readable 120px-per-hour scale. */
@media (min-width: 821px) {
  .business-calendar-surface[data-calendar-mode="bookings"][data-calendar-view="day"]
    :is(.business-day-staff-scroll, .business-bookings-no-team-calendar) {
    height: max(520px, calc(100dvh - 200px));
  }

  .business-calendar-surface[data-calendar-mode="bookings"][data-calendar-view="week"]
    .business-week-timeline-desktop {
    height: max(520px, calc(100dvh - 240px));
  }
}

.business-calendar-surface[data-calendar-mode="bookings"]
  :is(
    .business-week-timeline-desktop,
    .business-day-staff-scroll,
    .business-bookings-no-team-calendar
  ):focus-visible {
  outline: 3px solid rgba(101, 80, 184, 0.28);
  outline-offset: -3px;
}

.business-calendar-surface[data-calendar-mode="bookings"]
  .business-bookings-no-team-calendar
  > .business-day-hours-axis-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.business-week-timeline-desktop {
  grid-template-columns: 56px minmax(0, 1fr);
  min-width: 0;
}

.business-week-timeline-desktop > header {
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
}

.business-week-day-columns {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.business-week-day-columns > section {
  min-width: 0;
  overflow: visible;
}

/* Only the day board reserves room for direct range creation. It deliberately
   has no divider or background treatment: the space is part of the calendar,
   not a separate control. */
.business-day-staff-grid.has-calendar-interaction-lane,
.business-day-timeline-grid.has-calendar-interaction-lane {
  --calendar-interaction-lane-width: clamp(30px, 3%, 42px);
}

.business-week-timeline-desktop > header > :is(div, button) {
  min-width: 0;
  gap: 4px;
}

.business-week-timeline-desktop > header > :is(div, button) > span {
  overflow: hidden;
  font-size: clamp(0.58rem, 0.72vw, 0.72rem);
  text-overflow: ellipsis;
}

.business-week-timeline-desktop > header > :is(span, div, button) {
  border-right: 1px solid #eeeaf0;
}

.business-week-timeline-desktop > header > .business-week-date-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  border-right: 1px solid #eeeaf0;
  border-radius: 0;
  color: #746d7a;
  background: transparent;
  font: inherit;
  appearance: none;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease;
}

.business-week-timeline-desktop > header > .business-week-date-button > span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.business-week-timeline-desktop > header > .business-week-date-button > strong {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #39323f;
  font-size: 0.82rem;
}

.business-week-timeline-desktop
  > header
  > .business-week-date-button:is(:hover, :focus-visible) {
  color: #4b3880;
  background: #f8f5fc;
}

.business-week-timeline-desktop
  > header
  > .business-week-date-button:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(47, 117, 95, 0.48);
  outline-offset: -3px;
}

.business-week-timeline-desktop > header > .business-week-date-button.today {
  color: #4b3880;
}

.business-week-timeline-desktop
  > header
  > .business-week-date-button.today
  > strong {
  color: #fff;
  background: #6e55b7;
}

.business-week-drop-grid > div,
.business-time-row > div[data-business-booking-slot],
.business-day-staff-slots > div[data-business-booking-slot] {
  position: relative;
  cursor: crosshair;
  touch-action: pan-y;
}

.business-week-drop-grid > div:hover {
  background: transparent;
}

.business-day-staff-grid.has-calendar-interaction-lane
  .business-day-staff-slots
  > div:is(:hover, :focus-visible),
.business-day-timeline-grid.has-calendar-interaction-lane
  .business-time-row
  > div[data-business-booking-slot]:is(:hover, :focus-visible),
.business-week-day-columns
  > section.has-calendar-interaction-lane
  .business-week-drop-grid
  > div:is(:hover, :focus-visible) {
  background: transparent;
}

.business-day-timeline-grid {
  position: relative;
  min-width: 0;
}

/* Calendar time context stays behind interactive slots and appointments while
   keeping the current instant visible above them. JavaScript only updates the
   two percentage variables once per minute; no calendar rerender is needed. */
.business-calendar-past-time-shade {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: var(--calendar-past-time-end, 0%);
  min-height: 0;
  border-bottom: 1px solid rgba(104, 91, 112, 0.14);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(92, 80, 100, 0.018) 0 8px,
      rgba(92, 80, 100, 0.055) 8px 9px
    ),
    rgba(103, 91, 111, 0.1);
  pointer-events: none;
}

.business-calendar-now-line {
  position: absolute;
  top: var(--calendar-now-position, 0%);
  right: 0;
  left: 0;
  z-index: 6;
  height: 2px;
  background: #d92d20;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.76);
  pointer-events: none;
  transform: translateY(-1px);
}

.business-calendar-now-line > span {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d92d20;
  box-shadow: 0 0 0 1px rgba(163, 31, 23, 0.22);
  transform: translateY(-50%);
}

.business-calendar-now-line > time {
  position: absolute;
  top: 50%;
  left: 8px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: #d92d20;
  box-shadow: 0 1px 3px rgba(128, 28, 22, 0.2);
  font-size: 0.55rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.business-day-timeline-grid
  > :is(.business-calendar-past-time-shade, .business-calendar-now-line) {
  left: var(--calendar-time-axis-width, 66px);
}

.business-day-timeline-grid > .business-calendar-now-line > time {
  right: calc(100% + 5px);
  left: auto;
}

.business-day-staff-column:not(:first-child)
  .business-calendar-now-line
  > :is(span, time) {
  display: none;
}

@media (max-width: 820px) {
  .business-calendar-now-line > time {
    padding-inline: 4px;
    font-size: 0.52rem;
  }
}

@media (forced-colors: active) {
  .business-calendar-past-time-shade {
    border-bottom: 1px solid GrayText;
    background: Canvas;
    opacity: 0.2;
  }

  .business-calendar-now-line,
  .business-calendar-now-line > :is(span, time) {
    color: HighlightText;
    background: Highlight;
    forced-color-adjust: none;
  }
}

/* Keep the empty-team bookings fallback aligned with the normal day board:
   salon availability belongs to the schedule body, never the time gutter. */
.business-bookings-no-team-calendar
  .business-day-timeline-grid
  > :is(
    .business-calendar-salon-availability,
    .business-booking-closure-layer
  ) {
  left: var(--calendar-time-axis-width, 66px);
}

.business-bookings-no-team-calendar
  .business-day-timeline-grid
  .business-time-row
  > time {
  z-index: 4;
  background: #fff;
}

.business-calendar-surface
  :is(.business-day-timeline, .business-day-staff-calendar) {
  padding: 0;
}

.business-day-hours-axis-header {
  display: grid;
  grid-template-columns: var(--calendar-time-axis-width, 66px) minmax(0, 1fr);
  min-height: var(--calendar-day-header-height, 62px);
  border-bottom: 1px solid #e6e1e8;
  background: #fff;
}

.business-day-hours-axis-header > .business-day-staff-corner {
  position: relative;
  inset: auto;
  min-height: var(--calendar-day-header-height, 62px);
}

.business-day-hours-axis-header > .business-working-hours-legend {
  width: max-content;
  max-width: calc(100% - 16px);
  min-height: 42px;
  align-self: center;
  justify-self: start;
  overflow-x: auto;
  margin: 6px 8px;
  padding: 7px 10px;
  border: 1px solid #e4dfe7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  scrollbar-width: thin;
}

.business-day-hours-axis-header > .business-working-hours-legend > ul {
  flex-wrap: nowrap;
  min-width: max-content;
}

.business-day-staff-calendar {
  min-width: 0;
}

.business-day-staff-corner .business-day-salon-hours-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2e705e;
  font-size: 0.5rem;
  font-weight: 790;
  letter-spacing: 0;
  text-transform: none;
}

.business-day-staff-corner .business-day-salon-hours-key > i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #45a889;
  box-shadow: 0 0 0 2px #dff3ec;
}

.business-day-staff-header {
  box-shadow: inset 3px 0 0 var(--stylist-color, #b5482d);
}

.business-schedule-mode-stage > .business-working-hours-legend {
  min-height: 42px;
  overflow-x: auto;
  padding-block: 7px;
  scrollbar-width: thin;
}

.business-schedule-mode-stage > .business-working-hours-legend > ul {
  flex-wrap: nowrap;
  min-width: max-content;
}

.business-working-hours-legend .is-phase-active > i {
  border-radius: 3px;
  background: #765cbd;
  box-shadow: none;
}

.business-working-hours-legend .is-phase-processing > i {
  border-radius: 3px;
  background: #55b89c;
  box-shadow: none;
}

.business-working-hours-legend .is-phase-processing-occupied > i {
  border-radius: 3px;
  background: #b78a34;
  box-shadow: none;
}

.business-working-hours-legend .is-phase-buffer > i {
  border-radius: 3px;
  background: #8c858f;
  box-shadow: none;
}

.business-day-timeline-grid .business-time-row {
  grid-template-columns: var(--calendar-time-axis-width, 66px) minmax(0, 1fr);
  height: var(--calendar-hour-height, 64px);
  min-height: var(--calendar-hour-height, 64px);
  border-bottom: 0;
}

.business-day-staff-time-axis > time,
.business-day-timeline-grid .business-time-row > time {
  height: var(--calendar-hour-height, 64px);
  min-height: var(--calendar-hour-height, 64px);
  padding: 7px 8px 0 0;
  border-right: 1px solid #e6e1e8;
  border-bottom: 1px solid #f0ecf1;
  color: #817985;
  font-size: 0.64rem;
  line-height: 1;
  text-align: right;
}

.business-day-timeline-grid .business-time-row > div {
  padding: 0;
  border-left: 0;
  border-bottom: 1px solid #f0ecf1;
}

.business-date-hours-window {
  position: absolute;
  top: var(--date-hours-top, 0);
  right: 4px;
  left: 4px;
  z-index: 5;
  height: var(--date-hours-height, 64px);
  min-height: 1px;
  border-block: 1px solid rgba(104, 86, 126, 0.24);
  border-radius: 5px;
  background: rgba(88, 195, 165, 0.11);
  box-shadow: none;
  pointer-events: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.business-team-hours-layer {
  position: absolute;
  inset: 0 4px;
  z-index: 5;
  pointer-events: none;
}

.business-salon-closed-hours-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(92, 83, 97, 0.035) 0 8px,
      rgba(92, 83, 97, 0.09) 8px 9px
    ),
    #f8f7f8;
  pointer-events: none;
}

.business-salon-date-hours-window {
  z-index: 4;
  border: 1px solid rgba(104, 86, 126, 0.3);
  background: rgba(223, 246, 238, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.business-week-day-columns
  > section.is-salon-hours-context
  > .business-salon-date-hours-window.is-salon-control-overlay {
  z-index: 8;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.business-week-day-columns
  > section.is-salon-hours-context
  > .business-salon-date-hours-window.is-salon-control-overlay
  > :is(
    .business-date-hours-caption,
    .business-date-hours-reset,
    .business-date-hours-edit
  ) {
  display: none;
}

.business-team-hours-layer.has-salon-hours {
  right: 40px;
}

.business-day-timeline-grid > .business-team-hours-layer {
  right: 0;
  left: var(--calendar-time-axis-width, 66px);
}

.business-day-timeline-grid > .business-team-hours-layer.has-salon-hours {
  right: 40px;
  left: calc(var(--calendar-time-axis-width, 66px) + 40px);
}

.business-day-timeline-grid > .business-salon-closed-hours-layer {
  left: var(--calendar-time-axis-width, 66px);
}

.business-day-timeline-grid
  > .business-salon-date-hours-window[data-business-action="activate-date-hours-window"] {
  pointer-events: auto;
  cursor: pointer;
}

.business-team-hours-layer > .business-date-hours-window.is-team-hours-window {
  right: auto;
  left: calc(var(--team-hours-left, 0%) + 2px);
  width: calc(var(--team-hours-width, 100%) - 4px);
  pointer-events: none;
}

.business-team-hours-layer
  > .business-date-hours-window.is-team-hours-window[data-business-action="activate-date-hours-window"] {
  pointer-events: auto;
  cursor: pointer;
}

.business-team-hours-layer
  > .business-date-hours-window.is-team-hours-window.is-active {
  z-index: 9;
  box-shadow:
    inset 4px 0 0 var(--stylist-color, #b5482d),
    0 0 0 2px color-mix(in srgb, var(--stylist-color, #b5482d) 34%, #fff),
    0 7px 16px rgba(40, 31, 43, 0.12);
}

[data-schedule-mode="hours"][data-calendar-view="week"]
  .business-calendar-salon-open-window {
  box-shadow: none;
}

[data-schedule-mode="hours"][data-calendar-view="week"]
  .business-date-hours-window {
  border-inline-style: solid !important;
}

.business-team-hours-window {
  position: absolute;
  top: var(--team-hours-top, 0);
  left: calc(var(--team-hours-left, 0%) + 2px);
  width: calc(var(--team-hours-width, 100%) - 4px);
  height: var(--team-hours-height, 64px);
  min-width: 0;
  min-height: 18px;
  overflow: hidden;
  padding: 6px 5px;
  border: 1px solid color-mix(in srgb, var(--stylist-color) 45%, transparent);
  border-radius: 7px;
  color: color-mix(in srgb, var(--stylist-color) 76%, #2f2933);
  background: color-mix(in srgb, var(--stylist-soft) 76%, #fff);
  box-shadow: inset 3px 0 0 var(--stylist-color);
  text-align: left;
  pointer-events: auto;
  cursor: pointer;
  transition:
    filter 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.business-team-hours-window:hover {
  z-index: 8;
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 3px 0 0 var(--stylist-color),
    0 5px 14px rgba(52, 43, 61, 0.14);
}

.business-team-hours-window:focus-visible {
  z-index: 9;
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-team-hours-window > :is(strong, span) {
  display: block;
  overflow: hidden;
  font-size: 0.56rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-team-hours-window > strong {
  font-weight: 860;
}

.business-team-hours-window > span {
  margin-top: 2px;
  opacity: 0.82;
}

.business-team-hours-window.is-custom {
  border-style: dashed;
}

.business-week-timeline-desktop .business-week-event {
  position: absolute;
  top: calc(var(--calendar-live-top, var(--event-top, 0px)) + 3px);
  left: calc(
    var(--calendar-live-left, var(--event-left, 0%)) + 3px +
      var(--event-gap-rail-inset, 0px)
  );
  width: calc(
    var(--calendar-live-width, var(--event-width, 100%)) - 6px -
      var(--event-gap-rail-inset, 0px)
  );
  height: calc(var(--calendar-live-height, var(--event-height, 32px)) - 5px);
  z-index: 6;
  transition:
    top 170ms cubic-bezier(0.22, 1, 0.36, 1),
    left 170ms cubic-bezier(0.22, 1, 0.36, 1),
    width 170ms cubic-bezier(0.22, 1, 0.36, 1),
    height 170ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease,
    transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 170ms ease;
}

.business-day-staff-grid .business-calendar-event-field > .business-day-event {
  position: absolute;
  top: calc(var(--calendar-live-top, var(--event-top, 0px)) + 3px);
  left: calc(
    var(--calendar-live-left, var(--event-left, 0%)) + 3px +
      var(--event-gap-rail-inset, 0px)
  );
  width: calc(
    var(--calendar-live-width, var(--event-width, 100%)) - 6px -
      var(--event-gap-rail-inset, 0px)
  );
  height: calc(var(--calendar-live-height, var(--event-height, 32px)) - 5px);
  min-height: 10px;
  margin: 0;
  z-index: 6;
  transition:
    top 170ms cubic-bezier(0.22, 1, 0.36, 1),
    left 170ms cubic-bezier(0.22, 1, 0.36, 1),
    width 170ms cubic-bezier(0.22, 1, 0.36, 1),
    height 170ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease,
    transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 170ms ease;
}

.business-week-timeline-desktop .business-week-block,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-week-block {
  align-content: start;
  gap: 1px;
  min-height: 20px;
  padding: 4px 6px;
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(47, 39, 57, 0.07);
}

.business-week-block > strong {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 820;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-week-block > span {
  overflow: hidden;
  font-size: 0.54rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-week-timeline-desktop
  .business-week-event.business-week-block.is-stylist-specific,
.business-day-booking-layer
  .business-week-event.business-week-block.is-stylist-specific,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-week-block.is-stylist-specific {
  left: calc(var(--calendar-live-left, var(--event-left, 0%)) + 7px);
  width: calc(var(--calendar-live-width, var(--event-width, 100%)) - 14px);
  border: 1px solid #d8d2dc;
  border-left: 5px solid var(--stylist-color, #b5482d);
  color: #342e38;
}

.business-calendar-block.is-calendar-type-break {
  border-color: #e2c777;
  background: #fff2cf;
  color: #71510c;
}

.business-calendar-block.is-calendar-type-other {
  border-color: #bdced8;
  background: #e8f0f4;
  color: #43515a;
}

.business-calendar-block.is-stylist-specific.is-calendar-type-break,
.business-calendar-block.is-stylist-specific.is-calendar-type-other {
  border-left-color: var(--stylist-color, #b5482d);
  border-left-width: 5px;
}

.business-week-timeline-desktop
  .business-week-event.business-week-block.is-salon-wide,
.business-day-booking-layer
  .business-week-event.business-week-block.is-salon-wide,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-week-block.is-salon-wide {
  z-index: 5;
  border: 1px solid #c9c4cb;
  border-left: 5px solid #77717b;
  color: #554f58;
}

/* The base week/day block rules are intentionally more specific than the
   generic block palette. Repeat the semantic fills at the calendar scope so
   Break and Other never fall back to the neutral unavailable treatment. */
.business-week-timeline-desktop
  .business-week-event.business-week-block.is-calendar-type-break,
.business-day-booking-layer
  .business-week-event.business-week-block.is-calendar-type-break,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-week-block.is-calendar-type-break {
  border-top-color: #e2c777;
  border-right-color: #e2c777;
  border-bottom-color: #e2c777;
  background: #fff2cf;
  color: #71510c;
}

.business-week-timeline-desktop
  .business-week-event.business-week-block.is-calendar-type-other,
.business-day-booking-layer
  .business-week-event.business-week-block.is-calendar-type-other,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-week-block.is-calendar-type-other {
  border-top-color: #bdced8;
  border-right-color: #bdced8;
  border-bottom-color: #bdced8;
  background: #e8f0f4;
  color: #43515a;
}

.business-week-timeline-desktop .business-booking-event.business-week-event,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-booking-event {
  z-index: 7;
}

.business-day-booking-layer
  .business-week-event.business-week-block.is-salon-wide {
  z-index: 0;
}

.business-week-block.is-calendar-event-short > span {
  display: none;
}

.business-week-block.is-calendar-event-compact {
  align-content: center;
  padding: 3px 5px;
}

.business-booking-event.is-calendar-event-compact {
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  padding: 3px 5px;
}

.business-booking-event.is-calendar-event-compact
  > .business-booking-stylist-dot {
  width: 7px;
  height: 7px;
  margin: 0;
  border-width: 1px;
}

.business-booking-event.is-calendar-event-compact
  > .business-booking-event-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.business-booking-event.is-calendar-event-compact
  > .business-booking-event-summary
  > :is(strong, span) {
  min-width: 0;
  flex: 0 1 auto;
  font-size: 0.59rem;
  line-height: 1;
}

.business-booking-event.is-calendar-event-compact
  > .business-booking-event-summary
  > strong {
  max-width: 45%;
}

.business-booking-event.is-calendar-event-compact
  > .business-booking-event-summary
  > :is(small, .business-booking-phase-track) {
  display: none;
}

/* Higher-specificity timeline rules set a generic two-pixel grid gap and the
   container query can enlarge only booking names. Keep the booking marker,
   label spacing, and title size aligned with Break and Other at every width. */
.business-week-timeline-desktop .business-booking-event.business-week-event,
.business-day-booking-layer .business-booking-event.business-week-event,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-booking-event {
  column-gap: 11px;
}

.business-week-timeline-desktop
  .business-booking-event.business-week-event
  .business-booking-event-summary
  > strong,
.business-day-booking-layer
  .business-booking-event.business-week-event
  .business-booking-event-summary
  > strong,
.business-day-staff-grid
  .business-calendar-event-field
  > .business-day-event.business-booking-event
  .business-booking-event-summary
  > strong {
  font-size: 0.7rem;
}

.business-time-row
  > div[data-business-booking-slot]
  > :is(.business-calendar-booking, .business-calendar-block) {
  position: relative;
  z-index: 6;
}

.business-day-timeline-grid > .business-date-hours-window {
  right: 0;
  left: var(--calendar-time-axis-width, 66px);
}

.business-date-hours-window.business-stylist-date-hours-window:not(.is-closed) {
  border-color: color-mix(
    in srgb,
    var(--stylist-color, #b5482d) 62%,
    transparent
  );
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 78%, #fff);
  box-shadow:
    inset 4px 0 0 var(--stylist-color, #b5482d),
    0 1px 0 rgba(255, 255, 255, 0.68);
}

.business-date-hours-window.business-stylist-date-hours-window.is-added:not(
    .is-closed
  ) {
  border-style: dashed;
}

.business-stylist-date-hours-window:not(.is-closed)
  .business-date-hours-caption {
  color: color-mix(in srgb, var(--stylist-color, #b5482d) 78%, #302a34);
}

.business-stylist-date-hours-window:not(.is-closed)
  .business-date-hours-handle {
  color: color-mix(in srgb, var(--stylist-color, #b5482d) 82%, #302a34);
}

.business-stylist-date-hours-window:not(.is-closed)
  .business-date-hours-handle
  > span {
  background: var(--stylist-color, #b5482d);
}

.business-salon-date-hours-window.is-custom {
  border-color: rgba(101, 75, 172, 0.54);
  background: rgba(238, 233, 251, 0.96);
  box-shadow: inset 3px 0 0 rgba(101, 75, 172, 0.4);
}

.business-stylist-date-hours-window.is-custom:not(.is-closed) {
  border-style: dashed;
  border-color: color-mix(
    in srgb,
    var(--stylist-color, #2b6cb0) 68%,
    transparent
  );
  background: color-mix(in srgb, var(--stylist-soft, #e7f0fa) 88%, #fff);
  box-shadow:
    inset 4px 0 0 var(--stylist-color, #2b6cb0),
    0 1px 0 rgba(255, 255, 255, 0.68);
}

.business-date-hours-window.is-closed {
  border-style: dashed;
  border-color: rgba(111, 103, 114, 0.38);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.3) 0 7px,
      rgba(103, 94, 108, 0.055) 7px 8px
    ),
    rgba(235, 232, 236, 0.55);
  box-shadow: none;
}

.business-date-hours-caption {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 1;
  max-width: calc(100% - 14px);
  overflow: hidden;
  color: #307b67;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-salon-date-hours-window.is-custom .business-date-hours-caption {
  color: #5d4797;
}

.business-date-hours-window.is-closed .business-date-hours-caption {
  color: #706872;
}

.business-date-hours-handle {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 5;
  display: block;
  width: 100%;
  min-width: 0;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #286d5b;
  background: transparent;
  cursor: ns-resize;
  pointer-events: auto;
  touch-action: none;
}

.business-date-hours-handle::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.78;
  transform: translateY(-50%);
}

.business-date-hours-handle::after {
  position: absolute;
  top: 50%;
  right: 7px;
  left: auto;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 1px 5px rgba(47, 37, 62, 0.22);
  content: "";
  transform: translateY(-50%);
}

.business-date-hours-handle.is-start {
  top: -12px;
}

.business-date-hours-handle.is-end {
  bottom: -12px;
}

.business-date-hours-handle > span {
  position: absolute;
  top: 50%;
  right: 22px;
  min-width: max-content;
  padding: 3px 5px;
  border-radius: 6px;
  color: #fff;
  background: #286d5b;
  box-shadow: 0 2px 7px rgba(45, 36, 59, 0.18);
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 100ms ease,
    transform 100ms ease;
}

.business-date-hours-window.is-custom .business-date-hours-handle > span {
  background: #5d4797;
}

.business-date-hours-handle:hover > span,
.business-date-hours-handle:focus-visible > span,
.is-adjusting-date-hours .business-date-hours-handle > span {
  opacity: 1;
  transform: translateY(-50%) translateX(-1px);
}

.business-date-hours-handle:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 1px;
}

.business-date-hours-save-status {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 12px;
  color: #5f7c74;
  font-size: 0.53rem;
  font-weight: 750;
  line-height: 1;
}

.business-date-hours-save-status button {
  min-height: 22px;
  padding: 0 5px;
  border: 1px solid #d8cfe4;
  border-radius: 6px;
  color: #5d4797;
  background: #fff;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.business-date-hours-reset,
.business-date-hours-work-date {
  position: absolute;
  right: 5px;
  bottom: 21px;
  z-index: 5;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(101, 75, 172, 0.24);
  border-radius: 7px;
  color: #5d4797;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.53rem;
  font-weight: 820;
  cursor: pointer;
  pointer-events: auto;
}

.business-date-hours-work-date {
  color: #276d5a;
  border-color: rgba(47, 117, 95, 0.28);
}

.business-date-hours-reset:hover,
.business-date-hours-work-date:hover {
  border-color: #7259b4;
  background: #fff;
}

.business-date-hours-reset:focus-visible,
.business-date-hours-work-date:focus-visible {
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-date-hours-window.has-save-error {
  border-color: #ce7385;
}

.business-date-hours-window.has-save-error .business-date-hours-save-status {
  color: #a43e55;
}

.business-week-day-columns > section.is-location-closed.is-hours-preview-open,
.business-day-timeline.is-location-closed.is-hours-preview-open
  .business-time-row
  > div {
  background: #fff;
}

.business-week-day-columns
  > section.is-hours-preview-open
  .business-week-closed-overlay,
.business-day-timeline.is-hours-preview-open .business-calendar-closed-banner {
  opacity: 0;
}

.business-week-drop-grid > div:focus-visible,
.business-time-row > div[data-business-booking-slot]:focus-visible,
.business-month-grid > section[role="button"]:focus-visible {
  z-index: 4;
  outline: 3px solid #2f755f;
  outline-offset: -3px;
}

.business-calendar-hover-time {
  position: absolute;
  top: var(--calendar-hover-offset, 50%);
  right: 3px;
  left: 3px;
  z-index: 11;
  height: 1px;
  border-top: 1px solid rgba(90, 69, 151, 0.76);
  pointer-events: none;
  animation: business-calendar-hover-in 90ms ease-out both;
}

.has-calendar-interaction-lane
  [data-business-booking-slot]
  > .business-calendar-hover-time {
  right: 4px;
  left: 4px;
  width: auto;
}

.business-calendar-hover-time > b {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: max-content;
  padding: 3px 5px;
  border-radius: 6px;
  color: #fff;
  background: #55418e;
  box-shadow: 0 2px 7px rgba(49, 35, 75, 0.2);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.business-calendar-hover-time.is-start-edge > b {
  top: 3px;
  transform: none;
}

.business-calendar-hover-time.is-end-edge > b {
  top: -3px;
  transform: translateY(-100%);
}

@keyframes business-calendar-hover-in {
  from {
    opacity: 0;
  }
}

.business-calendar-draft-selection {
  position: absolute;
  top: var(
    --calendar-live-top,
    var(--calendar-draft-top, var(--calendar-draft-offset, 0))
  );
  right: 4px;
  left: calc(var(--calendar-live-left, 0%) + 4px);
  z-index: 12;
  display: grid;
  box-sizing: border-box;
  width: calc(var(--calendar-live-width, 100%) - 8px);
  min-height: 0;
  height: var(--calendar-live-height, var(--calendar-draft-height, 1px));
  place-items: start;
  overflow: hidden;
  padding: 5px 6px;
  border: 1px solid #6b56a8;
  border-radius: 8px;
  color: #49367d;
  background: rgba(231, 244, 239, 0.96);
  box-shadow: 0 5px 16px rgba(46, 37, 59, 0.16);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
  transform-origin: center;
  transition:
    left 150ms cubic-bezier(0.22, 1, 0.36, 1),
    width 150ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 110ms ease;
  animation: business-calendar-draft-in-place 110ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-calendar-draft-selection.is-calendar-draft-micro {
  place-items: center start;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0;
  line-height: 0;
}

@keyframes business-calendar-draft-in-place {
  from {
    opacity: 0;
  }
}

/* A click establishes an exact anchor without inventing a default duration.
   It is deliberately a one-pixel line; dragging replaces it with the range
   preview above. */
.business-calendar-time-anchor-line {
  position: absolute;
  top: var(--calendar-anchor-top, 0);
  left: var(--calendar-anchor-left, 0);
  z-index: 15;
  display: block;
  width: var(--calendar-anchor-width, 100%);
  height: 1px;
  min-height: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: #6550b6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78);
  color: transparent;
  font-size: 0;
  pointer-events: none;
  animation: business-calendar-anchor-in 100ms ease-out both;
}

@keyframes business-calendar-anchor-in {
  from {
    opacity: 0;
    transform: scaleX(0.96);
  }
}

/* Booking and block drag previews use the same live lane geometry as the
   events around them, so overlaps reflow before the pointer is released. */
:is(.business-calendar-drag-preview, .business-calendar-move-preview) {
  position: absolute;
  top: calc(var(--calendar-live-top, var(--calendar-preview-top, 0px)) + 3px);
  left: calc(var(--calendar-live-left, 0%) + 3px);
  z-index: 18;
  display: grid;
  align-content: start;
  width: calc(var(--calendar-live-width, 100%) - 6px);
  min-width: 0;
  height: calc(
    var(--calendar-live-height, var(--calendar-preview-height, 5px)) - 5px
  );
  min-height: 5px;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px dashed #6b56a8;
  border-left: 5px solid var(--stylist-color, #6b56a8);
  border-radius: 8px;
  outline: 2px dashed rgba(101, 80, 182, 0.72);
  outline-offset: -2px;
  color: #49367d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(46, 37, 59, 0.16);
  opacity: 0.82;
  pointer-events: none;
  transition:
    left 70ms cubic-bezier(0.22, 1, 0.36, 1),
    width 70ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 120ms ease,
    box-shadow 90ms ease;
  will-change: top, left, width, height;
}

/* Keep the snapped range in the same text position as the event's settled
   time. Compact and short events normally hide that line, but the proposed
   time is the most important information while moving or resizing. */
.business-calendar-drag-preview [data-calendar-proposed-time] {
  display: block !important;
  overflow: hidden;
  color: #49367d;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-drag-preview[data-calendar-readable-short-preview] {
  box-sizing: border-box;
  min-height: 24px;
  overflow: visible;
  padding: 2px 6px;
  place-items: center stretch;
}

.business-calendar-drag-preview[data-calendar-readable-short-preview]
  [hidden] {
  display: none !important;
}

.business-calendar-drag-preview[data-calendar-readable-short-preview]
  > .business-booking-event-summary {
  display: grid;
  width: 100%;
}

.business-calendar-drag-preview.is-calendar-type-booking,
.business-calendar-move-preview.is-calendar-type-booking {
  background: #f1ecfb;
}

.business-calendar-drag-preview.is-calendar-type-break,
.business-calendar-move-preview.is-calendar-type-break {
  background: #fff2cf;
}

.business-calendar-drag-preview.is-calendar-type-other,
.business-calendar-move-preview.is-calendar-type-other {
  background: #e8f0f4;
}

:is(
  .business-week-event,
  .business-day-event,
  .business-calendar-booking,
  .business-calendar-block
)[draggable="true"] {
  cursor: grab;
}

.business-calendar-event-resize-handle {
  position: absolute;
  right: 4px;
  left: 4px;
  z-index: 24;
  display: block;
  height: 24px;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: ns-resize;
  pointer-events: auto;
  touch-action: none;
  transition: opacity 110ms ease;
}

.business-calendar-event-resize-handle.is-start {
  top: -10px;
}

.business-calendar-event-resize-handle.is-end {
  bottom: -10px;
}

.business-calendar-event-resize-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42px, 44%);
  min-width: 18px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--stylist-color, #6b56a8) 82%, #312847);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
  content: "";
  transform: translate(-50%, -50%);
}

:is(
    .business-week-event,
    .business-day-event,
    .business-calendar-booking,
    .business-calendar-block
  ):is(:hover, :focus-within, .is-calendar-resizing)
  > .business-calendar-event-resize-handle {
  opacity: 1;
}

/* Lift the appointment while either enlarged edge target is being acquired.
   This keeps the lower handle above the empty-slot creation layer and makes a
   downward resize own the existing appointment, including at exact hour-row
   boundaries. */
:is(
  .business-week-event,
  .business-day-event,
  .business-calendar-booking,
  .business-calendar-block
):has(> .business-calendar-event-resize-handle:hover) {
  z-index: 35;
}

:is(
  .business-week-event,
  .business-day-event,
  .business-calendar-booking,
  .business-calendar-block
).is-calendar-resizing {
  cursor: ns-resize;
}

:is([data-business-drag-booking], [data-business-drag-block]) {
  -webkit-user-drag: none;
  touch-action: none;
  user-select: none;
}

:is(
  .business-week-event,
  .business-day-event,
  .business-calendar-booking,
  .business-calendar-block
):is(.is-calendar-drag-source, .is-calendar-grabbed, [aria-grabbed="true"]) {
  z-index: 19;
  opacity: 0.38;
  filter: saturate(0.72);
  transform: scale(0.985);
  box-shadow: 0 7px 18px rgba(48, 38, 59, 0.12);
  cursor: grabbing;
}

.business-calendar-event-field.is-calendar-drag-target {
  z-index: 10;
}

/* Native dragover fires continuously. Keep the provisional lane reflow close
   to the pointer instead of letting the normal settled-layout animation trail
   behind the grabbed appointment. */
.business-calendar-event-field > [data-calendar-live-layout] {
  transition:
    top 45ms linear,
    left 45ms linear,
    width 45ms linear,
    height 45ms linear,
    opacity 80ms ease,
    transform 70ms ease,
    box-shadow 70ms ease;
}

.business-calendar-closed-banner {
  display: grid;
  grid-template-columns: 30px auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid #e1dce3;
  border-radius: 12px;
  color: #665f69;
  background: #f5f3f5;
}

.business-calendar-closed-banner > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #e8e4e9;
}

.business-calendar-closed-banner small {
  color: #89828c;
}

.business-time-row.is-location-closed > div,
.business-week-day-columns > section.is-location-closed {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(91, 82, 96, 0.035) 0 8px,
      rgba(91, 82, 96, 0.075) 8px 9px
    ),
    #f8f7f8;
}

.business-week-closed-overlay {
  position: sticky;
  top: 64px;
  z-index: 3;
  display: grid;
  gap: 2px;
  margin: 8px 5px;
  padding: 8px 5px;
  border: 1px solid #ddd7df;
  border-radius: 9px;
  color: #6f6772;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  pointer-events: none;
}

.business-week-closed-overlay strong {
  font-size: 0.68rem;
}

.business-week-closed-overlay span {
  overflow: hidden;
  font-size: 0.54rem;
  text-overflow: ellipsis;
}

.business-week-agenda > section.is-location-closed {
  border-color: #ded8e0;
  background: #f7f5f7;
}

.business-week-agenda > section.is-location-closed > header b,
.business-month-closed-label {
  color: #7d747f;
  font-weight: 800;
}

.business-week-agenda-block[role="button"] {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
}

.business-week-agenda-block[role="button"]:focus-visible {
  outline: 3px solid var(--stylist-color, #b5482d);
  outline-offset: 2px;
}

.business-week-agenda-block.is-stylist-specific {
  border-left-color: var(--stylist-color, #b5482d);
  color: color-mix(in srgb, var(--stylist-color, #b5482d) 78%, #302a34);
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 86%, #fff);
}

.business-week-agenda-block.is-salon-wide {
  border-left-color: #77717b;
  color: #554f58;
  background: #e8e6e9;
}

.business-team-hours-agenda {
  display: grid;
  gap: 6px;
  width: 100%;
}

.business-team-hours-agenda > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e2dce6;
  border-radius: 10px;
  color: #4d4551;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.business-team-salon-hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #bfe2d6;
  border-radius: 10px;
  color: #2d6f5d;
  background: #eaf7f2;
  font-size: 0.7rem;
}

.business-team-salon-hours > span {
  color: #3d7566;
}

.business-team-hours-agenda > button:hover {
  border-color: #bcb0d1;
  background: #faf8fc;
}

.business-team-hours-agenda > button:focus-visible {
  outline: 3px solid #2f755f;
  outline-offset: 1px;
}

.business-team-hours-agenda span {
  color: #756d79;
  font-size: 0.65rem;
}

.business-month-team-hours {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-month-team-hours > button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 1px 5px;
  min-width: 0;
  padding: 3px;
  border: 0;
  border-radius: 5px;
  color: #4b434f;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-month-team-hours > button:hover {
  background: rgba(101, 80, 182, 0.07);
}

.business-month-team-hours button > i {
  grid-row: 1 / 3;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stylist-color, #b5482d);
}

.business-month-team-hours button > :is(span, small) {
  overflow: hidden;
  font-size: 0.54rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-month-team-hours button > span {
  font-weight: 800;
}

.business-month-team-hours button > small {
  color: #7b737e;
}

.business-month-stylist-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-top: 5px;
}

.business-month-stylist-summary
  > :is(.business-month-stylist-bookings, .business-month-stylist-hours) {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 23px;
  margin: 0;
  padding: 3px 5px;
  border: 0;
  border-radius: 6px;
  color: #4b434f;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.business-month-stylist-summary
  > :is(.business-month-stylist-bookings, .business-month-stylist-hours):hover {
  background: #f2eef8;
}

.business-month-stylist-summary
  > :is(
    .business-month-stylist-bookings,
    .business-month-stylist-hours
  ):focus-visible {
  outline: 2px solid var(--stylist-color, #b5482d);
  outline-offset: 1px;
}

.business-month-stylist-summary button > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stylist-color, #b5482d);
}

.business-month-stylist-summary button > span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.56rem;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-month-stylist-summary button > strong {
  color: #4f4555;
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.business-month-stylist-hours.is-off-duty {
  opacity: 0.68;
}

.business-month-stylist-hours.is-off-duty > strong {
  color: #7b747e;
}

.business-month-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
}

.business-month-grid > section {
  min-width: 0;
  overflow: hidden;
}

.business-month-grid > section[data-business-action="calendar-month-day"] {
  cursor: pointer;
}

.business-month-grid > section.is-location-closed {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 8px,
      rgba(91, 82, 96, 0.065) 8px 9px
    ),
    #f5f3f5;
}

.business-month-grid > section.is-stylist-off {
  background:
    linear-gradient(rgba(107, 102, 110, 0.035), rgba(107, 102, 110, 0.035)),
    #f3f2f3;
}

.business-month-grid > section.is-stylist-off .business-month-closed-label {
  color: #756d77;
}

.business-month-grid > section.is-location-open {
  background:
    linear-gradient(
      180deg,
      rgba(88, 195, 165, 0.12) 0 30px,
      rgba(255, 255, 255, 0) 58px
    ),
    #fff;
}

.business-month-grid > section.has-custom-hours {
  background:
    linear-gradient(
      180deg,
      rgba(111, 86, 181, 0.12) 0 30px,
      rgba(255, 255, 255, 0) 58px
    ),
    #fff;
}

.business-month-open-label {
  display: block;
  margin: 1px 0 5px;
  overflow: hidden;
  color: #307b67;
  font-size: 0.58rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-month-grid > section.has-custom-hours .business-month-open-label {
  color: #5d4797;
}

.business-month-grid section > button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-availability-editor {
  display: grid;
  gap: 13px;
}

.business-schedule-configuration {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.business-schedule-configuration > header {
  margin-bottom: 0;
}

.business-schedule-config-actions {
  display: flex;
  justify-content: flex-end;
}

.business-weekly-availability-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9eae4;
  border-top: 4px solid #59b49c;
  border-radius: 16px;
  background: #f7fbf9;
  box-shadow: 0 12px 28px rgba(45, 77, 68, 0.07);
}

.business-weekly-availability-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-weekly-availability-panel > header > div {
  display: grid;
  gap: 2px;
}

.business-weekly-availability-panel > header h4,
.business-weekly-availability-panel > header span {
  margin: 0;
}

.business-weekly-availability-panel > header h4 {
  color: #352e3c;
  font-size: 1rem;
}

.business-weekly-availability-panel > header span,
.business-weekly-availability-panel > header b {
  color: #746d79;
  font-size: 0.68rem;
}

.business-weekly-availability-panel > header b {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e5f4ef;
  color: #347562;
}

.business-availability-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e4dfe7;
  border-radius: 14px;
  background: #fff;
}

.business-availability-editor-toolbar > label,
.business-availability-editor-toolbar > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.business-availability-editor-toolbar > label > span,
.business-availability-editor-toolbar > span small {
  color: #776f7b;
  font-size: 0.7rem;
}

.business-availability-editor-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 11px;
  border: 1px solid #d9d2de;
  border-radius: 10px;
  color: #38313e;
  background: #fff;
  font: inherit;
}

.business-hours-day.is-location-closed {
  opacity: 0.72;
}

.business-hours-day.is-location-closed .business-hours-track {
  filter: grayscale(0.75);
}

.business-weekly-availability-panel {
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
}

.business-weekly-availability-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.business-weekly-availability-panel > header h4 {
  font-size: 0.92rem;
  white-space: nowrap;
}

.business-weekly-availability-panel > header > div:first-child {
  min-width: 0;
}

.business-weekly-availability-panel > header > div:first-child > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-weekly-hours-mode {
  display: inline-flex !important;
  justify-self: start;
  gap: 2px !important;
  padding: 3px;
  border-radius: 10px;
  background: #ece8ef;
}

.business-weekly-hours-mode button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #706877;
  background: transparent;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.business-weekly-hours-mode button.active {
  color: #4e3d82;
  background: #fff;
  box-shadow: 0 2px 8px rgba(57, 42, 73, 0.1);
}

.business-weekly-hours-mode button:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-weekly-save-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 58px;
  color: #4c806f;
  font-size: 0.66rem;
  font-weight: 760;
}

.business-weekly-save-state.is-saving {
  color: #756d7a;
}

.business-weekly-save-state.is-error {
  color: #a34c5c;
}

.business-weekly-save-state button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d59ca7;
  border-radius: 8px;
  color: #8c3d4e;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.business-weekly-availability-panel .business-availability-editor {
  gap: 7px;
}

.business-weekly-availability-panel .business-availability-editor-toolbar {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.business-weekly-availability-panel
  .business-availability-editor-toolbar
  > label {
  width: min(100%, 270px);
}

.business-weekly-availability-panel
  .business-availability-editor-toolbar
  select {
  min-height: 38px;
  border-radius: 9px;
  font-size: 0.72rem;
}

.business-weekly-availability-panel .business-weekly-hours {
  border-radius: 12px;
}

.business-weekly-availability-panel .business-hours-scale {
  height: 22px;
  margin: 0 32px 0 143px;
  font-size: 0.58rem;
}

.business-weekly-availability-panel .business-hours-scale span {
  bottom: 5px;
}

.business-weekly-availability-panel .business-hours-day {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 11px;
  padding: 8px 12px;
}

.business-weekly-availability-panel .business-hours-day-label {
  min-height: 32px;
}

.business-weekly-availability-panel .business-hours-day-label strong {
  font-size: 0.76rem;
}

.business-weekly-availability-panel .business-closed-toggle {
  min-height: 36px;
  font-size: 0.61rem;
}

.business-weekly-availability-panel .business-closed-toggle input {
  width: 17px;
  height: 17px;
}

.business-weekly-availability-panel .business-hours-editor {
  gap: 5px;
}

.business-weekly-availability-panel
  .business-hours-track
  input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-width: 6px;
}

.business-weekly-availability-panel
  .business-hours-track
  input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-width: 6px;
}

.business-weekly-availability-panel
  .business-break-track-item
  input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-width: 5px;
}

.business-weekly-availability-panel
  .business-break-track-item
  input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-width: 5px;
}

.business-weekly-availability-panel .business-hours-meta output {
  font-size: 0.69rem;
}

.business-weekly-availability-panel .business-hours-breaks {
  gap: 4px;
}

.business-weekly-availability-panel .business-hours-break {
  gap: 5px;
  padding: 4px 6px;
}

.business-weekly-hours.is-read-only {
  opacity: 0.78;
}

.business-schedule-exceptions {
  display: grid;
  gap: 8px;
}

.business-schedule-exceptions > div:first-child {
  display: grid;
  gap: 2px;
}

.business-schedule-exceptions > div:first-child :is(h4, p) {
  margin: 0;
}

.business-schedule-exceptions > div:first-child p {
  color: #7c7480;
  font-size: 0.73rem;
}

.business-holiday-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid #ebe6ed;
}

.business-holiday-form > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.business-holiday-form > header > div {
  display: grid;
  gap: 3px;
}

.business-holiday-form > header :is(h4, p) {
  margin: 0;
}

.business-holiday-form > header p {
  max-width: 690px;
  color: #766f79;
  font-size: 0.72rem;
  line-height: 1.45;
}

.business-holiday-list {
  display: grid;
  max-height: min(430px, 55dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #e7e2e9;
  border-radius: 14px;
  background: #fff;
}

.business-schedule-page[data-schedule-workspace-role="owner"]
  .business-holiday-list {
  min-height: 0;
  contain: layout paint;
}

.business-holiday-list:focus-visible {
  outline: 3px solid rgba(47, 117, 95, 0.5);
  outline-offset: 2px;
}

.business-holiday-list > article {
  display: grid;
  grid-template-columns: minmax(112px, 0.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 86px;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid #eee9ef;
  background: #fff;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.business-holiday-list > article:last-child {
  border-bottom: 0;
}

.business-holiday-list time {
  min-width: 0;
  color: #5a468f;
}

.business-holiday-list time strong {
  font-size: 0.74rem;
  white-space: nowrap;
}

.business-holiday-name {
  min-width: 0;
}

.business-holiday-name strong {
  display: block;
  overflow: hidden;
  color: #38313d;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-holiday-list > article.is-closed {
  background: #faf8fc;
}

.business-holiday-action {
  display: grid;
  grid-template-rows: minmax(44px, auto) minmax(24px, auto);
  align-self: stretch;
  align-content: center;
  justify-items: end;
  gap: 1px;
}

.business-holiday-closed-toggle {
  display: grid;
  grid-template-columns: 30px auto;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
}

.business-holiday-closed-toggle input {
  position: absolute;
  opacity: 0;
}

.business-holiday-closed-toggle > span {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #cfc9d3;
  transition: background-color 150ms ease;
}

.business-holiday-closed-toggle > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35, 29, 40, 0.22);
  content: "";
  transition: transform 150ms ease;
}

.business-holiday-closed-toggle input:checked + span {
  background: #7a659f;
}

.business-holiday-closed-toggle input:checked + span::after {
  transform: translateX(12px);
}

.business-holiday-closed-toggle input:focus-visible + span {
  outline: 3px solid rgba(81, 185, 158, 0.5);
  outline-offset: 2px;
}

.business-holiday-closed-toggle b {
  color: #665e69;
  font-size: 0.67rem;
}

.business-holiday-save-status {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #6e877f;
  font-size: 0.58rem;
  line-height: 1.2;
}

.business-holiday-save-status button {
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid #d7cfe2;
  border-radius: 7px;
  color: #66519a;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.business-holiday-list > article.has-save-error {
  border-color: #e6b9c2;
}

.business-holiday-list > article.has-save-error .business-holiday-save-status {
  color: #a43e55;
}

.business-holiday-list
  > article.is-saving
  .business-holiday-save-status::before {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: business-holiday-save-spin 600ms linear infinite;
}

@keyframes business-holiday-save-spin {
  to {
    transform: rotate(360deg);
  }
}

.business-calendar-draft-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cce8df;
  border-radius: 13px;
  background: #f0faf6;
}

.business-calendar-draft-summary > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #4e9d86;
}

.business-calendar-draft-summary > div {
  display: grid;
  gap: 2px;
}

.business-calendar-draft-summary :is(strong, p) {
  margin: 0;
}

.business-calendar-draft-summary p {
  color: #5f766e;
  font-size: 0.73rem;
}

.business-calendar-entry-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid #e4dfe7;
  border-radius: 13px;
  background: #f5f2f7;
}

.business-calendar-entry-types button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 6px;
  color: #665e6b;
  background: transparent;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 780;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.business-calendar-entry-types
  button:is(:hover, :focus-visible):not(:disabled) {
  border-color: #cec4dc;
  outline: 0;
  background: #fff;
}

.business-calendar-entry-types button.active {
  border-color: #6a54b1;
  color: #533d94;
  background: #fff;
  box-shadow: 0 3px 10px rgba(69, 52, 93, 0.1);
  transform: translateY(-1px);
}

.business-calendar-entry-types button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.business-calendar-entry-form[data-calendar-block-scope="salon"]
  .business-field:has([data-business-control="calendar-block-stylist"]) {
  display: none;
}

.business-calendar-gap-target {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #bfe5d8;
  border-radius: 12px;
  background: #f0faf6;
}

.business-calendar-gap-target > span {
  width: 30px;
  height: 30px;
  border: 7px solid #d8f1e8;
  border-radius: 50%;
  background: #48a88a;
}

.business-calendar-gap-target > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-calendar-gap-target :is(strong, p) {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-gap-target strong {
  color: #315f53;
  font-size: 0.76rem;
}

.business-calendar-gap-target p {
  color: #618077;
  font-size: 0.67rem;
}

@media (max-width: 520px) {
  .business-calendar-entry-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .business-calendar-toolbar {
    grid-template-columns: max-content minmax(180px, 1fr);
  }

  .business-booking-calendar-key {
    align-items: flex-start;
  }

  .business-booking-calendar-key > strong {
    padding-top: 3px;
  }

  .business-calendar-professional-control {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .business-week-timeline-desktop > header > :is(div, button) {
    display: grid;
    place-content: center;
    gap: 1px;
  }

  .business-week-timeline-desktop > header > :is(div, button) > strong {
    width: 25px;
    height: 25px;
  }

  .business-week-timeline-desktop .business-week-event {
    padding: 5px;
  }

  .business-week-timeline-desktop
    .business-week-event:not(.business-booking-event)
    > :is(span, small) {
    display: none;
  }
}

@media (max-width: 820px) {
  .business-schedule-page {
    --calendar-time-axis-width: 54px;
  }

  .business-schedule-page-header {
    align-items: center;
  }

  .business-calendar-surface {
    border-radius: 16px;
  }

  .business-calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .business-calendar-view-switch,
  .business-calendar-period-navigation {
    width: 100%;
  }

  .business-calendar-view-switch button {
    min-height: 44px;
  }

  .business-calendar-period-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 44px minmax(122px, 1fr) 44px;
    min-height: 46px;
  }

  .business-calendar-period-button {
    width: 44px;
    height: 44px;
  }

  .business-calendar-professional-control {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  .business-calendar-toolbar :is(select, input) {
    min-width: 0;
    min-height: 44px;
  }

  .business-calendar-professional-control .prelook-select-trigger {
    min-height: 44px;
  }

  .business-month-grid > section {
    min-height: 92px;
    padding: 5px;
  }

  .business-month-grid section > button {
    padding: 4px;
    font-size: 0.61rem;
  }

  .business-availability-editor-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .business-weekly-availability-panel {
    padding: 10px;
  }

  .business-availability-editor-toolbar > button {
    width: 100%;
  }

  .business-availability-editor .business-hours-scale {
    display: none;
  }

  .business-availability-editor .business-hours-day {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .business-holiday-form > header {
    align-items: stretch;
    flex-direction: column;
  }

  .business-holiday-form > header > button {
    width: 100%;
  }

  .business-week-agenda .business-booking-event {
    padding: 11px 12px;
    border-left: 0;
    box-shadow:
      inset 4px 0 0 var(--stylist-color, #b5482d),
      0 3px 10px rgba(47, 39, 57, 0.07);
  }

  .business-week-agenda .business-booking-event-tooltip {
    display: none;
  }

  .business-week-agenda .business-booking-event-summary,
  .business-week-agenda .business-booking-event > :is(strong, span, small) {
    font-size: 0.72rem;
  }

  .business-week-agenda .business-booking-event-summary > strong {
    font-size: 0.9rem;
  }

  .business-week-agenda .business-booking-event-summary > :is(span, small) {
    font-size: 0.7rem;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .business-week-timeline-desktop {
    display: grid;
  }

  .business-week-agenda {
    display: none;
  }
}

@media (max-width: 520px) {
  .business-schedule-page-header {
    align-items: stretch;
    gap: 8px;
  }

  .business-schedule-title-row {
    gap: 14px;
  }

  .business-schedule-mode-switch {
    --schedule-mode-tab-width: 72px;
  }

  .business-schedule-mode-switch button {
    min-width: 72px;
    min-height: 44px;
    padding-inline: 7px;
    font-size: 0.7rem;
  }

  .business-schedule-page-header .business-header-actions {
    align-self: stretch;
  }

  .business-schedule-page-header .business-header-actions > button {
    width: 100%;
  }

  .business-booking-calendar-key {
    overflow-x: auto;
    padding: 7px 8px;
  }

  .business-booking-calendar-key > ul {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .business-booking-calendar-key li {
    min-height: 24px;
  }

  .business-weekly-availability-panel > header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .business-weekly-hours-mode {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .business-weekly-hours-mode button {
    flex: 1;
  }

  .business-calendar-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-calendar-view-switch,
  .business-calendar-period-navigation,
  .business-calendar-professional-control {
    grid-column: 1;
    grid-row: auto;
  }

  .business-calendar-view-switch {
    justify-content: stretch;
  }

  .business-calendar-view-switch button {
    flex: 1;
  }

  .business-calendar-date-picker {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 160;
    width: auto;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 14px;
    border-radius: 20px;
    transform: none;
    transform-origin: bottom center;
  }

  .business-calendar-date-picker:not([hidden]) {
    animation: business-calendar-date-picker-mobile-enter 210ms
      cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .business-calendar-date-picker-day {
    min-height: 44px;
  }

  .business-calendar-date-picker-header > button,
  .business-calendar-date-picker-month,
  .business-calendar-date-picker-footer > button {
    min-height: 44px;
  }

  .business-month-grid > section {
    min-height: 108px;
    padding: 3px;
  }

  .business-month-grid section > header {
    align-items: center;
  }

  .business-month-grid section > header span {
    display: none;
  }

  .business-month-grid section > button {
    min-height: 18px;
    padding: 2px;
    font-size: 0;
  }

  .business-month-grid section > button::before {
    display: block;
    width: 7px;
    height: 7px;
    margin: auto;
    border-radius: 50%;
    background: #735cb0;
    content: "";
  }

  .business-month-grid .business-month-booking-marker {
    grid-template-columns: 1fr;
    min-height: 24px;
    padding: 2px;
    box-shadow: inset 3px 0 0 var(--stylist-color, #b5482d);
  }

  .business-month-grid .business-month-booking-marker::before {
    display: none;
    content: none;
  }

  .business-month-grid .business-month-booking-marker > :is(b, span) {
    display: none;
  }

  .business-month-grid
    .business-month-booking-marker
    > .business-booking-stylist-dot {
    display: block;
    margin: auto;
  }

  .business-month-booking-marker-wrap > .business-booking-event-tooltip {
    display: none;
  }

  .business-month-closed-label {
    font-size: 0.52rem;
  }

  .business-holiday-list > article {
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .business-holiday-list {
    max-height: min(360px, 50dvh);
  }
}

@keyframes business-calendar-date-picker-mobile-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 360px) {
  .business-schedule-title-row {
    gap: 7px;
  }

  .business-schedule-title-row h2 {
    font-size: 1.55rem;
  }

  .business-schedule-mode-switch {
    --schedule-mode-tab-width: 66px;
  }

  .business-schedule-mode-switch button {
    min-width: 66px;
    padding-inline: 4px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-business-calendar-transition]::view-transition-old(root),
  html[data-business-calendar-transition]::view-transition-new(root),
  html[data-business-calendar-transition]::view-transition-old(
      business-calendar-period
    ),
  html[data-business-calendar-transition]::view-transition-new(
      business-calendar-period
    ),
  .business-calendar-surface.is-entering-next,
  .business-calendar-surface.is-entering-previous {
    animation: none;
  }

  .business-calendar-view-switch button,
  .business-calendar-period-button,
  .business-calendar-period-trigger,
  .business-calendar-date-picker-day,
  .business-calendar-date-picker-header > button,
  .business-calendar-date-picker-footer > button,
  .business-schedule-mode-switch::before,
  .business-schedule-mode-stage,
  .business-booking-event-tooltip {
    transition: none;
  }

  .business-schedule-mode-switch[data-previous]::before {
    animation: none;
  }

  .business-schedule-mode-stage.is-entering {
    animation: none;
  }

  .business-calendar-date-picker:not([hidden]) {
    animation: none;
  }

  .business-calendar-hover-time {
    animation: none;
  }

  .business-calendar-draft-selection,
  .business-calendar-gap-selection,
  .business-calendar-time-anchor-line,
  .business-calendar-past-time-shade,
  .business-calendar-now-line,
  .business-calendar-drag-preview,
  .business-calendar-move-preview {
    animation: none;
    transition: none;
  }

  :is(
    .business-week-event,
    .business-day-event,
    .business-calendar-booking,
    .business-calendar-block
  ) {
    transition: none;
  }

  .business-holiday-list
    > article.is-saving
    .business-holiday-save-status::before {
    animation: none;
  }

  .business-holiday-closed-toggle > span,
  .business-holiday-closed-toggle > span::after {
    transition: none;
  }
}

/* Compact service status toolbar */
.business-service-board-header > .business-service-board-tools {
  flex: 0 0 auto;
  min-width: 0;
}

.business-service-board-tools .business-service-status-switch {
  display: inline-flex;
  width: max-content;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
}

.business-service-board-tools .business-service-status-switch button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.68rem;
}

/* Discoverable staff role assignment */
.business-staff-role-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #ebe6ed;
  border-radius: 13px;
  background: #fbfafc;
}

.business-staff-role-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.business-team-role-pill.business-staff-role-chip {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 3px 5px 3px 8px;
  border-color: color-mix(in srgb, var(--role-color) 28%, #ddd7e1);
  color: color-mix(in srgb, var(--role-color) 76%, #312b35);
  background: color-mix(in srgb, var(--role-color) 9%, #fff);
  line-height: 1.2;
}

.business-staff-role-chip > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--role-color);
}

.business-staff-role-chip > b {
  overflow: hidden;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-staff-role-chip > button {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: color-mix(in srgb, var(--role-color) 70%, #5e5664);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.business-staff-role-chip > button::before {
  position: absolute;
  inset: -9px;
  content: "";
}

.business-staff-role-chip > button:hover {
  color: #9d3347;
  background: #fcebed;
  transform: scale(1.06);
}

.business-staff-role-chip > button:focus-visible,
.business-change-roles-button:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-staff-role-protected {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #8a8290;
  background: rgba(255, 255, 255, 0.74);
}

.business-staff-role-empty {
  align-self: center;
  color: #7c7481;
  font-size: 0.68rem;
  font-weight: 720;
}

.business-change-roles-button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid #d7cfe2;
  border-radius: 10px;
  color: #5f4898;
  background: #fff;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 820;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.business-change-roles-button:hover {
  border-color: #a99ac2;
  background: #f5f1fb;
  transform: translateY(-1px);
}

.business-member-roles-editor {
  display: grid;
  gap: 16px;
  padding: 18px 22px 28px;
}

.business-member-roles-editor > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ebe6ed;
}

.business-member-roles-editor > header .business-team-avatar {
  width: 48px;
  height: 48px;
}

.business-member-roles-editor > header :is(strong, p) {
  margin: 0;
}

.business-member-roles-editor > header strong {
  color: #3d3643;
  font-size: 0.82rem;
}

.business-member-roles-editor > header p {
  margin-top: 3px;
  color: #79717e;
  font-size: 0.68rem;
  line-height: 1.42;
}

.business-member-roles-editor > header > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #5e4b8f;
  background: #eee9f7;
  font-size: 0.62rem;
  font-weight: 820;
  white-space: nowrap;
}

.business-member-roles-editor > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-member-roles-editor > ul > li {
  display: grid;
  gap: 5px;
}

.business-member-roles-editor > ul > li > label {
  position: relative;
  display: grid;
  grid-template-columns: 28px 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid #e4dfe7;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-member-roles-editor > ul > li.is-assigned > label {
  border-color: color-mix(in srgb, var(--role-color) 42%, #ddd7e1);
  background: color-mix(in srgb, var(--role-color) 7%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--role-color) 11%, transparent);
}

.business-member-roles-editor > ul > li > label:hover {
  border-color: color-mix(in srgb, var(--role-color) 46%, #d9d2df);
  transform: translateY(-1px);
}

.business-member-roles-editor > ul > li > label:has(input:focus-visible) {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-member-roles-editor input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.business-member-role-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d8d1dc;
  border-radius: 9px;
  color: transparent;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.business-member-roles-editor input:checked + .business-member-role-check {
  border-color: var(--role-color);
  color: #fff;
  background: var(--role-color);
  transform: scale(1.04);
}

.business-member-role-color {
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: var(--role-color);
}

.business-member-roles-editor label > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-member-roles-editor label strong {
  color: #403945;
  font-size: 0.76rem;
}

.business-member-roles-editor label small,
.business-member-roles-editor li > p {
  color: #7d7581;
  font-size: 0.64rem;
  line-height: 1.4;
}

.business-member-roles-editor li > p {
  margin: 0;
  padding: 0 9px;
}

.business-member-roles-editor label:has(input:disabled) {
  cursor: not-allowed;
}

.business-member-roles-editor > footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .business-staff-role-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .business-change-roles-button {
    min-height: 44px;
  }

  .business-member-roles-editor {
    padding-inline: 16px;
  }

  .business-member-roles-editor > header {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .business-member-roles-editor > header > span {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-staff-role-chip > button,
  .business-change-roles-button,
  .business-member-roles-editor > ul > li > label,
  .business-member-role-check {
    transition: none;
  }
}

/* Services: simple-first menu hierarchy and contained editor */
.business-service-board-tools {
  gap: 7px;
}

.business-service-board-tools .business-service-view-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  width: 156px;
  min-width: 156px;
  gap: 0;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #e2dce7;
  border-radius: 11px;
  background: #f3f0f5;
  isolation: isolate;
}

.business-service-board-tools .business-service-view-switch::before {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border: 1px solid #e8e2ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(48, 37, 65, 0.09);
  content: "";
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.business-service-board-tools
  .business-service-view-switch:is(
    [data-active="detailed"],
    :has(button:nth-child(2).active)
  )::before {
  transform: translateX(100%);
}

.business-service-board-tools .business-service-view-switch button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: #756d7c;
  background: transparent;
  box-shadow: none;
  font-size: 0.67rem;
  font-weight: 760;
  transition: color 170ms ease;
}

.business-service-board-tools .business-service-view-switch button.active {
  color: #4f3c85;
  background: transparent;
  box-shadow: none;
}

.business-service-board-tools
  .business-service-view-switch
  button:focus-visible {
  outline: 3px solid rgba(81, 185, 158, 0.42);
  outline-offset: -1px;
}

.business-service-archive-toggle {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: 12px;
  padding: 4px 9px;
  border: 1px solid #ddd7e2;
  border-radius: 11px;
  color: #665f6b;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.business-service-archive-toggle > span {
  position: relative;
  width: 30px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ded9e2;
  box-shadow: inset 0 0 0 1px rgba(66, 54, 75, 0.06);
  transition:
    background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
}

.business-service-archive-toggle > span > i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(42, 34, 49, 0.22);
  will-change: transform;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.business-service-archive-toggle > b {
  font-size: 0.67rem;
}

.business-service-archive-toggle.is-active {
  border-color: #8a76c4;
  color: #57418e;
  background: #f5f1fb;
}

.business-service-archive-toggle.is-active > span {
  background: #6b53b5;
  box-shadow: inset 0 0 0 1px rgba(59, 40, 116, 0.12);
}

.business-service-archive-toggle.is-active > span > i {
  transform: translateX(12px);
}

.business-service-archive-toggle:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-service-archive-toggle.is-switching {
  box-shadow: 0 4px 14px rgba(82, 62, 125, 0.12);
}

.business-service-archive-toggle:disabled {
  cursor: wait;
  opacity: 1;
}

.business-service-catalog-filters {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.business-service-filter {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #ddd7e2;
  border-radius: 11px;
  color: #665f6b;
  background: #fff;
  font: 760 0.67rem/1.2 inherit;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.business-service-filter > span {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #c9c1ce;
  border-radius: 5px;
  background: #fff;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.business-service-filter > span::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.business-service-filter:is(:hover, .is-active) {
  border-color: #a99bcf;
  color: #4f3c85;
  background: #f7f4fc;
}

.business-service-filter.is-active {
  box-shadow: inset 0 0 0 1px rgba(103, 80, 184, 0.08);
}

.business-service-filter.is-active > span {
  border-color: #6750b8;
  background: #6750b8;
}

.business-service-filter.is-active > span::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.business-service-filter:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 2px;
}

.business-service-results {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.business-service-category-groups {
  min-width: 0;
  transform: translateX(0);
  will-change: opacity, transform;
}

.business-service-category-groups[data-transition-direction="forward"] {
  --service-view-enter-x: 12px;
  --service-view-exit-x: -8px;
}

.business-service-category-groups[data-transition-direction="back"] {
  --service-view-enter-x: -12px;
  --service-view-exit-x: 8px;
}

.business-service-category-groups.is-entering {
  animation: business-service-view-enter 240ms cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.business-service-category-groups.is-leaving {
  animation: business-service-view-leave 140ms ease both;
  pointer-events: none;
}

@keyframes business-service-view-enter {
  from {
    opacity: 0;
    transform: translateX(var(--service-view-enter-x, 0));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes business-service-view-leave {
  to {
    opacity: 0;
    transform: translateX(var(--service-view-exit-x, 0));
  }
}

.business-service-category-groups.is-simple {
  gap: 2px;
}

.business-service-category-group.is-simple {
  gap: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eeeaf0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.business-service-category-group.is-simple:last-child {
  border-bottom: 0;
}

.business-service-category-group.is-simple
  > .business-service-category-heading {
  min-height: 44px;
  padding: 6px 4px;
  background: transparent;
}

.business-service-category-group.is-simple
  > .business-service-category-heading
  > div {
  gap: 9px;
}

.business-service-category-group.is-simple .business-category-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.business-service-category-group.is-simple
  > .business-service-category-heading
  h3 {
  font-size: 0.82rem;
  line-height: 1.3;
}

.business-service-category-group.is-simple
  > .business-service-category-lane.is-root {
  padding: 0 0 7px 18px;
  border: 0;
  background: transparent;
}

.business-service-category-group.is-simple .business-service-visual-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.business-service-simple-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 2px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #f1edf2;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.business-service-simple-row:last-child {
  border-bottom: 0;
}

.business-service-simple-row:hover {
  border-color: #eee9f0;
  border-left-color: transparent;
  background: color-mix(in srgb, var(--category-color) 6%, #fff);
  box-shadow: none;
  transform: none;
}

.business-service-simple-row .business-service-drag-handle {
  width: 18px;
  color: #aaa3ad;
  opacity: 0.72;
}

.business-service-simple-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--category-color);
}

.business-service-simple-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #3d3741;
  font-size: 0.75rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-simple-row .business-service-tile-status {
  position: static;
  flex: 0 0 auto;
  max-width: none;
}

.business-service-simple-open {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  justify-self: end;
  border-radius: 9px;
  color: #827989;
  font-size: 1rem;
}

.business-service-simple-row:hover .business-service-simple-open {
  color: #5d4695;
  background: #eee9f7;
}

.business-service-category-group.is-simple .business-service-drop-empty {
  min-height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.business-service-tile.is-readonly:not(.business-service-simple-row) {
  grid-template-columns: 52px minmax(0, 1fr);
  cursor: default;
}

.business-service-stylist-avatars {
  min-height: 30px;
  margin-top: 4px;
}

.business-service-stylist-avatars img,
.business-service-stylist-avatars > span {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.business-service-inspector {
  overflow: clip;
}

.business-service-inspector > form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.business-service-inspector > form > .business-service-inspector-header {
  z-index: 2;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #ebe6ed;
  background: #fff;
}

.business-service-inspector-body {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 16px;
  padding: 16px 20px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.business-service-booking-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.business-service-booking-options > .business-booking-option {
  min-width: 0;
  min-height: 82px;
  align-content: center;
  margin: 0;
  padding: 10px;
  border: 1px solid #e5dfe8;
  border-radius: 12px;
  background: #fbfafc;
}

.business-service-booking-options > .business-booking-option:last-child {
  grid-column: 1 / -1;
  min-height: 68px;
}

.business-service-inspector .business-service-professional-picker {
  align-self: stretch;
}

.business-service-inspector .business-service-professional-picker > div {
  align-items: stretch;
}

.business-service-inspector
  .business-service-professional-picker
  .business-service-professional-choice {
  min-width: 0;
}

.business-service-inspector .business-service-advanced {
  scroll-margin-bottom: 18px;
}

.business-service-inspector > form > .business-service-inspector-footer {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 3;
  width: auto;
  margin: 0;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e7e2e9;
  background: #fff;
  box-shadow: 0 -4px 14px rgba(40, 32, 49, 0.05);
  isolation: isolate;
  flex: none;
}

.business-service-inspector > form.is-saving .business-service-inspector-body {
  opacity: 0.7;
  transition: opacity 160ms ease;
}

.business-service-drawer-layer.is-saving .business-service-drawer-backdrop {
  cursor: progress;
}

.business-service-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.business-service-save-button:disabled {
  cursor: progress;
  opacity: 1;
}

.business-service-save-spinner {
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: business-service-save-spin 680ms linear infinite;
}

.business-service-autosave-actions {
  min-width: 0;
  flex-wrap: wrap;
}

.business-service-destructive-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-service-archive-action {
  border-color: #dec58c;
  color: #805d20;
  background: #fff9e9;
}

.business-service-archive-action:hover {
  border-color: #cba95e;
  color: #6d4a0e;
  background: #fff3cf;
}

.business-service-delete-action {
  border-color: #d9a2aa;
  color: #943744;
  background: #fff;
}

.business-service-autosave-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #756d7d;
  font-size: 0.72rem;
  font-weight: 760;
}

.business-service-autosave-status[data-state="saved"] {
  color: #3f806f;
}

.business-service-autosave-status[data-state="error"] {
  max-width: min(300px, 42vw);
  color: #a13e56;
}

.business-service-autosave-status[data-state="error"] > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-autosave-status .business-service-save-spinner {
  width: 13px;
  height: 13px;
  border-color: rgba(105, 78, 175, 0.24);
  border-top-color: #694eaf;
}

.business-service-conditional {
  display: grid;
  min-width: 0;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition:
    grid-template-rows 240ms cubic-bezier(0.22, 0.8, 0.26, 1),
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 0.8, 0.26, 1),
    visibility 0s linear 240ms;
}

.business-service-conditional.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.business-service-conditional-inner {
  min-height: 0;
  overflow: hidden;
}

.business-service-stylist-conditional,
.business-service-stylist-fields {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition:
    max-height 260ms cubic-bezier(0.22, 0.8, 0.26, 1),
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 0.8, 0.26, 1),
    visibility 0s linear 260ms;
}

.business-service-stylist-conditional.is-visible,
.business-service-stylist-fields.is-visible {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.business-service-conditional-inner > .business-field {
  height: 100%;
}

.business-service-money-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #d9d2dc;
  border-radius: 10px;
  background: #fff;
}

.business-service-money-field:focus-within {
  border-color: #7760bf;
  box-shadow: 0 0 0 3px rgba(111, 84, 199, 0.11);
}

.business-service-money-field > b {
  padding-inline: 11px 2px;
  color: #726a78;
  font-size: 0.73rem;
}

.business-service-money-field > b:last-child {
  padding-inline: 2px 11px;
}

.business-service-money-field > input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-inline: 8px;
  border: 0;
  outline: 0;
  background: transparent;
}

.business-service-duration-builder {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.business-service-duration-builder > div {
  display: grid;
  gap: 10px;
}

.business-service-duration-question {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid #e3dde7;
  border-radius: 13px;
  background: #fbfafc;
}

.business-service-duration-question > legend {
  padding: 0 5px;
  color: #342d39;
  font-size: 0.76rem;
  font-weight: 820;
}

.business-service-duration-question > p {
  margin: -2px 0 2px;
  color: #756d79;
  font-size: 0.62rem;
  font-weight: 610;
  line-height: 1.45;
}

.business-service-duration-prompt,
.business-service-duration-option > label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #4d4553;
  font-size: 0.67rem;
  font-weight: 760;
}

.business-service-field-error {
  display: block;
  margin: 0;
  color: #a23849;
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1.35;
}

.business-service-field-error[hidden] {
  display: none;
}

.business-service-duration-question input[aria-invalid="true"] {
  border-color: #c95e6d;
  box-shadow: 0 0 0 3px rgba(183, 64, 82, 0.1);
}

.business-service-duration-question input {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #dcd5df;
  border-radius: 9px;
  background: #fff;
}

.business-service-duration-question [data-service-duration-options] {
  display: grid;
  gap: 8px;
}

.business-service-duration-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px auto;
  align-items: start;
  gap: 7px;
  padding: 9px;
  border: 1px solid #e6e0e9;
  border-radius: 11px;
  background: #fff;
}

.business-service-duration-option > .icon-button {
  margin-top: 22px;
}

.business-service-duration-question
  > [data-business-action="add-service-duration-option"] {
  justify-self: start;
}

.business-service-duration-option > label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.business-service-duration-option > label > div > b {
  color: #7b737f;
  font-size: 0.62rem;
}

.business-service-duration-option-gap {
  display: grid;
  grid-column: 1 / -1;
  justify-items: start;
  min-width: 0;
}

.business-service-duration-gap-add {
  min-height: 32px;
  padding-inline: 9px;
}

.business-service-duration-gap-panel {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin: 2px 0 0;
  padding: 10px;
  border: 1px solid #ddd5e3;
  border-radius: 10px;
  background: #f8f5fb;
}

.business-service-duration-gap-panel[hidden] {
  display: none;
}

.business-service-duration-gap-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #403747;
  font-size: 0.69rem;
  font-weight: 820;
}

.business-service-duration-gap-panel > header strong {
  font: inherit;
}

.business-service-duration-gap-panel > header small {
  color: #776e7d;
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.business-service-duration-gap-panel > p {
  margin: -2px 0 0;
  color: #756d79;
  font-size: 0.61rem;
  font-weight: 610;
  line-height: 1.4;
}

.business-service-duration-gap-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-service-duration-gap-fields > label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #4d4553;
  font-size: 0.65rem;
  font-weight: 760;
}

.business-service-duration-gap-fields > label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.business-service-duration-gap-fields > label > div > b {
  color: #7b737f;
  font-size: 0.62rem;
}

.business-service-duration-gap-remove {
  justify-self: start;
  min-height: 32px;
  color: #6c557c;
}

.business-service-stylist-conditional {
  margin-inline: 8px;
}

.business-service-stylist-conditional.is-visible {
  margin-block: 0 8px;
}

.business-service-stylist-fields {
  margin-top: 7px;
}

.business-service-consultation,
.business-service-deposit {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid #e5dfe8;
  border-radius: 13px;
  background: #fbfafc;
}

.business-service-consultation > h5 {
  margin: 0;
  color: #342d39;
  font-size: 0.76rem;
}

.business-service-consultation > div {
  display: grid;
  gap: 8px;
}

.business-service-consultation .business-booking-option,
.business-service-deposit > .business-booking-option {
  margin: 0;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
}

.business-service-deposit-policy-summary {
  align-items: center;
  background: color-mix(in srgb, var(--business-mint) 18%, white);
  border: 1px solid color-mix(in srgb, var(--business-mint) 38%, white);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 9px 11px;
}

.business-service-deposit-policy-summary span {
  color: var(--business-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-service-deposit-policy-summary strong {
  color: var(--business-ink);
  font-size: 0.75rem;
  text-align: right;
}

.business-service-deposit-override-fields {
  display: grid;
  gap: 8px;
}

.business-service-deposit-override-fields > .business-booking-option {
  margin: 0;
}

.business-service-deposit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 9px;
}

.business-service-booking-options > .business-booking-option:last-child {
  grid-column: auto;
  min-height: 82px;
}

@keyframes business-service-save-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 620px) {
  .business-service-board-header {
    align-items: flex-start;
  }

  .business-service-board-tools {
    align-items: center;
  }

  .business-service-booking-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-booking-options > .business-booking-option:last-child {
    grid-column: auto;
  }

  .business-service-duration-option,
  .business-service-deposit-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-duration-gap-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-duration-option > .icon-button {
    margin-top: 0;
  }

  .business-service-inspector > form > .business-service-inspector-footer {
    align-items: center;
    flex-direction: row;
  }

  .business-service-inspector-footer > div {
    display: flex;
    margin-left: auto;
  }

  .business-service-inspector-footer > .business-service-destructive-actions {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .business-service-inspector > form > .business-service-inspector-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 12px;
  }

  .business-service-inspector-footer > div {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: 0;
  }

  .business-service-inspector-footer > .business-service-autosave-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-inspector-footer
    > .business-service-autosave-actions
    > button {
    width: 100%;
  }

  .business-service-autosave-status {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-service-board-tools .business-service-view-switch::before,
  .business-service-board-tools .business-service-view-switch button,
  .business-service-category-groups,
  .business-service-category-groups.is-entering,
  .business-service-category-groups.is-leaving,
  .business-category-menu,
  .business-service-board-actions
    > .solid-button.pro[data-business-action="start-inline-service"],
  .business-service-archive-toggle,
  .business-service-archive-toggle > span,
  .business-service-archive-toggle > span > i,
  .business-service-filter,
  .business-service-filter > span,
  .business-service-filter > span::after,
  .business-service-save-spinner,
  .business-service-conditional,
  .business-service-stylist-conditional,
  .business-service-stylist-fields,
  .business-service-inspector
    > form.is-saving
    .business-service-inspector-body {
    animation: none;
    transition: none;
  }
}

/* Review-first service menu imports */
.business-service-board-actions
  > .prelook-select-shell:has(.business-service-import-select) {
  width: 120px;
  min-height: 44px;
}

.business-service-board-actions
  > .prelook-select-shell:has(.business-service-import-select)
  .prelook-select-trigger {
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px 10px;
  border-color: #d6cfe0;
  color: #4e4655;
  background: #fff;
  box-shadow: 0 4px 12px rgba(50, 40, 62, 0.045);
}

.business-service-board-actions
  > .prelook-select-shell.is-service-import-source
  .prelook-select-value {
  overflow: visible;
  color: #4e4655;
  font-weight: 740;
  text-overflow: clip;
}

html .prelook-select-popover.is-service-import-source {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 13px;
}

html
  .prelook-select-popover.is-service-import-source
  .prelook-select-option.is-service-import-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #e5deeb;
  border-radius: 9px;
  color: #4b4152;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

html
  .prelook-select-popover.is-service-import-source
  .prelook-select-option.is-service-import-source:is(:hover, :focus-visible) {
  border-color: #b9a8dd;
  color: #533c9d;
  background: #f6f2fc;
}

.business-team-drawer-layer[data-team-drawer="service-import"]
  .business-team-drawer {
  width: min(900px, calc(100vw - 48px));
  background: #fbfafc;
}

.business-team-drawer-layer[data-team-drawer="service-import"]
  .business-team-drawer-body {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(207, 244, 232, 0.45),
      transparent 31%
    ),
    #fbfafc;
}

/*
 * Service import content is updated in place while files are staged, parsed,
 * and edited. Keep those updates visually stable: the entrance motion is an
 * explicit one-time state instead of replaying whenever the drawer rerenders.
 */
.business-team-drawer-layer[data-team-drawer="service-import"]
  :is(.business-team-drawer-backdrop, .business-team-drawer) {
  animation: none;
}

.business-team-drawer-layer[data-team-drawer="service-import"]:is(
    .is-opening,
    .is-entering
  )
  .business-team-drawer-backdrop {
  animation: business-team-drawer-fade-in 180ms ease both;
}

.business-team-drawer-layer[data-team-drawer="service-import"]:is(
    .is-opening,
    .is-entering
  )
  .business-team-drawer {
  animation: business-team-drawer-in 260ms cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.business-team-drawer-layer[data-team-drawer="service-import"].is-closing
  .business-team-drawer-backdrop {
  animation: business-team-drawer-fade-out 220ms ease both;
}

.business-team-drawer-layer[data-team-drawer="service-import"].is-closing
  .business-team-drawer {
  animation: business-team-drawer-out 240ms cubic-bezier(0.4, 0, 1, 1) both;
}

/* A background image extraction remains reachable after the drawer closes. */
.business-service-import-task,
.business-service-import-floating-progress {
  position: fixed;
  z-index: 1195;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  max-width: min(300px, calc(100vw - 36px));
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.dashboard-shell .business-service-import-floating-progress {
  bottom: calc(108px + env(safe-area-inset-bottom));
}

@media (max-width: 1020px) {
  .dashboard-shell .business-service-import-floating-progress {
    right: 12px;
    bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

.business-service-import-task > button,
.business-service-import-floating-progress > button,
.business-service-import-floating-progress[data-business-action="resume-service-import"] {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #d8d0e3;
  border-radius: 999px;
  color: #453b4d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(38, 29, 48, 0.17);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 790;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.business-service-import-task > button:is(:hover, :focus-visible),
.business-service-import-floating-progress > button:is(:hover, :focus-visible),
.business-service-import-floating-progress[data-business-action="resume-service-import"]:is(
    :hover,
    :focus-visible
  ) {
  border-color: #9b88cb;
  box-shadow: 0 14px 34px rgba(58, 43, 82, 0.21);
  transform: translateY(-1px);
}

.business-service-import-task > button:focus-visible,
.business-service-import-floating-progress > button:focus-visible,
.business-service-import-floating-progress[data-business-action="resume-service-import"]:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.3);
  outline-offset: 3px;
}

.business-service-import-task-spinner {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #d9d0ef;
  border-top-color: #6650b8;
  border-radius: 50%;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  animation: business-service-import-spin 700ms linear infinite;
}

.business-service-import-task > button > strong,
.business-service-import-floating-progress > button > strong,
.business-service-import-floating-progress[data-business-action="resume-service-import"]
  > strong {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1.15;
}

.business-service-import-task.is-ready > button,
.business-service-import-floating-progress.is-ready > button {
  border-color: #b9e3d5;
  color: #266b57;
  background: rgba(239, 250, 246, 0.97);
}

.business-service-import-task.is-ready .business-service-import-task-spinner,
.business-service-import-floating-progress.is-ready
  .business-service-import-task-spinner {
  width: 18px;
  height: 18px;
  border: 0;
  color: #fff;
  background: #3b9a7d;
  animation: none;
}

.business-service-import-task.is-error > button,
.business-service-import-floating-progress.is-error > button {
  border-color: #edc0ca;
  color: #91394d;
  background: rgba(255, 244, 246, 0.97);
}

.business-service-import-task.is-error .business-service-import-task-spinner,
.business-service-import-floating-progress.is-error
  .business-service-import-task-spinner {
  width: 18px;
  height: 18px;
  border: 0;
  color: #fff;
  background: #b94c65;
  animation: none;
}

@keyframes business-service-import-spin {
  to {
    transform: rotate(1turn);
  }
}

.business-service-import-upload,
.business-service-import-preview {
  display: grid;
  min-height: 100%;
  align-content: start;
  gap: 12px;
  padding: 20px 22px 108px;
}

.business-team-drawer-layer[data-team-drawer="service-import"].is-saving
  .business-team-drawer-backdrop {
  cursor: wait;
}

.business-team-drawer-layer[data-team-drawer="service-import"].is-saving
  .business-team-drawer::before {
  position: absolute;
  z-index: 6;
  inset: 0;
  background: rgba(250, 248, 252, 0.78);
  backdrop-filter: blur(2px);
  content: "";
  cursor: wait;
}

.business-team-drawer-layer[data-team-drawer="service-import"].is-saving
  .business-team-drawer-header
  > .icon-button {
  color: #a39ca8;
  cursor: wait;
}

.business-service-import-preview:is(.is-saving, [aria-busy="true"])
  .business-service-import-menu-tree,
.business-service-import-menu-tree[inert] {
  opacity: 0.46;
  filter: saturate(0.75);
  pointer-events: none;
  user-select: none;
  transition:
    opacity 160ms ease,
    filter 160ms ease;
}

.business-service-import-saving {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 40px);
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #ded6e9;
  border-radius: 999px;
  color: #43374f;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(41, 31, 52, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  transform: translate(-50%, -50%);
  animation: business-service-import-saving-in 180ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}

.business-service-import-saving-spinner,
.business-service-import-save-spinner,
.business-service-import-button-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid #ddd4ee;
  border-top-color: #6650b8;
  border-radius: 50%;
  animation: business-service-import-spin 680ms linear infinite;
}

.business-service-import-preview.is-saving
  .business-service-import-footer
  button:disabled {
  cursor: wait;
}

@keyframes business-service-import-saving-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 6px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.business-service-import-template {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid #cce9df;
  border-radius: 16px;
  background: #effaf6;
}

.business-service-import-template > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: #286c58;
  background: #d5f1e7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.business-service-import-template > div,
.business-service-import-guidance {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.business-service-import-template :is(strong, p),
.business-service-import-guidance :is(strong, p) {
  margin: 0;
}

.business-service-import-template strong,
.business-service-import-guidance strong {
  color: #302a36;
  font-size: 0.84rem;
}

.business-service-import-template p,
.business-service-import-guidance p {
  color: #64766f;
  font-size: 0.71rem;
  line-height: 1.45;
}

.business-service-import-guidance {
  padding: 13px 15px;
  border-left: 3px solid #55b89a;
  border-radius: 4px 12px 12px 4px;
  background: rgba(235, 248, 244, 0.72);
}

.business-service-import-dropzone {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 28px;
  overflow: hidden;
  border: 1.5px dashed #bdb0d0;
  border-radius: 19px;
  color: #4e4457;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.business-service-import-dropzone:hover,
.business-service-import-dropzone.is-drag-over {
  border-color: #45a98c;
  background: #f2fbf8;
  box-shadow: 0 14px 34px rgba(47, 130, 105, 0.11);
  transform: translateY(-1px);
}

.business-service-import-dropzone.is-disabled,
.business-service-import-dropzone[aria-disabled="true"] {
  border-color: #ddd7e1;
  color: #8a838e;
  background: #f7f5f8;
  box-shadow: none;
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.business-service-import-dropzone:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.36);
  outline-offset: 3px;
}

.business-service-import-dropzone > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 17px;
  color: #5e49a7;
  background: #eee9fa;
  font-size: 1.3rem;
  font-weight: 850;
}

.business-service-import-dropzone > strong {
  color: #312a38;
  font-size: 1rem;
}

.business-service-import-dropzone > p {
  max-width: 420px;
  margin: 0;
  color: #77707c;
  font-size: 0.74rem;
  line-height: 1.45;
}

.business-service-import-dropzone > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.business-service-import-files {
  display: grid;
  gap: 9px;
}

.business-service-import-files > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.business-service-import-files > header strong {
  color: #39323f;
  font-size: 0.77rem;
}

.business-service-import-files > header small {
  color: #78717d;
  font-size: 0.66rem;
}

.business-service-import-files > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-service-import-files article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5dfe8;
  border-radius: 13px;
  background: #fff;
}

.business-service-import-files img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 9px;
  background: #f1edf4;
}

.business-service-import-file-type {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 9px;
  color: #57449d;
  background: #eee9fa;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.business-service-import-files article > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.business-service-import-files article strong,
.business-service-import-files article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-import-files article strong {
  color: #403947;
  font-size: 0.71rem;
}

.business-service-import-files article small {
  color: #837b88;
  font-size: 0.62rem;
}

.business-service-import-error,
.business-service-import-form-error {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #e6b8c2;
  border-radius: 11px;
  color: #8d3449;
  background: #fff2f5;
  font-size: 0.72rem;
  font-weight: 740;
  line-height: 1.45;
}

.business-service-import-processing {
  display: grid;
  min-height: min(520px, calc(100dvh - 190px));
  align-items: center;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 40px 24px 92px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(91, 192, 162, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 54% 44%,
      rgba(103, 80, 184, 0.12),
      transparent 48%
    ),
    #fff;
}

.business-service-import-processing-visual {
  position: relative;
  display: grid;
  width: 144px;
  height: 144px;
  place-items: center;
}

.business-service-import-processing-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(103, 80, 184, 0.18);
  border-radius: 50%;
  animation: business-import-orbit 3.4s linear infinite;
}

.business-service-import-processing-orbit::before,
.business-service-import-processing-orbit::after {
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(81, 185, 158, 0.3);
  border-radius: 50%;
  content: "";
}

.business-service-import-processing-orbit::after {
  inset: 34px;
  border-style: solid;
  border-color: rgba(103, 80, 184, 0.14);
}

.business-service-import-processing-orbit > i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #6750b8;
  box-shadow: 0 4px 14px rgba(75, 55, 135, 0.28);
}

.business-service-import-processing-orbit > i:first-child {
  top: 9px;
  left: 63px;
}

.business-service-import-processing-orbit > i:nth-child(2) {
  right: 11px;
  bottom: 29px;
  background: #51b99e;
}

.business-service-import-processing-orbit > i:last-child {
  bottom: 28px;
  left: 12px;
  background: #d78665;
}

.business-service-import-processing-sheet {
  position: relative;
  display: grid;
  width: 70px;
  height: 82px;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(103, 80, 184, 0.22);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(52, 42, 64, 0.16);
  animation: business-import-sheet 1.8s ease-in-out infinite;
}

.business-service-import-processing-sheet > i {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6750b8, #8b73d3);
  transform-origin: left;
  animation: business-import-line 1.8s ease-in-out infinite;
}

.business-service-import-processing-sheet > i:nth-child(2) {
  width: 76%;
  background: linear-gradient(90deg, #51b99e, #96dcc8);
  animation-delay: 120ms;
}

.business-service-import-processing-sheet > i:last-child {
  width: 58%;
  background: linear-gradient(90deg, #d78665, #e9b19a);
  animation-delay: 240ms;
}

.business-service-import-processing-copy {
  display: grid;
  width: min(260px, 75vw);
  justify-items: center;
  gap: 13px;
}

.business-service-import-processing-copy strong {
  margin: 0;
  color: #342d3b;
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.business-service-import-processing-copy > span {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9f2;
}

.business-service-import-processing-copy > span > i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6750b8, #51b99e);
  animation: business-import-progress 1.5s ease-in-out infinite;
}

@keyframes business-import-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes business-import-sheet {
  50% {
    transform: translateY(-5px) rotate(1.5deg);
  }
}

@keyframes business-import-line {
  0%,
  100% {
    opacity: 0.52;
    transform: scaleX(0.48);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes business-import-progress {
  from {
    transform: translateX(-115%);
  }
  to {
    transform: translateX(260%);
  }
}

.business-service-import-summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid #e3ddea;
  border-radius: 12px;
  background: #fff;
}

.business-service-import-summary > div {
  display: flex;
  min-height: 34px;
  align-items: baseline;
  gap: 5px;
  padding: 7px 12px;
}

.business-service-import-summary > div + div {
  border-left: 1px solid #ece7ef;
}

.business-service-import-summary > div strong {
  color: #5e49a7;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1;
}

.business-service-import-summary > div span {
  color: #6f6874;
  font-size: 0.68rem;
  font-weight: 700;
}

.business-service-import-section {
  display: grid;
  gap: 10px;
}

.business-service-import-tree {
  display: grid;
  gap: 10px;
}

.business-service-import-tree-branch {
  position: relative;
  display: grid;
  gap: 0;
  min-width: 0;
}

.business-service-import-tree-branch.is-root-branch {
  overflow: hidden;
  border: 1px solid #e4dfe7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(45, 36, 54, 0.04);
}

.business-service-import-tree-branch.is-root-branch::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--category-color);
  content: "";
}

.business-service-import-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px 10px 15px;
  background: color-mix(in srgb, var(--category-color) 5%, #fff);
}

.business-service-import-category-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
}

.business-service-import-category label,
.business-service-import-row label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
}

.business-service-import-category label > span,
.business-service-import-row label > span {
  display: flex;
  min-height: 16px;
  align-items: center;
  color: #5f5765;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.business-service-import-category :is(input, select),
.business-service-import-row :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dcd5e1;
  border-radius: 10px;
  color: #342e39;
  background: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
}

.business-service-import-category > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #a13b51;
  font-size: 0.64rem;
  font-weight: 730;
}

.business-service-import-category.is-invalid,
.business-service-import-row.is-invalid {
  border-color: #dc9cab;
}

.business-service-import-category.is-invalid {
  box-shadow: inset 0 0 0 1px #dc9cab;
}

.business-service-import-tree-services {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-left: 20px;
  padding: 0 10px 10px 12px;
  border-left: 1px solid color-mix(in srgb, var(--category-color) 31%, #e8e2eb);
}

.business-service-import-tree-services:empty {
  display: none;
}

.business-service-import-tree-branch.is-unassigned {
  gap: 9px;
  padding: 12px;
  border: 1px solid #e6b8c2;
  border-radius: 14px;
  background: #fff7f9;
}

.business-service-import-tree-branch.is-unassigned > header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #8d3449;
  font-size: 0.72rem;
}

.business-service-import-tree-branch.is-unassigned
  > .business-service-import-tree-services {
  margin: 0;
  padding: 0;
  border: 0;
}

.business-service-import-row {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--category-color) 24%, #e4dfe7);
  border-left: 4px solid var(--category-color);
  border-radius: 13px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--category-color) 3%, #fff) 0,
    #fff 72px
  );
  box-shadow:
    0 1px 0 rgba(45, 36, 54, 0.03),
    0 8px 20px rgba(45, 36, 54, 0.045);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.business-service-import-row:focus-within {
  border-color: color-mix(in srgb, var(--category-color) 62%, #d7cfdd);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--category-color) 11%, transparent),
    0 10px 24px rgba(45, 36, 54, 0.065);
}

.business-service-import-row-remove {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.business-service-import-row-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
}

.business-service-import-row-grid {
  padding-right: 42px;
}

.business-service-import-field.is-service-name {
  grid-column: span 6;
}

.business-service-import-field.is-category,
.business-service-import-field.is-duration {
  grid-column: span 3;
}

.business-service-import-field.is-price-type,
.business-service-import-field.is-price-min {
  grid-column: span 6;
}

.business-service-import-row-grid.has-price-range
  > .business-service-import-field:is(
    .is-price-type,
    .is-price-min,
    .is-price-max
  ) {
  grid-column: span 4;
}

.business-service-import-row-grid
  .prelook-select-shell:is(
    :has([data-import-field="categoryTempId"]),
    :has([data-import-field="priceType"])
  ),
.business-service-import-row-grid
  .prelook-select-trigger:is(
    [aria-label="Category"],
    [aria-label="Price type"]
  ) {
  width: 100%;
  min-height: 44px;
}

.business-service-import-row-grid
  .prelook-select-shell.is-plain
  > .prelook-select-trigger {
  min-height: 44px;
  padding: 9px 10px;
  border-color: #dcd5e1;
  border-radius: 10px;
  color: #342e39;
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
}

.business-service-import-row-grid
  > .business-service-import-field
  > :is(input, .business-import-input-prefix, .business-import-input-suffix) {
  min-height: 44px;
}

.business-service-import-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #eee9f0;
}

.business-service-import-description {
  min-width: 0;
}

.business-service-import-description textarea {
  min-height: 66px;
  resize: vertical;
}

.business-service-import-professionals {
  min-width: 0;
  margin: 1px 0 0;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid #eee9f0;
}

.business-service-import-professionals > legend {
  padding-right: 8px;
  color: #5f5665;
  font-size: 0.65rem;
  font-weight: 800;
}

.business-service-import-professionals > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.business-service-import-professionals .business-service-professional-choice {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 9px;
  cursor: pointer;
}

.business-service-import-professionals
  .business-service-professional-choice
  > input {
  position: absolute;
  opacity: 0;
}

.business-service-import-professionals .business-service-professional-avatar {
  width: 36px;
  height: 36px;
}

.business-service-import-professionals
  .business-service-professional-choice
  > b {
  color: #5e4b99;
  font-size: 0.61rem;
}

.business-service-import-professionals
  .business-service-professional-choice:has(input:focus-visible) {
  outline: 3px solid rgba(81, 185, 158, 0.38);
  outline-offset: -3px;
}

.business-service-import-professionals
  .business-stylist-price-fields
  :is(select, input) {
  min-height: 38px;
}

.business-import-input-prefix,
.business-import-input-suffix {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #dcd5e1;
  border-radius: 10px;
  background: #fff;
}

.business-import-input-suffix {
  grid-template-columns: minmax(0, 1fr) auto;
}

.business-import-input-prefix > b,
.business-import-input-suffix > b {
  padding-inline: 9px;
  color: #6d6572;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
}

.business-service-import-row
  :is(.business-import-input-prefix, .business-import-input-suffix)
  > input {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  color: #342e39;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  outline: 0;
}

.business-service-import-row .business-import-input-prefix > input {
  padding-right: 10px;
  padding-left: 0;
}

.business-service-import-row .business-import-input-suffix > input {
  padding-right: 2px;
  padding-left: 10px;
}

.business-service-import-check {
  display: inline-grid !important;
  grid-template-columns: 18px auto;
  align-items: center;
  justify-self: end;
  min-height: 40px;
  margin: 0 0 1px;
  padding: 7px 11px;
  border: 1px solid #dcd5e1;
  border-radius: 999px;
  background: #faf8fb;
  cursor: pointer;
}

.business-service-import-check > input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.business-service-import-check > span {
  display: block;
  min-height: auto !important;
}

.business-service-import-check strong {
  color: #4a424f;
  font-size: 0.7rem;
  line-height: 1.2;
}

.business-service-import-row-error {
  margin: 0;
  color: #a13b51;
  font-size: 0.65rem;
  font-weight: 730;
}

.business-service-import-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.business-service-import-footer > div > button {
  min-height: 44px;
}

[data-import-price-min][hidden],
[data-import-price-max][hidden],
[data-import-row-error][hidden],
[data-import-form-error][hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .business-service-import-row-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .business-service-import-field.is-service-name {
    grid-column: span 6;
  }

  .business-service-import-field.is-category,
  .business-service-import-field.is-duration,
  .business-service-import-field.is-price-type,
  .business-service-import-field.is-price-min {
    grid-column: span 3;
  }

  .business-service-import-row-grid.has-price-range
    > .business-service-import-field:is(
      .is-price-type,
      .is-price-min,
      .is-price-max
    ) {
    grid-column: span 2;
  }

  .business-service-import-professionals > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .business-team-drawer-layer[data-team-drawer="service-import"]
    .business-team-drawer {
    width: 100vw;
  }

  .business-service-import-upload,
  .business-service-import-preview {
    padding: 16px 16px 122px;
  }

  .business-service-import-template {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .business-service-import-template > span {
    width: 42px;
    height: 42px;
  }

  .business-service-import-template > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .business-service-import-dropzone {
    min-height: 190px;
    padding: 22px 16px;
  }

  .business-service-import-files > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-import-category {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-import-category > p {
    grid-column: 1;
  }

  .business-service-import-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-service-import-row-grid > .is-wide {
    grid-column: 1 / -1;
  }

  .business-service-import-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-import-check {
    justify-self: start;
  }

  .business-service-import-footer {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .business-service-import-footer > div {
    grid-column: 3;
  }
}

@media (max-width: 480px) {
  .business-service-board-actions
    > .prelook-select-shell:has(.business-service-import-select) {
    width: 112px;
  }

  .business-service-import-row-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-stylist-price-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-import-category-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-import-tree-services {
    margin-left: 22px;
    padding-right: 8px;
    padding-left: 10px;
  }

  .business-service-import-row-grid
    > .business-service-import-field:is(
      .is-service-name,
      .is-category,
      .is-duration,
      .is-price-type,
      .is-price-min,
      .is-price-max
    ) {
    grid-column: 1 / -1;
  }

  .business-service-import-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .business-service-import-footer > span {
    display: none;
  }

  .business-service-import-footer > div {
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-service-import-footer > button,
  .business-service-import-footer > div > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-service-import-dropzone,
  .business-service-import-processing-orbit,
  .business-service-import-processing-sheet,
  .business-service-import-processing-sheet > i,
  .business-service-import-processing-copy > span > i,
  .business-service-import-task-spinner,
  .business-service-import-saving,
  .business-service-import-saving-spinner,
  .business-service-import-save-spinner,
  .business-service-import-button-spinner,
  .business-service-import-task > button,
  .business-service-import-floating-progress > button,
  .business-service-import-floating-progress[data-business-action="resume-service-import"],
  .business-team-drawer-layer[data-team-drawer="service-import"]
    :is(.business-team-drawer-backdrop, .business-team-drawer) {
    animation: none;
    transition: none;
  }
}

/* Final desktop routine-board layout: later compact panel rules must not win. */
@media (min-width: 901px) {
  .business-weekly-availability-panel
    .business-weekly-hours.business-routine-week-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    padding-left: 42px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale {
    top: 109px;
    left: 0;
    width: 40px;
    height: var(--routine-track-height);
    margin: 0;
    font-size: 0.56rem;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale
    span {
    right: 5px;
    bottom: auto;
    left: auto;
    height: auto;
    transform: translateY(-50%);
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(1) {
    top: 0;
    transform: none;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(2) {
    top: 25%;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(3) {
    top: 50%;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(4) {
    top: 75%;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-scale
    span:last-child {
    top: 100%;
    transform: translateY(-100%);
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    > .business-hours-day {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 76px auto;
    align-content: start;
    gap: 8px;
    overflow: hidden;
    padding: 11px 8px 13px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-day-label {
    min-height: 76px;
    align-items: start;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-day-label
    strong {
    font-size: clamp(0.68rem, 0.78vw, 0.8rem);
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-closed-toggle {
    width: 100%;
    min-height: 24px;
    justify-content: flex-start;
    font-size: 0.54rem;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-editor {
    gap: 7px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-track {
    height: 412px;
    min-height: 412px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 6px;
    padding: 7px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break-heading,
  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break-time-fields {
    grid-column: 1;
    grid-row: auto;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break-time-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break-time-fields
    > label {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break-time-fields
    input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 0 3px;
    font-size: 0.52rem;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break-separator {
    display: none;
  }

  .business-weekly-availability-panel
    .business-routine-week-grid
    .business-hours-break
    .business-break-remove {
    display: grid;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    margin: 0;
    padding: 0;
    place-items: center;
  }
}

/* Account controls live with business settings instead of competing with the
   floating dashboard navigation. */
.business-settings-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-color: rgba(103, 80, 184, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(126, 100, 198, 0.11), transparent 42%),
    #fff;
}

.business-settings-account > div:first-child {
  display: grid;
  flex: 1 1 360px;
  max-width: 680px;
  gap: 5px;
}

.business-settings-account .eyebrow,
.business-settings-account h3,
.business-settings-account p {
  margin: 0;
}

.business-settings-account p:last-child,
.business-settings-restricted p {
  color: #746d79;
  font-size: 0.78rem;
  line-height: 1.55;
}

.business-settings-account-actions {
  display: flex;
  flex: 1 1 430px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.business-settings-account-actions
  > .account-persona-switcher.settings-persona {
  flex: 1 1 190px;
  width: 100%;
  max-width: 240px;
}

.business-settings-account-actions
  > .account-persona-switcher.settings-persona
  > summary {
  width: 100%;
}

.business-settings-account-actions > button {
  min-height: 44px;
  white-space: nowrap;
}

.business-settings-salon-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-color: rgba(103, 80, 184, 0.16);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(126, 100, 198, 0.1),
      transparent 42%
    ),
    #fff;
}

.business-settings-salon-copy {
  display: grid;
  flex: 1 1 360px;
  max-width: 680px;
  gap: 5px;
}

.business-settings-salon-copy :is(.eyebrow, h3, p) {
  margin: 0;
}

.business-settings-salon-copy p:last-child {
  color: #746d79;
  font-size: 0.78rem;
  line-height: 1.55;
}

.dashboard-shell .business-settings-salon-switcher {
  position: relative;
  display: grid;
  flex: 0 1 340px;
  grid-column: auto;
  grid-row: auto;
  width: min(100%, 340px);
  min-width: 240px;
  max-width: 340px;
  gap: 5px;
  padding: 8px;
  border: 1px solid #e4dfe9;
  border-radius: 17px;
  background: linear-gradient(145deg, #fbfafc 0%, #f7f5fa 100%);
  box-shadow: 0 8px 24px rgba(54, 43, 67, 0.06);
}

.dashboard-shell .business-settings-salon-switcher .dashboard-context-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.business-settings-salon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px 1px;
  border-top: 1px solid #e8e3ec;
}

.business-settings-salon-role {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.business-settings-salon-role small {
  color: #7b7482;
  font-size: 0.68rem;
  font-weight: 760;
}

.business-settings-salon-role strong {
  color: #302b37;
  font-size: 0.82rem;
}

.business-settings-salon-footer > button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.business-settings-restricted {
  display: grid;
  gap: 7px;
}

.business-settings-restricted :is(h3, p) {
  margin: 0;
}

@media (max-width: 700px) {
  .business-settings-account {
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  .business-settings-account-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .business-settings-account-actions > button {
    justify-content: center;
  }

  .business-settings-salon-context {
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  .dashboard-shell .business-settings-salon-switcher {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .business-settings-account-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Booking references remain attached to the authorized booking DTO. */
.business-booking-reference-groups {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.business-booking-reference-group {
  display: grid;
  gap: 9px;
  border: 1px solid #e4dfe8;
  border-radius: 15px;
  padding: 12px;
  background: #fcfbfd;
}

.business-booking-reference-group[data-photo-group="current_hair"] {
  border-left: 4px solid #5aa994;
}

.business-booking-reference-group[data-photo-group="desired_reference"] {
  border-left: 4px solid #735bc1;
}

.business-booking-reference-group > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
}

.business-booking-reference-group > header span {
  color: #332d3a;
  font-size: 0.8rem;
  font-weight: 850;
}

.business-booking-reference-group > header small {
  border-radius: 999px;
  padding: 4px 7px;
  color: #675f70;
  background: #f0edf3;
  font-size: 0.61rem;
  font-weight: 800;
}

.business-booking-reference-group > header p {
  grid-column: 1 / -1;
  margin: 0;
  color: #7b7481;
  font-size: 0.65rem;
}

.business-booking-reference-groups .business-booking-references {
  margin-top: 0;
}

.business-booking-reference-groups.is-compact,
.business-booking-reference-group.is-compact {
  gap: 8px;
}

.business-booking-references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.business-booking-reference {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 10px;
  border: 1px solid #e5dfea;
  border-radius: 14px;
  background: #faf8fb;
}

.business-booking-reference > a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #eeeaf2;
}

.business-booking-reference img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.business-booking-reference figcaption {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-booking-reference figcaption span {
  color: #4b8977;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-booking-reference figcaption strong {
  overflow: hidden;
  color: #302b37;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Appointment history -------------------------------------------------------
   Dates form the vertical axis and professionals form the horizontal axis.
   The board owns both scroll directions so its headers can remain useful. */
.business-history-page {
  min-width: 0;
}

.business-history-toolbar {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.business-history-filters {
  min-width: 0;
  margin: 0;
}

.business-history-date-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 8px;
}

.business-history-date-control {
  display: grid;
  gap: 5px;
  color: #756d7b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.business-history-date-control input {
  min-width: 156px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #ddd7e1;
  border-radius: 11px;
  color: #332d39;
  background: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  color-scheme: light;
}

.business-history-date-control input:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-history-board {
  --history-date-column-width: 112px;
  --history-professional-column-width: 210px;
  min-width: 0;
  min-height: 360px;
  max-height: max(430px, calc(100dvh - 250px));
  overflow: auto;
  border: 1px solid #e2dce6;
  border-radius: 18px;
  background: #f7f5f8;
  box-shadow: 0 16px 44px rgba(50, 40, 60, 0.055);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.business-history-board:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 3px;
}

.business-history-grid {
  display: grid;
  min-width: max(100%, var(--history-grid-min-width));
  grid-template-columns:
    var(--history-date-column-width)
    repeat(
      var(--history-column-count),
      minmax(var(--history-professional-column-width), 1fr)
    );
  align-items: stretch;
  gap: 1px;
  background: #e9e4ec;
}

.business-history-grid-corner,
.business-history-professional,
.business-history-more-columns,
.business-history-date-cell,
.business-history-grid-cell,
.business-history-more-columns-cell {
  min-width: 0;
  background: #fff;
}

.business-history-grid-corner,
.business-history-professional,
.business-history-more-columns {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 58px;
  border-bottom: 1px solid #e5dfe8;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.business-history-grid-corner {
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: #756d7b;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.business-history-professional {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
}

.business-history-professional > :is(img, span) {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  object-fit: cover;
  color: #6551aa;
  background: #eee9fb;
  font-size: 0.76rem;
  font-weight: 850;
}

.business-history-professional > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-history-professional :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-history-professional strong {
  color: #342e39;
  font-size: 0.77rem;
}

.business-history-professional small {
  color: #8a828e;
  font-size: 0.62rem;
}

.business-history-more-columns {
  display: grid;
  place-items: center;
  padding: 9px 12px;
}

.business-history-more-columns > button {
  width: calc(100% - 4px);
  min-height: 36px;
  white-space: nowrap;
}

.business-history-more-columns-cell {
  min-height: 112px;
  background:
    linear-gradient(135deg, rgba(111, 91, 182, 0.025) 25%, transparent 25%) 0
      0 / 12px 12px,
    #faf9fb;
}

.business-history-date-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 4px;
  padding: 14px;
}

.business-history-date-cell strong {
  color: #403946;
  font-size: 0.8rem;
}

.business-history-date-cell span {
  color: #88808c;
  font-size: 0.65rem;
  line-height: 1.35;
}

.business-history-date-cell.is-today {
  box-shadow: inset 3px 0 0 #6f5bb6;
  background: #f5f1ff;
}

.business-history-date-cell.is-today strong {
  color: #594294;
}

.business-history-grid-cell {
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 8px;
  padding: 8px;
}

.business-history-compact-card {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px 10px 9px;
  border: 1px solid #dfd9e3;
  border-left: 3px solid #6f5bb6;
  border-radius: 11px;
  color: #342e39;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(48, 39, 57, 0.045);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.business-history-compact-card:hover {
  border-color: #bfb4cb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(48, 39, 57, 0.09);
}

.business-history-compact-card:focus-visible {
  outline: 3px solid #51b99e;
  outline-offset: 2px;
}

.business-history-compact-card.status-completed {
  border-left-color: #4fae94;
}

.business-history-compact-card:is(.status-cancelled, .status-declined) {
  border-left-color: #d78283;
}

.business-history-compact-card.status-no_show {
  border-left-color: #a886ba;
}

.business-history-card-time {
  color: #746c7a;
  font-size: 0.64rem;
  font-weight: 800;
}

.business-history-compact-card > strong,
.business-history-card-service {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-history-compact-card > strong {
  font-size: 0.78rem;
}

.business-history-card-service {
  color: #756e79;
  font-size: 0.67rem;
}

.business-history-card-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 3px;
}

.business-history-card-footer > b {
  overflow: hidden;
  color: #3f3745;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-history-card-footer > .business-status {
  min-height: 21px;
  padding: 2px 6px;
  font-size: 0.57rem;
  font-style: normal;
  white-space: nowrap;
}

.business-history-load-sentinel {
  position: sticky;
  left: 0;
  display: grid;
  min-width: 100%;
  min-height: 58px;
  place-items: center;
  padding: 8px;
  border-top: 1px solid #e4dfe7;
  background: rgba(250, 249, 251, 0.96);
}

.business-history-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #706778;
  font-size: 0.72rem;
  font-weight: 750;
}

.business-history-loading > i {
  width: 17px;
  height: 17px;
  border: 2px solid #ded7eb;
  border-top-color: #6f5bb6;
  border-radius: 50%;
  animation: business-history-spin 700ms linear infinite;
}

.business-history-page-state {
  position: sticky;
  left: 0;
  display: flex;
  min-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #e4dfe7;
  color: #817985;
  background: #faf9fb;
  font-size: 0.69rem;
}

.business-history-page-state.is-error {
  color: #8e4d54;
  background: #fff8f8;
}

.business-history-load-error {
  display: grid;
  max-width: 460px;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #514954;
  text-align: center;
}

.business-history-load-error p {
  margin: 0;
  color: #807783;
}

@keyframes business-history-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-history-loading > i {
    animation: none;
  }
}

.business-history-empty {
  display: grid;
  min-height: max(360px, calc(100dvh - 300px));
  place-items: center;
  border: 1px solid #e4dfe7;
  border-radius: 18px;
  background: #fff;
}

.business-history-empty > .business-empty {
  width: 100%;
  min-height: 0;
}

.business-team-drawer-layer[data-team-drawer="history-booking"]
  .business-team-drawer {
  width: min(560px, calc(100vw - 48px));
}

.business-team-drawer-layer[data-team-drawer="calendar-booking"]
  .business-team-drawer {
  width: min(660px, calc(100vw - 48px));
}

.business-history-drawer-content {
  display: grid;
  gap: 14px;
  padding: 18px 20px 40px;
}

.business-history-drawer-summary {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid #e5dfe8;
  border-radius: 15px;
  background: #faf9fb;
}

.business-history-drawer-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e8e3eb;
  border-radius: 11px;
  background: #e8e3eb;
}

.business-history-drawer-summary dl > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px 11px;
  background: #fff;
}

.business-history-drawer-summary :is(dt, dd) {
  overflow-wrap: anywhere;
  margin: 0;
}

.business-history-drawer-summary dt,
.business-history-drawer-section > span {
  color: #817987;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.business-history-drawer-summary dd,
.business-history-drawer-section > strong {
  color: #3f3845;
  font-size: 0.75rem;
  font-weight: 730;
}

.business-history-drawer-section {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #e6e1e9;
  border-radius: 13px;
  background: #fff;
}

.business-calendar-booking-drawer-content {
  gap: 16px;
  padding: 20px 22px 44px;
}

.business-calendar-booking-when {
  display: grid;
  grid-template-columns: minmax(205px, 0.86fr) minmax(0, 1.14fr);
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  border: 1px solid #ded7e6;
  border-radius: 18px;
  background: #f8f6fb;
}

.business-booking-date-calendar {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9d0e5;
  border-radius: 14px;
  color: #352d3d;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(58, 45, 72, 0.06);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-booking-date-calendar:hover {
  border-color: #a897c6;
  box-shadow: 0 11px 26px rgba(58, 45, 72, 0.11);
  transform: translateY(-1px);
}

.business-booking-date-calendar:focus-visible {
  border-color: #6750b8;
  outline: 3px solid rgba(103, 80, 184, 0.2);
  outline-offset: 2px;
}

.business-booking-date-calendar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.business-booking-date-calendar-header strong {
  color: #302938;
  font-size: 0.76rem;
  font-weight: 820;
}

.business-booking-date-calendar-header small {
  color: #6750b8;
  font-size: 0.58rem;
  font-weight: 780;
}

.business-booking-date-calendar-weekdays,
.business-booking-date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.business-booking-date-calendar :is(i) {
  display: grid;
  min-width: 0;
  place-items: center;
  font-style: normal;
}

.business-booking-date-calendar-weekdays i {
  height: 18px;
  color: #8b8390;
  font-size: 0.52rem;
  font-weight: 780;
}

.business-booking-date-calendar-grid i {
  height: 22px;
  border-radius: 7px;
  color: #625a68;
  font-size: 0.58rem;
  font-weight: 680;
}

.business-booking-date-calendar-grid i.is-outside {
  color: #c2bcc7;
}

.business-booking-date-calendar-grid i.is-selected {
  color: #fff;
  background: #6750b8;
  box-shadow: 0 4px 10px rgba(103, 80, 184, 0.24);
}

.business-calendar-booking-when-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 9px;
  padding: 4px 4px 4px 0;
}

.business-calendar-booking-when-copy > span {
  color: #6750b8;
  font-size: 0.64rem;
  font-weight: 830;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-calendar-booking-when-copy time {
  display: grid;
  gap: 7px;
}

.business-calendar-booking-when-copy time > strong {
  color: #302938;
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.28;
}

.business-calendar-booking-when-copy time > b {
  color: #302938;
  font-size: 1.35rem;
  font-weight: 860;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.business-calendar-booking-when-copy > small {
  color: #78707d;
  font-size: 0.66rem;
  line-height: 1.4;
}

.business-calendar-booking-identity {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid
    color-mix(in srgb, var(--stylist-color, #b5482d) 20%, #e5dfea);
  border-radius: 15px;
  background: color-mix(in srgb, var(--stylist-soft, #fbe9e4) 44%, white);
}

.business-calendar-booking-linked-summary {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-calendar-booking-linked-summary:hover {
  border-color: #aa9cbc;
  box-shadow: 0 9px 22px rgba(71, 56, 89, 0.09);
  transform: translateY(-1px);
}

.business-calendar-booking-linked-summary:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.22);
  outline-offset: 2px;
}

.business-calendar-booking-avatar {
  width: 64px;
  height: 64px;
}

.business-calendar-booking-identity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-calendar-booking-identity > div > span,
.business-calendar-booking-reference-panel > header > span,
.business-calendar-booking-actions > header > span {
  color: #7c7482;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-calendar-booking-identity h3 {
  overflow: hidden;
  margin: 0;
  color: #302a36;
  font-size: 1.08rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-booking-identity small {
  color: #756e79;
  font-size: 0.72rem;
  font-weight: 650;
}

.business-calendar-booking-identity > .business-status {
  align-self: start;
  padding: 7px 10px;
  font-size: 0.65rem;
}

.business-calendar-booking-customer {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #e1dce5;
  border-radius: 15px;
  color: #302a36;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(54, 44, 66, 0.045);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-calendar-booking-customer:hover {
  border-color: #ad9fbb;
  box-shadow: 0 10px 24px rgba(54, 44, 66, 0.09);
  transform: translateY(-1px);
}

.business-calendar-booking-customer:focus-visible {
  border-color: #6750b8;
  outline: 3px solid rgba(103, 80, 184, 0.2);
  outline-offset: 2px;
}

.business-calendar-booking-customer-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #4f3f70;
  background: #f0ebf8;
  font-size: 0.9rem;
  font-weight: 850;
}

.business-calendar-booking-customer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-calendar-booking-customer-copy,
.business-calendar-booking-customer-activity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-calendar-booking-customer-copy small {
  color: #7c7482;
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-calendar-booking-customer-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.business-calendar-booking-customer-name > strong {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-booking-customer-name > em {
  flex: 0 0 auto;
  border: 1px solid
    color-mix(
      in srgb,
      var(--customer-classification-color) 28%,
      transparent
    );
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--customer-classification-color);
  background: color-mix(
    in srgb,
    var(--customer-classification-color) 10%,
    #fff
  );
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.business-calendar-booking-customer-copy > span {
  overflow: hidden;
  color: #746d79;
  font-size: 0.68rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-booking-customer-activity {
  justify-items: end;
  padding-left: 14px;
  border-left: 1px solid #ebe6ee;
  text-align: right;
}

.business-calendar-booking-customer-activity > strong {
  max-width: 180px;
  color: #625a68;
  font-size: 0.66rem;
  font-weight: 680;
  line-height: 1.35;
}

.business-calendar-booking-customer-activity > small {
  color: #6750b8;
  font-size: 0.66rem;
  font-weight: 800;
}

.business-calendar-booking-message {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #ddd5e8;
  border-radius: 15px;
  color: #332d39;
  background: linear-gradient(135deg, #fbf9ff, #f4f0fa);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-calendar-booking-message:hover {
  border-color: #a795bd;
  box-shadow: 0 9px 22px rgba(83, 65, 107, 0.1);
  transform: translateY(-1px);
}

.business-calendar-booking-message-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #674c9e;
  background: #eae2f7;
}

.business-calendar-booking-message-icon svg {
  width: 19px;
  height: 19px;
}

.business-calendar-booking-message > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-calendar-booking-message small,
.business-calendar-booking-message em {
  color: #776f7d;
  font-size: 0.65rem;
  font-style: normal;
}

.business-calendar-booking-message strong {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-calendar-booking-message > b {
  color: #665098;
  font-size: 0.7rem;
  white-space: nowrap;
}

.business-calendar-booking-time-editor {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid #ded7e6;
  border-radius: 15px;
  background: #faf8fc;
}

.business-calendar-booking-time-editor > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.business-calendar-booking-time-editor > header > div {
  display: grid;
  gap: 3px;
}

.business-calendar-booking-time-editor > header span {
  color: #6750b8;
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-calendar-booking-time-editor > header strong {
  color: #332d39;
  font-size: 0.86rem;
}

.business-calendar-booking-time-editor > header small {
  max-width: 190px;
  color: #7a7280;
  font-size: 0.62rem;
  line-height: 1.35;
  text-align: right;
}

.business-calendar-booking-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.business-calendar-booking-record-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.business-calendar-booking-record-fields .business-field {
  min-width: 0;
}

.business-calendar-booking-time-fields .business-field {
  min-width: 0;
}

.business-calendar-booking-time-editor > button {
  justify-self: end;
}

.business-calendar-booking-summary {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2dce6;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(54, 44, 66, 0.035);
}

.business-calendar-booking-summary dl {
  grid-template-columns: minmax(0, 1fr) minmax(108px, 0.4fr);
  gap: 0;
  border: 0;
  border-radius: 0;
}

.business-calendar-booking-summary dl > :is(div, a) {
  display: grid;
  min-height: 0;
  justify-content: start;
  gap: 4px;
  padding: 13px 15px;
  color: inherit;
  background: transparent;
  text-decoration: none;
}

.business-calendar-booking-summary
  dl
  > .business-calendar-booking-summary-deposit {
  border-left: 1px solid #e8e3eb;
  background: #faf8fc;
  text-align: right;
}

.business-calendar-booking-summary-deposit :is(dt, dd) {
  justify-self: end;
}

.business-calendar-booking-summary dd {
  color: #332d39;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

.business-calendar-booking-reference-panel,
.business-calendar-booking-actions {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid #e5dfe8;
  border-radius: 15px;
  background: #fff;
}

.business-calendar-booking-reference-panel > header,
.business-calendar-booking-actions > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-calendar-booking-reference-panel > header > strong,
.business-calendar-booking-actions > header > strong {
  color: #605867;
  font-size: 0.69rem;
  font-weight: 760;
}

.business-calendar-booking-reference-panel .business-booking-references {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.business-calendar-booking-reference-panel .business-booking-reference {
  grid-template-columns: 124px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f8f6f9;
}

.business-calendar-booking-reference-panel .business-booking-reference > a {
  border-radius: 0;
}

.business-calendar-booking-reference-empty {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #d9d2df;
  border-radius: 12px;
  background: #faf9fb;
}

.business-calendar-booking-reference-empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  background: #eeeaf2;
}

.business-calendar-booking-reference-empty > span::before {
  width: 17px;
  height: 14px;
  border: 1.5px solid #8c8492;
  border-radius: 4px;
  content: "";
}

.business-calendar-booking-reference-empty > div {
  display: grid;
  gap: 3px;
}

.business-calendar-booking-reference-empty :is(strong, p),
.business-calendar-booking-actions > p {
  margin: 0;
}

.business-calendar-booking-reference-empty strong {
  color: #3e3744;
  font-size: 0.8rem;
}

.business-calendar-booking-reference-empty p,
.business-calendar-booking-actions > p {
  color: #7b7380;
  font-size: 0.7rem;
  line-height: 1.45;
}

.business-calendar-booking-actions > .business-booking-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-top: 0;
}

.business-calendar-booking-actions > .business-booking-actions > button {
  min-height: 40px;
}

.business-calendar-booking-customer-section {
  display: grid;
  gap: 10px;
}

.business-calendar-booking-modification {
  overflow: hidden;
  border: 1px solid #ded7e6;
  border-radius: 15px;
  background: #faf8fc;
}

.business-calendar-booking-modification details {
  color: #332d39;
  interpolate-size: allow-keywords;
}

.business-calendar-booking-modification summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
}

.business-calendar-booking-modification summary::-webkit-details-marker {
  display: none;
}

.business-calendar-booking-modification summary > span {
  display: grid;
  gap: 3px;
}

.business-calendar-booking-modification summary small {
  color: #6750b8;
  font-size: 0.61rem;
  font-weight: 830;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.business-calendar-booking-modification summary strong {
  color: #332d39;
  font-size: 0.86rem;
}

.business-calendar-booking-modification summary > b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #6750b8;
  background: #eee9f5;
  transition: transform 180ms ease;
}

.business-calendar-booking-modification details[open] summary {
  border-bottom: 1px solid #e5dfE9;
}

.business-calendar-booking-modification details[open] summary > b {
  transform: rotate(180deg);
}

.business-calendar-booking-modification details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    block-size 220ms ease,
    content-visibility 220ms allow-discrete,
    opacity 180ms ease;
}

.business-calendar-booking-modification details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.business-calendar-booking-modification-body {
  display: grid;
  gap: 13px;
  padding: 15px;
}

.business-calendar-booking-modification-body > p {
  margin: 0;
  color: #716977;
  font-size: 0.72rem;
  line-height: 1.5;
}

.business-booking-modification-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.business-booking-modification-schedule {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfd8e5;
  border-radius: 14px;
  background: #fff;
}

.business-booking-modification-schedule > legend {
  margin-left: 12px;
  padding: 0 6px;
  color: #5f4a91;
  font-size: 0.64rem;
  font-weight: 830;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.business-booking-modification-time-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(118px, 0.72fr);
  align-items: end;
  gap: 10px;
  padding: 12px 13px;
}

.business-booking-modification-time-row +
  .business-booking-modification-time-row {
  border-top: 1px solid #eee9f1;
}

.business-booking-modification-time-row > strong {
  align-self: center;
  color: #3d3545;
  font-size: 0.75rem;
  font-weight: 830;
}

.business-booking-modification-time-row .business-field {
  min-width: 0;
  gap: 4px;
}

.business-booking-modification-time-row .business-field > span {
  color: #756d7b;
  font-size: 0.58rem;
  font-weight: 760;
}

.business-booking-modification-time-row input {
  min-width: 0;
  min-height: 42px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.business-booking-modification-schedule > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-top: 1px solid #eee9f1;
  background: #faf8fc;
}

.business-booking-modification-schedule > footer > output {
  color: #625a69;
  font-size: 0.64rem;
  font-weight: 760;
}

.business-booking-modification-schedule > footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.business-booking-modification-schedule > footer button {
  min-height: 32px;
  padding: 5px 10px;
  border-color: #d8d0e2;
  color: #5b478c;
  background: #fff;
  font-size: 0.61rem;
}

.business-booking-modification-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  color: #9b342d;
  background: #fff0ee;
  font-size: 0.67rem;
  font-weight: 740;
}

.business-booking-modification-schedule >
  .business-booking-modification-error {
  margin: 0 12px 12px;
}

.business-booking-modification-error[hidden] {
  display: none;
}

.business-booking-modification-reasons {
  display: grid;
  gap: 8px;
}

.business-booking-modification-reasons > span {
  color: #756d7b;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-booking-modification-reasons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.business-booking-modification-reasons button {
  min-height: 34px;
  border-radius: 999px;
}

.business-booking-modification-reasons button[aria-pressed="true"] {
  border-color: #7861ad;
  color: #523b86;
  background: #eee8f7;
}

.business-booking-unified-modification > [data-booking-modification-send] {
  min-width: 116px;
  justify-self: end;
}

.business-calendar-booking-actions.is-readonly > .outline-button {
  justify-self: start;
}

@media (max-width: 760px) {
  .business-history-toolbar {
    display: grid;
  }

  .business-history-date-actions {
    justify-content: space-between;
  }

  .business-history-date-control {
    flex: 1 1 auto;
  }

  .business-history-date-control input {
    width: 100%;
  }

  .business-history-board {
    --history-date-column-width: 92px;
    --history-professional-column-width: 184px;
    max-height: calc(100dvh - 300px);
    border-radius: 14px;
  }

  .business-history-date-cell,
  .business-history-grid-cell {
    min-height: 104px;
  }

  .business-history-date-cell {
    padding: 11px 9px;
  }

  .business-team-drawer-layer[data-team-drawer="history-booking"]
    .business-team-drawer {
    width: 100vw;
  }
}

@media (max-width: 520px) {
  .business-booking-reference {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .business-history-drawer-content {
    padding-inline: 16px;
  }

  .business-history-drawer-summary dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-team-drawer-layer[data-team-drawer="calendar-booking"]
    .business-team-drawer {
    width: 100vw;
  }

  .business-calendar-booking-drawer-content {
    padding-inline: 16px;
  }

  .business-calendar-booking-when {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }

  .business-calendar-booking-when-copy {
    padding: 2px 1px 4px;
  }

  .business-calendar-booking-when-copy time > b {
    font-size: 1.18rem;
  }

  .business-calendar-booking-identity {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .business-calendar-booking-avatar {
    width: 54px;
    height: 54px;
  }

  .business-calendar-booking-identity > .business-status {
    grid-column: 2;
    justify-self: start;
  }

  .business-calendar-booking-record-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-calendar-booking-customer {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px 10px;
    padding: 12px;
  }

  .business-calendar-booking-customer-avatar {
    width: 44px;
    height: 44px;
  }

  .business-calendar-booking-customer-activity {
    grid-column: 2;
    justify-items: start;
    padding: 6px 0 0;
    border-top: 1px solid #eee9f0;
    border-left: 0;
    text-align: left;
  }

  .business-calendar-booking-customer-activity > strong {
    max-width: none;
  }

  .business-calendar-booking-message {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .business-calendar-booking-message > b {
    grid-column: 2;
  }

  .business-calendar-booking-time-editor > header {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .business-calendar-booking-time-editor > header small {
    max-width: none;
    text-align: left;
  }

  .business-calendar-booking-time-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-modification-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-modification-time-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .business-booking-modification-schedule > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .business-booking-modification-schedule > footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-booking-modification-schedule > footer button {
    width: 100%;
  }

  .business-booking-unified-modification > [data-booking-modification-send] {
    width: 100%;
  }

  .business-calendar-booking-time-editor > button {
    width: 100%;
  }

  .business-calendar-booking-summary
    dl
    > .business-calendar-booking-summary-deposit {
    border-top: 1px solid #e8e3eb;
    border-left: 0;
    text-align: left;
  }

  .business-calendar-booking-summary-deposit :is(dt, dd) {
    justify-self: start;
  }

  .business-calendar-booking-actions > .business-booking-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-calendar-booking-reference-panel .business-booking-reference {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-history-compact-card {
    transition: none;
  }

  .business-calendar-booking-modification summary > b,
  .business-calendar-booking-modification details::details-content {
    transition: none;
  }
}

/* Shared Pro workspace control geometry. Keep primary actions at the global
   44px target while title switches and local view switches retain a clear,
   consistent hierarchy across dashboard pages. */
.dashboard-shell .business-workspace-page {
  --ops-title-tab-height: 42px;
  --ops-local-tab-height: 40px;
  --ops-tab-font-size: 0.76rem;
}

.dashboard-shell
  :is(.business-team-view-switch, .business-schedule-mode-switch)
  > button {
  min-height: var(--ops-title-tab-height);
  font-size: var(--ops-tab-font-size);
}

.dashboard-shell
  :is(.business-team-view-switch, .business-schedule-mode-switch) {
  padding: 2px;
}

.dashboard-shell
  :is(.business-team-view-switch, .business-schedule-mode-switch)::before {
  top: 2px;
  left: 2px;
  height: calc(100% - 4px);
}

.dashboard-shell
  :is(
    .business-calendar-view-switch,
    .business-crm-view-switch,
    .business-service-view-switch,
    .business-team-list-switch,
    .business-inventory-toolbar .business-segmented
  )
  > button {
  min-height: var(--ops-local-tab-height);
  font-size: var(--ops-tab-font-size);
}

/* Salon onboarding schedule: keep a true 24-hour, minute-precise editor while
   making the scale and per-day controls readable at a glance. */
.business-weekday-short {
  display: none;
}

.business-hours-break-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.business-hours-break-heading > strong {
  color: #4b4351;
  font-size: 0.66rem;
  font-weight: 800;
}

.business-hours-break-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  min-width: 0;
}

.business-hours-break-time-fields > label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-hours-break-time-fields > label > span {
  color: #817985;
  font-size: 0.58rem;
  font-weight: 760;
}

.business-hours-break-separator {
  align-self: center;
  color: #928a96;
  font-size: 0.58rem;
}

@media (min-width: 901px) {
  .business-onboarding .business-weekly-hours.business-routine-week-grid {
    padding-left: 54px;
  }

  .business-onboarding .business-routine-week-grid > .business-hours-scale {
    top: 91px;
    left: 0;
    width: 52px;
    height: var(--routine-track-height);
    overflow: visible;
    font-size: 0.55rem;
  }

  .business-onboarding
    .business-routine-week-grid
    > .business-hours-scale
    span {
    right: 8px;
    left: auto;
    width: 42px;
    line-height: 1;
    text-align: right;
    transform: translateY(-50%);
  }

  .business-onboarding
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(1) {
    top: 0;
    transform: translateY(-20%);
  }

  .business-onboarding
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(2) {
    top: 25%;
  }

  .business-onboarding
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(3) {
    top: 50%;
  }

  .business-onboarding
    .business-routine-week-grid
    > .business-hours-scale
    span:nth-child(4) {
    top: 75%;
  }

  .business-onboarding
    .business-routine-week-grid
    > .business-hours-scale
    span:last-child {
    top: 100%;
    transform: translateY(-80%);
  }

  .business-onboarding .business-routine-week-grid > .business-hours-day {
    grid-template-rows: 58px auto;
    gap: 8px;
    padding: 11px 8px 13px;
  }

  .business-onboarding .business-routine-week-grid .business-hours-day-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    min-height: 58px;
    gap: 4px;
  }

  .business-onboarding .business-routine-week-grid .business-hours-day-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-day-title
    > strong {
    min-width: 0;
  }

  .business-onboarding .business-routine-week-grid .business-closed-toggle {
    flex: 0 0 auto;
    width: auto;
    min-height: 24px;
    padding: 0;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-rail::before {
    background:
      repeating-linear-gradient(
        180deg,
        transparent 0 calc(25% - 1px),
        rgba(80, 70, 87, 0.14) calc(25% - 1px) 25%
      ),
      repeating-linear-gradient(
        180deg,
        transparent 0 calc(4.1667% - 1px),
        rgba(97, 86, 106, 0.055) calc(4.1667% - 1px) 4.1667%
      );
  }

  .business-onboarding .business-routine-week-grid .business-hours-break {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 7px;
    padding: 8px;
    border: 1px solid #ebe5ef;
    border-radius: 10px;
    background: #f8f6fa;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-break-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-break-time-fields {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-break-time-fields
    > label {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-break-time-fields
    input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 4px;
    font-size: 0.54rem;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-break-separator {
    display: none;
  }

  .business-onboarding
    .business-routine-week-grid
    .business-hours-break
    .business-break-remove {
    display: grid;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    margin: 0;
    padding: 0;
    place-items: center;
    border-radius: 7px;
    font-size: 0.75rem;
    line-height: 1;
  }
}

@media (min-width: 901px) and (max-width: 1240px) {
  .business-onboarding .business-weekday-full {
    display: none;
  }

  .business-onboarding .business-weekday-short {
    display: inline;
  }

  .business-onboarding .business-routine-week-grid .business-hours-day-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 900px) {
  .business-routine-week-grid .business-hours-day-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .business-routine-week-grid .business-hours-break {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 8px;
    padding: 9px;
  }

  .business-routine-week-grid .business-hours-break-heading,
  .business-routine-week-grid .business-hours-break-time-fields {
    grid-column: 1;
    grid-row: auto;
  }

  .business-routine-week-grid .business-hours-break-time-fields {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .business-routine-week-grid .business-hours-break .business-break-remove {
    display: grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    place-items: center;
  }
}

/* Shared dashboard header rhythm ---------------------------------------------
   Keep the same title geometry on every business destination. Title-level
   switches remain deliberately slimmer than primary action buttons on desktop. */
@media (min-width: 761px) {
  .dashboard-shell .business-page-header {
    align-items: flex-end;
    padding-top: 5px;
  }

  .dashboard-shell .business-page-heading {
    gap: 4px;
  }

  .dashboard-shell .business-workspace-page {
    --ops-title-tab-height: 34px;
    --ops-tab-font-size: 0.7rem;
  }

  .dashboard-shell .business-schedule-mode-switch {
    --schedule-mode-tab-width: 76px;
  }

  .dashboard-shell .business-schedule-mode-switch > button {
    min-width: 76px;
    min-height: 34px;
    padding-inline: 9px;
  }

  .dashboard-shell .business-team-view-switch {
    grid-template-columns: repeat(2, 78px);
  }

  .dashboard-shell .business-team-view-switch::before {
    width: 78px;
  }

  .dashboard-shell .business-team-view-switch[data-active="roles"]::before {
    transform: translateX(78px);
  }

  .dashboard-shell .business-team-view-switch > button {
    min-width: 78px;
    min-height: 34px;
    padding-inline: 8px;
  }
}

/* Service catalog drag previews --------------------------------------------
   The live card stays in the prospective slot while surrounding cards use a
   short FLIP transition, so simple and detailed catalogs never snap around. */
.business-service-tile.is-drag-preview {
  z-index: 2;
  opacity: 0.7;
  border-color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 10%, #fff);
  box-shadow: 0 12px 28px rgba(64, 48, 86, 0.16);
}

.business-service-tile.is-drag-shifting {
  transition: transform 190ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .business-service-tile.is-drag-shifting {
    transition: none !important;
  }
}

/* Customer CRM -------------------------------------------------------------
   Registered Prelook identity is visually locked while salon-owned imported
   data, notes, and groups remain clearly separated and easy to scan. */
.business-crm-table-wrap {
  overflow: visible;
}

.business-crm-table {
  min-width: 1160px;
  table-layout: auto;
}

.business-crm-table th {
  z-index: 22;
  top: var(--crm-sticky-top-height, 0px);
  box-shadow: inset 0 -1px #e8e2ed;
}

.business-crm-table th:first-child {
  border-radius: 19px 0 0;
}

.business-crm-table th:last-child {
  border-radius: 0 19px 0 0;
}

.business-crm-table-pagination {
  position: sticky;
  left: 0;
  display: flex;
  width: min(100%, 1160px);
  min-width: min(100%, 720px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid #e8e2ed;
  color: #6d6277;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.business-crm-table th,
.business-crm-table td {
  padding-inline: 12px;
}

.business-crm-table th:first-child {
  min-width: 200px;
}

.business-crm-table th:last-child,
.business-crm-table td:last-child {
  width: 42px;
}

.business-crm-table :is(th, td).business-crm-custom-column {
  min-width: 180px;
  max-width: 260px;
}

.business-crm-table th.business-crm-custom-column small {
  display: block;
  width: max-content;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #6b579e;
  background: #eee9f7;
  font-size: 0.48rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.business-crm-table td.business-crm-custom-column strong {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.business-crm-table td:first-child {
  display: table-cell;
}

.business-crm-table td {
  max-width: 270px;
  font-size: 0.72rem;
}

.business-crm-customer-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.business-crm-customer-cell > span:last-child,
.business-crm-stacked-value {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-crm-customer-cell :is(strong, small),
.business-crm-stacked-value :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-crm-customer-cell strong,
.business-crm-stacked-value strong {
  color: #332d39;
  font-size: 0.73rem;
  font-weight: 820;
  line-height: 1.3;
}

.business-crm-customer-cell small,
.business-crm-stacked-value small,
.business-crm-table td > small {
  color: #7b7380;
  font-size: 0.61rem;
  line-height: 1.35;
}

.business-crm-conflict-label {
  color: #9a4a5c !important;
  font-weight: 720;
}

.business-crm-source-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 820;
  line-height: 1.15;
  white-space: nowrap;
}

.business-crm-source-badge.is-prelook {
  border-color: #d8ccef;
  color: #5e4996;
  background: #f1ecfa;
}

.business-crm-source-badge.is-imported {
  border-color: #bfe3d8;
  color: #326f61;
  background: #eaf7f3;
}

.business-crm-source-badge.is-salon {
  border-color: #c9dce8;
  color: #355f77;
  background: #edf6fa;
}

.business-crm-metric-line {
  color: #4e4654;
  line-height: 1.35;
}

.business-crm-inline-tags {
  display: flex;
  min-height: 18px;
  flex-wrap: wrap;
  gap: 4px;
}

.business-crm-inline-tags > span:not(.business-crm-category-pills) {
  padding: 3px 7px;
  border-radius: 999px;
  color: #60566c;
  background: #f2eff4;
  font-size: 0.57rem;
  font-weight: 720;
}

.business-crm-inline-tags .business-crm-category-pills > span {
  padding: 3px 7px;
  font-size: 0.57rem;
}

.business-crm-open-cell {
  text-align: right;
}

.business-crm-open-cell > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: auto;
  place-items: center;
  border-radius: 9px;
  color: #6650a4;
  background: #f1edf8;
  font-size: 1.05rem;
  line-height: 1;
}

.business-team-drawer-layer[data-team-drawer="crm-client"]
  .business-team-drawer {
  width: min(760px, calc(100vw - 48px));
}

.business-team-drawer-layer[data-team-drawer="crm-import"]
  .business-team-drawer {
  width: min(900px, calc(100vw - 48px));
}

.business-team-drawer-layer:is(
    [data-team-drawer="crm-client"],
    [data-team-drawer="crm-import"]
  )
  .business-team-drawer-body {
  padding-bottom: 100px;
  background: #fbfafc;
}

.business-crm-client-form {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px 22px 0;
}

.business-crm-customer-summary {
  --crm-customer-classification: #36739a;
  overflow: hidden;
  border: 1px solid
    color-mix(in srgb, var(--crm-customer-classification) 34%, #e5dfe9);
  border-left: 5px solid var(--crm-customer-classification);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px
    color-mix(in srgb, var(--crm-customer-classification) 8%, transparent);
}

.business-crm-customer-summary > header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--crm-customer-classification) 14%, #ece7ef);
  background: color-mix(
    in srgb,
    var(--crm-customer-classification) 5%,
    #faf8fc
  );
}

.business-crm-customer-summary > header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-crm-customer-summary > header > div > span {
  color: var(--crm-customer-classification);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-crm-stylist-chips {
  display: flex;
  min-width: 120px;
  flex-wrap: wrap;
  gap: 5px;
}

.business-crm-stylist-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #d9d1e5;
  border-radius: 999px;
  color: #594976;
  background: #f5f1fa;
  font-size: 0.58rem;
  font-weight: 790;
  line-height: 1.15;
}

.business-crm-stylist-chip.is-unassigned {
  border-color: #ddd9df;
  color: #716a75;
  background: #f5f3f5;
}

.business-crm-stylist-chip.is-more {
  min-width: 24px;
  justify-content: center;
  padding-inline: 6px;
}

.business-crm-customer-summary h3 {
  margin: 0;
  color: #332d39;
  font-size: 0.94rem;
  line-height: 1.2;
}

.business-crm-classification {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid
    color-mix(in srgb, var(--crm-customer-classification) 26%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--crm-customer-classification) 78%, #29232f);
  background: color-mix(in srgb, var(--crm-customer-classification) 12%, #fff);
  font-size: 0.62rem;
  font-weight: 850;
  white-space: nowrap;
}

.business-crm-classification > i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--crm-customer-classification);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--crm-customer-classification) 16%, transparent);
}

.business-crm-customer-summary > dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #eee9f0;
}

.business-crm-customer-summary > dl > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 12px 13px;
  background: #fff;
}

.business-crm-customer-summary dt {
  color: #77707c;
  font-size: 0.54rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.business-crm-customer-summary dd {
  margin: 0;
  color: #302a36;
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1;
}

.business-crm-identity-card,
.business-crm-salon-details,
.business-crm-imported-data {
  overflow: hidden;
  border: 1px solid #e5dfe9;
  border-radius: 16px;
  background: #fff;
}

.business-crm-identity-card > header,
.business-crm-salon-details > header,
.business-crm-imported-data > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #ece7ef;
  background: #faf8fc;
}

.business-crm-identity-card > header > div,
.business-crm-salon-details > header,
.business-crm-imported-data > header {
  min-width: 0;
}

.business-crm-identity-card h3,
.business-crm-salon-details h3,
.business-crm-imported-data h3 {
  margin: 5px 0 0;
  color: #332d39;
  font-size: 0.92rem;
  line-height: 1.2;
}

.business-crm-salon-details > header,
.business-crm-imported-data > header {
  display: grid;
  justify-content: stretch;
  gap: 1px;
}

.business-crm-salon-details > header > span,
.business-crm-imported-data > header > span {
  color: #6750a4;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-crm-salon-details > header > p,
.business-crm-imported-data > header > p {
  max-width: 660px;
  margin: 7px 0 0;
  color: #706777;
  font-size: 0.64rem;
  line-height: 1.5;
}

.business-crm-private-fields-prompt {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #ddd5e8;
  border-radius: 11px;
  color: #665b70;
  background: #f8f5fb;
}

.business-crm-private-fields-prompt strong {
  color: #51445f;
  font-size: 0.67rem;
}

.business-crm-private-fields-prompt span {
  font-size: 0.61rem;
  line-height: 1.45;
}

.business-crm-identity-lock {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #655d6b;
  background: #efecf1;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.business-crm-identity-card dl,
.business-crm-imported-data dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.business-crm-identity-card dl > div,
.business-crm-imported-data dl > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0ecf2;
}

.business-crm-identity-card dl > div:nth-child(odd),
.business-crm-imported-data dl > div:nth-child(odd) {
  border-right: 1px solid #f0ecf2;
}

.business-crm-identity-card dl > div.is-wide,
.business-crm-imported-data dl > div.is-wide {
  grid-column: 1 / -1;
  border-right: 0;
}

.business-crm-identity-card dt,
.business-crm-imported-data dt {
  color: #837a89;
  font-size: 0.56rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-crm-imported-data dt small {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #6b579e;
  background: #eee9f7;
  font-size: 0.47rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.business-crm-imported-data dl > div.is-custom {
  background: #fcfbfe;
}

.business-crm-identity-card dd,
.business-crm-imported-data dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #37313d;
  font-size: 0.72rem;
  font-weight: 690;
  line-height: 1.4;
}

.business-crm-imported-identity-fields,
.business-crm-salon-details > .business-form-grid {
  padding: 16px;
}

.business-crm-identity-conflict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #edcad2;
  border-radius: 14px;
  color: #623b46;
  background: #fff7f8;
}

.business-crm-identity-conflict > div {
  display: grid;
  gap: 4px;
}

.business-crm-identity-conflict :is(p, small) {
  margin: 0;
}

.business-crm-identity-conflict > div > span {
  color: #9a3e54;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-crm-identity-conflict p {
  font-size: 0.69rem;
  line-height: 1.4;
}

.business-crm-identity-conflict small {
  color: #826a71;
  font-size: 0.61rem;
  line-height: 1.45;
}

.business-team-drawer-layer[data-team-drawer="crm-client"]
  .business-crm-drawer-history {
  margin: 18px 22px 0;
}

.business-crm-import-shell {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
}

.business-crm-import-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 18px 22px 0;
  list-style: none;
}

.business-crm-import-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8b838f;
  font-size: 0.62rem;
  text-align: center;
}

.business-crm-import-progress li:not(:last-child)::after {
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  content: "";
  background: #e3ddea;
}

.business-crm-import-progress li.is-complete:not(:last-child)::after {
  background: #78c2ad;
}

.business-crm-import-progress li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #ded7e5;
  border-radius: 50%;
  color: #766d7d;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 820;
}

.business-crm-import-progress li:is(.is-current, .is-complete) {
  color: #514368;
}

.business-crm-import-progress li.is-current > span {
  border-color: #7259bd;
  color: #fff;
  background: #7259bd;
  box-shadow: 0 0 0 4px #eee9f8;
}

.business-crm-import-progress li.is-complete > span {
  border-color: #73bea9;
  color: #286b5c;
  background: #e7f6f1;
}

.business-crm-import-upload {
  justify-items: center;
  margin: 0 22px;
  padding: 30px 24px;
  text-align: center;
}

.business-crm-import-upload > div:not(.business-crm-import-upload-icon) {
  display: grid;
  gap: 5px;
}

.business-crm-import-upload :is(p, strong) {
  margin: 0;
}

.business-crm-import-upload p {
  max-width: 560px;
  color: #756d7a;
  font-size: 0.69rem;
  line-height: 1.5;
}

.business-crm-import-upload-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #d8cced;
  border-radius: 18px;
  color: #624ba4;
  background: #f0ebf8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.business-crm-import-upload label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 18px;
  cursor: pointer;
}

.business-crm-import-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.business-crm-template-button {
  min-height: 38px;
}

.business-crm-import-security {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbe5dc;
  border-radius: 12px;
  color: #3f6c60 !important;
  background: #eff8f5;
  text-align: left;
}

.business-crm-import-map-form,
.business-crm-import-form {
  min-height: auto;
  padding-top: 0;
}

.business-crm-import-map-intro {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #e4dee8;
  border-radius: 13px;
  background: #fff;
}

.business-crm-import-map-intro :is(p, strong) {
  margin: 0;
}

.business-crm-import-map-intro p {
  color: #766e7b;
  font-size: 0.68rem;
  line-height: 1.45;
}

.business-crm-import-map-grid {
  overflow: hidden;
  border: 1px solid #e3dde7;
  border-radius: 15px;
  background: #fff;
}

.business-crm-import-map-head,
.business-crm-import-map-grid > label {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
}

.business-crm-import-map-head {
  color: #746b7b;
  background: #f5f2f7;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-crm-import-map-grid > label {
  border-top: 1px solid #efebf1;
  color: #48404e;
  font-size: 0.69rem;
  font-weight: 760;
}

.business-crm-import-map-grid > label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.business-crm-import-map-grid > label small {
  color: #6d56ac;
  font-size: 0.53rem;
  font-weight: 800;
}

.business-crm-import-map-grid select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #dbd4e2;
  border-radius: 10px;
  color: #39323f;
  background: #fff;
  font: inherit;
}

.business-crm-import-mapping-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  min-height: 36px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #ded6eb;
  border-radius: 10px;
  color: #655c6d;
  background: #faf8fc;
  font-size: 0.61rem;
  line-height: 1.4;
}

.business-crm-import-mapping-status strong {
  color: #42384e;
}

.business-crm-import-mapping-status.is-ai {
  border-color: #cce6dd;
  color: #376c60;
  background: #f0faf7;
}

.business-crm-import-mapping-status.is-fallback {
  border-color: #eadcae;
  color: #735d21;
  background: #fffbec;
}

.business-crm-import-mapping-status span {
  color: inherit;
  font-weight: 760;
}

.business-crm-import-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 12px 10px 15px;
  border: 1px solid #e5dfe9;
  border-radius: 13px;
  background: #fff;
}

.business-crm-import-summary-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.business-crm-import-summary-copy p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: #756d7a;
  font-size: 0.66rem;
  font-weight: 720;
}

.business-crm-import-summary-copy strong {
  color: #3b3440;
  font-size: 0.98rem;
}

.business-crm-import-summary-copy i {
  width: 1px;
  height: 18px;
  background: #ded8e2;
}

.business-crm-import-summary-filter {
  display: grid;
  grid-template-columns: 22px auto minmax(0, auto);
  align-items: center;
  gap: 3px 7px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 7px 11px;
  border: 1px solid #d9cde8;
  border-radius: 11px;
  color: inherit;
  background: #faf7ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.business-crm-import-summary-filter > span:first-child {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: #7659ba;
  font-size: 0.66rem;
  font-weight: 900;
}

.business-crm-import-summary-filter > strong {
  color: #3b3440;
  font-size: 0.9rem;
}

.business-crm-import-summary-filter > span:not(:first-child) {
  color: #51475a;
  font-size: 0.65rem;
  font-weight: 820;
}

.business-crm-import-summary-filter > small {
  grid-column: 2 / -1;
  color: #776b80;
  font-size: 0.52rem;
  font-weight: 680;
}

.business-crm-import-summary-filter:hover {
  border-color: #bcaed2;
  transform: translateY(-1px);
}

.business-crm-import-summary-filter:focus-visible {
  outline: 3px solid rgb(111 83 176 / 22%);
  outline-offset: 2px;
}

.business-crm-import-summary-filter.is-active {
  border-color: #8d74c4;
  background: #f5f0ff;
  box-shadow: 0 0 0 1px rgb(116 86 185 / 10%);
}

.business-crm-import-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e3dde7;
  border-radius: 13px;
  background: #fff;
}

.business-crm-import-pagination > span {
  color: #756d7a;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.business-crm-import-pagination > span strong {
  color: #3b3440;
}

.business-crm-import-pagination > label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #756d7a;
  font-size: 0.64rem;
  font-weight: 750;
}

.business-crm-import-pagination select {
  min-width: 64px;
  min-height: 34px;
  padding: 0 28px 0 9px;
  border: 1px solid #dbd4e2;
  border-radius: 9px;
  color: #39323f;
  background: #fff;
  font: inherit;
}

.business-crm-import-pagination button {
  min-width: 78px;
}

.business-crm-import-preview article {
  overflow: hidden;
  border: 1px solid #e3dde7;
  border-radius: 15px;
  background: #fff;
}

.business-crm-import-preview {
  display: grid;
  gap: 14px;
}

.business-crm-import-filter-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1px dashed #d8cfe2;
  border-radius: 15px;
  color: #4b4351;
  background: #fff;
  text-align: center;
}

.business-crm-import-filter-empty p {
  margin: 0 0 4px;
  color: #756d7a;
  font-size: 0.7rem;
}

.business-crm-import-preview article[data-status="review"] {
  border-color: #e2aab6;
  background: #fffafb;
}

.business-crm-import-preview article[aria-busy="true"] {
  border-color: #b9a8dc;
}

.business-crm-import-preview article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee9f0;
  background: #faf8fb;
}

.business-crm-import-preview article > header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.business-crm-import-preview article > header strong {
  overflow: hidden;
  color: #352f3a;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-crm-import-preview article > header small {
  color: #837b88;
  font-size: 0.55rem;
  font-weight: 700;
}

.business-crm-import-preview article > header .icon-button {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.business-crm-import-attention {
  display: grid;
  gap: 9px;
  margin: 12px 14px 0;
  padding: 11px 12px;
  border: 1px solid #efc2ca;
  border-radius: 11px;
  color: #783748;
  background: #fff2f4;
}

.business-crm-import-attention > header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.business-crm-import-attention > header > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #bc526b;
  font-size: 0.66rem;
  font-weight: 900;
}

.business-crm-import-attention > header div {
  display: grid;
  gap: 2px;
}

.business-crm-import-attention > header strong {
  font-size: 0.66rem;
}

.business-crm-import-attention > header small {
  color: #8a5864;
  font-size: 0.56rem;
  line-height: 1.4;
}

.business-crm-import-attention ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-crm-import-attention li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding-top: 6px;
  border-top: 1px solid rgb(188 82 107 / 15%);
  font-size: 0.59rem;
  line-height: 1.45;
}

.business-crm-import-attention li span {
  color: #9a4055;
  font-weight: 780;
}

.business-crm-import-duplicates {
  display: grid;
  gap: 8px;
  margin: 10px 14px 0;
}

.business-crm-import-duplicates > div {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #e4c9a7;
  border-radius: 11px;
  color: #5f4525;
  background: #fffaf2;
}

.business-crm-import-duplicates header {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.business-crm-import-duplicates header span {
  flex: 0 0 auto;
  font-size: 0.55rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.business-crm-import-duplicates header strong {
  overflow-wrap: anywhere;
  color: #4b351c;
  font-size: 0.65rem;
  text-align: right;
}

.business-crm-import-duplicates p {
  margin: 0;
  color: #7c684e;
  font-size: 0.56rem;
}

.business-crm-import-duplicates ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-crm-import-duplicates li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #5d4d3a;
  background: rgb(210 175 128 / 12%);
  font-size: 0.57rem;
}

.business-crm-import-duplicates li.is-current {
  box-shadow: inset 3px 0 #b7782d;
  background: rgb(210 175 128 / 22%);
}

.business-crm-import-duplicates li span {
  flex: 0 0 auto;
  color: #8b6c46;
  font-weight: 750;
}

.business-crm-import-review-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.business-crm-import-review-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
}

.business-crm-import-review-field > span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5b5261;
  font-size: 0.58rem;
  font-weight: 790;
}

.business-crm-import-review-field > span small {
  color: #ae415a;
  font-size: 0.49rem;
  font-weight: 840;
}

.business-crm-import-review-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #ddd6e2;
  border-radius: 9px;
  color: #39323f;
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  line-height: 1.35;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.business-crm-import-review-field textarea {
  min-height: 58px;
  resize: vertical;
}

.business-crm-import-review-field :is(input, select, textarea):focus {
  border-color: #8d74c4;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(111 83 176 / 12%);
}

.business-crm-import-review-field.is-attention > span {
  color: #8c3349;
}

.business-crm-import-review-field.is-attention :is(input, select, textarea) {
  border-color: #d9788d;
  background: #fff9fa;
  box-shadow: 0 0 0 2px rgb(201 79 105 / 8%);
}

.business-crm-import-review-field.is-custom {
  padding: 8px;
  border-radius: 10px;
  background: #f8f5fc;
}

.business-crm-import-review-field.is-custom > span small {
  color: #6d56ac;
}

.business-crm-import-preview article dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.business-crm-import-preview article dl > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 11px 14px;
  border-right: 1px solid #f0ecf2;
  border-bottom: 1px solid #f0ecf2;
}

.business-crm-import-preview article dl > div:nth-child(3n) {
  border-right: 0;
}

.business-crm-import-preview article dt {
  color: #837b88;
  font-size: 0.54rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-crm-import-preview article dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #403946;
  font-size: 0.66rem;
  font-weight: 690;
  line-height: 1.4;
}

.business-crm-import-custom-preview {
  border-top: 1px solid #e9e3ed;
  background: #fcfbfe;
}

.business-crm-import-custom-preview > strong {
  display: block;
  padding: 11px 14px 7px;
  color: #69549f;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-crm-import-custom-preview dl {
  border-top: 1px solid #f0ecf2;
}

.business-crm-import-name-conflict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 10px 14px;
  color: #7f3e4e;
  background: #fff2f4;
}

.business-crm-import-name-conflict :is(p, span) {
  margin: 0;
  font-size: 0.62rem;
}

.business-crm-import-name-conflict > span {
  font-weight: 850;
  text-transform: uppercase;
}

.business-crm-import-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 14px;
}

.business-crm-import-tags > span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #5e536a;
  background: #f1eef4;
  font-size: 0.57rem;
  font-weight: 740;
}

.business-crm-import-preview .business-crm-import-reasons {
  margin: 0 14px 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff0f2;
}

@media (max-width: 1280px) {
  .business-crm-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .business-crm-table,
  .business-crm-table tbody {
    display: block;
    min-width: 0;
  }

  .business-crm-table thead {
    display: none;
  }

  .business-crm-table tbody {
    display: grid;
    gap: 12px;
  }

  .business-crm-table-pagination {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    border: 1px solid #e4dee8;
    border-radius: 14px;
  }

  .business-crm-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e4dee8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(47, 37, 66, 0.05);
  }

  .business-crm-table tbody tr:hover,
  .business-crm-table tbody tr:focus-visible {
    box-shadow:
      inset 3px 0 #4bae96,
      0 10px 24px rgba(47, 37, 66, 0.08);
  }

  .business-crm-table td,
  .business-crm-table td:first-child {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: auto;
    max-width: none;
    padding: 11px 13px;
    border-top: 1px solid #f0ecf2;
  }

  .business-crm-table td::before {
    color: #837b88;
    content: attr(data-label);
    font-size: 0.54rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .business-crm-table td:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
    background: #faf8fc;
  }

  .business-crm-table td:first-child::before,
  .business-crm-table .business-crm-open-cell::before {
    display: none;
  }

  .business-crm-table .business-crm-open-cell {
    display: block;
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 28px;
    padding: 0;
    border: 0;
  }

  .business-crm-table tbody tr {
    position: relative;
    padding-bottom: 38px;
  }
}

@media (max-width: 720px) {
  .business-team-drawer-layer[data-team-drawer="crm-client"]
    .business-team-drawer,
  .business-team-drawer-layer[data-team-drawer="crm-import"]
    .business-team-drawer {
    width: 100vw;
  }

  .business-crm-client-form {
    padding-inline: 16px;
  }

  .business-team-drawer-layer[data-team-drawer="crm-client"]
    .business-crm-drawer-history {
    margin-inline: 16px;
  }

  .business-crm-import-progress {
    padding-inline: 16px;
  }

  .business-crm-import-upload {
    margin-inline: 16px;
    padding-inline: 16px;
  }

  .business-crm-identity-conflict {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-identity-conflict > button {
    width: 100%;
  }

  .business-crm-import-preview article dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-crm-import-preview article dl > div:nth-child(3n) {
    border-right: 1px solid #f0ecf2;
  }

  .business-crm-import-preview article dl > div:nth-child(even) {
    border-right: 0;
  }

  .business-crm-import-name-conflict {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-import-review-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .business-crm-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-table td,
  .business-crm-table td:first-child {
    grid-column: 1;
  }

  .business-crm-identity-card dl,
  .business-crm-imported-data dl,
  .business-crm-import-preview article dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-customer-summary > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-crm-customer-summary > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-crm-import-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .business-crm-import-summary-filter {
    width: 100%;
  }

  .business-crm-import-review-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-import-attention li {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-identity-card dl > div,
  .business-crm-imported-data dl > div,
  .business-crm-import-preview article dl > div {
    grid-column: 1;
    border-right: 0 !important;
  }

  .business-crm-import-map-head {
    display: none;
  }

  .business-crm-import-map-grid > label {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-block: 12px;
  }

  .business-crm-import-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-crm-import-pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .business-crm-import-pagination > label {
    justify-content: center;
  }

  .business-crm-import-pagination > button {
    width: 100%;
  }
}

/* Keep the customer spreadsheet surface as a full clickable drop zone. The
   older CRM label rules above intentionally style compact upload buttons and
   otherwise collapse this label back to a single inline row. */
.business-crm-import-shell .business-crm-import-upload {
  justify-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 4px 22px 24px;
  text-align: left;
}

.business-crm-import-upload > .business-crm-import-upload-actions {
  display: flex;
  justify-content: flex-end;
}

.business-crm-import-upload > .business-crm-import-dropzone {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 34px 24px;
}

/* The enhanced import select defaults to width: 100%. Once it moved from the
   service board into the page header that default made it consume the whole
   action row and pushed both add buttons down. Keep it at button width. */
.business-services-page-header
  .business-header-actions
  > .prelook-select-shell:has(.business-service-import-select) {
  width: 124px;
  min-height: 44px;
  flex: 0 0 124px;
}

.business-services-page-header
  .business-header-actions
  > .prelook-select-shell:has(.business-service-import-select)
  .prelook-select-trigger {
  min-height: 44px;
  padding-inline: 14px 10px;
}

@media (max-width: 720px) {
  .business-crm-import-shell .business-crm-import-upload {
    margin-inline: 0;
    padding-inline: 16px;
  }

  .business-crm-import-upload > .business-crm-import-dropzone {
    min-height: 220px;
    padding-inline: 18px;
  }

  .business-services-page-header
    .business-header-actions
    > .prelook-select-shell:has(.business-service-import-select) {
    width: 100%;
    flex-basis: auto;
  }
}

/* Customers and Services title controls -----------------------------------
   Keep page-level view switches beside their titles and page actions in the
   shared top-right header position used by Team and Schedule. */
.business-crm-page-header,
.business-services-page-header {
  align-items: center;
}

.business-crm-page-top {
  position: sticky;
  z-index: 24;
  top: 0;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 5px 0 12px;
  border: 0;
  background: var(--pro-bg, #f6fcf9);
  box-shadow: none;
  backdrop-filter: none;
}

.business-crm-page-top.is-selection-mode
  .business-crm-page-header
  .business-header-actions {
  display: none;
}

.business-crm-title-row,
.business-services-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.business-crm-title-row h2,
.business-services-title-row h2 {
  margin: 0;
}

.business-title-view-switch {
  --title-view-tab-width: 88px;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, var(--title-view-tab-width));
  width: max-content;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #e2dce6;
  border-radius: 999px;
  background: #f4f1f6;
  isolation: isolate;
}

.business-title-view-switch::before {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: var(--title-view-tab-width);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: #6550b6;
  box-shadow: 0 4px 12px rgba(75, 55, 137, 0.2);
  content: "";
  transform: translateX(0);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.business-title-view-switch:is(
    [data-active="categories"],
    [data-active="detailed"]
  )::before {
  transform: translateX(var(--title-view-tab-width));
}

.business-title-view-switch > button {
  position: relative;
  z-index: 1;
  min-width: var(--title-view-tab-width);
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #6d6572;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease;
}

.business-title-view-switch > button.active,
.business-title-view-switch > button[aria-selected="true"] {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.business-title-view-switch > button:focus-visible {
  outline: 3px solid rgba(88, 185, 159, 0.42);
  outline-offset: 2px;
}

.business-crm-toolbar {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.15fr) minmax(220px, 0.72fr)
    minmax(360px, 1.8fr);
  min-width: 0;
  align-items: end;
  gap: 10px;
}

.business-crm-toolbar.is-categories {
  grid-template-columns: minmax(220px, 320px);
}

.business-crm-toolbar-field,
.business-crm-filter-control {
  display: grid;
  grid-template-rows: 10px 44px;
  min-width: 0;
  align-items: end;
  gap: 4px;
}

.business-crm-toolbar-field > span:first-child,
.business-crm-filter-control > span:first-child {
  color: #746c79;
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-crm-toolbar .business-crm-search {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-width: 0;
  min-height: 44px;
  border-color: #dcd6e1;
  border-radius: 11px;
  background: #fff;
}

.business-crm-toolbar .business-crm-search:focus-within {
  border-color: #b8acd8;
  box-shadow: 0 0 0 1px rgba(103, 80, 184, 0.1);
}

.dashboard-shell
  .business-crm-toolbar
  .business-crm-search
  > input:focus-visible {
  outline: 0;
  outline-offset: 0;
}

.business-crm-toolbar .prelook-select-trigger {
  min-height: 44px;
  border-radius: 11px;
}

.business-crm-stylist-filter {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-crm-stylist-filter > span {
  color: #746c79;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.business-crm-stylist-filter > select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #dcd6e1;
  border-radius: 11px;
  color: #3e3744;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
}

.business-crm-stylist-filter > select:focus-visible {
  outline: 3px solid rgba(88, 185, 159, 0.34);
  outline-offset: 2px;
}

.business-crm-customer-filters {
  height: 44px;
  min-width: 0;
  padding-bottom: 0;
}

.business-crm-filter-control {
  grid-column: auto;
}

.business-crm-customer-filters > button {
  min-height: 44px;
  padding-inline: 13px;
  font-size: 0.68rem;
  font-weight: 800;
}

.business-crm-customer-filters > button span {
  display: inline;
  min-width: 0;
  height: auto;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #857b8b;
  background: transparent;
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.business-crm-customer-filters > button:last-child.active {
  border-color: #b94b62;
  color: #8d3045;
  background: #fbecef;
}

.business-crm-bulk-actions {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  align-items: end;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid #dcd4e7;
  border-radius: 14px;
  background: linear-gradient(120deg, #f5f1ff, #f3faf8);
  box-shadow: 0 7px 18px rgba(60, 44, 85, 0.05);
}

.business-crm-bulk-actions > header {
  display: grid;
  align-self: stretch;
  align-content: center;
  justify-items: start;
  gap: 4px;
}

.business-crm-bulk-actions > header strong {
  color: #3b3245;
  font-size: 0.75rem;
}

.business-crm-bulk-actions > header button {
  min-height: 30px;
  padding-block: 4px;
}

.business-crm-bulk-selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.business-crm-bulk-action-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.business-crm-bulk-action-group {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.business-crm-bulk-action-group label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-crm-bulk-action-group label > span {
  color: #6f6676;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.business-crm-bulk-action-group select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #d8d0e0;
  border-radius: 10px;
  color: #3e3744;
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 720;
}

.business-crm-bulk-action-group button {
  min-height: 40px;
  white-space: nowrap;
}

.business-crm-bulk-action-group :focus-visible {
  outline: 3px solid rgba(88, 185, 159, 0.34);
  outline-offset: 2px;
}

.business-crm-bulk-actions > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6f6676;
  font-size: 0.62rem;
  line-height: 1.4;
}

.business-crm-category-member-count {
  color: #716879;
  font-size: 0.68rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .business-crm-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-crm-filter-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .business-crm-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-filter-control {
    grid-column: auto;
  }

  .business-crm-toolbar .business-crm-search,
  .business-crm-stylist-filter,
  .business-crm-customer-filters {
    width: 100%;
    flex-basis: 100%;
  }

  .business-crm-customer-filters {
    padding-bottom: 4px;
  }

  .business-crm-bulk-action-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-bulk-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-bulk-actions > header,
  .business-crm-bulk-actions > p {
    grid-column: auto;
  }

  .business-crm-bulk-actions > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .business-crm-bulk-action-group {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  .business-crm-bulk-action-group {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .business-crm-bulk-action-group button {
    width: auto;
  }
}

.business-crm-stage.is-leaving {
  animation: business-crm-view-leave 140ms ease both;
  pointer-events: none;
}

@keyframes business-crm-view-leave {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

.business-services-page-header .business-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.business-services-page-header .business-header-actions > * {
  min-height: 44px;
  white-space: nowrap;
}

.business-services-page-header
  .business-header-actions
  > .solid-button.pro[data-business-action="start-inline-service"] {
  border-color: #6750b8;
  color: #fff;
  background: #6750b8;
  box-shadow: none;
}

.business-service-board-header {
  display: flex;
  overflow: visible;
  align-items: center;
  justify-content: flex-start;
}

.business-service-board-header > .business-service-board-tools {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.business-service-board-tools .business-service-archive-toggle {
  margin-left: 0;
}

/* Dense, non-overlapping customer activity metrics. */
.business-crm-table td[data-label="Activity"] {
  min-width: 154px;
}

.business-crm-activity-stack {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.business-crm-activity-stack > span {
  display: grid;
  grid-template-columns: minmax(18px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  white-space: normal;
}

.business-crm-activity-stack strong {
  color: #352f3a;
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.25;
}

.business-crm-activity-stack small {
  color: #736b78;
  font-size: 0.62rem;
  font-weight: 660;
  line-height: 1.3;
}

/* Clickable CSV/XLSX customer import surface, aligned with Services import. */
.business-crm-import-upload {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 4px 22px 24px;
  border: 0;
  background: transparent;
  text-align: left;
}

.business-crm-import-upload-actions {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.business-service-spreadsheet-import-shell {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  min-width: 0;
  align-content: start;
  gap: 18px;
}

.business-service-spreadsheet-import-shell
  > :is(.business-service-import-upload, .business-service-import-preview) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 0;
}

.business-service-import-upload-actions {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.business-crm-import-dropzone {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 34px 24px;
  border: 1px dashed #cfc4da;
  border-radius: 18px;
  color: #4d4552;
  background: #fbfafc;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.business-crm-import-dropzone:hover,
.business-crm-import-dropzone.is-drag-over {
  border-color: #7259bd;
  background: #f6f2fc;
  box-shadow: 0 12px 28px rgba(77, 57, 130, 0.1);
  transform: translateY(-1px);
}

.business-crm-import-dropzone:focus-visible {
  outline: 3px solid rgba(88, 185, 159, 0.42);
  outline-offset: 3px;
}

.business-crm-import-file-type {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #d8cced;
  border-radius: 10px;
  color: #624ba4;
  background: #f0ebf8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.business-crm-import-dropzone > strong {
  color: #342e39;
  font-size: 0.95rem;
}

.business-crm-import-dropzone > p {
  color: #756d7a;
  font-size: 0.69rem;
}

.business-crm-import-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.business-crm-import-processing {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 260px;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px;
  border: 1px solid #ded5ea;
  border-radius: 18px;
  color: #4b4059;
  background: linear-gradient(145deg, #fbf9ff, #f5f0fc);
}

.business-crm-import-processing-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #e3daf1;
  border-top-color: #7259bd;
  border-radius: 50%;
  animation: business-service-import-spin 680ms linear infinite;
}

.business-crm-import-processing > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.business-crm-import-processing strong {
  color: #342b43;
  font-size: 0.93rem;
}

.business-crm-import-processing p {
  max-width: 520px;
  overflow-wrap: anywhere;
}

.business-crm-import-security {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.business-team-drawer-layer[data-team-drawer="crm-import"]
  .business-team-drawer-body,
.business-team-drawer-layer[data-team-drawer="service-import"]
  .business-team-drawer-body {
  min-width: 0;
  overflow-x: hidden;
}

.business-service-spreadsheet-import-shell .business-service-import-dropzone {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.business-crm-import-upload > .business-team-drawer-form-error:empty {
  display: none;
}

/* The base stylesheet gives every booking header flex/space-between. This
   stronger rule keeps the avatar and name in adjacent grid tracks. */
.business-booking-row.business-booking-card > .business-booking-card-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  column-gap: 8px;
}

/* Customer import maps each source column to an explicit destination. */
.business-crm-import-map-intro > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.business-crm-import-map-intro > div > span,
.business-crm-import-map-intro > small {
  color: #6d56ac;
  font-size: 0.6rem;
  font-weight: 780;
}

.business-crm-import-map-head,
.business-crm-import-map-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.8fr)
    minmax(130px, 0.7fr)
    minmax(260px, 1.3fr);
  align-items: start;
  gap: 14px;
  padding: 11px 14px;
}

.business-crm-import-map-row {
  border-top: 1px solid #efebf1;
}

.business-crm-import-source {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-crm-import-source strong {
  overflow: hidden;
  color: #403847;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-crm-import-source small {
  color: #766d7b;
  font-size: 0.57rem;
  font-weight: 680;
}

.business-crm-import-map-row[data-import-mode^="prelook:"]
  .business-crm-import-source
  small {
  color: #3e7f6f;
}

.business-crm-import-map-row[data-import-mode="skip"]
  .business-crm-import-source
  small {
  color: #a45e68;
}

.business-crm-import-sample {
  display: -webkit-box;
  overflow: hidden;
  color: #716976;
  font-size: 0.64rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.business-crm-import-destination {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.business-crm-import-destination label,
.business-crm-custom-field-name {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.business-crm-import-destination select,
.business-crm-custom-field-name input {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #dbd4e2;
  border-radius: 10px;
  color: #39323f;
  background: #fff;
  font: inherit;
}

.business-crm-custom-field-name span {
  color: #756d7a;
  font-size: 0.55rem;
  font-weight: 760;
}

.business-crm-import-map-row:not([data-import-mode="custom"])
  .business-crm-custom-field-name {
  display: none;
}

.business-crm-import-map-form > [role="alert"]:focus {
  outline: 3px solid rgba(164, 68, 88, 0.18);
  outline-offset: 3px;
}

.business-crm-import-map-form > [role="alert"] {
  position: static;
  margin: 0;
  box-shadow: none;
}

.business-team-drawer-layer[data-team-drawer="crm-import"]
  .business-team-drawer-footer {
  z-index: 4;
}

@media (max-width: 820px) {
  .business-crm-title-row .business-crm-view-switch,
  .business-services-title-row .business-service-view-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, var(--title-view-tab-width));
    width: max-content;
  }

  .business-crm-toolbar {
    align-items: flex-start;
  }

  .business-services-page-header .business-header-actions {
    justify-content: flex-start;
  }

  .business-crm-import-map-head {
    display: none;
  }

  .business-crm-import-map-row {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 1.2fr);
  }

  .business-crm-import-sample {
    grid-column: 1;
  }

  .business-crm-import-destination {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  .business-crm-title-row,
  .business-services-title-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .business-title-view-switch {
    --title-view-tab-width: 82px;
  }

  .business-services-page-header .business-header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .business-crm-import-upload {
    padding-inline: 16px;
  }

  .business-crm-import-upload-actions,
  .business-service-import-upload-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-import-upload-actions > button,
  .business-service-import-upload-actions > button {
    width: 100%;
  }

  .business-crm-import-dropzone {
    min-height: 220px;
    padding-inline: 18px;
  }

  .business-crm-import-processing {
    min-height: 220px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 26px 18px;
    text-align: center;
  }

  .business-service-spreadsheet-import-shell > .business-crm-import-progress {
    padding-inline: 16px;
  }

  .business-crm-import-map-intro > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .business-crm-import-map-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-crm-import-source,
  .business-crm-import-sample,
  .business-crm-import-destination {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-title-view-switch::before,
  .business-crm-import-dropzone,
  .business-crm-import-processing-spinner {
    animation: none;
    transition: none;
  }

  .business-crm-stage.is-leaving {
    animation: none;
  }
}

/* Service editor: use the exact same right-drawer motion contract as booking
   details and keep the editor mounted while its exit animation completes. */
.business-service-drawer-layer {
  z-index: 1210;
}

.business-service-drawer-layer.is-preparing .business-service-drawer-backdrop {
  opacity: 0;
}

.business-service-drawer-layer.is-preparing .business-service-inspector {
  opacity: 0.92;
  transform: translate3d(100%, 0, 0);
}

.business-service-drawer-backdrop,
.business-service-inspector {
  animation: none;
}

.business-team-drawer.business-service-inspector {
  width: min(560px, calc(100vw - 48px));
}

.business-service-inspector-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.business-service-inspector-title-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-inspector-title-row .business-service-autosave-status {
  margin-left: auto;
  white-space: nowrap;
}

.business-service-active-tag {
  display: inline-flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #286b59;
  background: #dff4ec;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
}

/* Compact stylist assignment. Identity stays on the left; any required price
   is a clean, self-contained control on the right. */
.business-service-inspector .business-service-professional-card.is-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-color: #ddd6e2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(52, 42, 62, 0.035);
}

.business-service-inspector
  .business-service-professional-card.is-compact.has-price {
  grid-template-columns: minmax(0, 1fr) minmax(168px, 210px);
}

.business-service-inspector
  .business-service-professional-card.is-compact.is-selected {
  border-color: #7257b7;
  box-shadow: 0 4px 12px rgba(69, 53, 91, 0.08);
}

.business-service-inspector
  .business-service-professional-card.is-compact
  > .business-service-professional-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: #fff;
}

.business-service-inspector
  .business-service-professional-card.is-compact.is-selected
  > .business-service-professional-choice {
  background: #f8f5fd;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-professional-avatar {
  width: 42px;
  height: 42px;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-professional-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-professional-copy
  strong {
  overflow: hidden;
  color: #342e39;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-professional-copy
  small {
  color: #776f7b;
  font-size: 0.62rem;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  > .business-service-professional-pricing {
  display: none;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  > .business-service-professional-pricing.is-visible {
  display: grid;
  width: auto;
  max-height: none;
  margin: 0;
  padding: 10px 12px;
  overflow: visible;
  border: 0;
  border-left: 1px solid #d8cfee;
  background: #fcfbfe;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-stylist-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-stylist-fields
  > label:only-child {
  grid-column: 1 / -1;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-stylist-fields
  > label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-service-inspector
  .business-service-professional-card.is-compact
  .business-service-stylist-fields
  > label
  > span {
  color: #6d6572;
  font-size: 0.57rem;
  font-weight: 760;
}

.business-service-inline-money,
.business-service-money-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #d9d2dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.business-service-inline-money {
  min-height: 42px;
  border-color: #d6cce4;
  border-radius: 11px;
}

.business-service-inline-money:focus-within,
.business-service-money-field:focus-within {
  border-color: #7760bf;
  box-shadow: 0 0 0 3px rgba(111, 84, 199, 0.11);
}

.business-service-inline-money > span,
.business-service-money-field > span {
  padding-inline: 10px 2px;
  border: 0;
  color: #726a78;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 760;
}

.business-service-inline-money > span {
  display: grid;
  align-self: stretch;
  place-items: center;
  padding: 0 0 0 10px;
  color: #685595;
}

.business-service-inline-money > span:last-child,
.business-service-money-field > span:last-child {
  padding-inline: 2px 10px;
}

.business-service-inline-money > input,
.business-service-money-field > input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 0 !important;
  border-left: 0 !important;
  outline: 0;
  color: #342f39;
  background: transparent;
  box-shadow: none !important;
}

.business-service-inline-money > input {
  min-height: 40px;
  padding-inline: 7px 10px;
  font-size: 0.76rem;
  font-weight: 720;
  appearance: textfield;
}

.business-service-inline-money > input::-webkit-inner-spin-button,
.business-service-inline-money > input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

/* Inline information appears only on hover or keyboard focus. */
.business-service-inspector .business-switch.business-booking-option {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.business-service-inspector .business-switch.business-booking-option > b {
  grid-column: 2;
}

.business-service-info-tip {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  grid-column: 3;
  align-self: center;
  border: 1px solid #cfc6d7;
  border-radius: 50%;
  color: #655b6d;
  background: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  cursor: help;
}

.business-service-info-tip > [role="tooltip"] {
  position: absolute;
  right: -8px;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: min(230px, calc(100vw - 64px));
  padding: 9px 10px;
  border: 1px solid #ded6e7;
  border-radius: 10px;
  color: #fff;
  background: #342d3d;
  box-shadow: 0 10px 28px rgba(33, 25, 42, 0.2);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 160ms ease;
}

.business-service-info-tip:is(:hover, :focus) > [role="tooltip"] {
  opacity: 1;
  transform: translateY(0);
}

/* The advanced area is one simple disclosure: deposit, buffers, and a single
   optional gap window inside the service duration. */
.business-service-inspector .business-service-advanced {
  overflow: visible;
  border: 1px solid #e1dae6;
  border-radius: 14px;
  background: #fff;
}

.business-service-inspector .business-service-advanced > summary {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #fbfafc;
}

.business-service-inspector .business-service-advanced[open] > summary {
  border-bottom: 1px solid #e9e3eb;
  border-radius: 13px 13px 0 0;
  background: #f8f5fc;
}

.business-service-inspector .business-service-advanced > summary strong {
  color: #342d3b;
  font-size: 0.8rem;
}

.business-service-inspector .business-service-advanced > summary small {
  margin-top: 3px;
  color: #756d7a;
  font-size: 0.61rem;
}

.business-service-inspector .business-service-advanced > .business-form-grid {
  gap: 12px;
  padding: 13px;
}

.business-service-inspector .business-service-timing-editor.is-simple-gap {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e4dfe7;
  border-radius: 13px;
  background: #fbfafc;
}

.business-service-simple-timing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.business-service-simple-timing-header strong {
  color: #3b3440;
  font-size: 0.76rem;
}

.business-service-timing-note {
  margin: 0;
  color: #756d7a;
  font-size: 0.66rem;
  line-height: 1.45;
}

.business-service-buffer-fields,
.business-service-gap-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.business-service-inspector .business-service-gap-toggle {
  min-height: 54px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid #e2dce6;
  border-radius: 11px;
  background: #fff;
}

.business-service-inspector
  .business-service-gap-content.business-service-conditional-inner {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.business-service-gap-range {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 2px 4px 4px;
}

.business-service-gap-range-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #554c5c;
  font-size: 0.66rem;
  font-weight: 760;
}

.business-service-gap-range-caption output {
  color: #776e7d;
  font-size: 0.61rem;
  font-weight: 630;
  text-align: right;
}

.business-service-gap-range-control {
  position: relative;
  height: 30px;
  margin-inline: 10px;
}

.business-service-gap-range-visual {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e0e9;
  pointer-events: none;
}

.business-service-gap-range-visual > i {
  position: absolute;
  inset-block: 0;
  left: var(--gap-start, 25%);
  width: max(0px, calc(var(--gap-end, 75%) - var(--gap-start, 25%)));
  border-radius: inherit;
  background: #7257b7;
}

.business-service-gap-range input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  pointer-events: none;
}

.business-service-gap-range input[data-service-gap-range-end] {
  z-index: 3;
}

.business-service-gap-range
  input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.business-service-gap-range input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  appearance: none;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #7257b7;
  box-shadow:
    0 0 0 1px rgba(83, 60, 145, 0.24),
    0 2px 7px rgba(54, 39, 78, 0.22);
  pointer-events: auto;
  cursor: grab;
}

.business-service-gap-range input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.business-service-gap-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #7257b7;
  box-shadow:
    0 0 0 1px rgba(83, 60, 145, 0.24),
    0 2px 7px rgba(54, 39, 78, 0.22);
  pointer-events: auto;
  cursor: grab;
}

.business-service-gap-range
  input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 2px;
}

.business-service-gap-range
  input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 2px;
}

.business-service-gap-range input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.business-service-gap-range input[type="range"]:active::-moz-range-thumb {
  cursor: grabbing;
}

.business-service-gap-range.is-disabled {
  opacity: 0.54;
}

.business-service-gap-fields .business-field > .business-service-field-error {
  color: #a23849;
  font-size: 0.62rem;
  font-weight: 760;
}

.business-service-gap-fields input[aria-invalid="true"] {
  border-color: #c95e6d;
  box-shadow: 0 0 0 3px rgba(183, 64, 82, 0.1);
}

@media (forced-colors: active) {
  .business-service-gap-range-visual > i {
    background: Highlight;
  }

  .business-service-gap-range input[type="range"]::-webkit-slider-thumb,
  .business-service-gap-range input[type="range"]::-moz-range-thumb {
    border-color: Canvas;
    background: Highlight;
    forced-color-adjust: none;
  }
}

@media (max-width: 620px) {
  .business-service-inspector
    .business-service-professional-card.is-compact.has-price {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-service-inspector
    .business-service-professional-card.is-compact
    > .business-service-professional-pricing.is-visible {
    width: auto;
    max-height: none;
    border-top: 1px solid #e8e2eb;
    border-left-width: 0;
  }

  .business-service-buffer-fields,
  .business-service-gap-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-service-inspector
    .business-service-professional-card.is-compact
    > .business-service-professional-pricing,
  .business-service-info-tip > [role="tooltip"] {
    animation: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .business-bookings-title-row,
  .business-booking-title-controls {
    align-items: flex-start;
  }

  .business-bookings-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .business-booking-settings-button {
    min-height: 40px;
  }

  .business-booking-deposit-modes,
  .business-booking-outside-deposit {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-booking-deposit-due-by > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-refund-slider-copy {
    display: grid;
    gap: 7px;
  }

  .business-refund-slider-copy output {
    justify-self: start;
  }

  .business-booking-policy-image-drop {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .business-booking-policy-image-drop > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .business-booking-policy-image-preview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .business-booking-policy-image-preview img {
    width: 64px;
    height: 56px;
  }

  .business-booking-policy-image-preview button {
    grid-column: 1 / -1;
  }
}

/* Control focus is violet across the professional workspace. Mint remains a
   status color, but it is never used as an input, button, or range outline. */
.business-operations-shell
  :where(button, a, input, select, textarea):focus-visible,
.business-services-workbench
  :where(button, a, input, select, textarea):focus-visible,
.dashboard-context-switcher :focus-visible,
.business-weekly-hours-mode button:focus-visible,
.business-service-archive-toggle:focus-visible,
.business-history-date-control input:focus-visible,
.business-history-board:focus-visible,
.business-service-products :is(summary, input):focus-visible,
.business-permission-overrides :is(summary, select):focus-visible,
.business-hours-create-zone:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 2px;
}

.business-service-category-picker input:focus-visible + span,
.business-service-professional-choice:has(input:focus-visible),
.business-service-team-picker
  .business-service-professional-choice:has(input:focus-visible),
.business-option-picker input:focus-visible + span,
.business-policy-term-group input:focus-visible + span,
.business-switch input:focus-visible + span,
.business-choice-field label:has(input:focus-visible),
.business-category-preset:has(input:focus-visible),
.business-role-color-presets label:has(input:focus-visible),
.business-member-roles-editor > ul > li > label:has(input:focus-visible),
.business-stylist-custom-price:has(input:focus-visible) > span,
.business-booking-policy-toggle
  > input:focus-visible
  + .business-booking-policy-switch,
.business-role-members-editor input:focus-visible,
.business-access-checkbox:has(input:focus-visible),
.business-role-form-levels label:has(input:focus-visible),
.business-role-form-scope select:focus-visible,
.business-client-access-audiences label:has(input:focus-visible) span,
.business-client-access-groups label:has(input:focus-visible),
.business-holiday-closed-toggle input:focus-visible + span,
.business-closed-toggle input:focus-visible,
.business-service-import-professionals
  .business-service-professional-choice:has(input:focus-visible),
.business-crm-stylist-filter > select:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.42) !important;
  outline-offset: 2px;
}

.business-hours-track input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 3px;
}

.business-hours-track input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 3px;
}

/* Inputs use one violet focus treatment across customer and professional
   surfaces. Green is reserved for status and success messaging. */
:where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea
  ):is(:focus, :focus-visible) {
  border-color: #6750b8 !important;
  outline-color: #6750b8 !important;
  box-shadow: 0 0 0 3px rgba(103, 80, 184, 0.14) !important;
  caret-color: #6750b8;
}

.business-service-inline-money input:is(:focus, :focus-visible) {
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
}
