:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --bubble-user: #0284c7;
  --bubble-bot: #334155;
  --border: #334155;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background: var(--bg-color); color: var(--text-primary); display: flex; justify-content: center; height: 100vh; }
.chat-container { display: flex; flex-direction: column; width: 100%; max-width: 800px; height: 100%; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.chat-header { padding: 1rem 1.5rem; background: var(--card-bg); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.logo-dot { width: 10px; height: 10px; background-color: var(--accent); border-radius: 50%; }
.chat-header h1 { font-size: 1.1rem; font-weight: 600; }
#access-code { background: var(--bg-color); border: 1px solid var(--border); color: var(--text-primary); padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.8rem; }
.chat-box { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.message { max-width: 80%; padding: 0.8rem 1.1rem; border-radius: 12px; line-height: 1.5; font-size: 0.95rem; word-wrap: break-word; white-space: pre-wrap; }
.system-msg { align-self: center; background: transparent; color: var(--text-muted); font-size: 0.85rem; }
.user-msg { align-self: flex-end; background: var(--bubble-user); color: #fff; border-bottom-right-radius: 2px; }
.bot-msg { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 2px; }
.input-area { padding: 1rem 1.5rem; background: var(--card-bg); border-top: 1px solid var(--border); }
#chat-form { display: flex; gap: 0.75rem; align-items: flex-end; }
textarea { flex: 1; background: var(--bg-color); border: 1px solid var(--border); color: var(--text-primary); border-radius: 8px; padding: 0.75rem; font-size: 0.95rem; resize: none; max-height: 120px; outline: none; }
textarea:focus { border-color: var(--accent); }
button { background: var(--accent); border: none; border-radius: 8px; color: #0f172a; padding: 0.75rem 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
