/* Invitee booking flow, styled to match the AMC-native Calendar Scheduler
   plugin and its booking emails: neutral zinc surfaces, the indigo AMC accent,
   the native system font, clean cards / segmented controls / buttons.

   This page is served standalone in the invitee's browser (not inside AMC's
   webview, so there are no injected --surface-* tokens). prefers-color-scheme is
   therefore the correct mechanism for light/dark here: the palette below is the
   light default, and the dark block flips the same token names so every surface,
   ink, border and accent inverts with the invitee's OS theme. Color roles keep
   their token names so the screen markup is untouched. */
:root {
  color-scheme: light dark;

  /* Surfaces (zinc) */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e4e4e7;

  /* Ink */
  --ink: #18181b;
  --ink-soft: #52525b;
  --ink-fade: #71717a;
  --rule: #e4e4e7;

  /* Accent (AMC default indigo) + status */
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.1);
  /* The ring is OPAQUE, and follows --accent so it inverts with the theme by
     itself. It was rgba(..., 0.45) — which is not a softer indigo but the indigo
     mixed 45% into whatever sits behind it, so every focus ring on this page
     rendered at 1.81:1 light / 2.18:1 dark against the 3:1 WCAG 1.4.11 asks of a
     focus indicator. Solid, the same hue measures 4.06:1 light / 4.99:1 dark at
     its worst surface, and 4.28 / 6.67 on the page itself. Locked by
     tests/contrast.test.ts; do not reintroduce the alpha to soften it. */
  --accent-ring: var(--accent);
  /* Button FILL uses a deeper indigo so #fff label text clears WCAG AA in BOTH
     light and dark (white on the lighter --accent #818cf8 is only 2.98:1; white
     on #4f46e5 is 6.3:1). Text/links/rails keep --accent, which must stay light
     enough to read as text on the dark surface. */
  --accent-btn: #4f46e5;
  --accent-btn-hover: #4338ca;
  --on-accent: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --pending: #475569;
  --pending-bg: rgba(71, 85, 105, 0.07);
  --pending-line: rgba(71, 85, 105, 0.3);
  --note-bg: #f1f5f9;
  --note-line: #cbd5e1;
  --note-ink: #334155;
  /* The month grid, the times and the success check (docs/contracts/booking-page-one-screen.md).
     Literal on purpose: tests/contrast.test.ts resolves hex / rgba only. */
  --day-open-bg:     rgba(99, 102, 241, 0.10);
  --day-open-ink:    #4f46e5;
  --day-picked-bg:   #4f46e5;
  --day-picked-ink:  #ffffff;
  --time-ink:        #4f46e5;
  --time-picked-bg:  #3f3f46;
  --time-picked-ink: #ffffff;
  /* Decorative tint behind the check icon (aria-hidden; the heading carries the meaning). */
  --success-soft:    rgba(22, 163, 74, 0.14);

  /* Type — native system stack (matches the plugin) */
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono:
    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --tap-target: 44px;
  --content-max: 32rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #18181b;
    --surface-2: #27272a;
    --surface-3: #3f3f46;

    --ink: #fafafa;
    --ink-soft: #a1a1aa;
    --ink-fade: #a1a1aa;
    --rule: rgba(250, 250, 250, 0.1);

    /* Lighter indigo reads better on dark surfaces (the plugin's dark accent) */
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, 0.15);
    /* No --accent-ring here on purpose: it is declared once as var(--accent), so
       redeclaring the accent just above moves the ring with it. */
    --on-accent:    #ffffff;
    --success:      #4ade80;
    --danger:       #f87171;
    --danger-bg:    rgba(248, 113, 113, 0.12);
    --pending: #a5b4c8;
    --pending-bg: rgba(165, 180, 200, 0.10);
    --pending-line: rgba(165, 180, 200, 0.35);
    --note-bg: rgba(100, 116, 139, 0.2);
    --note-line: #475569;
    --note-ink: #cbd5e1;
    --day-open-bg:     rgba(129, 140, 248, 0.15);
    --day-open-ink:    #a5b4fc;
    --day-picked-bg:   #4f46e5;
    --day-picked-ink:  #ffffff;
    --time-ink:        #a5b4fc;
    --time-picked-bg:  #3f3f46;
    --time-picked-ink: #ffffff;
    --success-soft:    rgba(74, 222, 128, 0.16);
  }
}

/* ---- Host brand colours (P2: identity and trust) ----
   Six named accents a host can choose on the shell instead of the default indigo; indigo IS the
   palette above, so it needs no block of its own. Same reasoning as the grid/time tokens above:
   every value here is a literal hex/rgba, never color-mix(), because tests/contrast.test.ts's
   brand sweep only resolves those two forms. Each pairing already clears the oracle's WCAG floor
   with margin. Only the tokens a brand actually changes are redeclared; everything else (surfaces,
   --on-accent, --day-picked-ink, --time-picked-*) cascades from the root blocks above unchanged. */
.app-shell[data-brand='teal'] {
  --accent:           #0b796e;
  --accent-hover:     #085951;
  --accent-soft:      rgba(14, 154, 140, 0.10);
  --accent-btn:       #0c8377;
  --accent-btn-hover: #096259;
  --day-open-bg:      rgba(14, 154, 140, 0.10);
  --day-open-ink:     #0b796e;
  --day-picked-bg:    #0c8377;
  --time-ink:         #0c8377;
}
.app-shell[data-brand='amber'] {
  --accent:           #a25904;
  --accent-hover:     #804604;
  --accent-soft:      rgba(217, 119, 6, 0.10);
  --accent-btn:       #ac5f05;
  --accent-btn-hover: #8a4b04;
  --day-open-bg:      rgba(217, 119, 6, 0.10);
  --day-open-ink:     #a25904;
  --day-picked-bg:    #ac5f05;
  --time-ink:         #ac5f05;
}
.app-shell[data-brand='plum'] {
  --accent:           #9333ea;
  --accent-hover:     #8217e2;
  --accent-soft:      rgba(147, 51, 234, 0.10);
  --accent-btn:       #9333ea;
  --accent-btn-hover: #8217e2;
  --day-open-bg:      rgba(147, 51, 234, 0.10);
  --day-open-ink:     #912eea;
  --day-picked-bg:    #9333ea;
  --time-ink:         #9333ea;
}
.app-shell[data-brand='clay'] {
  --accent:           #d52222;
  --accent-hover:     #b71d1d;
  --accent-soft:      rgba(220, 38, 38, 0.10);
  --accent-btn:       #dc2626;
  --accent-btn-hover: #bf1f1f;
  --day-open-bg:      rgba(220, 38, 38, 0.10);
  --day-open-ink:     #cd2121;
  --day-picked-bg:    #dc2626;
  --time-ink:         #dc2626;
}
.app-shell[data-brand='sage'] {
  --accent:           #0f766e;
  --accent-hover:     #0b5650;
  --accent-soft:      rgba(15, 118, 110, 0.10);
  --accent-btn:       #0f766e;
  --accent-btn-hover: #0b5650;
  --day-open-bg:      rgba(15, 118, 110, 0.10);
  --day-open-ink:     #0f766e;
  --day-picked-bg:    #0f766e;
  --time-ink:         #0f766e;
}
.app-shell[data-brand='slate'] {
  --accent:           #475569;
  --accent-hover:     #394454;
  --accent-soft:      rgba(71, 85, 105, 0.10);
  --accent-btn:       #475569;
  --accent-btn-hover: #394454;
  --day-open-bg:      rgba(71, 85, 105, 0.10);
  --day-open-ink:     #475569;
  --day-picked-bg:    #475569;
  --time-ink:         #475569;
}

@media (prefers-color-scheme: dark) {
  .app-shell[data-brand='teal'] {
    --accent:           #11bbaa;
    --accent-hover:     #14dcc8;
    --accent-soft:      rgba(115, 242, 230, 0.15);
    --accent-btn:       #0c8377;
    --accent-btn-hover: #0c8377;
    --day-open-bg:      rgba(115, 242, 230, 0.15);
    --day-open-ink:     #11bbaa;
    --day-picked-bg:    #0c8377;
    --time-ink:         #11bbaa;
  }
  .app-shell[data-brand='amber'] {
    --accent:           #d97706;
    --accent-hover:     #f88a0a;
    --accent-soft:      rgba(251, 184, 106, 0.15);
    --accent-btn:       #ac5f05;
    --accent-btn-hover: #ac5f05;
    --day-open-bg:      rgba(251, 184, 106, 0.15);
    --day-open-ink:     #ed8207;
    --day-picked-bg:    #ac5f05;
    --time-ink:         #d97706;
  }
  .app-shell[data-brand='plum'] {
    --accent:           #b574f1;
    --accent-hover:     #c694f4;
    --accent-soft:      rgba(182, 116, 241, 0.15);
    --accent-btn:       #9333ea;
    --accent-btn-hover: #9d45ec;
    --day-open-bg:      rgba(182, 116, 241, 0.15);
    --day-open-ink:     #b878f1;
    --day-picked-bg:    #9333ea;
    --time-ink:         #b574f1;
  }
  .app-shell[data-brand='clay'] {
    --accent:           #e76868;
    --accent-hover:     #ec8787;
    --accent-soft:      rgba(234, 123, 123, 0.15);
    --accent-btn:       #dc2626;
    --accent-btn-hover: #dd2a2a;
    --day-open-bg:      rgba(234, 123, 123, 0.15);
    --day-open-ink:     #e87171;
    --day-picked-bg:    #dc2626;
    --time-ink:         #e76868;
  }
  .app-shell[data-brand='sage'] {
    --accent:           #17b5a9;
    --accent-hover:     #1bd5c6;
    --accent-soft:      rgba(119, 238, 229, 0.15);
    --accent-btn:       #0f766e;
    --accent-btn-hover: #107f76;
    --day-open-bg:      rgba(119, 238, 229, 0.15);
    --day-open-ink:     #17b5a9;
    --day-picked-bg:    #0f766e;
    --time-ink:         #17b5a9;
  }
  .app-shell[data-brand='slate'] {
    --accent:           #8293ab;
    --accent-hover:     #98a5b9;
    --accent-soft:      rgba(164, 176, 193, 0.15);
    --accent-btn:       #475569;
    --accent-btn-hover: #55667e;
    --day-open-bg:      rgba(164, 176, 193, 0.15);
    --day-open-ink:     #8b9bb1;
    --day-picked-bg:    #475569;
    --time-ink:         #8293ab;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-soft);
}

a {
  color: var(--accent);
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  min-height: 100vh;
}

/* ---- Type ---- */
h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Slot hour groups read as small-caps mono section flags (functional ledger). */
h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Duration / location / timezone meta, separated by a small ink dot. */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-fade);
  flex-shrink: 0;
}

/* ---- Card ---- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.5rem 1.6rem;
  margin-bottom: 1rem;
  overflow: hidden;
  animation: card-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  /* QA said the confirmation screen's background "clashes" with the card. Read as
     colour that sounds like a hue problem; measured, it is the opposite — an
     absence of separation. In light mode --bg is #fafafa and --surface is #ffffff,
     roughly 1.6% apart in luminance, with a hairline border between them, so the
     card never reads as sitting ON anything. Their own instinct ("make the
     background plain white") would have made the two identical and removed the
     last of the edge. A soft shadow gives the card its own plane instead, which is
     what was actually missing. No token changes, so every other screen and the
     dark theme keep their palette. */
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 4px 12px -2px rgb(0 0 0 / 0.06);
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Primary button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: var(--tap-target);
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-accent);
  background: var(--accent-btn);
  cursor: pointer;
  transition:
    background 150ms ease,
    transform 100ms ease;
}

.btn:hover {
  background: var(--accent-btn-hover);
}

.btn:active {
  transform: scale(0.99);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent-ring);
}

.btn:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

/* ---- Text link button ---- */
.btn-link {
  display: inline-block;
  width: auto;
  min-height: var(--tap-target);
  padding: 0.35rem 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
  cursor: pointer;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

.btn-link:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

.btn-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
  border-radius: 4px;
}

/* ---- Form fields ---- */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: var(--tap-target);
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.form-field textarea {
  min-height: 5rem;
  resize: vertical;
}

/* ---- Error banner ---- */
.error {
  background: var(--danger-bg);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: var(--radius-sm);
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.error strong {
  display: block;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.notice strong {
  display: block;
  color: var(--ink);
}

.note-unknown {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: var(--radius-sm);
  color: var(--note-ink);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.note-unknown b {
  display: block;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 0.5rem;
}

.btn-sm {
  appearance: none;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--note-line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-sm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.btn-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Loading skeleton: one card shaped like the content to come ---- */
.skeleton-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.8rem 1.6rem;
  overflow: hidden;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--rule);
}

.skeleton-line {
  display: block;
  height: 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}

.skeleton-line.w-title {
  height: 1.4rem;
  width: 55%;
  margin-bottom: 1.1rem;
}

.skeleton-line.w-mid {
  width: 85%;
}

.skeleton-line.w-short {
  width: 40%;
  margin-bottom: 0;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Screen-reader-only text (the visible loading state is decorative). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.confirmation-time {
  font-family: var(--sans);
  /* 1.5rem, was 1.375rem, with balanced margins (were 1rem top / 0.5rem bottom).
     QA called the confirmation's sizing "slightly off" and said it "doesn't flow",
     without naming a defect — and there is no font BUG here to fix. The one thing
     that is objectively wrong is the hierarchy: WHEN the meeting is, is the single
     most useful fact on this screen, and it was set barely above body copy and
     spaced lopsidedly under the heading. Bigger, and evenly spaced, so the eye
     lands on it. This is the most subjective change in the branch — eyeball it. */
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0.75rem 0;
}

.location-link {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Inline link to the manage page, sits within muted confirmation text. */
.manage-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Definition list of the invitee's answers on the confirmation screen. */
.answers-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
  text-align: left;
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
}

.answers-list dt {
  margin-bottom: 0.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.answers-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-line;
}

/* Cancel-reason textarea. Lives outside a .form-field wrapper, so it carries
   its own sizing to match the booking-SPA inputs. */
.manage-reason {
  display: block;
  width: 100%;
  min-height: 5rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.manage-reason:focus,
.manage-reason:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

@media (min-width: 600px) {
  .app-shell {
    padding-top: 3rem;
  }
}

/* ---- Desktop (900px and up): a wider sheet, timetable slots, and buttons
   that size to their label. Narrow screens keep the layout above. ---- */
@media (min-width: 900px) {
  .app-shell {
    max-width: 44rem;
    padding-top: 4rem;
  }

  .card {
    padding: 2.1rem 2.4rem 2.3rem;
  }

  /* Action buttons stop spanning the whole card. */
  .btn {
    width: auto;
    min-width: 13rem;
  }

  /* Single-value fields stay hand-sized on the wide card. */
  .form-field input,
  .form-field select {
    max-width: 30rem;
  }

}

/* Respect users who ask the OS to minimize motion. */
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Host decision page ----
   The screen a host lands on from the emailed link. It had no styling of its own:
   a bare .card holding eleven stacked <p> and .form-field blocks, so the label of a
   field and the invitee's note read at the same weight, the time had no more
   presence than the email address, and the action sat in the same undifferentiated
   run as the content. The same flat-stack problem the panel's request card had.

   Grouped the same way, on this site's tokens: who is asking → when → what they
   wrote → what you do. Spacing BETWEEN groups exceeds spacing WITHIN them, so the
   eye parses four blocks rather than eleven lines. */
.decide {
  text-align: left;
}

.decide-head {
  margin-bottom: 1.1rem;
}
.decide-name {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.15rem;
}
.decide-sub {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-fade);
  margin: 0;
}

/* The time is what the decision turns on, so it gets its own region and the most
   weight on the page after the name. */
.decide-when {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
}
.decide-when-main {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}
.decide-when-alt {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-fade);
  margin-top: 0.15rem;
}

/* Read-only content inverts the form-field relationship: the label recedes, the
   value reads. It was the other way round. */
.decide-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.decide-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.decide-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-fade);
}
.decide-value {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Time remaining. Muted until it is genuinely close, then the danger hue — on this
   site that is the only "act now" colour available, and an invitee-facing deadline
   running out IS the last moment to act. */
.decide-left {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-fade);
  margin: 0 0 1.1rem;
}
.decide-left[data-urgent='true'] {
  color: var(--danger);
  font-weight: 500;
}

/* Fenced action region, so "what you do" is never read as more of "what they said". */
.decide-actions {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}
.decide-actions .form-field {
  margin-bottom: 0.75rem;
}
.decide-buttons {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* A terminal state (already answered, expired, withdrawn) has no action, so the
   card leads on the outcome and the detail below it is reference only. */
.decide-done .decide-name {
  margin-bottom: 0.35rem;
}
.decide-outcome {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

/* ---- Host booking-page root: the list of what can be booked ----
   Reuses the existing tokens and the same focus-ring recipe as `.btn`, so this list is not a
   second visual language. Each row is a real anchor, so the ring lands on the anchor itself
   and keyboard users get the same affordance as everywhere else. */
.event-type-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-type-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  /* A comfortable touch target on a phone -- an invitee opens this on whatever they have. */
  min-height: 44px;
  overflow-wrap: anywhere;
}

.event-type-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.event-type-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent-ring);
}

.event-type-name {
  font-weight: 600;
}

.event-type-description {
  font-size: 0.9rem;
  white-space: pre-line;
}

/* ==== The one-screen booking page ===================================================
   One card: the event panel on the left, the current step beside it — the month grid with
   the times column, then the form, then the confirmation. Ported from the approved
   prototype (docs/contracts/booking-page-one-screen.md). Every colour is a token declared
   in BOTH :root blocks above, so the contrast oracle can measure it; nothing here dims with
   opacity except a disabled control. The manage, approval and host-root pages do not use
   any of these classes and keep the rules above untouched. */

/* The shell is 32rem for the single-column pages; the booking card needs room for three
   columns. The layout adds this class while it is mounted. */
.app-shell.has-book {
  max-width: 66rem;
  padding-top: 1.75rem;
}

.book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -6px rgb(0 0 0 / 0.08);
  animation: card-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* The rail: accent while picking, success once booked, and NEVER success for a request
   (locked by tests/confirmation-pending-tone.test.ts). */
.book::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  z-index: 1;
}

.book[data-outcome='booked']::before {
  background: var(--success);
}

.book[data-outcome='pending']::before {
  background: var(--accent);
}

/* ---- Event panel: the old Continue screen's content, always on screen ---- */
.book-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.15rem 1.1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  overflow-wrap: anywhere;
}

/* On the handle page the row sits above the heading inside a plain card. */
.host-page-who {
  margin-bottom: 0.75rem;
}

.panel-who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--day-open-bg);
  color: var(--day-open-ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Its own `display` beats the UA's default `[hidden] { display: none }` (same rule .tl needs
   above): without this, toggling the `hidden` property would leave the initials on screen,
   stacked with the photo. */
.panel-avatar[hidden] {
  display: none;
}

.panel-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.panel-host {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.panel-event {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.panel-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-meta-row svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
}

.panel-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: pre-line;
}

.panel-welcome {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: pre-line;
}

.panel-pick {
  margin-top: 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface-2);
}

.panel-pick-k,
.event-card-k,
.tzc-group {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel-pick-v {
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.panel-pick-s {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---- Month picker ---- */
.mp {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.15rem 1rem 1.1rem;
  text-align: left;
}

.mp-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mp-title {
  margin: 0;
  font-size: 1.05rem;
}

.mp-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mp-month {
  min-width: 9.5em;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.mp-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target);
  height: var(--tap-target);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.mp-nav-btn svg {
  width: 16px;
  height: 16px;
}

.mp-nav-btn:hover:not(:disabled) {
  background: var(--day-open-bg);
  color: var(--day-open-ink);
  border-color: transparent;
}

.mp-nav-btn:focus-visible,
.mp-day:focus-visible,
.tl-time:focus-visible,
.tl-next:focus-visible,
.tzc-btn:focus-visible,
.tzc-seg button:focus-visible,
.chip:focus-visible,
.back:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-ring);
}

.mp-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mp-dow,
.mp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mp-dow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

.mp-dow span {
  padding: 0.25rem 0 0.4rem;
}

.mp-grid {
  row-gap: 4px;
}

.mp-grid[aria-busy='true'] {
  opacity: 0.6;
}

.mp-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: 52px;
}

.mp-day {
  position: relative;
  width: min(var(--tap-target), 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.mp-day[data-open='true'] {
  background: var(--day-open-bg);
  color: var(--day-open-ink);
  font-weight: 700;
  cursor: pointer;
}

.mp-day[data-open='true']:hover {
  transform: scale(1.06);
}

.mp-day[aria-pressed='true'] {
  background: var(--day-picked-bg);
  color: var(--day-picked-ink);
}

/* The one dot under today's number: it reads in every state because it takes the number's ink. */
.mp-day[data-today='true']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.mp-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.mp-note.is-error {
  color: var(--danger);
}

/* Inline in a sentence, so it keeps its natural (still >=24px) height: WCAG 2.5.8 exempts a
   target embedded in a block of text, and a 44px box here would blow out the note's line box. */
.mp-note .btn-link,
.tl-sub .btn-link {
  font-size: inherit;
  min-height: 0;
}

/* The row that holds the timezone control; its popover opens UPWARD out of this row. */
.mp-foot {
  position: relative;
}

/* ---- Timezone control ---- */
.tzc {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.tzc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap-target);
  padding: 0.35rem 0.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.tzc-btn:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.tzc-btn svg {
  width: 15px;
  height: 15px;
}

.tzc-now,
.tzc-off,
.tzc-row-now {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.tzc-caret {
  font-size: 0.65rem;
  color: var(--ink-soft);
}

.tzc-seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-2);
}

.tzc-seg button {
  min-height: var(--tap-target);
  padding: 0.2rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.tzc-seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

/* Opens UPWARD: the row is the last thing in its column and the card clips overflow, so a
   downward popover would be cut at the card's edge. Above it sits the grid, with room. */
.tzc-pop {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  width: min(360px, 100%);
  padding: 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.25);
}

.tzc-pop[data-open='true'] {
  display: block;
}

.tzc-search {
  width: 100%;
  min-height: var(--tap-target);
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.tzc-search:focus,
.tzc-search:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

.tzc-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-height: 250px;
  overflow: auto;
  scrollbar-width: thin;
}

.tzc-group {
  padding: 0.5rem 0.5rem 0.25rem;
}

.tzc-list li button {
  width: 100%;
  min-height: var(--tap-target);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.tzc-list li button:hover,
.tzc-list li button:focus-visible {
  outline: none;
  background: var(--day-open-bg);
}

.tzc-list li[data-current='true'] button {
  background: var(--surface-2);
}

.tzc-city {
  color: var(--ink);
}

.tzc-region {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---- Times column ---- */
.tl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 1.1rem 1rem;
  border-top: 1px solid var(--rule);
  text-align: left;
  animation: rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tl[hidden] {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tl-title {
  margin: 0 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.tl-sub {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.tl-sub.is-error {
  color: var(--danger);
}

.tl-skel {
  height: var(--tap-target);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}

.tl-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 2px;
}

.tl-slot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.tl-slot[data-picked='true'] {
  grid-template-columns: 1fr 1fr;
}

.tl-time {
  min-height: var(--tap-target);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--time-ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tl-time:hover {
  border-color: var(--accent);
}

.tl-slot[data-picked='true'] .tl-time {
  background: var(--time-picked-bg);
  border-color: var(--time-picked-bg);
  color: var(--time-picked-ink);
}

.tl-next {
  min-height: var(--tap-target);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-btn);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  animation: pop 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tl-next:hover {
  background: var(--accent-btn-hover);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Form step ---- */
.form-col,
.done-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.25rem 1.15rem 1.35rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.form-col h2 {
  margin: 0;
}

.form-col form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.back {
  align-self: flex-start;
  min-height: var(--tap-target);
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
  cursor: pointer;
}

.back:hover {
  text-decoration-color: var(--accent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap-target);
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}

/* An error is painted only for a field the invitee has touched — a fresh form never opens red. */
.err {
  display: none;
  font-size: 0.8rem;
  color: var(--danger);
}

.field[data-touched='true'][data-invalid='true'] .err,
.opt-group[data-touched='true'][data-invalid='true'] .err {
  display: block;
}

.field[data-touched='true'][data-invalid='true'] input {
  border-color: var(--danger);
}

.opt-group[data-touched='true'][data-invalid='true'] legend {
  color: var(--danger);
}

/* ---- Option questions (radio / checkbox) ----
   A fieldset reset back to the .field rhythm: no UA border/padding, and the same 0.3rem gap
   .field uses between its own label and control. */
.opt-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.opt-group legend {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.opt-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap-target);
  cursor: pointer;
}

.opt-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-status:empty {
  display: none;
}

.form-status .error {
  margin-bottom: 0.5rem;
}

.fine {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.guest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 34px;
  padding: 0 0.25rem 0 0.75rem;
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
}

.guest-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.guest-remove {
  min-width: var(--tap-target);
  min-height: var(--tap-target);
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
}

.guest-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-ring);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

/* ---- Confirmation ---- */
.done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--success-soft);
}

.done-check svg {
  width: 24px;
  height: 24px;
  stroke: var(--success);
  stroke-width: 2.6;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 420ms 120ms ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.done-title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* The heading takes the outcome's colour — success for a booking, the neutral accent for a
   request that the host still has to answer. */
.book[data-outcome='booked'] .done-title {
  color: var(--success);
}

.book[data-outcome='pending'] .done-title {
  color: var(--accent);
}

.done-lead {
  margin: 0;
  color: var(--ink-soft);
}

/* The host's own confirmed-only note. Same "soft surface block" recipe as .panel-welcome
   (also host-authored copy) — an accent-tinted left border on --accent-soft, existing tokens
   only, no new hex colours. */
.host-line {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: pre-line;
}

.event-card {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  row-gap: 0.5rem;
  column-gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.9rem;
}

.event-card-k {
  padding-top: 3px;
}

.event-card-v strong {
  display: block;
  font-size: 0.95rem;
}

.event-card-s {
  color: var(--ink-soft);
}

.event-card .location-link {
  margin: 0;
}

.addcal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.addcal-k {
  margin-right: 0.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap-target);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.answers .answers-list {
  margin-bottom: 0;
}

.done-manage .btn-link {
  font-size: inherit;
  padding: 0;
  min-height: 0;
}

/* ---- Post-booking redirect: the countdown row under the manage row, and its fine print ---- */
.redirect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.redirect-go {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.redirect-fine {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---- The manage page's reschedule card stacks the same grid and times ---- */
.card.reschedule {
  text-align: left;
}

.card.reschedule .mp,
.card.reschedule .tl {
  padding-left: 0;
  padding-right: 0;
}

.card.reschedule .tl {
  padding-bottom: 0;
}

/* ---- Footer: the mark, and the privacy sentence ---- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.15rem;
  padding: 1rem 0.4rem 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.site-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-foot svg {
  width: 18px;
  height: 18px;
}

.site-foot b {
  font-weight: 600;
  color: var(--ink);
}

/* ---- Wide: the panel on the left, the grid and the times side by side ---- */
@media (min-width: 900px) {
  .book {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .book[data-times='open'] {
    grid-template-columns: 300px minmax(0, 1fr) 220px;
  }

  .book-panel {
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    padding: 1.6rem 1.5rem 1.5rem 1.75rem;
  }

  .mp {
    padding: 1.5rem 1.5rem 1.35rem;
  }

  .tl {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding: 1.5rem 1.1rem 1.35rem;
    animation-name: slide-in;
  }

  @keyframes slide-in {
    from {
      opacity: 0;
      transform: translateX(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .tl-list {
    max-height: 470px;
    overflow: auto;
    scrollbar-width: thin;
  }

  .form-col,
  .done-col {
    padding: 1.6rem 1.6rem 1.5rem;
  }

  .form-col .btn {
    width: auto;
    min-width: 13rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .done-check svg {
    stroke-dashoffset: 0;
  }
}

/* ---- Reschedule re-approval: a move that waits for the host (booking-approval.md) ---- */
.move-pending {
  border: 1px solid var(--pending-line);
  background: var(--pending-bg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.move-pending h1 {
  color: var(--pending);
  margin: 0 0 0.35rem;
}

.move-pending p {
  margin: 0;
  color: var(--ink);
}

.move-times {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  margin: 0.75rem 0 1rem;
}

.move-times dt {
  color: var(--ink-soft);
}

.move-times dd {
  margin: 0;
  color: var(--ink);
}

.move-times small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.move-note {
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}

.btn-link.btn-danger {
  color: var(--danger);
}

.decide-from {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin: -0.4rem 0 1rem;
}

.decide-from s {
  color: var(--ink-soft);
}
