*{box-sizing:border-box}:root{font-family:DM Sans,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif;color:#29384d;background:#f5f8fc;font-synthesis:none;-webkit-font-smoothing:antialiased;--ink: #29384d;--muted: #68798d;--line: #e2e9f1;--blue: #467dcc}body{margin:0}button,input,textarea{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}button,input,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #76a9eb;outline-offset:3px}button:disabled{cursor:default}button:not(:disabled){transition:background .15s,color .15s,box-shadow .15s}button:not(:disabled):hover{filter:brightness(.97)}button svg,.brand svg{flex:none}h1,h2,h3,p{margin:0}.app-shell{height:100vh;height:100dvh;display:flex;flex-direction:column}.topbar{min-height:70px;padding:0 32px 0 26px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:750;letter-spacing:1px}.brand b{color:#6092cc;font-size:16px;letter-spacing:.03em}.brand-mark{display:grid;place-items:center;border-radius:12px;width:38px;height:38px;color:#fff;background:linear-gradient(145deg,#8ac7f6,#638ce1);box-shadow:inset 0 0 0 1px #6497d428,0 3px 9px #8aaee337}.settings-btn,.profile-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 13px;font-size:13px;color:#577087}.layout{flex:1;min-height:0;display:grid;grid-template-columns:clamp(190px,17.3vw,250px) minmax(0,1fr)}.sidebar{background:#fbfdff;border-right:1px solid var(--line);min-height:0}.sidebar-content{padding:27px 18px 18px;display:flex;flex-direction:column;height:100%}.new-chat{background:#578cda;box-shadow:0 3px 6px #365f9a12;color:#fff;border-radius:11px;min-height:43px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600}.history-title{margin:31px 9px 12px;display:flex;align-items:center;gap:7px;color:#778698}.history-title h2{font-size:12px;font-weight:600}.sidebar-content nav{flex:1;overflow:auto;min-height:0}.thread{display:flex;align-items:center;gap:10px;text-align:left;padding:12px;width:100%;border-radius:9px;color:#647489;margin-bottom:4px;font-size:13px}.thread span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread.selected{background:#e9f2ff;color:#386fb5;font-weight:600}.thread i{margin-left:auto;width:6px;height:6px;background:#72a1dd;border-radius:50%;flex:none}.local-user{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:19px 4px 0;margin-top:16px}.user-tile,.own-avatar{display:grid;place-items:center;color:#7391b7;background:#eaf1fb;border-radius:12px;width:37px;height:37px}.local-user strong{display:block;font-size:13px;font-weight:600}.local-user small{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:11px;color:var(--muted)}.workspace{min-width:0;min-height:0;display:flex;flex-direction:column;padding:26px clamp(18px,2vw,32px) 24px}.workspace-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.workspace-title{display:flex;align-items:center;gap:10px}.heading-icon{color:#6e98d0;display:flex}h1{font-size:24px;letter-spacing:.04em;line-height:1.45}.date{font-size:12px;display:flex;align-items:center;gap:7px;color:var(--muted)}.panes{display:grid;grid-template-columns:minmax(0,1fr) clamp(210px,17.7vw,265px);gap:20px;min-height:0;flex:1}.chat-card,.profile-panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 3px 14px #425d7e06}.chat-card{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.timeline{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 21px 10px}.welcome{min-height:clamp(154px,13.4vw,208px);display:flex;align-items:center;padding:18px clamp(18px,2vw,32px);border-radius:12px;background-color:#eaf5ff;background-image:linear-gradient(90deg,#eef7ffeb 0%,#eef7ffa8 39%,transparent 60%),url(/art/xiaorong-room.webp);background-size:cover;background-position:center 44%}.welcome-icon{display:flex;color:#6397c6;margin-bottom:10px}.welcome h2{font-size:clamp(22px,2.15vw,34px);font-weight:700;line-height:1.35;letter-spacing:.06em;color:#304d68}.welcome p{font-size:clamp(11px,.95vw,14px);color:#536d84;line-height:1.6;margin-top:6px}.divider{display:flex;align-items:center;justify-content:center;gap:12px;margin:23px auto;font-size:11px;color:#78889a}.divider:before,.divider:after{content:"";width:42px;height:1px;background:var(--line)}.message{display:flex;gap:10px;margin:0 0 18px;align-items:flex-start}.bubble-avatar,.own-avatar{width:34px;height:34px;border-radius:50%;flex:none}.bubble-avatar{border:1px solid #d9e6f6;object-fit:cover}.message-body{min-width:0;max-width:86%}.speaker{display:flex;align-items:center;gap:8px;font-weight:650;color:#576980;font-size:12px;margin:0 0 5px}.speaker time{font-size:10px;font-weight:400;color:var(--muted)}.bubble{background:#f4f7fb;border:1px solid #e9eef5;border-radius:2px 13px 13px;padding:10px 14px;line-height:1.8;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.message.own{flex-direction:row-reverse}.own .speaker{justify-content:flex-end}.own .bubble{background:#eaf3ff;border-color:#dceafa;border-radius:13px 2px 13px 13px}.compose-area{padding:12px 21px 18px;background:#fff}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.suggestions button{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #dfe7ef;color:#586d84;border-radius:20px;padding:6px 10px;font-size:12px}.suggestions button svg{color:#7496bc}.composer{border:1px solid #d5e1ef;border-radius:13px;padding:12px 12px 9px 14px;background:#fcfdff}.composer:focus-within{border-color:#8bb1e4;box-shadow:0 0 0 3px #e7f1ff}textarea{width:100%;height:46px;min-height:35px;display:block;border:0;resize:none;color:var(--ink);background:transparent;font-size:14px;line-height:1.55}textarea::placeholder{color:#8594a4}textarea:focus-visible{outline:none}.composer-tools{display:flex;align-items:center;justify-content:space-between}.composer-tools small{font-size:10px;color:var(--muted)}.send-btn,.primary{background:#538adc;color:#fff;padding:8px 15px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px}.send-btn:disabled{background:#799fd4}.profile-rail{overflow-y:auto;min-height:0}.profile-panel{padding:20px}.panel-title{display:flex;align-items:center;gap:7px;color:#779ac6}.panel-title h2,.emotion-heading h3{font-size:14px;font-weight:650;color:var(--ink)}.stage{display:flex;flex-direction:column;align-items:center;padding:22px 0 20px}.portrait-halo{position:relative;border-radius:50%;width:86px;height:86px;background:#fff;padding:4px;border:1px solid #cfe1f7;box-shadow:0 0 0 6px #f0f6ff;margin:5px 0 13px}.portrait-halo img{width:100%;height:100%;object-fit:cover;border-radius:50%}.live2d-layer{position:absolute;inset:4px;overflow:hidden;border-radius:50%;visibility:hidden}.live2d-layer canvas{display:block;width:100%;height:100%}.live2d-layer[data-ready]{visibility:visible}.live2d-layer[data-ready]+img{opacity:0}.stage h2{font-size:19px;letter-spacing:.06em}.traits{font-size:11px;color:var(--muted);margin:5px 0 10px}.mood{display:flex;align-items:center;gap:5px;color:#467e6c;background:#ebf6ef;border-radius:20px;font-size:11px;padding:3px 9px}.mood.upset{background:#fff0ed;color:#a1574a}.mood.tired{background:#f1edf9;color:#7c659d}.emotion-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0 14px}.emotion-heading small{font-size:10px;color:var(--muted)}.meters{display:grid;gap:14px}.meter>div:first-child,.meter span{display:flex;align-items:center}.meter>div:first-child{justify-content:space-between;color:#55667a;font-size:12px}.meter span{gap:7px}.meter output{font-size:11px;font-variant-numeric:tabular-nums;color:#64778d}.track{background:#eff2f6;border-radius:9px;height:5px;overflow:hidden;margin-top:7px}.track i{display:block;height:100%;border-radius:inherit;transition:width .35s}.icon-button{display:grid;place-items:center;width:33px;height:33px;border-radius:8px;color:#617994}.icon-button:hover{background:#eff4fa}dialog{width:min(390px,calc(100% - 28px));max-height:89dvh;overflow:auto;border:1px solid var(--line);padding:0;border-radius:17px;color:var(--ink);background:#fff;box-shadow:0 15px 70px #253c552d}dialog::backdrop{background:#1b32444d}.dialog-body{padding:20px}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.dialog-head h2{font-size:19px}.settings-form label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.settings-form input{border:1px solid #cbd9e9;border-radius:9px;height:42px;width:100%;padding:0 11px;margin:9px 0}.settings-form p{font-size:13px;line-height:1.7;color:var(--muted)}.settings-actions{display:flex;justify-content:flex-end;margin-top:20px;gap:10px}.settings-actions>button{font-size:13px}.error,.pending-status{padding:7px 0;font-size:12px;color:#677a90}.error{color:#9b5140}.error button{color:#3a679f;text-decoration:underline}.unsupported{padding:32px}@media(min-width:1680px){.workspace{padding-left:max(32px,calc((100vw - 1590px)/2));padding-right:max(32px,calc((100vw - 1590px)/2))}}@media(max-width:1100px){.panes{grid-template-columns:minmax(0,1fr)}dialog .profile-panel{box-shadow:none;border:0;padding:0 6px 6px}dialog .panel-title{display:none}dialog .stage{padding-top:6px}}@media(max-width:760px){.topbar{min-height:55px;padding:0 15px}.brand{font-size:17px;gap:9px}.brand-mark{width:32px;height:32px;border-radius:10px}.brand-mark svg{width:22px}.settings-btn,.profile-btn{font-size:12px;padding:6px 9px}.layout{grid-template-columns:1fr}.workspace{padding:10px 9px max(8px,env(safe-area-inset-bottom))}.workspace-head{margin:0 3px 8px}.workspace-title{gap:3px}h1{font-size:19px}.chat-card{border-radius:14px}.timeline{padding:10px 10px 4px}.welcome{min-height:128px;padding:12px 14px;background-position:58% center}.welcome h2{font-size:23px}.welcome p{max-width:150px;font-size:11px}.welcome-icon{margin:0 0 5px}.welcome-icon svg{width:19px;height:19px}.divider{margin:16px auto}.compose-area{padding:8px 10px 10px}.composer{padding:8px 9px}.suggestions{gap:5px;margin-bottom:7px}.suggestions button{font-size:11px;padding:5px 8px}textarea{height:36px;font-size:16px}.bubble{font-size:13px}.sidebar-content{padding:0;height:min(60dvh,500px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
