.chat-launch{position:fixed;right:1rem;bottom:5.4rem;z-index:60;display:flex;align-items:center;gap:.55rem;padding:.8rem 1.1rem;border:0;border-radius:999px;background:var(--van,#174D35);color:#fff;font:600 1rem/1 "Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28);transition:transform .2s,filter .2s}
.chat-launch:hover{filter:brightness(.92);transform:translateY(-2px)}
.chat-launch svg{width:22px;height:22px;flex:none}
.chat-panel{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;background:var(--surface,#fff);color:var(--ink,#1F2622);font:400 1rem/1.45 "Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif}
.chat-panel[hidden]{display:none}
.chat-panel *{box-sizing:border-box}
.chat-head{display:flex;align-items:center;gap:.6rem;padding:.8rem .9rem;background:var(--green,#174D35);color:#fff;flex:none}
.chat-head .t{flex:1;min-width:0}
.chat-head b{display:block;font-size:1.05rem;line-height:1.2}
.chat-head small{display:block;font-size:.8rem;opacity:.85}
.chat-head a,.chat-head button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 .8rem;border-radius:999px;border:1.5px solid rgba(255,255,255,.7);background:transparent;color:#fff;font:600 .85rem/1 inherit;text-decoration:none;cursor:pointer}
.chat-head .x{width:40px;padding:0;font-size:1.5rem;line-height:1;border-color:transparent}
.chat-head :focus-visible{outline:3px solid #fff;outline-offset:2px}
.chat-log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;background:var(--bg,#F7F8F5)}
.chat-msg{max-width:86%;padding:.65rem .9rem;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-msg.bot{align-self:flex-start;background:var(--sage,#DCE6DD);color:var(--ink,#1F2622);border-bottom-left-radius:4px}
.chat-msg.user{align-self:flex-end;background:var(--van,#174D35);color:#fff;border-bottom-right-radius:4px}
.chat-msg.typing{display:flex;gap:5px;align-items:center;padding:.85rem 1rem}
.chat-msg.typing i{width:7px;height:7px;border-radius:50%;background:var(--muted,#55605A);opacity:.5;animation:chatdot 1s infinite}
.chat-msg.typing i:nth-child(2){animation-delay:.15s}.chat-msg.typing i:nth-child(3){animation-delay:.3s}
@keyframes chatdot{50%{opacity:1;transform:translateY(-3px)}}
.chat-chips{display:flex;flex-wrap:wrap;gap:.45rem;padding:.2rem 0}
.chat-chips button{min-height:40px;padding:0 .9rem;border-radius:999px;border:1.5px solid var(--line,#D9E0DA);background:var(--surface,#fff);color:var(--ink,#1F2622);font:600 .9rem/1 inherit;cursor:pointer}
.chat-chips button:hover{border-color:var(--van,#174D35)}
.chat-card{align-self:stretch;border:1.5px solid var(--van,#174D35);border-radius:14px;padding:.9rem;background:var(--surface,#fff);color:var(--ink,#1F2622)}
.chat-card h3{margin:0 0 .5rem;font-size:1rem}
.chat-card dl{display:grid;grid-template-columns:auto 1fr;gap:.25rem .8rem;margin:0 0 .8rem;font-size:.92rem}
.chat-card dt{font-weight:600;color:var(--muted,#55605A)}
.chat-card dd{margin:0;overflow-wrap:anywhere}
.chat-card .row{display:flex;flex-wrap:wrap;gap:.5rem}
.chat-card button{min-height:44px;padding:0 1.1rem;border-radius:999px;border:2px solid var(--van,#174D35);font:600 .95rem/1 inherit;cursor:pointer}
.chat-card .go{background:var(--van,#174D35);color:#fff}
.chat-card .alt{background:transparent;color:var(--ink,#1F2622);border-color:var(--line,#D9E0DA)}
.chat-card button:disabled{opacity:.6;cursor:default}
.chat-card p{margin:0;font-size:.92rem}
.chat-form{display:flex;gap:.5rem;padding:.7rem .8rem;border-top:1px solid var(--line,#D9E0DA);background:var(--surface,#fff);flex:none}
.chat-form input{flex:1;min-width:0;min-height:46px;padding:0 1rem;border-radius:999px;border:1.5px solid var(--line,#D9E0DA);background:var(--bg,#F7F8F5);color:var(--ink,#1F2622);font:400 16px/1.2 inherit}
.chat-form input:focus{outline:none;border-color:var(--van,#174D35);box-shadow:0 0 0 3px rgba(23,77,53,.2)}
.chat-form button{width:46px;height:46px;flex:none;border-radius:50%;border:0;background:var(--van,#174D35);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chat-form button:disabled,.chat-form input:disabled{opacity:.55;cursor:default}
.chat-form button svg{width:20px;height:20px}
.chat-note{margin:0;padding:.1rem 1rem calc(.7rem + env(safe-area-inset-bottom,0px));font-size:.78rem;line-height:1.35;color:var(--muted,#55605A);background:var(--surface,#fff);flex:none}
.chat-note a{color:inherit;text-decoration:underline}
.chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (min-width:861px){
.chat-launch{bottom:1.5rem;right:1.25rem}
.chat-panel{inset:auto 1.25rem 1.25rem auto;width:390px;height:min(620px,calc(100vh - 2.5rem));border-radius:20px;border:1px solid var(--line,#D9E0DA);box-shadow:0 24px 60px rgba(0,0,0,.3);overflow:hidden}
.totop{bottom:5.6rem!important}
}
@media (max-width:860px){
.totop{display:none!important}
html.chat-open{overflow:hidden}
.chat-open .chat-launch{display:none}
}
@media (prefers-reduced-motion:reduce){.chat-launch{transition:none}.chat-msg.typing i{animation:none}}
