/* Akacia Medical AI agent — public call experience (mobile-first) */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/static/brand/IBMPlexSans-Regular-subset.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/static/brand/IBMPlexSans-SemiBold-subset.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/static/brand/IBMPlexSans-Bold-subset.woff2") format("woff2"); }

:root {
  --blue: #00529B; --gold: #D4AF37; --gold-dark: #B8942A; --midnight: #020617; --slate: #F8FAFC;
  --sand: #E8DFD7; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --danger: #dc2626; --ok: #15803d;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--slate); color: var(--ink); font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.45; overscroll-behavior: none; }
body.in-call { background: #000; overflow: hidden; }
h1, h2 { margin: 0; line-height: 1.15; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
.muted { color: var(--muted); margin: .25rem 0 0; }
.error { color: var(--danger); }

/* ---------- start ---------- */
.screen { min-height: 100dvh; display: flex; flex-direction: column; }
.start { background: linear-gradient(180deg, #fff 0%, var(--slate) 55%, var(--sand) 100%); padding: calc(var(--sat) + 1.25rem) max(1.25rem, var(--sar)) calc(var(--sab) + 1.5rem) max(1.25rem, var(--sal)); }
.start-brand { text-align: center; }
.start-brand img { width: 200px; height: auto; }
.start-brand.small img { width: 150px; }
.start-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9rem; max-width: 420px; margin: 0 auto; width: 100%; }
.portrait-wrap { width: min(62vw, 240px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 82, 155, .18), 0 0 0 6px #fff; background: var(--sand); }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.start h1 { font-size: clamp(1.5rem, 6vw, 2rem); color: var(--midnight); font-weight: 700; }
.lede { margin: 0; color: var(--muted); max-width: 32ch; }
.call-btn { margin-top: .5rem; display: inline-flex; align-items: center; gap: .75rem; background: var(--ok); color: #fff; border: none; border-radius: 999px; padding: 1rem 2rem; font-size: 1.15rem; font-weight: 600; box-shadow: 0 12px 30px rgba(21, 128, 61, .35); transition: transform .08s; }
.call-btn:active { transform: scale(.97); }
.call-btn:disabled { opacity: .6; }
.call-icon { width: 1.4rem; height: 1.4rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.note { font-size: .8rem; color: var(--muted); margin: 0; max-width: 34ch; }

/* ---------- call ---------- */
/* Every call sits on the same soft-focus room background (background.jpg), so no layout ever shows
   hard black bars or a cropped face. Two looks, chosen by the FaceTime setting:
   - FaceTime (default): immersive. Phones in portrait: edge to edge. Anything wider (desktop,
     tablets in landscape, phones in landscape): a centred portrait "phone" frame.
   - Classic (body.classic): a video window showing the whole avatar plus a transcript panel. */
.call { position: relative; height: 100dvh; min-height: 0; background: var(--midnight); overflow: hidden; }
.call::before { content: ""; position: absolute; inset: 0; background: url("/static/background.jpg") center / cover no-repeat; filter: brightness(.55); }
.call-layout { position: relative; height: 100%; }
.stage { position: relative; height: 100%; overflow: hidden; background: #000; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; background: url("/static/background.jpg") center / cover no-repeat; z-index: 0; }
.stage video, .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1; }
.poster { filter: brightness(.6); transition: opacity .6s; animation: breathe 2.4s ease-in-out infinite; }
.stage.live .poster { opacity: 0; animation: none; }
@keyframes breathe { 50% { filter: brightness(.4); } }
.stage-top, .captions, .controls { z-index: 2; }
.stage-top { position: absolute; top: 0; left: 0; right: 0; padding: calc(var(--sat) + .9rem) calc(var(--sar) + 1rem) 2.5rem calc(var(--sal) + 1rem); background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); color: #fff; text-align: center; pointer-events: none; transition: opacity .4s; }
.stage-name { font-size: 1.35rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.stage-status { font-size: .9rem; opacity: .9; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.timer { font-variant-numeric: tabular-nums; }

/* captions: subtitles over the call, newest at the bottom, older fade */
.captions { position: absolute; left: calc(var(--sal) + .75rem); right: calc(var(--sar) + .75rem); bottom: calc(var(--sab) + 7.2rem); display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; pointer-events: none; max-height: 42%; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
.captions.off { display: none; }
.cap { align-self: flex-start; max-width: 92%; padding: .45rem .75rem; border-radius: 14px; background: rgba(2, 6, 23, .6); color: #fff; font-size: 1.02rem; line-height: 1.35; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: 0 1px 2px rgba(0,0,0,.5); transition: opacity .6s, transform .3s; word-wrap: break-word; }
.cap.you { align-self: flex-end; background: rgba(0, 82, 155, .72); }
.cap .who { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; margin-bottom: .1rem; }
.cap.partial { opacity: .85; }
.cap.old { opacity: .35; }
.cap.gone { opacity: 0; transform: translateY(-6px); }
/* links in captions/transcript: site pages open in a new tab, booking opens the form in the call */
.cap a, .tline a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; word-break: break-word; }
.cap a.book-link { color: var(--gold); }
.tline a { color: var(--blue); }
.tline a.book-link { color: var(--gold-dark); }



.controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; gap: 1.6rem; padding: 1.5rem 1rem calc(var(--sab) + 1.1rem); background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); transition: opacity .4s; }
.stage.idle .controls, .stage.idle .stage-top { opacity: 0; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: none; border: none; color: #fff; padding: 0; }
.ctl .ico { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; position: relative; transition: background .15s, transform .08s; }
.ctl:active .ico { transform: scale(.94); }
.ctl .ico::after { content: ""; width: 1.55rem; height: 1.55rem; background: #fff; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ctl.end .ico { background: #ef4444; width: 4.2rem; height: 4.2rem; }
.ctl[aria-pressed="true"]:not(.end) .ico { background: #fff; }
.ctl[aria-pressed="true"]:not(.end) .ico::after { background: var(--midnight); }
.ctl-label { font-size: .72rem; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ico-mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a4 4 0 0 0 4-4V6a4 4 0 0 0-8 0v5a4 4 0 0 0 4 4zm6-4a6 6 0 0 1-12 0H4a8 8 0 0 0 7 7.93V22h2v-3.07A8 8 0 0 0 20 11z'/%3E%3C/svg%3E"); }
#muteBtn[aria-pressed="true"] .ico-mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 11h-1.7a5.3 5.3 0 0 1-.4 2l1.2 1.2c.5-1 .9-2 .9-3.2zM14.9 11.1V6a3 3 0 0 0-6 0v.2l6 6zM4.3 3 3 4.3l6 6V11a3 3 0 0 0 3 3c.4 0 .8-.1 1.2-.2l1.7 1.7a5.4 5.4 0 0 1-2.9.8 5.2 5.2 0 0 1-5.2-5.3H5a7 7 0 0 0 6 6.9V21h2v-3.1c.9-.1 1.8-.4 2.6-.9l4.2 4.2 1.3-1.3L4.3 3z'/%3E%3C/svg%3E"); }
.ico-end { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .4-.23.74-.56.9-1 .5-1.9 1.13-2.7 1.87a1 1 0 0 1-1.4 0L.29 13.15a1 1 0 0 1 0-1.4A16.97 16.97 0 0 1 12 7c4.6 0 8.78 1.8 11.71 4.75a1 1 0 0 1 0 1.4l-2.45 2.44a1 1 0 0 1-1.4 0 11.4 11.4 0 0 0-2.7-1.87.99.99 0 0 1-.56-.9v-3.1C15.15 9.25 13.6 9 12 9z'/%3E%3C/svg%3E"); }
.ico-cc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-9 7H9.5v-.5h-2v3h2V13H11v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1zm7 0h-1.5v-.5h-2v3h2V13H18v1a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1z'/%3E%3C/svg%3E"); }

.transcript { display: none; }

/* ---- FaceTime on anything wider than a portrait phone: centred portrait frame ---- */
@media (min-aspect-ratio: 4/5) {
  body:not(.classic) .call-layout { display: grid; place-items: center; padding: calc(var(--sat) + 1rem) calc(var(--sar) + 1rem) calc(var(--sab) + 1rem) calc(var(--sal) + 1rem); }
  body:not(.classic) .stage { height: 100%; max-height: 940px; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.6); }
  body:not(.classic) .stage-top { padding-top: 1.1rem; }
  body:not(.classic) .controls { padding-bottom: 1.1rem; }
  body:not(.classic) .captions { bottom: 6.6rem; left: .6rem; right: .6rem; }
}
/* phones in landscape: the frame is short, so compact controls and captions */
@media (min-aspect-ratio: 4/5) and (max-height: 500px) {
  body:not(.classic) .call-layout { padding: .5rem calc(var(--sar) + .5rem) .5rem calc(var(--sal) + .5rem); }
  body:not(.classic) .stage { border-radius: 18px; }
  .stage-top { padding: .5rem .5rem 1.5rem; } .stage-name { font-size: 1rem; } .stage-status { font-size: .75rem; }
  .controls { gap: .9rem; padding: .6rem .5rem .6rem; }
  .ctl .ico { width: 2.6rem; height: 2.6rem; } .ctl.end .ico { width: 3rem; height: 3rem; } .ctl .ico::after { width: 1.2rem; height: 1.2rem; } .ctl-label { display: none; }
  body:not(.classic) .captions { bottom: 4.2rem; max-height: 34%; }
  .cap { font-size: .82rem; padding: .3rem .55rem; }
}

/* ---- Classic: whole avatar visible + transcript panel ---- */
body.classic .call { background: var(--slate); }
body.classic .call::before { filter: brightness(.95) saturate(.9); }
body.classic .call-layout { width: 100%; display: grid; grid-template-rows: minmax(0, 1fr) minmax(8rem, 36%); gap: .75rem; padding: calc(var(--sat) + .75rem) calc(var(--sar) + .75rem) calc(var(--sab) + .75rem) calc(var(--sal) + .75rem); max-width: 1320px; margin: 0 auto; }
body.classic .stage { border-radius: 22px; box-shadow: 0 16px 50px rgba(2, 6, 23, .22); }
body.classic .stage video, body.classic .poster { object-fit: contain; object-position: center; }
body.classic .captions { display: none; }
body.classic .transcript { display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; background: #fff; border-radius: 18px; padding: .9rem; box-shadow: 0 8px 30px rgba(2, 6, 23, .08); overscroll-behavior: contain; }
body.classic .transcript:empty::before { content: attr(data-empty); color: var(--muted); font-size: .9rem; margin: auto; }
.tline { max-width: 88%; align-self: flex-start; background: var(--slate); border: 1px solid var(--line); border-radius: 14px; padding: .5rem .75rem; font-size: .95rem; line-height: 1.4; }
.tline.you { align-self: flex-end; background: #e6f0fa; border-color: #cfe0f2; }
.tline .who { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .1rem; }
.tline.you .who { color: var(--blue); }
.tline.partial .txt { color: #475569; }
@media (min-width: 900px), (orientation: landscape) and (max-height: 500px) {
  body.classic .call-layout { grid-template-rows: 1fr; grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); }
}
body.classic .call-layout.no-transcript { grid-template-rows: 1fr; grid-template-columns: 1fr; }
body.classic .call-layout.no-transcript .transcript { display: none; }

/* ---------- post-call cards ---------- */
.card-screen { background: linear-gradient(180deg, #fff 0%, var(--slate) 60%, var(--sand) 100%); padding: calc(var(--sat) + 1.1rem) max(1rem, var(--sar)) calc(var(--sab) + 1.5rem) max(1rem, var(--sal)); align-items: center; gap: 1.25rem; }
.card { background: #fff; border-radius: 22px; box-shadow: 0 16px 50px rgba(2, 6, 23, .1); padding: 1.6rem 1.25rem; width: 100%; max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: .8rem; }
.card.wide { max-width: 560px; text-align: start; }
.card h2 { font-size: 1.45rem; color: var(--midnight); }
.card-avatar img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto; display: block; box-shadow: 0 0 0 4px var(--sand); }
.lead { margin: 0; font-size: 1.05rem; }
.lead.strong { font-weight: 600; color: var(--blue); margin-top: .5rem; }
.check-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--midnight); font-size: 2rem; font-weight: 700; display: grid; place-items: center; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: .8rem; text-align: start; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.two { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 480px) { .two { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: #334155; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .1rem; accent-color: var(--blue); flex-shrink: 0; }
.consent.invalid { color: var(--danger); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.btn { border: none; border-radius: 12px; padding: .9rem 1.2rem; font-weight: 600; font-size: 1rem; width: 100%; }
.btn.primary { background: var(--gold); color: var(--midnight); box-shadow: 0 8px 20px rgba(212, 175, 55, .35); }
.btn.primary:hover { background: var(--gold-dark); }
.btn.primary:disabled { opacity: .6; }
.btn.ghost { background: transparent; color: var(--blue); }
.field-error { color: var(--danger); font-size: .88rem; margin: 0; }
.fineprint { font-size: .75rem; color: var(--muted); margin: 0; }
.trust { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .4rem; grid-template-columns: 1fr; font-size: .85rem; color: #334155; }
.trust li { background: var(--slate); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; }
.trust li::before { content: "✓ "; color: var(--blue); font-weight: 700; }
@media (min-width: 480px) { .trust { grid-template-columns: repeat(3, 1fr); } }

/* language picker: compact pill; the invisible native select on top gives the platform's own list */
.lang-picker { position: fixed; z-index: 30; top: calc(var(--sat) + .7rem); inset-inline-end: calc(var(--sar) + .7rem); display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border-radius: 999px; background: rgba(255,255,255,.88); border: 1px solid var(--line); color: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .03em; box-shadow: 0 4px 14px rgba(2,6,23,.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang-picker:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-picker .globe { width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--globe) center/contain no-repeat; mask: var(--globe) center/contain no-repeat; --globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.93 6h-2.95a15.7 15.7 0 0 0-1.38-3.56A8.03 8.03 0 0 1 18.93 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14a8.2 8.2 0 0 1 0-4h3.38a16.5 16.5 0 0 0 0 4H4.26zm.81 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.99 7.99 0 0 1 5.07 16zm2.95-8H5.07a7.99 7.99 0 0 1 4.33-3.56A15.7 15.7 0 0 0 8.02 8zM12 19.96A14.1 14.1 0 0 1 10.09 16h3.82A14.1 14.1 0 0 1 12 19.96zM14.34 14H9.66a14.7 14.7 0 0 1 0-4h4.68a14.7 14.7 0 0 1 0 4zm.26 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56zM16.36 14a16.5 16.5 0 0 0 0-4h3.38a8.2 8.2 0 0 1 0 4h-3.38z'/%3E%3C/svg%3E"); }
body.in-call .lang-picker { display: none; }

/* the consultation form over a running call */
.screen.overlay { position: fixed; inset: 0; z-index: 40; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: rgba(2, 6, 23, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.screen.overlay .start-brand { display: none; }
.screen.overlay .card { margin: auto 0; }
.card-close { display: none; }
.screen.overlay .card-close { display: grid; place-items: center; position: sticky; top: .25rem; align-self: flex-end; margin: -.6rem -.35rem -2.9rem 0; width: 2.5rem; height: 2.5rem; border: none; border-radius: 50%; background: var(--slate); color: var(--ink); font-size: 1.5rem; line-height: 1; z-index: 1; box-shadow: 0 2px 8px rgba(2, 6, 23, .12); }
[dir="rtl"] .screen.overlay .card-close { margin: -.6rem 0 -2.9rem -.35rem; }
.screen.overlay .card-close:hover { background: var(--line); }
.screen.overlay .card.wide h2 { padding-inline-end: 2.75rem; }
/* sent during the call: a short success state, then the form closes by itself */
.form-success { display: none; }
.card.sent > :not(.form-success) { display: none; }
.card.sent .form-success { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.5rem 0; text-align: center; animation: success-in .25s ease-out; }
.card.sent .check-mark { animation: success-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes success-in { from { opacity: 0; transform: scale(.96); } }
@keyframes success-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

.toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 1rem); transform: translateX(-50%); background: var(--midnight); color: #fff; padding: .7rem 1rem; border-radius: 12px; z-index: 50; max-width: calc(100vw - 2rem); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: .95rem; }
.toast.error { background: #7f1d1d; }
/* during a call, above the captions/controls so End stays reachable */
body.in-call .toast { bottom: auto; top: calc(var(--sat) + 8rem); }
