:root { color-scheme: light dark; --bg: #f6f7f9; --card: #fff; --text: #14181d; --muted: #6a7480; --line: #e3e6ea; --accent: #1a6ef5; --green: #1fa84f; --red: #e0453b; }
@media (prefers-color-scheme: dark) { :root { --bg: #101418; --card: #1a2027; --text: #eef1f4; --muted: #96a1ad; --line: #2b333c; } }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 18px/1.4 system-ui, -apple-system, sans-serif; }
body { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
[hidden] { display: none !important; }
h1 { font-size: 28px; margin: 24px 0 8px; }
header { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; }
.conn { font-size: 14px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.conn.on { background: rgba(31,168,79,.18); color: var(--green); }
.conn.off { background: rgba(224,69,59,.18); color: var(--red); }
.hint { color: var(--muted); font-size: 15px; }
.banner { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px dashed var(--accent); background: transparent; color: var(--accent); border-radius: 12px; font: inherit; }
#contacts { list-style: none; padding: 0; margin: 0 0 16px; }
#contacts li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.who { flex: 1; min-width: 0; } .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 14px; color: var(--muted); } .who span.on { color: var(--green); }
.callbtn { border: 0; border-radius: 22px; padding: 10px 16px; background: var(--green); color: #fff; font: inherit; }
.callbtn:disabled { background: var(--line); color: var(--muted); }
#screen-call { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; text-align: center; gap: 8px; }
#call-name { font-size: 32px; font-weight: 600; }
#call-status { font-size: 20px; color: var(--muted); }
.call-actions { display: flex; gap: 28px; margin-top: 48px; }
.round { width: 72px; height: 72px; border-radius: 50%; border: 0; color: #fff; font-size: 28px; }
.round.green { background: var(--green); } .round.red { background: var(--red); } .round.neutral { background: #56606b; } .round.neutral.on { background: #fff; color: #111; }
#btn-hangup, #btn-reject { transform: rotate(135deg); } #btn-reject { transform: none; }
#toast { position: fixed; left: 16px; right: 16px; top: max(12px, env(safe-area-inset-top)); background: #20262d; color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 10; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
