/* ============================================================
   KREW — Booking page styles
   Calendar + list view for picking a meeting time.
   Loaded *after* landing.css. Reuses tokens, nav, footer.
   ============================================================ */

body.booking-page {
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.booking-shell {
  padding-top: 112px;
  padding-bottom: 96px;
  min-height: 100vh;
}

/* ---------- intro: editorial header above the picker ---------- */
.booking-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.booking-intro .eyebrow-row { justify-content: center; display: inline-flex; }
.booking-intro h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
  text-wrap: balance;
}
.booking-intro h1 .hand-accent {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92em;
  letter-spacing: 0.005em;
  display: inline-block;
  transform: translateY(-2px) rotate(-2deg);
  margin-right: 2px;
}
.booking-intro .meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  font-family: 'Crimson Pro', 'Crimson Text', 'Source Serif Pro', Georgia, serif;
  font-size: var(--fs-16);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-2);
  text-transform: none;
  flex-wrap: wrap;
  justify-content: center;
}
.booking-intro .meta span { display: inline-flex; align-items: center; gap: 8px; }
.booking-intro .meta svg { display: block; opacity: 0.7; }
.booking-intro .meta .sep {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4);
  padding: 0;
}

/* ---------- toolbar: timezone, mutual avail, view toggle ---------- */
.booking-toolbar {
  /* Match the picker card width below so the toolbar reads as a
     single column with the calendar. */
  max-width: 820px;
  margin: 0 auto 20px;
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-ink);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* timezone selector — looks like a dropdown trigger but is just chrome here */
.tz-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.tz-select:hover {
  border-color: var(--krew-ink);
  background: var(--bg-surface);
}
.tz-select .globe {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--krew-grain-warm);
  border: 1px solid var(--border-soft);
  flex: none;
}
.tz-select .globe svg { width: 14px; height: 14px; }
.tz-select .tz-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tz-select .chev {
  width: 10px; height: 10px;
  margin-left: 4px;
  opacity: 0.6;
}

/* mutual availability switch */
.mutual-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.mutual-row label {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
}
.mutual-row .switch {
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--krew-grain-warm);
  border: 1px solid var(--border-soft);
  position: relative;
  cursor: pointer;
  transition: background var(--dur-2);
  flex: none;
}
.mutual-row .switch::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  transition: transform var(--dur-2) var(--ease-out);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.mutual-row .switch.on {
  background: var(--accent);
  border-color: var(--krew-ink);
}
.mutual-row .switch.on::before {
  transform: translateX(16px);
  border-color: var(--krew-ink);
}

/* view toggle (calendar / list) — segmented control with stamp shadow */
.view-toggle {
  display: inline-flex;
  margin-left: auto;
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--bg-raised);
}
.view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--fg-2);
  cursor: pointer;
  transition: background var(--dur-2), color var(--dur-2);
  position: relative;
}
.view-toggle button + button {
  border-left: 1px solid var(--krew-ink);
}
.view-toggle button:hover { background: var(--bg-surface); color: var(--fg-1); }
.view-toggle button.active {
  background: var(--accent);
  color: var(--krew-grain-pale);
}
.view-toggle button svg { display: block; }

/* ---------- main picker card ---------- */
.booking-picker {
  /* Was 1080px — felt too in-your-face on desktop. Tightened ~25%
     so both columns scale down proportionally. */
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.booking-picker.is-list {
  grid-template-columns: 1fr;
  /* Match the toolbar width above so the card reads as the same column. */
  max-width: 820px;
}
.picker-card {
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-ink);
  padding: 28px 24px 20px;
  position: relative;
}

/* ---------- calendar grid ---------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4px;
}
.cal-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-24);
  letter-spacing: -0.01em;
}
.cal-head h2 .year {
  color: var(--fg-3);
  font-weight: 500;
  margin-left: 6px;
}
.cal-nav {
  width: 38px; height: 38px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
  color: var(--fg-1);
}
.cal-nav:hover {
  border-color: var(--krew-ink);
  background: var(--krew-grain-warm);
}
.cal-nav:active { transform: translate(1px, 1px); }
.cal-nav svg { display: block; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-hair);
}
.cal-weekdays span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.cal-day {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--r-2);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--dur-2) var(--ease-out);
  padding: 0;
}
.cal-day.is-other {
  color: var(--fg-4);
  font-weight: 500;
  cursor: default;
}
.cal-day.is-unavailable {
  color: var(--fg-4);
  font-weight: 500;
  cursor: default;
}
.cal-day.is-available {
  background: var(--krew-grain-warm);
  border-color: var(--border-soft);
}
.cal-day.is-available:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--krew-ink);
}
.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--krew-slate-mid);
}
.cal-day.is-selected {
  background: var(--accent);
  color: var(--krew-grain-pale);
  border-color: var(--krew-ink);
  box-shadow: 2px 2px 0 var(--krew-ink);
  transform: translate(-1px, -1px);
}
.cal-day.is-selected::after {
  background: var(--krew-grain-pale);
}
.cal-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cal-troubleshoot {
  margin-top: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: 1px dashed var(--border-soft);
  border-radius: var(--r-2);
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.cal-troubleshoot:hover {
  border-color: var(--krew-ink);
  border-style: solid;
  color: var(--fg-1);
  background: var(--krew-grain-warm);
}
.cal-troubleshoot svg { opacity: 0.6; }

/* Mutual availability toggle hidden — TidyCal team booking types
   already encode the mutual availability via the booking type config. */
.mutual-row { display: none !important; }

/* ---------- right panel: time slots for selected day ---------- */
.slots-panel {
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  /* Safety-net cap so scroll works even before JS height-sync fires.
     Desktop only — on mobile the picker stacks single-column. */
  max-height: 620px;
}
@media (max-width: 880px) {
  .slots-panel { max-height: none; }
}
.slots-panel::-webkit-scrollbar { width: 6px; }
.slots-panel::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.slots-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-surface);
  text-align: center;
  margin: 0;
  padding: 28px 22px 16px;
  border-bottom: 1px solid var(--border-hair);
}
.slots-head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-20);
  letter-spacing: -0.01em;
}
.slots-head h3 .ord {
  color: var(--fg-3);
  font-weight: 500;
  margin-left: 4px;
}
.slots-head .hand {
  display: block;
  margin-top: 6px;
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
  line-height: 1;
}
.slots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 22px;
}
.slot-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--krew-grain-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
  text-align: center;
  letter-spacing: 0.01em;
}
.slot-btn:hover {
  background: var(--krew-grain-pale);
  border-color: var(--krew-ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--krew-ink);
}
.slot-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 var(--krew-ink);
}
.slot-btn .dur {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-top: 4px;
  text-transform: uppercase;
  opacity: 0;
  max-height: 0;
  transition: opacity var(--dur-2), max-height var(--dur-2);
}
.slot-btn:hover .dur {
  opacity: 1;
  max-height: 20px;
}

.slots-empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--fg-3);
  font-size: var(--fs-14);
}
.slots-empty .stamp-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  border: 1px dashed var(--border-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- list view ---------- */
.list-view {
  padding: 28px 28px 12px;
}
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-hair);
}
.list-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-24);
  letter-spacing: -0.01em;
}
.list-head h2 .year {
  color: var(--fg-3);
  font-weight: 500;
  margin-left: 6px;
}
.list-head .nav-pair {
  display: inline-flex;
  gap: 6px;
}
.list-day {
  margin-bottom: 28px;
}
.list-day h4 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-16);
  color: var(--fg-1);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.list-day h4 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.list-day h4::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  align-self: center;
}
.list-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding-left: 16px;
}

/* ---------- Timezone dropdown ---------- */
.tz-wrap { position: relative; }
.tz-wrap.is-open .tz-select {
  border-color: var(--krew-ink);
  background: var(--bg-surface);
}
.tz-wrap.is-open .tz-select .chev {
  transform: rotate(180deg);
}
.tz-select .chev {
  transition: transform var(--dur-2) var(--ease-out);
}
.tz-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-ink);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tz-menu[hidden] { display: none; }
.tz-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  color: var(--fg-1);
  background: var(--bg-raised);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.tz-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tz-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tz-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-1);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  color: var(--fg-1);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur-1), color var(--dur-1);
}
.tz-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.tz-item.is-active {
  background: var(--krew-grain-warm);
  border-color: var(--border-soft);
  font-weight: 700;
}
.tz-item-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
  min-width: 60px;
}
.tz-item-label { flex: 1; }
.tz-empty {
  padding: 16px;
  text-align: center;
  font-size: var(--fs-13);
  color: var(--fg-3);
  font-family: var(--font-mono);
}

/* ---------- Booking intro byline ---------- */
.booking-byline {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: var(--fs-18);
  color: var(--fg-2);
  line-height: 1.5;
  text-wrap: balance;
}

/* ---------- Booking intro: mobile (≤720px) ---------- */
@media (max-width: 720px) {
  .booking-intro {
    text-align: left;
    max-width: 100%;
    margin: 0 0 32px;
    padding: 0 4px;
  }
  .booking-intro .eyebrow-row {
    justify-content: flex-start;
  }
  .booking-intro h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 12px 0 10px;
    /* `pretty` keeps last line balanced without hard-wrapping a single
       short word like "early?" onto its own line the way `balance` does
       at 390px. */
    text-wrap: pretty;
  }
  .booking-intro h1 .hand-accent {
    /* Slightly smaller hand accent so it stays on the same line as
       "spot trouble" instead of bouncing baseline. */
    font-size: 0.88em;
  }
  .booking-byline {
    font-size: var(--fs-16);
    line-height: 1.45;
  }
  .booking-intro .meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
    font-size: 13px;
    margin-top: 14px;
  }
  /* Drop the bullet separators on mobile — wrapped rows look cleaner
     without floating dots between disparate lines. */
  .booking-intro .meta .sep { display: none; }
}

/* ============================================================
   STEP 2 — CONFIRM BOOKING (single elevated panel)
   ============================================================ */
.confirm-shell {
  max-width: 640px;
  margin: 0 auto;
}
.confirm-shell .step-back {
  margin-bottom: 18px;
}
.confirm-panel {
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-ink);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.confirm-panel-head {
  text-align: center;
  padding: 44px 36px 36px;
  background:
    radial-gradient(ellipse at top, var(--krew-grain-pale) 0%, transparent 70%),
    var(--krew-grain-warm);
  position: relative;
  border-bottom: 1px solid var(--krew-ink);
}
/* Perforated divider — ticket stub feel */
.confirm-panel-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 14px;
  background:
    radial-gradient(circle 7px at 7px center, var(--bg-page) 7px, transparent 7.5px) 0 0 / 18px 14px repeat-x;
  pointer-events: none;
}
.confirm-mark {
  width: 88px; height: 88px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--krew-ink);
  box-shadow: 4px 4px 0 var(--krew-ink);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-4deg);
}
.confirm-mark img {
  width: 48px; height: 48px;
  display: block;
}
.confirm-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}
.confirm-title .hand-accent {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--accent);
  font-size: 1em;
  letter-spacing: 0.005em;
  display: inline-block;
  transform: translateY(2px) rotate(-3deg);
  margin-left: 4px;
}
.confirm-tagline {
  margin: 0 auto 26px;
  max-width: 480px;
  font-family: 'Crimson Pro', 'Crimson Text', 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-18);
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: balance;
}
.confirm-ticket {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-2);
  box-shadow: 2px 2px 0 var(--krew-ink);
  overflow: hidden;
  font-family: var(--font-sans);
  max-width: 100%;
}
.ticket-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 18px;
  text-align: left;
  min-width: 0;
}
.ticket-row + .ticket-row {
  border-left: 1px dashed var(--border-soft);
}
.ticket-key {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ticket-val {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-15);
  color: var(--fg-1);
  line-height: 1.25;
  white-space: nowrap;
}

/* Form area gets its own padding now that head is full-bleed */
.confirm-form-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 40px 32px;
}
@media (max-width: 600px) {
  .confirm-panel-head { padding: 32px 22px 28px; }
  .confirm-form-flow { padding: 28px 22px 22px; }
  .confirm-ticket { flex-direction: column; }
  .ticket-row + .ticket-row { border-left: 0; border-top: 1px dashed var(--border-soft); }
  .ticket-val { white-space: normal; }
}

/* (form padding moved into .confirm-form-flow above) */
.confirm-form-flow .field { margin-bottom: 0; }
.confirm-form-flow .field label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.confirm-form-flow .field label .hint {
  font-weight: 600;
  font-size: 10px;
  color: var(--fg-4);
  margin-left: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.confirm-form-flow .field input[type="text"],
.confirm-form-flow .field input[type="email"],
.confirm-form-flow .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  font-size: var(--fs-15);
  font-family: var(--font-sans);
  color: var(--fg-1);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.confirm-form-flow .field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}
.confirm-form-flow .field input:focus,
.confirm-form-flow .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Guests */
.guests-field .guests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guests-field .guests-list:empty { display: none; }
.guest-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.guest-row .guest-input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  font-size: var(--fs-14);
  font-family: var(--font-sans);
  color: var(--fg-1);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.guest-row .guest-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.guest-remove {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  color: var(--fg-3);
  cursor: pointer;
  flex: none;
  transition: all var(--dur-2) var(--ease-out);
}
.guest-remove:hover {
  border-color: var(--krew-ink);
  color: var(--fg-1);
  background: var(--krew-grain-warm);
}
.add-guest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px 6px 8px;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-13);
  color: var(--accent);
  cursor: pointer;
  border-radius: var(--r-1);
  transition: background var(--dur-2);
  align-self: flex-start;
}
.add-guest-btn:hover {
  background: var(--accent-soft);
}
.guests-field .guests-list:empty + .add-guest-btn {
  margin-top: 0;
}

/* Actions */
.confirm-flow-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: stretch;
}
.confirm-flow-actions .btn-cancel {
  flex: 0 0 auto;
  padding: 12px 18px;
}
.confirm-flow-actions .btn.spark {
  flex: 1;
  justify-content: center;
}

@media (max-width: 600px) {
  .confirm-flow-actions { flex-direction: column-reverse; }
  .confirm-flow-actions .btn-cancel,
  .confirm-flow-actions .btn.spark { width: 100%; }
}

/* ---------- footer hand-note under picker ---------- */
.booking-foot {
  max-width: 1080px;
  margin: 28px auto 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  color: var(--fg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.booking-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-4); }
.booking-foot strong { color: var(--fg-2); font-weight: 700; }

/* ============================================================
   STEP 2 — CONFIRM BOOKING
   ============================================================ */
.confirm-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-ink);
  padding: 32px 36px 28px;
  position: relative;
}
.confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.confirm-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-24);
  letter-spacing: -0.01em;
}
.confirm-close {
  width: 36px; height: 36px;
  border: 1px solid var(--border-soft);
  background: transparent;
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fg-2);
  transition: all var(--dur-2) var(--ease-out);
}
.confirm-close:hover {
  border-color: var(--krew-ink);
  color: var(--fg-1);
  background: var(--krew-grain-warm);
}
.confirm-event-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--fg-2);
  margin: 0 0 18px;
}
.confirm-event-name .hand {
  font-family: var(--font-hand);
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  margin-left: 6px;
  display: inline-block;
  transform: rotate(-2deg) translateY(-1px);
}
.confirm-meta {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  background: var(--bg-raised);
  margin-bottom: 24px;
  overflow: hidden;
}
.confirm-meta .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  font-size: var(--fs-15);
  color: var(--fg-1);
}
.confirm-meta .row + .row {
  border-top: 1px solid var(--border-hair);
}
.confirm-meta .row .ico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  flex: none;
}
.confirm-meta .row .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  min-width: 84px;
}
.confirm-meta .row strong { font-weight: 700; color: var(--fg-1); }

.confirm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px dashed var(--border-soft);
  padding-top: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-14);
  color: var(--fg-1);
  letter-spacing: 0.005em;
  text-transform: none;
}
.field label .req { color: var(--accent); margin-left: 2px; }
.field label .hint {
  font-weight: 500;
  font-size: var(--fs-13);
  color: var(--fg-3);
  margin-left: 8px;
  letter-spacing: 0;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  color: var(--fg-1);
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  padding: 12px 14px;
  width: 100%;
  transition: all var(--dur-2) var(--ease-out);
  resize: vertical;
}
.field textarea { min-height: 110px; line-height: 1.55; }
.field input:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--krew-ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--krew-grain-pale);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-ink);
  transition: all var(--dur-2) var(--ease-out);
}
.btn-book:hover {
  background: var(--krew-spark-ink);
  color: var(--krew-ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--krew-ink);
}
.btn-book:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--krew-ink); }
.btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-1);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.btn-cancel:hover {
  border-color: var(--krew-ink);
  color: var(--fg-1);
  background: var(--krew-grain-warm);
}

/* ============================================================
   STEP 3 — BOOKING CONFIRMED
   ============================================================ */
.confirmed-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-ink);
  padding: 48px 36px;
  text-align: center;
}
.confirmed-stamp {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--krew-ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--krew-grain-pale);
  box-shadow: var(--shadow-ink);
  transform: rotate(-8deg);
  animation: stampIn 500ms var(--ease-spark);
}
.confirmed-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: var(--fs-36);
  letter-spacing: -0.02em;
}
.confirmed-card h2 .hand {
  font-family: var(--font-hand);
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  transform: rotate(-2deg);
}
.confirmed-card p {
  margin: 0 0 28px;
  color: var(--fg-2);
  font-size: var(--fs-16);
}
.confirmed-summary {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 22px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-1);
  text-align: left;
  margin-bottom: 22px;
}
.confirmed-summary span { display: block; }
.confirmed-summary .lbl { color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; font-weight: 700; }

.step-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-13);
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.step-back:hover {
  border-color: var(--krew-ink);
  color: var(--fg-1);
  background: var(--krew-grain-warm);
  transform: translate(-2px, 0);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .booking-picker {
    grid-template-columns: 1fr;
  }
  .booking-toolbar {
    gap: 14px;
    padding: 12px 14px;
  }
  .mutual-row { margin-left: 0; }
}

@media (max-width: 720px) {
  /* Mobile nav pill sits at top:60px + safe-area, ~52px tall — its
     bottom edge lands at ~112px. Push the shell content well clear
     so the eyebrow + step-back button aren't tucked under the pill. */
  .booking-shell { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: 64px; }
}

@media (max-width: 600px) {
  .picker-card { padding: 22px 16px 18px; }
  .confirm-card { padding: 24px 18px 22px; }
  .confirmed-card { padding: 36px 20px; }
  .confirm-meta .row { padding: 10px 12px; gap: 10px; font-size: var(--fs-14); }
  .confirm-meta .row .lbl { min-width: 64px; font-size: 10px; }
  .slots-panel { padding: 22px 14px; }
  .list-view { padding: 22px 16px 8px; }
  .cal-grid { gap: 4px; }
  .cal-day { font-size: var(--fs-14); }
  /* Two-row mobile toolbar:
       row 1 — timezone dropdown, full width (it's the longest control)
       row 2 — mutual switch (left) + view-toggle (right) */
  .booking-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 14px;
  }
  .tz-wrap {
    grid-column: 1 / -1;   /* row 1 spans both columns */
  }
  .tz-select { width: 100%; }
  .mutual-row {
    grid-column: 1;
    justify-content: flex-start;
    gap: 10px;
    margin-left: 0;        /* override desktop's auto-push-right */
    min-width: 0;
  }
  .mutual-row label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view-toggle {
    grid-column: 2;
    align-self: center;
  }
  .view-toggle button { flex: none; padding: 8px 14px; }
  .list-slots {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
  }
}

/* ============================================================
   TWEAKS PANEL (Booking) — sandbox controls (Mobile preview, etc.)
   ============================================================ */
.tweaks-panel-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  pointer-events: none;
}
.tweaks-panel-host .tw-panel {
  pointer-events: auto;
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--krew-ink);
  border-radius: var(--r-3);
  box-shadow: 4px 4px 0 var(--krew-ink), 8px 8px 24px rgba(28, 26, 24, 0.18);
  padding: 14px 16px 16px;
  font-family: var(--font-sans);
  color: var(--fg-1);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
  display: none;
}
.tweaks-panel-host .tw-panel.is-open {
  display: block;
  transform: translateY(0) scale(1);
  opacity: 1;
}
.tweaks-panel-host .tw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tweaks-panel-host .tw-title {
  font-family: var(--font-serif, 'Crimson Pro', serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tweaks-panel-host .tw-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.tweaks-panel-host .tw-close:hover {
  background: var(--bg-raised);
  color: var(--fg-1);
  border-color: var(--krew-ink);
}
.tweaks-panel-host .tw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.tweaks-panel-host .tw-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
}
.tweaks-panel-host .tw-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-soft);
  border: 0;
  cursor: pointer;
  transition: background var(--dur-2);
  padding: 0;
}
.tweaks-panel-host .tw-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-2) var(--ease-out);
}
.tweaks-panel-host .tw-switch.on {
  background: var(--krew-spark, #FF5405);
}
.tweaks-panel-host .tw-switch.on::after {
  transform: translateX(18px);
}
.tweaks-panel-host .tw-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-3);
}
