:root { --bg:#f7f7f5; --card:#fff; --ink:#1c1c1a; --muted:#6b6b66; --line:#e6e6e2; --accent:#1f6f5f; --danger:#b3261e; --agent:#eef5f3; --callee:#f3f1ea; --user:#eef0f7; }
* { box-sizing:border-box }
body { margin:0; font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; color:var(--ink); background:var(--bg) }
header { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; border-bottom:1px solid var(--line); background:var(--card); position:sticky; top:0; z-index:2 }
h1 { font-size:18px; margin:0 } h2 { font-size:16px; margin:0 0 10px }
main { max-width:900px; margin:0 auto; padding:16px; display:grid; gap:16px }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px }
.muted { color:var(--muted); font-size:13px }
.hidden { display:none !important }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px }
.row.space { justify-content:space-between }
label { display:block; margin:8px 0; font-size:13px; color:var(--muted) }
label.inline { display:flex; gap:8px; align-items:center; color:var(--ink) }
input,textarea,select { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; background:#fff; color:var(--ink) }
.row input { width:auto; flex:1 }
button { padding:8px 14px; border:1px solid var(--accent); background:var(--accent); color:#fff; border-radius:6px; font:inherit; cursor:pointer }
button.toggle { background:#fff; color:var(--accent) } button.toggle.on { background:var(--accent); color:#fff }
button.danger { background:var(--danger); border-color:var(--danger) }
button:disabled { opacity:.5; cursor:default }
.pill { padding:3px 10px; border-radius:999px; background:#eee; font-size:12px }
.pill.live { background:#d8f0e6; color:#135a46 } .pill.completed { background:#e3e3e3 } .pill.failed { background:#f6d9d6; color:#7a1a14 }
.setup ol { margin:0 0 8px; padding-left:20px }
meter { width:160px }
.transcript { max-height:50vh; overflow:auto; border:1px solid var(--line); border-radius:8px; padding:8px; margin-top:12px; display:flex; flex-direction:column; gap:6px; background:#fafaf8 }
.msg { padding:8px 10px; border-radius:8px; max-width:85%; white-space:pre-wrap }
.msg.agent { background:var(--agent); align-self:flex-end } .msg.callee { background:var(--callee); align-self:flex-start }
.msg.user { background:var(--user); align-self:center; font-size:13px } .msg.system { color:var(--muted); font-size:12px; align-self:center }
.msg.partial { opacity:.6; font-style:italic }
.msg .who { font-size:11px; color:var(--muted); display:block }
.question { border:2px solid var(--accent); background:#f1f8f6; border-radius:10px; padding:12px; margin-top:12px }
.q-text { font-weight:600 } .q-options { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px }
.q-options button { background:#fff; color:var(--accent) }
.controls { margin-top:12px }
.keypad { display:grid; grid-template-columns:repeat(3,64px); gap:6px; margin-top:8px }
.keypad button { background:#fff; color:var(--ink); border-color:var(--line); font-size:18px; padding:10px 0 }
.summary { margin-top:12px; padding:12px; border-radius:8px; background:#f1f8f6; white-space:pre-wrap }
#history .item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--line); cursor:pointer }
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px }
.profile-grid .share { font-size:12px } .profile-grid select { width:auto; padding:4px 6px; font-size:12px }
@media (max-width:640px){ .profile-grid { grid-template-columns:1fr } }
