/* Minimal clean UI, dark theme */
:root { --bg: #0b0c10; --panel: #11141a; --muted: #9ca3af; --text: #eaecef; --accent: #3b82f6; --bot: #1f2937; --user: #0e7490; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
.wrap { flex: 1; max-width: 860px; margin: 24px auto; padding: 0 16px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
header { display: flex; flex-direction: column; gap: 6px; }
h1 { font-size: 22px; margin: 0; color: #93c5fd; }
.sub { margin: 0; color: var(--muted); font-size: 13px; }
.chatbox { background: var(--panel); border: 1px solid #1f2937; border-radius: 14px; padding: 14px; min-height: 360px; max-height: 65vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 12px; line-height: 1.5; white-space: pre-wrap; width: fit-content; max-width: 100%; }
.msg.user { align-self: flex-end; background: var(--user); color: #f0f9ff; }
.msg.bot { align-self: flex-start; background: var(--bot); color: #e5e7eb; }
.composer { display: flex; gap: 10px; }
textarea { flex: 1; resize: vertical; min-height: 52px; max-height: 180px; padding: 12px; border-radius: 12px; border: 1px solid #334155; background: #0f172a; color: #e5e7eb; }
button { border: 0; padding: 0 18px; border-radius: 12px; background: var(--accent); color: white; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .6; cursor: not-allowed; }
.foot { padding: 8px 16px 18px; text-align: center; color: var(--muted); font-size: 12px; }
