.booking-section {
  width: min(100% - 2rem, 1240px);
  min-height: 55vh;
  margin-inline: auto;
  padding: clamp(30px, 6vw, 78px) 0 clamp(55px, 8vw, 105px);
}
.booking-site-header { border-bottom: 1px solid var(--line); }
.booking-site-header nav { gap: clamp(12px, 2vw, 27px); }
.booking-section h2 { font-size: clamp(25px, 3vw, 34px); }
.booking-section h3 { font-size: clamp(21px, 2.5vw, 27px); }
.booking-section .page-heading { max-width: 770px; margin: 0 0 32px; }
.booking-section .page-heading h1 { margin: 9px 0 12px; text-wrap: balance; }
.booking-section .page-heading > p { margin: 0 0 12px; }
.booking-section > .textlink + .page-heading { margin-top: 23px; }
.booking-section .eyebrow { color: #50583b; }
.booking-section .textlink { width: fit-content; }
.booking-section .button { line-height: 1.45; width: fit-content; min-height: 44px; }
.booking-section .button.light:hover { background: #f0e9d7; }
.booking-section .button:focus-visible, .booking-section .textlink:focus-visible { outline-offset: 3px; }
.booking-panel {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #fffdf7;
  min-width: 0;
}
.booking-panel h2:first-child, .booking-panel h3:first-child { margin-top: 0; }
.booking-panel h2:last-child, .booking-panel p:last-child { margin-bottom: 0; }
.booking-panel .panel-heading h2 { margin: 0; }
.booking-panel .panel-heading { margin-bottom: 15px; }
.booking-panel .fine { color: #505646; }
.booking-narrow { max-width: 720px; }
.booking-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); gap: 24px; align-items: start; }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.portal-heading { align-items: start; }
.portal-heading .page-heading { margin-bottom: 14px; }
.portal-heading > .textlink, .dashboard-actions { margin-top: 8px; }
.account-line { overflow-wrap: anywhere; }
.signin-panel > .button { margin: 8px 18px 8px 0; }
.empty-panel h2 { margin-bottom: 10px; }
.empty-panel p { margin-top: 0; }
.filter-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; max-width: 840px; margin-bottom: 27px; }
.filter-form label, .booking-section form > label, .booking-section .formrow > label { font-weight: 600; }
.booking-section input, .booking-section select, .booking-section textarea { font-weight: 400; background: var(--cream); min-width: 0; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.professional-card .eyebrow { margin-top: 0; }
.professional-card h2 { margin: 10px 0; }
.professional-card .button { margin-top: 8px; }
.profile-bio { white-space: pre-wrap; }
.profile-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notice { border: 1px solid #8f9a72; border-left-width: 4px; padding: 12px 16px; background: #e9eddf; margin: 0 0 20px; }
.notice-error { border-color: #9e6145; background: #f8ede0; }
.service-choices { display: grid; gap: 9px; }
.service-menu { display: grid; gap: 20px; }
.service-group h3 { margin: 0 0 9px; font-size: 19px; }
.settings-panel .service-group + .service-group { margin-top: 20px; }
.service-menu + .external-booking { margin-top: 20px; }
.service-choice { display: grid; padding: 12px 15px; background: var(--cream); border: 1px solid var(--line); }
.service-choice strong { font-size: 16px; }
.service-choice span, .service-choice small { font-size: 14px; }
.service-choice small { margin-top: 4px; }
a.service-choice:hover, .service-choice.selected { border-color: var(--leaf); background: #e8ecdc; }
.service-choice.selected { box-shadow: inset 3px 0 var(--leaf); }
.calendar-nav { display: flex; justify-content: space-between; margin: 10px 0 14px; }
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day-strip a, .time-grid a {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 44px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.day-strip a { padding: 7px 2px; line-height: 1.3; font-size: 13px; }
.day-strip span, .day-strip small { font-size: 11px; }
.day-strip a:hover, .time-grid a:hover { border-color: var(--leaf); background: #e8ecdc; }
.day-strip a.selected, .time-grid a.selected { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.calendar-date { margin: 16px 0 9px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(79px, 1fr)); gap: 6px; font-size: 14px; }
.confirm-time { margin-top: 23px; padding-top: 14px; border-top: 1px solid var(--line); }
.confirm-time form { max-width: 440px; }
.confirm-time form .fine { margin-top: -4px; }
.appointment-list { display: grid; gap: 12px; }
.appointment-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .85fr) minmax(155px, .68fr); gap: 20px; align-items: start; }
.appointment-card h3 { margin: 4px 0 8px; }
.appointment-card p { margin: 0; }
.appointment-actions, .studio-list-links { display: flex; align-items: start; flex-direction: column; gap: 6px; }
.cancel-details { padding: 0; border: 0; }
.cancel-details summary { font-size: 14px; }
.cancel-details form { margin-top: 8px; }
.portal-history { margin-top: 36px; }
.dashboard-actions, .dashboard-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.dashboard-tabs { justify-content: flex-start; border-bottom: 1px solid var(--line); margin: 0 0 24px; gap: 5px; }
.dashboard-tabs a { padding: 10px 15px; border-bottom: 2px solid transparent; min-height: 44px; }
.dashboard-tabs a:hover, .dashboard-tabs a.selected { background: #eeefdf; }
.dashboard-tabs a.selected { border-color: var(--leaf); font-weight: 600; }
.draft-tip { margin: 0 0 19px; }
.calendar-tools { display: grid; gap: 20px; }
.check-field { display: flex; align-items: center; gap: 9px; }
.check-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--leaf); flex: none; }
.hours-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 1px solid var(--line); padding: 7px 12px 12px; margin: 0; }
.hours-row legend { font-size: 14px; font-weight: 600; padding: 0 5px; }
.agenda-item, .studio-list li { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.agenda-item p { margin: 4px 0; }
.agenda-item a { overflow-wrap: anywhere; }
.service-editor { padding: 13px 0; }
.service-editor form { margin-top: 14px; }
.studio-list { margin: 0; padding: 0; list-style: none; }
.studio-list-links { align-items: end; }
@media (max-width: 800px) {
  .booking-columns { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appointment-card { grid-template-columns: 1fr 1fr; }
  .appointment-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 12px 18px; }
}
@media (max-width: 540px) {
  .directory-grid, .filter-form, .appointment-card { grid-template-columns: 1fr; }
  .dashboard-tabs a { padding-inline: 9px; }
  .day-strip { gap: 3px; }
  .day-strip a { font-size: 11px; }
  .day-strip span, .day-strip small { font-size: 10px; }
  .agenda-item { flex-wrap: wrap; }
}
