:root { --navy: #1f2a44; --peach: #fde2d6; --yellow: #fde9a6; --orange: #e8622a; --text: #1d1d1f; --muted: #6b6b70; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: #ffffff; color: var(--text);
       font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; }
.top .name { font-weight: 600; font-size: 19px; flex: 1; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.avatar.small { width: 34px; height: 34px; flex: none; }
.new-chat { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 8px;
            padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px;
            max-width: 820px; width: 100%; margin: 0 auto; }
.row { display: flex; gap: 8px; align-items: flex-start; }
.row.user { justify-content: flex-end; }
.bubble { padding: 10px 14px; border-radius: 12px; max-width: 78%; white-space: pre-wrap; overflow-wrap: anywhere; }
.row.user .bubble { background: var(--yellow); }
.row.reply .bubble { background: var(--peach); }
.row.reply .bubble.typing { color: var(--muted); }
.side { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.speak, .thumb { background: none; border: 0; padding: 2px; cursor: pointer; font-size: 15px; opacity: .55; }
.speak { color: var(--orange); opacity: 1; }
.thumbs { display: flex; gap: 2px; }
.thumb.chosen { opacity: 1; }
.notice { text-align: center; color: var(--muted); padding: 24px 16px; }
.composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #eee; max-width: 820px; width: 100%;
            margin: 0 auto; }
.composer textarea { flex: 1; resize: none; font: inherit; padding: 10px 12px; border: 1px solid #ccc; border-radius: 10px; }
.composer button { background: var(--orange); color: #fff; border: 0; border-radius: 10px; width: 48px; font-size: 18px;
                   cursor: pointer; }
.composer button:disabled { opacity: .5; cursor: default; }
@media (max-width: 520px) { .bubble { max-width: 86%; } body { font-size: 16px; } }
