/* Tokens copied from the weft-whetstone site (Option 1 mockup). */
:root {
  --bg: #F5F0E8; --bg-secondary: #ECE8F0; --bg-page-card: #FFFFFF;
  --fg: #1A1210; --fg-muted: rgba(26,18,16,0.65);
  --accent: #B44315; --accent-brand: #F66733; --accent-strong: #C9501F;
  --rule: #D9CFC7; --btn-bg: #B84415; --btn-fg: #FFFFFF; --btn-hover-bg: #C9501F;
  --ok: #3D7A4F; --err: #B3261E; --warn: #B45309;
  --also-free: #6B4FA0; --also-free-bg: #F0EBFA;  /* T-023 Phase A: "you're both free" slot highlight */
  --shadow-card: 0 1px 3px rgba(26,18,16,0.08), 0 8px 24px rgba(26,18,16,0.08);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-md: 8px; --radius-lg: 12px; --radius-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #333333; --bg-secondary: #404040; --bg-page-card: #3B3B3B;
    --fg: #FFFFFF; --fg-muted: #C9C2D6; --accent: #FB9166; --accent-brand: #F66733;
    --accent-strong: #F87845; --rule: #4A4A4A; --btn-bg: #F66733; --btn-fg: #1A1210;
    --btn-hover-bg: #F87845; --ok: #6FBF83; --err: #F2B8B5; --warn: #F5B14C;
    --also-free: #C9B6F0; --also-free-bg: #4A3B66;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
    color-scheme: dark;  /* UIUX-10: native controls (date picker) follow the dark theme */
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #333333; --bg-secondary: #404040; --bg-page-card: #3B3B3B;
  --fg: #FFFFFF; --fg-muted: #C9C2D6; --accent: #FB9166; --accent-brand: #F66733;
  --accent-strong: #F87845; --rule: #4A4A4A; --btn-bg: #F66733; --btn-fg: #1A1210;
  --btn-hover-bg: #F87845; --ok: #6FBF83; --err: #F2B8B5; --warn: #F5B14C;
  --also-free: #C9B6F0; --also-free-bg: #4A3B66;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
/* Brand links (Matty M-133622 item 5): without this, a plain <a> falls back to the browser's default
   blue/purple instead of the brand orange. Component-specific rules (nav links, .w-cta.link buttons)
   are more specific than this bare selector and continue to win where a link shouldn't look like a link. */
a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--fg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body);
  padding: 1rem; display: flex; justify-content: center; }
body.embedded { background: transparent; padding: 0; }
.widget { width: 100%; max-width: 420px; background: var(--bg-page-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden; font-size: 0.9rem; }
.embedded .widget { box-shadow: none; border-radius: 0; max-width: none; }
.w-head { padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--rule); }
.w-name-row { display: flex; align-items: center; gap: 0.6rem; }
.w-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem; flex: 0 0 auto; }
.w-head h1 { margin: 0; font-size: 1rem; font-weight: 700; }
.w-sub { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--fg-muted); }
.w-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.field-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  color: var(--fg-muted); margin-bottom: 0.5rem; display: block; }
.seg { display: flex; border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 3px; gap: 3px;
  background: var(--bg-secondary); }
.seg button { flex: 1; border: none; background: none; padding: 0.5rem 0.6rem; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600; border-radius: var(--radius-pill); color: var(--fg-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.seg button.active { background: var(--btn-bg); color: var(--btn-fg); }
.seg svg { width: 14px; height: 14px; }
select, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=time], input[type=date], textarea { width: 100%; font-family: var(--font-body); font-size: 0.85rem;
  padding: 0.6rem 0.7rem; border-radius: var(--radius-md); border: 1px solid var(--rule);
  background: var(--bg-page-card); color: var(--fg); }
textarea { resize: vertical; min-height: 4rem; }
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-head .field-label { margin: 0; }
.cal-nav { display: flex; gap: 0.25rem; }
/* T-052 (T-043 panel finding, converged by all 3 reviewers): 28px is well under the ~44px touch-target
   guideline (Apple HIG / Material / WCAG 2.5.5) -- raised toward it. Not a breakpoint-gated change (no
   width-based media query existed in this file at all) since this is a small circular icon button a
   mobile visitor hits just as often as a desktop one. */
.cal-nav button { border: 1px solid var(--rule); background: none; color: var(--fg); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 0.9rem; }
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.dow { font-size: 0.65rem; color: var(--fg-muted); font-weight: 700; padding-bottom: 2px; }
.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 0.78rem; color: var(--rule); border: none; background: none; font-family: var(--font-body); padding: 0; }
.day.has-slots { color: var(--fg); cursor: pointer; position: relative; }
.day.has-slots::after { content: ''; position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-brand); }
.day.selected::after { background: var(--btn-fg); }
.day.has-slots:hover { background: var(--bg-secondary); }
.day.selected { background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; }
.slot-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slot { padding: 0.5rem 0.85rem; border: 1px solid var(--accent); border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; color: var(--accent); cursor: pointer; background: var(--bg-page-card);
  font-family: var(--font-body); }
.slot.picked { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.w-cta { width: 100%; padding: 0.75rem; border-radius: var(--radius-md); border: none; background: var(--btn-bg);
  color: var(--btn-fg); font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.w-cta:hover:not(:disabled) { background: var(--btn-hover-bg); }
.w-cta:disabled { opacity: 0.5; cursor: default; }
.muted { color: var(--fg-muted); font-size: 0.78rem; }
.error { color: var(--err); font-size: 0.82rem; }
.done { text-align: center; padding: 1rem 0; }
.done h2 { font-family: var(--font-display); margin: 0.25rem 0 0.5rem; }
.done .tick { color: var(--ok); font-size: 2rem; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

.fallback { text-align: center; padding: 0.5rem 0; }
.fallback p { margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.5; }
.fallback .fallback-title { font-size: 1.2rem; font-weight: 700; }
a.w-cta.link { display: inline-block; width: auto; padding: 0.7rem 1rem; text-decoration: none; margin: 0.2rem; }

/* Review screen (Matty M-133622 item 6): picking a time moves to its own screen with the selections
   summarized, the details form, and a way back -- instead of the form just appearing under the grid. */
.w-back { background: none; border: none; padding: 0; margin: 0 0 0.3rem; color: var(--accent);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: underline; }
.w-back:hover { color: var(--accent-strong); }
.review-card { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 0.7rem 0.9rem;
  background: var(--bg-secondary); }
.review-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; font-size: 0.85rem; }
.review-row:not(:last-child) { border-bottom: 1px solid var(--rule); }
.review-row .rk { color: var(--fg-muted); }
.review-row .rv { font-weight: 600; text-align: right; }

.slot.warn { border-style: dashed; }
.slot.warn.picked { border-style: solid; }
/* T-023 Phase A (plan 24.6): never color alone -- the checkmark (.slot-also-free, rendered in the
   button's own label) carries the meaning too, for visitors who can't distinguish the purple fill. */
.slot.also-free { border-color: var(--also-free); color: var(--also-free); background: var(--also-free-bg); }
.slot.also-free.picked { background: var(--also-free); border-color: var(--also-free); color: var(--btn-fg); }
.slot-also-free { font-weight: 700; }
.peek-row { font-size: 0.82rem; line-height: 1.5; margin: 0.6rem 0; }
.peek-explainer { margin: 0.3rem 0 0; }
/* T-089 (Matty M-135833, verified: "Put this in purple instead of orange"): this button is what
   TURNS ON the "you're both free" purple highlighting (.slot.also-free below, already purple) --
   using the brand orange (--accent) here instead of --also-free made it look disconnected from what
   it actually does. */
.peek-connect-btn { display: inline-block; padding: 0.55rem 0.9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--also-free); background: var(--bg-page-card); color: var(--also-free);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.peek-connect-btn:hover:not(:disabled) { background: var(--bg-secondary); }
.peek-connect-btn:disabled { opacity: 0.6; cursor: default; }
.link-btn { background: none; border: none; padding: 0; margin: 0; color: var(--accent);
  font-family: var(--font-body); font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--accent-strong); }
.sug-list { display: flex; flex-direction: column; gap: 0.25rem; }
.sug-list .sug { text-align: left; border: 1px solid var(--rule); background: var(--bg-secondary); color: var(--fg); border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem; font-family: var(--font-body); font-size: 0.82rem; cursor: pointer; }
.sug-list .sug:hover { border-color: var(--accent); }
.place-note { font-size: 0.8rem; line-height: 1.4; padding: 0.4rem 0.6rem; border-radius: var(--radius-md); background: var(--bg-secondary); color: var(--fg-muted); }
.place-note.ok { color: var(--ok); }
.place-note.warn { border-left: 3px solid var(--accent-brand); color: var(--fg); }

/* T-052 (T-043 panel finding): same 28px -> touch-target raise as .cal-nav above -- the grid column,
   spacer, and wrap widths all move together with .loc-status itself so the icon stays centered and
   aligned with .loc-spacer's placeholder rows. */
.loc-grid { display: grid; grid-template-columns: 36px 1fr; gap: 0.5rem; align-items: start; }
.loc-spacer { display: block; width: 36px; }
.loc-status-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 2.45rem; }
.loc-status { border: none; background: none; padding: 0; width: 36px; height: 36px; cursor: help; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); border-radius: 50%; }
.loc-status.none { opacity: 0.45; }
.loc-status.ok { color: var(--ok); }
.loc-status.bad { color: var(--warn); }
.loc-status svg { width: 24px; height: 24px; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.loc-pop { display: none; position: absolute; left: 0; top: calc(100% - 0.2rem); z-index: 20; width: min(280px, calc(100vw - 3rem)); box-sizing: border-box;
  background: var(--bg-page-card); color: var(--fg); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 0.6rem 0.75rem; font-size: 0.82rem; line-height: 1.4; text-align: left; }
.loc-pop.ok { border-left-color: var(--ok); }
.loc-pop.bad { border-left-color: var(--warn); }
.loc-status-wrap:hover .loc-pop, .loc-status-wrap:focus-within .loc-pop, .loc-status-wrap.pinned .loc-pop { display: block; }
.loc-pop .ps-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.15rem; }
.loc-pop.ok .ps-head { color: var(--ok); }
.loc-pop.bad .ps-head { color: var(--warn); }
.loc-pop.none .ps-head { color: var(--fg-muted); }
.loc-pop svg { width: 16px; height: 16px; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.loc-pop .ps-line { overflow-wrap: anywhere; }
.loc-pop .ps-line.muted { color: var(--fg-muted); }
.legend { margin: 0 0 0.6rem; font-size: 0.78rem; line-height: 1.4; color: var(--fg-muted); }

.muted.hint { min-height: 3.6rem; }  /* room below the location row so the hover popup is never clipped by the card */

/* choose_person member picker (T-020, plan 23.9) */
.member-list { display: flex; flex-direction: column; gap: 0.5rem; }
.member-pick { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg-page-card);
  color: var(--fg); padding: 0.6rem 0.8rem; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; }
.member-pick:hover { border-color: var(--accent); background: var(--bg-secondary); }
.member-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem; flex: 0 0 auto; }
/* combined_availability slot counts (plan 23.7: count only, never who) */
.slot-count { font-weight: 400; opacity: 0.85; }

/* Floating credit: stays at the bottom of the screen (or of the popup) while the form scrolls. `overflow: clip` keeps
   the card's rounded corners without turning it into a scroll container, which would stop the footer sticking. */
.widget { overflow: hidden; overflow: clip; }
.w-foot { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.55rem 0.75rem; background: var(--bg-page-card); border-top: 1px solid var(--rule); text-decoration: none;
  color: var(--fg-muted); font-size: 0.68rem; letter-spacing: 0.03em; }
.w-foot { flex-wrap: wrap; gap: 0.25rem 1rem; }
.w-foot a { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; }
.w-foot a:hover, .w-foot a:hover .w-foot__by { color: var(--fg); }
.w-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.w-foot__powered { text-decoration: underline !important; text-underline-offset: 2px; font-size: 0.7rem; font-weight: 600; color: var(--fg) !important; }
/* T-132 (Matty M-136611 item 1: "a little smaller"): scales the whole wordmark down proportionally --
   the SVG's viewBox and internal font-sizes (.wm/.amp below) are tuned together as a tight-fit unit, so
   shrinking the rendered height (not font-size, which would leave empty space inside the same viewBox)
   keeps everything in proportion with zero risk of introducing awkward whitespace. Was 15px. */
.w-foot__logo { height: 11px; width: auto; display: block; overflow: visible; }
.w-foot__logo text { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.w-foot__logo .wm { font-size: 34px; font-weight: 700; font-variant: small-caps; letter-spacing: 0.06em; fill: var(--fg); }
.w-foot__logo .amp { font-size: 28px; font-weight: 400; fill: var(--accent-brand); }

/* T-161: visually hidden status line for screen readers (step changes are announced here, not by a live <main>). */
.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; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.demo-note { margin: 0 0 0.75rem; padding: 0.4rem 0.6rem; border: 1px dashed var(--rule); border-radius: var(--radius-md); color: var(--fg-muted); font-size: 0.8rem; }

/* iOS Safari zooms into inputs under 16px */
@media (max-width: 600px) {
  select, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=time], textarea { font-size: 16px; }
}

/* ---- Layout engine (P1): event-list, two-pane, three-pane. Classic has no rules here on purpose.
   Everything uses the same custom properties as above, so a manager's theme colors apply to every layout. ---- */
.layout-event-list .widget { max-width: 520px; }
.layout-two-pane .widget { max-width: 780px; }
.layout-three-pane .widget { max-width: 1020px; }
.embedded.layout-event-list .widget, .embedded.layout-two-pane .widget, .embedded.layout-three-pane .widget { max-width: none; }
/* M-145609: the same header shows on every screen and layout */
.layout-two-pane .w-body, .layout-three-pane .w-body { padding: 0; gap: 0; }
.layout-two-pane .demo-note, .layout-three-pane .demo-note { margin: 0.75rem 1.25rem 0; }

.panes { display: grid; align-items: stretch; }
.panes-two { grid-template-columns: minmax(200px, 5fr) minmax(0, 7fr); }
.panes-three { grid-template-columns: minmax(180px, 4fr) minmax(0, 6fr) minmax(150px, 3fr); }
.panes-two.review-mode, .panes-three.review-mode { grid-template-columns: minmax(200px, 5fr) minmax(0, 7fr); }
.pane { padding: 1.1rem 1.25rem 1.25rem; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.pane + .pane { border-left: 1px solid var(--rule); }
.pane-title { margin: 0; font-size: 1rem; font-weight: 700; }
.info-host { display: flex; align-items: center; gap: 0.6rem; }
.info-hostname { color: var(--fg-muted); font-size: 0.85rem; font-weight: 600; }
.info-avatar { width: 40px; height: 40px; font-size: 1.05rem; }
/* Branding studio (P2): logo, header banner, preview note. All layout-independent. */
.brand-banner { width: 100%; max-height: 140px; overflow: hidden; background: var(--bg-secondary); line-height: 0; }
.brand-banner-img { display: block; width: 100%; max-height: 140px; object-fit: cover; }
.w-avatar.has-logo { background: transparent; overflow: hidden; border-radius: var(--radius-md); width: auto; max-width: 120px; min-width: 32px; }
.brand-logo { display: block; max-height: 32px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.brand-logo.info-logo { max-height: 44px; max-width: 160px; }
.profile { display: flex; flex-direction: column; gap: 0.9rem; align-items: stretch; text-align: center; }
.w-head[hidden] { display: none; }
.profile-name { margin: 0; font: 700 1.5rem/1.2 var(--font-display, inherit); text-align: center; }
.profile-headline { margin: 0; font: italic 600 1.15rem/1.35 var(--font-display, inherit); }
.profile-photo { width: 12rem; max-width: 70%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; align-self: center; border: 1px solid var(--rule); }
.profile-role { margin: 0; }
.profile-bio { margin: 0; white-space: pre-line; }
.profile-section { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.profile-section-title { margin: 0.4rem 0 0.1rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.profile-item { display: flex; flex-direction: column; gap: 0.4rem; width: min(100%, 22rem); align-self: center; }
.profile-btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em; min-height: 2.8rem; }
.profile-split { display: flex; width: 100%; gap: 0; }
.profile-split .profile-btn { flex: 1 1 auto; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.profile-qr-toggle { flex: 0 0 4.2rem; flex-direction: column; gap: 0.1rem; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(0,0,0,0.65); padding: 0.3rem; font-size: 0.7rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.profile-qr-arrow { width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
.profile-qr-toggle[aria-expanded="true"] .profile-qr-arrow { transform: rotate(-135deg); }
.profile-qr { background: #fff; padding: 0.6rem; border-radius: var(--radius-md); align-self: center; }
.profile-qr[hidden] { display: none; }
.profile-qr-img { display: block; width: 11.25rem; height: 11.25rem; }
.share-panel { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.share-panel[hidden], .exchange-panel[hidden] { display: none; }
.share-help { width: 100%; text-align: left; font-size: 0.875rem; }
.share-help summary { cursor: pointer; text-align: center; padding: 0.5rem 0; }
.share-help ol { margin: 0.3rem 0; padding-left: 1.3rem; }
.share-help p { margin: 0.3rem 0; }
.share-btn { width: 100%; }
/* M-145253: "Share my card" is a footer at the bottom of the main section: a hairline above, no box or border, plain text
   in the page text color (never the accent). Colors come from the theme variables, so dark and custom themes follow. */
.w-cta.share-toggle, .w-cta.share-btn { background: transparent; color: var(--fg-muted); border: 0; box-shadow: none; text-transform: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.w-cta.share-btn { background: var(--bg-secondary); text-decoration: none; }
a.w-cta.share-btn { display: block; box-sizing: border-box; text-align: center; }
.w-cta.share-toggle:hover, .w-cta.share-btn:hover { background: var(--bg-secondary); }
.w-cta.share-toggle:focus-visible, .w-cta.share-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.profile-item.share-card { width: 100%; align-self: stretch; align-items: center; margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.share-status { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: #333; }
.exchange-panel { text-align: left; padding: 0.4rem 0; }
.exchange-panel .contact-thanks { text-align: center; }
.preview-banner { position: sticky; top: 0; z-index: 50; margin: 0; padding: 0.25rem 0.75rem; background: #ffd400; color: #111; border-bottom: 2px solid #111; font: 600 0.72rem/1.3 system-ui, sans-serif; text-align: center; }
.info-title { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; font-family: var(--font-display); }
.info-title:focus { outline: none; }
.info-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.info-facts li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--fg-muted); }
.info-facts svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 0.1rem; }
.info-desc p { margin: 0 0 0.6rem; font-size: 0.85rem; line-height: 1.5; color: var(--fg-muted); overflow-wrap: anywhere; }
.info-desc p:last-child { margin-bottom: 0; }
.info-controls { margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); gap: 0.9rem; }
.tz-line { margin: 0.6rem 0 0; }
.tz-picker { margin: 0.7rem 0 0; display: flex; flex-direction: column; gap: 0.3rem; }
.tz-row { display: flex; align-items: center; gap: 0.5rem; }
.tz-row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--fg-muted); }
.tz-row select { flex: 1 1 auto; min-width: 0; text-overflow: ellipsis; }

/* three-pane time column: scrolls on its own */
/* desktop: the column fills a window the height of the calendar pane (the row height comes from the other panes) */
.pane-times { min-height: 0; }
.time-scroll { position: relative; flex: 1 1 auto; min-height: 14rem; }
.time-col { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: scroll; padding: 2px 0.4rem 2px 2px;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-secondary); }
.time-col::-webkit-scrollbar { width: 10px; }
.time-col::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 5px; }
.time-col::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }
.time-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.time-col .slot-wide { flex: 0 0 auto; padding: 0.85rem 0.85rem; }
.slot-wide { width: 100%; text-align: center; border-radius: var(--radius-md); }
.panes-three { grid-template-columns: minmax(180px, 4fr) minmax(0, 6fr) minmax(170px, 4fr); }

/* date-select (date input + month/year selects + 2-column times): single column like classic */
.ds-cal { display: flex; flex-direction: column; gap: 0.6rem; }
.ds-field { display: flex; flex-direction: column; gap: 0.3rem; }
.ds-date-wrap { position: relative; }
.ds-date-wrap input { padding-right: 2.6rem; min-height: 44px; }  /* UIUX-10: a real touch target, styled like the other fields */
input[type=date]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; right: 0; top: 0; width: 2.6rem; height: 100%; cursor: pointer; }
.ds-date-wrap svg { position: absolute; right: 0.7rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--fg-muted); }
.ds-note { margin: 0; min-height: 1.1em; font-size: 0.78rem; }
.ds-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* event-list */
.event-list, .event-picked { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.event-host { margin-bottom: 0.2rem; }
.event-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.event-card { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--rule); border-left: 4px solid var(--accent-brand); border-radius: var(--radius-md);
  background: var(--bg-page-card); color: var(--fg); padding: 0.8rem 0.9rem; font-family: var(--font-body); }
.event-card:hover { border-color: var(--accent); background: var(--bg-secondary); }
.event-card-icon svg { width: 20px; height: 20px; color: var(--accent); }
.event-card-text { display: flex; flex-direction: column; gap: 0.15rem; }
.event-card-title { font-weight: 700; font-size: 0.95rem; }
.event-card-meta { color: var(--fg-muted); font-size: 0.78rem; }
.event-picked .pane { padding: 0; border: 0; }

/* panes stack on narrow screens */
@media (max-width: 700px) {
  .panes-two, .panes-three, .panes-two.review-mode, .panes-three.review-mode { grid-template-columns: 1fr; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--rule); }
  .time-scroll { min-height: 0; }
  .time-col { position: static; max-height: 16rem; }
  .layout-two-pane .widget, .layout-three-pane .widget, .layout-event-list .widget { max-width: 420px; }
}

/* Preselect/lock (M-144141): a locked choice shown as plain text in place of its picker. */
.locked-value { margin: 0; font-weight: 600; }

/* Contact collection (P3): the contact step shared by every layout. */
.contact-form { gap: 0.75rem; }
.contact-title:focus { outline: none; }
.contact-intro { margin: 0; white-space: pre-line; }
.contact-field .opt, .contact-check .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg-muted); }
.contact-check { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.85rem; line-height: 1.4; }
.contact-check input { margin-top: 0.2rem; flex: 0 0 auto; }
.contact-consent-text { min-width: 0; overflow-wrap: anywhere; }
.contact-consent a { color: var(--accent); }
.field-error { margin: 0; color: var(--err); font-size: 0.8rem; }
input[aria-invalid=true], textarea[aria-invalid=true], select[aria-invalid=true] { border-color: var(--err); }
.slots-locked-note { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--warn); }
.slot[aria-disabled=true] { opacity: 0.55; cursor: not-allowed; }
.both-toggle { width: 100%; }
.contact-thanks { margin: 0; font-size: 0.85rem; color: var(--fg-muted); }
.layout-two-pane .contact-thanks, .layout-three-pane .contact-thanks { margin: 0.75rem 1.25rem 0; }
/* Page content "both" (Design studio): the separate contact form under the booking area. */
.contact-both { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }  /* above the calendar (UIUX-09) */
.layout-two-pane .contact-both, .layout-three-pane .contact-both, .layout-event-list .contact-both { margin: 1rem 1.25rem 0; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Booking "Add guests" */
.w-outline { width: 100%; padding: 0.6rem; border-radius: var(--radius-md); background: transparent; color: var(--fg);
  border: 1px solid var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.w-outline:hover { background: var(--bg-secondary); }
.w-outline:focus-visible, .guest-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guests { display: flex; flex-direction: column; gap: 0.5rem; }
.guest-row { display: flex; gap: 0.4rem; align-items: stretch; }
.guest-row input { flex: 1; min-width: 0; }
.guest-remove { flex: none; width: 2.5rem; border-radius: var(--radius-md); background: transparent; color: var(--fg);
  border: 1px solid var(--border, currentColor); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.guest-remove:hover { background: var(--bg-secondary); }

/* About this meeting (classic and date-select, M-145393): a native details, so it is keyboard and screen reader friendly. */
.about-meeting { margin: 0 0 0.5rem; border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 0 0.75rem; }
.about-meeting > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.about-meeting > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.about-meeting .info-desc { padding-bottom: 0.5rem; }

/* WP2: time buttons grouped by part of day with "Show all times", link-style buttons ("Add guests", "Book another time"). */
.slot-parts { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
.slot-part { display: flex; flex-direction: column; gap: 0.4rem; flex: 0 0 auto; }
.slot-part-title { margin: 0; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-muted); }
.slot-col { display: flex; flex-direction: column; gap: 0.5rem; }
.time-col .slot-part + .slot-part { margin-top: 0.35rem; }
.slot-more { align-self: flex-start; flex: 0 0 auto; min-height: 44px; padding: 0 0.25rem; background: none; border: none;
  color: var(--accent); font: inherit; font-size: 0.85rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.slot-more:hover, .w-link:hover { color: var(--accent-strong); }
.slot-more:focus-visible, .w-link:focus-visible, .slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.w-link { align-self: flex-start; display: inline-flex; align-items: center; padding: 0.25rem 0; background: none; border: none;
  color: var(--accent); font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) {
  .slot { min-height: 44px; }
  .slot-row:not(.slot-grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
  .w-link { min-height: 44px; }
}

/* W3A (V4): on phones the credit is not sticky (it overlaid the slot list, about 50px always on screen) and
   sits at the end of the content as one line. From 600px up nothing changes: the sticky bar of M-145612,
   with the wording and sizes of M-145948 / M-145965, stays. A popup embed is a narrow frame even on a
   desktop screen, so inside an embed only touch devices (the full-screen phone popup) get the phone footer.
   Sizes follow the screen width so both credits fit on one line; under about 350px they may wrap, never clip. */
@media (max-width: 599px) {
  body:not(.embedded) .w-foot { position: static; gap: 0.25rem 2vw; padding: 0.55rem 0.5rem; font-size: max(8.5px, min(2.4vw, 0.68rem)); }
  body:not(.embedded) .w-foot a { gap: 1.2vw; white-space: nowrap; }
  body:not(.embedded) .w-foot__powered { font-size: max(8.5px, min(2.45vw, 0.7rem)); }
  body:not(.embedded) .w-foot__logo { height: max(8px, min(2.3vw, 11px)); }
}
@media (max-width: 599px) and (pointer: coarse) {
  .embedded .w-foot { position: static; gap: 0.25rem 2vw; padding: 0.55rem 0.5rem; font-size: max(8.5px, min(2.4vw, 0.68rem)); }
  .embedded .w-foot a { gap: 1.2vw; white-space: nowrap; }
  .embedded .w-foot__powered { font-size: max(8.5px, min(2.45vw, 0.7rem)); }
  .embedded .w-foot__logo { height: max(8px, min(2.3vw, 11px)); }
}
/* Card sharing plan 2.1: QR downloads in the Share my card panel. The panel is always white, so fixed dark text. */
.share-downloads { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; justify-content: center; font-size: 0.85rem; color: #333; }
.share-dl { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.share-dl:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
