:root {
  color: #172c27;
  background: #f5f5ef;
  font: 16px/1.5 "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --ink: #172c27;
  --muted: #586963;
  --line: #d9e2d8;
  --aqua: #e8f3ec;
  --paper: #fff;
  --green: #165b47;
  --lime: #d9f29f;
  --red: #a0393b;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--green); text-underline-offset: 3px; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #55aa8b; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -100px; background: white; padding: 12px; z-index: 1; }
.skip:focus { top: 12px; }
.masthead, footer { max-width: 1180px; margin: auto; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 25px; letter-spacing: -.055em; font-weight: 750; line-height: 1; }
.brand-mark { display: grid; align-content: end; grid-auto-flow: column; align-items: end; gap: 2px; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--ink); }
.brand-mark i { height: 9px; width: 4px; background: var(--lime); border-radius: 3px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 13px; }
main { max-width: 1180px; margin: 0 auto; min-height: 72vh; padding: 44px 28px 56px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; justify-content: flex-start; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.065em; line-height: 1; margin-bottom: 16px; font-weight: 750; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -.04em; line-height: 1.2; margin-bottom: 14px; }
h3 { font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: 6px; }
p { margin-bottom: 14px; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.4vw, 38px); }
.card.tight { padding: 19px 22px; }
.stack { display: grid; gap: 16px; }
.stack > :last-child, .row > :last-child, .card > :last-child { margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row > h2, .row > h3, .row > p { margin: 0; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; background: var(--green); color: white; text-decoration: none; font-size: .94rem; font-weight: 680; }
.btn:hover { filter: brightness(.93); }
.btn.light { background: var(--paper); color: var(--green); border-color: var(--line); }
.btn.dark { background: var(--ink); }
.btn.danger { color: var(--red); background: white; border-color: #efd7d5; }
.btn.link { background: none; color: var(--green); padding-inline: 2px; text-decoration: underline; text-underline-offset: 3px; }
.btn.square { min-width: 44px; padding: 8px; }
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px; background: var(--aqua); color: var(--green); font-size: .78rem; font-weight: 650; }
.pill.paused, .pill.canceled { background: #f1eeec; color: #625a53; }
.pill.holding, .pill.canceling, .pill.moving { background: #fff4d3; color: #6e5113; }
.notice { padding: 12px 15px; border: 1px solid #cce4d2; background: #eef7ed; color: #244f37; border-radius: 10px; font-size: .94rem; }
.notice.error { border-color: #edcecf; background: #fff4f3; color: #8c252c; }
.notice[hidden] { display: none; }
#feedback:not([hidden]), [data-feedback]:not([hidden]) { margin-bottom: 16px; }
.skeleton { min-height: 210px; max-width: 680px; margin: auto; }
.auth-card { max-width: 500px; margin: 30px auto; }
.auth-card h1 { font-size: 3rem; }
label.field { display: grid; gap: 6px; color: var(--ink); font-size: .89rem; font-weight: 650; }
label.field > span { min-height: 1em; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 44px; width: 100%; background: white; color: var(--ink); border: 1px solid #cdd9d0; border-radius: 8px; padding: 8px 11px; font-weight: 400; }
textarea { resize: vertical; min-height: 80px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 17px; height: 17px; margin: 0; }
.check { font-size: .91rem; display: flex; align-items: center; gap: 10px; min-height: 34px; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { font-size: .9rem; font-weight: 680; margin-bottom: 6px; }
.input-group { padding: 13px 0; border-bottom: 1px solid var(--line); }
.sr-only { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.dashboard-intro { margin-bottom: 23px; }
.dashboard-intro p { margin-bottom: 0; }
.dashboard-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.dashboard-nav button { border: 0; border-bottom: 2px solid transparent; background: transparent; min-height: 45px; font-weight: 680; color: var(--muted); padding: 8px 16px; }
.dashboard-nav [aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }
.type-list { display: grid; gap: 12px; }
.type-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; border-left: 4px solid #aacbb5; }
.type-row h2 { margin: 0 0 3px; }
.type-row p { margin: 0; }
.type-row .meta-line { margin-top: 9px; }
.configuration { display: grid; gap: 14px; }
.calendar-row { border: 1px solid var(--line); border-radius: 11px; padding: 10px 15px; }
.calendar-row summary { cursor: pointer; padding: 10px 0; font-weight: 680; }
.calendar-row > .stack { padding-bottom: 10px; }
.rule { background: var(--aqua); border-radius: 9px; padding: 12px; display: grid; grid-template-columns: 1.1fr .9fr 1fr .8fr auto; align-items: end; gap: 10px; }
.question { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.editor { max-width: 880px; }
.editor-section { padding: 23px 0; border-top: 1px solid var(--line); }
.week { display: grid; gap: 9px; }
.week label { grid-template-columns: 115px 1fr; align-items: center; }
.booking { max-width: 950px; margin-inline: auto; display: grid; grid-template-columns: minmax(240px,.8fr) minmax(320px,1.2fr); padding: 0; overflow: hidden; min-height: 465px; }
.booking-context { background: #eaf2e6; padding: clamp(22px,4vw,38px); }
.booking-context h1 { font-size: clamp(2.1rem,4.3vw,3.6rem); overflow-wrap: anywhere; }
.booking-context .context-byline { margin: 0 0 13px; font-weight: 650; color: var(--green); }
.booking-context .context-meta { display: grid; gap: 9px; padding: 0; margin: 18px 0; list-style: none; font-weight: 590; font-size: .91rem; }
.booking-context .description { white-space: pre-line; }
.booking-content { padding: clamp(22px,4vw,37px); }
.booking-content h2 { margin-bottom: 7px; }
.time[aria-pressed="true"] { background: var(--aqua); border-color: var(--green); color: var(--green); }
.time:hover { border-color: var(--green); }
.time { background: white; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; padding: 7px 5px; text-align: center; color: var(--green); font-weight: 680; }
.confirmation-card { max-width: 640px; margin: 22px auto; }
.confirmation-card h1 { font-size: clamp(2rem,4.4vw,3.45rem); }
.confirmation-card li { margin: 6px 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; }
.booking-list { display: grid; gap: 12px; }
.booking-list details { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.booking-list summary { cursor: pointer; color: var(--green); font-weight: 650; }
@media (max-width: 760px) {
  main { padding: 27px 17px 48px; }
  .masthead, footer { padding: 18px; }
  .booking { grid-template-columns: 1fr; }
  .booking-context { border-bottom: 1px solid var(--line); }
  .booking-context .context-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; }
  .rule { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .type-row { grid-template-columns: 1fr; }
}
@media (max-width: 450px) {
  .grid-two, .grid-three { grid-template-columns: 1fr; }
  .week label { grid-template-columns: 86px 1fr; }
  .rule { grid-template-columns: minmax(0,1fr); }
}

.type-row[hidden] { display: none; }
.picker-layout { display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(155px, 1fr); gap: 20px; align-items: start; }
.picker-layout.calendar-only { grid-template-columns: minmax(0, 360px); }
.availability-note { background: var(--aqua); border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.availability-note p { color: var(--muted); margin-bottom: 10px; }
.availability-note .btn + .btn { margin-left: 12px; }
.picker-layout h3 { margin-bottom: 0; }
.month-heading { flex-wrap: nowrap; }
.month-heading .row { flex-wrap: nowrap; gap: 6px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; align-items: center; }
.weekday { color: var(--muted); font-size: .7rem; font-weight: 620; margin-bottom: 4px; }
.month-day { height: 34px; padding: 0; border: 1px solid transparent; border-radius: 8px; color: var(--green); background: var(--aqua); font-weight: 650; }
.month-day:disabled { color: var(--muted); background: transparent; opacity: .65; cursor: default; }
.month-day[aria-pressed="true"] { color: white; background: var(--green); }
.slot-panel { border-top: 2px solid var(--line); padding-top: 10px; }
.time-list { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding: 3px; }
.time-row { display: flex; align-items: stretch; gap: 6px; }
.time-row .time { flex: 1; white-space: nowrap; font-size: .87rem; }
.time-row .btn { padding-inline: 10px; }
@media (max-width: 950px) {
  .picker-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .month-day { height: 41px; }
}
