/* Chronoo booking - brand tokens (canonical: branding/chronoo-landing.html)
 * Day: royal blue + white. Dark: midnight blue + white.
 * --bg #ffffff / #0d1730
 * --panel #ffffff / #121d3d
 * --text/--ink #10162b / #f2f4fb
 * --muted #565f7d / #a7b0cf
 * --accent #0000ff / #ffffff
 * --accent-2 #3752b4 / #ffffff
 * --border/--line #e3e7f5 / #26325c
 * --radius 14px, --radius-sm 12px
 * Fonts: Fraunces (display) + Jost (body)
 * Breakpoints: 640px tablet, 960px desktop
 */
:root {
  --font-family: "Jost", "Fraunces", system-ui, -apple-system, sans-serif;
  --bg: #ffffff;
  --paper: #ffffff;
  --panel: #ffffff;
  --surface: #ffffff;
  --text: #10162b;
  --ink: #10162b;
  --muted: #565f7d;
  --ink-soft: #565f7d;
  --accent: #0000ff;
  --accent-2: #3752b4;
  --accent-ink: #ffffff;
  --on-accent: #ffffff;
  --secondary: #3752b4;
  --secondary-soft: #eef1fb;
  --accent-soft: rgba(0, 0, 255, 0.08);
  --danger: #b91c1c;
  --ok: #0f7a45;
  --border: #e3e7f5;
  --line: #e3e7f5;
  --radius: 14px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px rgba(26, 42, 96, 0.08);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --autofill-bg: #ffffff;
  --autofill-text: #10162b;
  --summary-bg: #eef1fb;
  --day-hover: #eef1fb;
  --slot-bg: #ffffff;
  --skeleton-a: #e3e7f5;
  --skeleton-b: #eef1fb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1730;
    --paper: #0d1730;
    --panel: #121d3d;
    --surface: #121d3d;
    --text: #f2f4fb;
    --ink: #f2f4fb;
    --muted: #a7b0cf;
    --ink-soft: #a7b0cf;
    --accent: #ffffff;
    --accent-2: #ffffff;
    --accent-ink: #0d1730;
    --on-accent: #0d1730;
    --secondary: #ffffff;
    --secondary-soft: #1c2a52;
    --accent-soft: rgba(255, 255, 255, 0.12);
    --danger: #f87171;
    --ok: #34d399;
    --border: #26325c;
    --line: #26325c;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --input-bg: #1c2a52;
    --input-bg-focus: #243562;
    --autofill-bg: #1c2a52;
    --autofill-text: #f2f4fb;
    --summary-bg: #121d3d;
    --day-hover: #1c2a52;
    --slot-bg: #1c2a52;
    --skeleton-a: #1c2a52;
    --skeleton-b: #26325c;
  }
}

* { box-sizing: border-box; }
html {
  color-scheme: light dark;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Lang picker */
.lang-picker-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.lang-picker {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.lang-btn {
  width: auto;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--accent-soft);
  color: var(--text);
}
.lang-btn:disabled { opacity: 0.7; cursor: default; }
.lang-flag { font-size: 1.05rem; line-height: 1; margin-right: 4px; }

/* Split shell */
.booking-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 560px;
  animation: shellIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shellIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Left summary */
.booking-summary {
  background: var(--summary-bg);
  border-right: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.brand-header-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.brand-name-fallback {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text);
}

.summary-org {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.summary-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.summary-toggle-chevron {
  transition: transform 0.25s ease;
}
.booking-summary.is-collapsed .summary-toggle-chevron {
  transform: rotate(-90deg);
}

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-recap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }

.summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.summary-value {
  font-size: 0.98rem;
  font-weight: 560;
  color: var(--text);
  line-height: 1.35;
}
.summary-value.is-empty {
  color: var(--muted);
  font-weight: 450;
}

.summary-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Right pane */
.booking-main {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.booking-hero {
  margin-bottom: 18px;
}
.booking-hero h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.booking-hero .sub {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}
.save-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--accent) 8%);
}
.save-contact-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}
.save-contact-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}
.save-contact-role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.save-contact-lines {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}
.save-contact-lines li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.save-contact-label {
  color: var(--muted);
  min-width: 5.5rem;
}
.save-contact-lines a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.save-contact-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent, #0000ff);
  color: var(--on-accent, #fff);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.step-pill {
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  cursor: default;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.step-pill.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
  background: var(--accent-soft);
}
.step-pill.step-clickable {
  cursor: pointer;
  color: var(--text);
}
.step-pill.step-clickable:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--accent-soft);
}
.step-pill:disabled:not(.active) {
  opacity: 0.5;
  cursor: default;
}

/* Wizard slide */
.wizard-viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.wizard-track {
  position: relative;
  width: 100%;
}

.wizard-step {
  display: none;
  width: 100%;
  opacity: 1;
  pointer-events: auto;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step.slide-from-right {
  animation: slideFromRight 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-step.slide-from-left {
  animation: slideFromLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Forms */
label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 6px;
}

.field {
  position: relative;
  margin-top: 16px;
}
.field label {
  margin: 0 0 6px;
}
.field.floating {
  margin-top: 18px;
}
.field.floating label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}
.field.floating.textarea-field label {
  top: 18px;
  transform: none;
}
.field.floating input:focus + label,
.field.floating input:not(:placeholder-shown) + label,
.field.floating textarea:focus + label,
.field.floating textarea:not(:placeholder-shown) + label,
.field.floating.has-value label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--panel);
}
.field.floating .req {
  margin-left: 2px;
}
.field.floating .field-note {
  margin: 6px 0 0;
  font-size: 0.8rem;
}

input, select, textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1.02rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  background: var(--input-bg-focus);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--autofill-bg) inset;
  -webkit-text-fill-color: var(--autofill-text);
  caret-color: var(--autofill-text);
  transition: background-color 5000s ease-in-out 0s;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

button.primary {
  width: 100%;
  margin-top: 22px;
  padding: 15px 16px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 88%, #fff);
}
button.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
button.ghost {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
  transition: color 0.2s, background 0.2s;
}
button.ghost:hover {
  color: var(--text);
  background: var(--day-hover);
}

/* Meeting channels (step 1) */
#meeting-address-wrap {
  margin-top: 16px;
}
.place-suggest {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line, #c5d0de);
  border-radius: 8px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
}
.place-suggest li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.place-suggest li button:hover,
.place-suggest li button:focus {
  background: var(--day-hover, #f4f7fb);
}
.place-suggest li button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
#mode-next-slot {
  margin-top: 0;
}

.meeting-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.meeting-channels .meeting-mode {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 132px;
  padding: 20px 14px 18px;
}
.meeting-channels .meeting-mode input {
  position: absolute;
  top: 12px;
  right: 12px;
}
.meeting-channels .meeting-mode-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.meeting-channels .meeting-mode-text {
  align-items: center;
  gap: 4px;
}
.meeting-channels .meeting-mode-title { font-size: 1.02rem; }
.meeting-channels .meeting-mode-hint {
  font-size: 0.8rem;
  max-width: 15em;
}

.meeting-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.meeting-mode:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--accent-soft);
}
.meeting-mode:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) inset;
}
.meeting-mode:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.meeting-mode input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.meeting-mode-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}
.meeting-mode-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}
.meeting-mode-title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}
.meeting-mode-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Visio logo grid */
.meeting-providers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.meeting-providers .meeting-mode {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
}
.meeting-providers .meeting-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.meeting-providers .meeting-mode {
  position: relative;
}
.meeting-providers .meeting-mode-icon {
  width: 36px;
  height: 36px;
}
.meeting-providers .meeting-mode-hint {
  display: none;
}
.meeting-providers .meeting-mode-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Duration pills */
.duration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.duration-pill {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 560;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.duration-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--accent-soft);
}
.duration-pill.selected,
.duration-pill[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* Custom month calendar */
.cal {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel);
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.cal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}
.cal-nav {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.cal-nav:hover:not(:disabled) {
  background: var(--day-hover);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  appearance: none;
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cal-row,
.cal-cell {
  display: contents;
}
.cal-day:hover:not(:disabled):not(.is-empty):not(.is-unavailable):not(.is-selected) {
  background: var(--day-hover);
}
.cal-day.is-empty {
  display: block;
  cursor: default;
  visibility: hidden;
}
.cal-day:disabled,
.cal-day.is-unavailable {
  color: var(--muted);
  opacity: 0.35;
  cursor: default;
}
.cal-day.is-today {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.cal-day.is-selected {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.cal-day.is-selected:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.cal-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.cal-day.is-unavailable:focus-visible {
  opacity: 0.7;
}

/* Slots */
.next-slot-banner {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.next-slot-banner .ghost {
  width: auto;
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  border: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  background: transparent;
}
.next-slot-banner .ghost:hover {
  background: transparent;
  color: var(--accent-2);
}

.slots-wrap { margin-top: 4px; }
.slots-group {
  margin-top: 14px;
}
.slots-group-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
}
.slot {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 10px;
  text-align: center;
  cursor: pointer;
  background: var(--slot-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.3;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.slot-label { display: block; }
.slot-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #b45309;
  line-height: 1.2;
}
.slot-legend {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.slot-travel {
  border-color: color-mix(in srgb, #f59e0b 50%, var(--border));
  background: color-mix(in srgb, #f59e0b 8%, var(--slot-bg));
}
.slot:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.slot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.slot.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.slot.selected .slot-badge,
.slot-travel.selected .slot-badge {
  color: #fde68a;
}
.slot-travel.selected {
  border-color: #f59e0b;
}

.slot-skeleton {
  border-radius: var(--radius-sm);
  min-height: 44px;
  background: linear-gradient(90deg, var(--skeleton-a) 0%, var(--skeleton-b) 50%, var(--skeleton-a) 100%);
  background-size: 200% 100%;
  animation: slotShimmer 1.2s ease-in-out infinite;
}
@keyframes slotShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.invite-continue {
  animation: invitePulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes invitePulse {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.err { color: var(--danger); font-size: 0.9rem; margin-top: 12px; }
.req { color: var(--danger); font-weight: 600; }
input.field-invalid, textarea.field-invalid { border-color: var(--danger); }
.field-hint { color: var(--danger); font-size: 0.82rem; margin-top: 6px; min-height: 1.1em; }
.ok { color: var(--ok); font-size: 0.95rem; margin-top: 12px; line-height: 1.5; text-align: center; }
.muted { color: var(--muted); font-size: 0.85rem; }

.confirm-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.confirm-actions {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.confirm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 6px;
}
a.link-btn.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 140px;
  flex: 1 1 140px;
  margin-top: 0;
  padding: 12px 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
}
a.link-btn.ghost:hover {
  background: var(--day-hover);
  color: var(--text);
}
#btn-manage-appt.link-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
}
#btn-assistant-prep { width: 100%; margin-top: 12px; }
#confirm-assistant-hint { margin: 10px 0 0; font-size: 0.85rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.appel-confirm, .travel-call-notice { margin-top: 10px; font-size: 0.88rem; }
.travel-call-notice {
  color: #92400e;
  background: color-mix(in srgb, #fbbf24 14%, transparent);
  border: 1px solid color-mix(in srgb, #fbbf24 40%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  .travel-call-notice { color: #fde68a; }
  .slot-badge { color: #fbbf24; }
}

.assistant-banner {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}
.assistant-banner.assistant-verify {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--accent-soft);
}
.handoff-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.legal {
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.legal a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
}
.legal a:hover { color: var(--text); }

.swiss-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
.swiss-trust-icon { flex-shrink: 0; opacity: 0.92; }

.brand-credit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 56px auto 12px;
  text-align: center;
  flex-wrap: nowrap;
}
.brand-credit strong,
.brand-credit .brand-wordmark {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}
.brand-credit .brand-wordmark[hidden],
.brand-credit .brand-wordmark.hidden {
  display: none !important;
}
.brand-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

/* Chronoo platform logo: landing swap (royal blue / white), not CSS filter */
.logo-swap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
#header-tagline-swap > a.chronoo-home,
#header-logo-swap > a.chronoo-home {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
#summary-platform-swap > a.chronoo-home {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.logo-swap .logo-on-dark { display: none; }
.logo-swap .logo-on-light { display: block; }
@media (prefers-color-scheme: dark) {
  .logo-surface-paper .logo-on-light { display: none; }
  .logo-surface-paper .logo-on-dark { display: block; }
}
.logo-swap.is-custom-brand .logo-on-dark { display: none !important; }
.logo-swap.is-custom-brand .logo-on-light { display: block !important; }
.summary-brand .logo-swap { margin-bottom: 4px; }
.summary-brand .summary-tagline-logo { display: none; }
.summary-brand.is-chronoo-solo .summary-tagline-logo { display: inline-flex; width: 100%; max-width: 240px; }
.summary-brand.is-chronoo-solo #header-logo-swap,
.summary-brand.is-chronoo-solo .summary-org,
.summary-brand.has-client-logo .summary-org { display: none; }
.summary-brand .summary-platform-logo { display: none; }
.summary-brand.has-client-logo { align-self: stretch; }
.summary-brand.has-client-logo #header-logo-swap { display: flex; width: 100%; }
.summary-brand.has-client-logo .brand-header-logo {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}
.summary-brand.has-client-logo .summary-platform-logo { display: inline-flex; margin-bottom: 0; opacity: 0.85; }
.brand-platform-logo { height: 24px; width: auto; }
.brand-tagline-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1019.735 / 340.918;
}
.brand-credit .logo-swap {
  display: inline-flex;
  align-items: flex-end;
  height: 26px;
  overflow: hidden;
  line-height: 0;
}
.brand-credit .brand-logo {
  height: 55px;
  width: auto;
  max-width: none;
}

.err[role="alert"] { scroll-margin-top: 12px; }

/* Responsive */
@media (max-width: 860px) {
  .booking-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .booking-summary {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 18px;
    gap: 12px;
  }
  .summary-toggle { display: flex; }
  .booking-summary.is-collapsed .summary-body { display: none; }
  .summary-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand-header-logo { height: 36px; }
  .summary-brand.has-client-logo { justify-content: space-between; }
  .summary-brand.has-client-logo #header-logo-swap { flex: 1 1 auto; min-width: 0; }
  .summary-brand.has-client-logo .brand-header-logo { max-height: 68px; }
  .summary-brand.has-client-logo .summary-platform-logo { flex: 0 0 auto; }
  .brand-platform-logo { height: 20px; }
  .booking-main { padding: 20px 18px 24px; }
  .meeting-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  main { padding: 16px 12px 40px; }
  .row { grid-template-columns: 1fr; }
  .meeting-channels { grid-template-columns: 1fr; }
  .cal-day { min-height: 36px; font-size: 0.86rem; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .booking-shell,
  .wizard-step.slide-from-right,
  .wizard-step.slide-from-left,
  .invite-continue,
  .slot-skeleton {
    animation: none !important;
    transition: none !important;
  }
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[type="checkbox"], input[type="radio"] { min-width: 18px; min-height: 18px; }
@media (pointer: coarse) {
  .place-suggest li button { min-height: 44px; }
  .lang-btn { min-height: 44px; }
}
.brand-credit-link { display: inline-flex; align-items: center; }
