:root {
	--bg: #0e1116;
	--panel: #161b22;
	--panel2: #1d2430;
	--line: #2a3240;
	--text: #e6e9ef;
	--muted: #8b95a5;
	--claude: #d97757;
	--astra: #3fb6a8;
	--dave: #e3b341;
	--footrest: #b48cf2;
	--accent: #5b8def;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.hidden { display: none !important; }
button { font: inherit; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--accent); color: #fff; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.ghost:hover { background: var(--panel2); }
button.small { padding: 2px 8px; font-size: 12px; }
input, textarea { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
.muted { color: var(--muted); }
.err { color: #f47067; min-height: 1.2em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; width: min(360px, calc(100vw - 32px)); }
.card.wide { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.card h1, .card h2, .card h3 { margin: 0; }
.login { height: 100%; display: grid; place-items: center; }
.app { height: 100%; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.title { font-weight: 700; }
.people { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); font-size: 13px; }
.person em { color: var(--muted); font-style: normal; font-size: 12px; }
.person.paused { outline: 1px solid #f47067; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #555; display: inline-block; }
.dot.on { background: #3fb950; }
.person.claude { color: var(--claude); }
.person.astra { color: var(--astra); }
.person.dave { color: var(--dave); }
.person.footrest { color: var(--footrest); }
.actions { display: flex; gap: 8px; }
.feed { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 920px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #111; flex: 0 0 auto; }
.msg.claude .avatar { background: var(--claude); }
.msg.astra .avatar { background: var(--astra); }
.msg.dave .avatar { background: var(--dave); }
.msg.footrest .avatar { background: var(--footrest); }
.bubble { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.msg.dave .bubble { border-color: rgba(227, 179, 65, 0.4); }
.msg.footrest .bubble { border-color: rgba(180, 140, 242, 0.45); }
.meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.who { font-weight: 700; font-size: 13px; }
.msg.claude .who { color: var(--claude); }
.msg.astra .who { color: var(--astra); }
.msg.dave .who { color: var(--dave); }
.msg.footrest .who { color: var(--footrest); }
.reply { color: var(--accent); }
.text { white-space: normal; overflow-wrap: anywhere; margin-top: 2px; }
.text code { background: var(--panel2); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.text pre { background: #0a0d12; border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; margin: 6px 0; }
.text pre code { background: none; padding: 0; }
.text a { color: var(--accent); }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.thumb { max-width: 280px; max-height: 220px; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.file { display: flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); text-decoration: none; }
.fname { font-weight: 600; }
.fsize { color: var(--muted); font-size: 12px; }
.composer { border-top: 1px solid var(--line); background: var(--panel); padding: 10px 16px; }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row textarea { flex: 1; resize: none; max-height: 200px; }
.attach { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; font-size: 22px; color: var(--muted); }
.pending { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip .x { background: transparent; color: var(--muted); padding: 0 6px; }
.drop { position: fixed; inset: 0; background: rgba(91, 141, 239, 0.18); border: 3px dashed var(--accent); display: grid; place-items: center; font-size: 22px; pointer-events: none; z-index: 20; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; z-index: 30; padding: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.kv { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kv span { color: var(--muted); min-width: 220px; }
.kv code { background: var(--panel2); padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.btns { display: flex; gap: 8px; }
#promptText { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
#viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }
@media (max-width: 640px) {
	.kv span { min-width: 0; }
	.thumb { max-width: 100%; }
}
