.floating-widget{position:fixed;right:25px;bottom:22px;z-index:30;width:76px;height:76px}.widget-launcher{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:76px;height:76px;padding:0;border:1px solid #ffffffeb;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff,#dcefff 75%);box-shadow:0 13px 32px #195b9090,0 0 0 7px #ffffff91,inset 0 2px #fff;transition:transform .45s cubic-bezier(.2,1.4,.2,1),opacity .25s,visibility .25s;animation:widgetFloat 4s ease-in-out infinite}.widget-launcher:hover{transform:scale(1.1)}.widget-launcher img{width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 4px 6px #276d9f5c)}.widget-launcher span{position:absolute;right:88px;top:20px;width:max-content;padding:8px 12px;border:1px solid #ffffffeb;border-radius:20px;background:#ffffffe0;box-shadow:0 5px 18px #1d648d25;backdrop-filter:blur(16px);color:#28658f;font-size:12px;font-weight:700;white-space:nowrap}
.widget-panel{position:absolute;right:0;bottom:0;display:flex;flex-direction:column;width:360px;height:min(520px,calc(100dvh - 35px));overflow:hidden;border:1px solid #ffffffef;border-radius:24px;background:linear-gradient(145deg,#f8fcfff0,#e9f5fff0);box-shadow:0 27px 75px #1c527672,0 0 0 7px #ffffff70,inset 0 1px #fff;backdrop-filter:blur(34px);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(18px) scale(.22);transform-origin:bottom right;transition:opacity .25s,visibility .25s,transform .48s cubic-bezier(.16,1.2,.27,1),width .32s,height .32s}.floating-widget.open .widget-panel{opacity:1;visibility:visible;pointer-events:auto;transform:none}.floating-widget.open .widget-launcher{opacity:0;visibility:hidden;pointer-events:none;transform:scale(.25)}.floating-widget.medium .widget-panel{width:460px;height:min(650px,calc(100dvh - 35px))}
.widget-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:14px 15px;border-bottom:1px solid #dcecf6a8;background:#ffffff85}.widget-identity{display:flex;align-items:center;gap:9px;min-width:0}.widget-identity img{width:34px;height:34px;border-radius:11px;background:#fff;box-shadow:0 3px 10px #397db029}.widget-identity span{display:flex;flex-direction:column}.widget-identity strong{font-size:13px}.widget-identity small{margin-top:2px;color:#7898ae;font-size:10px}.widget-controls{display:flex;gap:5px}.widget-controls button,.widget-controls a{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d8e9f5;border-radius:9px;background:#ffffffb0;color:#3f759d;text-decoration:none;font-size:19px;line-height:1;transition:background .2s,transform .2s}.widget-controls button:hover,.widget-controls a:hover{background:#e1f3ff;transform:translateY(-2px)}
.widget-messages{flex:1;min-height:0;overflow-y:auto;padding:18px 14px;display:flex;flex-direction:column;gap:14px;scrollbar-color:#b9d8eb transparent}.widget-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center;padding:15px;color:#28516e}.widget-welcome img{width:105px;height:105px;object-fit:contain;filter:drop-shadow(0 10px 15px #3c89bd33);animation:widgetFloat 5s ease-in-out infinite}.widget-welcome strong{margin-top:8px;font-size:19px;letter-spacing:-.04em}.widget-welcome span{max-width:240px;margin-top:7px;color:#7893a7;font-size:12px;line-height:1.5}.widget-messages .message{gap:7px}.widget-messages .assistant-avatar{width:26px;height:26px}.widget-messages .assistant-avatar img{width:20px;height:20px}.widget-messages .message-group{max-width:84%}.widget-messages .bubble{padding:10px 12px;font-size:12px;line-height:1.5}.widget-messages .source-list a,.widget-messages .source-list span{font-size:10px}
.widget-form{display:flex;align-items:flex-end;gap:8px;flex:none;margin:0 12px 5px;padding:9px;border:1px solid #cfe5f5;border-radius:15px;background:#ffffffcf;box-shadow:0 5px 22px #4388b229,inset 0 1px #fff}.widget-form:focus-within{border-color:#8dc6ed;box-shadow:0 5px 22px #4388b229,0 0 0 3px #8dc6ed40}.widget-form textarea{flex:1;min-width:0;min-height:32px;max-height:96px;padding:6px 3px;border:0;outline:0;resize:vertical;background:transparent;color:#173954;font-size:12px;line-height:1.4}.widget-form textarea::placeholder{color:#96adbd}.widget-form button{width:33px;height:33px;flex:none;border:0;border-radius:10px;background:linear-gradient(135deg,#1e87e4,#56b8ec);box-shadow:0 4px 10px #1e87e44d;color:white;font-size:17px}.widget-note{margin:0 0 9px;text-align:center;color:#9aafbf;font-size:9px}
@keyframes widgetFloat{0%,100%{translate:0 0}50%{translate:0 -6px}}
.widget-form button{display:grid;place-items:center}.widget-form button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
@media(max-width:600px){.floating-widget{right:17px;bottom:17px}.widget-launcher span{display:none}.widget-panel,.floating-widget.medium .widget-panel{width:min(400px,calc(100vw - 26px));height:min(550px,calc(100dvh - 32px))}.floating-widget.medium .widget-panel{height:min(680px,calc(100dvh - 32px))}}
