/* The Calls page on its own (static/comms/calls.html); the Calls tool itself is styled by /css/calls_inbox.css. */
:root {
    --bg-dark: #0b1120; --bg-panel: #111a2e; --border-color: rgba(148, 163, 184, .2); --text-primary: #e6edf7;
    --text-muted: #93a3bd; --accent: #2dd4bf; --font-sans: Inter, system-ui, "Segoe UI", sans-serif;
    --font-mono: Consolas, "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg-dark); color: var(--text-primary); font-family: var(--font-sans); display: flex; flex-direction: column; }
.cp-head { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-bottom: 1px solid var(--border-color); }
.cp-brand { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.cp-brand small { color: var(--text-muted); font-weight: 500; }
.cp-who { margin-left: auto; color: var(--text-muted); font-size: .8rem; }
.cp-head button[hidden] { display: none; }
.cp-gate { max-width: 420px; margin: 3rem auto; padding: 0 1rem; text-align: center; }
.cp-gate h1 { margin: 0 0 .5rem; font-size: 1.3rem; }
.cp-gate p { color: var(--text-muted); }
.cp-gate[hidden] { display: none; }
.cp-err { color: #f87171; font-size: .85rem; }
.cp-alt { font-size: .85rem; }
.cp-alt[hidden] { display: none; }
.cp-alt a { color: var(--accent); }
#view-calls { flex: 1; min-height: 0; padding: 1rem; height: auto; }
/* with video on the page grows past the window (calls_inbox.css), and a framing page grows its frame (calls_embed.js) */
body:has(.rl-media:not(.hidden):not(.voice-only)) { height: auto; min-height: 100%; }
.cp-toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; z-index: 10; }
.cp-toast { background: #1e293b; border: 1px solid var(--accent); padding: .5rem .8rem; border-radius: 8px; font-size: .85rem; max-width: 420px; }
.cp-toast.bad { border-color: #f87171; }
