:root { --ink: #0b0b0d; --cream: #f5f2ec; --blaze: #e0342c; --hunter: #2f5d46; --gold: #d9a441; --panel: #141418; --line: #2a2a30; --muted: #b9b4ab; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.top { display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 Outfit, system-ui, sans-serif; letter-spacing: .2px; }
.logo { width: 26px; height: 26px; background: #000; border: 1.5px solid #3a3a40; border-radius: 6px; position: relative; }
.logo::after { content: ""; position: absolute; left: 9px; top: 6px; border-left: 10px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tag { color: var(--muted); font-size: 13px; }
main { flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
main.chat { overflow: hidden; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
h1 { font: 800 26px/1.15 Outfit, system-ui, sans-serif; margin: 6px 0 6px; }
h2 { font: 700 18px/1.25 Outfit, system-ui, sans-serif; margin: 0 0 10px; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 12px 0; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 6px; }
input, textarea { width: 100%; background: #0f0f12; color: var(--cream); border: 1px solid #34343a; border-radius: 14px; padding: 13px 14px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.code-input { font: 800 26px/1 Outfit, monospace; letter-spacing: 4px; text-align: center; text-transform: uppercase; }
button { border: 0; border-radius: 999px; padding: 12px 20px; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; background: var(--cream); color: var(--ink); }
button.blaze { background: var(--blaze); color: #fff; }
button.quiet { background: #26262c; color: var(--cream); }
button.small { padding: 7px 14px; font-size: 14px; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.error { color: #ff8a80; font-size: 14px; }
.computer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.computer .name { font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; background: #66666e; vertical-align: 1px; }
.dot.on { background: #3ecf6e; box-shadow: 0 0 0 3px rgba(62, 207, 110, .18); }
.number { font: 800 46px/1 Outfit, monospace; letter-spacing: 6px; text-align: center; margin: 14px 0; color: var(--gold); }
video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 3 / 4; object-fit: cover; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { font-size: 14px; color: var(--muted); }
.banner { background: #2a1d0c; border: 1px solid #5a4318; color: #f4d9a6; border-radius: 14px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.banner.bad { background: #2c1212; border-color: #5c2222; color: #ffb4ab; }
.projects { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.projects button { white-space: nowrap; }
.projects button.active { background: var(--gold); color: var(--ink); }
.messages { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: #23232a; }
.msg .who { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 3px; }
.msg img { display: block; width: 100%; border-radius: 12px; margin-top: 6px; background: #000; }
.msg .timing { font-size: 12px; color: var(--muted); margin-top: 6px; }
.msg.pending { opacity: .7; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 48px; max-height: 140px; resize: none; }
.menu { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
