.bd-page .bk-wrap{ max-width:640px; }
.bd-top{ display:flex; align-items:center; gap:12px; min-height:40px; margin:0 0 16px; }
.bd-back{ display:grid; place-items:center; flex:0 0 auto; width:38px; height:38px; padding:0; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; }
.bd-back svg{ width:18px; height:18px; }
.bd-title{ margin:0; font-family:var(--font-display); font-size:30px; font-weight:600; line-height:1.15; color:var(--ink); }
.bd-title:focus{ outline:none; }
.bd-h1{ margin:4px 0 6px; font-family:var(--font-display); font-size:34px; font-weight:600; line-height:1.15; color:var(--ink); }
.bd-h1:focus{ outline:none; }
.bd-text{ margin:0 0 16px; font-size:15px; line-height:1.55; color:var(--ink-soft); }
.bd-center{ text-align:center; }
.bd-chip{ display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:11px 14px; border-radius:12px; background:var(--accent-wash); font-size:15px; line-height:1.4; color:var(--ink); }

.bd-list{ display:grid; gap:8px; margin:0 0 14px; }
.bd-reason{ display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:8px 16px 8px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font:inherit; text-align:left; cursor:pointer; transition:border-color .15s ease, background-color .15s ease; }
.bd-reason:hover{ border-color:var(--accent); }
.bd-reason-ic{ flex:0 0 auto; width:40px; height:40px; object-fit:contain; }
.bd-reason-tx{ flex:1 1 auto; min-width:0; font-size:16px; font-weight:600; line-height:1.3; }
.bd-chev{ flex:0 0 auto; width:8px; height:8px; margin-right:4px; border-top:2px solid var(--muted); border-right:2px solid var(--muted); transform:rotate(45deg); opacity:.7; }
.bd-picked{ margin:0 0 14px; }
.bd-chev-back{ margin:0 0 0 4px; transform:rotate(-135deg); }

.bd-seg{ display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:0 0 14px; padding:4px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.bd-seg-btn{ min-height:42px; padding:0 10px; border:0; border-radius:10px; background:none; font:inherit; font-size:15px; font-weight:500; color:var(--ink-soft); cursor:pointer; }
.bd-seg-btn.is-on{ background:var(--accent); color:#fff; font-weight:600; }

.bd-ava{ flex:0 0 auto; border-radius:50%; object-fit:cover; background:var(--surface-2); }
.bd-ava-sm{ width:32px; height:32px; }
.bd-ava-lg{ width:56px; height:56px; }
.bd-ava-empty{ display:grid; place-items:center; font-weight:600; color:var(--muted); }

.bd-doc{ display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.bd-doc-head{ display:flex; align-items:flex-start; gap:12px; }
.bd-doc-tx{ display:flex; flex:1 1 auto; flex-direction:column; gap:3px; min-width:0; }
.bd-doc-tx b{ font-size:16.5px; font-weight:600; line-height:1.3; }
.bd-doc-tx span{ font-size:13.5px; line-height:1.4; color:var(--ink-soft); }
.bd-doc-tx small{ font-size:13.5px; line-height:1.4; color:var(--muted); }
.bd-card.bd-doc-card{ display:flex; align-items:center; gap:12px; margin:0 0 16px; }

.bd-days{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; margin:0 0 14px; }
.bd-day{ display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; padding:9px 4px 7px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font:inherit; cursor:pointer; }
.bd-day small{ font-size:12.5px; line-height:1.2; color:var(--muted); }
.bd-day b{ font-size:19px; font-weight:600; line-height:1.2; }
.bd-day.is-on{ border-color:var(--accent); background:var(--accent); color:#fff; }
.bd-day.is-on small{ color:rgba(255,255,255,.85); }
.bd-day:disabled{ opacity:.4; cursor:default; }
.bd-day-more{ justify-content:center; }
.bd-day-more b{ font-size:24px; line-height:1; letter-spacing:1px; color:var(--ink-soft); }
.bd-day-more.is-open{ border-color:var(--accent); background:var(--accent-wash); }
.bd-days-near{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 14px; }
.bd-day.bd-day-near{ padding:10px 8px; }
.bd-day-near b{ font-size:17px; }
.bd-cal{ margin:0 0 16px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.bd-cal-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 8px; }
.bd-cal-title{ margin:0; font-size:16px; font-weight:600; color:var(--ink); }
.bd-cal-nav{ display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; }
.bd-cal-nav svg{ width:16px; height:16px; }
.bd-cal-nav:disabled{ opacity:.35; cursor:default; }
.bd-cal-grid{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px; }
.bd-cal-wd{ padding:4px 0; font-size:12.5px; text-align:center; color:var(--muted); }
.bd-cal-day{ height:44px; padding:0; border:1px solid transparent; border-radius:10px; background:var(--accent-wash); font:inherit; font-size:15.5px; font-weight:600; color:var(--ink); cursor:pointer; }
.bd-cal-day.is-on{ background:var(--accent); color:#fff; }
.bd-cal-day:disabled{ background:none; font-weight:400; color:var(--muted); opacity:.5; cursor:default; }
.bd-who{ display:flex; align-items:center; gap:10px; margin:-4px 0 16px; font-size:15px; color:var(--ink-soft); }
.bd-times{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; margin:0 0 16px; }
.bd-time{ min-height:46px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font:inherit; font-size:16px; font-weight:500; cursor:pointer; }
.bd-time.is-on{ border-color:var(--accent); background:var(--accent); color:#fff; font-weight:600; }

.bd-card{ display:grid; gap:6px; margin:0 0 14px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; font-size:15px; line-height:1.45; color:var(--ink-soft); }
.bd-sum-title{ font-size:17px; font-weight:600; color:var(--ink); }

.bd-actions{ display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 0; }
.bd-actions .btn{ min-height:52px; }
#bdRequest .bd-actions{ margin-top:24px; }
.bd-wide{ flex:1 1 100%; width:100%; white-space:normal; }
.bd-actions-split .btn{ flex:1 1 200px; }
.bd-actions-stack{ flex-direction:column; align-items:stretch; margin:0 0 12px; }

.bd-empty{ padding:18px 16px; border:1px dashed var(--line); border-radius:14px; background:#fff; }
.bd-empty-title{ margin:0 0 6px; font-size:17px; font-weight:600; color:var(--ink); }
.bd-stub{ margin:0 0 14px; padding:16px; border-radius:14px; background:var(--surface-2); }
.bd-stub-host{ margin:0 0 8px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:14px; color:var(--ink); }
.bd-done-ic{ margin-top:8px; }
.bd-done-ic svg{ width:30px; height:30px; }
.bd-loading{ display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:18px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; font-size:15px; color:var(--ink-soft); }
.bd-spinner{ flex:0 0 auto; width:22px; height:22px; border:3px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:bd-spin .8s linear infinite; }
@keyframes bd-spin{ to{ transform:rotate(360deg); } }
.bd-notice{ display:grid; gap:2px; margin:0 0 14px; padding:12px 14px; border:1px solid #E7C3B4; border-radius:12px; background:#fcefea; font-size:14.5px; line-height:1.45; color:var(--ink); }
.bd-notice b{ font-weight:600; }
.bd-return{ padding:12px 0 8px; }
.bd-return .bd-card{ margin-top:6px; }

.bd-sticky{ position:sticky; bottom:0; z-index:5; margin:6px -8px 0; padding:12px 8px calc(12px + env(safe-area-inset-bottom, 0px)); background:#fff; box-shadow:0 -1px 0 var(--line-soft), 0 -10px 18px -12px rgba(0,0,0,.18); }
.bd-sticky .btn{ min-height:52px; }
.bd-sticky.is-entering{ animation:bd-rise .22s ease-out; }
@keyframes bd-rise{ from{ opacity:0; transform:translateY(100%); } to{ opacity:1; transform:none; } }
.bd .btn:disabled{ opacity:.35; cursor:not-allowed; }
.bd [hidden]{ display:none; }
.bd-back:focus-visible, .bd button:focus-visible, .bd a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

@media (prefers-reduced-motion:reduce){
  .bd-sticky.is-entering{ animation:none; }
  .bd-spinner{ animation-duration:2.4s; }
}

:is(.is-bare:has(.bk),.app-booking) #bdChild{ height:48px; padding-top:0; padding-bottom:0; }
.app-booking .bd-top{ min-height:38px; margin:0 0 14px; padding-right:0; }
.app-booking .bd-title{ font-size:24px; }
.app-booking .bd-h1{ margin-top:0; font-size:26px; }

@media (max-width:760px){
  .bd-sticky{ margin-inline:calc(50% - 50vw); padding-inline:calc(50vw - 50%); }
  .bd-top{ padding-right:88px; }
  .bd-h1{ font-size:26px; }
  .bd-title{ font-size:24px; }
  .bd-times{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

.fb-chief{ display:flex; align-items:flex-start; gap:14px; margin:0 0 20px; padding:16px; border-radius:14px; background:var(--accent-wash); }
.fb-chief-photo{ flex:0 0 auto; width:64px; height:64px; border-radius:50%; object-fit:cover; background:var(--surface-2); }
.fb-chief figcaption{ min-width:0; }
.fb-chief-quote{ margin:2px 0 8px; font-size:16.5px; font-weight:600; line-height:1.4; color:var(--ink); }
.fb-chief-name{ display:flex; flex-wrap:wrap; gap:2px 8px; margin:0; font-size:14px; line-height:1.4; color:var(--ink-soft); }
.fb-chief-name b{ font-weight:600; color:var(--ink); }
.bk-fields.fb-fields{ grid-template-columns:minmax(0, 1fr); }
.fb-fields textarea{ display:block; min-height:96px; resize:vertical; line-height:1.5; }
.fb-hint{ margin:7px 0 0; font-size:13px; line-height:1.4; color:var(--muted); }
.fb-file{ position:relative; min-width:0; }
.fb-file-title{ display:block; margin-bottom:7px; font-size:13px; font-weight:600; color:var(--ink-soft); }
.field > .fb-file-input{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); border:0; white-space:nowrap; }
.fb-file-pick{ display:flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:12px 16px; border:1.5px dashed rgba(42,38,34,.28); border-radius:12px; background:#fff; color:var(--ink); font-size:15px; font-weight:600; cursor:pointer; transition:border-color .15s ease, background-color .15s ease; }
.fb-file-pick:hover{ border-color:var(--accent); background:var(--accent-wash); }
.fb-file-pick svg{ flex:0 0 auto; width:20px; height:20px; color:var(--accent-deep); }
.field > .fb-file-input:focus-visible + .fb-file-pick{ outline:2px solid var(--accent); outline-offset:2px; }
.field.is-invalid .fb-file-pick{ border-color:#B42318; }
.fb-file-list{ display:grid; grid-template-columns:minmax(0, 1fr); gap:8px; margin:0 0 8px; padding:0; list-style:none; }
.fb-file-chosen{ display:flex; min-width:0; align-items:center; gap:10px; min-height:52px; padding:6px 6px 6px 14px; border:1px solid var(--line); border-radius:12px; background:var(--accent-wash); }
.fb-file-chosen svg{ flex:0 0 auto; width:20px; height:20px; color:var(--accent-deep); }
.fb-file-name{ flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; color:var(--ink); }
.fb-file-size{ flex:0 0 auto; margin-left:-4px; font-size:14.5px; color:var(--ink-soft); white-space:nowrap; }
.fb-file-remove{ flex:0 0 auto; margin-left:auto; min-height:40px; padding:0 12px; border:0; border-radius:10px; background:none; color:var(--accent-deep); font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; }
.fb-file-remove:hover{ background:rgba(42,38,34,.06); }
.fb .bk-consent a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.fb .bk-consent a:hover{ color:var(--accent-deep); }
.fb .bd-actions{ margin-top:22px; }
.fb-done{ padding-top:24px; }

@media (max-width:760px){
  :is(.is-bare:has(.bk),.app-booking) :is(#fbName, #fbPhone, #fbEmail, #fbCode){ height:48px; padding-top:0; padding-bottom:0; }
}
