/*
 * Subtle Agenda workspace polish.
 * Reversible: remove this stylesheet link from index.html to restore the
 * exact previous Agenda presentation. Shared header/car animations untouched.
 */

html:not(.custodio-concept-3) .workspace-agenda-head {
  align-items: center;
  margin-bottom: 10px;
}

html:not(.custodio-concept-3) .workspace-agenda-actions {
  margin-bottom: 15px;
}

html:not(.custodio-concept-3) .workspace-agenda-action {
  min-height: 62px;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 11px;
  padding: 10px 13px;
  border-color: rgba(109, 32, 197, .13);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 7, 58, .14);
  transition: transform .14s ease, box-shadow .14s ease;
}

html:not(.custodio-concept-3) .workspace-agenda-action:active {
  box-shadow: 0 7px 16px rgba(31, 7, 58, .12);
  transform: scale(.99);
}

html:not(.custodio-concept-3) .workspace-agenda-action strong {
  font-size: 14px;
}

html:not(.custodio-concept-3) .workspace-agenda-action small {
  margin-top: 3px;
  font-size: 10px !important;
}

html:not(.custodio-concept-3) .workspace-agenda-action > b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #6d20c5;
  background: #f3eafa;
  font-size: 19px;
}

html:not(.custodio-concept-3) .workspace-agenda-plus {
  position: relative;
  width: 38px;
  height: 38px;
  background: #7020bf;
  font-size: 26px;
}

html:not(.custodio-concept-3) .workspace-agenda-plus::after {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 1px;
  height: 34px;
  background: #eee8f2;
  content: "";
  transform: translateY(-50%);
}

html:not(.custodio-concept-3) .workspace-agenda-list {
  gap: 9px;
}

html:not(.custodio-concept-3) .workspace-appointment {
  min-height: 72px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 10px 11px;
  border-color: rgba(42, 25, 52, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 22px rgba(28, 8, 45, .11);
  transition: transform .14s ease, box-shadow .14s ease;
}

html:not(.custodio-concept-3) .workspace-appointment:active {
  box-shadow: 0 7px 16px rgba(28, 8, 45, .1);
  transform: scale(.992);
}

html:not(.custodio-concept-3) .workspace-appointment:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .8);
  outline-offset: 2px;
}

html:not(.custodio-concept-3) .workspace-appointment time {
  min-height: 50px;
  border-radius: 12px;
  background: #6c1db9;
}

html:not(.custodio-concept-3) .workspace-appointment time strong {
  font-size: 12px;
}

html:not(.custodio-concept-3) .workspace-appointment-copy strong {
  font-size: 13px;
}

html:not(.custodio-concept-3) .workspace-appointment-copy small {
  margin-top: 4px;
}

html:not(.custodio-concept-3) .workspace-appointment-status {
  padding: 6px 8px;
}

html:not(.custodio-concept-3) .workspace-agenda-empty {
  min-height: 90px;
  padding: 19px;
  border-radius: 16px;
}

html:not(.custodio-concept-3) .workspace-agenda-history {
  margin-top: 23px;
}

html:not(.custodio-concept-3) .workspace-agenda-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
  color: #fff;
}

html:not(.custodio-concept-3) .workspace-agenda-history-head strong {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

html:not(.custodio-concept-3) .workspace-agenda-history-head small {
  color: rgba(255, 255, 255, .68);
  font-size: 9px !important;
  font-weight: 800;
}

html:not(.custodio-concept-3) .workspace-agenda-history .workspace-history-list {
  gap: 8px;
}

html:not(.custodio-concept-3) .workspace-agenda-history .workspace-history-row {
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 18px rgba(28, 8, 45, .1);
}

@media (max-width: 360px) {
  html:not(.custodio-concept-3) .workspace-agenda-action {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 11px;
  }

  html:not(.custodio-concept-3) .workspace-agenda-plus {
    width: 36px;
    height: 36px;
  }

  html:not(.custodio-concept-3) .workspace-agenda-plus::after {
    right: -6px;
    height: 32px;
  }

  html:not(.custodio-concept-3) .workspace-appointment {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.custodio-concept-3) .workspace-agenda-action,
  html:not(.custodio-concept-3) .workspace-appointment {
    transition: none;
  }
}

/* Current Agenda skin: calm depth that also works when Concept 3 is enabled. */
html .vehicle-workspace .workspace-agenda-action {
  border-color: rgba(91, 55, 111, .11);
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 42, 181, .075) 0, rgba(123, 42, 181, 0) 45%),
    linear-gradient(145deg, #fff 0%, #fdfbfe 62%, #f5eff9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 10px 22px rgba(44, 20, 58, .085);
}

html .vehicle-workspace .workspace-agenda-plus {
  border-radius: 12px;
  background: linear-gradient(145deg, #6318ad, #8426c2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 7px 15px rgba(91, 24, 145, .2);
}

html .vehicle-workspace .workspace-agenda-action > b {
  border: 1px solid rgba(100, 45, 132, .09);
  color: #632491;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

html .vehicle-workspace .workspace-appointment {
  border-color: rgba(76, 53, 88, .1);
  background:
    radial-gradient(circle at 100% 0%, rgba(115, 41, 167, .055) 0, rgba(115, 41, 167, 0) 44%),
    linear-gradient(145deg, #fff 0%, #fdfcfe 66%, #f5f1f7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 9px 20px rgba(42, 22, 53, .08);
}

html .vehicle-workspace .workspace-appointment time {
  background: linear-gradient(155deg, #541597, #7c23b9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 6px 13px rgba(76, 22, 116, .18);
}

/* Date cards use typography and a quiet inner badge instead of loud decoration. */
html [data-screen="agendar"] .date {
  border-color: rgba(84, 60, 96, .11);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 45, 170, .06) 0, rgba(119, 45, 170, 0) 47%),
    linear-gradient(155deg, #fff 0%, #fdfcfe 58%, #f4eff7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 7px 17px rgba(44, 25, 54, .075);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

html [data-screen="agendar"] .date > span > span {
  width: fit-content;
  margin: 0 auto;
  padding: 3px 6px;
  border-radius: 99px;
  color: #75657d;
  background: rgba(112, 73, 132, .075);
  line-height: 1;
}

html [data-screen="agendar"] .date b {
  color: #362a3d;
  letter-spacing: -.025em;
}

html [data-screen="agendar"] .date small {
  color: #8b7e91;
  letter-spacing: .055em;
}

html [data-screen="agendar"] .date:has(input:checked) {
  border-color: rgba(255, 255, 255, .76);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .17) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #521293, #7a20b6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 9px 20px rgba(66, 19, 97, .21);
  transform: translateY(-1px);
}

html [data-screen="agendar"] .date:has(input:checked) > span > span {
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .13);
}

html [data-screen="agendar"] .date:has(input:checked) :is(b, small) {
  color: #fff;
}

html [data-screen="agendar"] .date:has(input:disabled) {
  border-color: rgba(84, 60, 96, .07);
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(245, 242, 247, .72));
  box-shadow: none;
}

html [data-screen="agendar"] .time {
  border-color: rgba(84, 60, 96, .1);
  background: linear-gradient(150deg, #fff 0%, #f7f3f9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 6px 14px rgba(44, 25, 54, .065);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

html [data-screen="agendar"] .time:has(input:checked) {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
  background: linear-gradient(145deg, #541596, #7721b3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 8px 17px rgba(62, 19, 92, .19);
  transform: translateY(-1px);
}

html [data-screen="agendar"] :is(.date, .time):focus-within {
  outline: 2px solid rgba(113, 37, 170, .28);
  outline-offset: 2px;
}

html [data-screen="agendar"] #appointmentSubmit {
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(100deg, #4c118c, #721daf 64%, #8a28ba);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 11px 23px rgba(61, 15, 94, .2);
  transition: transform .14s ease, box-shadow .14s ease;
}

html [data-screen="agendar"] #appointmentSubmit:active:not(:disabled) {
  box-shadow: 0 7px 16px rgba(61, 15, 94, .17);
  transform: scale(.992);
}

@media (prefers-reduced-motion: reduce) {
  html [data-screen="agendar"] :is(.date, .time, #appointmentSubmit) {
    transition: none;
  }
}

/* Agenda and history tickets: one calm date-rail system for both states. */
html .vehicle-workspace :is(.workspace-appointment, .workspace-history-row).workspace-date-ticket {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 32px 56px 2px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 13px 0 0;
  overflow: hidden;
  border: 1px solid rgba(84, 60, 96, .1);
  border-radius: 19px;
  color: #312838;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 41, 171, .045), transparent 46%),
    linear-gradient(145deg, #fff 0%, #fdfcfe 66%, #f8f4fa 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 10px 22px rgba(42, 22, 53, .09);
}

html .vehicle-workspace .workspace-date-ticket .workspace-date-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 32px;
  height: auto;
  place-items: center;
  color: #665c6c;
  background: linear-gradient(180deg, #f3ebfa, #ebe0f6);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

html .vehicle-workspace .workspace-date-ticket time {
  display: grid;
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  place-items: center;
  align-content: center;
  border-radius: 0;
  color: #2f2734;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

html .vehicle-workspace .workspace-date-ticket time strong {
  font-size: 26px;
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.04em;
}

html .vehicle-workspace .workspace-date-ticket time small {
  margin-top: 9px;
  padding: 4px 7px 3px;
  border: 1px solid rgba(109, 32, 197, .58);
  border-radius: 7px;
  color: #65218f;
  background: rgba(255, 255, 255, .72);
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket > .workspace-ticket-divider {
  display: block;
  grid-column: 3;
  width: 2px;
  height: 62px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #4f72e8, #a52ace);
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-copy, .workspace-history-copy) {
  grid-column: 4;
  min-width: 0;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-copy, .workspace-history-copy) strong,
html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-copy, .workspace-history-copy) small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-copy, .workspace-history-copy) strong {
  color: #2f2734;
  font-size: 13px;
  line-height: 1.16;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-copy, .workspace-history-copy) small {
  margin-top: 5px;
  color: #7b7081;
  font-size: 10px !important;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) {
  display: inline-flex;
  grid-column: 5;
  width: max-content;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(45, 153, 74, .24);
  border-radius: 99px;
  color: #23833d;
  background: rgba(235, 249, 238, .82);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > i {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2b9c4b;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.requested {
  border-color: rgba(190, 128, 18, .24);
  color: #8a5b05;
  background: rgba(255, 247, 225, .88);
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.requested > i {
  background: #c78b1e;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.cancelled {
  border-color: rgba(150, 76, 89, .2);
  color: #995565;
  background: rgba(250, 237, 240, .88);
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.cancelled > i {
  background: #a95f6f;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.completed {
  border-color: rgba(96, 82, 105, .18);
  color: #6f6475;
  background: rgba(240, 237, 242, .9);
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.completed > i {
  background: #786d7e;
}

html .vehicle-workspace .workspace-history-preview-wrap {
  display: grid;
  gap: 7px;
}

html .vehicle-workspace .workspace-history-preview {
  opacity: .94;
}

html .vehicle-workspace .workspace-history-preview-note {
  display: block;
  padding: 0 3px;
  color: rgba(255, 255, 255, .76);
  font-size: 9px !important;
  line-height: 1.35;
  text-align: center;
}

html .vehicle-workspace .workspace-history-preview-note b {
  color: #fff;
  letter-spacing: .08em;
}

html.custodio-concept-3 .vehicle-workspace .workspace-history-preview-note {
  color: #7b7081;
}

html.custodio-concept-3 .vehicle-workspace .workspace-history-preview-note b {
  color: #5d237f;
}

@media (max-width: 370px) {
  html .vehicle-workspace :is(.workspace-appointment, .workspace-history-row).workspace-date-ticket {
    min-height: 96px;
    grid-template-columns: 30px 54px 2px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 9px;
    padding-right: 10px;
  }

  html .vehicle-workspace .workspace-date-ticket .workspace-date-rail {
    width: 30px;
    grid-row: 1 / 3;
  }

  html .vehicle-workspace .workspace-date-ticket time,
  html .vehicle-workspace .workspace-date-ticket > .workspace-ticket-divider {
    grid-row: 1 / 3;
  }

  html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-copy, .workspace-history-copy) {
    align-self: end;
    margin-top: 8px;
  }

  html .vehicle-workspace .workspace-date-ticket time strong {
    font-size: 25px;
  }

  html .vehicle-workspace .workspace-date-ticket > .workspace-ticket-divider {
    height: 56px;
  }

  html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) {
    grid-column: 4;
    justify-self: start;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 4px 7px;
  }

  html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > i {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
}

/* Appointment details: polished bottom sheet matching the agenda ticket system. */
html #appointmentDetailModal {
  place-items: end center;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  background: rgba(24, 10, 39, .56);
  backdrop-filter: blur(14px) saturate(.78);
  -webkit-backdrop-filter: blur(14px) saturate(.78);
}

html #appointmentDetailModal .appointment-detail-panel {
  width: min(100%, 430px);
  max-height: min(780px, calc(100dvh - 42px));
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 28px 80px rgba(18, 4, 31, .46),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

html #appointmentDetailModal .appointment-detail-head {
  position: relative;
  padding: 25px 58px 22px 21px;
  color: #301b3f;
  background:
    radial-gradient(circle at 100% 0%, rgba(135, 55, 197, .1), transparent 47%),
    linear-gradient(145deg, #fbf9fd 0%, #f6f0fb 100%);
}

html #appointmentDetailModal .appointment-detail-head::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 37, 145, .12), transparent);
  content: "";
}

html #appointmentDetailModal .appointment-detail-head > small {
  display: block;
  margin: 0 0 8px;
  color: #73518a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1;
  opacity: 1;
}

html #appointmentDetailModal .appointment-detail-head h2 {
  margin: 0;
  color: #6b1ca1;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.025em;
}

html #appointmentDetailModal .appointment-detail-head p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  color: #665c6d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

html #appointmentDetailModal .appointment-detail-head p::before {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(109, 32, 197, .16);
  border-radius: 6px;
  color: #7222a7;
  background: rgba(255, 255, 255, .72);
  content: "▦";
  font-size: 12px;
  line-height: 1;
}

html #appointmentDetailModal .appointment-detail-close {
  position: absolute;
  top: 17px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(91, 69, 104, .08);
  border-radius: 50%;
  color: #716778;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 7px 18px rgba(57, 31, 70, .1);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

html #appointmentDetailModal .appointment-detail-body {
  display: grid;
  gap: 12px;
  padding: 18px 18px 19px;
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 42, 184, .035), transparent 38%),
    #fff;
}

html #appointmentDetailModal .appointment-detail-status {
  display: inline-flex;
  width: max-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: start;
  padding: 7px 11px;
  border: 1px solid rgba(39, 154, 73, .18);
  border-radius: 99px;
  color: #23813d;
  background: #ebf9ee;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

html #appointmentDetailModal .appointment-detail-status::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "✓";
  font-size: 10px;
  line-height: 1;
}

html #appointmentDetailModal .appointment-detail-status.requested {
  border-color: rgba(190, 128, 18, .2);
  color: #8b5c05;
  background: #fff7e2;
}

html #appointmentDetailModal .appointment-detail-status.cancelled {
  border-color: rgba(164, 70, 86, .18);
  color: #9e5260;
  background: #faedf0;
}

html #appointmentDetailModal .appointment-detail-status.cancelled::before {
  content: "×";
}

html #appointmentDetailModal .appointment-detail-status.completed {
  border-color: rgba(100, 87, 108, .16);
  color: #6e6374;
  background: #f2eff4;
}

html #appointmentDetailModal .appointment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

html #appointmentDetailModal .appointment-detail-item {
  min-width: 0;
  min-height: 67px;
  padding: 12px 13px;
  border: 1px solid rgba(87, 66, 98, .1);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 40, 165, .045), transparent 46%),
    linear-gradient(145deg, #fff, #fbf9fc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

html #appointmentDetailModal .appointment-detail-item.wide {
  grid-column: 1 / -1;
}

html #appointmentDetailModal .appointment-detail-item span {
  display: block;
  margin: 0 0 6px;
  color: #887b90;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

html #appointmentDetailModal .appointment-detail-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: #342a3a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

html #appointmentDetailModal .appointment-detail-pricing {
  display: grid;
  gap: 9px;
  padding: 14px 15px;
  border: 1px solid rgba(103, 48, 137, .08);
  border-radius: 16px;
  color: #726679;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 46, 187, .08), transparent 48%),
    linear-gradient(145deg, #f8f5fb, #f2ecf8);
}

html #appointmentDetailModal .appointment-detail-pricing div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1.25;
}

html #appointmentDetailModal .appointment-detail-pricing div strong {
  color: #4b3d53;
  font-weight: 850;
  text-align: right;
}

html #appointmentDetailModal .appointment-detail-pricing div:last-child {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(95, 56, 117, .14);
  color: #7023a1;
  font-size: 15px;
  font-weight: 950;
}

html #appointmentDetailModal .appointment-detail-pricing div:last-child strong {
  color: inherit;
  font-size: 16px;
}

html #appointmentDetailModal .appointment-detail-pix {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(135deg, #56129f, #7c22be);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 11px 22px rgba(83, 19, 136, .22);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .025em;
}

html #appointmentDetailModal .appointment-detail-pix[hidden] {
  display: none !important;
}

html #appointmentDetailModal .appointment-detail-pix::before {
  content: "▦";
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

html #appointmentDetailModal .appointment-detail-cancel {
  min-height: 46px;
  border: 1px solid rgba(150, 55, 73, .16);
  border-radius: 13px;
  color: #9a4053;
  background: linear-gradient(145deg, #fff, #fdf7f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .045em;
}

html #appointmentDetailModal .appointment-detail-cancel[hidden] {
  display: none !important;
}

html #appointmentDetailModal .appointment-detail-cancel.confirming {
  border-color: #9d3048;
  color: #fff;
  background: linear-gradient(145deg, #a83b53, #8b283f);
  box-shadow: 0 8px 18px rgba(116, 35, 54, .18);
}

html #appointmentDetailModal .appointment-detail-cancel:disabled {
  cursor: wait;
  opacity: .68;
}

@media (max-height: 680px) {
  html #appointmentDetailModal {
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  html #appointmentDetailModal .appointment-detail-panel {
    max-height: calc(100dvh - 16px);
    border-radius: 24px;
  }

  html #appointmentDetailModal .appointment-detail-head {
    padding-top: 19px;
    padding-bottom: 17px;
  }

  html #appointmentDetailModal .appointment-detail-head p {
    margin-top: 10px;
  }

  html #appointmentDetailModal .appointment-detail-body {
    gap: 9px;
    padding-top: 13px;
    padding-bottom: 14px;
  }

  html #appointmentDetailModal .appointment-detail-item {
    min-height: 58px;
    padding: 10px 11px;
  }
}

/* Payment choice shares the agenda's restrained card language. */
html [data-screen="agendar"] .appointment-payment-choice {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16),0 12px 28px rgba(39,8,67,.1);
}

html [data-screen="agendar"] .appointment-payment-choice > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

html [data-screen="agendar"] .appointment-payment-choice > header small {
  color: rgba(255,255,255,.66);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .14em;
}

html [data-screen="agendar"] .appointment-payment-choice > header h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
}

html [data-screen="agendar"] .appointment-payment-choice > header > b {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  color: #fff;
  background: rgba(63,14,95,.23);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

html [data-screen="agendar"] .appointment-payment-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}

html [data-screen="agendar"] .appointment-payment-options label {
  min-width: 0;
  cursor: pointer;
}

html [data-screen="agendar"] .appointment-payment-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

html [data-screen="agendar"] .appointment-payment-options label > span {
  display: grid;
  min-height: 80px;
  grid-template-columns: 35px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  padding: 11px;
  border: 1px solid rgba(91,64,105,.1);
  border-radius: 15px;
  color: #45374d;
  background: linear-gradient(145deg,#fff,#f8f4fa);
  box-shadow: 0 8px 18px rgba(35,9,54,.08);
}

html [data-screen="agendar"] .appointment-payment-options i {
  display: grid;
  width: 35px;
  height: 35px;
  grid-row: 1 / 3;
  place-items: center;
  align-self: center;
  border-radius: 11px;
  color: #7020af;
  background: #f2e8f8;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

html [data-screen="agendar"] .appointment-payment-options strong {
  align-self: end;
  font-size: 11px;
  line-height: 1.2;
}

html [data-screen="agendar"] .appointment-payment-options small {
  overflow: hidden;
  color: #887b90;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
}

html [data-screen="agendar"] .appointment-payment-options input:checked + span {
  border-color: rgba(123,32,184,.42);
  box-shadow: 0 0 0 2px rgba(127,34,188,.1),0 10px 21px rgba(41,8,62,.12);
}

html [data-screen="agendar"] .appointment-payment-options input:disabled + span {
  cursor: not-allowed;
  opacity: .52;
}

html [data-screen="agendar"] #appointmentPointsHelper {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

html #appointmentDetailModal .appointment-detail-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

html #appointmentDetailModal .appointment-detail-actions > button:only-child {
  grid-column: 1 / -1;
}

html #appointmentDetailModal .appointment-detail-edit {
  min-height: 46px;
  border: 1px solid rgba(111,33,158,.18);
  border-radius: 13px;
  color: #6d219a;
  background: linear-gradient(145deg,#fff,#f8f2fb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .045em;
}

html #appointmentDetailModal .appointment-detail-edit[hidden],
html #appointmentDetailModal .appointment-detail-actions[hidden] {
  display: none !important;
}

html #appointmentDetailModal .appointment-detail-edit:disabled {
  cursor: wait;
  opacity: .68;
}

html .club-reward-points b {
  color: #6f1caa;
  font-size: 1.12em;
  font-weight: 950;
}

html .club-empty[data-state="error"],
html .club-empty:has([data-club-retry]) {
  display: grid;
  gap: 10px;
  justify-items: center;
}

html .club-empty [data-club-retry] {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #6f1bab;
  font-size: 9px;
  font-weight: 950;
}

/* v471 — richer points and status language for agenda tickets. */
html .vehicle-workspace .workspace-date-ticket .workspace-ticket-meta {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-price {
  flex: 0 0 auto;
  color: #776d7c;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 4px;
  overflow: hidden;
  border: 1px solid rgba(126, 65, 162, .16);
  border-radius: 99px;
  color: #6f209f;
  background: #f8f1fb;
  box-shadow: none;
  vertical-align: middle;
  white-space: nowrap;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points > i {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #efa321;
  box-shadow: none;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points b {
  color: #6d1da1;
  font-size: 8.5px;
  font-weight: 950;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points em {
  color: #9a6b24;
  font-size: 5.5px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points.used {
  background: #f1e8f7;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points.used > i {
  background: #7922b4;
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket .workspace-ticket-points.used em {
  color: #8b6c96;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) {
  min-height: 38px;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border-color: rgba(45, 153, 74, .2);
  background: #edf8ef;
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > i {
  width: 24px;
  height: 24px;
  background: #2b9c4b;
  box-shadow: none;
  font-size: 11px;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > span {
  display: grid;
  gap: 2px;
  text-align: left;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > span small {
  color: rgba(31, 103, 50, .62);
  font-size: 5.5px;
  font-weight: 950;
  letter-spacing: .13em;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > span em {
  color: inherit;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.requested {
  background: #fff4dc;
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.requested > i {
  background: #c98b1c;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.requested > span small {
  color: rgba(138, 91, 5, .62);
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.cancelled {
  background: #f9ecef;
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.cancelled > i {
  background: #ad5b6d;
}

html .vehicle-workspace .workspace-date-ticket .workspace-appointment-status.cancelled > span small {
  color: rgba(153, 85, 101, .62);
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status.completed, .workspace-history-status.completed) {
  border-color: rgba(28, 139, 112, .18);
  color: #17785f;
  background: #eaf6f2;
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status.completed, .workspace-history-status.completed) > i {
  background: #238b70;
  box-shadow: none;
}

html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status.completed, .workspace-history-status.completed) > span small {
  color: rgba(23, 120, 95, .62);
}

html #appointmentDetailModal .appointment-detail-status {
  background: #edf8ef;
  box-shadow: none;
}

html #appointmentDetailModal .appointment-detail-status::before {
  border: 0;
  color: #fff;
  background: #2b9c4b;
  box-shadow: none;
}

html #appointmentDetailModal .appointment-detail-status.requested {
  background: #fff4dc;
}

html #appointmentDetailModal .appointment-detail-status.requested::before {
  background: #c98b1c;
  content: "…";
}

html #appointmentDetailModal .appointment-detail-status.cancelled {
  background: #f9ecef;
}

html #appointmentDetailModal .appointment-detail-status.cancelled::before {
  background: #ad5b6d;
}

html #appointmentDetailModal .appointment-detail-status.completed {
  border-color: rgba(28, 139, 112, .18);
  color: #17785f;
  background: #eaf6f2;
}

html #appointmentDetailModal .appointment-detail-status.completed::before {
  background: #238b70;
}

@media (max-width: 370px) {
  html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) {
    min-height: 34px;
  }

  html .vehicle-workspace .workspace-date-ticket :is(.workspace-appointment-status, .workspace-history-status) > i {
    width: 21px;
    height: 21px;
    font-size: 10px;
  }
}

/* v473 — whiter, matte scheduling and payment composition. */
html [data-screen="agendar"] .appointment-schedule-panel,
html [data-screen="agendar"] .appointment-payment-choice,
html [data-screen="agendar"] .appointment-confirm-panel {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(74, 44, 87, .09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(45, 14, 66, .08);
}

html [data-screen="agendar"] .appointment-schedule-panel {
  display: grid;
  gap: 0;
  margin-top: 20px;
  padding: 16px;
}

html [data-screen="agendar"] .appointment-schedule-head {
  margin: 0 0 13px;
}

html [data-screen="agendar"] .appointment-schedule-head small,
html [data-screen="agendar"] .appointment-payment-choice > header small {
  color: #8b6b9d;
}

html [data-screen="agendar"] .appointment-schedule-head h2,
html [data-screen="agendar"] .appointment-payment-choice > header h2 {
  color: #34233d;
}

html [data-screen="agendar"] .appointment-schedule-head > b,
html [data-screen="agendar"] .appointment-payment-choice > header > b {
  border: 1px solid #e6d9ed;
  color: #71219f;
  background: #f6f0f8;
  box-shadow: none;
}

html [data-screen="agendar"] .date-grid {
  gap: 7px;
  padding: 0;
}

html [data-screen="agendar"] .date,
html [data-screen="agendar"] .time {
  border: 1px solid #e7e1ea;
  color: #4f4654;
  background: #faf9fb;
  box-shadow: none;
  transition: border-color .14s ease, background-color .14s ease, color .14s ease, transform .14s ease;
}

html [data-screen="agendar"] .date {
  min-height: 72px;
  border-radius: 14px;
}

html [data-screen="agendar"] .date > span > span {
  display: inline-flex;
  width: max-content;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2px 7px;
  border-radius: 99px;
  color: #776c7c;
  background: #efedf1;
}

html [data-screen="agendar"] .date:has(input:checked),
html [data-screen="agendar"] .time:has(input:checked) {
  border-color: #7924ad;
  color: #5b187f;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(121, 36, 173, .10);
}

html [data-screen="agendar"] .date:has(input:checked) > span > span {
  color: #fff;
  background: #7924ad;
}

html [data-screen="agendar"] .date:has(input:checked) b {
  color: #5b187f;
}

html [data-screen="agendar"] .date:has(input:checked) small {
  color: #85758d;
  opacity: 1;
}

html [data-screen="agendar"] .date:has(input:disabled),
html [data-screen="agendar"] .time:has(input:disabled) {
  border-color: #eee9f0;
  color: #aaa1ad;
  background: #f4f2f5;
}

html [data-screen="agendar"] .appointment-time-label {
  margin: 16px 1px 9px;
  color: #75687d;
}

html [data-screen="agendar"] .time-grid {
  gap: 8px;
}

html [data-screen="agendar"] .time {
  min-height: 42px;
  border-radius: 12px;
}

html [data-screen="agendar"] .date:active,
html [data-screen="agendar"] .time:active {
  transform: scale(.985);
}

html [data-screen="agendar"] .appointment-payment-choice {
  gap: 13px;
  margin-top: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(45, 14, 66, .08);
}

html [data-screen="agendar"] .appointment-payment-choice > header {
  align-items: center;
}

html [data-screen="agendar"] .appointment-payment-options {
  gap: 9px;
}

html [data-screen="agendar"] .appointment-payment-options label > span {
  min-height: 78px;
  border: 1px solid #e6dfe9;
  border-radius: 15px;
  color: #3f3148;
  background: #faf9fb;
  box-shadow: none;
}

html [data-screen="agendar"] .appointment-payment-options i {
  color: #7020a0;
  background: #f1e8f6;
}

html [data-screen="agendar"] .appointment-payment-options input:checked + span {
  border-color: #7924ad;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(121, 36, 173, .10);
}

html [data-screen="agendar"] .appointment-payment-options input:checked + span i {
  color: #fff;
  background: #7924ad;
}

html [data-screen="agendar"] .appointment-payment-options input:disabled + span {
  border-color: #eee9f0;
  color: #9f96a3;
  background: #f3f1f4;
  opacity: 1;
}

html [data-screen="agendar"] .appointment-payment-options input:disabled + span i {
  color: #9c87a8;
  background: #e9e3ec;
}

html [data-screen="agendar"] .appointment-payment-choice > p {
  margin: 0;
  color: #776c7d;
}

html [data-screen="agendar"] .appointment-confirm-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0 22px;
  padding: 14px;
}

html [data-screen="agendar"] .appointment-confirm-panel .appointment-note {
  margin: 0 !important;
  border: 0;
  color: #716676;
  background: #f6f3f7;
}

html [data-screen="agendar"] .appointment-confirm-panel #appointmentSubmit {
  min-height: 50px;
  margin: 0;
  border: 0;
  color: #fff;
  background: #681c9b;
  box-shadow: none;
}

html [data-screen="agendar"] .appointment-confirm-panel #appointmentSubmit:active:not(:disabled) {
  background: #571580;
  box-shadow: none;
}

html [data-screen="agendar"] .appointment-confirm-panel #appointmentSubmit:disabled {
  color: #8f8494;
  background: #e5e0e8;
}

html [data-screen="agendar"] .appointment-order-summary {
  border: 1px solid #e3dce7;
  color: #3d2c46;
  background: #fff;
  box-shadow: none;
}

html [data-screen="agendar"] .appointment-order-summary div.duration {
  color: #4f3a59;
  background: #f4f0f6;
}

html [data-screen="agendar"] .appointment-order-summary div.total,
html [data-screen="agendar"] .appointment-order-summary .loyalty-total {
  border-top-color: #e8e1eb;
}

html [data-screen="agendar"] .appointment-order-summary small {
  color: #817487;
}

@media (max-width: 370px) {
  html [data-screen="agendar"] .appointment-schedule-panel,
  html [data-screen="agendar"] .appointment-payment-choice {
    padding: 13px;
  }

  html [data-screen="agendar"] .date-grid {
    gap: 5px;
  }

  html [data-screen="agendar"] .date {
    min-height: 68px;
  }
}
