:root {
  color-scheme: light;
  --page: #faf7f3;
  --paper: #fffefa;
  --text: #271f1c;
  --muted: #655951;
  --line: #e7dcd5;
  --wash: #f1e4dc;
  --brand: #98513d;
  --ink-on-brand: #fff;
  --radius: 16px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -.035em; }
p { overflow-wrap: break-word; }
h1 { font-size: clamp(37px, 5.8vw, 73px); line-height: 1.04; font-weight: 500; }
h2 { font-size: 25px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 15px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-inner { min-height: 70px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand strong { line-height: 1.2; }
#monogram { display: grid; place-items: center; border-radius: 50%; width: 38px; height: 38px; background: var(--wash); font: 24px Georgia, serif; flex-shrink: 0; }
.link { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; flex-shrink: 0; }
.demo-banner { text-align: center; background: var(--wash); padding: 8px 16px; font-size: 12px; color: var(--text); }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; margin: 28px 0 46px; border: 1px solid var(--line); border-radius: 23px; overflow: hidden; background: #f1e8de; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 17px; padding: clamp(22px, 5vw, 63px); }
.hero p { color: var(--muted); max-width: 340px; }
.hero img { width: 100%; height: 100%; min-height: 350px; max-height: 430px; object-fit: cover; }
.hero.no-cover { grid-template-columns: 1fr; }
.hero.no-cover br { display: none; }
.button, .outline {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px;
  min-height: 43px; border-radius: 9px; border: 1px solid transparent;
  color: var(--ink-on-brand); background: var(--brand); font-weight: 600; font-size: 13px; text-decoration: none;
}
.outline { color: var(--text); border-color: var(--line); background: var(--paper); }
.button:hover:not(:disabled), .outline:hover:not(:disabled) { filter: brightness(.94); }
.small-button { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.full { width: 100%; }
.card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.booking-layout { display: grid; grid-template-columns: 1.37fr minmax(340px, 1fr); align-items: start; gap: 26px; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.service {
  padding: 0; display: flex; flex-direction: column; text-align: left; overflow: hidden;
  background: var(--paper); border-radius: 14px; border: 1px solid var(--line); width: 100%;
}
.service:hover, .service[aria-pressed=true] { border-color: var(--brand); }
.service img { width: 100%; height: 113px; object-fit: cover; }
.service-content { display: grid; gap: 7px; width: 100%; padding: 15px; flex: 1; }
.service-content strong { font-size: 16px; line-height: 1.24; }
.service-description, .service-meta { font-size: 12px; color: var(--muted); }
.service-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 6px; }
.service-meta b { color: var(--text); font-size: 15px; }
.service-action { font-size: 12px; font-weight: 600; color: var(--text); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 5px; }
.service[aria-pressed=true] .service-action { color: var(--brand); }
.booking { position: sticky; top: 20px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.hint { display: block; font-size: 12px; color: var(--muted); margin: 8px 0; }
#scheduler h3 { margin: 20px 0 8px; }
#scheduler #visitor-title { margin: 0 0 4px; scroll-margin-top: 18px; }
#selected-time { font-size: 13px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 9px 0; }
.calendar-head p { text-transform: capitalize; font-weight: 600; }
.dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.date, .slot { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 2px; text-align: center; min-height: 45px; }
.date span { display: block; font-size: 10px; }
.date strong { display: block; }
.date[aria-pressed=true], .slot[aria-pressed=true] { background: var(--wash); border-color: var(--brand); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 200px; overflow: auto; padding: 3px; font-size: 13px; }
.slots p { grid-column: 1/-1; padding: 3px; }
.slot { min-height: 37px; }
#booking-form { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
label { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 500; }
label input, label textarea, label select {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px;
}
label input[type=color] { min-height: 42px; padding: 4px; }
label textarea { resize: vertical; }
.check { display: flex; align-items: start; gap: 7px; font-weight: 400; }
.check input { width: 15px; margin: 3px 0 0; accent-color: var(--brand); flex: 0 0 15px; }
.notice { border-radius: 8px; background: #ece9df; color: #4f4639; padding: 10px 13px; margin: 10px 0; font-size: 13px; }
.notice.error { background: #f8e3dc; color: #772b20; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 100px; font-size: 12px; background: var(--wash); line-height: 1.2; font-weight: 600; }
.tag.pending { background: #f2e7c6; color: #674b13; }
.tag.confirmed { background: #e4ecdd; color: #355235; }
.tag.expired, .tag.cancelled { background: #eee8e5; color: #645a54; }
.business-info { margin-top: 45px; padding: 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.business-info p { margin: 8px 0; max-width: 670px; }
.footer { padding-top: 22px; padding-bottom: 25px; display: flex; gap: 18px; justify-content: space-between; font-size: 12px; color: var(--muted); }
.receipt { max-width: 630px; margin: 34px auto 55px; }
.receipt h1 { font-size: clamp(29px, 5vw, 43px); line-height: 1.1; }
.receipt dl { margin: 18px 0; }
.receipt dl div { display: flex; gap: 10px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#notify { margin-top: 14px; }
.login-card { max-width: 465px; margin: 40px auto; }
.admin-main { max-width: 980px; margin-top: 24px; padding-bottom: 35px; }
.admin-main h1 { font-size: 32px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.admin-tabs button[aria-pressed=true] { background: var(--wash); border-color: var(--brand); }
.section-title, .row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.admin-list { display: grid; gap: 10px; margin: 14px 0; }
.record { border-radius: 10px; border: 1px solid var(--line); padding: 12px 14px; background: var(--page); }
.record .actions { margin-top: 8px; }
.record p { margin-top: 4px; }
.record small { color: var(--muted); }
.record .appointment-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
.shift { display: grid; grid-template-columns: 100px repeat(4, minmax(0, 1fr)); align-items: center; gap: 5px; margin: 3px 0; }
.shift input { min-width: 0; width: 100%; max-width: 95px; padding: 6px 5px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 19px 0; }
dialog { width: min(540px, calc(100% - 28px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--text); }
dialog::backdrop { background: #21191388; }
dialog .outline { min-height: 34px; }
.action-danger { color: #8a3328; }
@media (max-width: 900px) {
  .booking-layout { gap: 16px; }
  .card { padding: 18px; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .head-inner { min-height: 58px; }
  .hero { margin: 16px 0 24px; grid-template-columns: 1fr; }
  .hero-copy { padding: 22px; gap: 13px; }
  .hero-copy h1 br { display: none; }
  .hero img { min-height: 0; height: 155px; object-position: center 48%; }
  .booking-layout { grid-template-columns: 1fr; gap: 20px; }
  .booking { position: static; }
  .service img { height: 93px; }
  .service-content { padding: 11px; }
  .service-content strong { font-size: 14px; }
  .services { gap: 9px; }
  #booking-form input:not([type=checkbox]), #booking-form textarea { font-size: 16px; }
  .business-info { flex-direction: column; margin-top: 25px; }
  .admin-main { margin-top: 16px; }
  .admin-tabs { gap: 5px; }
}
@media (max-width: 390px) {
  .date span { font-size: 9px; }
  .fields { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 49px repeat(4, minmax(0, 1fr)); }
  .shift input, .shift > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.service-meta small { font-size: 9px; font-weight: 500; color: var(--muted); }
.calendar-head p { font-size: 13px; text-align: center; line-height: 1.25; }
