.zarven-chat{position:fixed;right:24px;bottom:24px;z-index:500;font-family:var(--font,Manrope,Arial,sans-serif)}
.zarven-chat *{box-sizing:border-box}.zarven-chat button{font:inherit;cursor:pointer}
.chat-launch{display:flex;align-items:center;gap:10px;min-width:208px;min-height:62px;padding:8px 16px 8px 9px;border:1px solid #8ffff68f;border-radius:20px;background:linear-gradient(130deg,#113b42,#0b2b33);color:#f4ffff;box-shadow:0 10px 28px #06191c70,0 0 0 5px #34e4de18;text-align:left;transition:transform .2s,box-shadow .2s}
.chat-launch-icon{display:grid;flex:0 0 auto;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#18d5d1,#77f4e8);color:#06282b;box-shadow:0 5px 14px #0accc543}.chat-launch-icon svg{width:29px;height:29px}.chat-launch-copy{display:flex;flex-direction:column;gap:3px}.chat-launch-copy strong{font-size:13px;font-weight:800;line-height:1.15}.chat-launch-copy small{color:#a6d3d1;font-size:11px;line-height:1.15}
.chat-launch:hover{transform:translateY(-3px);box-shadow:0 16px 34px #06191c70,0 0 0 6px #34e4de20}.chat-launch:focus-visible,.chat-close:focus-visible,.chat-form button:focus-visible,.chat-form textarea:focus-visible{outline:2px solid #9bfff7;outline-offset:3px}
.chat-panel{position:absolute;right:0;bottom:78px;display:flex;flex-direction:column;width:min(400px,calc(100vw - 28px));height:min(530px,calc(100dvh - 112px));min-height:340px;padding:0;overflow:hidden;border:1px solid #5ee6df42;border-radius:22px;background:#071b21;box-shadow:0 24px 75px #021114b8,0 0 0 1px #ffffff0a;color:#f5ffff}
.chat-panel[hidden]{display:none}
.chat-head{display:flex;flex:0 0 auto;align-items:center;gap:12px;min-height:76px;padding:14px 16px;border-bottom:1px solid #ffffff16;background:linear-gradient(120deg,#103139,#0c242b 65%,#0a2027)}
.chat-avatar{display:grid;flex:0 0 auto;place-items:center;width:40px;height:40px;border:1px solid #7ff6ef70;border-radius:13px;background:linear-gradient(145deg,#17d4d1,#6af0e8);color:#06242a;box-shadow:0 5px 17px #16d5d140}.chat-avatar svg{width:27px;height:27px}
.chat-head-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.chat-head strong{font-size:14px;line-height:1.2;letter-spacing:-.01em}.chat-head small{display:flex;align-items:center;gap:6px;color:#abc9ca;font-size:11px;line-height:1.3}.chat-head small::before{width:7px;height:7px;border-radius:50%;background:#49e2ad;box-shadow:0 0 9px #49e2ad;content:""}
.chat-close{display:grid;flex:0 0 auto;place-items:center;width:34px;height:34px;border:1px solid #ffffff1c;border-radius:10px;background:#ffffff0b;color:#def7f5;font-size:23px;line-height:1;transition:background .2s}.chat-close:hover{background:#ffffff22}
.chat-log{display:flex;flex:1 1 auto;flex-direction:column;gap:12px;min-height:0;padding:20px 16px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#58787a transparent;scrollbar-width:thin;background:radial-gradient(circle at 10% 0,#12505833,transparent 52%),#071b21}
.chat-message{align-self:flex-start;max-width:87%;padding:11px 14px;border:1px solid #ffffff0a;border-radius:16px 16px 16px 5px;background:#17343c;color:#ecfafa;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.55;box-shadow:0 4px 14px #03121725}
.chat-message.user{align-self:flex-end;border-color:#27e6dc4d;border-radius:16px 16px 5px 16px;background:linear-gradient(140deg,#19d5d2,#33e5d8);color:#05262a}.chat-message.status{border-color:#ffffff0b;background:#112d34;color:#a9c6c7;font-style:italic}.chat-message.error{border-color:#f2a0a04a;background:#3b2228;color:#ffe2e2}
.chat-composer{flex:0 0 auto;padding:12px 14px 11px;border-top:1px solid #ffffff17;background:#0a2229}.chat-form{display:flex;align-items:flex-end;gap:9px;margin:0;padding:0;border:0}.chat-form textarea{flex:1;min-width:0;min-height:44px;max-height:110px;resize:none;border:1px solid #6cd6d24d;border-radius:12px;padding:11px 12px;background:#07191e;color:#fff;font:13px/1.5 var(--font,Arial,sans-serif);transition:border-color .2s,box-shadow .2s}.chat-form textarea::placeholder{color:#8ba9aa}.chat-form textarea:focus{border-color:#36ddd5;box-shadow:0 0 0 3px #28dbd41f;outline:0}.chat-form button{flex:0 0 auto;min-height:44px;border:0;border-radius:12px;padding:0 16px;background:linear-gradient(135deg,#18d5d1,#5aece0);color:#052429;font-size:13px;font-weight:800;transition:filter .2s,transform .2s}.chat-form button:hover{filter:brightness(1.08);transform:translateY(-1px)}.chat-form button:disabled{opacity:.55;cursor:wait;transform:none}.chat-note{margin:8px 2px 0;color:#8aa9ab;font-size:10px;line-height:1.4}
@media(max-width:600px){.zarven-chat{right:16px;bottom:calc(16px + env(safe-area-inset-bottom))}.chat-launch{min-width:198px;min-height:58px}.zarven-chat.chat-open .chat-launch{display:none}.chat-panel{position:fixed;inset:var(--chat-viewport-top,0px) 0 auto;width:100vw;max-width:none;height:var(--chat-viewport-height,100dvh);min-height:0;border:0;border-radius:0;box-shadow:none}.chat-head{min-height:68px;padding:10px 16px}.chat-log{padding:18px 16px;gap:14px}.chat-message{max-width:88%;font-size:14px;line-height:1.55}.chat-composer{padding:12px 12px calc(10px + env(safe-area-inset-bottom))}.chat-form textarea{min-height:48px;font-size:16px}.chat-form button{min-height:48px}.chat-close{width:40px;height:40px}}
@media(max-width:360px){.chat-launch{min-width:178px}.chat-form button{padding:0 13px}.chat-log{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.zarven-chat .chat-launch,.zarven-chat .chat-close,.zarven-chat .chat-form button{transition:none}}
