.myx-chat-launch, .myx-chat-panel { --c-void:#08070e; --c-slate:#16141f; --c-line:#2a2735; --c-signal:#643dff; --c-lift:#8b6bff; --c-haze:#9c98b0; --c-chrome:#f5f4f9;
  position: fixed; right: 20px; z-index: 90; font-family: "JetBrains Mono", ui-monospace, monospace; }

.myx-chat-launch { bottom: 20px; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; padding: 12px 18px;
  background: none; color: #fff; border: 0; font-size: 0.9rem; cursor: pointer; letter-spacing: 0.02em; }
.myx-chat-launch::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-13deg); background: var(--c-signal); transition: background .15s ease; }
.myx-chat-launch:hover::before { background: var(--c-lift); }
.myx-chat-launch.hidden { display: none; }
.myx-chat-slash { color: #fff; opacity: .85; }
.myx-chat-panel { bottom: 20px; width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 90px));
  display: none; flex-direction: column; background: var(--c-void); border: 1px solid var(--c-line); overflow: hidden; }
.myx-chat-panel.open { display: flex; }
.myx-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--c-line); }
.myx-chat-title { color: var(--c-chrome); font-size: .82rem; letter-spacing: .12em; text-transform: lowercase; }
.myx-chat-title::before { content: "/ "; color: var(--c-signal); }
.myx-chat-x { background: none; border: 0; color: var(--c-haze); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.myx-chat-x:hover { color: var(--c-chrome); }
.myx-chat-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.myx-chat-note { color: var(--c-haze); font-size: .72rem; text-align: center; padding: 6px 0; }
.myx-chat-msg { display: flex; }
.myx-chat-msg.is-me { justify-content: flex-end; }
.myx-chat-bubble { max-width: 78%; padding: 9px 12px; font-size: .82rem; line-height: 1.45; color: var(--c-chrome); white-space: pre-wrap; word-break: break-word; }
.myx-chat-msg.is-me .myx-chat-bubble { background: var(--c-signal); }
.myx-chat-msg.is-agent .myx-chat-bubble { background: var(--c-slate); border: 1px solid var(--c-line); }
.myx-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line); }
.myx-chat-input { flex: 1; min-width: 0; background: var(--c-slate); border: 1px solid var(--c-line); color: var(--c-chrome);
  font-family: inherit; font-size: .82rem; padding: 10px 12px; }
.myx-chat-input:focus { outline: none; border-color: var(--c-signal); }
.myx-chat-send { position: relative; isolation: isolate; background: none; color: #fff; border: 0; font-family: inherit; font-size: .8rem; padding: 0 16px; cursor: pointer; }
.myx-chat-send::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-13deg); background: var(--c-signal); transition: background .15s ease; }
.myx-chat-send:hover::before { background: var(--c-lift); }
@media (max-width: 480px) { .myx-chat-panel { right: 16px; bottom: 16px; } .myx-chat-launch { right: 16px; bottom: 16px; } }

.myx-chat-head { gap: 8px; }
.myx-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-haze); flex: none; }
.myx-chat-dot.is-online { background: #5fd39a; box-shadow: 0 0 6px 1px rgba(95,211,154,0.6); }
.myx-chat-status-txt { font-size: .68rem; color: var(--c-haze); letter-spacing: .06em; }
.myx-chat-spacer { flex: 1; }
.myx-chat-end { position: relative; isolation: isolate; background: none; border: 0; color: var(--c-haze); font-family: inherit; font-size: .68rem; padding: 5px 11px; cursor: pointer; }
.myx-chat-end::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-13deg); border: 1px solid var(--c-line); transition: border-color .15s; }
.myx-chat-end:hover { color: var(--c-chrome); }
.myx-chat-end:hover::before { border-color: var(--c-signal); }
.myx-chat-divider { text-align: center; color: var(--c-haze); font-size: .68rem; letter-spacing: .08em; padding: 8px 0; }
.myx-chat-input:disabled { opacity: .55; cursor: not-allowed; }
.myx-chat-send:disabled { opacity: .45; cursor: not-allowed; }

.myx-chat-tg { position: relative; isolation: isolate; align-items: center; justify-content: center; gap: 8px;
  margin: 0 12px 14px; padding: 12px 14px; color: #fff; font-family: inherit; font-size: .8rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; }
.myx-chat-tg::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-13deg); background: #229ed9; transition: background .15s ease; }
.myx-chat-tg:hover::before { background: #2aa8e4; }
.myx-chat-tg-ico { display: inline-flex; }
.myx-chat-tg-ico svg { display: block; }
