*{box-sizing:border-box}html,body{height:100%;margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;background:#0f172a;color:#e2e8f0;display:flex;flex-direction:column}
header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#111c33;border-bottom:1px solid #1e293b}
.t{font-weight:700}header button{background:#1e293b;color:#cbd5e1;border:0;border-radius:8px;padding:6px 10px;font:inherit;font-size:13px}
main{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}
.m{max-width:88%;padding:10px 13px;border-radius:14px;line-height:1.7;white-space:pre-wrap;word-wrap:break-word;font-size:16px}
.u{background:#2563eb;align-self:flex-start;border-bottom-right-radius:4px}.a{background:#1e293b;align-self:flex-end;border-bottom-left-radius:4px}
.e{background:#7f1d1d}
#empty{position:absolute;top:70px;left:0;right:0;text-align:center;padding:0 16px}#empty h2{margin:30px 0 14px}
.chips{display:flex;flex-direction:column;gap:8px;align-items:center}.chips button{background:#1e293b;color:#e2e8f0;border:1px solid #334155;border-radius:12px;padding:10px 14px;font:inherit;font-size:14px;max-width:100%}
form{display:flex;gap:8px;padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom));background:#111c33;border-top:1px solid #1e293b}
textarea{flex:1;resize:none;max-height:140px;background:#0f172a;color:#e2e8f0;border:1px solid #334155;border-radius:12px;padding:10px;font:inherit;font-size:16px}
#s{background:#2563eb;color:#fff;border:0;border-radius:12px;padding:0 18px;font:inherit;font-weight:700}#s:disabled{opacity:.5}
