:root { --c:#0f766e; --c2:#115e59; --bg:#f1f5f4; --card:#fff; --mine:#d1fae5; --txt:#0f172a; --muted:#64748b; --err:#b91c1c; }
* { box-sizing: border-box; }
html, body { margin:0; height:100%; }
body { font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--txt); display:flex; flex-direction:column; }
.top { display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem; background:var(--c); color:#fff; position:sticky; top:0; z-index:5; }
.top h1 { font-size:1.05rem; margin:0; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
main { flex:1; display:flex; flex-direction:column; width:100%; max-width:760px; margin:0 auto; min-height:0; }
.view { padding:1rem; display:flex; flex-direction:column; gap:.75rem; }
#chatView { padding:0; flex:1; min-height:0; }
.hidden { display:none !important; }
.card { background:var(--card); border-radius:12px; padding:1rem; box-shadow:0 1px 2px #0001; }
.notice { background:#ecfdf5; border:1px solid #a7f3d0; }
.form { display:flex; flex-direction:column; gap:.6rem; }
.form.row { flex-direction:row; }
.form.row input { flex:1; }
label { display:flex; flex-direction:column; gap:.25rem; font-size:.9rem; color:#334155; }
input, select, textarea { font:inherit; padding:.6rem .7rem; border:1px solid #cbd5e1; border-radius:10px; background:#fff; width:100%; }
textarea { resize:none; max-height:140px; }
button { font:inherit; padding:.55rem .9rem; border-radius:10px; border:1px solid #cbd5e1; background:#fff; cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.primary { background:var(--c); color:#fff; border-color:var(--c); }
button.small { padding:.3rem .6rem; font-size:.85rem; }
button.icon { background:transparent; border:none; font-size:1.3rem; padding:.2rem .5rem; color:inherit; }
button.link { background:transparent; border:none; color:#fff; text-decoration:underline; }
.tabs { display:flex; gap:.5rem; }
.tab { flex:1; } .tab.active { background:var(--c); color:#fff; border-color:var(--c); }
.error { color:var(--err); min-height:1.2em; margin:0; }
.muted { color:var(--muted); } .small { font-size:.85rem; }
.list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.5rem; }
.list li { background:#fff; border-radius:12px; padding:.8rem 1rem; display:flex; justify-content:space-between; align-items:center; cursor:pointer; box-shadow:0 1px 2px #0001; }
.list li b { display:block; }
.chatinfo { display:flex; justify-content:space-between; align-items:center; padding:.4rem 1rem; background:#e2f3ef; }
.pill { font-size:.75rem; padding:.1rem .5rem; border-radius:99px; background:#cbd5e1; }
.pill.live { background:#bbf7d0; } .pill.poll { background:#fde68a; }
.messages { flex:1; overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:.55rem; min-height:0; }
.msg { max-width:85%; background:#fff; border-radius:14px; padding:.55rem .8rem .4rem; box-shadow:0 1px 1px #0001; align-self:flex-start; }
.msg.mine { align-self:flex-end; background:var(--mine); }
.msg .t { white-space:pre-wrap; word-wrap:break-word; }
.msg .meta { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem; margin-top:.3rem; font-size:.75rem; color:var(--muted); }
.msg .meta button { font-size:.75rem; padding:.15rem .45rem; border-radius:99px; }
.msg .meta .time { margin-right:auto; }
.msg .extra { margin-top:.4rem; padding:.45rem .6rem; background:#f8fafc; border-left:3px solid var(--c); border-radius:6px; font-size:.9rem; white-space:pre-wrap; }
.msg button.playing { background:var(--c); color:#fff; }
.panel { padding:.5rem 1rem; background:#fff; border-top:1px solid #e2e8f0; display:flex; flex-wrap:wrap; gap:.4rem; }
.composer { padding:.5rem; background:#fff; border-top:1px solid #e2e8f0; position:sticky; bottom:0; }
.composerrow { display:flex; gap:.4rem; align-items:flex-end; }
.voicebar, .drafttools { display:flex; gap:.5rem; align-items:center; padding:.2rem .3rem .5rem; flex-wrap:wrap; }
.toast { position:fixed; bottom:90px; left:50%; transform:translateX(-50%); background:#0f172a; color:#fff; padding:.55rem 1rem; border-radius:10px; font-size:.9rem; z-index:20; max-width:90%; }
table { width:100%; border-collapse:collapse; font-size:.85rem; }
td, th { border-bottom:1px solid #e2e8f0; padding:.4rem; text-align:left; vertical-align:top; }
