/* The booking panel: a 420px side panel on desktop, a full-height sheet on phones. Lives over the page. */
body.panel-open { overflow: hidden; }
.pnl-backdrop { position: fixed; inset: 0; background: rgba(20,21,23,.45); z-index: 1100; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pnl { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); z-index: 1101; display: flex; flex-direction: column; animation: pnl-in .22s ease-out both; }
/* Slide only, no fade: a capture taken mid-animation still looks whole. */
@keyframes pnl-in { from { transform: translateX(24px); } to { transform: none; } }
@keyframes pnl-up { from { transform: translateY(24px); } to { transform: none; } }
@media (max-width: 767px) {
  .pnl { left: 0; width: auto; top: 0; border-radius: 0; animation-name: pnl-up; }
}
@media (prefers-reduced-motion: reduce) { .pnl, .pnl-backdrop { animation: none; } }
.pnl-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
.pnl-brand { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.pnl-brand small { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-left: 6px; }
.pnl-close { width: 36px; height: 36px; border: none; border-radius: 50%; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-right: -8px; }
.pnl-close:hover { background: var(--hover); }
.pnl-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pnl-body { padding: 18px 20px 28px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.pnl-foot { padding: 10px 18px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line-soft); text-align: center; flex-shrink: 0; }

.pnl-h { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 16px; line-height: 1.25; outline: none; }
.pnl-h.center { text-align: center; }
.pnl-note { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.pnl-note.small { font-size: 12.5px; color: var(--ink-3); }
.pnl-note.center { text-align: center; }
.pnl-error { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; margin: 0 0 14px; }
.linkish { background: none; border: none; padding: 0; color: var(--clay); text-decoration: underline; cursor: pointer; font: inherit; }

/* summary chips */
.pnl-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.schip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.schip.fixed { cursor: default; background: transparent; }
.schip svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schip:not(.fixed):hover { border-color: var(--clay); color: var(--clay); }
.schip:not(.fixed):hover svg { stroke: var(--clay); }

/* choices */
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--clay); background: var(--surface-2); }
.choice.with-portrait { flex-direction: row; align-items: center; gap: 14px; }
.choice-portrait { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--photo-bg); flex-shrink: 0; }
.choice-main { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice-sub { color: var(--ink-2); font-size: 13.5px; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); background: color-mix(in srgb, var(--clay) 12%, transparent); padding: 2px 7px; border-radius: 999px; }

/* time step */
.soonest { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--clay); background: color-mix(in srgb, var(--clay) 10%, transparent); color: var(--ink); cursor: pointer; }
.soonest span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.soonest b { font-size: 15px; font-weight: 600; }
.soonest small { font-size: 12.5px; color: var(--ink-2); }
.soonest:hover { background: color-mix(in srgb, var(--clay) 18%, transparent); }
.cal { border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 12px 10px; margin: 0 0 14px; background: var(--surface); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cal-title { font-weight: 600; font-size: 15px; }
.cal-nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); padding: 4px 0; }
.cal-cell { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent; font-size: 14px; color: var(--ink-3); cursor: default; display: flex; align-items: center; justify-content: center; padding: 0; }
.cal-cell.blank { visibility: hidden; }
.cal-cell.open { color: var(--ink); background: var(--chip-bg); font-weight: 600; cursor: pointer; }
.cal-cell.open:hover { border-color: var(--clay); }
.cal-cell.sel { background: var(--ink); color: var(--on-ink); }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--clay); }
.day-h { font-weight: 600; font-size: 15px; margin: 4px 0 10px; }
.tgroup { margin: 0 0 12px; }
.tgroup-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.tchip.time { min-width: 84px; align-items: center; }
.tchip.time small { color: var(--ink-2); }
.zone { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }
.zone-diff { color: var(--clay); font-weight: 600; }

/* details */
.fld { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fld input, .fld textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; }
.fld.bad input { border-color: var(--bad); }
.err { font-style: normal; font-weight: 500; color: var(--bad); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.seg { border: none; padding: 0; margin: 2px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.segb { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.segb[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.segb:disabled { opacity: .4; cursor: default; }
.seg .err { grid-column: 1 / -1; }
.chk { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--clay); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
.btn.primary:hover { background: var(--clay-hover); border-color: var(--clay-hover); }
.btn.ghost:hover { background: var(--hover); }
.btn.big { width: 100%; padding: 14px 16px; font-size: 16px; margin-top: 6px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.btn-row .btn { flex: 1 1 auto; }

/* confirmation */
.done-mark { width: 56px; height: 56px; margin: 6px auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); display: flex; align-items: center; justify-content: center; }
.done-mark svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; background: var(--surface-2); }
.done-when { display: flex; flex-direction: column; gap: 2px; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
.done-when b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.done-when span { color: var(--ink-2); font-size: 14px; }
.done-row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14px; margin: 0 0 8px; line-height: 1.4; }
.done-row .k { color: var(--ink-3); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.done-row a { color: var(--clay); }

/* Embed mode (?embed=1): the panel is the whole frame; the host page is behind it. */
body.embed .site-header, body.embed .page, body.embed footer,
html.embed .site-header, html.embed .page, html.embed footer { display: none; }
body.embed .pnl-backdrop { display: none; }
body.embed .pnl { position: fixed; inset: 0; width: auto; box-shadow: none; animation: none; }

/* "What are you interested in? (optional)" in Your details, when no procedure came in */
.interest { border: none; padding: 0; margin: 2px 0 14px; }
.interest legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.interest legend i { font-weight: 400; font-style: normal; color: var(--ink-3); }
.ichip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13px/1.2 inherit; font-family: inherit; cursor: pointer; }
.ichip:hover { border-color: var(--clay); }
.ichip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ichip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The interest dropdown (styled list, grouped by area) with "Not sure yet" beside it */
.irow { display: flex; gap: 8px; align-items: stretch; }
.ipick { position: relative; flex: 1; min-width: 0; }
.ipick-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font: 500 14px/1.2 inherit; font-family: inherit; cursor: pointer; text-align: left; }
.ipick-btn.has-val { color: var(--ink); font-weight: 600; }
.ipick-btn::after { content: ''; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); }
.ipick-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.ipick-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ipick-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 14px 40px rgba(35,38,43,.18), 0 2px 6px rgba(35,38,43,.08); }
.ipick-group { margin: 4px 4px 0; padding: 10px 6px 4px; border-top: 1px solid var(--line-soft); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.ipick-group:first-child { border-top: 0; margin-top: 0; padding-top: 6px; }
.ipick-opt { padding: 8px 10px 8px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; outline: none; display: flex; justify-content: space-between; align-items: center; }
.ipick-opt:hover, .ipick-opt:focus { background: var(--chip-bg); }
.ipick-opt[aria-selected="true"] { font-weight: 600; }
.ipick-opt[aria-selected="true"]::after { content: ''; width: 5px; height: 10px; border-right: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: translateY(-2px) rotate(45deg); }
.irow .ichip { flex: none; border-radius: 10px; padding: 10px 14px; }
/* A journey's procedures as toggles */
.ichips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }   /* procedures above, actions below */
.ichip-all { border-style: dashed; }
.btn-row .btn[disabled] { opacity: .45; cursor: default; }
/* Use My Location in the surgeon step (as on the Finder) */
.geo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; }
.geo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.geo-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--clay); stroke-width: 2; }
.geo-btn:hover { border-color: var(--clay); }
.geo-btn[disabled] { opacity: .6; cursor: default; }
.geo-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Edit "where": the current office marked */
.choice.current { border-color: var(--ink); }
.loc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.loc-top .pnl-summary { flex: 1; min-width: 0; }
.keep-loc { flex: none; margin-top: 7px; font-size: 13px; }
/* A journey's choices above, Something else / Not sure yet below a divider */
.choice-list + .btn-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.choice.default-pick { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); position: relative; padding-right: 44px; }
.choice.default-pick::after { content: ''; position: absolute; right: 18px; top: 50%; width: 6px; height: 12px; border-right: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transform: translateY(-65%) rotate(45deg); }
/* Journey pills: one choice; selected = dark, others outlined */
.ichips .ichip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pick-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.pick-actions .linkish { font-size: 14px; }
/* The journey's portrait beside the heading */
.journey-head { display: flex; align-items: center; gap: 14px; }
.journey-pic { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--chip-bg); background: var(--surface-2); }
.journey-head .pnl-h { margin: 0; }
.journey-head + .pnl-note { margin-top: 10px; }
