#dfa-root{--dfa:#1d4ed8;position:fixed;right:18px;bottom:18px;z-index:99990;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#0f172a}
.admin-bar #dfa-root{bottom:96px}
#dfa-root *{box-sizing:border-box}
#dfa-root .dfa-launch{width:58px;height:58px;border-radius:50%;border:0;background:var(--dfa);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(15,23,42,.28);position:relative;padding:0;margin:0;transition:transform .15s}
#dfa-root .dfa-launch:hover{transform:scale(1.06)}
#dfa-root .dfa-launch:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
#dfa-root .dfa-tip{position:absolute;right:68px;top:50%;transform:translateY(-50%);background:#0f172a;color:#fff;font-size:13px;font-weight:600;padding:6px 10px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s}
#dfa-root.dfa-hint .dfa-tip,#dfa-root .dfa-launch:hover .dfa-tip{opacity:1}
#dfa-root.dfa-open .dfa-tip{display:none}
#dfa-root .dfa-panel{position:absolute;right:0;bottom:72px;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(15,23,42,.3);display:flex;flex-direction:column;overflow:hidden;border:1px solid #e2e8f0}
#dfa-root .dfa-panel[hidden]{display:none}
#dfa-root .dfa-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--dfa);background-image:linear-gradient(135deg,var(--dfa),#0f172a);color:#fff}
#dfa-root .dfa-av{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:none}
#dfa-root .dfa-ttl{flex:1;min-width:0;line-height:1.25}
#dfa-root .dfa-ttl b{display:block;font-size:15px}
#dfa-root .dfa-ttl span{font-size:12px;opacity:.85}
#dfa-root .dfa-ttl i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#4ade80;margin-right:6px}
#dfa-root .dfa-x{background:none;border:0;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:0 4px;margin:0;width:auto;min-height:0}
#dfa-root .dfa-body{flex:1;overflow-y:auto;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:10px}
#dfa-root .dfa-msg{max-width:88%;padding:9px 12px;border-radius:14px;font-size:14.5px;word-wrap:break-word;overflow-wrap:anywhere}
#dfa-root .dfa-msg p{margin:0 0 6px}
#dfa-root .dfa-msg p:last-child{margin:0}
#dfa-root .dfa-msg ul{margin:4px 0 6px;padding-left:18px}
#dfa-root .dfa-msg li{margin:2px 0}
#dfa-root .dfa-bot{background:#fff;border:1px solid #e2e8f0;align-self:flex-start;border-bottom-left-radius:4px}
#dfa-root .dfa-me{background:var(--dfa);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
#dfa-root .dfa-msg a{color:var(--dfa);font-weight:600;text-decoration:underline}
#dfa-root .dfa-me a{color:#fff}
#dfa-root .dfa-links{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0}
#dfa-root .dfa-links a{font-size:13px;text-decoration:none;font-weight:600}
#dfa-root .dfa-links a:before{content:"→ "}
#dfa-root .dfa-typing{display:flex;gap:4px;padding:12px 14px}
#dfa-root .dfa-typing span{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:dfa-b 1s infinite}
#dfa-root .dfa-typing span:nth-child(2){animation-delay:.15s}
#dfa-root .dfa-typing span:nth-child(3){animation-delay:.3s}
@keyframes dfa-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
#dfa-root .dfa-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px;background:#f8fafc}
#dfa-root .dfa-chips:not(:empty){padding:0 14px 10px}
#dfa-root .dfa-chip{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:999px;padding:5px 11px;font-size:13px;cursor:pointer;margin:0;line-height:1.4;min-height:0;width:auto;font-weight:500}
#dfa-root .dfa-chip:hover{border-color:var(--dfa);color:var(--dfa)}
#dfa-root .dfa-form{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid #e2e8f0;background:#fff;margin:0}
#dfa-root .dfa-form textarea{flex:1;resize:none;border:1px solid #cbd5e1;border-radius:12px;padding:9px 12px;font:inherit;font-size:14.5px;line-height:1.4;max-height:120px;min-height:0;height:auto;margin:0;background:#fff;color:#0f172a;box-shadow:none}
#dfa-root .dfa-form textarea:focus{outline:none;border-color:var(--dfa)}
#dfa-root .dfa-form button{width:42px;height:42px;border-radius:50%;border:0;background:var(--dfa);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0;margin:0;min-height:0}
#dfa-root .dfa-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#dfa-root .dfa-foot{font-size:11.5px;color:#64748b;padding:0 12px 9px;background:#fff;text-align:center}
#dfa-root .dfa-foot a{color:#475569}
@media (max-width:560px){
	#dfa-root{right:14px;bottom:14px}
	.admin-bar #dfa-root{bottom:80px}
	#dfa-root.dfa-open{left:0;right:0;top:0;bottom:0}
	#dfa-root.dfa-open .dfa-launch{display:none}
	#dfa-root .dfa-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0;border:0}
	#dfa-root .dfa-launch{width:54px;height:54px}
}
@media print{#dfa-root{display:none}}
