.shq-root{--shq-primary:#3b82f6;--shq-bg:#0f172a;--shq-fg:#e5e7eb;--shq-muted:#94a3b8;--shq-sec:#1e293b;--shq-border:#334155;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--shq-fg)}
.shq-root *{box-sizing:border-box}
.shq-fab{position:fixed;bottom:20px;right:20px;z-index:99998;width:56px;height:56px;border-radius:50%;border:0;background:var(--shq-primary);color:#fff;box-shadow:0 10px 25px rgba(0,0,0,.35);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,filter .15s;padding:0}
.shq-fab:hover{filter:brightness(1.1)}.shq-fab:active{transform:scale(.95)}
.shq-dot{position:absolute;top:-2px;right:-2px;width:12px;height:12px;border-radius:50%;background:#4ade80;border:2px solid var(--shq-bg)}
.shq-fab.is-open .shq-dot{display:none}
.shq-panel{position:fixed;bottom:96px;right:20px;z-index:99999;width:360px;max-width:calc(100vw - 2rem);height:520px;max-height:calc(100vh - 7rem);display:flex;flex-direction:column;background:var(--shq-bg);border:1px solid var(--shq-border);border-radius:16px;box-shadow:0 25px 50px -12px rgba(0,0,0,.5);overflow:hidden}
.shq-panel[hidden]{display:none}
.shq-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--shq-border);background:color-mix(in srgb,var(--shq-primary) 8%,var(--shq-bg));flex-shrink:0}
.shq-avatar{width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--shq-primary) 15%,transparent);border:1px solid color-mix(in srgb,var(--shq-primary) 30%,transparent);color:var(--shq-primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.shq-avatar.big{width:48px;height:48px;margin:0 auto}.shq-avatar.big svg{width:24px;height:24px}
.shq-avatar.sm{width:24px;height:24px;margin-top:2px}.shq-avatar.sm svg{width:12px;height:12px}
.shq-ht{flex:1;min-width:0}.shq-t{margin:0;font-weight:600;font-size:14px;line-height:1.2;color:var(--shq-fg)}.shq-s{margin:0;font-size:12px;color:var(--shq-muted)}
.shq-min{background:none;border:0;color:var(--shq-muted);cursor:pointer;padding:2px}.shq-min:hover{color:var(--shq-fg)}
.shq-body{flex:1;overflow-y:auto;padding:16px 12px}
.shq-msgs{display:flex;flex-direction:column;gap:12px}
.shq-empty{text-align:center;padding:16px 0}.shq-e1{margin:12px 0 4px;font-weight:500}.shq-e2{margin:0 16px;font-size:12px;color:var(--shq-muted)}
.shq-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:12px 8px 0}
.shq-chip{font-size:12px;background:var(--shq-sec);color:var(--shq-fg);border:0;border-radius:999px;padding:6px 12px;cursor:pointer}.shq-chip:hover{filter:brightness(1.2)}
.shq-row{display:flex;gap:8px}.shq-row.u{justify-content:flex-end}.shq-row.a{justify-content:flex-start}
.shq-bub{max-width:82%;border-radius:12px;padding:8px 12px;min-width:0;overflow-wrap:anywhere}
.shq-bub.u{background:var(--shq-primary);color:#fff;border-bottom-right-radius:4px}.shq-bub.u p{margin:0;white-space:pre-wrap}
.shq-bub.a{background:var(--shq-sec);color:var(--shq-fg);border-bottom-left-radius:4px}
.shq-caret{display:inline-block;width:6px;height:14px;background:currentColor;border-radius:2px;animation:shqp 1s infinite}
@keyframes shqp{50%{opacity:.3}}
.shq-md>*:first-child{margin-top:0}.shq-md>*:last-child{margin-bottom:0}
.shq-md p{margin:.5em 0}.shq-md ul,.shq-md ol{margin:.5em 0;padding-left:1.4em}.shq-md li{margin:.15em 0}
.shq-md h3,.shq-md h4,.shq-md h5,.shq-md h6{margin:.8em 0 .3em;font-size:1em;font-weight:600;color:inherit}
.shq-md a{color:#60a5fa;text-decoration:underline}.shq-md img{max-width:100%;height:auto;border-radius:8px;margin:4px 0;display:block}
.shq-md code{background:rgba(0,0,0,.3);padding:1px 4px;border-radius:4px;font-size:12px}
.shq-md pre{background:rgba(0,0,0,.3);border:1px solid var(--shq-border);padding:8px;border-radius:8px;overflow:auto}.shq-md pre code{background:none;padding:0}
.shq-md hr{border:0;border-top:1px solid var(--shq-border);margin:.8em 0}
.shq-tbl{overflow-x:auto}.shq-md table{border-collapse:collapse;font-size:12px}.shq-md th,.shq-md td{border:1px solid var(--shq-border);padding:3px 6px;text-align:left}
.shq-tool{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--shq-muted);padding-left:32px}
.shq-spin{width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:shqs .7s linear infinite;display:inline-block}
@keyframes shqs{to{transform:rotate(360deg)}}
.shq-foot{padding:10px 12px;border-top:1px solid var(--shq-border);flex-shrink:0}
.shq-box{display:flex;gap:8px;align-items:flex-end;background:color-mix(in srgb,var(--shq-sec) 40%,transparent);border:1px solid var(--shq-border);border-radius:12px;padding:6px 12px}
.shq-box:focus-within{border-color:color-mix(in srgb,var(--shq-primary) 40%,transparent)}
.shq-box textarea{flex:1;resize:none;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--shq-fg)!important;font:inherit;font-size:14px;min-height:36px;max-height:120px;padding:2px 0 0!important;margin:0}
.shq-box textarea::placeholder{color:rgba(148,163,184,.6)}
.shq-send{flex-shrink:0;width:28px;height:28px;border-radius:8px;border:0;background:var(--shq-primary);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-bottom:2px;padding:0}
.shq-send:disabled{opacity:.5;cursor:not-allowed}
.shq-copy{text-align:center;font-size:10px;color:rgba(148,163,184,.5);margin:6px 0 0}
.shq-open-btn{background:#3b82f6;color:#fff;border:0;border-radius:8px;padding:10px 18px;cursor:pointer;font-size:15px}
