/* Shared booking / studio management surface. */
.booking-page .quick-book {
  display: none;
}
.booking-shell {
  max-width: 1220px;
  margin: auto;
  padding: 54px var(--gutter) 100px;
}
.booking-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}
.booking-heading h1 {
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.02;
  margin: 10px 0;
}
.booking-heading p {
  color: var(--muted);
  max-width: 360px;
  font-size: 14px;
}
.booking-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mode-note {
  background: #e9e0d4;
  border-left: 2px solid var(--taupe);
  font-size: 12px;
  padding: 12px 16px;
  margin-bottom: 25px;
  line-height: 1.65;
}
.mode-note a {
  text-decoration: underline;
}
.booking-steps {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  margin: 0 0 36px;
  border-block: 1px solid var(--line);
  list-style: none;
  counter-reset: steps;
}
.booking-steps li {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 5px;
}
.booking-steps li[aria-current="step"] {
  color: var(--ink);
  border-bottom: 1px solid var(--brown);
}
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 64px;
  align-items: start;
}
.booking-work h2 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: none;
}
.booking-work p {
  font-size: 14px;
  color: var(--muted);
}
.booking-aside {
  position: sticky;
  top: 30px;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.booking-aside h2 {
  font-size: 26px;
  margin: 8px 0 20px;
}
.booking-aside dl {
  font-size: 13px;
}
.booking-aside dt {
  color: var(--muted);
  margin-top: 16px;
}
.booking-aside dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.booking-aside .total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
}
.booking-aside .address {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.category-tabs button,
.slot-button,
.small-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}
.category-tabs button[aria-pressed="true"],
.slot-button[aria-pressed="true"] {
  background: var(--brown);
  color: var(--warm-white);
  border-color: var(--brown);
}
.service-choice {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.service-choice:hover {
  color: var(--brown);
}
.service-choice strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.12;
}
.service-choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.service-choice > span:last-child {
  white-space: nowrap;
  font-size: 14px;
}
.booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--warm-white);
  font: 600 11px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s;
}
.booking-button:hover {
  background: var(--brown);
}
.booking-button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.booking-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.booking-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 18px;
}
.booking-field input,
.booking-field select,
.booking-field textarea,
.studio-input {
  font: inherit;
  color: var(--ink);
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  min-height: 46px;
  width: 100%;
  min-width: 0;
}
.booking-field textarea {
  resize: vertical;
  min-height: 140px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.booking-error {
  color: #91342a;
  font-size: 13px;
  background: #f5e9e4;
  padding: 13px 16px;
  border-left: 2px solid #91342a;
  margin: 15px 0;
}
.booking-message {
  font-size: 13px;
  padding: 16px;
  background: var(--warm-white);
  border-left: 2px solid var(--taupe);
  margin: 18px 0;
}
.booking-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  margin: 20px 0;
}
.booking-check input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--brown);
  flex: none;
}
.policy-box {
  font-size: 13px;
  line-height: 1.8;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  white-space: pre-line;
}
.private-note,.legal-links{font-size:12px!important;line-height:1.6}.private-note a,.legal-links a{text-decoration:underline;text-underline-offset:3px}.booking-check span{line-height:1.55}
.booking-success {
  max-width: 650px;
  margin: 40px auto;
  text-align: center;
}
.booking-success h1 {
  font-size: 58px;
  line-height: 1.05;
  margin: 20px 0;
}
.booking-success dl {
  text-align: left;
  background: var(--warm-white);
  padding: 25px;
  font-size: 14px;
}
.booking-success dt {
  color: var(--muted);
  margin-top: 12px;
}
.booking-success dd {
  margin: 4px 0 16px;
}
.booking-success .booking-actions {
  justify-content: center;
}
.booking-success p {
  color: var(--muted);
  font-size: 14px;
}
.empty-state {
  padding: 35px 0;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
:is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
}
.studio-body {
  background: var(--cream);
}
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 5vw;
  border-bottom: 1px solid var(--line);
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.studio-brand img {
  width: 66px;
  height: 44px;
  object-fit: contain;
}
.studio-brand span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.studio-header a {
  font-size: 12px;
}
.studio-main {
  max-width: 1450px;
  margin: auto;
  padding: 35px 5vw 80px;
}
.studio-nav {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 35px;
}
.studio-nav button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  white-space: nowrap;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.studio-nav button[aria-current="page"] {
  border-color: var(--brown);
  color: var(--ink);
}
.studio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
.studio-heading h1 {
  font-size: 48px;
  line-height: 1.1;
}
.studio-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
}
.studio-panel {
  background: var(--warm-white);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.studio-panel h2,
.studio-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
}
.studio-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.studio-section > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.studio-toolbar input {
  width: auto;
}
.appointment {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.appointment-time {
  font-size: 18px;
}
.appointment-time small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.appointment h3 {
  font: 600 15px var(--sans);
  margin-bottom: 5px;
}
.appointment p {
  font-size: 13px;
  color: var(--muted);
}
.appointment button {
  font-size: 11px;
}
.status-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 3px;
  background: #e5ebdf;
  color: #34432e;
  margin-top: 6px;
}
.status-pill.pending {
  background: #f1e6cf;
  color: #735a22;
}
.status-pill.cancelled,
.status-pill.expired,
.status-pill.no_show {
  background: #eee1dc;
  color: #793d2c;
}
.studio-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-block: 1px solid var(--line);
  padding: 24px 0;
  margin: 24px 0;
}
.studio-summary strong {
  font: 36px var(--serif);
  display: block;
}
.studio-summary span {
  font-size: 11px;
  color: var(--muted);
}
.studio-login {
  max-width: 450px;
  margin: 60px auto;
}
.studio-login h1 {
  font-size: 46px;
  line-height: 1.1;
  margin: 18px 0;
}
.studio-login p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.studio-table-wrap {
  overflow-x: auto;
}
.studio-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.studio-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.studio-table td,
.studio-table th {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.studio-table td:first-child,
.studio-table th:first-child {
  padding-left: 0;
}
.studio-table small {
  display: block;
  color: var(--muted);
}
.service-categories {
  display: grid;
  gap: 14px;
}
.service-category {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.38);
}
.service-category + .service-category {
  margin-top: -1px;
}
.service-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}
.service-category summary::-webkit-details-marker {
  display: none;
}
.service-category summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}
.service-category[open] summary::after {
  content: "−";
}
.service-category summary > span:first-child {
  display: grid;
  gap: 3px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
}
.service-category summary small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.service-category-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.service-category .studio-table-wrap {
  padding: 0 4px 12px;
}
.service-visibility {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.service-visibility::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}
.service-visibility.is-visible::before {
  background: #65745c;
}
.hours-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 15px;
  font-size: 13px;
}
.hours-row input {
  font-size: 13px;
}
.studio-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: 90svh;
  border: 1px solid var(--line);
  padding: 30px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 10px;
}
.studio-dialog::backdrop {
  background: #17130f88;
}
.studio-dialog h2 {
  font-size: 34px;
  margin-bottom: 20px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.dialog-top button {
  align-self: start;
}
.studio-dialog p {
  font-size: 13px;
  margin-bottom: 18px;
}
.studio-dialog .booking-error {
  position: sticky;
  bottom: 0;
}
.private-note {
  font-size: 11px;
  color: var(--muted);
}
.notice-success {
  background: #e4eadf;
  padding: 12px 16px;
  font-size: 13px;
  margin: 15px 0;
}
.service-editor {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.studio-footer {
  font-size: 11px;
  color: var(--muted);
  padding-top: 28px;
}
.studio-link {
  font-size: 12px;
  text-decoration: underline;
}
@media (max-width: 1000px) {
  .booking-grid {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .booking-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .studio-header {
    padding-inline: 24px;
  }
}
@media (max-width: 700px) {
  .booking-shell {
    padding-top: 28px;
  }
  .booking-heading {
    margin-bottom: 22px;
  }
  .booking-heading h1 {
    font-size: 48px;
  }
  .booking-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }
  .booking-work,
  .booking-aside {
    width: 100%;
  }
  .booking-aside {
    position: static;
  }
  .booking-steps {
    gap: 0;
    justify-content: space-between;
    margin-bottom: 25px;
  }
  .booking-steps li {
    font-size: 10px;
  }
  .booking-work h2 {
    font-size: 32px;
  }
  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .booking-actions > .booking-button {
    flex: 1;
  }
  .booking-success h1 {
    font-size: 43px;
  }
  .studio-main {
    padding-inline: 20px;
  }
  .studio-heading {
    align-items: start;
    flex-direction: column;
  }
  .studio-heading h1 {
    font-size: 40px;
  }
  .studio-header {
    padding: 15px 20px;
  }
  .studio-brand {
    gap: 10px;
  }
  .studio-brand span {
    font-size: 9px;
  }
  .studio-nav {
    gap: 20px;
  }
  .studio-summary {
    gap: 10px;
  }
  .studio-summary strong {
    font-size: 29px;
  }
  .appointment {
    grid-template-columns: 57px minmax(0, 1fr);
    gap: 15px;
  }
  .appointment > button {
    grid-column: 2;
    justify-self: start;
  }
  .studio-panel {
    padding: 20px;
  }
  .hours-row {
    grid-template-columns: 70px 1fr;
    gap: 8px;
  }
  .service-editor {
    grid-template-columns: 1fr;
  }
  .service-category summary {
    align-items: flex-start;
    padding-block: 17px;
  }
  .service-category-count {
    max-width: 120px;
    text-align: right;
  }
  .studio-dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.booking-page .booking-heading h1 {
  font-size: clamp(44px, 4.7vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: none;
}
.booking-heading > div {
  flex-shrink: 0;
}
.booking-heading > p {
  max-width: 320px;
}
.booking-page .booking-aside h2 {
  font-size: 28px;
  line-height: 1.1;
  text-transform: none;
}
.booking-page .booking-work h2 {
  font-size: 36px;
  line-height: 1.1;
  text-transform: none;
}
.booking-page .booking-work h3 {
  font-size: 25px;
  text-transform: none;
}
.booking-page .booking-success h1 {
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  text-transform: none;
}
.booking-page .booking-heading {
  align-items: center;
}
.booking-shell {
  padding-top: 38px;
}
@media (max-width: 700px) {
  .booking-page .booking-heading h1 {
    font-size: 46px;
  }
  .booking-page .booking-work h2 {
    font-size: 30px;
  }
  .booking-page .booking-heading {
    align-items: start;
  }
}

.booking-calendar { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--warm-white); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.booking-work .calendar-header h3 { margin: 0; font: 400 26px var(--serif); text-transform: capitalize; }
.calendar-header button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 25px; cursor: pointer; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.calendar-weekdays { margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.calendar-days button { position: relative; min-height: 44px; width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; color: var(--ink); font: 13px var(--sans); cursor: pointer; }
.calendar-days button:disabled { opacity: .35; }
.calendar-days .is-available::after { content: ''; position: absolute; bottom: 5px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.calendar-days button[aria-current="date"] { border-color: var(--taupe); }
.calendar-days button:not(:disabled):hover { background: var(--cream); }
.calendar-days button[aria-pressed="true"] { background: var(--brown); color: var(--warm-white); }
.booking-work .calendar-legend, .booking-work #calendar-status { font-size: 11px; margin: 16px 0 0; }
.slot-date { margin-top: 24px; }
.slot-button { min-height: 44px; }
@media(max-width:400px) { .booking-calendar { padding: 14px 10px; } .calendar-days, .calendar-weekdays { gap: 2px; } }

/* Studio controls: readable native fields and generous phone tap targets. */
.studio-body .studio-nav { display:flex; flex-wrap:wrap; gap:8px; }
.studio-body .studio-nav button, .studio-body .small-button { min-height:44px; }
.studio-body .studio-input, .studio-body input, .studio-body select, .studio-body textarea { font-size:16px; }
.studio-body [hidden] { display:none !important; }
.admin-day { margin:16px 0; padding:16px; border:1px solid var(--line); border-radius:8px; min-width:0; }
.admin-day legend { padding:0 6px; font-weight:600; }
.admin-time-range { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:12px; align-items:end; margin-bottom:12px; }
.admin-time-range .booking-field { margin:0; min-width:0; }
.admin-time-range input { min-width:0; width:100%; }
.admin-details summary { min-height:44px; padding:12px 0; cursor:pointer; font-weight:600; }
.admin-details > summary:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.admin-save-bar { position:sticky; bottom:0; z-index:2; display:flex; gap:16px; justify-content:space-between; align-items:center; padding:16px; padding-bottom:max(16px,env(safe-area-inset-bottom)); background:var(--warm-white,#fff); border:1px solid var(--line); border-radius:8px; }
.admin-save-bar p { margin:0; }
.admin-steps li { margin-bottom:16px; padding-left:6px; }
@media(max-width:600px) {
 .admin-time-range { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .admin-time-range > button { grid-column:1/-1; justify-self:start; }
 .admin-save-bar { flex-direction:column; align-items:stretch; gap:8px; }
 .studio-body .studio-nav button { flex:1 1 auto; }
 .studio-dialog { max-height:90dvh; overflow:auto; }
 .studio-body .appointment { grid-template-columns:1fr; }
 .studio-body .appointment .small-button { justify-self:start; }
}
.studio-body h1 { font-size:clamp(32px,4vw,44px); line-height:1.12; text-transform:none; }
.studio-body h2 { font-size:26px; line-height:1.2; text-transform:none; }
.studio-body h3 { text-transform:none; }
.studio-body .studio-nav button[aria-current="page"] { font-weight:600; }
