:root { --bg:#0f1115; --card:#171a21; --line:#262b36; --text:#e8eaf0; --muted:#8b93a3; --accent:#4f8cff; }
* { box-sizing:border-box; }
body { margin:0; font:16px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--text); }
header { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); }
.logo { font-weight:700; color:var(--accent); }
#who { margin-left:auto; color:var(--muted); }
main { max-width:720px; margin:0 auto; padding:16px; }
.card, .tabpage { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; }
h1 { font-size:1.3rem; margin:0 0 8px; } h2 { font-size:1.05rem; margin:18px 0 6px; }
.muted { color:var(--muted); font-size:.85rem; }
.hidden { display:none !important; }
input, textarea, select { width:100%; padding:10px; margin:6px 0; background:#0d0f13; color:var(--text); border:1px solid var(--line); border-radius:8px; font:inherit; }
button { padding:10px 14px; margin:6px 0; background:var(--accent); color:#fff; border:0; border-radius:8px; font:inherit; cursor:pointer; }
button.roombtn { display:block; width:100%; text-align:left; background:#1d212b; margin:4px 0; }
.row { display:flex; gap:8px; align-items:center; } .row input, .row select { flex:1; }
.roomhead { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
#back { background:#1d212b; }
nav#tabs { display:flex; gap:6px; margin-bottom:10px; flex-wrap:wrap; }
nav#tabs button { background:#1d212b; padding:8px 12px; }
nav#tabs button.on { background:var(--accent); }
#msgs { min-height:200px; max-height:55vh; overflow-y:auto; padding:8px; }
.msg { padding:8px 10px; border-bottom:1px solid var(--line); }
.msg.dm { background:#1a2030; border-radius:8px; }
.msg.redacted .body { opacity:.9; }
.meta { font-size:.8rem; }
.body { white-space:pre-wrap; word-wrap:break-word; }
#composer { margin-top:8px; display:grid; gap:6px; }
#composer select { width:auto; }
.pill { background:#232936; border-radius:20px; padding:2px 10px; font-size:.75rem; }
.task.done { opacity:.65; }
ul { list-style:none; padding:0; }
li { padding:8px 0; border-bottom:1px solid var(--line); }
button.take, button.done, button.stuck, button.promote, button.revoke, button.answer { background:#2a3040; padding:6px 10px; font-size:.85rem; }
code { display:block; background:#0d0f13; padding:10px; border-radius:8px; word-break:break-all; user-select:all; }
footer { text-align:center; color:var(--muted); font-size:.8rem; padding:16px; }
footer a { color:var(--muted); }
/* Narrow layouts retain tap targets without squeezing form labels. */
.row > * { min-width:0; }
button { min-height:44px; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline:2px solid #8bb3ff; outline-offset:2px; }
a { color:#9ebeff; }
@media(max-width:520px) { .row { flex-wrap:wrap; } .row input, .row select { flex-basis:100%; } .row button { flex:1; } #who { max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
.msg-action { min-height:32px; padding:4px 9px; margin-right:6px; font-size:.75rem; background:#252d3b; color:#b7c4dd; }
#delete-room { background:#4c2630; margin-left:8px; color:#ffcfda; }

.invite-result { overflow-wrap:anywhere; }
