/* V8.7 independent assistant styles */
#sw-chat{position:fixed;right:20px;bottom:20px;z-index:50;font-size:14px;line-height:1.5;color:#eef8f2;--chat-green:#2a7857}#sw-chat button,#sw-chat input,#sw-chat textarea,#sw-chat select{font:inherit}#sw-chat .sw-chat-toggle,#sw-chat button.sw-primary{background:#2a7857;color:white;border:1px solid #2a7857;border-radius:13px;padding:11px 16px;font-weight:700;cursor:pointer}#sw-chat .sw-chat-toggle{display:flex;align-items:center;gap:10px;margin-left:auto;box-shadow:0 8px 26px #0004}#sw-chat .sw-chat-toggle svg{width:24px;height:24px}#sw-chat .sw-chat-panel{width:min(390px,calc(100vw - 32px));max-height:min(690px,calc(100dvh - 92px));display:flex;flex-direction:column;background:#101e19;border:1px solid #355448;border-radius:19px;overflow:hidden;box-shadow:0 20px 60px #0007;margin-bottom:12px}#sw-chat .sw-chat-head{background:#2a7857;padding:14px 16px;display:flex;align-items:center;gap:12px;color:white}#sw-chat .sw-chat-head strong{display:block;font-size:16px}#sw-chat .sw-chat-mode{font-size:12px;color:#e1f4e8}#sw-chat .sw-chat-close{margin-left:auto;background:transparent;color:white;border:0;font-size:25px;line-height:1;padding:6px}#sw-chat .sw-chat-body{padding:13px;overflow:auto;min-height:0}#sw-chat .sw-chat-log{display:flex;flex-direction:column;gap:9px;max-height:235px;overflow:auto;scrollbar-width:thin;margin-bottom:12px}#sw-chat .sw-chat-bubble{border-radius:12px;background:#22382e;padding:10px 12px;max-width:92%;white-space:pre-wrap;overflow-wrap:anywhere}#sw-chat .sw-chat-bubble.user{align-self:flex-end;background:#2a7857;color:white}#sw-chat .sw-chat-topics{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}#sw-chat .sw-chat-topics button,#sw-chat .sw-chat-enquire{background:#2a7857;color:white;border:1px solid #2a7857;border-radius:10px;padding:7px 10px;cursor:pointer}#sw-chat a{color:#b9f3d3;text-decoration:underline}#sw-chat .sw-chat-message{display:flex;gap:6px;margin:10px 0}#sw-chat input:not([type=checkbox]),#sw-chat textarea,#sw-chat select{background:#172b22;color:white;border:1px solid #527363;border-radius:8px;padding:9px;width:100%;min-width:0}#sw-chat .sw-chat-message input{flex:1}#sw-chat .sw-chat-lead{display:grid;gap:8px;border-top:1px solid #355448;padding-top:12px;margin-top:12px}#sw-chat .sw-chat-lead label{display:grid;gap:4px}#sw-chat .sw-check{display:flex!important;align-items:flex-start;gap:7px;font-size:12px;color:#d2e3d9}#sw-chat .sw-check input{flex:none;margin-top:4px}#sw-chat .sw-chat-note,#sw-chat .sw-chat-status{font-size:12px;color:#d2e3d9;margin:7px 0}#sw-chat button:disabled{opacity:.55;cursor:not-allowed}#sw-chat [hidden]{display:none!important}#sw-chat :focus-visible{outline:2px solid #b9f3d3;outline-offset:2px}.chat-admin{padding-block:36px}.chat-admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.chat-admin-lead{margin-block:12px;overflow-wrap:anywhere}.chat-pre{white-space:pre-wrap}.chat-admin-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.chat-admin progress{margin-left:12px;accent-color:#2a7857}.chat-admin select{font:inherit;padding:8px;border-radius:8px}.chat-admin .actions{align-items:center}@media(max-width:500px){#sw-chat{right:12px;bottom:12px}#sw-chat .sw-chat-panel{max-height:calc(100dvh - 80px)}}

/* V8.8 subtle chat icon motion */
@keyframes sw-chat-wave{0%,85%,100%{transform:rotate(0)}90%{transform:rotate(-9deg)}95%{transform:rotate(9deg)}}
@media(prefers-reduced-motion:no-preference){#sw-chat .sw-chat-toggle[aria-expanded="false"] svg{animation:sw-chat-wave 5s ease-in-out infinite}}
body.motion-paused #sw-chat .sw-chat-toggle svg{animation:none!important}

/* V8.20 — black conversational interface */
#sw-chat .sw-chat-panel{width:min(420px,calc(100vw - 24px));background:#141414;border-color:#343434;border-radius:24px;max-height:min(720px,calc(100dvh - 90px))}
#sw-chat .sw-chat-head{background:#191919;border-bottom:1px solid #333;padding:18px;color:#f5f5f5}#sw-chat .sw-chat-head strong{font-size:19px}#sw-chat .sw-chat-mode{color:#bbb}#sw-chat .sw-chat-close{background:#303030;border-radius:50%;width:36px;height:36px;min-height:0;padding:0}
#sw-chat .sw-chat-body{padding:15px}#sw-chat .sw-chat-log{max-height:310px;min-height:130px}#sw-chat .sw-chat-bubble{background:#202020;border:1px solid #333;border-radius:17px;padding:12px}#sw-chat .sw-chat-bubble.user{background:#20352e;border-color:#365b50}#sw-chat .sw-bubble-head{display:flex;justify-content:space-between;align-items:center;color:#bcbcbc;font-size:11px;font-weight:750;margin-bottom:6px}#sw-chat .sw-voice-play{background:transparent;border:0;padding:0;min-height:24px;color:#73e6bd;line-height:1;font-size:17px}
#sw-chat .sw-chat-message{align-items:center;gap:7px}#sw-chat .sw-chat-message input{border-radius:30px;background:#202020;border:1px solid #41584e;padding:12px}#sw-chat .sw-chat-message .sw-primary{border-radius:30px;padding:12px 15px;min-height:44px}#sw-chat .sw-chat-mic{border:0;border-radius:50%;width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;background:#73e6bd;color:#09241b}#sw-chat .sw-chat-mic[aria-pressed=true]{background:#f9a8a8;color:#300}#sw-chat .sw-chat-mic svg{width:20px;height:20px}#sw-chat .sw-chat-enquire{border-radius:24px;background:#23362f;color:#b9f3d3;border-color:#39584b}#sw-chat .sw-chat-topics button{background:#252525;border-color:#404040;color:#eee;border-radius:20px;min-height:32px;font-size:12px}#sw-chat input:not([type=checkbox]),#sw-chat textarea,#sw-chat select{background:#202020;border-color:#444}#sw-chat .sw-chat-note,#sw-chat .sw-chat-status,#sw-chat .sw-check{color:#bbb}#sw-chat .sw-chat-lead{border-color:#333}
