#scChat{position:fixed;right:18px;bottom:var(--sc-bottom,16px);z-index:11000;font-size:14px;line-height:1.45;color:#edf4ff}
#scToggle,#scSend,#scIntakePlan{font:inherit;font-weight:700;cursor:pointer}
#scToggle{display:flex;align-items:center;gap:9px;padding:6px 15px 6px 6px;color:#eff5ff;background:#102843;border:1px solid #b5c8f550;border-radius:999px;box-shadow:0 10px 25px #030d20a0}
.sc-avatar{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:13px;background:linear-gradient(140deg,#d9eaff,#dccaf6);color:#173753}
.sc-avatar svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#scWindow{position:absolute;right:0;bottom:56px;display:flex;flex-direction:column;gap:9px;width:min(500px,calc(100vw - 36px));height:min(680px,calc(100dvh - 104px));padding:15px;border:1px solid #afc6ed4d;border-radius:23px;background:#0d2138;box-shadow:0 22px 64px #020912ab;overflow:hidden}
#scWindow[hidden]{display:none}
#scWindow header{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid #afc6ed2b}
#scWindow header strong{font-size:17px}
#scWindow header small{display:block;color:#bccce1;font-size:11px}
#scClose{margin-left:auto;width:38px;height:38px;flex:none;border:1px solid #afc6ed38;border-radius:12px;background:#18344f;color:#f5f7ff;font-size:22px;cursor:pointer}
.sc-context{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.sc-context label,.sc-mode{font-size:12px;color:#c4d3e8}
#scWindow :is(select,textarea){display:block;width:100%;min-width:0;background:#091a2f;color:#f4f7ff;border:1px solid #afc6ed50;border-radius:12px;padding:9px;font:inherit}
#scWindow select{margin-top:3px;height:42px}
#scWindow #scIntakePlan{height:42px;padding:6px 10px;border:1px solid #aac3eb65;border-radius:12px;color:#e9edff;background:#223e62;font-size:12px}
.sc-mode{display:flex;align-items:center;gap:8px}
.sc-mode input{accent-color:#c8b9f4}
#scMessages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 3px 6px}
.sc-human,.sc-ai{width:fit-content;max-width:92%;padding:9px 12px;border-radius:15px;margin:8px 0;overflow-wrap:anywhere}
.sc-human{margin-left:auto;background:#dce9fe;color:#122f51;border-bottom-right-radius:4px}
.sc-human>small{display:none}
.sc-ai{background:#172e4c;border:1px solid #adc6ed23;border-bottom-left-radius:4px}
.sc-ai p,.sc-human p{margin:4px 0;white-space:pre-wrap}
.sc-speaker{display:flex;align-items:center;gap:6px;color:#d7cdf6}
.sc-speaker .sc-avatar{width:22px;height:22px;border-radius:8px}
.sc-speaker .sc-avatar svg{width:15px;height:15px}
.sc-fb{margin-top:8px;padding:9px;border:1px solid #aec3f24a;border-radius:11px;background:#1a3656}
.sc-fb small{color:#d8d5ef}
.sc-fb ol,.sc-fb ul{padding-left:20px;margin:4px 0 8px}
.sc-fb-actions,.sc-sugg{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.sc-examples{display:flex;gap:6px;overflow:auto;scrollbar-width:thin}
.sc-examples button,.sc-ai button{flex:none;border:1px solid #aec3f24a;border-radius:12px;padding:6px 8px;color:#edf3ff;background:#193654;cursor:pointer;font:inherit;font-size:12px}
#scForm{display:flex;flex-wrap:wrap;gap:7px;align-items:flex-end}
#scForm textarea{flex:1;min-height:44px;max-height:140px;resize:none}
#scWindow #scSend{min-height:44px;padding:0 12px;border:0;border-radius:12px;background:linear-gradient(125deg,#dceafe,#ddccf6);color:#112c4a}
#scStatus{flex-basis:100%;margin:0;font-size:12px;color:#dbccf8}
#scStatus:empty{display:none}
#scWindow :disabled{opacity:.55;cursor:default}
#scChat :focus-visible{outline:2px solid #bfa9f4;outline-offset:2px}
.sc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sc-typing{display:flex;gap:5px;padding:6px 0}
.sc-typing i{width:6px;height:6px;border-radius:50%;background:#d4c5f3;animation:scDot 1.2s infinite}
.sc-typing i:nth-child(2){animation-delay:.15s}.sc-typing i:nth-child(3){animation-delay:.3s}
@keyframes scDot{0%,60%,100%{opacity:.32;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:600px){
 #scChat{right:10px}
 #scWindow{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;padding:calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom))}
 html.sc-full body{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.sc-typing i{animation:none}}
