.xiaoxuan{position:fixed;right:22px;bottom:100px;z-index:35;font:16px/1.65 var(--sans,"Microsoft YaHei",sans-serif);color:#704a57;text-align:left}.xiaoxuan[hidden],.xiaoxuan [hidden]{display:none!important}.xiaoxuan button,.xiaoxuan input{font:inherit}.xx-launch{display:flex;flex-direction:column;align-items:center;gap:0;border:0;background:transparent;cursor:pointer;color:#88465f;padding:0}.xx-launch img{width:58px;height:68px;object-fit:contain;filter:drop-shadow(0 4px 5px #81435425)}.xx-launch span{font-size:15px;background:#fffaf8;border:1px solid #e8cad2;padding:3px 11px;border-radius:30px;box-shadow:0 4px 14px #82536414;white-space:nowrap}.xx-invite{position:absolute;right:0;bottom:110px;width:210px;background:#fffaf8;border:1px solid #e8cad2;border-radius:16px;padding:10px 14px;font-size:15px;box-shadow:0 8px 25px #79515d16;animation:xx-tip-in .5s ease}.xx-invite:after{content:"";position:absolute;right:29px;bottom:-5px;width:8px;height:8px;transform:rotate(45deg);background:#fffaf8;border-right:1px solid #e8cad2;border-bottom:1px solid #e8cad2}.xx-panel{position:absolute;bottom:0;right:0;width:370px;max-height:min(620px,calc(100dvh - 125px));display:flex;flex-direction:column;background:#fffaf8;border:1px solid #e5c7d0;border-radius:22px;box-shadow:0 15px 60px #68404e30;overflow:hidden}.xx-head{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid #eedce1;background:linear-gradient(130deg,#f9e8ed,#fff8f5)}.xx-head strong{display:block;font-size:20px;color:#8d3d59}.xx-head span{display:block;font-size:15px}.xx-close{border:0;background:transparent;color:#885568;font-size:29px!important;width:44px;height:44px;cursor:pointer}.xx-log{overflow-y:auto;overscroll-behavior:contain;padding:16px;min-height:140px;flex:1}.xx-message{max-width:92%;margin:0 0 13px;padding:11px 14px;border-radius:15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.85}.xx-assistant{background:#f4eaec;border-top-left-radius:3px}.xx-user{margin-left:auto;background:#8e4560;color:#fff;border-top-right-radius:3px}.xx-prompts{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 10px}.xx-prompts button{border:1px solid #e5c7d0;border-radius:24px;padding:7px 10px;background:#fff;color:#88465f;font-size:15px;cursor:pointer}.xx-form{display:flex;gap:8px;padding:10px 14px;border-top:1px solid #eedce1}.xx-form input{min-width:0;flex:1;width:100%;border:1px solid #e5c7d0;border-radius:10px;padding:10px;background:#fff;color:#704a57;font-size:16px}.xx-form button{border:0;border-radius:10px;background:#8e4560;color:#fff;padding:9px 14px;cursor:pointer;white-space:nowrap}.xiaoxuan button:disabled{opacity:.55;cursor:wait}.xx-note{margin:0;padding:0 14px 12px;font-size:14px;line-height:1.6;color:#886b76}.xx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.xiaoxuan button:focus-visible,.xiaoxuan input:focus-visible{outline:2px solid #b9577c;outline-offset:3px}@keyframes xx-tip-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.xiaoxuan{right:12px;bottom:calc(96px + env(safe-area-inset-bottom,0px))}.xx-panel{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto;max-height:calc(100dvh - 32px)}.xx-launch img{width:49px;height:57px}.xx-launch span{font-size:15px}.xx-invite{bottom:98px}.xx-log{max-height:45dvh}.xx-head{padding:13px 15px}}@media(prefers-reduced-motion:reduce){.xx-invite{animation:none}}
.xiaoxuan{z-index:46}

/* Soft portrait chat, paired with the invitation navigation. */
.xiaoxuan{color:#775457}.xx-launch{gap:5px}.xx-launch-portrait{position:relative;display:grid;place-items:center;width:66px;height:66px;border-radius:26px;background:#fffaf9e8;border:2px solid #fff;box-shadow:0 6px 25px #976e7620}.xx-launch-portrait img{height:61px;width:53px;filter:none}.xx-launch-portrait i{position:absolute;right:0;top:0;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#87c99e}.xx-launch .xx-launch-portrait{padding:0}.xx-launch .xx-launch-name{background:transparent;border:0;box-shadow:none;padding:0;font-size:15px;color:#986d78}.xx-panel{width:430px;border-color:#ecd5dc;background:#fffafb;border-radius:24px;box-shadow:0 18px 65px #7c515d26}.xx-head{gap:11px;background:#fff7f8;border-color:#f0dce2;padding:15px 18px}.xx-head-portrait{width:42px;height:46px;object-fit:contain;border-radius:15px;background:#fff}.xx-head>div{flex:1}.xx-head strong{font-size:20px;color:#91616b}.xx-head span{font-size:14px;color:#a07880}.xx-head span i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#87c99e;margin-right:6px}.xx-close{color:#a07880}.xx-log{padding:20px 15px;background:linear-gradient(180deg,#fffafb,#fff8f9)}.xx-row{display:flex;align-items:flex-start;gap:9px;margin:0 0 18px}.xx-row-user{flex-direction:row-reverse}.xx-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 2px 9px #98707a10;margin-top:3px;overflow:hidden}.xx-avatar img{width:30px;height:34px;object-fit:contain}.xx-row-user .xx-avatar{background:#bd8588;color:#fff}.xx-avatar svg{width:21px;height:21px}.xx-message{max-width:calc(100% - 43px);box-sizing:border-box;margin:0;font-size:16px;line-height:1.85;padding:13px 17px;border-radius:23px}.xx-assistant{background:#fff0f3;border:1px solid #f2d7de;border-top-left-radius:9px;color:#795457}.xx-user{background:#bb8588;color:#fff;border:1px solid transparent;border-top-right-radius:9px;margin-left:auto}.xx-message strong{font-weight:600;color:inherit}.xx-prompts{gap:7px;padding:4px 15px 13px}.xx-prompts button{color:#a36b78;border-color:#ebced7;background:#fff9fa;font-size:14px;padding:6px 10px}.xx-form{padding:12px 15px 8px;background:#fffafb}.xx-form input{border-color:#ead3d9;border-radius:15px;background:#fff;color:#775457}.xx-form button{background:#b57e87;border-radius:15px}.xx-note{font-size:14px;color:#a17e87;background:#fffafb}.xx-invite{border-color:#ead1d8;color:#9a6776;background:#fff9fa}.xx-invite:after{background:#fff9fa}
@media(min-width:1000px) and (min-height:650px){
 .quick-nav{left:auto;right:20px;top:50%;bottom:auto;flex-direction:column;gap:11px;padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;transform:translateY(-50%)}
 .quick-nav.visible{transform:translateY(-50%)}.quick-nav a,.quick-nav button{width:66px;height:66px;border:1px solid #ffffffd9;border-radius:23px;background:linear-gradient(145deg,#ffffffef,#f8eaf1cf);box-shadow:0 5px 18px #986b7c10;color:#83a8ee;font-size:25px;gap:2px}.quick-nav small{color:#a27682;font-size:14px}
 .xiaoxuan{right:20px;top:calc(50% + 160px);bottom:auto}.xx-panel{position:fixed;right:106px;bottom:30px;max-height:calc(100dvh - 60px)}.xx-invite{right:80px;bottom:15px;width:195px}.xx-invite:after{right:-5px;bottom:28px;transform:rotate(-45deg)}
}
@media(max-width:600px){.xx-panel{width:auto;left:10px;right:10px;border-radius:22px}.xx-log{padding:17px 12px;max-height:48dvh}.xx-message{padding:12px 14px}.xx-launch-portrait{width:57px;height:57px;border-radius:22px}.xx-launch-portrait img{width:46px;height:53px}.xx-launch .xx-launch-name{font-size:14px}.xx-head{padding:13px 14px}.xx-note{font-size:14px}.xx-prompts{gap:6px;padding-inline:12px}.xx-prompts button{font-size:14px;padding:6px 9px}.xx-row{gap:7px}.xx-message{max-width:calc(100% - 41px)}}
@media(min-width:1000px) and (min-height:650px){.quick-nav a,.quick-nav button{flex:0 0 66px}} .xx-invite{animation:xx-soft-tip 6s ease both}@keyframes xx-soft-tip{0%{opacity:0;transform:translateY(6px)}10%,82%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.xx-invite{animation:none}}

/* Selected portrait: use the face prominently in compact chat avatars. */
.xx-launch-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 8%;border-radius:inherit}.xx-head-portrait{object-fit:cover;object-position:50% 8%}.xx-avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 8%}

/* Keep the whole selected character inside a fixed portrait frame. */
.xx-launch{gap:0}.xx-launch .xx-launch-portrait{display:block;box-sizing:border-box;width:66px;height:66px;min-width:0;min-height:0;overflow:hidden;padding:3px;border-radius:24px}.xx-launch-portrait img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:0}.xx-launch-portrait i{right:2px;top:2px;width:9px;height:9px;border-width:2px}
@media(max-width:999px){
 body.has-side-actions .quick-nav{left:auto;right:10px;top:max(76px,calc(50dvh - 146px));bottom:auto;display:flex;flex-direction:column;gap:8px;width:52px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;transform:none;z-index:46;transition:opacity .2s}
 body.has-side-actions.invitation-entered .quick-nav,body.has-side-actions.invitation-entered .quick-nav.visible.is-retracted{opacity:1;pointer-events:auto;transform:none}
 body.has-side-actions .quick-nav>a,body.has-side-actions .quick-nav>button{flex:0 0 52px;box-sizing:border-box;width:52px;height:52px;min-width:44px;min-height:44px;padding:0;border:1px solid #efdae2;border-radius:18px;background:linear-gradient(145deg,#fffffff0,#f8eaf1e6);box-shadow:0 4px 12px #986b7c10;color:#86a9e5;font-size:22px;gap:0}
 body.has-side-actions .quick-nav small{font-size:14px;line-height:1.35;color:#a27682;white-space:nowrap}
 body.has-side-actions .xiaoxuan{position:fixed;left:auto;right:10px;top:calc(max(76px,50dvh - 146px) + 240px);bottom:auto;width:52px}
 .xx-launch .xx-launch-portrait{width:52px;height:52px;border-radius:18px}.xx-panel{position:fixed;top:auto;right:76px;bottom:18px;width:min(430px,calc(100vw - 94px));max-height:calc(100dvh - 36px)}
 .xx-invite{right:65px;bottom:0;width:190px}.xx-invite:after{right:-5px;bottom:20px;transform:rotate(-45deg)}
}
@media(max-width:760px){.xx-panel{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:auto;max-height:calc(100dvh - 24px)}}
body.has-side-actions:has(dialog[open]) .quick-nav,body.has-side-actions:has(dialog[open]) .xiaoxuan{opacity:0;pointer-events:none}

.xx-retry{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin-top:9px;padding:6px 14px;border:1px solid #d8acba;border-radius:18px;background:#fffafb;color:#99596e;font-size:15px;cursor:pointer}.xx-retry:hover{background:#fbe9ef}
@media(max-width:760px){.xx-panel{bottom:calc(10px + env(safe-area-inset-bottom,0px) + var(--xx-keyboard-offset,0px));max-height:calc(var(--xx-visible-height,100dvh) - 24px)}.xx-log{min-height:70px;max-height:48dvh}.xx-head,.xx-prompts,.xx-form,.xx-note{flex-shrink:0}}

/* Mobile returns to its original bottom navigation; AI remains separate. */
@media(max-width:760px){
 body.has-side-actions .quick-nav{left:50%;right:auto;top:auto;bottom:max(18px,env(safe-area-inset-bottom));flex-direction:row;gap:3px;width:auto;padding:7px;border:1px solid #efdfe1;border-radius:999px;background:#fffaf9ed;box-shadow:0 8px 28px #7f4e5933;backdrop-filter:blur(10px);transform:translate(-50%,15px);opacity:0;pointer-events:none}
 body.has-side-actions.invitation-entered .quick-nav{opacity:0;pointer-events:none;transform:translate(-50%,15px)}
 body.has-side-actions.invitation-entered .quick-nav.visible{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
 body.has-side-actions.invitation-entered .quick-nav.visible.is-retracted{opacity:0;pointer-events:none;transform:translate(-50%,calc(100% + 30px))}
 body.has-side-actions .quick-nav>a,body.has-side-actions .quick-nav>button{flex:0 0 54px;width:54px;height:54px;border:0;border-radius:19px;background:transparent;box-shadow:none;color:#9e747a;font-size:20px;gap:1px}
 body.has-side-actions .quick-nav small{font-size:15px;color:#9e747a}
 body.has-side-actions .xiaoxuan{top:auto;bottom:calc(98px + env(safe-area-inset-bottom,0px));right:12px;width:52px}
 body.has-side-actions:has(dialog[open]) .quick-nav.visible{opacity:0;pointer-events:none}
}
