/* ==========================================================================
   Booking pages — staff editor + public scheduler (uses app.css tokens)
   ========================================================================== */

/* ---------- Staff ---------- */
.bk-page-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.bk-page-grid .card + .card { margin-top: 0; }
.bk-page-card { display: flex; flex-direction: column; border-top: 4px solid var(--primary); }
.bk-page-card .card-body { flex: 1; }
.bk-page-card.is-off { border-top-color: var(--border-strong); opacity: .8; }
.bk-type-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.bk-link { display: flex; gap: 8px; align-items: center; }
.bk-link .input { flex: 1; min-width: 0; font-size: 13px; padding: 7px 10px; background: var(--surface-2); color: var(--text-2); }
.bk-avatars { display: inline-flex; }
.bk-avatars .avatar { border: 2px solid var(--surface); margin-left: -6px; }
.bk-embed { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; min-height: 84px !important; background: var(--surface-2) !important; }
.bk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.bk-form-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.bk-days { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.bk-day-row { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.bk-day-row:last-child { border-bottom: 0; }
.bk-day-toggle { display: flex; align-items: center; gap: 10px; width: 140px; font-weight: 600; margin: 0; cursor: pointer; }
.bk-day-toggle input { width: 16px; height: 16px; accent-color: var(--primary); }
.bk-day-times { display: flex; align-items: center; gap: 8px; }
.bk-day-times input { padding: 7px 10px; font: inherit; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); width: 130px; }
.bk-day-row.is-off .bk-day-times { opacity: .35; pointer-events: none; }
.bk-day-err { width: 100%; margin: 0; }
.bk-members { display: flex; flex-direction: column; gap: 6px; }
.bk-member { display: flex !important; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 500 !important; margin: 0 !important; }
.bk-member:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.bk-member input { accent-color: var(--primary); }
.bk-switch { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.bk-switch input { width: 16px; height: 16px; accent-color: var(--green); }
.bk-day-head { font-weight: 700; margin: 8px 0 8px; display: flex; gap: 8px; align-items: baseline; }
.bk-day-head span { color: var(--muted); font-weight: 500; font-size: 13px; }
.bk-table td { padding: 12px 16px; }
.bk-time { width: 96px; white-space: nowrap; }
.bk-answers { display: flex; flex-direction: column; margin-top: 2px; }
.bk-actions { display: inline-flex; gap: 6px; }
@media (max-width: 1100px) { .bk-form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .bk-form-grid { grid-template-columns: 1fr; }
  .bk-actions span { display: none; }
}

/* ---------- Staff: share row, editor extras, upcoming list ---------- */
.bk-share { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bk-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.bk-presets span { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.bk-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bk-loc { display: flex !important; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 600 !important; margin: 0 !important; }
.bk-loc:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.bk-loc input { accent-color: var(--accent); }
.bk-hosts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bk-hosts li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.bk-hosts li > span:first-child { flex: 1; min-width: 120px; font-weight: 600; }
.bk-up { list-style: none; margin: 0; padding: 0; }
.bk-up li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bk-up li:last-child { border-bottom: 0; }
.bk-up-when { width: 92px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.bk-up-when b { display: block; color: var(--text); font-size: 14px; }
.bk-up-main { flex: 1; min-width: 0; }
.bk-up-main small { display: block; color: var(--muted); font-size: 12px; }
.bk-connect { display: flex; flex-direction: column; gap: 10px; }
.bk-connect-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.bk-connect-row > div { flex: 1; min-width: 140px; }
.bk-connect-row small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Staff: calendar (month / week; agenda list on phones) ---------- */
.bk-cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bk-cal-title { font-size: 18px; margin: 0 0 0 6px; }
.bk-cal-card { padding: 0; overflow: hidden; }
.bk-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bk-cal-head-row span { padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bk-cal-cell { min-height: 112px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-cal-row .bk-cal-cell:last-child { border-right: 0; }
.bk-cal-card.is-week .bk-cal-cell { min-height: 360px; }
.bk-cal-cell.is-out { background: var(--surface-2); }
.bk-cal-cell.is-out .bk-cal-date { color: var(--muted); }
.bk-cal-date { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--text-2); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.bk-cal-cell.is-today .bk-cal-date { background: var(--accent); color: var(--on-accent); }
.bk-ev { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; font-size: 12px; background: var(--accent-soft); color: var(--accent); border-left: 3px solid var(--accent); min-width: 0; white-space: nowrap; overflow: hidden; }
.bk-ev span { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.bk-ev b { font-weight: 700; }
.bk-ev.is-completed { background: var(--ok-soft); color: var(--ok); border-left-color: var(--ok); }
.bk-ev.is-no_show { background: var(--bad-soft); color: var(--bad); border-left-color: var(--bad); }
.bk-ev.is-cancelled { background: var(--gray-100); color: var(--muted); border-left-color: var(--border-strong); text-decoration: line-through; }
.bk-ev:hover { filter: brightness(.97); }
.bk-ev-more { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.bk-agenda { display: none; padding: 12px 16px; }
.bk-agenda-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.bk-agenda-time { width: 72px; flex-shrink: 0; font-weight: 700; font-size: 14px; }
.bk-agenda-main { flex: 1; min-width: 0; }
.bk-agenda-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-agenda-main small { color: var(--muted); font-size: 12px; }
.bk-agenda-item.is-cancelled b { text-decoration: line-through; color: var(--muted); }
.bk-ev-actions { flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 760px) {
  .bk-cal-board { display: none; }
  .bk-agenda { display: block; }
}


/* ---------- Public scheduler (Calendly-style: info left, calendar + times right; tokens only, light + dark) ---------- */
.bk-body { background: radial-gradient(1200px 500px at 50% -120px, var(--accent-soft), transparent 70%), var(--bg); color: var(--text); min-height: 100vh; }
.bk-body.bk-embed { background: transparent; }
.bk-public { padding: 40px 16px 24px; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.bk-embed .bk-public { padding: 8px; min-height: 0; }
.bk-shell { width: 100%; max-width: 1060px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 320px minmax(0, 1fr); overflow: hidden; transition: opacity .15s; }
.bk-shell.is-loading { opacity: .6; pointer-events: none; }
.bk-info { padding: 32px 28px; border-right: 1px solid var(--border); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.bk-org { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.bk-org-logo { height: 36px; width: auto; max-width: 160px; border-radius: 8px; object-fit: contain; }
.bk-org-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.bk-org-name { color: var(--muted); font-weight: 600; }
.bk-host { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 10px; }
.bk-host b { color: var(--text); }
.bk-title { font-size: 26px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; color: var(--text); }
.bk-meta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--text-2); font-weight: 600; }
.bk-meta li { display: flex; align-items: flex-start; gap: 10px; word-break: break-word; }
.bk-meta li > span { display: flex; flex-direction: column; min-width: 0; }
.bk-meta small { font-weight: 500; color: var(--muted); font-size: 13px; }
.bk-meta svg { color: var(--muted); margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; }
.bk-desc { color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; }
.bk-current { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); }
.bk-current-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bk-strike { text-decoration: line-through; }
.bk-main { padding: 28px 32px 32px; min-width: 0; }
/* numbered steps: 1 Pick a day · 2 Pick a time · 3 Your details */
.bk-step { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1.3; margin: 0 0 14px; color: var(--text); }
.bk-step:focus { outline: none; }
.bk-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 14px; font-weight: 700; background: var(--accent); color: var(--on-accent); }
.bk-picker { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bk-cal-head h3 { font-size: 17px; margin: 0; color: var(--text); }
.icon-btn.is-disabled { opacity: .3; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.bk-cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 0; }
.bk-day { aspect-ratio: 1; max-height: 52px; min-height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; color: var(--muted); margin: 0 auto; width: 100%; max-width: 52px; position: relative; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bk-day.is-today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.bk-day.is-open { background: var(--accent-soft); color: var(--accent); font-weight: 700; transition: background .15s; }
@media (hover: hover) { .bk-day.is-open:hover { background: var(--accent-line); } }
.bk-day.is-selected { background: var(--accent) !important; color: var(--on-accent) !important; }
.bk-day:focus-visible, .bk-slot:focus-visible, .bk-where-opt:focus-within { outline: 3px solid var(--ring); outline-offset: 2px; }
.bk-tz { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.bk-tz label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--text-2); }
.bk-tz .select { width: auto; flex: 1; min-width: 0; max-width: 100%; min-height: 40px; padding: 8px 12px; font-size: 14px; }
.bk-slots-day { font-weight: 700; color: var(--text); margin: 0 0 10px; min-height: 1.5em; }
.bk-day.is-out { color: var(--border-strong); }
/* The times box is as tall as the month's busiest day (--n / --r3 / --r4 from the server; 48px buttons, 8px
   gaps), so a day with fewer times never makes the page shorter or move. */
.bk-slot-box { min-height: min(400px, calc(var(--n, 1) * 56px - 8px)); }
.bk-slot-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.bk-slot { display: flex; align-items: center; justify-content: center; height: 48px; flex-shrink: 0; padding: 0 8px; border: 1px solid var(--accent-line); border-radius: var(--radius); color: var(--accent); font-weight: 700; background: var(--surface); transition: background .15s, color .15s, border-color .15s; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.bk-slot:active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .bk-slot:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.bk-empty { text-align: center; color: var(--muted); padding: 24px 8px; }
/* another time zone on this phone: times stay hidden (not removed, so nothing moves) until they're redrawn */
.bk-tz-wait .bk-picker { visibility: hidden; }
.bk-empty [data-lucide], .bk-empty svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 8px; }
.bk-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; margin: -10px 0 4px; color: var(--accent); }
.bk-picked { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-lg); background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--text); margin: 20px 0 12px; }
.bk-picked [data-lucide], .bk-picked svg { color: var(--accent); flex-shrink: 0; }
.bk-picked span { display: block; color: var(--muted); font-size: 14px; }
.bk-form { max-width: 520px; }
.bk-form .form-group input, .bk-form .form-group select, .bk-form .form-group textarea { font-size: 16px; } /* no iOS zoom */
.bk-req { color: var(--bad); }
.bk-where { border: 0; padding: 0; margin: 0 0 16px; }
.bk-where legend { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.bk-where-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bk-where-opt { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px; min-height: 56px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); margin: 0; font-weight: 500; }
.bk-where-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.bk-where-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-where-opt b { display: block; color: var(--text); }
.bk-where-opt small { display: block; color: var(--muted); font-size: 12px; }
.bk-where-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.bk-where-icon [data-lucide], .bk-where-icon svg { width: 16px; height: 16px; }
.bk-fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.bk-footer { margin-top: 20px; font-size: 12px; color: var(--muted); }
.bk-footer a { color: var(--text-2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bk-footer img { width: 16px; height: 16px; }

/* confirmation / manage */
.bk-card-narrow { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 32px; color: var(--text); }
.bk-done-head { text-align: center; margin-bottom: 24px; }
.bk-done-head h1 { font-size: 26px; margin: 12px 0 6px; }
.bk-done-head p { color: var(--muted); margin: 4px 0; }
.bk-sent { font-size: 14px; }
.bk-done-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 8px var(--ok-soft); }
.bk-done-icon [data-lucide], .bk-done-icon svg { width: 30px; height: 30px; }
.bk-done-head.is-muted .bk-done-icon { background: var(--gray-100); color: var(--muted); box-shadow: none; }
.bk-summary { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px 4px; background: var(--surface-2); }
.bk-summary-title { font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.bk-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bk-actions-row .btn { flex: 1; }
.bk-change { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.bk-change > a, .bk-cancel summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.bk-cancel { flex: 1; min-width: 200px; }
.bk-cancel summary { color: var(--bad); list-style: none; }
.bk-cancel summary::-webkit-details-marker { display: none; }
.bk-cancel form { margin-top: 12px; }
.bk-keep { margin-top: 20px; display: flex; gap: 10px; font-size: 13px; color: var(--muted); background: var(--gray-50); border-radius: var(--radius); padding: 12px; }
.bk-keep > div { min-width: 0; flex: 1; }
.bk-keep .bk-link { margin-top: 6px; }

@media (max-width: 900px) {
  .bk-shell { grid-template-columns: 1fr; }
  .bk-info { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 20px; }
  .bk-title { font-size: 22px; margin-bottom: 12px; }
  .bk-meta { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
  .bk-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bk-main { padding: 20px; }
  .bk-picker { grid-template-columns: 1fr; gap: 20px; }
  .bk-slot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; overflow: visible; padding: 0; }
  .bk-slot-box { min-height: calc(var(--r4, 1) * 56px - 8px); }
}
@media (max-width: 560px) {
  .bk-public { padding: 12px 8px; }
  .bk-main { padding: 18px 16px 20px; }
  .bk-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-slot-box { min-height: calc(var(--r3, 1) * 56px - 8px); }
  .bk-org { margin-bottom: 12px; }
  .bk-org-logo, .bk-org-mark { height: 30px; }
  .bk-org-mark { width: 30px; }
  .bk-title { font-size: 20px; margin-bottom: 10px; }
  .bk-info { padding: 18px 16px; }
  .bk-card-narrow { padding: 22px 16px; }
  .bk-actions-row .btn { flex-basis: 100%; }
  .bk-cal-grid { gap: 2px; }
  .bk-day { min-height: 38px; }
  .bk-where-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-where-opt { padding: 10px; gap: 8px; align-items: center; }
  .bk-where-opt small { display: none; }
  .bk-where-opt small:has(a) { display: block; }
}
@media (prefers-reduced-motion: reduce) { .bk-day.is-open, .bk-slot, .bk-shell { transition: none; } }
/* ---------- Public scheduler, 17 Nov 2026: made for a person who has never booked anything online ----------
   The chosen time sits on top of step 3 with its own "change" link; the ways to meet are big buttons with nothing
   to tap inside them but the button itself (no map link: it used to take people away from the form); the optional
   email is folded away on a Bangla page; the long description opens with a button on a phone. */
.bk-view[data-bk-view="details"] .bk-picked { margin: 0 0 18px; align-items: center; }
.bk-picked > div { flex: 1; min-width: 0; }
.bk-picked b { display: block; font-size: 17px; line-height: 1.35; }
.bk-picked .bk-picked-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.bk-picked .bk-back { margin: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); font-size: 14px; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.bk-where legend { font-size: 15px; }
.bk-where-opt { align-items: center; min-height: 64px; padding: 12px 14px; }
.bk-where-text { flex: 1; min-width: 0; }
.bk-where-opt small { font-size: 13px; line-height: 1.4; margin-top: 2px; }
.bk-where-tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--border-strong); color: transparent; }
.bk-where-opt:has(input:checked) .bk-where-tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-form .form-group label { font-size: 15px; }
.bk-form .form-group input { min-height: 50px; }
.bk-extra { margin: 0 0 16px; }
.bk-extra summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.bk-extra[open] summary { margin-bottom: 6px; }
.bk-submit { min-height: 54px; font-size: 17px; margin-top: 6px; }
.bk-more { display: none; margin-top: 6px; padding: 0; min-height: 36px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bk-slots-day { font-weight: 700; color: var(--text); }
@media (max-width: 900px) {
  .bk-more:not([hidden]) { display: inline-flex; align-items: center; }
  .bk-desc.is-open { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
}
@media (max-width: 560px) {
  .bk-where-grid { grid-template-columns: 1fr; }
  .bk-where-opt { padding: 12px 14px; gap: 12px; }
  .bk-where-opt small { display: block; }
  .bk-slot { height: 52px; font-size: 15px; }
  .bk-slot-box { min-height: calc(var(--r3, 1) * 60px - 8px); }
  .bk-day { min-height: 42px; font-size: 16px; }
  .bk-step { font-size: 19px; }
  .bk-picked { flex-wrap: wrap; }
}


.bk-ico { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }
.bk-ico.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* meeting type at a glance: Office visit / Google Meet / Zoom / Phone call */
.bk-kind { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.bk-kind .icon-sm { width: 14px; height: 14px; }
.bk-kind-row { margin: 3px 0 2px; }
.bk-up-main .bk-kind, .bk-agenda-main .bk-kind { align-self: flex-start; margin: 2px 0; }

/* Text messages (SMS) card on a booking page (17 Nov 2026) */
#sms .bk-switch { margin-bottom: 10px; flex-wrap: wrap; }
.bk-sms-wallet { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.bk-sms-wallet.is-low { background: var(--warn-soft); color: var(--warn); }
#sms code { font-size: 12px; padding: 1px 4px; border-radius: 4px; background: var(--surface-2); }
.sms-block { padding: 12px 0; border-top: 1px solid var(--border); }
.sms-block:first-of-type { border-top: 0; padding-top: 4px; }
.sms-block-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sms-rules { display: flex; flex-direction: column; gap: 10px; }
.sms-rule { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.sms-rule-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sms-rule-when select, .sms-rule-when input[type=number], .sms-rule-when input[type=time] { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.sms-rule-when input[type=number] { width: 72px; }
.sms-rule-part { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sms-rule-part[hidden] { display: none; }
.sms-rule-on { margin: 0; font-size: 13px; }
.sms-rule-remove { margin-left: auto; }
.sms-rule textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); resize: vertical; }
.sms-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sms-meter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.sms-meter:empty { display: none; }
.sms-meter b { padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.sms-meter.is-warn b { background: var(--warn-soft); color: var(--warn); }
.sms-meter.is-high b { background: var(--bad-soft); color: var(--bad); }
