.support-chat-fab{position:fixed;right:18px;bottom:22px;z-index:9990;display:flex;align-items:center;gap:10px}
.support-chat-fab-hint{background:#5f8fce;color:#fff;padding:10px 14px;border-radius:14px;font-size:15px;line-height:1;box-shadow:0 8px 20px rgba(41,81,136,.35)}
.support-chat-launch{width:56px;height:56px;border-radius:50%;border:0;background:#5f8fce;color:#fff;font-size:25px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 24px rgba(41,81,136,.45)}
.support-chat-launch:hover{filter:brightness(1.05)}

.support-chat-modal{position:fixed;inset:0;background:rgba(10,20,35,.58);display:none;align-items:center;justify-content:center;z-index:10000;padding:16px}
.support-chat-modal.open{display:flex}

.support-chat-dialog{width:min(520px,100%);background:#fff;border-radius:14px;border:1px solid #d9e0ef;padding:16px;box-shadow:0 15px 40px rgba(0,0,0,.2);color:#1b2a47}
.support-chat-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.support-chat-head strong{font-size:18px;color:#1b2a47}
.support-chat-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#5a6880}

.support-chat-body{display:grid;gap:8px}
.support-chat-alt-links{display:grid;gap:8px}
.support-chat-alt-link{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;font-weight:600;color:#fff;background:linear-gradient(90deg,#4458f0,#518fff);border:1px solid rgba(68,88,240,.35)}
.support-chat-alt-link:hover,.support-chat-alt-link:focus-visible{filter:brightness(1.06)}
.support-chat-thread{max-height:240px;overflow:auto;padding:8px;border:1px solid #e3eaf7;border-radius:10px;background:#f8faff;display:flex;flex-direction:column;gap:8px}
.support-chat-empty{color:#7b879b;font-size:13px;text-align:center;padding:10px 4px}
.support-chat-msg{display:flex}
.support-chat-msg.user{justify-content:flex-end}
.support-chat-msg.admin{justify-content:flex-start}
.support-chat-msg-body{max-width:85%;display:flex;flex-direction:column;gap:8px;padding:8px 10px;border-radius:10px}
.support-chat-msg.user .support-chat-msg-body{background:#4458f0;color:#fff;border-bottom-right-radius:4px}
.support-chat-msg.admin .support-chat-msg-body{background:#eaf1ff;color:#1b2a47;border-bottom-left-radius:4px}
.support-chat-msg-text{white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.35}

.support-chat-body label{color:#42526d;font-weight:600}
.support-chat-body input,.support-chat-body textarea{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #cfd9ea;background:#fff;color:#1b2a47}
.support-chat-body textarea{resize:vertical;min-height:120px}
.support-chat-body textarea::placeholder{color:#8a97ab}

.support-chat-send{border:1px solid #4458f0;background:#4458f0;color:#fff;border-radius:10px;padding:10px 12px;font-weight:600;cursor:pointer}
.support-chat-send:hover{filter:brightness(1.05)}
.support-chat-status{font-size:13px;min-height:18px}
.support-chat-status.ok{color:#1f9254}
.support-chat-status.error{color:#c93a49}

@media (max-width:760px){
  .support-chat-fab{right:12px;bottom:max(14px,env(safe-area-inset-bottom));gap:8px}
  .support-chat-fab-hint{display:none}
  .support-chat-launch{width:52px;height:52px;font-size:23px}
  .support-chat-modal{padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
.support-chat-msg-text a{color:inherit;text-decoration:underline}
.support-chat-msg-text code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(0,0,0,.08);padding:1px 4px;border-radius:4px}
.support-chat-spoiler{background:#95a3bd;color:transparent;border-radius:5px;padding:0 4px;cursor:pointer;user-select:none}
.support-chat-spoiler.revealed{color:inherit}
.support-chat-toolbar{display:flex;flex-wrap:wrap;gap:6px}
.support-chat-toolbar button{padding:6px 10px;border-radius:8px;border:1px solid #cfd9ea;background:#f4f7ff;color:#1b2a47;cursor:pointer;font-size:12px}
.support-chat-file{font-size:13px}
.support-chat-attachment img{max-width:min(100%,300px);border-radius:8px;border:1px solid rgba(207,217,234,.75)}
.support-chat-attachment video{width:min(100%,320px);max-height:220px;border-radius:8px;border:1px solid rgba(207,217,234,.75);background:#000;object-fit:contain}
.support-chat-draft-attachment{display:grid;gap:8px;padding:8px;border:1px dashed #cfd9ea;border-radius:10px;background:#f4f7ff}
.support-chat-attachment-name{font-size:13px;color:#5a6880;word-break:break-word}
.support-chat-clear-attachment{justify-self:start;border:1px solid #cfd9ea;background:#fff;color:#1b2a47;border-radius:8px;padding:6px 8px;cursor:pointer}
