:root { color-scheme: light dark; --accent: #4f52b2; --border: #8884; --muted: #888; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { margin: 0 0 8px; font-size: 26px; }
.lede { margin: 0 0 24px; }
.muted { color: var(--muted); }
button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid var(--border); padding: 8px 14px; background: transparent; color: inherit; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
button.link { border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.controls input[type=search] { flex: 1 1 260px; }
input, select { font: inherit; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: inherit; }
label.inline { display: inline-flex; gap: 6px; align-items: center; }
.chat-list { border: 1px solid var(--border); border-radius: 8px; max-height: 50vh; overflow: auto; }
.chat { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.chat:last-child { border-bottom: 0; }
.chat .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat .meta { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.chat .type { font-size: 12px; color: var(--muted); }
.chat-list > p { padding: 12px 14px; margin: 0; }
.actions { margin: 16px 0; }
progress { width: 100%; height: 10px; }
.help { margin-top: 32px; }
.error { color: #c4314b; }
.sub { margin: 0 0 8px; font-size: 17px; font-weight: 500; color: var(--muted); }
