/**
 * Rides the engine theme's own tokens so support looks native in both themes.
 * Scoped under .chat-drawer.efl-sup-live — nothing leaks into the theme.
 */
.chat-drawer.efl-sup-live .chat-body{display:flex;flex-direction:column;gap:10px}

.efl-sup-msg{max-width:86%;display:flex;flex-direction:column;gap:3px}
.efl-sup-msg.is-user{align-self:flex-end;align-items:flex-end}
.efl-sup-msg.is-staff{align-self:flex-start}
.efl-sup-who{font-size:11px;letter-spacing:.02em;color:var(--muted);opacity:.85}
.efl-sup-msg p{margin:0;padding:9px 12px;border-radius:14px;line-height:1.5;font-size:13.5px;white-space:pre-wrap;word-break:break-word;background:color-mix(in srgb,var(--muted) 12%,transparent);border:1px solid var(--line)}
.efl-sup-msg.is-user p{background:color-mix(in srgb,var(--accent,#7c3aed) 16%,transparent);border-color:color-mix(in srgb,var(--accent,#7c3aed) 30%,transparent)}

.efl-sup-note{font-size:12.5px;line-height:1.5;color:var(--muted);padding:8px 11px;border-radius:11px;border:1px dashed var(--line);background:color-mix(in srgb,var(--muted) 6%,transparent)}
.efl-sup-note.is-greet{border-style:solid}
.efl-sup-note.is-ok{color:#0d9669;border-color:color-mix(in srgb,#0d9669 40%,transparent);border-style:solid}
.efl-sup-note.is-warn{color:#b45309;border-color:color-mix(in srgb,#b45309 40%,transparent);border-style:solid}
.efl-sup-note.is-pending{opacity:.7}

.efl-sup-guest{display:flex;gap:6px;padding:0 12px 8px}
.efl-sup-guest input{flex:1;min-width:0;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:color-mix(in srgb,var(--muted) 8%,transparent);color:inherit;font:inherit;font-size:13px}
.efl-sup-guest input:focus{outline:none;border-color:color-mix(in srgb,var(--accent,#7c3aed) 55%,transparent)}

html[data-theme="light"] .efl-sup-msg p{background:#f3f5fb}
html[data-theme="light"] .efl-sup-msg.is-user p{background:#eae4ff;border-color:#cbbcf7}
html[data-theme="light"] .efl-sup-guest input{background:#f7f8fc}

/* ---- ticket list ---- */
.efl-sup-list{display:flex;flex-direction:column;gap:8px}
.efl-sup-item{display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:color-mix(in srgb,var(--muted) 8%,transparent);color:inherit;font:inherit;cursor:pointer}
.efl-sup-item:hover{border-color:color-mix(in srgb,var(--accent,#7c3aed) 45%,transparent)}
.efl-sup-item strong{font-size:13.5px}
.efl-sup-item span{font-size:11.5px;color:var(--muted)}
.efl-sup-item.has-unread strong::after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#d63638;margin-left:7px;vertical-align:middle}
.efl-sup-new{margin-top:4px;padding:9px 12px;border-radius:12px;border:1px dashed var(--line);background:transparent;color:var(--muted);font:inherit;cursor:pointer}
.efl-sup-new:hover{color:inherit;border-style:solid}
html[data-theme="light"] .efl-sup-item{background:#f7f8fc}

/* ---- AI action bar ---- */
.efl-sup-actions-bar{display:flex;gap:8px;margin:2px 0 4px;align-self:flex-start}
.efl-sup-act{padding:6px 11px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.efl-sup-act:hover{color:inherit;border-color:color-mix(in srgb,var(--accent,#7c3aed) 45%,transparent)}
.efl-sup-act.is-solved:hover{color:#0d9669;border-color:color-mix(in srgb,#0d9669 45%,transparent)}

/* ---- attachments + clip ---- */
.efl-sup-att-img{display:block;max-width:220px;max-height:170px;border-radius:10px;border:1px solid var(--line);margin-top:4px}
.efl-sup-att-file{display:inline-block;margin-top:4px;padding:6px 10px;border-radius:9px;border:1px solid var(--line);background:color-mix(in srgb,var(--muted) 10%,transparent);color:inherit;text-decoration:none;font-size:12.5px;word-break:break-all}
/* The clip lives inside the theme's chat row: glassy like the field, shaped
   like Send (radius 16), lit like the suite on hover. */
.chat-drawer.efl-sup-live .efl-sup-clip{flex:0 0 auto;width:42px;display:flex;align-items:center;justify-content:center;border-radius:16px;border:1px solid rgba(114,151,255,.32);background:rgba(255,255,255,.05);color:#aab3cf;cursor:pointer;padding:0;transition:color .15s,border-color .15s,box-shadow .15s,background .15s}
.chat-drawer.efl-sup-live .efl-sup-clip:hover{color:#eaf6ff;border-color:rgba(0,238,255,.55);background:rgba(0,238,255,.07);box-shadow:0 0 14px rgba(0,238,255,.22)}
.chat-drawer.efl-sup-live .efl-sup-clip:focus-visible{outline:2px solid rgba(169,40,255,.65);outline-offset:1px}
.chat-drawer.efl-sup-live .efl-sup-clip:active{transform:translateY(1px)}
html[data-theme="light"] .chat-drawer.efl-sup-live .efl-sup-clip{border-color:#e2e6f2;background:#f7f8fd;color:#5b6478;box-shadow:none}
html[data-theme="light"] .chat-drawer.efl-sup-live .efl-sup-clip:hover{color:#3b2fa8;border-color:#b9c2ff;background:#f0f2ff;box-shadow:0 1px 6px rgba(90,80,220,.14)}

/* ---- the chat scrollbar: thin, rounded, native to both themes ---- */
.chat-drawer.efl-sup-live .chat-body{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted) 45%,transparent) transparent}
.chat-drawer.efl-sup-live .chat-body::-webkit-scrollbar{width:8px}
.chat-drawer.efl-sup-live .chat-body::-webkit-scrollbar-track{background:transparent}
.chat-drawer.efl-sup-live .chat-body::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 40%,transparent);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.chat-drawer.efl-sup-live .chat-body::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--muted) 65%,transparent);background-clip:padding-box}
html[data-theme="light"] .chat-drawer.efl-sup-live .chat-body{scrollbar-color:#c3cbe3 transparent}
html[data-theme="light"] .chat-drawer.efl-sup-live .chat-body::-webkit-scrollbar-thumb{background:#c3cbe3;background-clip:padding-box}
html[data-theme="light"] .chat-drawer.efl-sup-live .chat-body::-webkit-scrollbar-thumb:hover{background:#a8b3d6;background-clip:padding-box}

/* ---- phones: the theme hides its assistant button at 560px, which removes
   the only door into support. While this plugin is active, the door stays —
   compact, icon-only, sized like the round actions beside it. Loaded after
   the theme, so the equal-specificity rule below wins the cascade. ---- */
@media (max-width:560px){
	.assistant-btn{display:flex;height:42px;padding:0 12px;border-radius:21px;box-shadow:0 0 14px rgba(0,109,255,.5),inset 0 0 10px rgba(255,255,255,.14)}
	.assistant-btn b{display:none}
	.assistant-btn svg{font-size:1.1875rem}
}
@media (max-width:360px){
	.assistant-btn{padding:0 10px}
}
