/* Gulf Coast Facial Plastics online booking and Ask Oli (a copy of the Open Sinus booking.css).
   Colors, type and space come only from tokens.css (fonts are declared there too).
   Every rule is scoped under .osb (the booking card) or .oli-host (Ask Oli), two classes deep,
   so the site's element and :focus-visible rules never reshape these components. */

/* ---------- layout: the booking card beside Ask Oli ---------- */
:where(:has(> .osb-host)):has(> .oli-host--panel),
.osb-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  :where(:has(> .osb-host)):has(> .oli-host--panel),
  .osb-shell { grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); }
}
.osb-host { display: block; min-width: 0; }

/* ---------- shared scope and resets ---------- */
.osb,
.oli-host {
  --osb-field: color-mix(in srgb, var(--muted) 78%, var(--paper)); /* 3:1 boundary for inputs */
  --osb-sticky: 96px; /* the site header (72px, sticky) plus breathing room */
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.osb *, .osb *::before, .osb *::after,
.oli-host *, .oli-host *::before, .oli-host *::after { box-sizing: border-box; }
.osb :where(h2, h3, p, ul, ol, li, dl, dt, dd, fieldset, legend),
.oli-host :where(h2, h3, p, ul, ol, li) { margin: 0; padding: 0; }
.osb :where(ul, ol), .oli-host :where(ul, ol) { list-style: none; }
.osb :where(fieldset) { border: 0; min-width: 0; }
.osb :where(button, input, select, textarea),
.oli-host :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.osb :where(button), .oli-host :where(button) { cursor: pointer; }
.osb [hidden], .oli-host [hidden] { display: none !important; }
:is(.osb, .oli-host) .osb-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:is(.osb, .oli-host) .osb-ic { width: 20px; height: 20px; flex: none; }

/* one focus language: a solid ring outside the element; inputs use the brand halo */
:is(.osb, .oli-host) :focus-visible { outline: 2px solid var(--os-green-deep); outline-offset: 2px; box-shadow: none; }
:is(.osb, .oli-host) :is(.osb-h, .osb-q, .oli-title):focus { outline: none; box-shadow: none; }

/* ---------- buttons and links ---------- */
:is(.osb, .oli-host) .osb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
:is(.osb, .oli-host) .osb-btn .osb-ic { width: 18px; height: 18px; }
:is(.osb, .oli-host) .osb-btn:active { transform: translateY(1px); }
/* primary actions: the brand green, deepened one step so white text clears 4.5:1 */
:is(.osb, .oli-host) .osb-btn--primary { background: var(--os-green-deep); color: var(--paper); }
:is(.osb, .oli-host) .osb-btn--primary:hover { background: color-mix(in srgb, var(--os-green-deep) 82%, var(--ink)); color: var(--paper); }
:is(.osb, .oli-host) .osb-btn--secondary { background: var(--paper); color: var(--os-navy); border-color: var(--line-strong); }
:is(.osb, .oli-host) .osb-btn--secondary:hover { background: var(--surface); border-color: var(--os-navy); color: var(--os-navy); }
:is(.osb, .oli-host) .osb-btn--ghost { background: transparent; color: var(--ink-soft); padding: 0 16px 0 12px; }
:is(.osb, .oli-host) .osb-btn--ghost:hover { background: var(--surface); color: var(--os-navy); }
:is(.osb, .oli-host) .osb-btn--danger { background: var(--alert); color: var(--paper); }
:is(.osb, .oli-host) .osb-btn--danger:hover { background: color-mix(in srgb, var(--alert) 84%, var(--ink)); color: var(--paper); }
:is(.osb, .oli-host) .osb-btn--quiet { background: transparent; color: var(--alert); padding: 0 16px; }
:is(.osb, .oli-host) .osb-btn--quiet:hover { background: var(--alert-tint); color: var(--alert); }
:is(.osb, .oli-host) .osb-btn--sm { min-height: 44px; padding: 0 16px; }
:is(.osb, .oli-host) .osb-btn[aria-disabled="true"] { opacity: .62; cursor: default; transform: none; }
:is(.osb, .oli-host) .osb-btn[aria-busy="true"] { opacity: .9; cursor: progress; }
:is(.osb, .oli-host) .osb-spin {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: osb-spin .7s linear infinite;
}
@keyframes osb-spin { to { transform: rotate(360deg); } }

:is(.osb, .oli-host) .osb-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  background: none; border: 0; border-radius: 4px; color: var(--os-green-deep);
  font-size: var(--fs-sm); font-weight: 600; text-align: left;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
:is(.osb, .oli-host) .osb-link:hover { color: var(--os-navy); text-decoration-color: currentColor; }
:is(.osb, .oli-host) .osb-tel { color: inherit; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:is(.osb, .oli-host) .osb-tel:hover { color: inherit; text-decoration-thickness: 2px; }

/* ---------- the booking card ---------- */
.osb {
  container: osb / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 88px;
}
.osb .osb-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 10px clamp(16px, 3.2cqi, 28px); border-bottom: 1px solid var(--line);
}
.osb .osb-top-note,
.osb .osb-top-label { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-soft); }
.osb .osb-short { display: none; }
.osb .osb-top-label { color: var(--muted); font-weight: 500; }
.osb .osb-top-label .osb-ic { width: 18px; height: 18px; color: var(--os-green-deep); }
.osb .osb-badge {
  display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--os-sand); color: var(--warm); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4;
}
.osb .osb-lang { display: inline-flex; gap: 2px; flex: none; margin-left: auto; }
@container osb (max-width: 559px) {
  .osb .osb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .osb .osb-top .osb-badge { grid-column: 1; grid-row: 1; justify-self: start; }
  .osb .osb-top .osb-lang { grid-column: 2; grid-row: 1; }
  .osb .osb-top .osb-top-note { grid-column: 1 / -1; grid-row: 2; padding-bottom: 4px; }
  .osb .osb-long { display: none; }
  .osb .osb-short { display: inline; }
}
.osb .osb-lang-btn {
  min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 600;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.osb .osb-lang-btn:hover { color: var(--os-navy); }
.osb .osb-lang-btn[aria-pressed="true"] { background: var(--os-green-tint); color: var(--os-navy); }

.osb .osb-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.osb .osb-rail { display: none; }
.osb .osb-panel { container: osbp / inline-size; min-width: 0; padding: clamp(18px, 4cqi, 36px); }
@container osb (min-width: 700px) {
  .osb .osb-body { grid-template-columns: 224px minmax(0, 1fr); min-height: 560px; }
  .osb .osb-rail {
    display: flex; flex-direction: column; gap: 22px; padding: 30px 20px 24px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .osb .osb-progress { display: none !important; }
}

/* ---------- progress rail (wide) ---------- */
.osb .osb-rail-t { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--os-navy); }
.osb .osb-rail-list { display: flex; flex-direction: column; }
.osb .osb-rail-step { position: relative; padding-bottom: 6px; }
.osb .osb-rail-step:not(:last-child)::after {
  content: ''; position: absolute; left: 11px; top: 33px; bottom: 1px; width: 2px; border-radius: 2px; background: var(--line);
}
.osb .osb-rail-step.is-done:not(:last-child)::after { background: color-mix(in srgb, var(--os-green) 40%, var(--line)); }
.osb .osb-rail-item,
.osb .osb-rail-btn {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start;
  width: 100%; min-height: 44px; padding: 4px 4px 8px 0; border: 0; border-radius: var(--r-sm);
  background: none; color: inherit; text-align: left;
}
.osb .osb-rail-btn:hover .osb-rail-label { color: var(--os-green-deep); text-decoration: underline; text-underline-offset: 3px; }
.osb .osb-rail-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border: 2px solid var(--osb-field); border-radius: 50%; background: var(--paper); color: var(--paper);
}
.osb .is-done .osb-rail-dot { background: var(--os-green-deep); border-color: var(--os-green-deep); }
.osb .is-done .osb-rail-dot .osb-ic { width: 13px; height: 13px; stroke-width: 3; }
.osb .is-now .osb-rail-dot { border-color: var(--os-navy); }
.osb .is-now .osb-rail-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--os-navy); }
.osb .osb-rail-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; min-width: 0; }
.osb .osb-rail-label { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--muted); }
.osb .is-done .osb-rail-label { color: var(--ink); }
.osb .is-now .osb-rail-label { color: var(--os-navy); }
.osb .osb-rail-sum { font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.osb .osb-rail-help {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted);
}

/* ---------- compact progress (narrow) ---------- */
.osb .osb-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.osb .osb-progress-t { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--muted); }
.osb .osb-progress-name { font-weight: 600; color: var(--os-navy); }
.osb .osb-progress-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.osb .osb-progress-bar span { height: 4px; border-radius: 2px; background: var(--line); }
.osb .osb-progress-bar .is-done { background: var(--os-green); }
.osb .osb-progress-bar .is-now { background: var(--os-navy); }

/* ---------- steps and type ---------- */
.osb .osb-step { display: flex; flex-direction: column; gap: 20px; animation: osb-in .28s var(--ease) both; }
@keyframes osb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.osb .osb-h {
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; font-style: normal;
  line-height: 1.15; letter-spacing: -0.012em; color: var(--os-navy); text-wrap: balance;
}
.osb .osb-h--xl { font-size: var(--fs-2xl); line-height: 1.08; }
.osb .osb-sub { margin-top: -12px; max-width: 62ch; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.osb .osb-h3 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--ink); }

/* ---------- notices ---------- */
.osb .osb-notice,
.osb .osb-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); }
.osb .osb-notice .osb-ic,
.osb .osb-alert .osb-ic { width: 18px; height: 18px; margin-top: 2px; }
.osb .osb-notice--info { background: var(--os-sky); border: 1px solid var(--line); }
.osb .osb-notice--info .osb-ic { color: var(--os-green-deep); }
.osb .osb-notice--warn,
.osb .osb-alert { background: var(--alert-tint); border: 1px solid color-mix(in srgb, var(--alert) 22%, transparent); }
.osb .osb-notice--warn .osb-ic,
.osb .osb-alert .osb-ic { color: var(--alert); }
.osb .osb-alert-body { display: flex; flex-direction: column; align-items: flex-start; }
.osb .osb-alert-body .osb-link { color: var(--ink); }
.osb .osb-note { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-soft); }
.osb .osb-note .osb-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--os-green-deep); }
.osb .osb-preview { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--os-sand); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); }
.osb .osb-preview .osb-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--warm); }

/* ---------- safety check ---------- */
.osb .osb-safety { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.osb .osb-safety-t { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.osb .osb-safety-list { display: flex; flex-direction: column; gap: 10px; }
.osb .osb-safety-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
.osb .osb-safety-row p { flex: 1 1 260px; }
.osb .osb-safety-row b { font-weight: 600; color: var(--ink); }
.osb .osb-safety-row .osb-safety-911 { color: var(--alert); }
.osb .osb-safety-go { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--line); }
.osb .osb-safety-done { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-soft); }
.osb .osb-safety-done .osb-ic { color: var(--os-green-deep); }
.osb .osb-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper);
  color: var(--os-navy); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.osb .osb-pill .osb-ic { width: 16px; height: 16px; }
.osb .osb-pill:hover { border-color: var(--os-navy); color: var(--os-navy); }
.osb .osb-pill--alert { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 38%, var(--paper)); }
.osb .osb-pill--alert:hover { background: var(--alert-tint); border-color: var(--alert); color: var(--alert); }

/* ---------- new or returning ---------- */
.osb .osb-block { display: flex; flex-direction: column; gap: 14px; }
.osb .osb-q { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
.osb .osb-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container osbp (min-width: 560px) { .osb .osb-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.osb .osb-choice {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 14px;
  min-height: 88px; padding: 16px 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); text-align: left;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.osb .osb-choice:hover { border-color: var(--os-navy); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.osb .osb-choice-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--os-green-tint); color: var(--os-green-deep); }
.osb .osb-choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.osb .osb-choice-t { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.osb .osb-choice-s { font-size: var(--fs-sm); color: var(--muted); }
.osb .osb-choice-go { color: var(--muted); transition: transform .18s var(--ease), color .18s var(--ease); }
.osb .osb-choice:hover .osb-choice-go { color: var(--os-navy); transform: translateX(2px); }

/* ---------- forms ---------- */
.osb .osb-form { display: flex; flex-direction: column; gap: 20px; }
.osb .osb-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@container osbp (min-width: 420px) { .osb .osb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.osb .osb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.osb .osb-label { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--ink); }
.osb legend.osb-label { margin-bottom: 6px; }
.osb .osb-opt { font-weight: 400; color: var(--muted); }
.osb .osb-hint { font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.osb .osb-input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--osb-field); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); font-size: var(--fs-md); line-height: 1.35;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.osb .osb-input::placeholder { color: var(--muted); opacity: 1; }
.osb .osb-input:hover { border-color: var(--muted); }
.osb .osb-input:focus,
.osb .osb-input:focus-visible { outline: none; border-color: var(--os-green-deep); box-shadow: var(--focus); }
.osb .osb-input[aria-invalid="true"] { border-color: var(--alert); }
.osb .osb-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert) 22%, transparent); }
.osb .osb-input--area { min-height: 96px; resize: vertical; }
.osb .osb-select { position: relative; }
.osb .osb-select::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg);
}
.osb .osb-select-input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.osb .osb-err { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; color: var(--alert); }
.osb .osb-err .osb-ic { width: 18px; height: 18px; margin-top: 1px; }
.osb .osb-count { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.osb .osb-dob-row { display: flex; flex-wrap: wrap; gap: 12px; }
.osb .osb-dob-part { display: flex; flex-direction: column; gap: 4px; }
.osb .osb-dob-label { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); }
.osb .osb-input--m,
.osb .osb-input--d { width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.osb .osb-input--y { width: 6.25em; text-align: center; font-variant-numeric: tabular-nums; }
.osb .osb-fieldset { display: flex; flex-direction: column; gap: 12px; }
.osb .osb-legend { margin-bottom: 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
/* A new patient's home address, asked when the practice's setting says so: its fields keep the form's own spacing */
.osb .osb-fieldset.osb-address { gap: 20px; }
.osb .osb-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: var(--fs-sm); color: var(--ink-soft); }

/* radio indicator shared by cards and time rows */
.osb .osb-radio {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px;
  border: 2px solid var(--osb-field); border-radius: 50%; background: var(--paper);
  transition: border-color .15s var(--ease);
}
.osb .osb-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--os-navy); transform: scale(0); transition: transform .18s var(--ease); }
.osb input:checked ~ .osb-radio { border-color: var(--os-navy); }
.osb input:checked ~ .osb-radio::after { transform: scale(1); }

/* reason cards */
.osb .osb-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@container osbp (min-width: 440px) { .osb .osb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.osb .osb-rcard {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.osb .osb-rcard:hover { border-color: color-mix(in srgb, var(--os-navy) 50%, var(--line-strong)); }
.osb .osb-rcard-input,
.osb .osb-slot-input,
.osb .osb-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.osb .osb-rcard-t { font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); }
.osb .osb-rcard:has(input:checked) { border-color: var(--os-navy); background: var(--os-sky); }
.osb .osb-rcard:has(input:focus-visible) { outline: 2px solid var(--os-green-deep); outline-offset: 2px; }

/* chips: filters and who-is-this-for */
.osb .osb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.osb .osb-chip { position: relative; display: inline-flex; }
.osb .osb-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper);
  color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.osb .osb-chip input:hover + span { border-color: var(--os-navy); color: var(--os-navy); }
.osb .osb-chip input:checked + span { background: var(--os-navy); border-color: var(--os-navy); color: var(--paper); }
.osb .osb-chip input:focus-visible { outline: none; }
.osb .osb-chip input:focus-visible + span { outline: 2px solid var(--os-green-deep); outline-offset: 2px; }
.osb .osb-chip input:disabled { cursor: not-allowed; }
.osb .osb-chip input:disabled + span { background: var(--surface); border-color: var(--line); border-style: dashed; color: var(--muted); }
.osb .osb-filter-wrap { display: flex; flex-direction: column; gap: 10px; }
.osb .osb-filters { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.osb .osb-filter-hint { display: flex; align-items: center; gap: 8px; }
.osb .osb-filter-hint .osb-ic { width: 16px; height: 16px; color: var(--os-green-deep); }

/* ---------- pick a time: week strip ---------- */
.osb .osb-week { display: flex; align-items: stretch; gap: 8px; }
.osb .osb-week:empty { display: none; }
.osb .osb-week-nav {
  display: grid; place-items: center; flex: none; width: 44px; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); background: var(--paper); color: var(--os-navy); transition: border-color .15s var(--ease);
}
.osb .osb-week-nav:hover { border-color: var(--os-navy); }
.osb .osb-week-nav[aria-disabled="true"] { color: var(--line-strong); border-color: var(--line); cursor: default; }
.osb .osb-week:not(.is-scrollable) .osb-week-nav { display: none; }
.osb .osb-week-days {
  position: relative; flex: 1; min-width: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 8px) / 5); gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; scroll-padding-inline: 4px;
}
.osb .osb-week-days::-webkit-scrollbar { display: none; }
.osb .osb-day {
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 76px; padding: 10px 4px 8px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink-soft); line-height: 1.2;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.osb .osb-day:hover:not(:disabled) { border-color: var(--os-navy); }
.osb .osb-day-w { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.osb .osb-day-d { font-size: var(--fs-xs); color: var(--ink-soft); white-space: nowrap; }
.osb .osb-day-dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--os-green); }
.osb .osb-day[aria-pressed="true"] { border-color: var(--os-navy); background: var(--os-sky); box-shadow: inset 0 0 0 1px var(--os-navy); }
.osb .osb-day[aria-pressed="true"] .osb-day-w { color: var(--os-navy); }
.osb .osb-day.is-empty { background: var(--surface); border-color: var(--line); cursor: default; }
.osb .osb-day.is-empty .osb-day-w,
.osb .osb-day.is-empty .osb-day-d { color: var(--muted); }
.osb .osb-day.is-empty .osb-day-dot { background: transparent; }
.osb .osb-day--more { border-style: dashed; color: var(--os-green-deep); gap: 4px; }
.osb .osb-day--more .osb-day-w { color: var(--os-green-deep); font-size: var(--fs-xs); text-align: center; white-space: normal; }
.osb .osb-day--more .osb-ic { width: 16px; height: 16px; }
@container osbp (max-width: 419px) {
  /* each filter group becomes one row that scrolls sideways */
  .osb .osb-filters { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  .osb .osb-filters .osb-chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 4px; margin: -4px;
  }
  .osb .osb-filters .osb-chips::-webkit-scrollbar { display: none; }
  .osb .osb-filters .osb-chip { flex: none; }
  /* sideways scrollers run to the card edge instead of stopping at the padding */
  .osb .osb-filters .osb-chips { margin-right: -18px; padding-right: 18px; }
}
@container osbp (max-width: 399px) {
  .osb .osb-week-nav { display: none !important; }
  .osb .osb-week-days { grid-auto-columns: calc((100% - 4 * 8px) / 4.4); margin-right: -18px; padding-right: 18px; }
}

/* ---------- pick a time: the list ---------- */
.osb .osb-slot-fs { display: flex; flex-direction: column; gap: 22px; }
.osb .osb-slot-group { display: flex; flex-direction: column; gap: 8px; }
.osb .osb-slot-day {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-sans);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--ink-soft);
}
.osb .osb-slot-rel {
  display: inline-flex; padding: 1px 10px; border-radius: var(--r-pill); background: var(--os-green-tint);
  color: var(--os-green-deep); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6;
}
.osb .osb-slot {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; align-items: center; gap: 14px;
  min-height: 68px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--paper); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.osb .osb-slot:hover { border-color: color-mix(in srgb, var(--os-navy) 50%, var(--line-strong)); }
.osb .osb-slot:has(input:checked) { border-color: var(--os-navy); background: var(--os-sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--os-navy) 10%, transparent); }
.osb .osb-slot:has(input:focus-visible) { outline: 2px solid var(--os-green-deep); outline-offset: 2px; }
.osb .osb-slot-input:focus-visible,
.osb .osb-rcard-input:focus-visible { outline: none; }
.osb .osb-slot-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.osb .osb-slot-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-md); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.osb .osb-slot-meta { font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.osb .osb-tag {
  display: inline-flex; align-items: center; padding: 1px 9px; border-radius: var(--r-pill); background: var(--os-green-tint);
  color: var(--os-green-deep); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; font-variant-numeric: normal;
}
.osb .osb-tag--muted { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
:is(.osb, .oli-host) .osb-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--os-green-tint); color: var(--os-navy); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
}
:is(.osb, .oli-host) .osb-avatar--alt { background: var(--os-sand); color: var(--warm); }
.osb .osb-more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; margin-top: -10px; }
.osb .osb-more { display: flex; flex-wrap: wrap; gap: 0 22px; }
.osb .osb-more:empty { display: none; }
.osb .osb-tz { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-xs); color: var(--muted); }
.osb .osb-tz .osb-ic { width: 16px; height: 16px; }
.osb .osb-picked {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--os-green-tint); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink);
}
.osb .osb-picked .osb-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--os-green-deep); }
.osb .osb-picked-k { color: var(--ink-soft); }
.osb .osb-notice-slot:empty { display: none; }

/* loading and empty */
.osb .osb-skel { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); animation: osb-pulse 1.5s ease-in-out infinite; }
@keyframes osb-pulse { 50% { opacity: .5; } }
.osb .osb-skel--day { min-height: 76px; }
.osb .osb-week-days--skel { overflow: hidden; }
.osb .osb-skel-list { display: flex; flex-direction: column; gap: 8px; }
.osb .osb-skel--slot { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 16px; }
.osb .osb-skel-c { width: 40px; height: 40px; border-radius: 50%; background: var(--line); }
.osb .osb-skel-l { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.osb .osb-skel-l i { display: block; width: 28%; height: 10px; border-radius: 5px; background: var(--line); }
.osb .osb-skel-l i + i { width: 54%; height: 8px; }
.osb .osb-loading { gap: 16px; }
.osb .osb-skel--h { width: 55%; height: 32px; }
.osb .osb-skel--p { width: 75%; height: 16px; }
.osb .osb-skel--box { height: 168px; }
.osb .osb-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.osb .osb-empty-ic { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--os-green-deep); }
.osb .osb-empty-h { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; color: var(--ink); }
.osb .osb-empty-p { max-width: 54ch; font-size: var(--fs-sm); color: var(--ink-soft); }
.osb .osb-empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.osb .osb-empty-note { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- step actions ---------- */
.osb .osb-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.osb .osb-actions-r { display: flex; align-items: center; gap: 10px; }
@container osbp (max-width: 379px) {
  .osb .osb-actions { flex-direction: column-reverse; align-items: stretch; }
  .osb .osb-actions-r { flex-direction: column; align-items: stretch; }
  .osb .osb-actions .osb-btn { width: 100%; }
  .osb .osb-actions > span:empty { display: none; }
}

/* ---------- details summary, review ---------- */
.osb .osb-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.osb .osb-summary-t { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.osb .osb-summary-v b { font-weight: 600; color: var(--ink); }
.osb .osb-readback {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--os-sky);
}
.osb .osb-readback-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--os-green-deep); box-shadow: var(--shadow-sm); }
.osb .osb-readback-text { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 400; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.osb .osb-readback--cancel { background: var(--alert-tint); border-color: color-mix(in srgb, var(--alert) 18%, transparent); }
.osb .osb-readback--cancel .osb-readback-ic { color: var(--alert); }
.osb .osb-review-details { display: flex; flex-direction: column; gap: 6px; }
.osb .osb-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.osb .osb-dl { border: 1px solid var(--line); border-radius: var(--r-md); }
.osb .osb-dl > div { display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; }
.osb .osb-dl > div:first-child { border-top: 0; }
.osb .osb-dl dt { color: var(--muted); }
.osb .osb-dl dd { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- confirmation ---------- */
.osb .osb-done { gap: 18px; }
.osb .osb-done-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--os-green-tint); color: var(--os-green-deep); animation: osb-pop .5s var(--ease) both; }
.osb .osb-done-mark .osb-ic { width: 30px; height: 30px; stroke-width: 2.4; }
.osb .osb-done-mark--quiet { background: var(--surface); color: var(--ink-soft); }
@keyframes osb-pop { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.05); } 100% { transform: scale(1); } }
.osb .osb-visit { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.osb .osb-visit-day { font-size: var(--fs-md); font-weight: 600; color: var(--ink-soft); }
.osb .osb-visit-time { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; color: var(--os-navy); font-variant-numeric: lining-nums; }
.osb .osb-visit-facts { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.osb .osb-visit-facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-soft); }
.osb .osb-visit-facts b { font-weight: 600; color: var(--ink); }
.osb .osb-fact-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--os-green-deep); }
.osb .osb-visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.osb .osb-bring { display: flex; flex-direction: column; gap: 10px; }
.osb .osb-bring ul { display: flex; flex-direction: column; gap: 8px; }
.osb .osb-bring li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-soft); }
.osb .osb-bring .osb-ic { width: 18px; height: 18px; color: var(--os-green-deep); }
.osb .osb-done-foot { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--ink-soft); }
.osb .osb-ref-k { color: var(--muted); }
.osb .osb-ref-v { font-weight: 600; letter-spacing: .03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- returning patients ---------- */
.osb .osb-appts { display: flex; flex-direction: column; gap: 12px; }
.osb .osb-appt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-sm); }
@container osbp (min-width: 560px) {
  .osb .osb-appt { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
  .osb .osb-appt-actions { grid-column: 2; grid-row: 1 / span 2; }
}
.osb .osb-appt-day { font-weight: 600; color: var(--ink); }
.osb .osb-appt-time { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.2; color: var(--os-navy); }
.osb .osb-appt-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.osb .osb-appt-meta { font-size: var(--fs-sm); color: var(--muted); }
.osb .osb-appt-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- call bar ---------- */
.osb .osb-callbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px clamp(16px, 3.2cqi, 28px); border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
  background: var(--os-navy); color: var(--paper); font-size: var(--fs-sm); line-height: 1.45;
}
.osb .osb-callbar-t { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; }
.osb .osb-callbar-t .osb-ic { width: 18px; height: 18px; color: var(--os-green-tint); }
.osb .osb-callbar b { font-weight: 600; }
.osb .osb-callbar-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--os-navy); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease);
}
.osb .osb-callbar-btn:hover { background: var(--os-green-tint); color: var(--os-navy); }
.osb .osb-callbar-btn .osb-ic { width: 16px; height: 16px; }
.osb .osb-callbar-demo {
  flex-basis: 100%; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  font-size: var(--fs-xs); color: color-mix(in srgb, var(--paper) 82%, var(--os-navy));
}
.osb .osb-callbar .osb-tel { color: var(--paper); }
.osb .osb-callbar :focus-visible { outline-color: var(--paper); }

/* ---------- Ask Oli ---------- */
.oli-host { position: relative; min-width: 0; }
.oli-host--panel { position: sticky; top: var(--osb-sticky); }
.oli-host .oli {
  display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - var(--osb-sticky) - 24px); height: min(680px, calc(100dvh - var(--osb-sticky) - 24px));
  min-height: 460px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.oli-host .oli-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--os-navy); color: var(--paper); }
/* Oli's mark: a plain speech bubble in a soft green circle (no gradients or glows) */
.oli-host .oli-avatar {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--os-green-tint); color: var(--os-green-deep);
}
.oli-host .oli-avatar .osb-ic { width: 20px; height: 20px; stroke-width: 1.6; }
.oli-host .oli-head-t { flex: 1; min-width: 0; }
.oli-host .oli-title { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--paper); }
.oli-host .oli-subtitle { font-size: var(--fs-xs); line-height: 1.4; color: color-mix(in srgb, var(--paper) 80%, var(--os-navy)); }
.oli-host .oli-close { display: none; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); }
.oli-host .oli-close:hover { background: color-mix(in srgb, var(--paper) 12%, transparent); }
.oli-host .oli-head :focus-visible { outline-color: var(--paper); }
.oli-host .oli-log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; background: var(--surface);
}
.oli-host .oli-log:focus-visible { outline-offset: -3px; }
.oli-host .oli-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 92%; }
.oli-host .oli-msg--me { align-self: flex-end; align-items: flex-end; }
.oli-host .oli-bubble { padding: 10px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.oli-host .oli-msg--oli .oli-bubble { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.oli-host .oli-msg--me .oli-bubble { background: var(--os-navy); border-bottom-right-radius: 6px; color: var(--paper); }
.oli-host .oli-msg--system .oli-bubble { background: var(--alert-tint); border-color: color-mix(in srgb, var(--alert) 20%, transparent); }
.oli-host .oli-bubble a { color: inherit; font-weight: 600; }
.oli-host .oli-dots { display: inline-flex; gap: 5px; padding: 14px 16px; }
.oli-host .oli-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: oli-dot 1.2s ease-in-out infinite both; }
.oli-host .oli-dots i:nth-of-type(2) { animation-delay: .15s; }
.oli-host .oli-dots i:nth-of-type(3) { animation-delay: .3s; }
@keyframes oli-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.oli-host .oli-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.oli-host .oli-chip {
  min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--paper); color: var(--os-navy); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; text-align: left;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.oli-host .oli-chip:hover { background: var(--os-green-tint); border-color: var(--os-navy); }

.oli-host .oli-card { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: min(250px, 100%); padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.oli-host .oli-slot {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 56px; padding: 10px 42px 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); text-align: left; text-decoration: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.oli-host .oli-slot:hover { border-color: var(--os-navy); color: var(--ink); }
.oli-host .oli-slot[aria-pressed="true"] { border-color: var(--os-navy); background: var(--os-sky); }
.oli-host .oli-slot-when { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.oli-host .oli-slot-who { font-size: var(--fs-xs); color: var(--muted); }
.oli-host .oli-slot-check {
  position: absolute; right: 12px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--os-navy); color: var(--paper); opacity: 0; transform: translateY(-50%); transition: opacity .15s var(--ease);
}
.oli-host .oli-slot-check .osb-ic { width: 12px; height: 12px; stroke-width: 3; }
.oli-host .oli-slot[aria-pressed="true"] .oli-slot-check { opacity: 1; }
.oli-host .oli-slot--link .oli-slot-check { opacity: 1; background: transparent; color: var(--os-green-deep); }
.oli-host .oli-slot--link .oli-slot-check .osb-ic { width: 18px; height: 18px; stroke-width: 2; }
.oli-host .oli-card-status { font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-soft); }
.oli-host .oli-card-status:empty { display: none; }
.oli-host .oli-card-status.is-ok { font-weight: 600; color: var(--os-green-deep); }
.oli-host .oli-ref { white-space: nowrap; }
.oli-host .oli-readback-text { padding: 4px 4px 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); }
.oli-host .oli-readback .osb-btn { align-self: flex-start; }
.oli-host .oli-call { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
.oli-host .oli-call.is-urgent { background: var(--alert-tint); border-color: color-mix(in srgb, var(--alert) 25%, transparent); }
.oli-host .oli-call-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--os-green-deep); }
.oli-host .oli-call.is-urgent .oli-call-ic { background: var(--paper); color: var(--alert); }
.oli-host .oli-call-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.oli-host .oli-call-t { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.oli-host .oli-call.is-urgent { align-items: flex-start; padding: 16px; border: 1.5px solid var(--alert); }
.oli-host .oli-call.is-urgent .oli-call-ic { width: 40px; height: 40px; }
.oli-host .oli-call.is-urgent .oli-call-body { flex: 1; min-width: 0; }
.oli-host .oli-call.is-urgent .oli-call-t { font-size: var(--fs-md); font-weight: 700; color: var(--alert); }
.oli-host .oli-call-s { font-size: var(--fs-sm); line-height: 1.45; color: var(--ink); }
.oli-host .oli-call-btn { align-self: stretch; margin-top: 2px; font-size: var(--fs-md); }

.oli-host .oli-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--line); background: var(--paper); }
.oli-host .oli-input {
  flex: 1; min-width: 0; min-height: 46px; max-height: 132px; padding: 11px 16px; resize: none;
  border: 1.5px solid var(--osb-field); border-radius: 23px; background: var(--paper); color: var(--ink);
  font-size: var(--fs-sm); line-height: 1.4;
}
.oli-host .oli-input::placeholder { color: var(--muted); opacity: 1; }
.oli-host .oli-input:focus,
.oli-host .oli-input:focus-visible { outline: none; border-color: var(--os-green-deep); box-shadow: var(--focus); }
.oli-host .oli-send {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--os-green-deep); color: var(--paper); transition: background-color .18s var(--ease);
}
.oli-host .oli-send:hover { background: color-mix(in srgb, var(--os-green-deep) 82%, var(--ink)); }
.oli-host .oli-send[aria-disabled="true"] { opacity: .55; cursor: progress; }
.oli-host .oli-fine { padding: 0 16px 12px; background: var(--paper); font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.oli-host .oli-fine a { color: inherit; }

/* floating "Ask Oli" button: every page in launcher mode, and small screens on the booking page.
   The label is set large and bold so white on the logo green meets contrast for large text. */
.oli-host .oli-fab {
  position: fixed; z-index: 60; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 10px; border: 0; border-radius: var(--r-pill);
  background: var(--os-green); color: var(--paper); font-size: var(--fs-lg); font-weight: 700; line-height: 1; box-shadow: var(--shadow-md);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.oli-host .oli-fab:hover { background: var(--os-green-deep); transform: translateY(-1px); }
.oli-host .oli-fab:focus-visible { outline: 3px solid var(--os-navy); outline-offset: 3px; }
.oli-host .oli-fab { padding-left: 10px; }
.oli-host .oli-backdrop { display: none; }
.oli-host--launcher { position: static; }
.oli-host--launcher .oli-fab { display: inline-flex; }
.oli-host.is-open .oli-fab { visibility: hidden; }
.oli-host.is-tucked .oli-fab { opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; }
.oli-host .oli-fab { transition: background-color .2s var(--ease), transform .25s var(--ease), opacity .2s var(--ease); }

/* desktop launcher: a 380px card anchored bottom right, below the sticky header */
@media (min-width: 1024px) {
  .oli-host--launcher .oli {
    position: fixed; z-index: 90; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: 380px; min-height: 0; height: min(640px, calc(100vh - 72px - 48px)); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .oli-host--launcher.is-open .oli { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .oli-host--launcher .oli-close { display: grid; }
}

/* small screens: a bottom sheet (both modes) */
@media (max-width: 1023.98px) {
  .oli-host--panel { position: static; height: 72px; } /* keeps the floating button clear of the call bar */
  .oli-host .oli-fab { display: inline-flex; }
  .oli-host .oli-backdrop {
    position: fixed; inset: 0; z-index: 85; display: block; background: color-mix(in srgb, var(--ink) 45%, transparent);
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .oli-host.is-open .oli-backdrop { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
  .oli-host .oli {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; width: 100%; max-width: 640px; margin-inline: auto;
    min-height: 0; height: 86vh; height: min(86dvh, 760px); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-md);
    visibility: hidden; transform: translateY(104%); transition: transform .32s var(--ease), visibility 0s linear .32s;
  }
  .oli-host.is-open .oli { visibility: visible; transform: none; transition: transform .32s var(--ease); }
  .oli-host .oli-head { padding-top: 20px; }
  .oli-host .oli-head::before {
    content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px;
    background: color-mix(in srgb, var(--paper) 35%, transparent);
  }
  .oli-host .oli-close { display: grid; }
  .oli-host .oli-input { font-size: var(--fs-md); } /* 17px: no zoom-on-focus on phones */
  .oli-host .oli-fine { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
html.oli-lock, html.oli-lock body { overflow: hidden; }

/* ---------- motion and contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .osb *, .osb *::before, .osb *::after,
  .oli-host *, .oli-host *::before, .oli-host *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .osb .osb-chip input:checked + span,
  .osb .osb-slot:has(input:checked),
  .osb .osb-rcard:has(input:checked),
  .osb .osb-day[aria-pressed="true"],
  .osb .osb-lang-btn[aria-pressed="true"],
  .oli-host .oli-slot[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: 1px; }
  .osb .osb-radio::after, .osb .is-now .osb-rail-dot::after, .osb .osb-day-dot { background: CanvasText; }
}

/* Getting here: directions to the booked office */
.osb .osb-here li { align-items: flex-start; line-height: 1.5; }
.osb .osb-here li .osb-ic { margin-top: 2px; flex: none; }
.osb .osb-here-note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }

/* The meet and greet's day choices: four days in a row, two on a phone. */
.osb .osb-chips--days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.osb .osb-chips--days .osb-chip span { justify-content: center; text-align: center; width: 100%; }
@media (max-width: 560px) { .osb .osb-chips--days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
