/*
 * Studio popups: the one shell every public popup wears (Concept A,
 * approved 2026-11-23; design source docs/popup-redesign/concept-a-all.html).
 *
 *   <div class="sp" data-look="soft|standard|sharp|tech" style="--sp-ac:#2F6B4F">
 *     <div class="sp-panel">
 *       <header class="sp-hd">...</header>   pinned
 *       <div class="sp-prog">...</div>        pinned (wizards)
 *       <div class="sp-bd">...</div>          the only part that scrolls
 *       <footer class="sp-ft">...</footer>    pinned
 *     </div>
 *   </div>
 *
 * The accent is the workspace Branding color unless the popup has its own
 * (App\Support\PopupStyle). Tints come from the accent, so icons, the band,
 * chips and the selected states all recolor with it.
 *
 * Mobile (owner, 2026-11-23): the box never runs past the visible browser
 * height. Centered, 16px gap top and bottom plus the safe areas, dvh only;
 * header and footer pinned, only the middle scrolls.
 *
 * Owner rules: no focus rings or tints, 14px fields, public popups only.
 */

.sp {
  --sp-ac: #1264ff;
  --sp-tint: color-mix(in srgb, var(--sp-ac) 9%, #fff);
  --sp-tint2: color-mix(in srgb, var(--sp-ac) 16%, #fff);
  --sp-segoff-soft: color-mix(in srgb, var(--sp-ac) 26%, #fff);
  --sp-line: #dfe2e6;
  --sp-soft: #eceef1;
  --sp-ink: #141414;
  --sp-ink2: #4a4f56;
  --sp-mute: #6b6f76;
  --sp-rp: 20px; --sp-rb: 999px; --sp-rf: 12px; --sp-rc: 6px; --sp-rx: 999px; --sp-rbub: 16px;
  --sp-band: var(--sp-tint); --sp-bandfg: var(--sp-ink); --sp-bandsub: var(--sp-ink2);
  --sp-bandrule: none; --sp-eyec: var(--sp-ac);
  --sp-segon: var(--sp-ac); --sp-segoff: var(--sp-segoff-soft); --sp-segh: 4px; --sp-segr: 4px;
  --sp-hfont: var(--sp-host-hfont, Georgia, 'Times New Roman', serif); --sp-hw: 600; --sp-hls: -.01em;
  --sp-efont: inherit; --sp-els: .06em; --sp-nfont: inherit;
  --sp-xbg: #fff; --sp-xfg: var(--sp-ink); --sp-xsh: 0 1px 4px rgba(0,0,0,.12); --sp-xbd: 0;
  --sp-pbd: 0;
  --sp-font: var(--sp-host-font, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-family: var(--sp-font);
  color: var(--sp-ink);
  -webkit-font-smoothing: antialiased;
}
.sp[data-look="standard"] { --sp-rp: 12px; --sp-rb: 8px; --sp-rf: 8px; --sp-rc: 4px; --sp-rx: 8px; --sp-rbub: 12px; }
.sp[data-look="sharp"] {
  --sp-rp: 0; --sp-rb: 0; --sp-rf: 0; --sp-rc: 0; --sp-rx: 0; --sp-rbub: 0;
  --sp-line: #cfd3d8; --sp-soft: #e3e6e9;
  --sp-band: #fff; --sp-bandrule: 1px solid var(--sp-ink); --sp-segoff: #e1e4e7; --sp-segh: 3px; --sp-segr: 0;
  --sp-els: .14em; --sp-xsh: none; --sp-xbd: 1px solid #cfd3d8; --sp-pbd: 1px solid var(--sp-ink);
}
.sp[data-look="tech"] {
  --sp-rp: 8px; --sp-rb: 6px; --sp-rf: 6px; --sp-rc: 3px; --sp-rx: 6px; --sp-rbub: 8px;
  --sp-band: #0e1116; --sp-bandfg: #fff; --sp-bandsub: #a4abb6;
  --sp-eyec: color-mix(in srgb, var(--sp-ac) 45%, #fff);
  --sp-segon: color-mix(in srgb, var(--sp-ac) 45%, #fff); --sp-segoff: rgba(255,255,255,.16); --sp-segh: 2px; --sp-segr: 0;
  --sp-hfont: 'Inter Tight', system-ui, sans-serif; --sp-hw: 700; --sp-hls: -.025em;
  --sp-efont: 'JetBrains Mono', ui-monospace, monospace; --sp-els: .04em; --sp-nfont: 'JetBrains Mono', ui-monospace, monospace;
  --sp-xbg: rgba(255,255,255,.1); --sp-xfg: #fff; --sp-xsh: none;
}

.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp :focus, .sp :focus-visible, .sp :focus-within { outline: none; box-shadow: none; }
.sp :where(button, input, select, textarea) { font: inherit; color: inherit; outline: none; -webkit-tap-highlight-color: transparent; }
.sp a { -webkit-tap-highlight-color: transparent; }
.sp-hf { font-family: var(--sp-hfont); font-weight: var(--sp-hw); letter-spacing: var(--sp-hls); }
.sp-num { font-family: var(--sp-nfont); font-variant-numeric: tabular-nums; }
.sp-ic { width: 20px; height: 20px; flex: none; display: block; }

/* ---------- the box ---------- */
.sp-panel {
  position: relative; width: 600px; max-width: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--sp-rp); border: var(--sp-pbd);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.sp-hd {
  flex: none; background: var(--sp-band); color: var(--sp-bandfg);
  padding: 20px 20px 18px 28px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
}
.sp-hd.sp-noprog { border-bottom: var(--sp-bandrule); }
.sp-hd__text { min-width: 0; }
.sp-eyebrow { font-family: var(--sp-efont); font-size: 12px; font-weight: 700; letter-spacing: var(--sp-els); text-transform: uppercase; color: var(--sp-eyec); margin: 0 0 6px; }
.sp-hd h2, .sp-hd h3, .sp-title { margin: 0; font-size: 28px; line-height: 1.1; color: inherit; font-family: var(--sp-hfont); font-weight: var(--sp-hw); letter-spacing: var(--sp-hls); overflow-wrap: anywhere; }
.sp-hd p, .sp-sub { margin: 6px 0 0; font-size: 14px; color: var(--sp-bandsub); line-height: 1.45; }
.sp-x {
  flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border-radius: var(--sp-rx); border: var(--sp-xbd); background: var(--sp-xbg); box-shadow: var(--sp-xsh); color: var(--sp-xfg);
  display: flex; align-items: center; justify-content: center;
}
.sp-x .sp-ic { width: 18px; height: 18px; }
.sp-prog { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 0 28px 16px; background: var(--sp-band); border-bottom: var(--sp-bandrule); }
.sp-prog i { display: block; height: var(--sp-segh); border-radius: var(--sp-segr); background: var(--sp-segoff); }
.sp-prog i.on { background: var(--sp-segon); }

/* Picture header: the photo is the header, X floats on it, title in the body. */
.sp-cover { flex: none; position: relative; height: 300px; background: #cfd6d1 center / cover no-repeat; }
.sp-cover .sp-x { position: absolute; top: 16px; right: 16px; --sp-xbg: #fff; --sp-xfg: var(--sp-ink); --sp-xsh: 0 2px 8px rgba(0,0,0,.25); }
.sp-ttl h2, .sp-ttl h3 { margin: 0; font-size: 28px; line-height: 1.1; font-family: var(--sp-hfont); font-weight: var(--sp-hw); letter-spacing: var(--sp-hls); }
.sp-ttl p { margin: 6px 0 0; font-size: 14px; color: var(--sp-mute); line-height: 1.45; }

.sp-bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 24px 28px 26px; display: grid; --sp-bd-gap: 14px; gap: var(--sp-bd-gap); align-content: start; }
.sp-ft { flex: none; display: grid; gap: 10px; justify-items: center; padding: 0 28px 24px; background: #fff; }
.sp-ft > .sp-btn, .sp-ft > button, .sp-ft > .sp-row, .sp-ft > [data-sp-actions] { justify-self: stretch; }
.sp-ft.sp-ft--rule { border-top: 1px solid var(--sp-soft); padding-top: 14px; }

/* ---------- fields ---------- */
.sp-fl { display: grid; gap: 6px; }
.sp-fl > label, .sp-label { font-size: 13px; font-weight: 600; color: var(--sp-ink); }
.sp-opt { font-weight: 400; color: var(--sp-mute); }
.sp-in, .sp input[type="text"], .sp input[type="email"], .sp input[type="tel"], .sp input[type="number"], .sp input[type="url"],
.sp input[type="date"], .sp input[type="time"], .sp input[type="password"], .sp input[type="search"], .sp select, .sp textarea {
  height: 44px; width: 100%; border: 1px solid var(--sp-line); border-radius: var(--sp-rf);
  padding: 0 14px; font-size: 14px; color: var(--sp-ink); background: #fff; -webkit-appearance: none; appearance: none;
}
.sp select { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; }
.sp textarea { height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.sp input::placeholder, .sp textarea::placeholder { color: #9aa0a6; }
.sp-in:focus, .sp input:focus, .sp select:focus, .sp textarea:focus { border-color: var(--sp-line); outline: none; box-shadow: none; background-color: #fff; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Short related fields two per row (Email + Phone, First + Last, City + ZIP,
   Date + Time); every field back on its own row on phones. Long fields
   (textareas, address line 1, long questions, card elements) stay full width. */
.sp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.sp-pair > * { min-width: 0; }
@media (max-width: 480px) { .sp-pair { grid-template-columns: 1fr; } }
.sp-err { font-size: 13px; color: #b42318; }

/* ---------- buttons ---------- */
.sp-btn {
  height: 50px; width: 100%; border: 0; border-radius: var(--sp-rb); cursor: pointer;
  background: var(--sp-ac); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; text-decoration: none;
}
.sp-btn[disabled] { opacity: .55; cursor: default; }
.sp-btn .sp-ic { width: 18px; height: 18px; }
.sp-btn--ghost { background: #fff; color: var(--sp-ink); border: 1px solid var(--sp-line); }
.sp-btn--auto { width: auto; padding: 0 28px; }
.sp-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--sp-ink2); background: none; border: 0; padding: 0; cursor: pointer; justify-self: start; }
.sp-back .sp-ic { width: 16px; height: 16px; }
.sp-link { font-size: 13.5px; font-weight: 600; color: var(--sp-ink2); text-align: center; background: none; border: 0; cursor: pointer; text-decoration: none; }
.sp-muted { color: var(--sp-mute); }

/* ---------- strips, summary, payment ---------- */
.sp-strip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--sp-rf); background: var(--sp-tint); }
.sp-strip .sp-ico { flex: none; width: 40px; height: 40px; border-radius: var(--sp-rc); background: #fff; color: var(--sp-ac); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-strip .sp-ico img { width: 100%; height: 100%; object-fit: cover; }
.sp-strip b { display: block; font-size: 14.5px; }
.sp-strip span { font-size: 13px; color: var(--sp-mute); }
.sp-strip a, .sp-strip button { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--sp-ac); background: none; border: 0; cursor: pointer; }
.sp-sum { display: grid; gap: 8px; }
.sp-sum .sp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; line-height: 20px; color: var(--sp-ink2); }
.sp-sum .sp-row > :last-child { font-family: var(--sp-nfont); font-variant-numeric: tabular-nums; color: var(--sp-ink); white-space: nowrap; }
.sp-sum .sp-row.sp-total { border-top: 1px solid var(--sp-line); padding-top: 12px; margin-top: 4px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--sp-ink); }
.sp-sum .sp-note { font-size: 13px; color: var(--sp-mute); margin-top: -2px; }
.sp-card { border: 1px solid var(--sp-line); border-radius: var(--sp-rf); padding: 12px 14px; background: #fff; }
.sp-ptabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-ptabs > * { height: 40px; border-radius: var(--sp-rf); border: 1px solid var(--sp-line); background: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--sp-ink2); cursor: pointer; }
.sp-ptabs > * .sp-ic { width: 16px; height: 16px; }
.sp-ptabs > .on, .sp-ptabs > [aria-pressed="true"], .sp-ptabs > [aria-selected="true"] { border-color: var(--sp-ac); background: var(--sp-tint); color: var(--sp-ac); }
.sp-chk { display: flex; gap: 10px; align-items: center; font-size: 13.5px; cursor: pointer; }
.sp-chk input[type="checkbox"], .sp-chk input[type="radio"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sp-ac); }
.sp-secure { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--sp-mute); }
.sp-secure .sp-ic { width: 13px; height: 13px; }
.sp-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #8a8f96; text-decoration: none; }
.sp-badge svg { height: 12px; width: auto; display: block; }
.sp-badge--gray svg { filter: grayscale(1); opacity: .7; transition: filter .15s, opacity .15s; }
.sp-badge--gray:hover svg { filter: none; opacity: 1; }

/* ---------- pickers ---------- */
.sp-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-chips > * { height: 52px; border-radius: var(--sp-rf); border: 1px solid var(--sp-line); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sp-chips > .on, .sp-chips > [aria-pressed="true"] { background: var(--sp-ac); border-color: var(--sp-ac); color: #fff; }
.sp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #f2f3f5; border-radius: var(--sp-rb); padding: 4px; }
.sp-seg > * { height: 38px; border-radius: var(--sp-rb); border: 0; background: none; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--sp-ink2); cursor: pointer; }
.sp-seg > .on, .sp-seg > [aria-pressed="true"], .sp-seg > [aria-selected="true"] { background: #fff; color: var(--sp-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sp-hero { background: var(--sp-tint); border-radius: var(--sp-rf); padding: 18px 20px; text-align: center; }
.sp-hero .sp-price { font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -.01em; font-family: var(--sp-nfont); font-variant-numeric: tabular-nums; }
.sp-hero .sp-per { font-size: 14px; color: var(--sp-mute); margin-top: 8px; }
.sp-feat { display: flex; gap: 9px; align-items: center; font-size: 14px; color: #475569; }
.sp-feat .sp-ic { color: var(--sp-ac); width: 18px; height: 18px; }
.sp-opt-row { display: flex; gap: 12px; align-items: center; border: 1px solid var(--sp-line); border-radius: var(--sp-rf); padding: 12px 14px; background: #fff; cursor: pointer; text-align: left; width: 100%; }
.sp-opt-row.on, .sp-opt-row[aria-pressed="true"], .sp-opt-row:has(input:checked) { border-color: var(--sp-ac); background: var(--sp-tint); }
.sp-opt-row .sp-rd { flex: none; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid #c6cad0; }
.sp-opt-row.on .sp-rd, .sp-opt-row:has(input:checked) .sp-rd { border: 6px solid var(--sp-ac); }
.sp-opt-row b { display: block; font-size: 14.5px; color: var(--sp-ink); }
.sp-opt-row span { font-size: 13px; color: var(--sp-mute); }
.sp-opt-row + .sp-opt-row { margin-top: 8px; }
a.sp-opt-row { text-decoration: none; color: inherit; }

/* ---------- chooser: "Pick a service" / "Pick a plan" (public/popup/_chooser) ---------- */
.sp-pick { display: flex; gap: 14px; align-items: center; width: 100%; padding: 14px 16px; border: 1px solid var(--sp-line); border-radius: var(--sp-rf); background: #fff; color: inherit; text-decoration: none; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sp-pick + .sp-pick { margin-top: 8px; }
/* In the popup body the rows sit 6px apart (the body's grid gap is for sections). */
.sp-bd > .sp-pick + .sp-pick { margin-top: calc(6px - var(--sp-bd-gap)); }
.sp-pick__ic { flex: none; width: 40px; height: 40px; border-radius: var(--sp-rc); background: var(--sp-tint); color: var(--sp-ac); display: flex; align-items: center; justify-content: center; }
.sp-pick__tx { flex: 1 1 auto; min-width: 0; }
.sp-pick__tx b { display: block; font-size: 15px; font-weight: 700; color: var(--sp-ink); line-height: 1.3; }
.sp-pick__tx span { display: block; margin-top: 2px; font-size: 13px; color: var(--sp-mute); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-pick__pr { flex: none; font-size: 14px; font-weight: 700; color: var(--sp-ink); font-family: var(--sp-nfont); white-space: nowrap; }
.sp-pick__pr--in { display: none; font-style: normal; margin-top: 2px; }
/* Narrow popups: the price sits under the name so the short line keeps its width. */
@media (max-width: 479px) {
    .sp-pick__pr--side { display: none; }
    .sp-pick__pr--in { display: block; }
}
.sp-pick__go { flex: none; color: var(--sp-ac); }
.sp-pick__go .sp-ic { width: 18px; height: 18px; }
.sp-pick-group { margin: 6px 0 8px; font-family: var(--sp-efont); font-size: 12px; font-weight: 700; letter-spacing: var(--sp-els); text-transform: uppercase; color: var(--sp-eyec); }
.sp-pick-group:not(:first-child) { margin-top: 18px; }
.sp-hd-back { margin: 0 0 8px; color: var(--sp-bandsub); text-decoration: none; }
.sp-hd-back[hidden] { display: none; }
.sp-qty { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-qty button { width: 32px; height: 32px; border-radius: var(--sp-rb); border: 1px solid var(--sp-line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--sp-ac); cursor: pointer; padding: 0; }
.sp-hr { height: 1px; background: var(--sp-soft); }
.sp-tag { display: inline-flex; font-size: 12px; font-weight: 700; color: var(--sp-ac); background: var(--sp-tint); border-radius: var(--sp-rb); padding: 4px 10px; }

/* ---------- details with line icons ---------- */
.sp-meta { display: grid; gap: 12px; }
.sp-meta > div { display: flex; gap: 12px; font-size: 14px; align-items: center; }
.sp-meta .sp-mi { flex: none; width: 40px; height: 40px; border-radius: var(--sp-rc); background: var(--sp-tint); color: var(--sp-ac); display: flex; align-items: center; justify-content: center; }
.sp-meta b { display: block; }
.sp-meta span { color: var(--sp-mute); font-size: 13px; }

/* ---------- done ---------- */
.sp-done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 8px 0 4px; }
.sp-done .sp-ok { width: 56px; height: 56px; border-radius: var(--sp-rx); background: var(--sp-tint2); color: var(--sp-ac); display: flex; align-items: center; justify-content: center; }
.sp-done .sp-ok .sp-ic { width: 26px; height: 26px; }
.sp-done h4 { margin: 0; font-size: 24px; font-family: var(--sp-hfont); font-weight: var(--sp-hw); letter-spacing: var(--sp-hls); }
.sp-done p { margin: 0; font-size: 14px; color: var(--sp-ink2); line-height: 1.5; max-width: 42ch; }

/* ---------- calendar, times ---------- */
.sp-calhead { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.sp-calhead button { width: 30px; height: 30px; border-radius: var(--sp-rb); background: var(--sp-tint); border: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--sp-ac); cursor: pointer; padding: 0; }
.sp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.sp-cal .sp-dow { font-size: 12px; font-weight: 700; color: #8a8f96; text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.sp-cal .sp-d { height: 40px; border-radius: var(--sp-rb); border: 0; background: none; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #c2c6cc; }
.sp-cal .sp-d.on { color: var(--sp-ink); background: var(--sp-tint); cursor: pointer; }
.sp-cal .sp-d.sel { background: var(--sp-ac); color: #fff; }
.sp-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-t { height: 44px; border-radius: var(--sp-rf); border: 1px solid var(--sp-line); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.sp-t.sel { background: var(--sp-ac); border-color: var(--sp-ac); color: #fff; }
.sp-tz { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--sp-mute); background: var(--sp-tint); border-radius: var(--sp-rb); padding: 5px 11px; }
.sp-tz .sp-ic { width: 14px; height: 14px; color: var(--sp-ac); }
/* The zone picker sits inside the tinted pill: a small select on the same
   shape (corners nest 8px in), with room all around. */
.sp-tz:has(select) { padding: 8px 8px 8px 14px; }
.sp .sp-tz select { height: 28px; width: auto; min-width: 0; font-size: 12.5px; font-weight: 600; padding: 0 28px 0 12px; border-radius: max(calc(var(--sp-rb) / 2), calc(var(--sp-rb) - 8px)); background-size: 12px 12px; background-position: right 10px center; }
.sp-tz .bk-tz__chev { display: none; }

/* ---------- chat (help desk, concierge) ---------- */
.sp-chat { display: grid; gap: 10px; }
.sp-bubble { max-width: 80%; padding: 10px 14px; border-radius: var(--sp-rbub); font-size: 14px; line-height: 1.45; }
.sp-bubble.them { background: #f2f3f5; border-bottom-left-radius: 4px; }
.sp-bubble.me { background: var(--sp-ac); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.sp-compose { display: flex; gap: 8px; align-items: center; }
.sp-compose input { flex: 1; }
.sp-compose .sp-send { flex: none; width: 44px; height: 44px; border-radius: var(--sp-rb); background: var(--sp-ac); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sp-art { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--sp-soft); color: var(--sp-ink); text-decoration: none; }
.sp-art .sp-ic { color: var(--sp-ac); width: 18px; height: 18px; }

/* ---------- same-page overlay (popups drawn on the host page) ---------- */
.sp-overlay {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
/* studio-popup.js pins a same-page overlay to the visual viewport (keyboard
   open) and sets --sp-vvh; the panel then fits what is really visible. */
.sp-overlay[style*="--sp-vvh"] .sp-panel { max-height: calc(var(--sp-vvh) - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.sp-overlay .sp-panel { max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }

/* ---------- inside an iframe: the host sizes the frame, this page fills it ---------- */
html.sp-framed, html.sp-framed body { margin: 0; padding: 0; background: transparent; }
html.sp-framed .sp-panel { width: 100%; box-shadow: none; max-height: 100dvh; }

/* ---------- the same box as a full page (a "Pick one" list at /book, /join) ---------- */
html.sp-page, html.sp-page body { margin: 0; background: #f3f4f6; }
html.sp-page body { min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
html.sp-page .sp { width: 100%; max-width: 600px; }
html.sp-page .sp-panel { width: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

@media (max-width: 640px) {
  .sp-hd { padding: 16px 14px 14px 20px; }
  .sp-hd h2, .sp-hd h3, .sp-title, .sp-ttl h2, .sp-ttl h3 { font-size: 24px; }
  .sp-prog { padding: 0 20px 14px; }
  .sp-cover { height: 210px; }
  .sp-bd { padding: 18px 20px 20px; --sp-bd-gap: 12px; }
  .sp-ft { padding: 0 20px 18px; }
  .sp-ft.sp-ft--rule { padding-top: 12px; }
}
@media (max-width: 380px) {
  .sp-two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sp * { transition: none !important; animation: none !important; }
}

/* A step's own button kept in view at the bottom of the scrolling body
   (forms whose buttons live inside their <form>). */
.sp [hidden] { display: none !important; }
.sp-bd:has(.sp-pin:not([hidden])) { padding-bottom: 0; }
.sp-pin { position: sticky; bottom: 0; z-index: 2; background: #fff; padding: 10px 0 16px; margin-top: auto; }
.sp-ft:empty { display: none; }

/* Module buttons in popup mode wear the .sp-btn spec (Concept A, owner
   2026-11-24: "make sure buttons are like the Figma"): full width, 50px,
   the look's radius, 15px bold, accent with white text. The doubled .sp
   outranks each module's own popup rules; the !important beats the website
   builder's button shape (module-btn-theme), since a popup follows its look.
   Full pages never carry .sp. */
.sp.sp :is(.mj-btn, .d-btn, .dwz__btn, .sf-submit, .sf-next, .sfp-btn, .bk-btn, .spco-btn, .pb-popup__submit, .stx-bar):not(.mj-promo__apply),
.er-popup .sp .btn {
  width: 100%; height: auto; min-height: 50px; padding: 0 20px; border: 0; border-radius: var(--sp-rb) !important;
  background: var(--sp-ac); color: #fff; font-size: 15px; font-weight: 700 !important; line-height: 1.25;
  letter-spacing: normal; text-transform: none;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none;
  filter: none; cursor: pointer;
}
.sp.sp.sp .stx-bar:not(.stx-bar--auto) { justify-content: space-between; }
.sp.sp.sp :is(.pb-popup__submit--ghost, .sfp-btn-ghost), .er-popup .sp .btn--secondary {
  background: #fff; color: var(--sp-ink); border: 1px solid var(--sp-line);
}
.sp.sp :is(.mj-btn, .d-btn, .dwz__btn, .sf-submit, .sf-next, .sfp-btn, .bk-btn, .spco-btn, .pb-popup__submit, .stx-bar):not(.mj-promo__apply):is(:disabled, [aria-disabled="true"]),
.er-popup .sp .btn:is(:disabled, [aria-disabled="true"]) { background: var(--sp-ac); opacity: .55; cursor: default; }

/* The Studio loader, while a popup's content loads (owner, 2026-11-24: "use
   our studio loader instead of the words loading", in the workspace brand
   color). Same ring as the dashboard's .ccs-nav-loader__ring: 38px, a 3px
   track at 18% of the accent, the top in the accent, one turn every 0.7s.
   With reduced motion it slows to 1.4s and never stops (the spin is the
   signal). The host page's placeholder box draws the same ring in
   _popup-shell.js (spRing). Markup:
     <div class="sp-loader" role="status"><span class="sp-loader__ring" aria-hidden="true"></span><span class="sp-loader__sr">Loading</span></div> */
.sp-loader { display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.sp-loader__ring {
  display: block; box-sizing: border-box; width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  border: 3px solid rgba(18, 100, 255, .18);
  border-color: color-mix(in srgb, var(--sp-ac, #1264ff) 18%, transparent);
  border-top-color: var(--sp-ac, #1264ff);
  animation: sp-loader-spin .7s linear infinite;
}
.sp-loader__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes sp-loader-spin { to { transform: rotate(360deg); } }
/* Beats the .sp * { animation: none } reduced-motion reset above. */
@media (prefers-reduced-motion: reduce) { .sp-loader__ring, .sp .sp-loader__ring { animation: sp-loader-spin 1.4s linear infinite !important; } }
