.ec-launch{position:fixed;right:20px;bottom:20px;z-index:9000;border:1px solid #b89b62;border-radius:999px;background:#171713;color:#fff;padding:12px 17px;display:flex;align-items:center;gap:10px;box-shadow:0 8px 28px #0005;font:600 14px/1.2 system-ui,sans-serif;cursor:pointer}
.ec-launch img{width:30px;height:30px;object-fit:cover;border-radius:50%}
.ec-launch:hover,.ec-launch:focus-visible{background:#302b22;outline:2px solid #c9a865;outline-offset:2px}
.ec-panel{position:fixed;right:20px;bottom:78px;z-index:9001;width:min(390px,calc(100vw - 24px));height:min(620px,calc(100dvh - 94px));display:none;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:0!important;margin:0!important;border:1px solid #c7aa70;border-radius:15px;background:#f9f7f2;color:#25231e;box-shadow:0 15px 50px #0006;font:14px/1.45 system-ui,sans-serif}
.ec-panel.ec-open{display:flex}
.ec-head{display:flex;align-items:center;gap:10px;background:#171713;color:#fff;padding:12px 14px}
.ec-head img{width:36px;height:36px;object-fit:cover;border-radius:50%}
.ec-head b{display:block;font-size:15px}.ec-head small{display:block;font-size:11px;color:#d6c8a8}
.ec-close{margin-left:auto;background:transparent;border:0;color:#fff;font:24px/1 system-ui;cursor:pointer;min-width:36px;min-height:36px}
.ec-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.ec-msg{max-width:90%;border-radius:12px;padding:10px 12px;background:#eee8dc;white-space:pre-line}
.ec-msg.ec-user{align-self:flex-end;background:#302b22;color:#fff}
.ec-msg a{display:block;margin-top:7px;color:#805e1c;text-decoration:underline}.ec-msg.ec-user a{color:#fff}
.ec-actions{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 10px}
.ec-actions button,.ec-actions a{border:1px solid #b29a69;border-radius:16px;background:#fff;color:#2c2518;padding:7px 10px;font:600 12px/1.2 system-ui,sans-serif;cursor:pointer;text-decoration:none}
.ec-actions button:hover,.ec-actions a:hover{background:#f0e6d0}
.ec-ask{display:flex;flex-wrap:wrap;gap:7px;padding:11px 13px;border-top:1px solid #d6cab1;background:#fff}
.ec-ask small{width:100%;color:#625b50;font:11px/1.2 system-ui,sans-serif}
.ec-ask input{flex:1;min-width:0;border:1px solid #cbbda3;border-radius:8px;padding:10px;font:14px system-ui}
.ec-ask button,.ec-lead button{border:0;border-radius:8px;background:#191814;color:#fff;padding:9px 13px;font:600 13px system-ui;cursor:pointer}
.ec-lead{padding:8px 15px 14px;overflow-y:auto;display:none;flex-direction:column;gap:8px;border-top:1px solid #d6cab1}
.ec-lead.ec-visible{display:flex;flex:1}.ec-panel:has(.ec-lead.ec-visible) .ec-log,.ec-panel:has(.ec-lead.ec-visible) .ec-actions,.ec-panel:has(.ec-lead.ec-visible) .ec-ask{display:none}.ec-lead h3{font-size:16px;line-height:1.25;margin:4px 0 0}.ec-lead p{font-size:12px;margin:0;color:#5f584c}
.ec-lead label{font-size:12px;font-weight:600}.ec-lead input,.ec-lead select{width:100%;box-sizing:border-box;border:1px solid #cbbda3;border-radius:6px;background:#fff;padding:9px;margin-top:3px;font:14px system-ui}
.ec-lead .ec-lead-actions{display:flex;gap:8px}.ec-lead .ec-lead-actions button{flex:1}.ec-lead .ec-lead-actions .ec-back{background:#e5decf;color:#2c2518}
.ec-lead .ec-status{min-height:1em;color:#77451f}
@media(max-width:600px){.ec-launch{right:12px;bottom:12px}.ec-panel{right:12px;bottom:70px;height:min(610px,calc(100dvh - 82px))}}
