:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#202330;background:#eff0f5;font-synthesis:none;--accent:#6261e8;--viewport-height:100dvh}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer;border:0;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .18s,transform .18s}button:disabled{opacity:.4;cursor:wait}button,a,input,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #a6a4ff}button:active{transform:scale(.97)}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:transparent;color:#606373}.icon-button:hover{background:#efeffa}.app{display:flex;max-width:1240px;height:calc(var(--viewport-height) - 64px);margin:32px auto;background:#f8f9fc;border:1px solid #fff;border-radius:24px;overflow:hidden;box-shadow:0 16px 70px #28234c09}.sidebar{width:260px;flex-shrink:0;background:#fff;padding:35px 18px 18px;border-right:1px solid #edeef4;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;position:relative;text-decoration:none;color:#222431;font-weight:700;font-size:24px;letter-spacing:-1px;padding:0 15px 20px}.brand-mark{background:#6663e9;color:white;width:38px;height:38px;border-radius:13px;display:grid;place-items:center;box-shadow:0 5px 12px #625ce822}.brand-caption{position:absolute;left:65px;top:36px;font-size:10px;letter-spacing:.5px;color:#9899a6;font-weight:400}.section-label{display:flex;justify-content:space-between;margin:42px 15px 15px;font-size:11px;font-weight:500;color:#9698a5}.section-label span{font-size:10px;color:#b1b2bd}.contact{display:flex;align-items:center;gap:11px;text-align:left;background:#f0effb;padding:14px 12px;border-radius:15px;color:#363448;width:100%}.contact img{width:42px;height:46px;object-fit:cover;border-radius:12px}.contact strong{font-size:13px;font-weight:600}.contact small{display:block;font-size:10px;color:#8e8c9f;margin-top:6px}.contact i{width:6px;height:6px;border-radius:50%;background:#7e7cdd;margin-left:auto}.sidebar-bottom{margin-top:auto}.private-note{display:flex;gap:10px;padding:22px 12px;font-size:11px;color:#777b8c}.private-note .icon{width:17px;height:17px;color:#a4a7b5}.private-note small{display:block;font-size:10px;color:#a3a6b2;margin-top:7px}.settings{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-top:1px solid #f0f1f5;background:transparent;color:#777988;font-size:12px}.settings span{margin-left:auto;color:#a9aaba}.conversation{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;background:radial-gradient(ellipse at 50% 38%,#f0effb66,transparent 58%),#f8f9fc}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px 32px;background:#ffffffbf;border-bottom:1px solid #eceef4;flex-shrink:0}.identity{display:flex;gap:12px;align-items:center;min-width:0}.header-avatar{position:relative;flex-shrink:0}.header-avatar img{display:block;width:43px;height:43px;object-fit:cover;border-radius:14px}.header-avatar i{position:absolute;bottom:-1px;right:-1px;width:10px;height:10px;background:#8fae8d;border:2px solid white;border-radius:50%}h1{font-size:15px;font-weight:650;margin:0;white-space:nowrap}h1 span{font-size:8px;font-weight:600;background:#efedf9;color:#8b84b3;border-radius:4px;padding:3px 4px;margin-left:6px;vertical-align:middle}.chat-header p{font-size:10px;color:#8e91a0;margin:6px 0 0}.chat-header nav{display:flex;gap:5px;flex-shrink:0}.mobile-settings{display:none}.messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 40px;scrollbar-width:thin;scrollbar-color:#dddde8 transparent;scroll-behavior:smooth}.day{display:flex;align-items:center;justify-content:center;gap:13px;color:#aaaebb;font-size:10px}.day::before,.day::after{content:"";width:25px;height:1px;background:#e6e7ee}.welcome{max-width:370px;margin:40px auto 24px;text-align:center}.welcome-avatar{position:relative;width:96px;margin:0 auto 32px}.welcome-avatar img{display:block;width:96px;height:105px;border:5px solid white;border-radius:32px;object-fit:cover;box-shadow:0 10px 28px #50506814;transform:rotate(-5deg)}.avatar-note{position:absolute;bottom:-10px;left:60px;white-space:nowrap;background:white;box-shadow:0 5px 20px #4241620c;border:1px solid #f1eff9;border-radius:11px 11px 11px 2px;padding:8px 10px;font-size:9px;transform:rotate(3deg);color:#79768e}.welcome h2{font-size:29px;letter-spacing:-1px;font-weight:650;margin:0 0 13px;color:#2e3040;line-height:1.4}.welcome>p{font-size:12px;line-height:1.9;color:#8c8e9f;margin:0}.mobile-break{display:none}.call-card{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:17px 18px;margin:29px 0 25px;color:#494665;background:#eeedf9;border:1px solid #e3e1f3;border-radius:17px;box-shadow:0 4px 12px #5c528504}.call-card:hover{background:#e7e5f7;transform:translateY(-2px)}.call-card-icon{width:42px;height:42px;display:grid;place-items:center;color:#7567bf;background:#ded9f244;border:1px solid #dcd6f1;border-radius:13px}.call-card strong{font-size:14px;font-weight:600}.call-card small{display:block;font-size:10px;color:#928aab;margin-top:7px}.call-card .arrow{margin-left:auto;width:17px;color:#a39abf}.prompt-label{font-size:10px;color:#a5a5b4;margin-bottom:13px}.prompts{display:flex;gap:9px;justify-content:center}.prompts button{font-size:11px;color:#868497;background:#ffffffb3;border:1px solid #e8e7ef;border-radius:100px;padding:11px 14px;min-height:40px;white-space:nowrap}.prompts button:hover{border-color:#b8b0df;color:#62558e}.prompts span{color:#b3adca;margin-left:8px}.message{display:flex;gap:10px;margin:22px auto;align-items:flex-start;max-width:720px}.message.user{flex-direction:row-reverse}.badge{width:32px;height:35px;border-radius:11px;background:#eae8f5;color:#9690ad;display:grid;place-items:center;font-size:11px;flex-shrink:0;overflow:hidden}.badge img{width:100%;height:100%;object-fit:cover}.bubble{max-width:calc(100% - 45px);padding:13px 17px;background:white;border:1px solid #edecf3;border-radius:3px 16px 16px;color:#535366;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.user .bubble{background:#6865e5;color:white;border-color:transparent;border-radius:16px 3px 16px 16px;box-shadow:0 3px 12px #6865e513}.bubble audio{display:block;max-width:100%;width:240px;height:36px;margin-top:9px}.notice{padding:0 30px;color:#9d734f;font-size:12px;line-height:1.7;max-height:70px;overflow:auto}.notice:not(:empty){padding-top:8px}footer{padding:18px 32px 22px;flex-shrink:0;background:linear-gradient(transparent,#f8f9fc 35%)}.composer{max-width:760px;margin:auto;display:flex;align-items:flex-end;gap:8px;padding:8px;background:white;border:1px solid #e6e5ee;border-radius:20px;box-shadow:0 5px 20px #35305105}.composer:focus-within{border-color:#b4afe9;box-shadow:0 0 0 3px #7770d707}.composer button{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:transparent;color:#9a96ad}.composer .send{background:#6865e5;color:white;box-shadow:0 3px 8px #6865e522}.composer .send:hover{background:#5551cf}.composer textarea{display:block;flex:1;min-width:0;resize:none;border:0;outline:0;background:transparent;color:#414052;padding:11px 4px;font-size:14px;line-height:22px;height:44px;max-height:120px}.composer textarea::placeholder{color:#b2afbf}.composer-note{max-width:750px;margin:12px auto 0;display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#a8a7b6}.recording{background:#fce5e7!important;color:#c76b79!important;animation:pulse 1.2s infinite}.hidden{display:none!important}
.call{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:#161722e8;backdrop-filter:blur(25px);color:white;overflow:hidden}.call-shell{position:relative;width:min(100%,480px);height:min(880px,var(--viewport-height));overflow:hidden;background:radial-gradient(ellipse at 50% 32%,#41415b,#232333 66%);display:flex;flex-direction:column;padding:28px 28px max(25px,env(safe-area-inset-bottom));isolation:isolate}.call-top{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.5px;color:#e0dde9}.secure{display:flex;align-items:center;gap:5px;font-size:10px;color:#b9b6cc}.secure .icon{width:12px;height:12px}.call-person{position:absolute;top:22%;left:50%;transform:translateX(-50%);width:132px;height:148px}.portrait{width:100%;height:100%;border-radius:42px;overflow:hidden;box-shadow:0 10px 70px #15132944}.portrait video{display:block;width:100%;height:100%;object-fit:cover}.orbit{position:absolute;inset:-15px;border:1px solid #c7bdeb20;border-radius:55px;animation:orbit 3s infinite;pointer-events:none}.orbit-two{inset:-32px;border-radius:67px;animation-delay:1s}.call-info{position:absolute;top:calc(22% + 181px);left:0;right:0;text-align:center;z-index:2}.call h2{font-size:25px;letter-spacing:.5px;font-weight:550;margin:0}.call #call-status{font-size:12px;color:#c3bed8;margin:13px 0 0;font-variant-numeric:tabular-nums}.calling-dots{display:flex;justify-content:center;gap:5px;margin-top:24px}.calling-dots i{width:4px;height:4px;border-radius:50%;background:#b6afd2;animation:pulse 1.4s infinite}.calling-dots i:nth-child(2){animation-delay:.2s}.calling-dots i:nth-child(3){animation-delay:.4s}.call-bottom{position:relative;z-index:3;margin-top:auto}.call-caption{text-align:center;color:#d4d0e0;font-size:13px;line-height:1.8;max-height:96px;overflow:auto;min-height:36px;margin:0 0 30px;padding:0 4px}.call-controls{display:flex;justify-content:center;gap:34px}.call-controls button{display:flex;flex-direction:column;align-items:center;background:transparent;color:#e4e0eb;padding:0;width:66px;flex-shrink:0}.call-controls button>span{position:relative;display:grid;place-items:center;width:62px;height:62px;border-radius:24px;background:#ffffff17;backdrop-filter:blur(15px);border:1px solid #ffffff0a}.call-controls .icon{width:25px;height:25px;stroke-width:1.6}.call-controls small{font-size:11px;margin-top:12px}.call-controls .hangup>span{background:#ec6577;border:0;box-shadow:0 5px 25px #ec65771c}.call-controls button[aria-pressed="true"]>span{background:#ffffffd9;color:#484158}.call-controls button[aria-pressed="true"]>span::after{content:"";position:absolute;width:29px;height:2px;background:currentColor;transform:rotate(-45deg);box-shadow:0 0 0 2px #ffffffd9}.call-disclaimer{text-align:center;color:#a39bb7;font-size:9px;margin-top:27px}.call.connected .calling-dots{display:none}.call.connected:not(.audio-only) .call-person{top:0;left:0;transform:none;width:100%;height:100%;z-index:-2}.call.connected:not(.audio-only) .portrait{border-radius:0;box-shadow:none}.call.connected:not(.audio-only) .orbit{display:none}.call.connected:not(.audio-only) .call-shell::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(#181923a6,transparent 38%,#1c1c2980 58%,#1c1c29ed)}.call.connected:not(.audio-only) .call-info{top:83px;text-align:left;padding:0 28px}.call.connected:not(.audio-only) .call-caption{color:#fff;text-shadow:0 1px 10px #0008}.call.connected .call-disclaimer{color:#c0b8ce}.call.speaking .orbit{animation-duration:.8s;border-color:#d2c8ff77}.call-shell .call-controls button:focus-visible{outline-color:#d6caff}
dialog{width:min(410px,calc(100vw - 32px));max-height:calc(var(--viewport-height) - 40px);overflow:auto;padding:28px;border:1px solid #eeecf8;border-radius:25px;background:#fff;color:#3a354e;box-shadow:0 20px 100px #23203a30}dialog::backdrop{background:#24213455;backdrop-filter:blur(7px)}dialog .close{float:right;margin:-12px -12px 0 0}.dialog-icon{width:48px;height:48px;border-radius:16px;background:#eeebfb;color:#8476bd;display:grid;place-items:center}dialog h2{font-size:22px;letter-spacing:-.5px;margin:21px 0 10px}dialog p{font-size:13px;color:#8f889e;line-height:1.7}dialog label{display:block;font-size:11px;color:#8b829b;margin:24px 0 9px}dialog input{width:100%;border:1px solid #e4dfed;padding:13px;border-radius:12px;font-size:16px;color:#4b405d}dialog .primary{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;padding:14px;background:#6865e5;color:white;border-radius:12px;margin-top:13px;font-size:14px}dialog .primary .icon{width:18px}dialog small{display:block;font-size:11px;line-height:1.8;color:#a49bb0}#login-state{color:#b46c7c}
@keyframes orbit{0%,100%{transform:scale(.97);opacity:.3}50%{transform:scale(1.04);opacity:1}}@keyframes pulse{50%{opacity:.35}}
@media(min-width:761px) and (max-height:820px){.welcome{margin-top:25px}.welcome-avatar{margin-bottom:24px;width:72px}.welcome-avatar img{width:72px;height:80px;border-radius:25px}.call-card{margin-top:20px;margin-bottom:18px}.welcome h2{font-size:26px}.messages{padding-top:18px}}
@media(min-width:761px){.call-shell{border-radius:28px;height:min(860px,calc(var(--viewport-height) - 40px));box-shadow:0 20px 100px #0003}}
@media(max-width:1100px){.app{margin:0;height:var(--viewport-height);border-radius:0;border:0}.sidebar{width:230px}}
@media(max-width:760px){:root{background:#f8f9fc}.app{height:var(--viewport-height);width:100%;margin:0;border:0;border-radius:0}.sidebar{display:none}.chat-header{padding:calc(14px + env(safe-area-inset-top)) 15px 14px;gap:2px;background:#ffffffdd}.identity{gap:9px}.header-avatar img{width:38px;height:40px;border-radius:12px}h1{font-size:14px}h1 span{font-size:7px;margin-left:3px}.chat-header p{font-size:9px;margin-top:5px}.chat-header nav{gap:0}.chat-header .icon-button{width:42px;height:44px}.chat-header .icon{width:20px;height:20px}.mobile-settings{display:grid}.messages{padding:23px 22px 10px}.welcome{margin:44px auto 16px;max-width:340px}.welcome-avatar{margin-bottom:33px}.welcome h2{font-size:27px}.welcome>p{font-size:12px}.mobile-break{display:block}.call-card{margin-top:27px}.prompts{gap:8px}.prompts button{font-size:11px;padding:11px 13px;min-height:44px}footer{padding:12px 16px max(14px,env(safe-area-inset-bottom))}.composer{border-radius:19px;padding:6px;gap:4px}.composer textarea{font-size:16px;padding:11px 2px}.composer .record{width:40px}.composer .send{width:42px;height:42px}.composer-note{font-size:9px;margin:10px 5px 0}.notice{padding-left:22px;padding-right:22px;font-size:11px}.bubble{font-size:14px;padding:11px 14px}.call-shell{height:var(--viewport-height);width:100%;padding:calc(24px + env(safe-area-inset-top)) 26px max(26px,env(safe-area-inset-bottom));border-radius:0}.call.connected:not(.audio-only) .call-info{top:calc(82px + env(safe-area-inset-top));padding:0 26px}.call-disclaimer{margin-top:24px}}
@media(max-width:360px){.chat-header{padding-left:10px;padding-right:7px}.header-avatar{display:none}.chat-header nav .icon-button{width:42px}.messages{padding-left:17px;padding-right:17px}.welcome h2{font-size:25px}.call-card{padding:15px}.composer-note{font-size:8px}.call-controls{gap:26px}}
@media(max-height:720px){.welcome{margin-top:23px}.welcome-avatar{width:72px;margin-bottom:25px}.welcome-avatar img{width:72px;height:80px;border-radius:25px}.welcome h2{font-size:25px}.call-card{margin-top:20px;margin-bottom:18px}.call-person{top:17%;width:105px;height:119px}.call-info{top:calc(17% + 150px)}.call-caption{margin-bottom:20px}.call-disclaimer{margin-top:18px}}
@media(max-height:480px){.call-person{top:22%;left:25%;width:82px;height:92px}.call-info{top:24%;left:45%;right:6%;text-align:left}.call h2{font-size:20px}.calling-dots{justify-content:flex-start;margin-top:12px}.call-caption{margin:0 0 10px;max-height:38px;font-size:11px}.call-controls button>span{width:45px;height:45px;border-radius:17px}.call-controls small{margin-top:5px;font-size:10px}.call-disclaimer{margin-top:9px}.call-shell{padding-top:16px;padding-bottom:12px}.call.connected:not(.audio-only) .call-info{top:58px}.call.connected:not(.audio-only) .call-caption{margin-left:auto;width:60%}.composer-note{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root .connection-tabs{display:flex;padding:4px;gap:4px;background:#f3f1f9;border-radius:12px;margin:20px 0 12px}.connection-tabs button{flex:1;padding:11px 4px;border-radius:9px;background:transparent;color:#8b829b;font-size:12px}.connection-tabs button[aria-pressed="true"]{background:white;color:#6050a6;box-shadow:0 2px 8px #4a3e6610}dialog .connection-help{margin-top:13px}dialog .secondary{display:block;width:100%;background:transparent;color:#80758f;font-size:12px;padding:12px 6px;min-height:44px}#setup-status{color:#716782}#login-state:empty{margin:8px 0}
