:root{--cream:#f7f1e8;--white:#fffdfb;--terracotta:#b9654f;--sage:#78866b;--brown:#3d302b;--muted:#81736b;--border:#e5d8cb;--shadow:0 18px 50px rgba(61,48,43,.09)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:var(--cream);color:var(--brown);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}
a{color:var(--terracotta);text-decoration:none}
.assistant-shell{width:min(850px,calc(100% - 28px));margin:30px auto}
.back-link{display:inline-block;margin:0 0 18px;font-weight:700}
.assistant-card{background:var(--white);border:1px solid var(--border);border-radius:28px;box-shadow:var(--shadow);padding:clamp(18px,4vw,34px)}
.assistant-header{display:flex;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--border)}
.assistant-avatar{width:66px;height:66px;display:grid;place-items:center;flex:0 0 auto;border-radius:22px;background:#eee3d8;font-size:34px}
.eyebrow{margin:0 0 3px;color:var(--sage);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
h1{margin:0;font-family:Georgia,serif;font-size:clamp(30px,5vw,42px);font-weight:500;line-height:1.1}
.assistant-status{margin:7px 0 0;color:var(--muted);font-size:13px}
.assistant-status span{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#6d9967}
.welcome{margin:22px 0 14px;padding:18px 20px;border-radius:18px;background:#f4eee6}
.welcome strong{font-family:Georgia,serif;font-size:20px;font-weight:600}
.welcome p{margin:5px 0 0;color:#665a53}
.suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.suggestion{border:1px solid var(--border);border-radius:999px;padding:9px 13px;background:#fff;color:var(--brown);font:inherit;font-size:13px;cursor:pointer}
.suggestion:hover{border-color:var(--terracotta);color:var(--terracotta)}
.chat-log{display:flex;flex-direction:column;gap:13px;min-height:180px;max-height:48vh;overflow:auto;padding:12px 2px 18px;scroll-behavior:smooth}
.message{display:flex;width:100%}
.user-message{justify-content:flex-end}
.message-bubble{max-width:min(88%,620px);padding:12px 15px;border-radius:18px;background:#f1e8de;white-space:pre-wrap;overflow-wrap:anywhere}
.assistant-message .message-bubble{border-bottom-left-radius:5px}
.user-message .message-bubble{background:var(--sage);color:#fff;border-bottom-right-radius:5px}
.typing .message-bubble{color:var(--muted);font-style:italic}
.chat-form{display:flex;align-items:flex-end;gap:10px;padding-top:14px;border-top:1px solid var(--border)}
.chat-form textarea{width:100%;min-height:48px;max-height:130px;resize:vertical;border:1px solid var(--border);border-radius:16px;padding:12px 14px;background:#fff;color:var(--brown);font:inherit}
.chat-form textarea:focus{outline:3px solid rgba(120,134,107,.2);border-color:var(--sage)}
.chat-form button{min-height:48px;padding:0 20px;border:0;border-radius:999px;background:var(--terracotta);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.chat-form button:disabled{opacity:.55;cursor:wait}
.privacy-note{margin:13px 0 0;color:var(--muted);font-size:11px}
.chat-error{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#f9e8e4;color:#8a332a;font-size:13px}
footer{padding:20px 4px;text-align:center;color:var(--muted);font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:520px){.assistant-shell{margin:14px auto}.assistant-card{border-radius:20px}.assistant-avatar{width:54px;height:54px;border-radius:17px}.chat-form{align-items:stretch}.chat-form button{padding:0 14px}.chat-log{max-height:45vh}}
