.td-support-chat-dock {position:fixed;bottom:24px;right:24px;left:auto;width:min(360px,calc(100vw - 32px));z-index:1002;display:flex;flex-direction:column;align-items:flex-end;gap:0;pointer-events:none;font:inherit;direction:ltr;--td-chat-bg:#f7faff;--td-chat-surface:#ffffff;--td-chat-divider:rgba(120,132,151,.5);--td-chat-divider-soft:rgba(120,132,151,.25);--td-chat-text:#070709;--td-chat-text-muted:#788497;--td-chat-text-faint:#99a1b7;--td-chat-bubble-other:#e7edf3;--td-chat-bubble-self:#575ff6;--td-chat-bubble-self-text:#ffffff;--td-chat-bubble-other-text:#3a4358;--td-chat-accent:#575ff6;--td-chat-accent-hover:#4347d6;--td-chat-radius-bubble:22px;--td-chat-radius-tail:6px;}
.td-support-chat-dock > * {pointer-events:auto;}
.td-support-chat-panel {position:absolute;right:0;bottom:calc(56px + 12px);width:100%;display:flex;flex-direction:column;max-height:min(600px,72vh);background:var(--td-chat-surface);border-radius:18px;box-shadow:0 18px 48px rgba(15,23,42,.18);border:1px solid var(--td-chat-divider-soft);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .22s ease,transform .22s ease;pointer-events:none;direction:ltr;}
[dir="rtl"] .td-support-chat-panel {direction:rtl;}
.td-support-chat-panel.td-support-chat-panel--open {opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;}
.td-support-chat-panel__head {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px;background:var(--td-chat-surface);color:var(--td-chat-text);border-bottom:1px solid var(--td-chat-divider);min-height:52px;}
.td-support-chat-panel__title {margin:0;font-size:16px;font-weight:500;line-height:1.25;color:var(--td-chat-text);letter-spacing:-.01em;flex:1;min-width:0;}
.td-support-chat-panel__actions {display:flex;align-items:center;flex-shrink:0;gap:4px;}
.td-support-chat-restart-wrap {position:relative;display:inline-flex;}
.td-support-chat-panel__restart {width:32px;height:32px;border-radius:50%;border:0;background:transparent;color:var(--td-chat-text-muted);font-size:0;line-height:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .15s ease,color .15s ease;}
.td-support-chat-panel__restart::before {content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15'/></svg>") center/contain no-repeat;}
.td-support-chat-panel__restart:hover {background:rgba(120,132,151,.12);color:var(--td-chat-text);}
.td-support-chat-panel__restart:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-panel__tooltip {position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:8px;padding:8px 10px;border-radius:8px;background:var(--td-chat-text);color:#fff;font-size:12px;font-weight:500;line-height:1.3;white-space:normal;max-width:min(240px,calc(100vw - 48px));text-align:center;box-shadow:0 4px 12px rgba(15,23,42,.2);opacity:0;visibility:hidden;transition:opacity .15s ease;z-index:6;pointer-events:none;}
.td-support-chat-restart-wrap:hover .td-support-chat-panel__tooltip,.td-support-chat-restart-wrap:focus-within .td-support-chat-panel__tooltip {opacity:1;visibility:visible;}
.td-support-chat-panel__close {width:32px;height:32px;border-radius:50%;border:0;background:transparent;color:var(--td-chat-text-muted);font-size:0;line-height:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .15s ease,color .15s ease;}
.td-support-chat-panel__close::before {content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' d='M18 6 6 18M6 6l12 12'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' d='M18 6 6 18M6 6l12 12'/></svg>") center/contain no-repeat;}
.td-support-chat-panel__close span {display:none;}
.td-support-chat-panel__close:hover {background:rgba(120,132,151,.12);color:var(--td-chat-text);}
.td-support-chat-panel__close:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-panel__body {position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:var(--td-chat-bg);}
.td-support-chat-msgs {flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:8px;background:var(--td-chat-bg);min-height:280px;scroll-behavior:smooth;}
.td-support-chat-msgs::-webkit-scrollbar {width:6px;}
.td-support-chat-msgs::-webkit-scrollbar-thumb {background:rgba(120,132,151,.35);border-radius:6px;}
.td-support-chat-drop {position:absolute;inset:8px;display:flex;align-items:center;justify-content:center;background:rgba(87,95,246,.92);color:#fff;z-index:3;font-size:15px;font-weight:600;text-align:center;padding:16px;border-radius:14px;pointer-events:none;}
.td-support-chat-drop[hidden] {display:none !important;}
.td-support-chat-drop__label {pointer-events:none;}
.td-support-chat-msg {max-width:80%;padding:10px 14px;font-size:13px;line-height:1.35;white-space:pre-wrap;word-break:break-word;border-radius:var(--td-chat-radius-bubble);font-weight:500;}
.td-support-chat-msg--user {align-self:flex-end;background:var(--td-chat-bubble-self);color:var(--td-chat-bubble-self-text);border-end-end-radius:var(--td-chat-radius-tail);}
.td-support-chat-msg--assistant {align-self:flex-start;background:var(--td-chat-bubble-other);color:var(--td-chat-bubble-other-text);border-end-start-radius:var(--td-chat-radius-tail);}
.td-support-chat-msg--system {align-self:center;font-size:12px;color:var(--td-chat-text-faint);background:transparent;border:0;padding:6px 12px;font-weight:400;}
.td-support-chat-msg--welcome {max-width:90%;}
.td-support-chat-msg img {display:block;max-width:100%;max-height:240px;border-radius:14px;margin-bottom:6px;object-fit:contain;background:rgba(255,255,255,.35);}
.td-support-chat-msg--user img {background:rgba(255,255,255,.18);}
.td-support-chat-msg__time {display:block;font-size:11px;color:var(--td-chat-text-faint);margin-top:4px;text-align:end;font-weight:400;}
.td-support-chat-msg--user .td-support-chat-msg__time {color:rgba(255,255,255,.75);}
.td-support-chat-actions {display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.td-support-chat-chip {display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 14px;border-radius:999px;border:1px solid var(--td-chat-accent);background:var(--td-chat-surface);color:var(--td-chat-accent);font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;transition:background-color .15s ease,color .15s ease;}
.td-support-chat-chip:hover {background:var(--td-chat-accent);color:#fff;}
.td-support-chat-chip:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-foot {display:flex;flex-direction:column;gap:0;padding:0;border-top:1px solid var(--td-chat-divider);background:var(--td-chat-surface);}
.td-support-chat-preview {display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--td-chat-divider-soft);background:var(--td-chat-bg);}
.td-support-chat-preview[hidden] {display:none !important;}
.td-support-chat-preview img {width:56px;height:56px;object-fit:cover;border-radius:10px;}
.td-support-chat-preview-remove {width:32px;height:32px;border-radius:50%;border:0;background:rgba(120,132,151,.15);color:var(--td-chat-text);font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-inline-start:auto;font-family:inherit;transition:background-color .15s ease;}
.td-support-chat-preview-remove:hover {background:rgba(120,132,151,.28);}
.td-support-chat-preview-remove:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-foot__row {display:flex;align-items:center;gap:8px;width:100%;padding:8px 14px;min-height:44px;}
.td-support-chat-attach {width:32px;height:32px;flex-shrink:0;border-radius:50%;border:0;background:transparent;color:var(--td-chat-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .15s ease,color .15s ease;}
.td-support-chat-attach svg {width:18px;height:18px;display:block;}
.td-support-chat-attach:hover {background:rgba(120,132,151,.12);color:var(--td-chat-text);}
.td-support-chat-attach:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-foot__divider {flex-shrink:0;width:1px;height:20px;background:var(--td-chat-divider);}
.td-support-chat-foot textarea#td-support-chat-input {flex:1;min-height:24px;max-height:100px;padding:6px 4px;border-radius:0;border:0;font:inherit;font-size:13px;font-weight:500;line-height:1.4;background:transparent;color:var(--td-chat-text);resize:none;field-sizing:content;outline:0;}
.td-support-chat-foot textarea#td-support-chat-input::placeholder {color:var(--td-chat-text-muted);font-weight:500;}
.td-support-chat-foot textarea#td-support-chat-input:focus {outline:0;}
.td-support-chat-send {width:32px;height:32px;flex-shrink:0;border-radius:50%;border:0;background:rgba(120,132,151,.18);color:var(--td-chat-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;transition:background-color .15s ease,color .15s ease,transform .15s ease;}
.td-support-chat-send svg {width:14px;height:14px;display:block;}
[dir="rtl"] .td-support-chat-send svg {transform:scaleX(-1);}
.td-support-chat-send__label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.td-support-chat-send:hover {background:var(--td-chat-accent);color:#fff;}
.td-support-chat-send:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-send--ready {background:var(--td-chat-accent);color:#fff;}
.td-support-chat-send--ready:hover {background:var(--td-chat-accent-hover);}
.td-support-chat-launcher {position:relative;width:56px;height:56px;border-radius:50%;border:0;background:var(--td-chat-accent);color:#fff;box-shadow:0 8px 24px rgba(87,95,246,.4);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s ease,background-color .2s ease;}
.td-support-chat-launcher__badge {position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.25);pointer-events:none;}
.td-support-chat-launcher:hover {transform:translateY(-2px);background:var(--td-chat-accent-hover);}
.td-support-chat-launcher:focus-visible {outline:3px solid var(--focus,#ff8a00);outline-offset:2px;}
.td-support-chat-launcher__glyph {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
.td-support-chat-launcher__glyph--close {display:none;}
.td-support-chat-launcher[aria-expanded="true"] .td-support-chat-launcher__glyph--chat {display:none;}
.td-support-chat-launcher[aria-expanded="true"] .td-support-chat-launcher__glyph--close {display:flex;}
.td-support-chat-launcher__glyph--chat svg {width:26px;height:26px;fill:currentColor;}
.td-support-chat-launcher__glyph--close svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.25;}
.td-support-chat-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.td-dns-config-ai__typing {display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:var(--td-chat-radius-bubble);max-width:80%;align-self:flex-start;background:var(--td-chat-bubble-other);border:0;border-end-start-radius:var(--td-chat-radius-tail);}
.td-dns-config-ai__typing-dots {display:inline-flex;gap:6px;align-items:center;min-height:1.25rem;}
.td-dns-config-ai__typing-dots span {display:block;width:6px;height:6px;border-radius:50%;background:var(--td-chat-text-muted);animation:td-dns-ai-dot 1.2s ease-in-out infinite both;}
.td-dns-config-ai__typing-dots span:nth-child(2) {animation-delay:.15s;}
.td-dns-config-ai__typing-dots span:nth-child(3) {animation-delay:.3s;}
@media all and (max-width:768px){
.td-support-chat-dock {bottom:16px;right:16px;width:calc(100vw - 24px);}
.td-support-chat-panel {bottom:calc(52px + 12px);max-height:min(560px,75vh);}
.td-support-chat-launcher {width:52px;height:52px;}
.td-support-chat-msg {max-width:88%;}
.td-support-chat-foot__row {padding:8px 12px;}
.td-support-chat-panel__tooltip {max-width:min(200px,calc(100vw - 40px));font-size:11px;}
}
@media (prefers-reduced-motion:reduce){
.td-support-chat-launcher:hover {transform:none;}
.td-support-chat-panel {transition:none;}
.td-support-chat-msgs {scroll-behavior:auto;}
.td-support-chat-panel__tooltip {transition:none;}
.td-dns-config-ai__typing-dots span {animation:none;opacity:.55;}
}
@keyframes td-dns-ai-dot {0%,80%,100% {transform:scale(.55);opacity:.45;} 40% {transform:scale(1);opacity:1;}}
