/* The in-app phone's call bar (web/lib/phone.js): fixed at the top over every screen while a call rings or is up. */
.phone-bar {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(8px + env(safe-area-inset-top)); z-index: 20;
  width: min(36rem, calc(100% - 16px)); padding: .65rem .8rem; border-radius: var(--radius-s);
  background: #12341f; color: #eafff0; border: 1px solid #2f7a4a; box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.phone-top { display: flex; align-items: center; gap: .7rem; }
.phone-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.phone-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.phone-who span { font-size: .85rem; opacity: .8; font-variant-numeric: tabular-nums; }
.phone-ctl { flex: none; display: flex; gap: .4rem; }
.phone-btn {
  min-height: 2.6rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: inherit; font: inherit; font-weight: 650; cursor: pointer;
}
.phone-btn.on { background: rgba(255,255,255,.18); }
.phone-btn.go { background: #34c759; border-color: #34c759; color: #04210f; }
.phone-btn.stop { background: #ff3b30; border-color: #ff3b30; color: #fff; }
.phone-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .6rem; }
.phone-key {
  min-height: 2.8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  color: inherit; font: 600 1.2rem/1 inherit; cursor: pointer;
}
@media (max-width: 420px) { .phone-btn { padding: .4rem .6rem; } }

/* ===== Material 3 draft (flag): in-app call bar as an M3 inverse-surface sheet. Inert when off. ===== */
:where([data-md3]) .phone-bar {
  z-index: var(--z-callbar, 20); border-radius: var(--md-sys-shape-corner-lg, 16px);
  background: var(--md-sys-color-inverse-surface, #12341f); color: var(--md-sys-color-inverse-on-surface, #eafff0); border: 0; box-shadow: var(--md-elev-3, 0 10px 30px rgba(0,0,0,.45));
}
:where([data-md3]) .phone-btn.go { background: var(--md-sys-color-inverse-primary, #34c759); border-color: transparent; }
:where([data-md3]) .phone-btn.stop { background: var(--md-sys-color-error, #ff3b30); border-color: transparent; color: var(--md-sys-color-on-error, #fff); }
