:root{--paper:#f4f1ea;--ink:#11110f;--muted:#77736c;--line:rgba(17,17,15,.22);--soft:rgba(17,17,15,.055)}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0}body,button,textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{overflow:hidden;background:var(--paper);color:var(--ink)}button,textarea{font-size:16px;color:inherit}
.chat{width:100%;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:var(--paper)}
.header{min-height:72px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.header h1{margin:0;font-size:18px;font-weight:650;letter-spacing:.18em}
.messages{min-height:0;overflow-y:auto;padding:28px 24px;scrollbar-width:thin;scrollbar-color:rgba(17,17,15,.2) transparent}.welcome{max-width:430px;margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.row{display:flex;width:100%;margin:0 0 15px}.row.user{justify-content:flex-end}.bubble{width:fit-content;max-width:86%;padding:11px 13px;border:1px solid var(--line);font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.row.assistant .bubble{border-radius:2px 14px 14px 14px;background:transparent}.row.user .bubble{border-radius:14px 2px 14px 14px;background:var(--ink);color:var(--paper);border-color:var(--ink)}
.status{margin:0;padding:0 24px 10px;color:var(--muted);font-size:11px}.status[hidden]{display:none}
.composer{min-height:67px;display:grid;grid-template-columns:minmax(0,1fr) 112px;border-top:1px solid var(--ink)}.composer textarea{width:100%;max-height:120px;min-height:66px;padding:21px 22px;resize:none;overflow-y:auto;border:0;outline:0;background:transparent;line-height:1.45}.composer textarea::placeholder{color:#aaa59b}.composer button{border:0;border-left:1px solid var(--ink);background:transparent;font-size:12px;font-weight:750;letter-spacing:.1em;cursor:pointer}.composer button:hover:not(:disabled),.composer button:focus-visible:not(:disabled){background:var(--ink);color:var(--paper);outline:none}.composer button:disabled,.composer textarea:disabled{opacity:.42;cursor:default}
@media(max-width:520px){.header{min-height:62px;padding:0 17px}.header h1{font-size:16px}.messages{padding:22px 16px}.status{padding:0 16px 9px}.composer{grid-template-columns:minmax(0,1fr) 92px;min-height:61px}.composer textarea{min-height:60px;padding:18px 16px}.composer button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
