:root {
  --ink: #0e1d1a;
  --forest: #153f35;
  --forest-dark: #0d211c;
  --forest-mid: #317360;
  --lime: #c9ee76;
  --paper: #efede5;
  --white: #fffef9;
  --muted: #65706c;
  --line: rgba(14, 29, 26, 0.14);
  --shadow: 0 26px 80px rgba(26, 48, 40, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 11%, rgba(201, 238, 118, 0.22), transparent 24rem),
    radial-gradient(circle at 96% 44%, rgba(49, 115, 96, 0.12), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(49, 115, 96, 0.42); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-180%);
  background: var(--lime);
  font-size: 0.82rem;
  font-weight: 750;
}
.skip-link:focus { transform: translateY(0); }

.bookings-nav, .bookings-footer, .bookings-shell {
  width: min(1240px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin: 0 auto;
}
.bookings-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.bookings-logo { width: clamp(205px, 18vw, 242px); display: block; line-height: 0; }
.bookings-logo img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.bookings-nav nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2rem); }
.bookings-nav nav a { position: relative; color: #43504c; font-size: 0.82rem; font-weight: 720; }
.bookings-nav nav a:hover, .bookings-nav nav a.is-current { color: var(--forest); }
.bookings-nav nav a.is-current::after { content: ""; position: absolute; right: 0; bottom: -0.55rem; left: 0; height: 2px; background: var(--forest); }

.bookings-shell { padding: clamp(3rem, 7vw, 7rem) 0 4rem; }
.bookings-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(285px, 0.55fr); align-items: end; gap: clamp(2rem, 7vw, 7rem); }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--forest-mid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0.8rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.7rem, 9vw, 8.2rem); font-weight: 400; line-height: 0.88; letter-spacing: -0.06em; }
.hero-copy { max-width: 690px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.75; }
.privacy-card { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.35rem; border: 1px solid rgba(21, 63, 53, 0.16); border-radius: 0.9rem; background: rgba(255, 254, 249, 0.68); }
.privacy-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 1.15rem; font-weight: 900; }
.privacy-card strong { display: block; font-size: 0.85rem; }
.privacy-card p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.55; }

.lookup-card, .results, .empty-card, .state-card {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  border: 1px solid rgba(21, 63, 53, 0.13);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: var(--shadow);
}
.lookup-card { padding: clamp(1.5rem, 4vw, 3rem); }
.lookup-heading, .results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.lookup-heading h2, .results-heading h2, .empty-card h2 { margin: 0.45rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -0.035em; }
.live-chip { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--forest-mid); font-size: 0.68rem; font-weight: 750; }
.live-chip > span { width: 7px; height: 7px; border-radius: 50%; background: #28b77b; box-shadow: 0 0 0 3px rgba(40, 183, 123, 0.13); }
.lookup-form { margin-top: 1.8rem; display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(210px, 0.8fr) auto; align-items: end; gap: 0.85rem; }
.lookup-form label { display: grid; gap: 0.45rem; }
.lookup-form label > span { color: #59645f; font-size: 0.67rem; font-weight: 780; letter-spacing: 0.04em; text-transform: uppercase; }
input, select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 0.55rem; color: var(--ink); background: #fbfaf5; }
input { padding: 0 0.9rem; }
select { padding: 0 2.2rem 0 0.9rem; }
input:focus, select:focus { border-color: var(--forest-mid); outline: 3px solid rgba(49, 115, 96, 0.14); }
.primary-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 0.8rem 1.2rem; border: 0; border-radius: 0.55rem; color: #fff; background: var(--forest); font-size: 0.8rem; font-weight: 780; cursor: pointer; }
.primary-button:hover { background: #0d2c25; }
.primary-button:disabled { opacity: 0.56; cursor: wait; }
.storage-note { margin: 0.8rem 0 0; color: #7d8582; font-size: 0.67rem; }
.lookup-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; flex-wrap: wrap; }
.admin-entry { margin-top: 0.8rem; padding: 0; border: 0; color: var(--forest-mid); background: transparent; font-size: 0.68rem; font-weight: 780; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-entry span { margin-left: 0.25rem; text-decoration: none; }

.state-card { min-height: 120px; display: flex; align-items: center; gap: 1rem; padding: 1.5rem; }
.state-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 400; }
.state-card p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.76rem; }
.spinner { width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid #d8ddd5; border-top-color: var(--forest-mid); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-error { border-color: #e4c8be; background: #fff8f3; }
.state-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #9d3b24; background: #f9ddd3; font-weight: 850; }
.admin-gate { border-color: rgba(49, 115, 96, 0.24); background: #f2f6ea; }
.admin-gate-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 1rem; }
.admin-gate > div { flex: 1; }
.admin-gate .primary-button { flex: 0 0 auto; }
.text-button { margin-left: auto; border: 0; color: var(--forest); background: transparent; font-size: 0.76rem; font-weight: 780; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty-card { padding: clamp(2rem, 7vw, 5.5rem); text-align: center; }
.empty-mark { width: 62px; height: 62px; margin: 0 auto 1.5rem; display: grid; place-items: center; border: 1px solid rgba(49, 115, 96, 0.25); border-radius: 50%; color: var(--forest); background: #edf4e3; font-size: 1.4rem; }
.empty-card p:not(.section-kicker) { max-width: 540px; margin: 1rem auto 0; color: var(--muted); font-size: 0.85rem; line-height: 1.7; }
.empty-card .primary-button { margin-top: 1.6rem; }

.results { overflow: hidden; }
.results-heading { padding: clamp(1.5rem, 4vw, 3rem); }
.sync-label { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.68rem; }
.view-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 0.28rem; border: 1px solid var(--line); border-radius: 0.65rem; background: #f3f2ec; }
.view-tab { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border: 0; border-radius: 0.45rem; color: var(--muted); background: transparent; font-size: 0.72rem; font-weight: 780; cursor: pointer; }
.view-tab.is-active { color: #fff; background: var(--forest); box-shadow: 0 4px 12px rgba(14, 29, 26, 0.12); }
.booking-stats { display: grid; grid-template-columns: 0.6fr 0.6fr 1.4fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8f7f1; }
.booking-stats article { min-height: 102px; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem clamp(1rem, 3vw, 2rem); border-right: 1px solid var(--line); }
.booking-stats article:last-child { border-right: 0; }
.booking-stats span { color: var(--muted); font-size: 0.64rem; font-weight: 780; letter-spacing: 0.06em; text-transform: uppercase; }
.booking-stats strong { margin-top: 0.4rem; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.booking-stats .next-stat strong { font-family: inherit; font-size: 0.82rem; font-weight: 750; line-height: 1.4; }
.management-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); background: #f2f6ea; }
.management-card.is-verified { background: #eaf5ee; }
.management-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(49, 115, 96, 0.22); border-radius: 50%; color: var(--forest); background: var(--white); font-weight: 850; }
.is-verified .management-icon { color: #fff; border-color: #28a66f; background: #28a66f; }
.management-copy strong { display: block; font-size: 0.82rem; }
.management-copy p { margin: 0.32rem 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.management-button { min-height: 40px; padding: 0.6rem 0.9rem; border: 1px solid var(--forest); border-radius: 0.48rem; color: #fff; background: var(--forest); font-size: 0.7rem; font-weight: 780; cursor: pointer; }
.management-button:hover { background: #0d2c25; }
.management-signout { margin-left: 0; white-space: nowrap; }
.view-panel { padding: clamp(1.3rem, 4vw, 3rem); }

.booking-group + .booking-group { margin-top: 2.4rem; }
.group-heading { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.85rem; }
.group-heading h3 { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.69rem; letter-spacing: 0.11em; text-transform: uppercase; }
.group-heading span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: #e8eddd; font-size: 0.62rem; font-weight: 800; }
.booking-list { display: grid; gap: 0.75rem; }
.booking-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fbfaf5; }
.booking-row.is-past { opacity: 0.72; }
.date-tile { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 0.55rem; color: #fff; background: var(--forest-dark); }
.date-tile span { color: var(--lime); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.date-tile strong { margin-top: 0.15rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; }
.booking-copy h4 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 400; }
.booking-copy p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.booking-copy .booking-guest { margin-top: 0.2rem; color: var(--forest-mid); font-size: 0.7rem; }
.status-line { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem; color: var(--forest-mid); font-size: 0.64rem; font-weight: 780; }
.status-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #28b77b; }
.is-past .status-line { color: var(--muted); }
.is-past .status-line::before { background: #9ea7a3; }
.meeting-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.45rem; }
.meeting-action { min-height: 40px; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid rgba(49, 115, 96, 0.28); border-radius: 0.45rem; color: var(--forest); background: #edf4e3; font-size: 0.7rem; font-weight: 780; cursor: pointer; }
.meeting-action:hover { color: #fff; background: var(--forest); }
.meeting-action.is-disabled { border-color: var(--line); color: var(--muted); background: #f2f1eb; pointer-events: none; }
.meeting-details { background: var(--white); }

.calendar-card { overflow: hidden; border: 1px solid var(--line); border-radius: 0.8rem; background: #fbfaf5; }
.calendar-toolbar { min-height: 72px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.calendar-toolbar h3 { margin: 0; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.month-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: var(--white); font-weight: 800; cursor: pointer; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); }
.calendar-weekdays span { padding: 0.7rem 0.35rem; color: var(--muted); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.calendar-day { min-width: 0; min-height: 112px; padding: 0.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-outside { background: #f5f3ed; }
.calendar-day.is-today .day-number { color: var(--forest-dark); background: var(--lime); }
.day-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 0.67rem; font-weight: 760; }
.day-meetings { margin-top: 0.35rem; display: grid; gap: 0.28rem; }
.calendar-booking { width: 100%; min-width: 0; padding: 0.4rem 0.45rem; overflow: hidden; border: 0; border-left: 3px solid var(--lime); border-radius: 0.28rem; color: #fff; background: var(--forest); font-size: 0.61rem; font-weight: 720; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.calendar-booking.is-past { border-left-color: #b8c0bc; color: #4f5a56; background: #e2e5df; }
.booking-modal {
  position: fixed;
  inset: auto;
  width: min(370px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 0;
  overflow: hidden auto;
  padding: 0;
  border: 1px solid rgba(14, 29, 26, 0.16);
  border-radius: 0.85rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(14, 29, 26, 0.25), 0 4px 18px rgba(14, 29, 26, 0.12);
  animation: modal-in 160ms ease-out;
}
.booking-modal::backdrop { background: rgba(14, 29, 26, 0.18); backdrop-filter: blur(1.5px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-accent { height: 7px; background: linear-gradient(90deg, var(--lime), #67bf8e); }
.booking-modal.is-past .modal-accent { background: #b8c0bc; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #53605b; background: #f0efe9; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--forest); background: #e5eadf; }
.modal-content { padding: 1.4rem 1.5rem 1.5rem; }
.modal-status { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; color: var(--forest-mid); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.modal-status > span { width: 7px; height: 7px; border-radius: 50%; background: #28b77b; box-shadow: 0 0 0 3px rgba(40, 183, 123, 0.13); }
.is-past .modal-status { color: var(--muted); }
.is-past .modal-status > span { background: #9ea7a3; box-shadow: 0 0 0 3px rgba(158, 167, 163, 0.14); }
.booking-modal h2 { max-width: 285px; margin: 0.75rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; }
.modal-details { margin: 1.3rem 0 0; display: grid; gap: 0; }
.modal-details > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.modal-details dt { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.66rem; font-weight: 760; }
.modal-details dt span { width: 17px; color: var(--forest-mid); text-align: center; font-size: 0.8rem; }
.modal-details dd { margin: 0; color: var(--ink); font-size: 0.72rem; font-weight: 680; line-height: 1.45; }
.modal-actions { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr auto; gap: 0.55rem; }
.modal-primary, .modal-secondary, .modal-danger { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.48rem; font-size: 0.72rem; font-weight: 780; cursor: pointer; }
.modal-primary { gap: 0.7rem; padding: 0.7rem 0.9rem; color: #fff; background: var(--forest); }
.modal-primary:hover { background: #0d2c25; }
.modal-secondary { padding: 0.7rem 0.8rem; border: 1px solid var(--line); color: var(--forest); background: #f7f6f0; }
.modal-secondary:hover { border-color: rgba(49, 115, 96, 0.35); background: #edf4e3; }
.modal-danger { grid-column: 1 / -1; padding: 0.7rem 0.9rem; border: 1px solid #dfb6aa; color: #9d3b24; background: #fff8f3; }
.modal-danger:hover { border-color: #c97f6d; background: #fce9e2; }
.modal-danger.is-solid { grid-column: auto; color: #fff; border-color: #a43c26; background: #a43c26; }
.modal-danger:disabled { opacity: 0.58; cursor: wait; }
.cancel-confirmation { margin-top: 1rem; padding: 1rem; border: 1px solid #e4c8be; border-radius: 0.65rem; background: #fff8f3; }
.booking-modal.is-confirming .modal-details,
.booking-modal.is-confirming .modal-actions { display: none; }
.booking-modal.is-confirming .cancel-confirmation { margin-top: 1.3rem; }
.cancel-confirmation > strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 400; }
.cancel-confirmation > p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.cancel-confirmation > div { margin-top: 0.85rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.inline-error { color: #9d3b24 !important; font-weight: 700; }

.auth-modal { width: min(480px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); margin: auto; padding: clamp(1.5rem, 5vw, 2.5rem); overflow: auto; border: 1px solid rgba(14, 29, 26, 0.16); border-radius: 1rem; color: var(--ink); background: var(--white); box-shadow: 0 30px 90px rgba(14, 29, 26, 0.3); }
.auth-modal::backdrop { background: rgba(14, 29, 26, 0.42); backdrop-filter: blur(2px); }
.auth-mark { width: 48px; height: 48px; margin-bottom: 1.1rem; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 1.15rem; }
.auth-modal h2 { margin: 0.55rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 7vw, 3.1rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.auth-modal > p:not(.section-kicker) { margin: 1rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.65; }
.auth-modal > p strong { color: var(--ink); }
.auth-primary { width: 100%; margin-top: 1.2rem; }
.verify-code-form { margin-top: 1.3rem; display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; }
.verify-code-form label { grid-column: 1 / -1; color: #59645f; font-size: 0.67rem; font-weight: 780; letter-spacing: 0.04em; text-transform: uppercase; }
.verify-code-form input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.2rem; font-weight: 780; letter-spacing: 0.22em; text-align: center; }
.auth-status { min-height: 1.2em; color: var(--forest-mid) !important; font-weight: 700; }
.auth-status.is-error { color: #9d3b24 !important; }
.auth-resend { margin: 0.55rem 0 0; }
.booking-toast { position: fixed; z-index: 120; right: 1rem; bottom: 1rem; max-width: min(390px, calc(100vw - 2rem)); padding: 0.9rem 1.1rem; border: 1px solid rgba(201, 238, 118, 0.45); border-radius: 0.65rem; color: #fff; background: var(--forest-dark); box-shadow: 0 16px 42px rgba(14, 29, 26, 0.28); font-size: 0.75rem; font-weight: 740; line-height: 1.45; }

.bookings-footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: #69746f; font-size: 0.73rem; }
.bookings-footer div { display: flex; gap: 1.2rem; }
.bookings-footer a:hover { color: var(--forest); }

@media (max-width: 860px) {
  .bookings-hero { grid-template-columns: 1fr; align-items: start; }
  .privacy-card { max-width: 560px; }
  .lookup-form { grid-template-columns: 1fr 1fr; }
  .lookup-form .primary-button { grid-column: 1 / -1; }
  .booking-row { grid-template-columns: 68px minmax(0, 1fr); }
  .booking-row .meeting-actions { grid-column: 2; justify-self: start; flex-wrap: wrap; }
  .calendar-day { min-height: 96px; padding: 0.4rem; }
}

@media (max-width: 620px) {
  .bookings-nav, .bookings-footer, .bookings-shell { width: calc(100% - 1.2rem); }
  .bookings-nav { min-height: 74px; }
  .bookings-logo { width: 168px; }
  .bookings-nav nav a:first-child, .bookings-nav nav a:last-child { display: none; }
  .bookings-shell { padding-top: 2.2rem; }
  h1 { font-size: clamp(3.5rem, 20vw, 5.2rem); }
  .lookup-heading, .results-heading { align-items: flex-start; flex-direction: column; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form .primary-button { grid-column: auto; }
  .admin-gate { align-items: flex-start; flex-wrap: wrap; }
  .admin-gate > div { flex-basis: calc(100% - 62px); }
  .admin-gate .primary-button { margin-left: 58px; }
  .view-tabs { width: 100%; }
  .booking-stats { grid-template-columns: 1fr 1fr; }
  .booking-stats article:nth-child(2) { border-right: 0; }
  .booking-stats .next-stat { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .management-card { grid-template-columns: 42px minmax(0, 1fr); }
  .management-button, .management-signout { grid-column: 2; justify-self: start; }
  .booking-row { grid-template-columns: 58px minmax(0, 1fr); gap: 0.8rem; padding: 0.8rem; }
  .date-tile { min-height: 58px; }
  .booking-copy h4 { font-size: 1.02rem; }
  .calendar-toolbar { min-height: 62px; }
  .calendar-weekdays span { font-size: 0.52rem; }
  .calendar-day { min-height: 76px; padding: 0.25rem; }
  .day-number { width: 22px; height: 22px; font-size: 0.6rem; }
  .calendar-booking { padding: 0.32rem 0.2rem; border-left-width: 2px; font-size: 0.52rem; }
  .booking-modal { right: 0.6rem; bottom: 0.6rem; left: 0.6rem !important; top: auto !important; width: auto; max-height: calc(100vh - 1.2rem); border-radius: 1rem; animation-name: modal-sheet-in; }
  @keyframes modal-sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  .modal-content { padding: 1.25rem; }
  .booking-modal.is-confirming h2 { max-width: calc(100% - 2.5rem); font-size: 1.4rem; }
  .modal-actions { grid-template-columns: 1fr; }
  .modal-danger { grid-column: auto; }
  .verify-code-form { grid-template-columns: 1fr; }
  .verify-code-form label { grid-column: auto; }
  .bookings-footer { align-items: flex-start; padding: 1.6rem 0; }
  .bookings-footer div { flex-direction: column; gap: 0.45rem; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
