/* staffcall.css — the staff-call popup and takeover (#4077). Ported from the kiosk-popup mockup
   (design export 2026-09-25) onto the kiosk's own tokens (--accent, --ink, --glass, --rim, --sheen …).
   Every class is sc- prefixed so nothing here can restyle an existing kiosk surface.
   One layer at z-index 75: above card focus (50) and the action rail (70); the "Still there?" countdown
   (80) cannot fire while the hold is on. */

.kiosk { --sc-accent-ink: color-mix(in oklab, var(--accent) 72%, #000); }

/* ── what hides while a staff call is up ──
   Hold on (Placing → In call) and the fallback screens: the phase is pinned to "listening", so the
   kiosk's own answer box, side column, promo banner and listening pill would still render under the
   z-75 layer — visible but dead. They are hidden, not covered, and come back when the popup goes. */
.kiosk[data-staffcall] .sheet-anchor, .kiosk[data-staffcall] .rail,
.kiosk[data-staffcall] .promo, .kiosk[data-staffcall] .listen-pill,
.kiosk[data-staffcall] .docrow, .kiosk[data-staffcall] .home-quick,
.kiosk[data-staffcall] .listen-foot { visibility: hidden; }
/* A backdrop-filter still paints its blur under visibility:hidden in Chromium (the Helpful pills smeared
   through the fallback screen) — so the hidden subtree loses its filters too. */
.kiosk[data-staffcall] .sheet-anchor *, .kiosk[data-staffcall] .rail *, .kiosk[data-staffcall] .rail,
.kiosk[data-staffcall] .sheet-anchor, .kiosk[data-staffcall] .listen-pill, .kiosk[data-staffcall] .promo,
.kiosk[data-staffcall] .docrow, .kiosk[data-staffcall] .docrow *,
.kiosk[data-staffcall] .listen-foot, .kiosk[data-staffcall] .listen-foot * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.kiosk[data-staffcall] .footer { z-index: 81; }
/* Offer popup open: the side column hides (a half-covered Home beside the card is worse than none). */
.kiosk[data-staffoffer] .rail { visibility: hidden; }
/* The pinned listening phase keeps the first-turn language strip + quick cards (.listen-foot) mounted;
   under the in-call End call button they were sharp, tappable and overlapping — hide them with the popup. */
.kiosk[data-staffoffer] .listen-foot { visibility: hidden; }

/* ── the offer card (Disclaimer-card glass, max 900 px, anchored low: Call in the lower 40 %) ── */
.sc-layer { position: absolute; inset: 0; z-index: 75; pointer-events: none; }
.sc-layer::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(0deg, rgba(14,13,11,.34), rgba(14,13,11,0)); }
.sc-stack { position: absolute; left: 24px; right: 24px; bottom: 86px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sc-card { pointer-events: auto; position: relative; width: 100%; max-width: 900px; text-align: start;
  display: flex; flex-direction: column; gap: 18px; padding: 30px 40px 26px; border-radius: 34px;
  --glass-fill: rgba(255,255,255,.72); border: 1px solid transparent; color: var(--ink);
  background: var(--lens) padding-box, linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box, var(--rim) border-box;
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow: 0 40px 110px rgba(0,0,0,.35), var(--sheen); animation: scRiseIn .45s cubic-bezier(.2,.8,.2,1) both; }
.sc-head { display: flex; align-items: center; gap: 20px; padding-inline-end: 72px; min-height: 76px; }
.sc-badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--sc-accent-ink);
  background: color-mix(in oklab, var(--accent) 14%, var(--panel-solid));
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--accent) 38%, transparent); }
.sc-title { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.sc-close { position: absolute; top: 26px; inset-inline-end: 26px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--hair); color: var(--ink); cursor: pointer; }
.sc-reason { position: relative; padding: 18px 26px; border-radius: 24px; background: var(--panel-solid); border: 1px solid var(--hair-2); }
.sc-label { font-size: 21px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.kiosk[lang="ar"] .sc-label, .kiosk[lang="th"] .sc-label, .kiosk[lang="hi"] .sc-label { letter-spacing: 0; font-size: 22px; }
.sc-rtext { margin: 6px 0 8px; font-size: 34px; font-weight: 600; line-height: 1.26; color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.sc-rnote { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; color: var(--ink-2); }
.sc-meta { display: flex; flex-wrap: wrap; column-gap: 30px; row-gap: 8px; padding: 0 4px; font-size: 23px; font-weight: 500; color: var(--ink-2); }
.sc-meta > span { display: inline-flex; align-items: center; gap: 10px; }
.sc-meta b { color: var(--ink); font-weight: 700; }
.sc-meta .ic, .sc-rnote .ic, .sc-consent .ic { color: var(--sc-accent-ink); }
.sc-consent { display: flex; align-items: flex-start; gap: 14px; padding: 2px 4px; font-size: 22px; line-height: 1.38; font-weight: 500; color: var(--ink-2); }
.sc-ics { display: flex; gap: 4px; flex: none; padding-top: 2px; }
.sc-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.sc-actions--row { flex-direction: row; }
.sc-actions--row > * { flex: 1; }
.sc-btn-call { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; padding: 25px 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font-size: 36px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; cursor: pointer;
  box-shadow: 0 14px 36px color-mix(in oklab, var(--accent) 40%, transparent); font-family: inherit; }
.sc-btn-call--sm { font-size: 32px; padding: 22px; }
.sc-btn2 { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 30px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 26px; font-weight: 700; color: var(--ink); background: var(--panel-solid); border: 2px solid rgba(22,20,15,.13); line-height: 1.2; }
.sc-btn2--quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding: 12px 30px; }
.sc-subrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-alt { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 16px; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 24px; font-weight: 700; color: var(--sc-accent-ink); }
.sc-alt-t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.sc-honest { padding: 20px 26px; border-radius: 24px; background: color-mix(in oklab, var(--accent) 10%, var(--panel-solid));
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.sc-honest b { display: block; font-size: 30px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.sc-honest span { font-size: 24px; line-height: 1.38; color: var(--ink-2); }
.sc-big { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.32; color: var(--ink); text-wrap: pretty; }
.sc-sending { pointer-events: auto; display: inline-flex; align-items: center; gap: 16px; padding: 20px 30px; border-radius: 24px;
  font-size: 28px; font-weight: 600; color: var(--ink); background: var(--panel-solid); border: 1px solid var(--hair-2); box-shadow: var(--shadow); }

/* collapsed: the "Call staff" chip in the reach zone, on the side column's edge */
.sc-chipwrap { position: absolute; inset-inline-end: 26px; top: 66%; z-index: 72; }
.sc-callchip { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 96px; padding: 0 34px 0 24px; border-radius: 999px; cursor: pointer;
  color: var(--on-accent); font-size: 28px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; font-family: inherit;
  background: linear-gradient(var(--accent), var(--accent)) padding-box, var(--rim) border-box;
  box-shadow: 0 14px 36px color-mix(in oklab, var(--accent) 40%, transparent), var(--sheen); animation: scChipIn .35s ease both; }
.sc-callchip::before { content: ''; position: absolute; inset: -1px; border-radius: 999px; border: 2.5px solid var(--accent);
  animation: scWave 2.2s ease-out infinite; pointer-events: none; }

/* ── full-stage takeovers (the soft .lifescreen material) ── */
.sc-life { position: absolute; inset: 0; z-index: 75; text-align: center; color: var(--ink); }
.sc-life::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(245,243,239,.62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sc-life--check { z-index: 78; }
.sc-life-col { position: absolute; left: 64px; right: 64px; top: 44%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sc-life-top { position: absolute; left: 24px; right: 24px; top: 17%; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.sc-life-hd { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 40px; }
.sc-life-mark { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 16%, var(--panel-solid)); color: var(--sc-accent-ink); }
.sc-life-title { font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1.18; text-wrap: balance; margin: 0; }
.sc-life-sub { font-size: 28px; font-weight: 500; color: var(--ink-2); max-width: 800px; line-height: 1.34; margin: 0; text-wrap: balance; }
.kiosk[lang="th"] .sc-life-sub { line-height: 1.45; }
.sc-life-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 36px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 26px; font-weight: 700; --glass-fill: rgba(255,255,255,.10); border: 1px solid transparent; color: var(--ink);
  background: linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box, var(--rim) border-box;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.sc-life-btn--big { min-width: 420px; padding: 24px 56px; font-size: 30px; --glass-fill: rgba(255,255,255,.66); box-shadow: var(--shadow), var(--sheen); }
.sc-life-foot { position: absolute; left: 0; right: 0; bottom: 96px; display: flex; justify-content: center; }
.sc-note-pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 999px;
  font-size: 22px; font-weight: 600; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--hair); }
.sc-note-pill .ic { color: var(--sc-accent-ink); }

/* context card at the top of placing / ringing / connecting */
.sc-top-stack { position: absolute; top: 24px; left: 24px; right: 24px; z-index: 76; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sc-ctx { width: 100%; padding: 24px 32px; border-radius: 30px; text-align: start;
  border: 1px solid transparent; --glass-fill: rgba(255,255,255,.6);
  background: var(--lens) padding-box, linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box, var(--rim) border-box;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); box-shadow: var(--shadow), var(--sheen);
  display: flex; align-items: center; gap: 24px; animation: scDropIn .4s cubic-bezier(.2,.8,.2,1) both; }
.sc-ctx-main { flex: 1; min-width: 0; }
.sc-ctx-r { margin-top: 4px; font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.28; }
.sc-ctx-lang { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 500; color: var(--ink-2); }
.sc-ctx-lang b { color: var(--ink); }
.sc-ctx-lang .ic { color: var(--sc-accent-ink); }

/* the ring (StillThere's .stillbtn + .cd-ring) — the arc = time LEFT */
.sc-ringwrap { position: relative; width: 200px; height: 200px; margin: 30px 0 40px; }
.sc-ring-core { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); z-index: 1;
  background: radial-gradient(120% 120% at 30% 25%, color-mix(in oklab, var(--accent) 86%, white) 0%, var(--accent) 70%);
  box-shadow: 0 18px 44px color-mix(in oklab, var(--accent) 45%, transparent), inset 0 2px 6px rgba(255,255,255,.4); }
.sc-ring-core .sc-wig { animation: scWiggle 1.6s ease-in-out infinite; }
.sc-ring-core b { font-size: 50px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-cd-ring { --cd-w: 10px; --cd-gap: 14px; position: absolute; inset: calc(0px - var(--cd-gap) - var(--cd-w)); border-radius: 50%; z-index: 0;
  background: conic-gradient(var(--accent) calc(var(--frac, 0) * 360deg), color-mix(in oklab, var(--accent) 18%, transparent) 0deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--cd-w)), #000 calc(100% - var(--cd-w)));
          mask: radial-gradient(farthest-side, transparent calc(100% - var(--cd-w)), #000 calc(100% - var(--cd-w)));
  animation: scPulse 1.7s ease-in-out infinite; }
.sc-cd-ring--spin { background: conic-gradient(var(--accent) 0 90deg, color-mix(in oklab, var(--accent) 18%, transparent) 0deg);
  animation: scSpin 1.1s linear infinite; }
.sc-ripple { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; z-index: 0; animation: scRipple 2.4s ease-out infinite; }
.sc-ripple + .sc-ripple { animation-delay: 1.2s; }
.sc-ring-check { position: absolute; right: -6px; bottom: -6px; z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #1c8a52; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.sc-ring-meta { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px; border-radius: 999px;
  font-size: 24px; font-weight: 600; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--hair); }
.sc-ring-meta i { width: 12px; height: 12px; border-radius: 50%; background: #35c07a; box-shadow: 0 0 0 5px rgba(53,192,122,.22); }
.sc-ring-meta i.wait { background: #b9b3a8; box-shadow: 0 0 0 5px rgba(150,140,125,.2); }

/* ── in call — StaffCallView ── */
.sc-call { position: absolute; inset: 0; z-index: 75; color: var(--ink); }
.sc-call::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 43%; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(245,243,239,.72) 0%, rgba(245,243,239,.5) 40%, rgba(245,243,239,0) 100%); }
.sc-call-head { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; align-items: center; gap: 22px;
  padding: 20px 30px; border-radius: 30px; border: 1px solid transparent; --glass-fill: rgba(255,255,255,.55);
  background: var(--lens) padding-box, linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box, var(--rim) border-box;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); box-shadow: var(--shadow), var(--sheen); animation: scDropIn .4s cubic-bezier(.2,.8,.2,1) both; }
.sc-who-badge { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--sc-accent-ink);
  background: color-mix(in oklab, var(--accent) 14%, var(--panel-solid)); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--accent) 38%, transparent); }
.sc-who { flex: 1; min-width: 0; text-align: start; }
.sc-who-name { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.sc-who-sub { margin-top: 6px; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; color: var(--ink-2); }
.sc-live-dot { width: 12px; height: 12px; border-radius: 50%; background: #35c07a; box-shadow: 0 0 0 4px rgba(53,192,122,.22); flex: none; }
.sc-live-dot.warn { background: #e0a33a; box-shadow: 0 0 0 4px rgba(224,163,58,.25); }
.sc-call-time { text-align: end; flex: none; }
.sc-call-time b { display: block; font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
/* subtitles: between the call header and the face line, latest cue only; 40 px+ like the kiosk band */
.sc-subs-zone { position: absolute; top: 204px; bottom: calc(100% - var(--avatar-y)); left: 24px; right: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: hidden; }
.sc-cue { width: 100%; flex: none; padding: 20px 34px 22px; border-radius: 24px; text-align: center; color: #fff;
  background: rgba(12,12,16,.6); box-shadow: 0 10px 34px rgba(0,0,0,.18); animation: scCueIn .28s ease both; }
.sc-cue-tr { font-size: 48px; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.9); }
.sc-cue-tr.is-draft { color: rgba(255,255,255,.72); }
.sc-cue-you { max-width: 100%; flex: none; padding: 12px 26px; border-radius: 18px; background: rgba(12,12,16,.62);
  font-size: 32px; font-weight: 500; font-style: italic; line-height: 1.32; color: rgba(255,255,255,.92); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sc-cue-you:lang(th), .sc-cue-you:lang(ar), .sc-cue-you:lang(zh), .sc-cue-you:lang(ja), .sc-cue-you:lang(ko), .sc-cue-you:lang(hi) { font-style: normal; }
.sc-cue-you b { font-style: normal; font-weight: 600; color: rgba(255,255,255,.8); }
.sc-call-banner { width: 100%; flex: none; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 28px; border-radius: 24px;
  background: #fff6e2; border: 2px solid #e6b95a; color: #4d3408; font-size: 28px; font-weight: 700; }
.sc-reconn { width: 100%; flex: none; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 22px 30px; border-radius: 26px; background: rgba(14,13,11,.76); color: #fff; font-size: 30px; font-weight: 700; text-align: start; }
.sc-reconn small { display: block; font-size: 22px; font-weight: 500; opacity: .9; }
.sc-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: color-mix(in oklab, var(--accent) 55%, #fff);
  animation: scSpin 1s linear infinite; flex: none; }
.sc-spin-sm { width: 26px; height: 26px; border-radius: 50%; border: 3.5px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-top-color: var(--accent); animation: scSpin 1s linear infinite; flex: none; }
.sc-call-hint { position: absolute; left: 0; right: 0; bottom: 288px; display: flex; justify-content: center; }
.sc-call-controls { position: absolute; left: 0; right: 0; bottom: 104px; display: flex; justify-content: center; align-items: center; gap: 36px; }
.sc-vol { display: flex; align-items: center; height: 120px; border-radius: 60px; padding: 0 8px; color: var(--ink);
  border: 1px solid transparent; --glass-fill: rgba(255,255,255,.66);
  background: linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box, var(--rim) border-box;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); box-shadow: var(--shadow), var(--sheen); }
.sc-vol-step { width: 84px; height: 120px; display: grid; place-items: center; font-size: 48px; font-weight: 500; border: 0; background: none; color: inherit; cursor: pointer; }
.sc-vol-glyph { width: 64px; display: grid; place-items: center; }
.sc-btn-end { display: inline-flex; align-items: center; justify-content: center; gap: 16px; height: 120px; padding: 0 60px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 34px; font-weight: 800; color: var(--sc-accent-ink); background: rgba(255,255,255,.88);
  border: 4px solid var(--accent); box-shadow: 0 14px 36px color-mix(in oklab, var(--accent) 30%, transparent); }
.sc-chk-actions { position: absolute; left: 0; right: 0; bottom: 250px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sc-btn-here { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-width: 600px; height: 140px; padding: 0 60px; cursor: pointer; font-family: inherit;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 44px; font-weight: 800;
  box-shadow: 0 16px 40px color-mix(in oklab, var(--accent) 42%, transparent); }

/* ── the fallback menu ── */
.sc-fb-list { position: absolute; left: 0; right: 0; bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: start; }
.sc-fb-list > .sc-fb-primary, .sc-fb-list > .sc-fb-card { width: calc(100% - 128px); max-width: 900px; }
.sc-fb-primary { display: flex; align-items: center; gap: 24px; padding: 24px 34px; border-radius: 34px; border: 0; cursor: pointer; font-family: inherit;
  background: var(--accent); color: var(--on-accent); text-align: start;
  box-shadow: 0 14px 36px color-mix(in oklab, var(--accent) 40%, transparent); }
.sc-fb-primary b { display: block; font-size: 34px; font-weight: 800; line-height: 1.2; }
.sc-fb-primary span span { display: block; margin-top: 4px; font-size: 22px; font-weight: 500; }
.sc-fb-card { display: flex; align-items: center; gap: 22px; padding: 22px; padding-inline-start: 30px; border-radius: 30px; color: var(--ink); text-align: start;
  border: 1px solid transparent; --glass-fill: rgba(255,255,255,.74);
  background: linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box, var(--rim) border-box;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); box-shadow: var(--shadow), var(--sheen); }
.sc-fb-card-main { flex: 1; min-width: 0; }
.sc-fb-card-title { display: flex; align-items: center; gap: 14px; font-size: 29px; font-weight: 700; }
.sc-fb-card-title .ic { color: var(--sc-accent-ink); }
.sc-fb-card-sub { margin-top: 6px; font-size: 23px; line-height: 1.38; font-weight: 500; color: var(--ink-2); }
.sc-fb-go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 16px 20px; padding-inline-start: 26px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 24px; font-weight: 700; color: var(--sc-accent-ink); background: color-mix(in oklab, var(--accent) 12%, #fff);
  border: 2px solid color-mix(in oklab, var(--accent) 36%, transparent); }

/* ── message: the kiosk keyboard with a request header ── */
.sc-kbwrap .kb-anchor { z-index: 76; }
.sc-kb-head { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; padding: 4px 6px 18px; border-bottom: 1px solid var(--hair); text-align: start; }
.sc-kb-head-t { display: flex; align-items: center; gap: 16px; font-size: 36px; font-weight: 700; color: var(--ink); }
.sc-kb-head-t .ic { color: var(--sc-accent-ink); }
.sc-kb-req { font-size: 26px; font-weight: 500; color: var(--ink-2); }
.sc-kb-req b { color: var(--ink); font-weight: 600; }
.sc-kb-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 22px; font-weight: 500; color: var(--ink-2); }
.sc-kb-meta span { display: inline-flex; align-items: center; gap: 8px; }
.sc-kb-meta .ic { color: var(--sc-accent-ink); flex: none; }
.sc-kb-meta b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; flex: none; }

/* ── a line inside the answer box: "Call ended · 2:41", "Your request was sent to the team." ── */
.box-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; width: fit-content; max-width: 100%;
  margin: 0 0 18px; padding: 12px 22px; border-radius: 18px; font-size: 24px; font-weight: 600; color: var(--ink);
  background: var(--panel-solid); border: 1px solid var(--hair-2); }
.box-note small { font-size: 22px; font-weight: 500; color: var(--ink-2); }
.box-note-ic { display: inline-grid; place-items: center; color: var(--sc-accent-ink); }
.box-note--ok { background: #e7f6ee; border-color: #a9dcbf; color: #14603a; }
.box-note--ok small { color: #245c3f; }
.box-note--ok .box-note-ic { color: #1c8a52; }

/* short panels (iPad 3:4): tighter rhythm */
.kiosk[data-panel="3x4"] .sc-card { gap: 12px; padding: 24px 34px 20px; }
.kiosk[data-panel="3x4"] .sc-stack { bottom: 72px; }

@keyframes scRiseIn { from { transform: translateY(24px); } to { transform: none; } }
@keyframes scDropIn { from { transform: translateY(-12px); } to { transform: none; } }
@keyframes scChipIn { from { transform: translateY(-8px) scale(.98); } to { transform: none; } }
@keyframes scCueIn { from { transform: translateY(8px); } to { transform: none; } }
@keyframes scPulse { 0%,100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes scSpin { to { transform: rotate(360deg); } }
@keyframes scRipple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes scWave { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.12, 1.35); opacity: 0; } }
@keyframes scWiggle { 0%,60%,100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .sc-layer *, .sc-life *, .sc-call * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }

/* perf-lite / weak GPU: blur and shadows off, glass near-opaque so text never sits on bare video */
html.arc-perf-lite .sc-life::before, html.arc-weak-gpu .sc-life::before { background: rgba(245,243,239,.86); }
html.arc-perf-lite .sc-card, html.arc-weak-gpu .sc-card { background: rgba(250,249,246,.98); border: 2px solid rgba(22,20,15,.12); }
html.arc-perf-lite .sc-cue, html.arc-perf-lite .sc-reconn { background: rgba(12,12,16,.82); }
html.arc-perf-lite .sc-cue-you { background: rgba(12,12,16,.74); }
html.arc-perf-lite .sc-btn-end { background: #fff; }

/* ── Old-WebView fallback (Chromium < 111 has no CSS color-mix()) ──
   Twin of the block at the end of index.html's <style>. On an old Android System WebView (e.g. the
   Lumya RK3588S panel, Cr107) every color-mix() declaration above is dropped, so the call-ring mic,
   the badges, the countdown arcs and the spinners lose their fill / ring and read as absent. Applies
   ONLY when color-mix is unsupported; modern WebView skips the whole block. Glows are left to drop. */
@supports not (color: color-mix(in oklab, red, blue)) {
  .kiosk { --sc-accent-ink: var(--ink); }
  .sc-badge, .sc-who-badge { background: var(--panel-solid); box-shadow: inset 0 0 0 2px var(--accent); }
  .sc-honest { background: var(--panel-solid); border: 1px solid var(--accent); }
  .sc-life-mark { background: var(--panel-solid); }
  .sc-ring-core { background: var(--accent);
    box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 2px 6px rgba(255,255,255,.4); }
  .sc-cd-ring { background: conic-gradient(var(--accent) calc(var(--frac, 0) * 360deg), transparent 0deg); }
  .sc-cd-ring--spin { background: conic-gradient(var(--accent) 0 90deg, transparent 0deg); }
  .sc-spin { border-top-color: var(--accent); }
  .sc-spin-sm { border: 3.5px solid var(--hair); border-top-color: var(--accent); }
  .sc-fb-go { background: var(--panel-solid); border: 2px solid var(--accent); }
}
