:root {
  color-scheme: light;
  --bg: #faf6f3;
  --panel: #ffffff;
  --ink: #253d42;
  --muted: #74706c;
  --line: #ead6cd;
  --line-strong: #d8b9aa;
  --sand: #f7ebe6;
  --sand-strong: #f1ded6;
  --aqua: #e0f5f3;
  --aqua-strong: #b4dedc;
  --teal: #006a78;
  --teal-dark: #004653;
  --orange: #e16d43;
  --orange-dark: #bf5430;
  --danger: #9b2c2c;
  --shadow: 0 20px 50px rgba(37, 61, 66, 0.10);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.payment-link {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

button:hover,
.payment-link:hover {
  background: var(--orange-dark);
}

button:active,
.payment-link:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

button.ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}

button.ghost:hover {
  background: var(--aqua);
  border-color: var(--aqua-strong);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 30px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.kicker,
.summary-kicker {
  margin: 0 0 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  color: var(--ink);
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 15px;
}

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 16px;
  align-items: start;
}

.booking-form,
.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-form {
  min-height: 456px;
  padding: 18px 18px 16px;
}

.summary {
  position: sticky;
  top: 12px;
  padding: 18px;
}

.stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.step-pill {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
}

.step-pill span {
  margin-right: 4px;
}

.step-pill.is-active {
  background: var(--teal);
  color: #fff;
}

.step-pill.is-done:not(.is-active) {
  background: var(--aqua);
  color: var(--teal);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 850;
  color: #1e2527;
}

legend span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.step-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-option {
  min-height: 126px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
  padding: 14px;
}

.service-option:hover {
  background: #fff;
  border-color: var(--orange);
}

.service-option.is-selected {
  background: var(--aqua);
  border-color: var(--teal);
  color: var(--ink);
}

.service-option strong,
.service-option span,
.service-option small {
  display: block;
}

.service-option strong {
  color: var(--teal-dark);
  font-size: 17px;
}

.service-option span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.service-option small {
  margin-top: 14px;
  color: var(--orange-dark);
  font-weight: 850;
}

.term-layout {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(160px, 0.64fr);
  gap: 10px;
}

.month-panel,
.times-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  min-height: 298px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-header strong {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  letter-spacing: 0.16em;
}

.calendar-nav {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--teal);
  border-color: var(--teal);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 17px;
  line-height: 1;
}

.calendar-nav:hover {
  background: var(--aqua);
  color: var(--teal-dark);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  gap: 6px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  gap: 4px;
}

.calendar-day {
  min-height: 30px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--sand);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar-day:hover {
  background: var(--sand-strong);
}

.calendar-day.is-outside {
  background: transparent;
  color: #c7c2be;
  opacity: 1;
}

.calendar-day.is-available {
  background: var(--aqua);
  color: var(--teal-dark);
}

.calendar-day.is-available:hover {
  background: var(--aqua-strong);
}

.calendar-day.is-selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.calendar-day.is-today:not(.is-selected) {
  border-color: var(--teal);
  background: #fff;
  color: var(--ink);
}

.calendar-day:disabled {
  cursor: default;
  opacity: 1;
}

.calendar-legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.legend-free {
  background: var(--aqua);
}

.legend-busy {
  background: var(--sand);
}

.times-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.times-heading h3 {
  color: var(--teal);
  font-weight: 850;
}

.times-heading span {
  color: var(--muted);
  font-size: 12px;
}

.day-times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  margin-top: 12px;
}

.time-option {
  min-height: 32px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--teal);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 850;
}

.time-option:hover {
  background: var(--aqua);
  border-color: var(--aqua-strong);
}

.time-option.is-selected {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.calendar-empty,
.empty-copy {
  color: var(--muted);
  font-size: 13px;
}

.calendar-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--aqua);
  border-color: var(--teal);
}

.payment-step {
  min-height: 290px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.message {
  flex: 1 1 100%;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.message.is-error {
  color: var(--danger);
  font-weight: 800;
}

dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

dl div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

dd small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.summary-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.confirmation-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.confirmation-shell {
  width: min(780px, calc(100% - 32px));
}

.confirmation-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.confirmation-card h1 {
  font-size: clamp(30px, 5vw, 44px);
}

.confirmation-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 24px;
}

.confirmation-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirmation-action {
  margin-top: 18px;
}

.confirmation-success .confirmation-card {
  border-color: var(--aqua-strong);
}

.confirmation-pending .confirmation-card {
  border-color: var(--line-strong);
}

.admin-shell .workspace {
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
}

.slot-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}

.slot-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.slot-admin-row strong,
.slot-admin-row span,
.slot-admin-row small {
  display: block;
}

.slot-admin-row span {
  margin-top: 4px;
  color: var(--muted);
}

.slot-admin-row small {
  margin-top: 6px;
  color: var(--orange-dark);
  font-weight: 700;
}

.slot-admin-empty {
  color: var(--muted);
  margin: 0;
}

.topbar-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-calendar-page {
  background: #fbf7f4;
}

.mobile-admin-shell {
  width: min(100% - 18px, 460px);
  margin: 0 auto;
  padding: 12px 0 26px;
}

.admin-mobile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-mobile-header h1 {
  font-size: 27px;
}

.admin-help-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.admin-help-link:hover {
  background: var(--aqua);
  border-color: var(--aqua-strong);
  color: var(--teal-dark);
}

.mobile-admin-panel {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 61, 66, 0.08);
}

.admin-month-toolbar {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-month-toolbar strong {
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.admin-day-timeline {
  --timeline-height: 660px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: var(--timeline-height);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-calendar-day {
  position: relative;
  min-height: 42px;
  padding: 3px 0 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--sand);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-calendar-day.is-outside {
  background: transparent;
  color: #c9c2bd;
}

.admin-calendar-day.is-available {
  background: var(--aqua);
  color: var(--teal-dark);
}

.admin-calendar-day.is-selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.admin-calendar-day.is-today:not(.is-selected) {
  border-color: var(--teal);
  background: #fff;
  color: var(--ink);
}

.admin-calendar-day small,
.admin-calendar-day i {
  position: absolute;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.admin-calendar-day small {
  left: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
}

.admin-calendar-day i {
  right: 4px;
  background: var(--orange);
  color: #fff;
}

.selected-day-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.selected-day-heading > div {
  min-width: 0;
}

.selected-day-heading h2 {
  font-size: 19px;
  line-height: 1.16;
}

.selected-day-heading span {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.selected-day-nav {
  align-self: center;
}

.admin-timeline-labels,
.admin-timeline-track {
  position: relative;
  min-height: var(--timeline-height);
}

.admin-timeline-labels {
  border-right: 1px solid var(--line);
  background: #fbf8f6;
}

.admin-timeline-hour {
  position: absolute;
  top: var(--hour-top);
  right: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-timeline-track {
  background: #fbfdfc;
}

.admin-timeline-gridline {
  position: absolute;
  top: var(--hour-top);
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-0.5px);
  background: var(--line);
  pointer-events: none;
}

.admin-timeline-event {
  position: absolute;
  display: block;
  top: var(--event-top);
  left: 6px;
  right: 6px;
  height: var(--event-height);
  min-height: 42px;
  overflow: hidden;
  padding: 7px 38px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 20px rgba(37, 61, 66, 0.10);
}

.admin-timeline-event strong,
.admin-timeline-event span,
.admin-timeline-event small,
.admin-timeline-event em {
  display: block;
}

.admin-timeline-event strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-timeline-event span {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-timeline-event small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-timeline-event.is-online small::before,
.admin-timeline-event.is-personal small::before {
  content: "";
  display: inline-block;
  margin-right: 6px;
  opacity: 0.9;
  vertical-align: -1px;
}

.admin-timeline-event.is-online small::before {
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.admin-timeline-event.is-personal small::before {
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.admin-timeline-event.is-free {
  padding-right: 8px;
  border-width: 1px;
  border-style: dashed;
  color: #426d70;
  box-shadow: none;
  cursor: pointer;
}

.admin-timeline-event.is-free strong {
  color: #4a777b;
  font-weight: 750;
}

.admin-timeline-event.is-free span {
  color: #426d70;
  font-size: 12px;
  font-weight: 760;
}

.admin-timeline-event.is-free small {
  color: #6c8785;
  font-weight: 650;
}

.admin-timeline-event.is-free:hover {
  box-shadow: 0 0 0 3px rgba(0, 106, 120, 0.08);
}

.admin-timeline-event.is-free.is-selected {
  border-style: solid;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(0, 106, 120, 0.12);
}

.admin-timeline-event.is-free.is-online {
  background: rgba(224, 245, 243, 0.28);
  border-color: rgba(125, 192, 193, 0.66);
}

.admin-timeline-event.is-free.is-personal {
  background: rgba(247, 235, 230, 0.36);
  border-color: rgba(216, 185, 170, 0.72);
}

.admin-timeline-event.is-reservation {
  border-width: 1.5px;
}

.admin-timeline-event.is-reservation strong,
.admin-timeline-event.is-reservation span {
  color: var(--ink);
}

.admin-timeline-event.is-reservation small {
  font-weight: 800;
}

.admin-timeline-event.is-reservation.is-online {
  background: #c8eef0;
  border-color: #008a96;
}

.admin-timeline-event.is-reservation.is-online small {
  color: #006a78;
}

.admin-timeline-event.is-reservation.is-personal {
  background: #f6d6c8;
  border-color: #d95f34;
}

.admin-timeline-event.is-reservation.is-personal small {
  color: #bf5430;
}

.admin-timeline-event.is-google {
  background: #eef3f7;
  border-color: #b7c8d5;
}

.admin-timeline-event.has-payment-badge {
  padding-right: 152px;
}

.admin-timeline-event .admin-payment-badge {
  position: absolute;
  top: 50%;
  right: 44px;
  max-width: 108px;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
}

.admin-timeline-empty {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.admin-booking-row {
  position: relative;
  padding: 10px 42px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
}

.admin-booking-row strong,
.admin-booking-row span,
.admin-booking-row small,
.admin-booking-row em {
  display: block;
}

.admin-booking-row strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-booking-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-booking-row small {
  margin-top: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.admin-payment-badge {
  width: fit-content;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.admin-payment-badge.is-paid {
  border-color: var(--aqua-strong);
  background: var(--aqua);
  color: var(--teal-dark);
}

.admin-payment-badge.is-unpaid {
  border-color: var(--line-strong);
  background: var(--sand-strong);
  color: var(--orange-dark);
}

.admin-payment-badge.is-pending {
  border-color: var(--line-strong);
  color: var(--teal);
}

.admin-delete-reservation {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--danger);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.admin-delete-reservation:hover {
  background: #f9e8e5;
  border-color: rgba(155, 44, 44, 0.34);
  color: var(--danger);
}

.admin-agenda-row {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 42px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.admin-agenda-row strong,
.admin-agenda-row span,
.admin-agenda-row small {
  display: block;
}

.admin-agenda-row strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-agenda-row span {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.admin-agenda-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-agenda-row.is-free {
  background: var(--aqua);
  border-color: var(--aqua-strong);
  color: var(--teal-dark);
}

.admin-agenda-row.is-free:hover {
  background: var(--aqua-strong);
}

.admin-agenda-row.is-free.is-selected {
  background: var(--teal);
  border-color: var(--teal);
}

.admin-agenda-row.is-free.is-selected strong,
.admin-agenda-row.is-free.is-selected span,
.admin-agenda-row.is-free.is-selected small {
  color: #fff;
}

.admin-agenda-row.is-reservation {
  background: var(--sand);
}

.admin-agenda-row.is-google {
  background: #f3f8fb;
  border-color: #d5e3ec;
}

.mobile-booking-form legend {
  font-size: 19px;
}

.mobile-booking-form legend span {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.admin-guide-shell {
  padding-bottom: 36px;
}

.admin-guide-panel h2 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 20px;
  line-height: 1.18;
}

.admin-guide-panel p,
.admin-guide-panel li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.46;
}

.admin-guide-panel p {
  margin: 0 0 10px;
}

.admin-guide-panel p:last-child {
  margin-bottom: 0;
}

.admin-guide-panel ul,
.admin-guide-panel ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.admin-guide-panel li + li {
  margin-top: 8px;
}

.admin-guide-panel strong {
  color: var(--teal-dark);
}

.mobile-fields {
  display: grid;
  gap: 10px;
}

.customer-search-field {
  position: relative;
}

.customer-search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  display: grid;
  gap: 4px;
  max-height: 210px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(37, 61, 66, 0.16);
}

button.customer-search-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  gap: 4px;
}

button.customer-search-option:hover {
  border-color: var(--aqua-strong);
  background: var(--aqua);
}

button.customer-search-option strong,
button.customer-search-option span {
  text-align: left;
}

.customer-search-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
}

.customer-search-meta {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.customer-search-meta span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-search-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: var(--line-strong);
}

.admin-checkbox {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.is-embed {
  background: #fff;
}

body.is-embed .shell {
  width: min(100%, 1120px);
  padding: 0;
}

body.is-embed .topbar {
  display: none;
}

body.is-embed .booking-form,
body.is-embed .summary {
  box-shadow: none;
}

@media (max-width: 760px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar,
  .term-layout,
  .service-switch,
  .fields {
    display: block;
  }

  .admin-mobile-header {
    align-items: start;
    flex-direction: column;
  }

  .status-pill,
  .service-option,
  .times-panel,
  label + label {
    margin-top: 12px;
  }

  .service-option {
    width: 100%;
  }

  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .booking-form,
  .summary {
    padding: 15px;
  }

  .stepper {
    gap: 6px;
  }

  .step-pill {
    padding: 0 9px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 30px;
  }

  legend {
    font-size: 20px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 34px;
  }

  .actions {
    justify-content: stretch;
  }

  .actions button,
  .actions .payment-link {
    flex: 1 1 140px;
  }

  .confirmation-card {
    padding: 22px;
  }

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