.squash-duration-limit{display:block;margin-top:6px;color:#64748b;font-size:12px;font-weight:400;line-height:1.5}
:root,
button,
input,
select,
textarea,
option,
code {
  font-family:
    -apple-system-body,
    ui-sans-serif,
    -apple-system,
    "system-ui",
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}

body[data-support-audience="staff"]:not(.reception-locked) {
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

body[data-support-audience="staff"]:not(.reception-locked) .app-shell {
  height: auto;
  min-height: 100dvh;
  align-items: start;
  background: #fff;
}

body[data-support-audience="staff"]:not(.reception-locked) .sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
}

body[data-support-audience="staff"]:not(.reception-locked) .workspace {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  background: #fff;
}

body[data-support-audience="staff"]:not(.reception-locked) #app {
  overflow: visible;
  background: #fff;
}

body[data-support-audience="staff"]:not(.reception-locked) #app > :is(.page, .booking-page, .search-page, .profile-page) {
  height: auto;
  overflow: visible;
  /* The support control is fixed at the lower-right edge. Keep the end of every
     staff workflow above it so the permanent control cannot cover a real action. */
  padding-bottom: max(96px, calc(80px + env(safe-area-inset-bottom)));
}

@media (max-width: 900px) {
  body[data-support-audience="staff"]:not(.reception-locked) .app-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-support-audience="staff"]:not(.reception-locked) .sidebar {
    position: static;
    height: auto;
  }

  body[data-support-audience="staff"]:not(.reception-locked) .workspace {
    height: auto;
    min-height: calc(100dvh - 72px);
  }
}

@media (max-width: 600px) {
  body[data-support-audience="staff"]:not(.reception-locked) .workspace {
    height: auto;
    min-height: calc(100dvh - 72px);
  }
}

.paid-participant-correction {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 16px;
  border: 1px solid #a9c7fb;
  border-radius: 14px;
  background: #f5f8ff;
  outline: none;
}

.paid-participant-correction > header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.paid-participant-correction > header > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.paid-participant-correction :is(strong, p, ul) {
  margin: 0;
}

.paid-participant-correction strong {
  font-weight: 700;
}

.paid-participant-correction small,
.paid-participant-correction > p {
  color: var(--muted);
  line-height: 1.45;
}

.paid-participant-correction-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: #e3edff;
  color: var(--blue);
}

.paid-participant-correction-icon .icon {
  width: 20px;
  height: 20px;
}

.paid-participant-correction ul {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.paid-participant-correction li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #d6e3fa;
  border-radius: 10px;
  background: #fff;
}

.paid-participant-correction-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 600px) {
  .paid-participant-correction-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .paid-participant-correction-actions > button {
    width: 100%;
  }
}

body.resource-transaction-active {
  cursor: default;
}
body.reception-authenticated-first-paint .app-shell {
  visibility: visible;
}
body.reception-authenticated-first-paint:not(:has(.app-shell))::before {
  content: attr(data-reception-first-paint-title);
  position: fixed;
  z-index: 2;
  top: 24px;
  left: calc(var(--sidebar) + 24px);
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
}
body.reception-authenticated-first-paint:not(:has(.app-shell))::after {
  content: "MAGIC FIT";
  position: fixed;
  z-index: 2;
  top: 24px;
  left: 29px;
  display: grid;
  width: 188px;
  height: 72px;
  place-items: center;
  background: #ce090a;
  color: #fff;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
}
@media (max-width: 900px) {
  body.reception-authenticated-first-paint:not(:has(.app-shell))::before {
    top: 88px;
    left: 12px;
    font-size: 28px;
  }
  body.reception-authenticated-first-paint:not(:has(.app-shell))::after {
    top: 8px;
    left: 62px;
    width: 106px;
    height: 54px;
    font-size: 18px;
  }
}
body.resource-transaction-active [data-action] {
  pointer-events: none;
}

.profile-note-card {
  grid-template-columns: minmax(150px, 0.55fr) minmax(240px, 1.5fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.profile-note-card h2 {
  font-size: 17px;
}
.profile-note-card p {
  margin-top: 2px;
}
.profile-note-card > .secondary {
  min-height: 44px;
}
.calendar-return {
  justify-self: start;
}
.employee-password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 7px;
}
.employee-password-control input {
  min-width: 0;
}
.employee-password-control .compact {
  white-space: nowrap;
}
.employee-password-note {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.customer-access-input:focus-visible:not([aria-invalid="true"]) {
  outline: 0;
}
body[data-support-audience="customer"]
  .floating-field-control:focus-within {
  outline: 0;
  box-shadow: none;
}
body[data-support-audience="customer"]
  .floating-field-control:focus-within:not(:has([aria-invalid="true"])) {
  border-color: #b9b9b9;
  background: #fff;
  box-shadow: none;
  outline: 0;
}
body[data-support-audience="customer"]
  .customer-account-field:has(.customer-access-input[aria-invalid="true"])
  .floating-field-control,
body[data-support-audience="customer"]
  .customer-access-input[aria-invalid="true"]:focus {
  box-shadow: none;
}
body[data-support-audience="customer"]
  .floating-field-control:focus-within:not(:has([aria-invalid="true"]))
  > .floating-field-label {
  color: var(--muted);
  font-weight: 400;
}
body .customer-access-panel .floating-field-control:has(
    :is(input, textarea):placeholder-shown:not(:focus):not(
        [aria-invalid="true"]
      )
  ) {
  grid-template-rows: 13px 27px;
  gap: 2px;
}
body .customer-access-panel .floating-field-control:has(
    :is(input, textarea):placeholder-shown:not(:focus):not(
        [aria-invalid="true"]
      )
  )
  > .floating-field-label {
  display: block;
}
.screen :is(h1, h2, h3)[tabindex="-1"]:focus {
  outline: 0;
}
.service-select:focus-visible {
  background: #fff;
  outline: 0;
}
.party-size-select:focus-visible {
  background: #fff;
  outline: 0;
}
body
  :is(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ):focus-visible {
  outline: 0;
}
body select:focus-visible {
  background-color: #fff;
}
body[data-support-audience="staff"]
  :is(
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
  ):focus-visible {
  outline: 0;
}
.customer-access-input:-webkit-autofill,
.customer-access-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}
.party-price-basis,
.customer-birth-date-preview {
  display: none !important;
}
@media (min-width: 601px) {
  .booking-calendar-grid {
    grid-template-columns: 72px repeat(var(--calendar-days), minmax(220px, 1fr));
    grid-template-rows: 58px repeat(var(--calendar-rows), 56px);
  }
  .calendar-booking.is-grid-event .calendar-player-list > :not(:first-child) {
    display: flex;
  }
  .calendar-booking.is-grid-event .calendar-player-list > :is(button, span) {
    padding: 0;
    border: 0;
  }
  .calendar-booking.is-grid-event .calendar-player-list strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .calendar-booking.is-grid-event .calendar-player-list small {
    display: none;
  }
  .calendar-booking.is-grid-event > header {
    flex-wrap: wrap;
    gap: 1px 6px;
  }
  .calendar-booking.is-grid-event > header strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .calendar-booking.is-grid-event {
    padding-block: 2px;
  }
  .calendar-booking.is-grid-event .calendar-booking-sources {
    display: flex;
  }
  .booking-calendar[data-calendar-mode="week"]
    .calendar-booking.is-grid-event.is-dense-week-event {
    gap: 2px;
    padding: 4px 6px;
  }
  .booking-calendar[data-calendar-mode="week"]
    .calendar-booking.is-dense-week-event
    > header {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .booking-calendar[data-calendar-mode="week"]
    .calendar-booking.is-dense-week-event
    > header
    :is(time, strong) {
    flex: 0 0 auto;
    overflow: visible;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: clip;
    white-space: nowrap;
  }
  .booking-calendar[data-calendar-mode="week"]
    .calendar-booking.is-dense-week-event
    .calendar-player-list {
    min-width: 0;
  }
  .booking-calendar[data-calendar-mode="week"]
    .calendar-booking.is-dense-week-event
    .calendar-player-list
    strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .booking-calendar[data-calendar-mode="week"]
    .calendar-booking.is-dense-week-event
    > :is(.calendar-booking-resource, small) {
    display: none;
  }
  .booking-calendar[data-calendar-mode="day"] .calendar-booking.is-grid-event .calendar-player-list {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 0 5px;
    font-size: 12px;
    line-height: 1.15;
  }
  .booking-calendar[data-calendar-mode="day"] .calendar-booking.is-grid-event .calendar-player-list > :is(button, span) {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
  }
  .booking-calendar[data-calendar-mode="day"] .calendar-booking.is-grid-event .calendar-player-list > :not(:last-child)::after {
    margin-left: 5px;
    content: "·";
  }
  .booking-calendar[data-calendar-mode="day"] .calendar-booking.is-grid-event .calendar-booking-sources {
    display: none;
  }
}
@media (max-width: 900px) {
  .page,
  .search-page {
    min-height: 0;
  }

  body[data-support-audience]:has(#toast.is-visible) .toast {
    bottom: max(70px, calc(60px + env(safe-area-inset-bottom)));
  }

  .profile-note-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 10px;
  }
  .profile-note-card textarea {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .profile-note-card > .secondary {
    grid-column: 2;
    grid-row: 1;
  }
  .profile-note-card p {
    font-size: 12px;
  }
}

@media (min-width: 901px) {
  body:has(.profile-page) .workspace {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  body:has(.profile-page) #app {
    min-height: 0;
    flex: 1 0 auto;
    overflow: visible;
  }

  body:has(.profile-page) .profile-page {
    height: auto;
    min-height: calc(100vh - 164px);
    overflow: visible;
  }
}

@media (min-width: 901px) {
  .app-shell {
    height: 100dvh;
    overflow: hidden;
  }

  body[data-support-audience="staff"]:not(.reception-locked) .app-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar {
    min-height: 0;
    overflow-y: clip;
  }

  .sidebar > .nav-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}
@media (max-width: 520px) {
  .employee-password-control {
    grid-template-columns: 1fr;
  }
  .employee-password-control .compact {
    width: 100%;
  }
}
.reception-account-list label:has(input:checked) {
  border-color: var(--line);
  background: var(--blue-pale);
  box-shadow: none;
}
.reception-account-list label.is-unconfigured {
  background: #f7f7f8;
  color: #757b85;
  cursor: default;
}
.reception-account-list label.is-unconfigured img {
  filter: grayscale(0.35);
  opacity: 0.72;
}
.cookie-banner {
  position: static;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #e0e3e7;
  border-radius: 12px;
  background: #fff;
  color: #101010;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
}

body[data-support-audience="customer"] .app {
  display: flex;
  flex-direction: column;
}

body[data-support-audience="customer"] .app-content {
  flex: 1;
  align-content: start;
}

.customer-legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 116px;
  padding: 12px 0;
}

.customer-legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #5f6570;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
}
.cookie-banner p {
  margin: 0;
  color: #5f6570;
  font-size: 14px;
  line-height: 1.4;
}
.cookie-banner a {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #151515;
  font-size: 14px;
  font-weight: 700;
}
.cookie-legal-links {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-banner button {
  min-width: 104px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #17191e;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 600px) {
  .cookie-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
  }
  .cookie-banner div {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px;
  }
  .cookie-banner strong {
    font-size: 13px;
  }
  .cookie-banner p,
  .cookie-banner a {
    font-size: 12px;
  }
  .cookie-banner a {
    min-height: 28px;
  }
  .cookie-legal-links {
    gap: 12px;
  }
  .cookie-banner button {
    width: auto;
    min-width: 94px;
    min-height: 44px;
    padding: 0 10px;
  }
}
.reception-auth-card[data-step="login"] {
  width: min(850px, calc(100vw - 32px));
}
.reception-auth-card[data-step="login"] .reception-account-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 600px) {
  body[data-support-audience="staff"] .customer-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reception-auth-card[data-step="login"] .reception-account-list label {
  min-height: 76px;
  padding: 10px;
}
.customer-avatar-fallback {
  --avatar-accent: #1769ff;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--avatar-accent);
  color: #fff;
  font-weight: 400;
  line-height: 1;
}
.customer-avatar-fallback::after {
  display: none;
}
.customer-avatar-empty {
  border: 1px solid #d0d5dd;
  background: #f2f4f7;
  color: #667085;
}
.customer-avatar-empty .icon {
  width: 52%;
  height: 52%;
}
.customer-avatar-blue {
  --avatar-accent: #1769ff;
}
.customer-avatar-green {
  --avatar-accent: #17884c;
}
.customer-avatar-purple {
  --avatar-accent: #7a43c7;
}
.customer-row > .customer-avatar-fallback {
  width: 58px;
  height: 58px;
  font-size: 22px;
}
.customer-row {
  column-gap: clamp(12px, 1.3vw, 18px);
}
body[data-support-audience="staff"] .customer-row {
  column-gap: clamp(12px, 1.3vw, 18px);
}
.customer-row .customer-summary {
  min-width: 0;
  padding-inline-start: 2px;
}
@media (max-width: 900px) {
  .customer-row > .customer-avatar-fallback {
    width: 50px;
    height: 50px;
  }
}
.customer-photo-button > .customer-avatar-fallback {
  width: 100%;
  height: 100%;
  font-size: 40px;
}
:is(.new-customer-form, .profile-note-card) .customer-account-field {
  display: block;
  min-width: 0;
}
:is(.new-customer-form, .profile-note-card) .floating-field-control {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-rows: 13px 27px;
  align-content: center;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid #b9b9b9;
  border-radius: 9px;
  background: #fff;
}
.new-customer-form .floating-field-control {
  min-height: 50px;
  grid-template-rows: 40px;
  gap: 0;
  padding: 4px 10px;
}
:is(.new-customer-form, .profile-note-card) .floating-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 13px;
  pointer-events: none;
}
:is(.new-customer-form, .profile-note-card) .customer-access-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}
:is(.new-customer-form, .profile-note-card)
  .floating-field-control:not(.new-customer-note-control):has(
    :is(input, textarea):placeholder-shown:not(:focus)
  ) {
  grid-template-rows: 1fr;
}
:is(.new-customer-form, .profile-note-card)
  .floating-field-control:not(.new-customer-note-control):has(
    :is(input, textarea):placeholder-shown:not(:focus)
  )
  > .floating-field-label {
  display: none;
}
:is(.new-customer-form, .profile-note-card)
  .floating-field-control:focus-within
  :is(input, textarea)::placeholder {
  opacity: 0;
}
.new-customer-form .new-customer-note-control {
  min-height: 50px;
  grid-template-rows: 13px minmax(27px, auto);
  gap: 2px;
  padding: 3px 10px;
}
.new-customer-form .floating-field-label {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 10px;
  background: transparent;
  transform: none;
}
.new-customer-form .floating-field-control:focus-within input.customer-access-input,
.new-customer-form .floating-field-control:has(input:not(:placeholder-shown)) input.customer-access-input {
  padding-top: 13px;
}
.new-customer-form .new-customer-note-control > .floating-field-label {
  position: static;
  display: block;
}
.new-customer-form textarea {
  min-height: 27px;
  max-height: 10lh;
  overflow-y: hidden;
  resize: none;
  line-height: 1.35;
}
.new-customer-form .new-customer-note-control textarea::placeholder {
  color: transparent;
}
.profile-note-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 12px 16px;
}
.profile-note-card .profile-note-field {
  min-width: 0;
}
.profile-note-card .floating-field-control {
  grid-template-rows: 13px auto;
  align-content: start;
}
.profile-note-card textarea {
  min-height: 27px;
  max-height: 2lh;
  overflow-y: hidden;
  line-height: 1.4;
  resize: none;
}
@media (max-width: 740px) {
  .reception-auth-card[data-step="login"] {
    gap: 12px;
    padding: 18px;
  }
  .reception-auth-card[data-step="login"] .reception-account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reception-auth-card[data-step="login"] .reception-account-list label {
    min-height: 64px;
    gap: 8px;
    padding: 8px;
  }
  .reception-auth-card[data-step="login"] .reception-account-list img {
    width: 32px;
    height: 32px;
  }
  .reception-auth-card[data-step="login"] .reception-account-list strong {
    font-size: 12px;
    line-height: 1.25;
  }
  .reception-auth-card[data-step="login"] .reception-account-list small {
    font-size: 11px;
    line-height: 1.25;
  }
}
@media (max-width: 520px) {
  .new-customer-form,
  .profile-note-card {
    grid-template-columns: 1fr;
  }
  .new-customer-form .wide {
    grid-column: auto;
  }
  .profile-note-card > .secondary {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}
@media (min-width: 901px) and (max-height: 800px) {
  .reception-auth-page {
    gap: 12px;
    padding: 16px;
  }
  .reception-auth-brand {
    padding: 8px 14px;
  }
  .reception-auth-card[data-step="login"] {
    gap: 12px;
    padding: 22px;
  }
  .reception-auth-card[data-step="login"] .reception-account-list label {
    min-height: 64px;
    padding: 8px;
  }
  .reception-auth-card[data-step="login"] .reception-account-list img {
    width: 46px;
    height: 46px;
  }
}
.customer-account-avatar.customer-avatar-fallback,
.customer-photo-preview.customer-avatar-fallback {
  width: 100%;
  height: 100%;
  font-size: 20px;
}
.customer-photo-preview.customer-avatar-fallback {
  font-size: 44px;
}
.customer-photo-preview-frame.is-cropping {
  grid-column: 1/-1;
  grid-row: auto;
  width: min(240px, 70vw);
  height: min(240px, 70vw);
  justify-self: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.customer-photo-preview-frame.is-cropping.is-dragging {
  cursor: grabbing;
}
.customer-photo-preview-frame.is-cropping .customer-photo-preview {
  transform-origin: center;
  will-change: transform, object-position;
}
.customer-photo-editor:has(.is-cropping) {
  grid-template-columns: 1fr;
}
.customer-photo-editor:has(.is-cropping)
  > :is(.customer-photo-state, .customer-photo-help, .customer-photo-actions) {
  grid-column: 1;
  grid-row: auto;
}
.customer-photo-crop > p {
  color: var(--muted);
  font-size: 13px !important;
}
.customer-photo-crop label {
  grid-template-columns: 50px minmax(0, 1fr);
}
.customer-avatar-colors {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.customer-avatar-colors legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.customer-avatar-color {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
}
.customer-avatar-color[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.customer-avatar-color:focus-visible {
  outline: 3px solid #5b9dff;
  outline-offset: 2px;
}
.booking-controls {
  grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr));
}
.booking-controls > .field-label:first-child {
  grid-column: span 2;
  min-width: 0;
}
.booking-controls > .recurrence {
  grid-column: 1/-1;
}
.booking-controls .date-choice {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr);
}
@media (max-width: 520px) {
  .booking-controls > .field-label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 360px) {
  .booking-controls .date-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking-controls .date-choice input {
    grid-column: 1/-1;
    width: 100%;
  }
}

@media (max-width: 240px) {
  .booking-controls .date-choice {
    grid-template-columns: 1fr;
  }
  .booking-controls .date-choice input {
    grid-column: 1;
  }
}
.offer-card[aria-pressed="true"] {
  border-color: #f0f2f4;
  box-shadow: none;
}
.employee-account-row.is-selected {
  border-color: transparent;
}
.filter-button.is-active,
.segment.is-active,
.date-choice button.is-active,
.weekday.is-active {
  border-color: var(--line);
}
.service-tab.is-active,
.source-button.is-active {
  border: 1px solid var(--line);
  padding: 0 17px;
}
.slot.is-selected {
  border: 1px solid var(--blue);
  background: var(--blue-pale);
  background-image: none;
  color: #0f5ddc;
  box-shadow: none;
}

.slot.is-selected small {
  color: #0f5ddc;
}
.slot.booked {
  background: var(--booked);
  background-image: none;
  border-color: var(--booked);
}
.trainer-card.is-active {
  border: 3px solid var(--blue);
  padding: 0 0 8px;
  box-shadow: 0 0 0 3px rgb(23 105 255 / 12%);
}
.trainer-card-name {
  display: block;
  margin-top: 9px;
}
.trainer-selected-indicator {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 7px 7px 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}
.trainer-selected-indicator .icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 600px) {
  .trainer-selected-indicator {
    gap: 3px;
    margin-inline: 4px;
    padding-inline: 4px;
    font-size: 10px;
  }
  .trainer-selected-indicator .icon {
    width: 12px;
    height: 12px;
  }
}
.class-card.is-active,
.appointment-card.is-active,
.method-card.is-active {
  border: 1px solid var(--line);
}
.admin-resource-card.is-active {
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.reception-auth-brand {
  width: 188px;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
  border-radius: 0;
  box-shadow: none;
}
.reception-auth-brand img {
  width: 142px;
  height: 34px;
}
@media (min-width: 901px) {
  .sidebar > .brand {
    width: 188px;
    min-height: 72px;
    height: auto;
    margin: 0 auto 12px;
    padding: 16px 18px;
  }
}
body
  .floating-field-control:not(.new-customer-note-control):has(
    :is(input, textarea):placeholder-shown:not(:focus):not(
        [aria-invalid="true"]
      )
  )
  > .floating-field-label {
  visibility: hidden;
  opacity: 0;
}
.new-customer-form .customer-access-input {
  color: #101010;
  font-size: 18px;
  line-height: 27px;
}
.new-customer-form .floating-field-label {
  color: #676767;
}
.customer-avatar-colors {
  flex-wrap: wrap;
}
.customer-avatar-color {
  width: auto;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px 0 42px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}
.customer-avatar-color::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.customer-avatar-color.customer-avatar-blue::before {
  background: #1769ff;
}
.customer-avatar-color.customer-avatar-green::before {
  background: #17884c;
}
.customer-avatar-color.customer-avatar-purple::before {
  background: #7a43c7;
}
.customer-avatar-color[aria-pressed="true"]::after {
  inset: auto;
  left: 8px;
  top: 7px;
  width: 28px;
  height: 28px;
  font-size: 18px;
}
@media (forced-colors: active) {
  :is(
    .offer-card,
    .filter-button,
    .segment,
    .date-choice button,
    .weekday,
    .service-tab,
    .source-button,
    .slot,
    .trainer-card,
    .class-card,
    .appointment-card,
    .method-card,
    .admin-resource-card,
    .customer-avatar-color
  )[aria-pressed="true"],
  .date-day[aria-current="date"] {
    font-weight: 700;
    text-decoration: underline 2px;
  }
  .customer-avatar-color::before {
    forced-color-adjust: none;
  }
}
.customer-edit-button {
  margin-left: auto;
}
.customer-edit-button .icon {
  width: 18px;
  height: 18px;
}
.edit-customer-colors {
  display: flex;
  grid-column: 1/-1;
  flex-wrap: wrap;
  gap: 8px;
}
.edit-customer-colors legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.edit-customer-color {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.edit-customer-color::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1769ff;
}
.edit-customer-color.customer-avatar-green::before {
  background: #17884c;
}
.edit-customer-color.customer-avatar-purple::before {
  background: #7a43c7;
}
.edit-customer-color input {
  position: absolute;
  opacity: 0;
}
.edit-customer-color:has(input:checked) {
  border-color: #20242a;
  background: #f5f6f8;
}
.edit-customer-color:has(input:focus-visible) {
  outline: 3px solid #5b9dff;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .customer-edit-button {
    width: 100%;
    margin-left: 0;
  }
  .edit-customer-color {
    flex: 1 1 92px;
    justify-content: center;
  }
}
textarea {
  resize: none;
  overflow-y: hidden;
}
.course-card .card-actions {
  margin-top: 14px;
}
.page-heading-actions,
.calendar-primary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-card :is(h2, p) {
  margin: 0;
}
.course-card .card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.calendar-primary-actions .icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
}
.calendar-primary-actions .icon-button svg {
  width: 20px;
  height: 20px;
}
.calendar-booking.is-profile-link,
.calendar-booking.is-editable {
  cursor: pointer;
}
.calendar-booking.is-profile-link:hover,
.calendar-booking.is-editable:hover {
  filter: brightness(0.98);
  box-shadow: 0 7px 18px #16336118;
}
.calendar-operation-backdrop .calendar-operation-dialog {
  width: min(1480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.admin-calendar-operation {
  display: grid;
  gap: 20px;
}
.admin-calendar-operation .operation-toolbar {
  display: flex;
  justify-content: flex-end;
}
.admin-calendar-operation .admin-calendar-layout {
  min-height: 0;
}
.calendar-operation-dialog > .modal-head {
  position: sticky;
  top: -22px;
  z-index: 12;
  margin: -22px -22px 18px;
  padding: 22px 22px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.calendar-operation-dialog > .modal-head.is-titleless {
  min-height: 70px;
  justify-content: flex-end;
}
.calendar-operation-dialog .existing-blocks-section {
  padding-bottom: 12px;
}
@media (max-width: 700px) {
  .calendar-operation-backdrop .calendar-operation-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .calendar-primary-actions {
    width: 100%;
  }
  .calendar-primary-actions > :not(.icon-button) {
    flex: 1;
  }
  .page-heading-actions {
    justify-content: flex-start;
  }
}
.calendar-operation-dialog .admin-availability {
  scroll-margin-top: 88px;
}
.admin-calendar-operation.is-editor-step {
  gap: 18px;
}
.admin-booking-selection {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.admin-booking-selection > .icon-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
}
.admin-booking-selection > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.admin-booking-selection > span > .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.admin-calendar-operation.is-editor-step > .admin-operation {
  grid-area: auto;
  width: 100%;
}
@media (max-width: 600px) {
  .admin-booking-selection {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .admin-booking-selection > span {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }
  .admin-booking-selection > span strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.activity-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}
.activity-filters label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.activity-filters select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 32px 8px 10px;
  background: #fff;
  color: var(--text);
}
.activity-row > *,
.activity-copy,
.activity-side,
.activity-actor {
  min-width: 0;
  overflow-wrap: anywhere;
}
.activity-result-count {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  padding: 8px 12px;
  background: #f1f5fa;
  color: var(--muted);
  font-size: 13px;
}
.history-page .timeline > .card.empty {
  display: none;
}
@media (max-width: 900px) {
  .activity-filters {
    grid-template-columns: 1fr 1fr;
  }
  .activity-result-count {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .activity-filters {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 601px) {
  .booking-calendar-agenda {
    display: none;
  }
}
.calendar-agenda-create {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #8bb2ff;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--ink);
  text-align: left;
}
.calendar-agenda-create span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.calendar-agenda-create small {
  color: var(--blue);
  font-weight: 700;
}
.booking-calendar[data-calendar-mode="day"] .calendar-day-header.is-resource {
  justify-items: center;
  border-top: 3px solid var(--blue);
  background: #f8fbff;
  color: var(--blue);
  text-align: center;
}
.booking-calendar[data-calendar-mode="day"]
  .calendar-day-header.is-resource
  small {
  color: var(--muted);
}
.booking-calendar[data-calendar-mode="day"] .calendar-booking.is-grid-event {
  border-left-width: 3px;
}
.calendar-drop-cell {
  z-index: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-left: 1px solid #b8c2cf;
  background: transparent;
  pointer-events: auto;
}
.calendar-drag-active .calendar-drop-cell {
  pointer-events: auto;
}
.calendar-drop-cell:disabled {
  opacity: 1;
}
.calendar-drop-cell:not(:disabled):hover {
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px #d9e0e9;
}
.calendar-drop-cell:not(:disabled):hover::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 18px;
  font-weight: 700;
}
.calendar-drop-cell:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
  background: transparent;
}
.calendar-drag-active .calendar-drop-cell:not(:disabled):hover {
  background: #eaf2ff99;
  box-shadow: inset 0 0 0 1px #7dacff;
}
.calendar-appointment-detail {
  display: grid;
  gap: 18px;
}
.calendar-appointment-people {
  display: grid;
  gap: 4px;
}
.calendar-appointment-people > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calendar-appointment-people small {
  color: var(--muted);
}
.calendar-appointment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.calendar-appointment-actions button {
  justify-content: flex-start;
}
.calendar-appointment-actions .icon {
  flex: 0 0 auto;
}
.calendar-participant-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.calendar-operation-backdrop:has(.calendar-appointment-detail) .calendar-operation-dialog {
  width: min(620px, calc(100vw - 32px));
}
.calendar-operation-backdrop:has(.calendar-participant-editor) .calendar-operation-dialog,
.calendar-operation-backdrop:has(.admin-squash-operation) .calendar-operation-dialog {
  width: min(820px, calc(100vw - 32px));
}
@media (max-width: 600px) {
  .calendar-appointment-actions {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 901px) {
  body:has(.support-chat-staff:not(.is-open)) .toast {
    right: 94px;
  }
}
.sticky-action {
  gap: 12px;
}
.customer-row:hover,
.action-card:hover,
.bike-option:not(:disabled):hover {
  transform: none;
}
.customer-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.customer-number {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.customer-number .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.customer-note {
  overflow: hidden;
  color: #48576a !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-note-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.profile-note-card textarea {
  min-height: 27px;
  font-size: 16px;
}
.profile-panels > .section-card:only-child {
  grid-column: 1/-1;
}
.section-title > [data-action="navigate"][data-view="appointments"] {
  font-size: 14px;
}
.calendar-return {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
}
.calendar-return .icon {
  width: 22px;
  height: 22px;
}
:is(.icon-close, .inline-notice > button, .photo-reset, .support-chat-close) {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
:is(.icon-close, .inline-notice > button, .photo-reset, .support-chat-close, .customer-picker-selected > button) :is(.icon, svg) {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
@media (max-width: 520px) {
  .profile-note-card {
    grid-template-columns: 1fr;
  }
}

.history-content {
  width: 100%;
}

.history-page .history-toolbar {
  margin-bottom: 12px;
}

.history-page .filter-row {
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
}

.history-page .filter-button {
  min-height: 42px;
  flex: 0 0 auto;
}

.history-page .timeline {
  gap: 18px;
  margin-top: 0;
}

.history-day {
  display: grid;
  gap: 7px;
}

.history-day-heading {
  margin: 0;
  color: #343a44;
  font-size: 16px;
  line-height: 1.35;
}

.history-day-events {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(27, 38, 57, 0.025);
}

.history-page .timeline-row {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.history-page .timeline-row + .timeline-row {
  border-top: 1px solid var(--line);
}

.history-page .timeline-row > button {
  grid-template-columns: 42px 62px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 70px;
  padding: 10px 13px;
}

.history-page .timeline-row > button:hover {
  background: #f8fafc;
}

.history-page .timeline-row > button:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: -3px;
}

.history-page .product-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
}

.history-page .timeline-row time {
  color: #4d5664;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.history-event-copy {
  display: grid;
  gap: 3px;
}

.history-event-copy > strong {
  font-weight: 700;
  line-height: 1.25;
}

.history-event-copy > small {
  color: var(--muted);
  line-height: 1.35;
}

.history-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 22px;
}

.history-amount {
  font-weight: 700;
  white-space: nowrap;
}

.history-row-arrow {
  color: #7a8492;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 700px) {
  .history-page .history-toolbar {
    display: grid;
    gap: 12px;
  }

  .history-page .date-range {
    width: 100%;
  }

  .history-page .date-range input {
    min-width: 0;
    flex: 1;
  }

  .history-page .timeline-row > button {
    grid-template-columns: 38px 46px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 66px;
    padding: 9px 10px;
  }

  .history-page .product-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .history-row-side {
    gap: 7px;
  }

  .history-amount {
    font-size: 13px;
  }

  .history-event-copy > small {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .history-page .date-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .history-page .date-range input {
    width: 100%;
  }
}

/* Work 14: shared interaction and layout contracts. */
@media (min-width: 901px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
  }

  .admin-page:has(.staff-card) .admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .staff-card {
    align-content: start;
  }

  .staff-card img {
    width: 112px;
    height: 112px;
    max-width: 112px;
    justify-self: start;
    object-fit: cover;
  }
}

.sidebar,
.nav-list,
.subnav {
  max-width: 100%;
  overflow-x: hidden;
}

.nav-button[data-view="payments"] { min-width:0; }
.nav-button[data-view="payments"] > .icon { flex:none; }
.nav-payment-copy { display:flex; min-width:0; flex:1; align-items:center; flex-wrap:wrap; gap:4px 8px; padding-block:8px; }
.nav-payment-copy .owed { flex:none; margin-left:0; }
.mobile-destination-list [data-view="payments"] { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.mobile-destination-list .owed { flex:none; }

.customer-head {
  border: 0;
  box-shadow: none;
}

:is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  outline: 0;
  box-shadow: none;
}

.field-label :is(input, select, textarea):focus-visible {
  border-color: #dfe3e8;
  background-color: #fff;
}

.floating-field-control:focus-within:not(:has([aria-invalid="true"])) {
  border-color: #b9b9b9;
  background: #fff;
  box-shadow: none;
  outline: 0;
}

body[data-support-audience="customer"] .customer-access-panel .floating-field-control {
  min-height: 50px;
  height: 50px;
  grid-template-rows: 40px;
  gap: 0;
  padding: 3px 10px;
}

body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:has(:is(input, textarea):placeholder-shown:not(:focus):not([aria-invalid="true"]))
  > .floating-field-label {
  display: none;
}

body[data-support-audience="customer"] .customer-access-panel .customer-access-input {
  height: 40px;
  min-height: 40px;
  padding: 0;
  text-align: left;
  line-height: 40px;
}

body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:focus-within,
body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:has(:is(input, textarea):not(:placeholder-shown)) {
  grid-template-rows: 13px 27px;
  gap: 2px;
}

body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:focus-within
  .customer-access-input,
body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:has(:is(input, textarea):not(:placeholder-shown))
  .customer-access-input {
  height: 27px;
  min-height: 27px;
  line-height: 27px;
}

.modal {
  scrollbar-gutter: stable;
  background-clip: padding-box;
  clip-path: none;
}

.modal::-webkit-scrollbar-track {
  margin-block: 18px;
}

.slot.is-selected {
  border-color: var(--booked);
  background: var(--booked);
  color: #fff;
}

.slot.is-selected small {
  color: #fff;
}

.calendar-appointment-people strong {
  font-weight: 700;
}

/* Keep the popup scrollbar visible and grabbable on every desktop browser. */
html,
body {
  min-width: 0;
}

body:has(dialog.modal-backdrop[open]) {
  overflow: hidden;
}

.modal {
  scrollbar-color: #8d96a5 transparent;
  scrollbar-width: auto;
}

.modal::-webkit-scrollbar {
  width: 14px;
}

.modal::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #8d96a5;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #667085;
}

.price-dialog {
  display: block;
  overflow: auto;
}

.price-editor-dialog {
  min-height: auto;
  overflow: visible;
}


.reception-auth-card[data-step="login"] .reception-account-list {
  align-content: start;
}

.reception-auth-card[data-step="login"] .reception-account-list label:has(input:focus-visible) {
  outline: 3px solid rgba(23, 105, 255, 0.35);
  outline-offset: -3px;
}



:is(.new-customer-form, .profile-note-card) .floating-field-control {
  outline: 0;
}

:is(.new-customer-form, .profile-note-card)
  textarea.customer-access-input:not([aria-invalid="true"]),
:is(.new-customer-form, .profile-note-card)
  textarea.customer-access-input:focus-visible:not([aria-invalid="true"]) {
  border-color: currentColor;
  box-shadow: none;
}

html[data-input-mode="pointer"]
  :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  outline: 0 !important;
  box-shadow: none;
}

/* At a 1024 px viewport the sidebar leaves too little room for a table and
   payment summary side by side. Stack the two complete cards before any
   amount column can be clipped. */
@media (min-width: 901px) and (max-width: 1100px) {
  .payment-page {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }
}

.modal-head > .icon-close {
  min-width: 44px;
  flex: 0 0 44px;
}

@media (min-height: 761px) {
  body[data-support-audience="customer"] .date-input-wrap {
    position: relative;
  }

  body[data-support-audience="customer"] .month-popover:not([hidden]) {
    position: absolute;
    z-index: 75;
    top: calc(100% + 8px);
    left: 0;
    width: min(430px, 100%);
    max-height: min(560px, calc(100dvh - 24px));
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.16);
  }
}

.admin-calendar-page :is(button, [role="button"]):disabled,
.admin-calendar-page .slot:not(.available) {
  cursor: default;
}

.payment-page .charge-panel > .page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-cost-mode-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-cost-mode-toggle > .icon {
  width: 20px;
  height: 20px;
}

.payment-cost-mode-toggle.is-active {
  border-color: var(--booked);
  background: var(--booked);
  color: #fff;
}

.booking-page.unified-booking-page .admin-booking-review--editable {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.booking-page.unified-booking-page
  .admin-booking-review--editable
  > :is(span, label, div) {
  min-width: 0;
}

.admin-booking-review-date,
.admin-booking-review-choice,
.admin-booking-review-person {
  display: grid;
  gap: 8px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.admin-booking-review-date .date-nav {
  margin-top: 0;
}

.admin-booking-review-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-booking-review-person {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
  align-items: end;
}

.admin-booking-review-person > :is(small, strong, span) {
  grid-column: 1;
}

.admin-booking-review-person > select {
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 0;
  min-height: 46px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background-color: #fff;
}

@media (max-width: 600px) {
  .payment-page .charge-panel > .page-heading,
  .admin-booking-review-choice {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-page .charge-panel > .page-heading {
    display: grid;
  }

  .payment-cost-mode-toggle {
    width: 100%;
  }

  .admin-booking-review-person {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-booking-review-person > select {
    grid-column: 1;
    grid-row: auto;
  }
}

.customer-secondary-stack,
.customer-picker-option > span,
.customer-picker-selected > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.customer-secondary-stack .customer-number,
.customer-picker-option .customer-number,
.customer-picker-selected .customer-number {
  display: inline-flex;
}

@media (max-width: 430px) {
  .history-page .timeline-row > button {
    grid-template-columns: 36px 42px minmax(0, 1fr) 16px;
  }

  .history-row-side .history-amount {
    display: none;
  }
}

.correction-value-editor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bfd3ff;
  border-radius: 13px;
  background: var(--blue-pale);
}

.correction-value-editor > header {
  display: grid;
  gap: 4px;
}

.correction-value-editor > header small,
.correction-reversal-note {
  color: var(--muted);
  line-height: 1.45;
}

.correction-value-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.correction-value-field--wide {
  grid-column: 1 / -1;
}

.correction-value-field textarea,
.correction-value-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c7d2e5;
  border-radius: 10px;
  background: #fff;
}

.correction-value-field textarea {
  resize: none;
}

.correction-reversal-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f5f6f8;
}

.activity-page {
  scrollbar-gutter: stable;
}

.activity-page .activity-list {
  margin-top: 12px;
}

.activity-row[data-action="open-correction"] {
  cursor: pointer;
}

.activity-row[data-action="open-correction"]:hover {
  border-color: #9fc0ff;
}

@media (min-width: 901px) {
  body:has(.activity-page) .toast {
    top: 16px;
    right: 24px;
    bottom: auto;
  }
}

.activity-inline-correction {
  display: grid;
  width: 100%;
  max-width: none;
  max-height: none;
  gap: 16px;
  padding: clamp(16px, 2vw, 24px);
  overflow: visible;
  border-color: #9fc0ff;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 105, 255, 0.1);
}

.activity-inline-correction[aria-busy="true"] {
  opacity: 0.76;
  pointer-events: none;
}

.activity-inline-correction.is-loading,
.activity-inline-correction.is-load-error {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
}

.activity-inline-correction.is-load-error > div:first-child,
.inline-correction-heading > div {
  display: grid;
  gap: 4px;
}

.activity-inline-correction :is(h2, p) {
  margin: 0;
}

.inline-correction-heading h2 {
  margin-top: 7px;
  font-size: clamp(22px, 2vw, 28px);
}

.inline-correction-heading p,
.activity-inline-correction.is-load-error small {
  color: var(--muted);
  line-height: 1.45;
}

.activity-inline-correction .correction-diff-list {
  max-height: none;
  padding: 0;
  overflow: visible;
}

.activity-inline-correction .correction-value-editor {
  margin-top: 0;
}

.activity-inline-correction :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(223, 39, 50, 0.12);
}

.correction-confirmation {
  max-width: 760px;
}

.correction-confirmation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.correction-confirmation-facts > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faff;
}

.correction-confirmation-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.correction-confirmation-facts dd,
.correction-confirmation-facts dd > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.4;
}

.correction-confirmation-facts > div:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.correction-field-error {
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.inline-correction-actions,
.activity-load-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.inline-correction-actions button {
  min-width: 150px;
}

.activity-load-sentinel,
.activity-load-state {
  min-height: 64px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
}

.activity-load-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.activity-load-state > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.activity-load-state.is-error {
  justify-content: space-between;
  border-color: #f0b9b5;
  background: #fff8f7;
  color: #8f241c;
}

.activity-loader-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--blue);
  animation: activity-loader-pulse 1s ease-in-out infinite alternate;
}

@keyframes activity-loader-pulse {
  to {
    opacity: 0.3;
    transform: scale(0.72);
  }
}

@media (min-width: 1800px) {
  .activity-inline-correction .correction-value-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-inline-correction .correction-value-field--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .correction-value-fields {
    grid-template-columns: 1fr;
  }

  .correction-value-field--wide {
    grid-column: auto;
  }

  .activity-inline-correction {
    padding: 14px;
  }

  .activity-inline-correction.is-loading,
  .activity-inline-correction.is-load-error {
    grid-template-columns: 1fr;
  }

  .correction-confirmation-facts {
    grid-template-columns: 1fr;
  }

  .correction-confirmation-facts > div {
    grid-column: auto;
  }

  .inline-correction-actions,
  .activity-load-state {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-correction-actions button,
  .activity-load-state button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-loader-dot {
    animation: none;
  }
}

.shared-date-control {
  position: relative;
  display: block;
  min-width: 0;
}

.legacy-booking-date-bridge {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.shared-date-native {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none;
}

.shared-date-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  font-weight: 650;
  text-align: left;
}

.shared-date-trigger .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--blue);
}

.shared-date-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-admin-date-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  max-width: none;
  margin: 0;
}

.shared-admin-date-popover.is-align-end {
  right: 0;
  left: auto;
}

.shared-admin-date-popover.is-open-up {
  top: auto;
  bottom: calc(100% + 7px);
}

.shared-admin-date-popover .month-weekday {
  display: grid;
  min-height: 30px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.shared-admin-date-popover .month-actions.has-clear {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-date-input .shared-date-trigger {
  min-height: 44px;
}

@media (max-width: 600px) {
  .shared-admin-date-popover {
    position: fixed;
    z-index: 120;
    top: 50%;
    left: 50%;
    width: min(430px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    box-shadow:
      0 0 0 100vmax rgba(16, 24, 40, 0.58),
      0 12px 34px rgba(16, 24, 40, 0.24);
  }

  .shared-admin-date-popover:is(.is-align-end, .is-open-up) {
    right: auto;
    bottom: auto;
  }
}
@media (min-width: 901px) {
  body:has(.payment-page) .toast {
    bottom: 100px;
  }
}
.icon-close {
  width: 44px;
  height: 44px;
}
.profile-note-card textarea {
  overflow-y: hidden;
}
.charge-mobile-label {
  display: none;
}
.payment-payer-control {
  display: grid;
  grid-column: 3 / -1;
  grid-template-columns: minmax(150px, 0.45fr) minmax(210px, 0.55fr);
  align-items: center;
  gap: 12px;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.payment-payer-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.payment-page.is-transfer-only {
  grid-template-columns: minmax(0, 1fr);
}
.payment-transfer-tray {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bdd3fb;
  border-radius: 12px;
  background: #f4f8ff;
}
.payment-transfer-tray > header {
  display: grid;
  gap: 3px;
}
.payment-transfer-tray > header small,
.payment-transfer-copy small {
  color: var(--muted);
}
.payment-transfer-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid #d9e5fa;
}
.payment-transfer-copy {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.payment-transfer-copy > span {
  display: grid;
  gap: 2px;
}
.payment-transfer-copy > .icon {
  color: var(--blue);
}
.payment-transfer-row .payment-payer-control {
  grid-column: auto;
  grid-template-columns: minmax(120px, 0.45fr) minmax(190px, 0.55fr);
  padding: 0;
}
@media (max-width: 900px) {
  .charge-row {
    grid-template-columns: 44px 44px minmax(0, 1fr);
  }
  .charge-row > :nth-child(4),
  .charge-row > :nth-child(5),
  .charge-row > :nth-child(6) {
    grid-column: 3;
  }
  .charge-mobile-label {
    display: inline;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }
  body
    .charge-row
    > :is(.quantity-button, .charge-unit-price, .charge-line-total) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }
  .payment-payer-control {
    grid-column: 1 / -1;
  }
  .payment-transfer-row {
    grid-template-columns: 1fr;
  }
  .payment-transfer-row .payment-payer-control {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .charge-row > .quantity-button {
    grid-row: 2;
    grid-column: 3;
  }
  .charge-row > .charge-unit-price {
    grid-row: 3;
    grid-column: 3;
  }
  .charge-row > .charge-line-total {
    grid-row: 4;
    grid-column: 3;
  }
  .payment-payer-control {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .payment-transfer-tray {
    padding: 12px;
  }
  .payment-transfer-row .payment-payer-control {
    grid-template-columns: 1fr;
  }
}
.edit-customer-photo {
  grid-template-columns: 96px minmax(0, 1fr);
}
.edit-customer-photo [hidden] {
  display: none !important;
}
.edit-customer-photo > :is(img, .customer-avatar-fallback) {
  grid-column: 1;
  grid-row: 1/4;
  width: 96px;
  height: 96px;
}
.edit-customer-photo > img {
  object-fit: cover;
}
.edit-customer-photo > .customer-avatar-fallback {
  font-size: 36px;
}
.edit-customer-photo > strong {
  grid-column: 2;
  grid-row: 1;
}
.edit-customer-photo-actions {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  gap: 8px;
}
.edit-customer-photo-actions > label {
  min-width: 0;
  flex: 1;
}
.edit-customer-photo > small {
  grid-column: 2;
  grid-row: 3;
  color: var(--muted);
}
@media (max-width: 480px) {
  .edit-customer-photo {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .edit-customer-photo > :is(img, .customer-avatar-fallback) {
    width: 72px;
    height: 72px;
  }
  .edit-customer-photo > .customer-avatar-fallback {
    font-size: 30px;
  }
}
.customer-select-control {
  position: relative;
  display: block;
  min-width: 0;
}
.customer-select-control > .icon {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}
.field-label .customer-select-control select,
.admin-cost-row .customer-select-control select {
  width: 100%;
  padding-left: 36px;
}
.participant-time-list .customer-number,
.admin-payer-totals .customer-number,
.calendar-player-list .customer-number {
  font: inherit;
  font-weight: inherit;
}
.calendar-player-identity {
  min-width: 0;
  overflow-wrap: anywhere;
}
.calendar-booking.is-grid-event .calendar-player-list .calendar-player-identity {
  display: inline-flex;
}
.admin-cost-row > span:first-child > small {
  display: grid;
  gap: 2px;
}
.admin-cost-coverage {
  color: #245eae;
  font-weight: 700;
}

.appointment-cost-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.appointment-cost-list h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.appointment-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.appointment-cost-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.appointment-cost-row > span:last-child {
  justify-items: end;
  white-space: nowrap;
}

.appointment-cost-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.appointment-cost-status {
  font-weight: 700;
}

.appointment-cost-status.is-bezahlt,
.appointment-cost-status.is-abgedeckt {
  color: var(--available);
}

.appointment-cost-status.is-offen {
  color: var(--red);
}
@media (min-width: 601px) {
  .admin-cost-row {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }
  .admin-cost-row > span:last-child {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .calendar-operation-dialog,
  .admin-squash-operation {
    padding: 10px;
  }
  .admin-squash-operation .admin-participant-row {
    padding: 8px;
  }
  .admin-squash-operation .customer-select-control > .icon {
    left: 8px;
  }
  .admin-squash-operation .customer-select-control select {
    padding-left: 30px;
    font-size: 14px;
  }
}
.booking-page.has-party-editor {
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
}
.b2b-squash-party {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.b2b-squash-party .admin-participant-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.b2b-squash-party .admin-participant-heading h2,
.b2b-squash-party .admin-participant-heading span,
.b2b-squash-party .admin-cost-editor h3 {
  margin: 0;
}
.b2b-squash-party .admin-participant-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.participant-profile-error {
  margin-top: 2px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.customer-picker {
  position: relative;
  display: grid;
  gap: 7px;
}
.customer-picker-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
}
.customer-picker-search:focus-within {
  outline: 0;
}
.customer-picker-search .icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
}
.customer-picker-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font: inherit;
}
.customer-picker-results {
  position: absolute;
  z-index: 45;
  top: 47px;
  right: 0;
  left: 0;
  display: grid;
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.16);
}
.customer-picker-results[hidden] {
  display: none;
}
.customer-picker-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  background: #fff;
  text-align: left;
}
.customer-picker-option:last-child {
  border-bottom: 0;
}
.customer-picker-option:hover,
.customer-picker-option:focus-visible {
  background: var(--blue-pale);
  outline: 0;
}
.customer-picker-option > :is(img, .customer-avatar-fallback),
.customer-picker-selected > :is(img, .customer-avatar-fallback) {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 16px;
}
.customer-picker-option > span,
.customer-picker-selected > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.customer-picker-option small,
.customer-picker-selected small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.customer-picker-option strong,
.customer-picker-selected strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-picker-selected {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #eef5ff;
}
.customer-picker-selected > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 21px;
}
.customer-picker-selected > button:hover,
.customer-picker-selected > button:focus-visible {
  background: #dbeaff;
  outline: 2px solid #4b8cf7;
}
.customer-picker-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
.customer-picker-native[hidden] {
  display: none !important;
}
.customer-picker-create {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

@media (min-width: 1281px) {
  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar {
    display: contents;
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    > .reception-booking-date-picker {
    grid-column: 1;
    grid-row: 1;
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-main {
    grid-column: 2;
    grid-row: 1;
    position: static;
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    > .b2b-squash-party {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    .b2b-squash-party
    .admin-participant-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    .b2b-squash-party
    .admin-participant-list:has(> .admin-participant-row:nth-child(2)):not(:has(> .admin-participant-row:nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    .b2b-squash-party
    .admin-participant-row {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2)))
    .admin-participant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unified-booking-page[data-admin-booking-service="SQUASH"]
    .booking-workspace-sidebar
    .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2)))
    .admin-participant-row
    > header {
    grid-column: 1 / -1;
  }
}
.participant-source-choice {
  grid-column: 1/-1;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.participant-source-choice > span,
.participant-source-choice > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.participant-source-choice select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 9px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
}
.participant-source-timeline {
  display: grid;
  gap: 2px;
}
.b2b-squash-party .admin-ball-choice {
  min-height: 44px;
  width: max-content;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f3f6fa;
}
.b2b-squash-party :is(select, input):focus-visible {
  outline: 0;
}
@media (min-width: 1100px) {
  .b2b-squash-party .admin-participant-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .b2b-squash-party .admin-participant-row {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .b2b-squash-party .admin-participant-row > header,
  .b2b-squash-party .participant-rentals {
    grid-column: auto;
  }
  .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2)))
    .admin-participant-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2)))
    .admin-participant-row
    > header,
  .b2b-squash-party
    .admin-participant-list:not(:has(.admin-participant-row:nth-child(2)))
    .participant-rentals {
    grid-column: 1/-1;
  }
  .b2b-squash-party .admin-cost-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}
@media (max-width: 600px) {
  body:has(.booking-page.has-party-editor) {
    overflow: hidden;
  }
  body:has(.booking-page.has-party-editor) .app-shell {
    height: calc(100dvh - max(76px, calc(64px + env(safe-area-inset-bottom))));
    min-height: 0;
    overflow-y: auto;
  }
  .booking-page.has-party-editor {
    padding-bottom: 12px;
  }
  .b2b-squash-party {
    padding: 14px;
  }
  .b2b-squash-party .admin-participant-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .b2b-squash-party .admin-participant-heading > button {
    width: 100%;
  }
}
#profile-note-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
#profile-note-status[data-state="conflict"] {
  color: #9a4e00;
}
.profile-note-conflict {
  display: flex;
  grid-column: 1/-1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #f0c483;
  border-radius: 11px;
  background: var(--orange-pale);
  color: #6f3d00;
}
.profile-note-conflict[hidden] {
  display: none;
}
.profile-note-conflict > span {
  display: grid;
  gap: 3px;
}
.profile-note-conflict small {
  color: #6f5634;
}
.profile-note-conflict > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-note-conflict button {
  min-width: 190px;
}
@media (max-width: 650px) {
  .profile-note-conflict {
    display: grid;
  }
  .profile-note-conflict > div {
    display: grid;
  }
  .profile-note-conflict button {
    width: 100%;
    min-width: 0;
  }
}
.extension-choice-list .choice-row:disabled,
.court-choice-list .choice-row:has(input:disabled) {
  opacity: 1;
  border-color: #e2e5e9;
  background: #f5f6f8;
  color: #747b86;
}
.appointment-conflict-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #f0c483;
  border-radius: 10px;
  background: var(--orange-pale);
  color: #6f3d00;
  font-size: 13px;
}
.appointment-conflict-list > span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}
.appointment-conflict-list .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.extension-choice-list .choice-row {
  min-height: 44px;
}
.court-choice-list .choice-row {
  min-height: 44px;
}
.trainer-change-timeline {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.trainer-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.trainer-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trainer-timeline-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.trainer-timeline-legend .is-available,
.trainer-timeline-slot.is-available {
  background: var(--available);
  color: #fff;
}
.trainer-timeline-legend .is-taken,
.trainer-timeline-slot.is-taken {
  background: var(--occupied-orange);
  color: #171717;
}
.trainer-timeline-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.trainer-timeline-header,
.trainer-timeline-row {
  display: grid;
  align-items: stretch;
  gap: 3px;
  padding: 3px;
}
.trainer-timeline-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #f5f7fa;
}
.trainer-timeline-header > :is(strong, time) {
  display: grid;
  min-height: 38px;
  place-items: center;
  font-size: 11px;
}
.trainer-timeline-choice {
  position: sticky;
  z-index: 2;
  left: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 9px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.trainer-timeline-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.trainer-timeline-choice > span {
  display: grid;
  gap: 2px;
}
.trainer-timeline-choice small {
  color: var(--blue);
  font-weight: 700;
}
.trainer-timeline-slot {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 4px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}
.cookie-banner button:focus-visible {
  outline: 3px solid #5b9dff;
  outline-offset: 2px;
}
@media (min-height: 761px) and (max-height: 900px) {
  body[data-support-audience="customer"] .month-popover:not([hidden]) {
    position: fixed;
    z-index: 75;
    top: 8px;
    left: 50%;
    width: min(430px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-50%);
    box-shadow:
      0 0 0 100vmax rgba(16, 24, 40, 0.58),
      0 8px 24px rgba(16, 24, 40, 0.18);
  }
}

.date-day.is-current::before,
.date-day.is-current:hover::before {
  border-color: transparent;
  background: var(--booked, #1264d8);
}

.date-day.is-today:not(.is-current):not(:disabled) {
  color: inherit;
}

.date-day.is-today:not(.is-current):not(:disabled)::before {
  border: 0;
  background: transparent;
}

.booking-summary {
  display: grid;
  gap: 6px;
}

.party-pricing.is-price-only {
  display: flex;
  justify-content: flex-start;
  border: 0;
  padding: 0;
  background: transparent;
}

.price-section-head.is-actions-only {
  justify-content: flex-end;
}

.price-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 900px) {
  .price-section-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-section-actions .secondary {
    width: 100%;
  }
}

.mobile-nav-trigger {
  display: none;
}

.mobile-context-button {
  display: none;
}

@media (min-width: 901px) {
  .nav-list > .mobile-context-button {
    display: flex;
  }
}

.admin-button {
  grid-template-columns: 40px minmax(0, 1fr);
}

.customer-status-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-account-delete {
  display: flex;
  grid-column: 1/-1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #f1c6c8;
  border-radius: 11px;
  background: #fff7f7;
}

.customer-account-delete > span {
  display: grid;
  gap: 3px;
}

.customer-account-delete small {
  color: var(--muted);
  line-height: 1.4;
}

.trainer-card img {
  min-width: 0;
  max-width: 100%;
  object-fit: cover;
}

.staff-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.staff-card img {
  min-width: 0;
  max-width: 100%;
}

.return-row > span {
  display: grid;
  gap: 4px;
}

body[data-support-audience="customer"] .date-day.is-current {
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
}

body[data-support-audience="customer"] .date-day.is-current::before {
  border: 0 !important;
  background: var(--booked) !important;
}

body[data-support-audience="customer"] .date-day.is-current:hover::before {
  background: #0d55b8 !important;
}

body[data-support-audience="customer"] .date-day.is-today:not(.is-current):not(:disabled) {
  color: var(--text) !important;
}

body[data-support-audience="customer"] .date-day.is-today:not(.is-current):not(:disabled)::before {
  border: 0 !important;
  background: transparent !important;
}

body[data-support-audience="customer"] .calendar-grid {
  padding-right: 0 !important;
}

.booking-calendar-controls {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.reception-booking-date-picker {
  width: 100%;
  margin: 0;
}

.booking-options-only {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.booking-options-only .recurrence {
  grid-column: 1;
  border-top: 0;
  padding-top: 0;
}

.shared-time-calendar {
  min-width: 0;
  padding: 14px;
  overflow: hidden;
}

.reception-time-calendar {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.reception-time-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.reception-time-calendar-head .legend {
  justify-content: flex-start;
  margin: 0;
}

.reception-time-grid {
  width: max-content;
  min-width: 100%;
  padding-right: 0;
}

.reception-time-grid .slot {
  min-height: 56px;
}

.reception-time-grid .grid-time {
  min-width: 0;
  text-align: center;
}

.reception-time-grid > span[aria-hidden="true"]:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  display: block;
  background: #fff;
  box-shadow: 4px 0 0 #fff;
}

.reception-time-grid .court-label {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  box-shadow: 4px 0 0 #fff;
  overflow-wrap: anywhere;
}

.admin-slot-scroll[data-booking-time-scroll] {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

.unified-service-body,
.service-booking-main {
  min-width: 0;
}

.unified-service-body {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

.service-booking-main {
  display: grid;
  gap: 12px;
}

.service-booking-main > .reception-booking-date-picker {
  max-width: 430px;
}

.service-options-only {
  grid-template-columns: minmax(180px, 260px);
}

.unified-booking-page .service-summary {
  position: sticky;
  top: 0;
}

.unified-booking-page {
  grid-template-rows: minmax(min-content, auto) auto;
  align-content: start;
  overflow-y: auto;
}

.unified-booking-page.service-page {
  grid-template-rows: auto minmax(min-content, auto) auto;
}

.booking-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 400px) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  align-items: start;
}

.booking-workspace-sidebar,
.booking-workspace-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}

@media (min-width: 1281px) {
  .booking-workspace-main {
    position: sticky;
    top: 0;
  }
}

.booking-workspace .reception-booking-date-picker {
  max-width: none;
}

.unified-booking-page .booking-workspace .booking-workspace-sidebar .b2b-squash-party .admin-participant-row {
  grid-template-columns: minmax(0, 1fr);
}

.booking-workspace-sidebar .b2b-squash-party .admin-participant-list {
  grid-template-columns: minmax(0, 1fr);
}

.booking-workspace-sidebar .admin-participant-row > header {
  grid-column: auto;
}

.booking-workspace .shared-time-calendar,
.booking-workspace .service-form {
  min-height: 0;
  overflow: visible;
}

.unified-booking-page .service-summary {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 75px;
  padding: 11px 14px 11px 19px;
}

.unified-booking-page .service-summary .primary,
.unified-booking-page .booking-bottom .primary {
  min-width: 108px;
}

.reception-time-grid {
  width: max-content;
  min-width: 0;
}

.reception-time-grid .slot {
  min-height: 46px;
}

[data-bike-selection-model="service"] .bike-legend,
[data-bike-selection-model="service-participant"] .bike-legend {
  display: none;
}

[data-bike-selection-model="service"] .bike-selector,
[data-bike-selection-model="service-participant"] .bike-selector {
  gap: 12px;
  padding-top: 2px;
}

[data-bike-selection-model="service"] .bike-grid,
[data-bike-selection-model="service-participant"] .bike-grid {
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 8px;
}

[data-bike-selection-model="service"] .bike-option,
[data-bike-selection-model="service-participant"] .bike-option {
  min-height: 48px;
  padding: 7px 9px;
}

@media (min-width: 901px) and (max-height: 850px) {
  body:has(#customer-header .customer-head) .customer-head-wrap {
    min-height: 0;
    padding: 8px var(--space-4) 0;
  }

  body:has(#customer-header .customer-head) .customer-head {
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 11px 16px;
    border-radius: 14px;
  }

  body:has(#customer-header .customer-head) .customer-photo-button {
    width: 70px;
    height: 70px;
  }

  body:has(#customer-header .customer-head) .customer-name-button {
    font-size: 28px;
    line-height: 1.15;
  }

  body:has(#customer-header .customer-head) .customer-head .contact-line {
    margin-top: 5px;
  }

  body:has(#customer-header .customer-head) .customer-head .chip-line {
    margin-top: 6px;
  }

  .unified-booking-page {
    gap: 10px;
    padding-top: 12px;
  }

  .reception-time-grid .slot {
    min-height: 44px;
  }
}

@media (max-width: 1280px) {
  .booking-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-workspace-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-booking-workspace .booking-workspace-sidebar {
    grid-template-columns: minmax(0, 430px);
  }
}

@media (max-width: 900px) {
  body:has(.unified-booking-page) #app {
    flex: 0 0 auto;
  }

  .b2b-squash-party {
    scroll-margin-top: 84px;
  }

  .booking-calendar-controls,
  .unified-service-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .unified-booking-page .service-summary {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-workspace-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .reception-time-calendar-head {
    display: grid;
  }

  .reception-time-calendar-head .legend {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .sidebar {
    grid-template-columns: 48px auto minmax(0, 1fr) auto;
  }

  .nav-list > .nav-button {
    display: none !important;
  }

  .nav-list > .nav-button.is-active,
  .nav-list:has(> .nav-button[data-view="booking"].is-active)
    > .nav-button[data-view="customers"]:not(.is-active),
  .nav-list:has(> .nav-button.is-active:not([data-view="booking"]))
    > .nav-button[data-view="booking"]:not(.is-active),
  .nav-list:not(:has(> .nav-button[data-view="booking"]))
    > .nav-button[data-view="customers"]:not(.is-active) {
    display: flex !important;
  }

  .mobile-nav-trigger {
    display: grid;
    width: 48px;
    min-height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
  }

  .mobile-nav-trigger:hover,
  .mobile-nav-trigger:focus-visible {
    background: #f1f3f5;
  }

  .mobile-nav-trigger .icon {
    width: 27px;
    height: 27px;
  }

  .customer-account-delete {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-account-delete button {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .hours-page .hours-form {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .booking-calendar-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-view-toggle {
    width: 100%;
  }

  .calendar-view-toggle .segment {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .booking-calendar .calendar-navigation {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .booking-calendar .calendar-date-input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .sidebar {
    grid-template-columns: 48px auto minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
    justify-content: stretch;
  }

  .sidebar > .nav-list {
    display: none;
  }

  .sidebar > .brand {
    display: flex;
    width: 106px;
    height: 54px;
    margin: 0;
    padding: 8px;
  }

  .sidebar > .brand img {
    width: 90px;
  }

  .sidebar > .admin-button {
    display: flex;
    grid-column: 4;
    width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 5px;
    justify-self: end;
  }

  .sidebar > .admin-button .admin-avatar {
    width: 38px;
    height: 38px;
  }
}

.hours-page-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  justify-content: start;
  gap: 12px;
}

.hours-page-heading .calendar-return {
  width: 48px;
  min-width: 48px;
  padding: 0;
}

#customer-header .customer-head {
  column-gap: 24px;
}

#customer-header .contact-line > :is(a, span) {
  min-width: 0;
}

#customer-header .contact-line > :is(a, span) > span {
  overflow-wrap: anywhere;
}

#customer-header .contact-line > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: inherit;
  text-decoration: none;
}

#customer-header .contact-line > a:hover,
#customer-header .contact-line > a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

#customer-header .contact-line .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Keep the vector product icon visible until its local image has real pixels. */
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand-logo,
.reception-auth-brand .brand-logo {
  display: block;
  width: 142px;
  max-width: 100%;
  height: auto;
  color: #fff;
}

/* This notice has a title and sentence only; the shared three-column notice grid
   otherwise squeezes its title into the icon column and paints it over the copy. */
.employee-account-detail > .inline-notice {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}
.employee-account-detail > .inline-notice > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.court-block-editor {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
}
.calendar-past-notice {
  margin: 0 0 16px;
  color: #875900;
  font-size: 14px;
  line-height: 1.5;
}

.court-block-editor > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.court-block-editor :is(h2, h3, p) {
  margin: 0;
}

.court-block-editor header p {
  margin-top: 4px;
  color: var(--muted);
}

.court-block-fields {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) repeat(2, minmax(180px, 1.15fr)) repeat(2, minmax(110px, 0.65fr));
  gap: 12px;
  align-items: end;
}

.court-block-fields :is(select, input, .shared-date-trigger) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
}

.court-block-note,
.court-block-error {
  grid-column: 1 / -2;
}

.court-block-save {
  grid-column: -2 / -1;
}

.court-block-editor .existing-blocks-section {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .court-block-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .court-block-note,
  .court-block-error,
  .court-block-save {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .court-block-editor > header {
    display: grid;
  }

  .court-block-editor > header > button,
  .court-block-fields,
  .court-block-fields > * {
    width: 100%;
  }

  .court-block-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #customer-header .customer-head {
    column-gap: 20px;
  }

  #customer-header .contact-line .icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}

/* Empty notes look and measure like every other empty customer field. */
:is(.new-customer-form, .profile-note-card) .floating-field-control:has(textarea) {
  min-height: 50px;
  grid-template-rows: 13px minmax(27px, auto);
  align-content: center;
  gap: 2px;
  padding: 3px 10px;
}

:is(.new-customer-form, .profile-note-card)
  .floating-field-control:has(textarea:placeholder-shown:not(:focus):not([aria-invalid="true"])) {
  grid-template-rows: 40px;
  gap: 0;
  padding-block: 4px;
}

:is(.new-customer-form, .profile-note-card)
  .floating-field-control:has(textarea:placeholder-shown:not(:focus):not([aria-invalid="true"]))
  > .floating-field-label {
  display: none;
}

:is(.new-customer-form, .profile-note-card)
  .floating-field-control:has(textarea:placeholder-shown:not(:focus):not([aria-invalid="true"]))
  textarea {
  align-self: center;
}

:is(.new-customer-form, .profile-note-card) .floating-field-control:has(textarea:focus) > .floating-field-label,
:is(.new-customer-form, .profile-note-card) .floating-field-control:has(textarea:not(:placeholder-shown)) > .floating-field-label {
  position: static;
  display: block;
}

:is(.new-customer-form, .profile-note-card) textarea.customer-access-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

:is(.new-customer-form, .profile-note-card) .floating-field-control:focus-within textarea.customer-access-input::placeholder {
  opacity: 0;
}

/* The textarea lives inside the floating control now; an old mobile rule put it
   into a second implicit row and made an empty note 77px tall. */
.profile-note-card .floating-field-control > textarea {
  grid-row: auto;
  grid-column: auto;
}

/* The account menu must not wash out the account photo and name that opened it. */
dialog.admin-menu-backdrop,
dialog.admin-menu-backdrop::backdrop {
  background: transparent;
  backdrop-filter: none;
}

/* Payment stays primary; changing who pays is a quiet, deliberate option. */
.payment-cost-option {
  display: grid;
  grid-column: 3 / -1;
  gap: 10px;
  padding: 0 0 12px;
}

.payment-cost-toggle {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.payment-cost-toggle > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.payment-cost-toggle small {
  color: var(--muted);
  font-weight: 400;
}

.payment-cost-toggle > .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 160ms ease;
  transform: rotate(90deg);
}

.payment-cost-option.is-open .payment-cost-toggle > .icon {
  transform: rotate(-90deg);
}

.payment-cost-option > .payment-payer-control {
  grid-column: auto;
  padding: 0;
}

.payment-page .charge-row {
  column-gap: 12px;
  padding-block: 12px;
}

.payment-page .charge-row > .payment-cost-option {
  padding-right: 12px;
}

.payment-page .payment-payer-control select {
  padding-right: 40px;
  text-overflow: ellipsis;
}

.payment-transfer-row > .payment-cost-option {
  grid-column: auto;
  padding: 0;
}

/* Icon and word form one horizontal, vertically centered payment choice. */
.method-card {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: normal;
  gap: 8px;
}

.method-card .icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

/* No-balance is a compact useful state, not a large unexplained empty card. */
.payment-page.payment-page--empty {
  display: block;
  min-height: 0;
  overflow-y: auto;
}

.payment-empty-heading {
  display: flex;
  max-width: 720px;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-empty-heading :is(h1, p),
.payment-empty-state :is(p, strong) {
  margin: 0;
}

.payment-empty-heading h1 {
  font-size: 32px;
}

.payment-empty-heading p,
.payment-empty-state p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.page-back-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.page-back-button .icon {
  width: 21px;
  height: 21px;
}

.page-heading > .page-back-button {
  margin-right: 12px;
}

.page-heading > .page-back-button + h1 {
  margin-right: auto;
}

.standalone-page-back {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.payment-empty-state {
  display: grid;
  max-width: 720px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

/* Every reception page begins and ends on the same visible content lines. */
.search-page {
  padding-right: var(--space-6);
  padding-left: var(--space-6);
}

@media (max-width: 900px) {
  .search-page {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }
}

.payment-empty-state > .icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
}

.payment-empty-state strong {
  display: block;
  font-size: 18px;
}

@media (max-width: 900px) {
  .payment-cost-option {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .payment-empty-heading h1 {
    font-size: 28px;
  }

  .payment-empty-state {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .payment-empty-state > .icon {
    width: 44px;
    height: 44px;
  }

  .payment-empty-state > .secondary {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .admin-page > .page-heading {
    flex-wrap: wrap;
  }

  .admin-page > .page-heading > .page-back-button {
    margin-right: 0;
  }

  .admin-page > .page-heading > h1 {
    min-width: 0;
  }

  .admin-page > .page-heading > :is(.primary, .secondary:not(.page-back-button), .page-heading-actions) {
    width: 100%;
    flex: 1 0 100%;
  }
}

@media (min-width: 901px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
  }

  .admin-page:has(.staff-card) .admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .staff-card img {
    width: 112px;
    height: 112px;
    max-width: 112px;
    justify-self: start;
    object-fit: cover;
  }
}

.sidebar,
.nav-list,
.subnav {
  max-width: 100%;
  overflow-x: hidden;
}

.customer-head {
  border: 0;
}

:is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  outline: 0;
  box-shadow: none;
}

.field-label :is(input, select, textarea):focus-visible {
  border-color: #dfe3e8;
  background-color: #fff;
}

.floating-field-control:focus-within:not(:has([aria-invalid="true"])) {
  border-color: #b9b9b9;
  background: #fff;
  box-shadow: none;
  outline: 0;
}

body[data-support-audience="customer"] .customer-access-panel .floating-field-control {
  min-height: 50px;
  grid-template-rows: 40px;
  gap: 0;
  padding: 4px 10px;
}

body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:has(:is(input, textarea):placeholder-shown:not(:focus):not([aria-invalid="true"]))
  > .floating-field-label {
  display: none;
}

body[data-support-audience="customer"] .customer-access-panel .customer-access-input {
  height: 40px;
  min-height: 40px;
  padding: 0;
  text-align: left;
  line-height: 40px;
}

body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:focus-within,
body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:has(:is(input, textarea):not(:placeholder-shown)) {
  grid-template-rows: 13px 27px;
  gap: 2px;
}

body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:focus-within
  .customer-access-input,
body[data-support-audience="customer"]
  .customer-access-panel
  .floating-field-control:has(:is(input, textarea):not(:placeholder-shown))
  .customer-access-input {
  height: 27px;
  min-height: 27px;
  line-height: 27px;
}

.modal {
  scrollbar-gutter: stable;
  background-clip: padding-box;
  clip-path: none;
}

.modal::-webkit-scrollbar-track {
  margin-block: 18px;
}

.slot.is-selected {
  border-color: var(--booked);
  background: var(--booked);
  color: #fff;
}

.slot.is-selected small {
  color: #fff;
}

.calendar-appointment-people strong {
  font-weight: 700;
}
.appointment-time-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.appointment-time-fields>.field-label:last-child{grid-column:1/-1}
.appointment-time-selection{margin:12px 0;color:#334155;font-size:14px}
@media(max-width:600px){.appointment-time-fields{grid-template-columns:minmax(0,1fr)}}


/* A fill identifies keyboard focus without adding a second field frame. */
body[data-support-audience="staff"] .shared-date-trigger:focus-visible {
  outline: 0;
}
html[data-input-mode="keyboard"] body[data-support-audience="staff"]
  :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .shared-date-trigger):focus-visible,
html[data-input-mode="keyboard"] body[data-support-audience="staff"]
  :is(.customer-picker-search, .floating-field-control, .price-input):focus-within {
  background-color: #eef4ff;
}
.article-photo-upload {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 16px;
  padding: 16px;
  background: #fafafa;
}
.article-photo-preview {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.article-photo-preview img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.article-photo-placeholder {
  grid-area: 1 / 1;
  color: var(--muted);
}
.article-photo-placeholder .icon {
  display: block;
  width: 32px;
  height: 32px;
}
.article-photo-preview:has(img:not([hidden])) .article-photo-placeholder,
.article-photo-upload [hidden] {
  display: none;
}
.article-photo-controls {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.article-photo-label {
  font-size: 14px;
}
.article-photo-label > span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
}
.article-photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-photo-actions > button {
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}
.article-photo-actions > .photo-reset {
  flex: 0 0 44px;
  padding: 0;
}
.article-photo-upload > small {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 18px;
}
@media (max-width: 560px) {
  .article-photo-upload {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .article-photo-preview {
    width: 64px;
    height: 64px;
  }
}

/* Corrections use the same floating controls as customer creation. */
.correction-value-fields.new-customer-form {
  margin: 20px 0;
  align-items: start;
}
.new-customer-form .floating-field-control select.customer-access-input {
  height: 40px;
  min-height: 40px;
  padding: 13px 0 0;
  border: 0;
  border-radius: 0;
}
.new-customer-form .floating-field-control .shared-date-trigger {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Studio totals retain a visible link between each number and its saved records. */
.dashboard-page { display:flex; flex-direction:column; gap:22px; padding-bottom:84px; }
.dashboard-heading { align-items:center; justify-content:space-between; margin:0; }
.dashboard-heading>div { margin-right:auto; text-align:left; }
.dashboard-heading h1 { margin:5px 0 6px; }
.dashboard-heading p,.dashboard-page header p,.dashboard-appointments>p,.dashboard-debts>p { color:#64718a; font-size:14px; margin:5px 0 0; }
.dashboard-live { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border-radius:20px; background:#eaf6ef; color:#137447; font-size:13px; white-space:nowrap; }
.dashboard-live i,.dashboard-key i { width:7px; height:7px; border-radius:50%; background:#178850; }
.dashboard-period,.dashboard-presets,.dashboard-date-range { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dashboard-period { justify-content:space-between; }
.dashboard-date-range { align-items:flex-end; }
.dashboard-date-range label { margin:0; width:156px; font-size:13px; gap:4px; }
.dashboard-date-range .shared-date-trigger { min-height:44px; padding:9px 12px; }
#dashboard-range-error { flex-basis:100%; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dashboard-metric { display:flex; flex-direction:column; gap:12px; padding:22px; min-width:0; }
.dashboard-metric>span { font-size:14px; color:#526079; }
.dashboard-metric>strong { font-size:clamp(24px,2.45vw,36px); letter-spacing:-.7px; line-height:1.2; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.dashboard-metric>small { color:#64718a; line-height:1.45; font-size:12px; }
.dashboard-net { background:#13794b; border-color:#13794b; color:white; }
.dashboard-net>span,.dashboard-net>small { color:#e5f6ec; }
.dashboard-net.is-negative { background:#a22b31; border-color:#a22b31; }
.dashboard-definition { color:#64718a; font-size:13px; line-height:1.6; margin:-8px 0 0; max-width:920px; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); gap:18px; }
.dashboard-columns>.card { min-width:0; padding:22px; }
.dashboard-columns header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.dashboard-columns h2 { font-size:20px; font-weight:600; margin:0; }
.dashboard-key { display:flex; gap:12px; flex-wrap:wrap; color:#64718a; font-size:11px; }
.dashboard-key span { display:flex; align-items:center; gap:5px; }
.dashboard-key span+span i { background:#de787b; }
.dashboard-chart { display:grid; grid-template-columns:repeat(var(--dashboard-days),minmax(0,1fr)); gap:5px; height:210px; margin:28px 0 14px; border-bottom:1px solid #e3e8ee; }
.dashboard-day { min-width:0; max-width:95px; margin:0 auto; width:100%; display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 1px; border:0; background:none; position:relative; border-radius:5px; }
.dashboard-bars { display:flex; gap:2px; justify-content:center; align-items:flex-end; height:174px; width:100%; border-bottom:2px solid #e3e8ee; }
.dashboard-bars i { display:block; width:36%; max-width:24px; min-height:0; background:#178850; border-radius:4px 4px 0 0; }
.dashboard-bars i+i { background:#de787b; }
.dashboard-day>small { color:#64718a; font-size:10px; white-space:nowrap; }
.dashboard-day-detail { display:none; pointer-events:none; position:absolute; z-index:3; left:50%; transform:translateX(-50%); bottom:55px; width:175px; padding:10px; border-radius:8px; background:#20352b; color:white; text-align:left; font-size:12px; line-height:1.5; box-shadow:0 4px 15px #0002; }
.dashboard-day:hover .dashboard-day-detail,.dashboard-day:focus-visible .dashboard-day-detail { display:block; }
.dashboard-day:first-child .dashboard-day-detail { left:0; transform:none; }
.dashboard-day:last-child .dashboard-day-detail { left:auto; right:0; transform:none; }
.dashboard-methods { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:baseline; color:#64718a; font-size:13px; padding-top:6px; }
.dashboard-methods strong { color:#20352b; margin-left:6px; font-size:16px; font-variant-numeric:tabular-nums; }
.dashboard-appointments>header>strong { color:#13794b; font-size:28px; line-height:1; }
.dashboard-service { display:flex; justify-content:space-between; gap:10px; padding:11px 0; border-bottom:1px solid #eef1f4; font-size:14px; }
.dashboard-appointments>div { margin:14px 0 18px; }
.dashboard-appointments>.secondary { width:100%; }
.dashboard-receipts>header,.dashboard-debts>header { margin-bottom:12px; }
.dashboard-receipt { display:grid; grid-template-columns:34px minmax(0,1fr) auto 16px; align-items:center; gap:12px; width:100%; text-align:left; padding:14px 0; border:0; border-bottom:1px solid #eef1f4; border-radius:0; background:none; }
.dashboard-receipt>span:nth-child(2) { display:flex; flex-direction:column; gap:4px; min-width:0; }
.dashboard-receipt strong { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.dashboard-receipt small { font-size:12px; color:#64718a; line-height:1.45; }
.dashboard-receipt-icon { height:34px; border-radius:10px; display:grid; place-items:center; background:#eaf6ef; color:#13794b; }
.dashboard-receipt-icon .icon { width:18px; height:18px; }
.dashboard-receipt-amount { color:#13794b; white-space:nowrap; font-variant-numeric:tabular-nums; }
.dashboard-receipt .is-refund { color:#b54b50; }
.dashboard-receipt-icon.is-refund { background:#fff0f1; }
.dashboard-receipts>.secondary { margin-top:16px; width:100%; }
.dashboard-debts header>span { color:#64718a; font-size:13px; white-space:nowrap; }
.dashboard-debt { display:grid; grid-template-columns:minmax(0,1fr) auto 16px; align-items:center; gap:10px; text-align:left; width:100%; padding:14px 0; border:0; border-bottom:1px solid #eef1f4; background:none; border-radius:0; font-size:14px; }
.dashboard-debt>span { overflow-wrap:anywhere; }
.dashboard-debt>strong { color:#b54b50; white-space:nowrap; }
.dashboard-empty { font-size:14px; color:#64718a; line-height:1.6; padding:20px 0; }
.admin-knowledge-page { max-width:1100px; padding-bottom:100px; }
.admin-knowledge-page .page-heading { justify-content:flex-start; text-align:left; }
.admin-knowledge-page .page-heading p { color:#64718a; margin:6px 0 0; }
.knowledge-editor { padding:24px; }
.knowledge-editor>p { color:#526079; line-height:1.6; margin:0 0 22px; max-width:760px; }
.knowledge-field { width:100%; }
.knowledge-field textarea { min-height:260px; max-height:55vh; line-height:1.6; padding:14px; resize:vertical; }
.knowledge-details { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:#64718a; font-size:12px; margin:10px 0 24px; }
.knowledge-conflict { background:#fff5df; border-radius:12px; padding:16px; margin-bottom:20px; }
.knowledge-conflict p { margin:0 0 12px; line-height:1.6; }
.knowledge-actions { display:flex; justify-content:space-between; align-items:center; gap:20px; }
#knowledge-save-status { font-size:14px; line-height:1.5; }
.knowledge-actions>.primary { min-width:160px; }
.knowledge-actions>.secondary { margin-left:auto; }
@media(max-width:600px) { .knowledge-editor { padding:16px; } .knowledge-actions { flex-wrap:wrap; } .knowledge-actions>button { width:100%; } .knowledge-field textarea { min-height:230px; } }
@media(max-width:1150px) { .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-columns { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { .dashboard-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; } .dashboard-metrics { gap:10px; } .dashboard-metric { padding:16px; gap:10px; } .dashboard-metric>strong { font-size:25px; } .dashboard-period { gap:16px; } .dashboard-date-range { display:grid; grid-template-columns:1fr 1fr; width:100%; } .dashboard-date-range label { width:auto; min-width:0; } .dashboard-date-range>.secondary { grid-column:1/-1; } .dashboard-presets { gap:6px; } .dashboard-presets .filter-button { font-size:13px; padding:10px 12px; } .dashboard-columns>.card { padding:16px; } .dashboard-columns header { flex-wrap:wrap; } .dashboard-receipt { grid-template-columns:minmax(0,1fr) auto 14px; gap:8px; } .dashboard-receipt-icon { display:none; } .dashboard-day>small { font-size:8px; } .dashboard-chart { gap:2px; } }
