:root { color-scheme: dark; --bg: #100b10; --panel: #1a1119; --line: rgba(255, 222, 231, .12); --text: #fff5f7; --muted: #b5a1aa; --accent: #ff4969; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 50% 0, rgba(156, 31, 62, .2), transparent 45%), var(--bg); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
.live-shell { width: min(100% - 32px, 1040px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font: 700 17px "Space Grotesk", sans-serif; letter-spacing: .12em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg,#ff6c83,#bb153d); font-size: 18px; }
.brand-dot { color: var(--accent); }
.back-link { color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--text); }
.chat-card { width: min(100%, 700px); min-height: min(690px, calc(100vh - 138px)); margin: auto; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(155deg, rgba(38, 19, 30, .96), rgba(20, 14, 20, .98) 48%); box-shadow: 0 32px 100px rgba(0,0,0,.35); }
.chat-heading { padding: 28px 30px 24px; display: flex; align-items: center; gap: 17px; border-bottom: 1px solid var(--line); }
.portrait-wrap { width: 62px; height: 62px; flex: 0 0 auto; position: relative; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,73,105,.6); }
.online-dot { position: absolute; right: 0; bottom: 2px; width: 13px; height: 13px; border: 2px solid #20141b; border-radius: 50%; background: #6fe1a1; }
.eyebrow { margin: 0 0 4px; color: #ff8298; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 25px "Space Grotesk", sans-serif; }
.live-pill { padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(111,225,161,.22); border-radius: 999px; color: #9bf0ba; font: 600 10px "DM Sans", sans-serif; letter-spacing: .04em; }
.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: #6fe1a1; }
.subheading { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.messages { flex: 1; min-height: 270px; max-height: min(54vh, 510px); padding: 24px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; scroll-behavior: smooth; }
.message { max-width: min(88%, 480px); padding: 12px 15px; border: 1px solid var(--line); border-radius: 5px 17px 17px 17px; background: rgba(255,255,255,.045); animation: arrive .18s ease-out; }
.message.user-message { align-self: flex-end; border-color: rgba(255,73,105,.25); border-radius: 17px 5px 17px 17px; background: rgba(204, 29, 69, .16); }
.message-name { display: block; margin-bottom: 4px; color: #ff8298; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.user-message .message-name { color: #e1abb7; text-align: right; }
.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.message.typing p { color: var(--muted); }
.status { min-height: 20px; margin: 0; padding: 0 30px 4px; color: #ff9cae; font-size: 12px; }
.composer { margin: 0 20px; padding: 9px; display: flex; gap: 8px; align-items: flex-end; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(5,4,7,.38); transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: rgba(255,73,105,.55); box-shadow: 0 0 0 3px rgba(255,73,105,.08); }
textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 11px 9px; resize: none; border: 0; outline: 0; color: var(--text); background: transparent; font: 14px "DM Sans", sans-serif; line-height: 1.4; }
textarea::placeholder { color: #84727a; }
button { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 12px; color: white; background: linear-gradient(145deg,#ec3158,#ae123a); font: 700 12px "DM Sans", sans-serif; cursor: pointer; }
button:hover { filter: brightness(1.12); }
button:disabled { opacity: .55; cursor: wait; }
button b { font-size: 17px; }
.privacy-note { margin: 12px 20px 18px; color: #867780; text-align: center; font-size: 10px; }
footer { padding: 20px 0; color: #766971; text-align: center; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { .live-shell { width: min(100% - 20px, 700px); } .topbar { height: 62px; } .chat-card { min-height: calc(100vh - 120px); border-radius: 18px; } .chat-heading { padding: 22px 18px; gap: 13px; } .portrait-wrap { width: 52px; height: 52px; } h1 { font-size: 22px; } .subheading { font-size: 12px; } .messages { padding: 18px; } .status { padding: 0 18px 4px; } .composer { margin: 0 12px; } .privacy-note { margin-inline: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }
