/* MatthewMail calls (chat2-calls 2026-10-25): incoming call, call screen, mini call, recording, call bubbles, call history.
   Same family as chat.css 0.9.44: black + Matthew red, Atkinson Hyperlegible Next (made for low vision), big targets (64 px),
   nothing overlaps from 360 to 1920 px. The call screen is always dark (video looks best on black); chat-side parts follow
   the chat's Light/Dark theme through its own variables. */
.mxc {
  --c-bg: #050506; --c-pane: #0E0E11; --c-raised: #1A1A1F; --c-line: #2C2C34; --c-text: #F2F0ED; --c-text2: #B5B3BA; --c-text3: #8A8890;
  --c-red: #C8102E; --c-red2: #8E0B1F; --c-ember: #FF3B4E; --c-green: #1DB954; --c-green2: #12863B; --c-warn: #F2B544;
  font-family: 'Atkinson Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--c-text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; line-height: 1.35; box-sizing: border-box;
}
.mxc *, .mxc *::before, .mxc *::after { box-sizing: border-box; }
:where(.mxc) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; min-height: 0; box-shadow: none; }
.mxc button:focus-visible, .mxc a:focus-visible { outline: 3px solid #FF6B7A; outline-offset: 3px; border-radius: 14px; }
.mxc[hidden], .mxc [hidden], .mxc-settings [hidden] { display: none !important; }
.mxc-sheet, .mxc-sheet *, .mxc-settings, .mxc-settings *, .mxc-bub, .mxc-bub *, .mxc-recbub, .mxc-recbub *, .mxc-hb, .mxc-hb * { box-sizing: border-box; }
.mxc-ic { display: inline-flex; width: 26px; height: 26px; flex: none; }
.mxc-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mxc-ic svg.f { stroke: none; fill: currentColor; }
.mxc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mxc-av { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--avbg) 70%, #fff), var(--avbg) 55%, color-mix(in srgb, var(--avbg) 70%, #000));
  color: #fff; font-weight: 750; font-size: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 22px rgba(0,0,0,.45); }
.mxc-av.md { width: 64px; height: 64px; font-size: 28px; }
.mxc-av.lg { width: 104px; height: 104px; font-size: 44px; }
.mxc-av.xl { width: 148px; height: 148px; font-size: 62px; }
.mxc-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; display: inline-block; }

/* ---------- round buttons */
.mxc-bwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; font-size: 15px; color: var(--c-text2); text-align: center; }
.mxc-round { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: transform .12s, background-color .15s, filter .15s;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mxc-round:hover { background: rgba(255,255,255,.2); }
.mxc-round:active { transform: scale(.94); }
.mxc-round.on { background: #fff; color: #111; }
.mxc-round.sm { width: 48px; height: 48px; }
.mxc-round.sm .mxc-ic { width: 22px; height: 22px; }
.mxc-round.accept { background: linear-gradient(165deg, #2FD866, var(--c-green2)); box-shadow: 0 6px 24px rgba(29,185,84,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.mxc-round.decline { background: linear-gradient(165deg, #F0283F, var(--c-red2)); box-shadow: 0 6px 24px rgba(200,16,46,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.mxc-round.accept:hover, .mxc-round.decline:hover { filter: brightness(1.1); }
.mxc-round.ghost { background: rgba(255,255,255,.14); }
.mxc-round.recbtn.on { background: #fff; color: var(--c-red); }
.mxc-round:disabled { opacity: .45; cursor: default; }
.mxc-ib { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; flex: none; }
.mxc-ib:hover { background: rgba(255,255,255,.12); }
.mxc-btn { font-family: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; background: var(--steel, rgba(255,255,255,.12)); color: var(--text, #fff);
  font-weight: 650; font-size: 18px; text-decoration: none; }
.mxc-btn.wide { width: 100%; margin-top: 12px; }
.mxc-btn.danger { background: transparent; color: var(--ember, #FF3B4E); border: 1.5px solid currentColor; }
.mxc-chip { color: inherit; font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--steel, rgba(255,255,255,.14)); color: inherit; font-weight: 600; font-size: .9em; }
.mxc-chip .mxc-ic { width: 20px; height: 20px; }

/* ---------- incoming call */
.mxc-ring { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); background: var(--c-bg); animation: mxcin .22s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.mxc-ring.out { animation: mxcout .2s ease forwards; }
.mxc-ring-bg { position: absolute; inset: -20%; background: radial-gradient(60% 45% at 50% 30%, rgba(200,16,46,.42), rgba(200,16,46,0) 70%), radial-gradient(80% 60% at 50% 110%, rgba(142,11,31,.5), rgba(0,0,0,0) 70%);
  animation: mxcglow 3.2s ease-in-out infinite; pointer-events: none; }
.mxc-ring-top, .mxc-ring-who, .mxc-ring-btns, .mxc-ring-alt, .mxc-quick { position: relative; }
.mxc-ring-top { display: flex; align-items: center; gap: 10px; color: var(--c-text2); font-size: 16px; font-weight: 600; }
.mxc-ring-top .mxc-ic { width: 18px; height: 18px; }
.mxc-logo { width: 30px; height: 30px; border-radius: 8px; }
.mxc-ring-who { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-top: 4vh; }
.mxc-ring-name { font-size: clamp(32px, 7vw, 46px); font-weight: 800; letter-spacing: -.01em; max-width: 92vw; overflow-wrap: anywhere; }
.mxc-ring-sub { font-size: 20px; color: var(--c-text2); }
.mxc-pulse { position: relative; display: grid; place-items: center; }
.mxc-pulse::before, .mxc-pulse::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255,59,78,.55); animation: mxcpulse 2s ease-out infinite; }
.mxc-pulse::after { animation-delay: 1s; }
.mxc-ring-alt { display: flex; justify-content: center; gap: 48px; margin-top: auto; }
.mxc-ring-alt .mxc-round { width: 58px; height: 58px; }
.mxc-ring-alt .mxc-bwrap { font-size: 16px; color: var(--c-text2); }
.mxc-ring-btns { display: flex; justify-content: space-around; align-items: flex-start; width: 100%; max-width: 440px; }
.mxc-ring-btns .mxc-round { width: 76px; height: 76px; }
.mxc-ring-btns .mxc-round .mxc-ic { width: 32px; height: 32px; }
.mxc-ring-btns .mxc-bwrap { color: var(--c-text); font-size: 17px; font-weight: 600; }
.mxc-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.mxc-quick .mxc-chip { background: rgba(255,255,255,.14); min-height: 48px; font-size: 17px; }

/* ---------- call screen */
.mxc-call { position: fixed; inset: 0; z-index: 2147482000; display: flex; flex-direction: column; background: var(--c-bg); animation: mxcin .2s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.mxc-call > .mxc-top, .mxc-call > .mxc-recbar, .mxc-call > .mxc-net, .mxc-call > .mxc-ctl { flex: none; }
.mxc-call.ending { animation: mxcout .5s ease .6s forwards; }
.mxc-top { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 10px 8px; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); z-index: 2; }
.mxc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mxc-title b { font-size: 22px; font-weight: 750; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxc-sub { display: inline-flex; align-items: center; gap: 7px; color: var(--c-text2); font-size: 16px; white-space: nowrap; max-width: 100%; overflow: hidden; }
.mxc-sub .mxc-ic { width: 16px; height: 16px; }
.mxc-enc { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .mxc-enc .w, .mxc-enc + .mxc-sep { display: none; } }
.mxc-time { font-variant-numeric: tabular-nums; color: var(--c-text); font-weight: 650; }
.mxc-path { color: var(--c-text3); }
.mxc-q { display: inline-flex; align-items: flex-end; gap: 3px; width: 28px; height: 22px; padding: 0 2px; }
.mxc-q i { width: 6px; border-radius: 2px; background: var(--c-green); }
.mxc-q i:nth-child(1) { height: 7px; } .mxc-q i:nth-child(2) { height: 13px; } .mxc-q i:nth-child(3) { height: 19px; }
.mxc-q[data-q="2"] i { background: var(--c-warn); } .mxc-q[data-q="2"] i:nth-child(3) { background: rgba(255,255,255,.22); }
.mxc-q[data-q="1"] i { background: var(--c-ember); } .mxc-q[data-q="1"] i:nth-child(n+2) { background: rgba(255,255,255,.22); }
.mxc-recbar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 16px; background: linear-gradient(90deg, #B00D27, #E01434 50%, #B00D27); color: #fff; font-size: 18px; z-index: 2;
  box-shadow: 0 4px 18px rgba(200,16,46,.45); }
.mxc-recbar .dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: mxcblink 1.2s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.mxc-recbar .t { font-variant-numeric: tabular-nums; font-weight: 650; }
.mxc-net { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; background: rgba(242,181,68,.16); color: #FFD27A; font-size: 17px; z-index: 2; }
.mxc-net .mxc-ic { width: 20px; height: 20px; }
.mxc-stage { position: relative; flex: 1 1 auto; width: 100%; display: grid; gap: 8px; padding: 8px; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.mxc-stage[data-n="2"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.mxc-stage[data-n="3"], .mxc-stage[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.mxc-stage[data-n="5"], .mxc-stage[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.mxc-stage[data-n="7"], .mxc-stage[data-n="8"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
@media (min-aspect-ratio: 4/3) {
  .mxc-stage[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .mxc-stage[data-n="5"], .mxc-stage[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .mxc-stage[data-n="7"], .mxc-stage[data-n="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}
.mxc-stage.spot { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 120px; }
.mxc-stage.spot .mxc-tile { grid-row: 2; }
.mxc-stage.spot .mxc-tile.main { grid-row: 1; grid-column: 1 / -1; }
.mxc-stage.waiting { display: grid; place-items: center; }
.mxc-wait { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mxc-wait-name { font-size: clamp(28px, 6vw, 40px); font-weight: 800; text-align: center; }
.mxc-tile { position: relative; min-height: 0; min-width: 0; border-radius: 22px; overflow: hidden; background: radial-gradient(90% 90% at 50% 40%, #1E1E25, #0B0B0E); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .15s; }
.mxc-tile.talking { box-shadow: inset 0 0 0 3px #FF3B4E, 0 0 24px rgba(255,59,78,.35); }
.mxc-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.mxc-tile.has-video video { opacity: 1; }
.mxc-tile.screen video { object-fit: contain; background: #000; }
.mxc-tile.has-video .mxc-tav { display: none; }
.mxc-tav { display: grid; place-items: center; }
.mxc-stage[data-n="1"] .mxc-tav .mxc-av { width: 148px; height: 148px; font-size: 62px; }
.mxc-stage[data-n="5"] .mxc-tav .mxc-av, .mxc-stage[data-n="6"] .mxc-tav .mxc-av, .mxc-stage[data-n="7"] .mxc-tav .mxc-av, .mxc-stage[data-n="8"] .mxc-tav .mxc-av, .mxc-stage.spot .mxc-tile:not(.main) .mxc-av { width: 64px; height: 64px; font-size: 28px; }
.mxc-tname { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 17px; font-weight: 650; }
.mxc-tname .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxc-tname .mi:empty { display: none; }
.mxc-tname .mxc-ic { width: 18px; height: 18px; color: #FF6B7A; }
.mxc-tnote { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #FFD27A; font-size: 16px; font-weight: 600; }
.mxc-tnote:empty { display: none; }
.mxc-self { position: absolute; right: 14px; bottom: 132px; width: clamp(96px, 26vw, 220px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #111; z-index: 3;
  box-shadow: 0 10px 34px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.18); touch-action: none; cursor: grab; }
@media (min-aspect-ratio: 4/3) { .mxc-self { aspect-ratio: 16 / 9; width: clamp(160px, 18vw, 300px); } }
.mxc-self video { width: 100%; height: 100%; object-fit: cover; }
.mxc-self.mirror video { transform: scaleX(-1); }
.mxc-ctl { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2.6vw, 22px); flex-wrap: wrap; padding: 12px 10px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); z-index: 2; }
.mxc-ctl .mxc-bwrap { min-width: 64px; }
@media (max-width: 420px) { .mxc-ctl .mxc-bwrap span { font-size: 13px; } .mxc-ctl .mxc-round { width: 58px; height: 58px; } .mxc-ctl { gap: 6px 4px; } .mxc-ctl .mxc-bwrap { min-width: 60px; } }

/* ---------- mini call (keep chatting) */
.mxc-mini { position: fixed; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 2147482500; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100vw - 28px)); padding: 10px;
  border-radius: 22px; background: rgba(14,14,17,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  cursor: pointer; touch-action: none; animation: mxcin .2s cubic-bezier(.2,.8,.2,1); }
.mxc-mini-v { position: relative; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; flex: none; background: #1A1A1F; }
.mxc-mini-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.mxc-mini.has-video .mxc-mini-v video { display: block; }
.mxc-mini-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mxc-mini-b b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxc-mini-b .t { color: var(--c-green); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 16px; }
.mxc-recdot { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--c-red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; animation: mxcblink 1.2s ease-in-out infinite; }

/* ---------- sheets (call options, recording, history) */
.mxc-sheetbg { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); animation: mxcfade .15s; }
@media (min-width: 700px) { .mxc-sheetbg { align-items: center; } }
.mxc-sheet { width: min(560px, 100%); max-height: 88%; overflow-y: auto; overscroll-behavior: contain; background: var(--surface, #16161A); color: var(--text, #F2F0ED); border-radius: 26px 26px 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.5); animation: mxcup .2s cubic-bezier(.2,.8,.2,1); font-size: 18px; }
@media (min-width: 700px) { .mxc-sheet { border-radius: 26px; padding-bottom: 18px; } }
.mxc-sheet.tall { min-height: 50%; }
.mxc-sheet h3 { margin: 6px 4px 10px; font-size: 24px; }
.mxc-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2, #3A3A44); margin: 4px auto 12px; }
.mxc-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 10px; border-radius: 16px; text-align: left; }
.mxc-row:hover { background: var(--steel, rgba(255,255,255,.08)); }
.mxc-row.on .mxc-ic { color: var(--ember, #FF3B4E); }
.mxc-row .l { display: flex; flex-direction: column; min-width: 0; }
.mxc-row .l span { color: var(--text-2, #B5B3BA); font-size: .85em; }
.mxc-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--steel, rgba(255,255,255,.08)); margin-bottom: 14px; }
.mxc-tab { flex: 1; min-height: 46px; border-radius: 12px; font-weight: 700; }
.mxc-tab.on { background: var(--surface, #1F1F25); box-shadow: 0 2px 10px rgba(0,0,0,.25); color: var(--ember, #FF3B4E); }
.mxc-recbody { line-height: 1.5; }
.mxc-recbody h4 { margin: 18px 0 6px; font-size: 1em; color: var(--ember, #FF3B4E); }
.mxc-recbody ul { margin: 0; padding-left: 1.2em; }
.mxc-recbody li { margin: 4px 0; }
.mxc-recbody .mxc-btn { margin: 8px 8px 0 0; }
.mxc-sum { font-size: 1.05em; }
.mxc-fine { color: var(--text-3, #8A8890); font-size: .85em; }
.mxc-warn { color: var(--ember, #FF3B4E); font-weight: 650; }
.mxc-empty { color: var(--text-2, #B5B3BA); text-align: center; padding: 24px 8px; }
.mxc-seg { margin: 0 0 10px; }
.mxc-ts { font-variant-numeric: tabular-nums; color: var(--ember, #FF3B4E); font-weight: 700; padding: 2px 6px; border-radius: 8px; }
.mxc-ts:hover { background: var(--steel, rgba(255,255,255,.08)); }

/* ---------- chat side: header buttons, join pill, call bubbles, recording bubble, history, settings */
.mxc-hb { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.mxc-hb [hidden] { display: none !important; }
.mxc-hb .mxc-join:not([hidden]) { display: inline-flex !important; align-items: center; }
.mxc-hb .mxc-ic { width: 24px; height: 24px; }
.mxc-join { width: auto !important; padding: 0 14px 0 10px !important; gap: 6px; border-radius: 999px !important; background: linear-gradient(165deg, #2FD866, #12863B) !important; color: #fff !important; font-weight: 750; }
.mxc-join .l { font-size: 16px; white-space: nowrap; }
@media (max-width: 400px) { .mxc-join .l { display: none; } .mxc-join { padding: 0 !important; width: 46px !important; } }
.mxc-bub { display: flex; align-items: center; gap: 12px; min-width: min(300px, 74vw); padding: 4px 2px; }
.mxc-bub-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); flex: none; }
.mxc-bub.missed .mxc-bub-ic { background: rgba(255,59,78,.18); color: var(--ember, #FF3B4E); }
.mxc-bub-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mxc-bub-t span { opacity: .8; font-variant-numeric: tabular-nums; }
.mxc-bub.missed b { color: var(--ember, #FF3B4E); }
.mxc-bub-btn { color: inherit; font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 700; font-size: .88em; }
.mxc-bub-btn .mxc-ic, .mxc-bub-ic .mxc-ic { width: 20px; height: 20px; }
.mxc-recbub { display: flex; flex-direction: column; gap: 10px; min-width: min(340px, 78vw); padding: 4px 2px; }
.mxc-rechead { display: flex; align-items: center; gap: 8px; }
.mxc-recdot2 { width: 12px; height: 12px; border-radius: 50%; background: #FF3B4E; box-shadow: 0 0 0 3px rgba(255,59,78,.25); }
.mxc-recstate { opacity: .75; font-size: .85em; margin-left: auto; }
.mxc-recrow { display: flex; align-items: center; gap: 10px; }
.mxc-recrow2 { display: flex; gap: 8px; flex-wrap: wrap; }
.mxc-recplay { border: 0; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #C8102E; flex: none; }
.mxc-recplay .mxc-ic { width: 22px; height: 22px; }
.mxc-scrub { flex: 1; min-width: 60px; accent-color: #FF3B4E; height: 28px; }
.mxc-rect { font-variant-numeric: tabular-nums; font-size: .85em; white-space: nowrap; }
.mxc-speed { color: inherit; font: inherit; border: 0; cursor: pointer; min-width: 48px; min-height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); font-weight: 800; font-size: .85em; }
.mxc-hrow { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 8px 6px; border-bottom: 1px solid var(--line, #2C2C34); }
.mxc-hrow > .mxc-ic { color: var(--text-2, #B5B3BA); }
.mxc-hrow.missed > .mxc-ic, .mxc-hrow.missed b { color: var(--ember, #FF3B4E); }
.mxc-hrow .l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mxc-hrow .l span { color: var(--text-2, #B5B3BA); font-size: .85em; }
.mxc-hrow .l .rec { display: inline-flex; align-items: center; gap: 4px; color: var(--ember, #FF3B4E); }
.mxc-hrow .l .rec .mxc-ic { width: 14px; height: 14px; }
.mxc-hrow .mxc-round { background: var(--steel, rgba(255,255,255,.12)); color: var(--text, #fff); }
.mxc-settings h4 { margin: 8px 0; font-size: 1.05em; }
.mxc-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line, #2C2C34); cursor: pointer; }
.mxc-sw .l { display: flex; flex-direction: column; min-width: 0; }
.mxc-sw .l span { color: var(--text-2, #B5B3BA); font-size: .85em; }
.mxc-sw input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 54px; height: 32px; border-radius: 999px; background: var(--line-2, #3A3A44); position: relative; transition: background-color .15s; cursor: pointer; }
.mxc-sw input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.mxc-sw input[type=checkbox]:checked { background: #C8102E; }
.mxc-sw input[type=checkbox]:checked::after { transform: translateX(22px); }
.mxc-sw select { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--steel, #26262D); color: inherit; border: 1px solid var(--line-2, #3A3A44); font: inherit; }
.mxc-settings > .mxc-btn { margin-top: 14px; }

@keyframes mxcin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes mxcout { to { opacity: 0; transform: scale(.985); } }
@keyframes mxcfade { from { opacity: 0; } }
@keyframes mxcup { from { transform: translateY(40px); opacity: .4; } }
@keyframes mxcpulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes mxcglow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes mxcblink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mxc *, .mxc { animation: none !important; transition: none !important; } }

/* Command Center phone app: the call in Android's small picture-in-picture window - the people and the Recording bar only */
.mxc-call.pip > .mxc-top, .mxc-call.pip > .mxc-ctl, .mxc-call.pip > .mxc-net, .mxc-call.pip .mxc-self { display: none; }
.mxc-call.pip > .mxc-recbar { min-height: 0; padding: 2px 8px; font-size: 12px; gap: 6px; }
.mxc-call.pip > .mxc-recbar .dot { width: 8px; height: 8px; box-shadow: none; }

/* ---------- research E-09: reactions, raised hands, live captions (P2, 2026-10-25) */
.mxc-top .mxc-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-height: 0; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 700; flex: none;
  background: rgba(255,255,255,.14); color: #fff; }   /* p5: only the call screen's chips (the recording bubble's Notes / Transcript keep their own look) */
.mxc-top .mxc-chip .mxc-ic { width: 20px; height: 20px; }
.mxc-top .mxc-chip.hands { background: #F2B544; color: #1A1206; }
.mxc-top .mxc-chip.cc { background: rgba(70,140,255,.24); color: #DCE8FF; box-shadow: inset 0 0 0 1.5px rgba(120,170,255,.55); }
.mxc-thand { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 999px;
  background: #F2B544; color: #1A1206; font-weight: 800; font-size: 17px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.4); animation: mxchand .5s cubic-bezier(.2,1.6,.4,1); }
.mxc-thand .mxc-ic { width: 22px; height: 22px; }
.mxc-thand b:empty { display: none; }
@keyframes mxchand { from { transform: translateY(8px) scale(.6); opacity: 0; } }
.mxc-reacts { position: absolute; left: 0; right: 0; bottom: 120px; height: 0; z-index: 4; pointer-events: none; }
.mxc-fly { position: absolute; left: var(--x, 20%); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: mxcfly 2.8s cubic-bezier(.2,.7,.3,1) forwards; }
.mxc-fly .who { font-size: 14px; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; white-space: nowrap; }
@keyframes mxcfly { 0% { transform: translateY(20px) scale(.5); opacity: 0; } 12% { transform: translateY(0) scale(1.08); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-46vh) scale(.92); opacity: 0; } }
.mxc-emo { display: inline-block; object-fit: contain; }
.mxc-emo.word { width: auto; height: auto; min-width: var(--s, 48px); padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.16); font-weight: 750; font-size: 15px; text-align: center; }
.mxc-rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 6px 4px 12px; }
.mxc-rbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 92px; padding: 10px 4px; border-radius: 18px; font-size: 14px; color: var(--c-text2); }
.mxc-rbtn:hover, .mxc-rbtn:focus-visible { background: rgba(255,255,255,.08); }
.mxc-rbtn:active { transform: scale(.94); }
.mxc-cc { flex: none; align-self: center; width: min(760px, calc(100% - 24px)); margin: 0 auto 6px; padding: 10px 16px; border-radius: 16px; z-index: 3;
  background: rgba(0,0,0,.78); color: #fff; font-size: 21px; line-height: 1.35; min-height: 48px; box-shadow: 0 0 0 1.5px rgba(120,170,255,.4); }
.mxc-cc:empty::before { content: 'Live captions are on - they appear here when someone speaks'; color: #A9B4C8; font-size: 16px; }
.mxc-ccl b { color: #9EC3FF; }
.mxc-call.pip .mxc-chip, .mxc-call.pip .mxc-cc { display: none; }

/* ---------- research E-10: the drop-in voice room (walkie-talkie) */
.mxc-call.room .mxc-ctl .mxc-bwrap[data-k="talk"] { order: -1; flex-basis: 100%; }
.mxc-round.talk { width: 132px; height: 132px; background: linear-gradient(165deg, #2B2B33, #17171C); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.5);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mxc-round.talk .mxc-ic { width: 52px; height: 52px; }
.mxc-round.talk.on { background: linear-gradient(165deg, #2FD866, var(--c-green2)); color: #fff; box-shadow: 0 0 0 10px rgba(29,185,84,.22), 0 10px 34px rgba(29,185,84,.5); transform: scale(1.04); }
.mxc-bwrap[data-k="talk"] span { font-size: 18px; font-weight: 750; color: #fff; }
.mxc-call.room .mxc-tile.talking { box-shadow: 0 0 0 4px #2FD866, 0 0 40px rgba(47,216,102,.35); }
.mxc-wait-sub { margin-top: 8px; font-size: 17px; color: var(--c-text2); text-align: center; max-width: 30ch; }
.mxc-join.room { background: linear-gradient(165deg, #4E8DFF, #2357C9) !important; }
.mxc-roombtn .mxc-ic { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) {
  .mxc-fly { animation: mxcfade 2.8s linear forwards; bottom: 40px; }
  .mxc-thand { animation: none; }
  .mxc-round.talk.on { transform: none; }
}
@keyframes mxcfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
/* phones: the chips stay small so the caller's name keeps its room (the captions chip is the CC icon only; it still says it to screen readers) */
.mxc-call.phone .mxc-top .mxc-chip { height: 30px; padding: 0 8px; gap: 4px; font-size: 14px; }
.mxc-call.phone .mxc-top .mxc-chip.cc .t { display: none; }
.mxc-call.phone.room .mxc-path { display: none; }

/* ---------- rc2 fixes from practice run 0 */
/* R0-11: an in-call sheet stops above the call bar, so End is always there to tap (Escape closes the sheet) */
.mxc-sheetbg.incall { z-index: 2147482500; }
.mxc-sheet-h { margin: 2px 6px 8px; font-size: 20px; font-weight: 800; }
/* R0-04: on phones the Join / Drop in pill is compact (icon + how many are in it) so the chat name keeps its room */
.mxc-hb .mxc-join .c { display: none; font-weight: 800; font-size: 16px; }
@media (max-width: 480px) {
  .mxc-hb .mxc-join { padding: 0 10px 0 8px !important; gap: 4px; }
  .mxc-hb .mxc-join .l { display: none; }
  .mxc-hb .mxc-join .c { display: inline; }
  .mxc-hb .mx-ib { min-width: 40px; width: 40px; }
  .mxc-hb .mx-ib .mxc-ic { width: 22px; height: 22px; }
}
/* R0-22: a call card never stacks "Missed / video / call": the text stays on one line and Call back moves under it when narrow */
.mxc-bub { flex-wrap: wrap; row-gap: 8px; }
.mxc-bub-t { flex: 1 0 auto; }
.mxc-bub-t b { white-space: nowrap; }
.mxc-bub-btn { margin-left: auto; }
/* the call screen's own toast (the chat's toast is under the call screen) */
.mxc-toast { position: absolute; left: 50%; top: max(70px, calc(env(safe-area-inset-top) + 64px)); transform: translateX(-50%); z-index: 6; max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 999px; background: rgba(20,20,24,.92); color: #fff; font-size: 17px; font-weight: 650; box-shadow: 0 6px 24px rgba(0,0,0,.5); animation: mxcin .2s; text-align: center; }

/* ---------- p5 (run 2) */
/* R2-37: the recording bubble never runs past the screen edge (360 / 412, Largest text) */
.mxc-recbub { min-width: min(300px, 100%); max-width: 100%; }
.mxc-recrow { min-width: 0; flex-wrap: wrap; }
.mxc-recrow .mxc-scrub { min-width: 40px; flex: 1 1 80px; }
.mxc-rechead { flex-wrap: wrap; min-width: 0; }
