/* Customer login and /my shell. Colours come from /theme.css. */

body.cu-body {
  font-family: var(--at-font);
  background: var(--at-canvas);
  color: var(--at-ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.theme-skincare.cu-body {
  background: #fdf5e8;
  color: var(--at-secondary, #0a3366);
}

body.theme-medical.cu-body {
  background: #f4f9fc;
  color: var(--at-secondary, #031b4e);
}

body.theme-nourish.cu-body {
  background: var(--nv-cream, #f4f0e8);
  color: var(--nv-ink, var(--at-secondary));
}

body.theme-purebelle.cu-body:not(.cu-body--app) {
  background: #f6f3ec;
  color: #2c2a26;
}

.cu-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.cu-brand img,
.cu-auth-logo {
  display: block;
  height: calc(2.25rem * var(--at-logo-scale, 1));
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.cu-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logged-in bar ------------------------------------------------------- */

.cu-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.6rem 1.1rem;
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  background: var(--at-surface);
  border-bottom: 1px solid var(--at-line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--at-primary) 22%, transparent);
}

.cu-bar-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.cu-bar-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--at-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.cu-bar-nav a.is-active {
  color: var(--at-secondary, var(--at-ink));
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
}

.cu-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.cu-bar-cta,
.cu-bar-out,
.cu-btn,
.cu-auth-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}

.cu-bar-cta,
.cu-btn,
.cu-auth-book {
  background: var(--at-primary);
  color: #fff;
}

.cu-bar-cta:hover,
.cu-btn:hover,
.cu-auth-book:hover,
.cu-body .btn-primary:hover {
  color: #fff;
  background: color-mix(in srgb, var(--at-primary) 85%, #000);
  border-color: transparent;
}

.cu-body .btn-primary {
  background: var(--at-primary);
  border-color: var(--at-primary);
  color: #fff;
}

.cu-body .form-control:focus,
.cu-body .form-select:focus {
  border-color: color-mix(in srgb, var(--at-primary) 55%, var(--at-line));
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--at-primary) 16%, transparent);
}

.cu-bar-out {
  background: transparent;
  color: var(--at-muted);
  border: 1px solid var(--at-line);
}

.cu-main {
  flex: 1;
}

.cu-wrap {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.cu-dash {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.cu-intro,
.cu-dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.cu-intro {
  position: relative;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1.25rem;
  overflow: hidden;
}

.cu-intro__copy {
  min-width: 0;
  flex: 1 1 12rem;
}

.cu-intro h1,
.cu-dash__head h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--at-secondary, var(--at-ink));
}

.cu-intro p,
.cu-dash__head p {
  margin: 0.25rem 0 0;
  color: var(--at-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cu-dash__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--at-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cu-dash__cta:hover {
  color: #fff;
  background: color-mix(in srgb, var(--at-primary) 85%, #000);
}

.cu-dash__hero,
.cu-dash__grid {
  display: grid;
  gap: 1rem;
}

.cu-me,
.cu-promo,
.cu-card {
  position: relative;
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1.25rem;
  overflow: hidden;
}

.cu-me,
.cu-card {
  padding: 1.15rem 1.2rem 1.25rem;
}

.cu-me__who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.cu-me__who strong,
.cu-row__body strong,
.cu-shortcuts strong {
  display: block;
  font-weight: 700;
}

.cu-me__who span,
.cu-row__body span,
.cu-shortcuts span {
  color: var(--at-muted);
  font-size: 0.82rem;
}

.cu-me__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--at-muted);
  font-size: 0.88rem;
}

.cu-me__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cu-avatar {
  flex: 0 0 auto;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--at-primary) 16%, #fff);
  color: var(--at-primary);
}

.cu-avatar i {
  font-size: 1.55rem;
  line-height: 1;
}

.cu-avatar--sm {
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  border: 0;
}

.cu-promo {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  display: block;
}

.cu-promo picture {
  position: absolute;
  inset: 0;
  display: block;
}

.cu-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cu-promo__copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(to top, rgba(32, 30, 26, 0.62), transparent 58%);
  color: #fff;
}

.cu-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.cu-kicker--ink {
  color: var(--at-muted);
  opacity: 1;
  letter-spacing: 0.04em;
}

.cu-intro__sprig,
.cu-appt-hero__sprig,
.cu-ticket__sprig {
  position: absolute;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

.cu-intro__sprig {
  left: -1.4rem;
  bottom: -1.8rem;
  width: 8.5rem;
  opacity: 0.55;
}

.cu-card--flora {
  background-image: url("/themes/purebelle/images/svg/botanical-sprig-b.svg");
  background-repeat: no-repeat;
  background-position: bottom -2.2rem left -2.4rem;
  background-size: 10rem;
}

.cu-promo__copy h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.cu-promo__copy p:last-child {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.92;
}

.cu-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.cu-card__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.cu-card__head a {
  color: var(--at-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.cu-seg {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--at-primary) 8%, var(--at-surface));
}

.cu-seg button,
.cu-seg a {
  border: 0;
  background: transparent;
  color: var(--at-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
}

.cu-seg button.is-active,
.cu-seg a.is-active {
  background: var(--at-surface);
  color: var(--at-secondary, var(--at-ink));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cu-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cu-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.45rem 0.15rem;
}

.cu-row > a.stretched-link {
  position: absolute;
  inset: 0;
}

.cu-row__thumb {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.cu-row__body {
  min-width: 0;
}

.cu-row__body strong {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.cu-row__thumb--mark {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
  color: var(--at-primary);
}

.cu-row__pay {
  text-align: start;
}

.cu-row__pay b {
  display: block;
  font-size: 0.88rem;
}

.cu-row__pay em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--at-muted);
}

.cu-row__pay em.is-paid {
  color: #2f6b45;
}

.cu-row__act {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cu-row__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--at-line);
  background: var(--at-surface);
  color: var(--at-secondary, var(--at-ink));
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.cu-row__act > span,
.cu-ticket__actions > span {
  display: grid;
}

button.cu-row__view,
button.cu-ticket__view {
  font: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
}

.cu-row__view--danger,
.cu-ticket__view--danger {
  background: #c43b32;
  border-color: transparent;
  color: #fff;
}

.cu-row__view--danger:hover:not(:disabled),
.cu-ticket__view--danger:hover:not(:disabled) {
  background: #a72f28;
  color: #fff;
}

.cu-row__view:disabled,
.cu-ticket__view:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.48;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .cu-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.4rem 0.7rem;
    padding: 0.65rem 0.1rem;
  }

  .cu-row__thumb {
    grid-row: 1 / 3;
    align-self: start;
  }

  .cu-row__body,
  .cu-row__pay {
    grid-column: 2;
    min-width: 0;
  }

  .cu-row__body span {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
  }

  .cu-row__pay {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.2rem 0.75rem;
  }

  .cu-row__pay b,
  .cu-row__pay em {
    display: inline;
  }

  .cu-row__act {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 0.2rem;
  }
}

.cu-shortcuts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cu-shortcuts li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.cu-shortcuts i {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--at-primary) 10%, #fff);
  color: var(--at-primary);
  flex: 0 0 auto;
}

.cu-empty--soft {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 1.1rem 0.25rem;
}

.cu-empty--garden {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.75rem 0.5rem 1.4rem;
  text-align: center;
}

.cu-empty--garden img {
  width: 6.5rem;
  opacity: 0.7;
}

.cu-tickets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.cu-tickets--stack {
  grid-template-columns: 1fr;
}

.cu-card__head--stack h2 {
  white-space: nowrap;
}

.cu-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid var(--at-line);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--at-surface) 92%, #fff);
  overflow: hidden;
}

.cu-ticket__date {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.55rem 0.2rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--at-primary) 10%, #fff);
  color: var(--at-secondary, var(--at-ink));
}

.cu-ticket__date b {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.cu-ticket__date span,
.cu-ticket__date em {
  font-size: 0.72rem;
  font-style: normal;
}

.cu-ticket__body {
  min-width: 0;
}

.cu-ticket__body strong {
  display: block;
  font-weight: 800;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.cu-ticket__body > span {
  display: block;
  margin: 0.15rem 0 0.4rem;
  color: var(--at-muted);
  font-size: 0.82rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cu-ticket__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  grid-column: 1 / -1;
}

.cu-ticket__aside > b {
  font-size: 0.92rem;
}

.cu-ticket__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-inline-start: auto;
}

.cu-ticket__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--at-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.cu-ticket__view:hover:not(:disabled) {
  color: #fff;
  background: color-mix(in srgb, var(--at-primary) 85%, #000);
}

.cu-ticket__sprig {
  left: -1.6rem;
  bottom: -2rem;
  width: 7rem;
  opacity: 0.28;
}

.cu-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
  color: var(--at-secondary, var(--at-ink));
}

.cu-pill--wait {
  background: #fff3cd;
  color: #7a5b00;
}

.cu-pill--ok {
  background: color-mix(in srgb, var(--at-primary) 16%, #fff);
  color: var(--at-primary);
}

.cu-pill--done {
  background: #e7f6ed;
  color: #1f6b3a;
}

.cu-pill--off {
  background: #eee;
  color: #666;
}

.cu-pill--follow {
  background: #fff4e0;
  color: #8a5a12;
}

.cu-pill--miss {
  background: #fde8e8;
  color: #9b2c2c;
}

.cu-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--at-line);
  color: var(--at-muted);
  font-size: 0.86rem;
}

.cu-pager div {
  display: flex;
  gap: 0.4rem;
}

.cu-pager a,
.cu-pager .is-off {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--at-line);
  text-decoration: none;
  color: var(--at-secondary, var(--at-ink));
  font-weight: 700;
  background: var(--at-surface);
}

.cu-pager .is-off {
  opacity: 0.45;
}

.cu-appt-hero {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.2rem 1.3rem;
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1.45rem;
  overflow: hidden;
}

.cu-appt-hero h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.45;
}

.cu-appt-hero p {
  margin: 0.3rem 0 0;
  color: var(--at-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cu-appt-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.cu-appt-hero__chips span {
  font-size: 0.82rem;
  color: var(--at-muted);
}

.cu-appt-hero__date {
  display: grid;
  justify-items: center;
  align-self: start;
  gap: 0.1rem;
  min-width: 5.2rem;
  padding: 0.7rem 0.6rem;
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
}

.cu-appt-hero__date b {
  font-size: 1.7rem;
  line-height: 1;
}

.cu-appt-hero__sprig {
  right: -1.8rem;
  top: -1.2rem;
  width: 9rem;
  opacity: 0.45;
  transform: rotate(18deg);
}

.cu-detail__photo {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--at-line);
}

.cu-detail__photo img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.cu-card--form {
  max-width: none;
  overflow: visible;
}

.cu-dash .cu-card--form {
  position: relative;
}

.cu-detail,
.cu-detail__main,
.cu-detail__side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.cu-svcs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cu-svcs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--at-line);
}

.cu-svcs li:last-child {
  border-bottom: 0;
}

.cu-svcs strong,
.cu-svcs b {
  display: block;
  font-weight: 700;
}

.cu-svcs span {
  display: block;
  margin-top: 0.15rem;
  color: var(--at-muted);
  font-size: 0.8rem;
}

.cu-svcs__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--at-primary) 8%, var(--at-surface));
  font-weight: 800;
}

@media (min-width: 992px) {
  .cu-dash__hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: start;
  }

  .cu-dash__hero > * {
    min-width: 0;
  }

  .cu-dash__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .cu-intro h1,
  .cu-dash__head h1 {
    font-size: 1.7rem;
  }

  .cu-intro .cu-dash__cta,
  .cu-intro .cu-ghost {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
  }

  .cu-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    align-items: start;
  }

  .cu-promo {
    aspect-ratio: auto;
    height: 14.25rem;
    max-height: 14.25rem;
  }

  .cu-tickets {
    grid-template-columns: 1fr 1fr;
  }

  .cu-tickets--stack {
    grid-template-columns: 1fr;
  }

  .cu-ticket {
    grid-template-columns: 5.2rem minmax(0, 1fr) auto;
  }

  .cu-ticket__aside {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 9.5rem;
  }

  .cu-appt-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .cu-appt-hero .cu-ghost {
    width: auto;
    justify-self: start;
  }

  body.theme-purebelle.cu-body--app .cu-dash__hero {
    grid-template-columns: minmax(20rem, 24rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 1.15rem;
  }

  body.theme-purebelle.cu-body--app .cu-dash__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr) minmax(16.5rem, 0.95fr);
    gap: 1.15rem;
  }

  body.theme-purebelle.cu-body--app .cu-promo {
    height: auto;
    min-height: 15.5rem;
    max-height: none;
  }
}

.cu-me__book {
  display: none;
}

@media (max-width: 991.98px) {
  .cu-dash__cta,
  .cu-intro .cu-ghost,
  .cu-appt-hero .cu-ghost {
    width: 100%;
  }

  .cu-intro--home {
    display: none;
  }

  .cu-me__book {
    display: inline-flex;
    width: 100%;
    margin-top: 0.55rem;
  }

  .cu-card--aside {
    display: none;
  }
}

.cu-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.cu-pagehead h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--at-secondary, var(--at-ink));
}

.cu-pagehead p {
  margin: 0.25rem 0 0;
  color: var(--at-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cu-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--at-secondary, var(--at-ink));
}

.cu-muted {
  color: var(--at-muted);
}

.cu-empty {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1.15rem;
}

.cu-empty p {
  margin: 0;
  color: var(--at-muted);
}

.cu-panel,
.cu-appt,
.cu-past-card {
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1.15rem;
}

.cu-panel {
  padding: 1.15rem 1.2rem 1.25rem;
  overflow: hidden;
}

.cu-panel--form {
  max-width: 42rem;
}

.cu-panel--flush {
  padding: 0;
}

.cu-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cu-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--at-secondary, var(--at-ink));
}

.cu-panel__hint {
  margin: 0 0 0.9rem;
  color: var(--at-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.cu-dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.cu-dl > div {
  display: grid;
  gap: 0.2rem;
}

.cu-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--at-muted);
}

.cu-dl dd {
  margin: 0;
  font-weight: 600;
}

.cu-dl__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--at-muted);
}

.cu-dl--pay > div {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.cu-dl__strong {
  font-weight: 800;
  color: var(--at-primary);
}

.cu-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.cu-note--ok {
  background: color-mix(in srgb, #198754 12%, #fff);
  color: #0f5132;
}

.cu-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--at-line);
  background: transparent;
  color: var(--at-secondary, var(--at-ink));
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.cu-ghost:hover {
  border-color: var(--at-primary);
  color: var(--at-primary);
  background: color-mix(in srgb, var(--at-primary) 8%, #fff);
}

.cu-ghost--danger {
  color: #b42318;
}

.cu-ghost--danger:hover {
  border-color: #b42318;
  color: #b42318;
  background: color-mix(in srgb, #b42318 8%, #fff);
}

.cu-appt {
  padding: 1.1rem 1.15rem 1.2rem;
}

.cu-appt__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--at-muted);
}

.cu-appt__meta li + li {
  margin-top: 0.35rem;
}

.cu-table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: color-mix(in srgb, var(--at-primary) 6%, transparent);
}

.cu-table > :not(caption) > * > * {
  padding: 0.85rem 1rem;
  border-color: var(--at-line);
  background: transparent;
}

.cu-table thead th,
.cu-table tfoot th {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--at-muted);
  background: color-mix(in srgb, var(--at-primary) 6%, var(--at-surface));
}

.cu-body .form-control,
.cu-body .form-select {
  min-height: 2.85rem;
  border-radius: 0.85rem;
  border-color: var(--at-line);
}

.cu-body .badge.bg-primary {
  background: var(--at-primary) !important;
}

.cu-body .modal-content {
  border-radius: 1.1rem;
  border-color: var(--at-line);
}

.cu-appt .card-body,
.cu-body .cu-appt.card {
  border-radius: 1rem;
}

.cu-appt__foot,
.cu-past-card .cu-appt__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cu-past-cards {
  display: grid;
  gap: 0.75rem;
}

.cu-past-card {
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
}

.cu-body .card {
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  box-shadow: none;
}

.cu-body .card-header {
  background: transparent;
  border-bottom-color: var(--at-line);
}

.cu-time {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--at-primary);
  font-variant-numeric: tabular-nums;
}

.cu-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  color: var(--at-muted);
  font-size: 0.85rem;
}

.cu-foot a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.cu-dock {
  display: none;
}

/* Login --------------------------------------------------------------- */

.cu-auth-body {
  background:
    radial-gradient(48rem 22rem at 100% -10%, color-mix(in srgb, var(--at-primary) 14%, transparent), transparent 70%),
    var(--at-canvas);
}

body.theme-skincare.cu-auth-body {
  background:
    radial-gradient(48rem 22rem at 100% -10%, color-mix(in srgb, var(--at-primary) 16%, transparent), transparent 70%),
    #fdf5e8;
}

body.theme-medical.cu-auth-body {
  background:
    radial-gradient(48rem 22rem at 100% -10%, color-mix(in srgb, var(--at-primary) 16%, transparent), transparent 70%),
    #f4f9fc;
}

body.theme-nourish.cu-auth-body {
  background:
    radial-gradient(48rem 22rem at 100% -10%, color-mix(in srgb, var(--at-accent, #c8945a) 18%, transparent), transparent 70%),
    var(--nv-cream, #f4f0e8);
}

.cu-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.85rem + env(safe-area-inset-top)) 1.1rem 0.85rem;
}

.cu-auth-home {
  color: var(--at-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.cu-auth {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem 1.5rem;
}

.cu-auth-frame {
  display: grid;
  width: min(56rem, 100%);
  margin: 0 auto;
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: 1.25rem;
  overflow: hidden;
}

.cu-auth-brand-panel {
  display: none;
  padding: 2.25rem 2rem;
  background: color-mix(in srgb, var(--at-primary) 8%, var(--at-surface));
}

.cu-auth-book {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.cu-auth-logo {
  height: calc(3.25rem * var(--at-logo-scale, 1));
  max-width: 11rem;
  margin-bottom: 1.1rem;
}

.cu-auth-clinic {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
}

.cu-auth-tagline {
  margin: 0 0 1.25rem;
  color: var(--at-muted);
  line-height: 1.7;
}

.cu-auth-card {
  padding: 1.5rem 1.25rem 1.35rem;
}

.cu-auth-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--at-secondary, var(--at-ink));
}

.cu-auth-lead,
.cu-auth-hint {
  color: var(--at-muted);
  margin-bottom: 1.1rem;
  line-height: 1.7;
}

.cu-auth-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--at-radius-sm);
  background: color-mix(in srgb, var(--at-accent, #f5a623) 16%, #fff);
  color: var(--at-secondary, var(--at-ink));
  font-size: 0.85rem;
  line-height: 1.65;
}

.cu-auth-card .form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cu-input {
  min-height: 3rem;
  text-align: center;
  font-size: 1.05rem;
  border-radius: 0.85rem;
  direction: ltr;
}

.cu-input-code {
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.cu-btn {
  width: 100%;
  margin-top: 0.9rem;
}

.cu-resend {
  width: 100%;
  margin-top: 0.35rem;
  color: var(--at-muted);
  text-decoration: none;
}

.cu-auth-profile {
  margin-top: 0.9rem;
}

.cu-auth-profile .cu-input {
  direction: rtl;
  text-align: start;
}

.cu-auth-staff {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--at-muted);
}

.cu-auth-staff a {
  color: var(--at-primary);
  text-decoration: none;
  font-weight: 600;
}

.cu-auth-body .cu-foot {
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .cu-auth-top {
    width: min(56rem, calc(100% - 2rem));
    margin: 0 auto;
    justify-content: flex-end;
    padding-inline: 0;
  }

  .cu-auth-top .cu-brand {
    display: none;
  }

  .cu-auth-frame {
    grid-template-columns: 1fr 1.15fr;
    min-height: 28rem;
  }

  .cu-auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cu-auth-card {
    padding: 2.25rem 2rem;
  }

  .cu-auth-card h1 {
    font-size: 1.6rem;
  }
}

@media (min-width: 992px) {
  .cu-bar-nav {
    display: flex;
  }

  .cu-bar-actions {
    margin-inline-start: 0;
  }

  .cu-wrap {
    padding-top: 2rem;
  }

  .cu-pagehead h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 991.98px) {
  .cu-bar-cta {
    display: none;
  }

  .cu-bar-out {
    min-width: 2.75rem;
    padding-inline: 0.75rem;
  }

  .cu-main {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .cu-body:not(.cu-auth-body) .cu-foot {
    display: none;
  }

  .cu-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    background: var(--at-secondary, #1c2430);
    color: #fff;
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
  }

  .cu-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.35rem 0.15rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
  }

  .cu-dock a i,
  .cu-dock a i::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
    font-weight: 900 !important;
    font-size: 1.12rem;
    line-height: 1;
    color: inherit !important;
    -webkit-text-fill-color: currentColor;
  }

  .cu-dock a.is-active {
    color: #fff;
    font-weight: 700;
  }

  .cu-dock a.is-active i,
  .cu-dock a.is-active i::before {
    color: var(--at-primary) !important;
    -webkit-text-fill-color: currentColor;
  }

  body.theme-purebelle .cu-dock {
    grid-template-columns: repeat(5, 1fr);
    background: #fffcf7;
    color: #2c2a26;
    box-shadow: none;
    border-top: 1px solid #e6e0d4;
  }

  body.theme-purebelle .cu-dock a {
    color: #7a7468;
  }

  body.theme-purebelle .cu-dock a.is-active {
    color: #556349;
  }

  .cu-time {
    font-size: 1.25rem;
  }

  .cu-auth-top .cu-brand span {
    max-width: 11rem;
  }

  .cu-pagehead {
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .cu-wrap {
    width: calc(100% - 1.4rem);
    padding-top: 1.15rem;
  }

  .cu-card__head--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .cu-card__head--stack h2 {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cu-card__head--stack .cu-seg {
    display: flex;
    width: 100%;
  }

  .cu-card__head--stack .cu-seg a {
    flex: 1 1 0;
    text-align: center;
    padding: 0.42rem 0.35rem;
  }
}
