*{box-sizing:border-box} [hidden]{display:none!important}
body{margin:0;background:#eef2ef;color:#182a24;font-family:system-ui,sans-serif}
main{max-width:740px;margin:clamp(0px,5vw,48px) auto;padding:clamp(16px,4vw,32px);background:#fff;border-radius:18px}
header, #compose{display:flex;align-items:center;justify-content:space-between;gap:12px}
h1{font-size:clamp(1.35rem,5vw,2rem);margin:0;color:#174d3a}
#status{color:#43574e;min-height:1.5em}
#login{max-width:400px;display:grid;gap:14px}label{display:grid;gap:5px}
input,button{font:inherit;padding:10px 14px;border-radius:9px}
input{border:1px solid #899a91;min-width:0}button{background:#174d3a;color:white;border:1px solid transparent;cursor:pointer}
button:disabled{opacity:.55;cursor:default}#compose input{flex:1}
ol{list-style:none;margin:0 0 14px;padding:12px;background:#f0f5f1;border-radius:12px;height:clamp(140px,50dvh,520px);overflow:auto;display:flex;flex-direction:column;gap:8px}
li{align-self:flex-start;max-width:90%;background:#fff;border-radius:10px;padding:9px 12px;overflow-wrap:anywhere}
li.mine{align-self:flex-end;background:#d9efe1}li strong{font-size:.8rem;color:#305746}li p{margin:4px 0 0;white-space:pre-wrap}

#call-controls{margin-bottom:12px}#call-status:empty{display:none}#remote-audio{max-width:100%;height:34px}#remote-audio:not([data-playing]){display:none}
