/* support.css — техподдержка: плавающий пузырь клиента и вкладка админа */
.sp-bubble{position:fixed;right:18px;bottom:18px;z-index:80;width:50px;height:50px;border-radius:50%;border:none;background:var(--accent);color:#fff;box-shadow:var(--shadow-2);cursor:pointer;display:flex;align-items:center;justify-content:center}
.sp-bubble .icon{width:22px;height:22px}
.sp-dot{position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:var(--danger);border:2px solid var(--surface)}
.sp-float{position:fixed;right:18px;bottom:78px;z-index:80;width:360px;max-width:calc(100vw - 24px);height:70vh;max-height:540px;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-l,14px);box-shadow:var(--shadow-2);overflow:hidden}
.sp-float[hidden]{display:none}
.sp-head{display:flex;justify-content:space-between;align-items:flex-start;padding:12px 14px;border-bottom:1px solid var(--border)}
.sp-head div{display:flex;flex-direction:column;gap:2px}.sp-head span{font-size:12px;color:var(--text-faint)}
.sp-x{background:none;border:none;font-size:22px;line-height:1;color:var(--text-faint);cursor:pointer}
.sp-list{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.sp-msg{max-width:85%;padding:8px 11px;border-radius:12px;font-size:13.5px;display:flex;flex-direction:column;gap:3px;white-space:pre-wrap;word-break:break-word}
.sp-msg.me{align-self:flex-end;background:var(--accent);color:#fff}
.sp-msg.adm{align-self:flex-start;background:var(--surface-2);color:var(--text)}
.sp-msg b{font-size:11px;color:var(--accent-text)}
.sp-msg time{font-size:11px;opacity:.65;align-self:flex-end}
.sp-muted{font-size:12.5px;color:var(--text-faint)}
.sp-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--border);align-items:flex-end}
.sp-form textarea{flex:1;resize:none;min-height:40px;max-height:120px}
.sp-modal{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.sp-modal-card{background:var(--surface);border-radius:var(--radius-l,14px);padding:20px;max-width:440px;width:100%;display:flex;flex-direction:column;gap:12px}
.sp-modal-card h3{margin:0}
.sp-admin{display:grid;grid-template-columns:300px 1fr;height:100%;min-height:0}
.sp-admin aside{border-right:1px solid var(--border);display:flex;flex-direction:column;gap:8px;padding:12px;min-height:0}
.sp-orgs{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.sp-org{position:relative;display:flex;flex-direction:column;gap:2px;text-align:left;padding:8px 10px;border:1px solid transparent;border-radius:var(--radius-m);background:none;color:var(--text);cursor:pointer}
.sp-org:hover,.sp-org.on{background:var(--surface-2);border-color:var(--border)}
.sp-org-n{font-weight:600;font-size:13px}
.sp-org .sp-muted{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-badge{position:absolute;top:8px;right:8px;background:var(--danger);color:#fff;border-radius:99px;font-style:normal;font-size:11px;padding:1px 6px}
#spConv{display:flex;flex-direction:column;min-height:0;min-width:0}
.sp-conv-head{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;gap:10px;align-items:baseline}
@media(max-width:860px){.sp-admin{grid-template-columns:1fr;grid-template-rows:200px 1fr}.sp-admin aside{border-right:none;border-bottom:1px solid var(--border)}.sp-float{right:8px;bottom:70px}}
.sp-msg.bot{border-left:3px solid var(--accent)}
.sp-msg.bot b{color:var(--text-faint)}
