*{box-sizing:border-box} :root{color-scheme:light;font-family:'Segoe UI',Arial,sans-serif;color:#49433f;background:#f5f2ed}body{margin:0;min-height:100vh;min-height:100dvh;display:flex;justify-content:center;align-items:center;gap:100px;padding:28px;background:radial-gradient(ellipse at 20% 30%,#fffefa,transparent 65%),#f3eee8}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}.page-note span{font-family:Georgia,serif;letter-spacing:.22em;font-size:32px;color:#8e7b6c}.page-note p{font-family:Georgia,serif;font-size:29px;line-height:1.5;color:#a29284}.chat{width:410px;height:min(720px,calc(100dvh - 56px));min-height:360px;display:flex;flex-direction:column;background:#fbfaf7;border:1px solid #fff;border-radius:25px;overflow:hidden;box-shadow:0 22px 80px #6d5c4920,0 2px 8px #6d5c4908}.chat.expanded{width:min(760px,calc(100vw - 56px));height:calc(100dvh - 56px)}body:has(.expanded) .page-note{display:none}header{display:flex;align-items:center;gap:12px;padding:20px 16px 19px 20px;background:#fbfaf8;border-bottom:1px solid #ece7df;flex-shrink:0}.avatar{width:49px;height:49px;flex:0 0 49px;border-radius:50%;position:relative;background:#e5dacf}.avatar img{position:relative;width:100%;height:100%;object-fit:cover;border-radius:50%}.fallback{position:absolute;inset:0;display:grid;place-items:center;font:24px Georgia,serif;color:#8a7360}.avatar i{position:absolute;bottom:0;right:0;width:11px;height:11px;border:2px solid #fbfaf8;background:#81a68a;border-radius:50%}.consultant{flex:1;min-width:0}h1{margin:0;font-size:14px;font-weight:600;line-height:1.4}.consultant p{margin:5px 0 0;color:#9b9389;font-size:11px;line-height:1.4}.actions{display:flex;gap:1px;align-self:flex-start}.icon{padding:4px;width:26px;height:26px;border:0;color:#8d8982;background:transparent;border-radius:6px}svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.icon:hover{background:#eee8e0}
#messages{flex:1;min-height:0;overflow-y:auto;padding:22px 17px;display:flex;flex-direction:column;gap:12px;background-color:#f5f2ec;background-image:none;background-size:240px 240px;scrollbar-width:thin;scrollbar-color:#d4c9bc transparent}#messages:before{content:'';flex:1 0 40px}.message{max-width:91%;padding:13px 15px 8px;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;flex-shrink:0;box-shadow:0 2px 5px #80715f06}.assistant{align-self:flex-start;border-radius:15px 15px 15px 4px;background:#fffefa;border:1px solid #ede7de}.user{align-self:flex-end;border-radius:15px 15px 4px 15px;background:#e9dfd1;border:1px solid #e1d6c5;color:#504638}.message time{display:block;text-align:right;font-size:10px;color:#a59a8e;margin-top:4px}.quick-replies{display:flex;flex-wrap:wrap;gap:7px;flex-shrink:0;margin:0 0 2px}.quick-replies button{border:1px solid #d8c8b5;border-radius:18px;background:#fffdf8;color:#806a53;font-size:12px;padding:9px 12px}.quick-replies button:hover{background:#eae0d2}.typing{display:flex;align-items:center;gap:5px;padding:17px;width:fit-content}.typing span{width:5px;height:5px;border-radius:50%;background:#b29c83;animation:pulse 1.2s infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
.composer{flex-shrink:0;background:#fbfaf8;padding:0 16px 13px;border-top:1px solid #eae4da}#status{margin:0;color:#986052;font-size:12px;line-height:1.5}#status:not(:empty){padding-top:10px}.input-row{display:flex;align-items:center;gap:6px;border:1px solid #ded6cb;background:white;border-radius:18px;padding:6px;margin-top:14px}.input-row:focus-within{border-color:#bca78c;box-shadow:0 0 0 3px #bca78c16}input{flex:1;width:0;padding:11px 7px;border:0;outline:0;color:#49433f;background:transparent;font-size:13px}input::placeholder{color:#a39c92}#send{width:38px;height:38px;padding:9px;flex-shrink:0;background:#eee7dd;color:#877055;border:0;border-radius:12px}#send:hover{background:#e5d9c9}.bottom{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:12px;color:#aaa196;font-size:10px}#new-chat{border:0;padding:2px 0;background:transparent;color:#918271;font-size:10px;text-decoration:underline;text-underline-offset:3px}#open-chat{position:fixed;bottom:28px;right:28px;display:flex;align-items:center;gap:16px;border:1px solid #dacdbc;border-radius:30px;padding:18px 22px;background:#fffdf8;color:#776550;box-shadow:0 10px 40px #6d5c4920}#open-chat span{font-family:Georgia,serif;letter-spacing:.14em}.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}button:focus-visible{outline:2px solid #b09676;outline-offset:3px}@media(max-width:800px){.page-note{display:none}}@media(max-width:480px){body{padding:10px}.chat,.chat.expanded{width:100%;height:calc(100dvh - 20px);min-height:0;border-radius:22px}header{padding:16px 12px;gap:9px}h1{font-size:13px}.consultant p{font-size:10px}}@media(prefers-reduced-motion:reduce){.typing span{animation:none}}
/* Character-by-character greeting. Width stays stable while height follows text. */
.greeting-bubble{width:91%;overflow:hidden;transition:height .18s ease}
.greeting-content{display:block;min-height:1.6em;white-space:pre-wrap;overflow-wrap:anywhere}
.greeting-bubble.is-typing .greeting-content:after{content:'';display:inline-block;width:1px;height:1em;margin-left:2px;vertical-align:-.12em;background:#9e896f;animation:ivory-caret .8s steps(1) infinite}
@keyframes ivory-caret{0%,45%{opacity:1}46%,100%{opacity:0}}
.greeting-choices{animation:ivory-choices-in .28s ease both}
@keyframes ivory-choices-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.greeting-bubble{transition:none}.greeting-choices{animation:none}.greeting-bubble.is-typing .greeting-content:after{animation:none}}
