:root {
  color-scheme: light;
  --ink: #244b45;
  --text: #253b35;
  --muted: #546860;
  --line: #d8e0d7;
  --wash: #edf2ea;
  --paper: #f5f5ee;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.5 system-ui, -apple-system, sans-serif; }
a { color: var(--ink); }
.shell { width: min(100% - 28px, 700px); margin: 28px auto; }
.page-head { padding: 8px clamp(2px, 2vw, 16px) 18px; }
.brand { display: inline-flex; }
.brand img { object-fit: contain; object-position: left center; }
.eyebrow { display: block; margin: 12px 0 6px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink); font: clamp(2rem, 8vw, 3.4rem)/1.08 Georgia, serif; }
h2 { margin: 0; color: var(--ink); font-size: 1.35rem; }
p { margin: .55rem 0; }
.page-head p { color: var(--muted); max-width: 48ch; }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 360px; background: #e5ebe2; border-radius: 15px; padding: 4px; margin-bottom: 12px; }
button { min-height: 44px; border-radius: 10px; border: 1px solid transparent; font: 650 .94rem/1.2 system-ui, sans-serif; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
.views button { background: transparent; color: var(--ink); }
.views button[aria-pressed="true"] { background: white; border-color: var(--line); }
.panel { padding: clamp(16px, 4vw, 28px); border-radius: 20px; border: 1px solid var(--line); background: white; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
legend { padding: 0; margin-bottom: 10px; color: var(--ink); font-size: 1.15rem; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
label { display: grid; gap: 6px; min-width: 0; font-weight: 650; }
select, input { width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px; color: var(--text); border: 1px solid #b9c6bd; border-radius: 10px; background: white; font: 16px/1.25 system-ui, sans-serif; }
.hint { color: var(--muted); font-size: .9rem; }
.contact-field, .phone-field { display: grid; gap: 6px; }
.phone-entry { display: flex; align-items: center; gap: 8px; min-height: 46px; border: 1px solid #b9c6bd; border-radius: 10px; background: white; }
.phone-entry span { padding-left: 11px; }
.phone-entry input { min-height: 44px; padding-left: 0; border: 0; background: transparent; }
.phone-entry span[hidden] + input { padding-left: 11px; }
.contact-hint, .phone-hint { margin: 0; }
.contact-preference { margin-top: 14px; }
.contact-preference legend { margin-bottom: 8px; font-size: 1rem; }
.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 8px; }
.contact-options label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.contact-options input { flex: none; width: 18px; min-height: 0; height: 18px; margin: 0; padding: 0; accent-color: var(--ink); }
#bookingEmailField { margin-top: 10px; }
.phone-hint[data-state="complete"] { color: var(--ink); font-weight: 600; }
.phone-hint[data-state="invalid"], .error { color: #892e25; }
.error { font-size: .9rem; }
#availability { margin-top: 12px; }
.times-heading { margin: 12px 0 8px; font-weight: 650; }
.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.time { position: relative; display: block; cursor: pointer; }
.time input { position: absolute; opacity: 0; margin: 0; }
.time span { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.time input:checked + span { color: white; background: var(--ink); border-color: var(--ink); }
.time input:focus-visible + span, :is(button, a, select, input):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.phone-entry:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.phone-entry input:focus-visible { outline: none; }
.selected-slot { padding: 10px 12px; margin: 0 0 12px; background: var(--wash); border-radius: 10px; font-weight: 650; }
.primary { width: 100%; color: white; background: var(--ink); padding: 10px 16px; }
.captcha { margin: 12px 0; }
.captcha button { width: 100%; padding: 10px 12px; color: var(--ink); background: var(--wash); border-color: var(--line); text-align: left; }
.captcha button::before { display: inline-grid; width: 20px; height: 20px; margin-right: 10px; vertical-align: middle; place-items: center; content: ''; border: 1px solid var(--ink); border-radius: 4px; }
.captcha button[data-verified] { opacity: 1; }
.captcha button[data-verified]::before { content: '✓'; color: white; background: var(--ink); }
.link-button { color: var(--ink); padding: 6px 8px; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.request-list { display: grid; gap: 10px; margin-top: 12px; }
.request { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.request h3 { margin: 6px 0 2px; font-size: 1.03rem; }
.pill { display: inline-block; border-radius: 20px; background: #f6eddb; padding: 3px 9px; color: #624f24; font-size: .86rem; font-weight: 650; }
.pill.confirmed { background: var(--wash); color: var(--ink); }
.pill.closed { background: #edf0ed; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 4px; font-size: .9rem; }
@media (max-width: 450px) {
  .shell { margin-top: 12px; }
  .fields { grid-template-columns: 1fr; gap: 10px; }
}
