/* Optional dev-only visitor assistant. Remove its two tags to undo the UI. */
.site-chat{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:calc(max(24px,env(safe-area-inset-bottom)) + var(--site-chat-footer-lift,0px));z-index:40;font-size:15px;line-height:1.45;color:var(--ink)}
.site-chat [hidden]{display:none!important}
.site-chat button,.site-chat textarea{font:inherit}
.site-chat button{cursor:pointer}
.site-chat button:focus-visible,.site-chat a:focus-visible{outline:3px solid var(--berry);outline-offset:4px}
.site-chat button:disabled{cursor:default;opacity:.6}
.site-chat-launcher{display:flex;align-items:center;gap:12px;padding:8px 18px 8px 8px;background:white;color:var(--berry);border:2px solid var(--berry);border-radius:999px;box-shadow:0 5px 0 var(--jam),0 8px 24px #3f303015;font-weight:900!important;text-align:left}
.site-chat-launcher:hover{background:var(--featured-bg)}
.site-chat-launcher small{display:block;color:var(--muted);font-size:11px;font-weight:700;margin-top:1px}
.site-chat-launcher-art{width:52px;height:52px;display:grid;place-items:center;background:var(--pink);border-radius:50%}
.site-chat-launcher-art img{width:52px;height:49px;object-fit:contain}
.site-chat-launcher-title{display:flex;align-items:center;gap:7px}
.site-chat-launcher-title svg{width:17px;height:17px;flex-shrink:0}
.site-chat-panel{display:flex;flex-direction:column;width:390px;max-width:calc(100vw - 32px);height:610px;max-height:calc(100dvh - 48px);background:#fff;border:3px solid var(--berry);border-radius:26px;overflow:hidden;box-shadow:0 7px 0 var(--jam),0 14px 45px #3f30301c}
.site-chat-header{display:flex;align-items:center;gap:11px;padding:16px;background:var(--pink);flex-shrink:0}
.site-chat-avatar{width:53px;height:53px;flex-shrink:0;background:#fff;border-radius:50%;display:grid;place-items:center}
.site-chat-avatar img{width:53px;height:49px;object-fit:contain}
.site-chat .site-chat-header h2{font-size:21px;line-height:1.15;letter-spacing:-.025em;color:var(--ink)}
.site-chat .site-chat-header p{font-size:12px;margin-top:4px;color:var(--muted)}
.site-chat-close{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;margin-left:auto;border:0;border-radius:12px;color:var(--berry);background:#fff9}
.site-chat-close svg,.site-chat-send svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.site-chat-body{padding:20px 16px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:var(--accent-line) transparent}
.site-chat-log{display:flex;flex-direction:column;gap:12px}
.site-chat-message{max-width:94%;padding:13px 15px;border-radius:20px 20px 20px 5px;background:var(--pistachio);align-self:flex-start;overflow-wrap:anywhere}
.site-chat-message p{color:#3e562c;font-size:14px;line-height:1.55;white-space:pre-wrap}
.site-chat-message-user{background:#f1ece5;align-self:flex-end;border-radius:20px 20px 5px 20px}
.site-chat-message-user p{color:var(--ink)}
.site-chat-suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:18px}
.site-chat-suggestions button{padding:10px 13px;border:1.5px solid var(--accent-line);border-radius:14px;background:#fff;color:var(--berry);font-size:13px;font-weight:800;text-align:left;min-height:40px}
.site-chat-suggestions button:hover{background:var(--featured-bg)}
.site-chat-status{font-size:12px;line-height:1.5;color:var(--jam);margin-top:12px}
.site-chat-status:empty{display:none}
.site-chat-status.is-thinking{color:var(--muted)}
.site-chat-footer{padding:14px 16px 12px;background:var(--featured-bg);flex-shrink:0}
.site-chat-input-row{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 12px;background:#fff;border-radius:20px}
.site-chat textarea{resize:none;width:100%;min-width:0;border:0;background:transparent;color:var(--ink);padding:8px 0;line-height:1.45;font-size:16px}
.site-chat textarea::placeholder{color:var(--muted);opacity:1;font-size:13px}
.site-chat-send{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;padding:0;border:0;border-radius:14px;background:var(--berry);color:#fff}
.site-chat-disclosure{font-size:10px;line-height:1.4;color:var(--muted);margin:11px 0 9px}
.site-chat-links{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px}
.site-chat-links a{font-size:12px;font-weight:800;color:var(--jam);text-decoration:underline;text-underline-offset:3px;padding:4px 0}
.site-chat-label{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}
@media(max-width:600px){
  .site-chat{right:max(14px,env(safe-area-inset-right));bottom:calc(max(14px,env(safe-area-inset-bottom)) + var(--site-chat-footer-lift,0px))}
  .site-chat-launcher{gap:8px;padding-right:13px}
  .site-chat-launcher-art{width:44px;height:44px}
  .site-chat-launcher-art img{width:44px;height:42px}
  .site-chat-panel{width:calc(100vw - 28px);max-width:none;height:620px;max-height:calc(100dvh - 40px);border-radius:24px}
  .site-chat-header{padding:13px}
  .site-chat-body{padding:16px 13px}
  .site-chat-footer{padding:12px 13px}
}
@media(prefers-reduced-motion:no-preference){
  .site-chat-panel{animation:site-chat-open .18s ease-out}
  @keyframes site-chat-open{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}

/* Focus follows the whole rounded composer, including keyboard focus. */
.site-chat-input-row:focus-within{box-shadow:0 0 0 3px var(--berry)}
.site-chat textarea:focus,.site-chat textarea:focus-visible{outline:none;box-shadow:none}
.site-chat-message a,.site-chat-status a{color:var(--jam);font-weight:800;text-decoration:underline;text-underline-offset:3px}
