:root{color:#23374b;font-synthesis:none;--ink:#23374b;--blue:#567f98;--muted:#6e8294;--line:#dce6ed;--wash:#e8f0f5;background:#f5f8fc;font-family:Microsoft YaHei,PingFang SC,Noto Sans CJK SC,sans-serif;line-height:1.65}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #6594ae}[hidden]{display:none!important}h1,h2,p{margin:0}.button{white-space:nowrap;border:1px solid #0000;border-radius:10px;min-height:42px;padding:9px 19px;font-size:14px;font-weight:600;transition:background .15s}.primary{color:#fff;background:#547e97}.primary:hover:not(:disabled){background:#426980}.secondary{color:#355a72;background:#edf3f7;border-color:#d5e2eb}.secondary:hover:not(:disabled){background:#e0ebf2}.quiet{color:#5f788c;background:0 0}.quiet:hover:not(:disabled){background:#e9f0f5}.wide{width:100%}.subtle{color:var(--muted);font-size:13px}.brand{letter-spacing:.12em;font-size:22px;font-weight:700}.brand span{color:#8095a6;letter-spacing:.04em;margin-top:1px;font-size:12px;font-weight:400;display:block}.avatar{color:#527b93;background:#e5eff5;border:1px solid #c9dce8;border-radius:50%;flex:none;place-items:center;font-family:Songti SC,SimSun,serif;display:grid;position:relative}.avatar:after{content:"";border:1px solid #b7cedc;border-radius:50%;position:absolute;inset:8px}.auth-layout{grid-template-columns:1.08fr 1fr;max-width:1440px;min-height:100dvh;margin:auto;display:grid}.auth-story{background:#edf3f8;flex-direction:column;justify-content:center;align-items:flex-start;padding:48px 9% 50px 12%;display:flex;position:relative}.auth-story .brand{position:absolute;top:42px;left:12%}.hero-avatar{width:115px;height:115px;margin:56px 0 35px;font-size:47px}.auth-story h1{white-space:pre-line;letter-spacing:.02em;font-family:Songti SC,SimSun,serif;font-size:clamp(30px,3.2vw,46px);font-weight:400;line-height:1.7}.story-note{color:#708497;white-space:pre-line;margin-top:24px;font-size:15px;line-height:2}.auth-form-area{background:#fff;justify-content:center;align-items:center;padding:60px 40px;display:flex}.auth-form-card{width:100%;max-width:360px}.invite-note{color:#7591a6;margin-bottom:11px;font-size:13px}.auth-form-card h2{margin-bottom:25px;font-size:27px;font-weight:600}.auth-tabs{border-bottom:1px solid var(--line);gap:30px;margin-bottom:27px;display:flex}.auth-tab{color:#7d8d9b;background:0 0;border:0;border-bottom:2px solid #0000;padding:9px 2px 11px}.auth-tab.selected{color:#355d76;border-bottom-color:#6594ae}.field{flex-direction:column;gap:7px;margin-bottom:19px;display:flex}.field label{font-size:14px;font-weight:600}.field input,select{width:100%;min-height:46px;color:var(--ink);background:#fafcfe;border:1px solid #d6e1e9;border-radius:9px;padding:10px 13px}input::placeholder,textarea::placeholder{color:#93a3b0}.auth-form .primary{min-height:46px;margin-top:5px}.privacy-note{color:#8292a0;margin-top:20px;font-size:12px;line-height:1.9}.simulation-caption{color:#758b9b;border-top:1px solid #edf1f4;margin-top:27px;padding-top:17px;font-size:11px}.notice{border-radius:8px;margin:8px 0 12px;padding:10px 12px;font-size:13px;line-height:1.7}.notice.error{color:#a34848;background:#fff1f0;border:1px solid #f0d7d4}.notice.success{color:#47715a;background:#edf7f1;border:1px solid #d7e9dc}.notice button{margin-top:8px}.chat-layout{background:#fff;grid-template-columns:minmax(0,1fr) 278px;max-width:1440px;min-height:100dvh;margin:0 auto;display:grid}.chat-panel{flex-direction:column;min-width:0;height:100dvh;display:flex}.chat-header{border-bottom:1px solid #e8eef3;flex:none;justify-content:space-between;align-items:center;padding:23px 40px;display:flex}.chat-identity{align-items:center;gap:14px;display:flex}.avatar.small{width:46px;height:46px;font-size:23px}.avatar.small:after{inset:5px}.chat-identity h1{font-size:20px;font-weight:600}.chat-identity p{color:#8296a6;margin-top:1px;font-size:12px}.head-actions{align-items:center;gap:10px;display:flex}.simulation-badge{color:#66879d;background:#f4f8fb;border:1px solid #d7e3eb;border-radius:20px;padding:4px 11px;font-size:11px}.mobile-menu{display:none}.messages{overscroll-behavior:contain;scroll-behavior:smooth;flex:1;min-height:0;padding:30px 8% 26px;overflow-y:auto}.welcome{text-align:center;flex-direction:column;justify-content:center;align-items:center;max-width:510px;height:100%;min-height:280px;margin:auto;padding-bottom:35px;display:flex}.welcome-avatar{width:76px;height:76px;margin-bottom:22px;font-size:34px}.welcome h2{font-family:Songti SC,SimSun,serif;font-size:24px;font-weight:400;line-height:1.9}.welcome p{color:#95a4b1;max-width:320px;margin-top:14px;font-size:12px}.message{align-items:flex-start;gap:12px;margin-bottom:26px;display:flex}.message.user{justify-content:flex-end;padding-left:40px}.message-avatar{width:32px;height:32px;margin-top:4px;font-size:17px}.message-avatar:after{inset:4px}.message-body{max-width:min(88%,600px)}.message-author{color:#8293a1;margin-bottom:5px;font-size:11px}.message.user .message-author,.message.user .saved-note{text-align:right}.message-text{color:#30495e;white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f5f8;border-radius:3px 15px 15px;padding:14px 18px;font-size:15px;line-height:1.95}.message.user .message-text{background:#e5eff5;border-radius:15px 3px 15px 15px}.saved-note{color:#a4b1bc;margin-top:4px;font-size:10px;display:block}.composer-area{background:#fff;flex:none;padding:0 8% 19px}.turn-status{color:#66869c;min-height:24px;padding:2px 0 6px;font-size:12px}.composer{background:#fbfdff;border:1px solid #cedde8;border-radius:15px;padding:14px 16px 11px;box-shadow:0 4px 18px #638da00a}.composer textarea{resize:vertical;color:#23374b;background:0 0;border:0;outline:none;width:100%;min-height:56px;max-height:170px;font-size:15px;line-height:1.8}.composer textarea:focus-visible{outline:none}.composer:focus-within{border-color:#779bb2;box-shadow:0 0 0 2px #6594ae18}.composer-actions{justify-content:flex-end;align-items:center;gap:8px;margin-top:6px;display:flex}.keyboard-hint{color:#9aaab7;margin-right:auto;font-size:10px}.composer-actions .primary{min-width:80px}.composer-note{text-align:center;color:#9baab6;margin-top:9px;font-size:10px}.side-panel{background:#f4f8fb;border-left:1px solid #e4ecf2;flex-direction:column;padding:31px 28px 25px;display:flex}.side-panel .brand{font-size:20px}.character-card{text-align:center;padding:62px 0 0}.avatar.profile{width:94px;height:94px;margin:0 auto 18px;font-size:40px}.character-card h2{font-family:Songti SC,SimSun,serif;font-size:27px;font-weight:400}.character-description{color:#8296a7;margin-top:16px;font-size:13px;line-height:2}.character-version{color:#9cabb7;margin-top:17px;font-size:11px}.account-box{flex-direction:column;gap:8px;margin-top:auto;padding-top:40px;display:flex}.account-box strong{margin-bottom:11px;font-size:14px}.side-note{white-space:pre-line;color:#a2b0bb;text-align:center;margin-top:22px;font-size:11px}.pending-box{background:#fcf9f1;border:1px solid #e7d9b5;border-radius:9px;padding:11px;font-size:12px}.pending-box button{margin-top:8px;margin-right:6px;font-size:12px}.attempts{max-height:190px;font-size:12px;overflow:auto}.attempts summary{cursor:pointer;color:#8495a3;padding:8px 0}.attempt{border-top:1px solid var(--line);padding:12px 0}.attempt strong{color:#627d91}.attempt-text{white-space:pre-wrap;color:#7d8e9b;overflow-wrap:anywhere;max-height:90px;margin:5px 0;overflow:auto}.attempt .button{min-height:30px;padding:4px 10px;font-size:11px}.inline-actions{gap:8px;margin-top:7px;display:flex}.admin-dialog{width:min(690px,100vw - 36px);max-height:85dvh;color:var(--ink);border:1px solid #d6e3ec;border-radius:18px;padding:27px;overflow:auto;box-shadow:0 24px 70px #23374b24}.admin-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#23374b55}.dialog-header{justify-content:space-between;align-items:center;display:flex}.dialog-header h2{font-size:22px}.admin-tabs{gap:8px;margin:20px 0;display:flex}.admin-content>p{margin-bottom:15px}.invite-form{align-items:center;gap:10px;padding-bottom:20px;display:flex}.invite-form label{white-space:nowrap;font-size:13px}.invite-form select{width:100px;min-height:42px}.created-invite{background:#edf5f8;border:1px solid #d6e6ef;border-radius:10px;margin-bottom:20px;padding:16px}.created-invite strong{font-size:14px}.invite-code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;padding:12px 0;font-size:13px;display:block}.created-invite .button{font-size:12px}.management-row{border-top:1px solid #e3ebf1;align-items:center;gap:12px;padding:15px 0;display:flex}.management-row>div{flex:1;min-width:0}.management-row strong{overflow-wrap:anywhere;font-size:13px}.management-row p{margin-top:3px;font-size:11px}.state-pill{color:#8195a4;font-size:11px}.empty-admin{color:#8296a5;padding:24px 0;font-size:13px}.visually-hidden{clip:rect(0,0,0,0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.loading-screen{color:#6d879b;place-items:center;min-height:100dvh;display:grid}@media (width>=1441px){.chat-layout{border-left:1px solid #e4ecf2;border-right:1px solid #e4ecf2}}@media (width<=900px){.chat-layout{grid-template-columns:minmax(0,1fr) 230px}.side-panel{padding:28px 21px}.chat-header{padding:20px 25px}.messages,.composer-area{padding-left:6%;padding-right:6%}.auth-story{padding-left:10%;padding-right:8%}.auth-story .brand{left:10%}.auth-form-area{padding:40px 30px}.auth-story h1{font-size:32px}}@media (width<=680px){.auth-layout{background:#fff;display:block}.auth-story{min-height:auto;padding:23px 25px 22px;display:block}.auth-story .brand{font-size:20px;position:static}.auth-story .brand span{margin-left:12px;font-size:11px;display:inline}.hero-avatar{width:53px;height:53px;margin:0;font-size:25px;position:absolute;top:25px;right:27px}.hero-avatar:after{inset:5px}.auth-story h1{margin-top:26px;font-size:25px;line-height:1.7}.story-note{margin-top:10px;font-size:12px;line-height:1.8}.auth-form-area{padding:27px 27px 36px}.auth-form-card{max-width:420px}.auth-form-card h2{margin-bottom:15px;font-size:24px}.invite-note{margin-bottom:6px}.auth-tabs{margin-bottom:22px}.simulation-caption{margin-top:20px}.chat-layout{display:block}.chat-header{padding:13px 17px}.chat-identity{gap:10px}.chat-identity h1{font-size:18px}.chat-identity p{font-size:10px}.avatar.small{width:38px;height:38px;font-size:21px}.simulation-badge{padding:3px 8px;font-size:10px}.mobile-menu{padding:6px 9px;font-size:12px;display:block}.head-actions{gap:3px}.side-panel{z-index:5;border:1px solid #d4e2ec;border-radius:12px;width:230px;padding:20px;display:none;position:absolute;top:72px;right:10px;box-shadow:0 15px 40px #23374b26}.sidebar-open .side-panel{display:flex}.side-panel .brand,.side-panel .character-card,.side-note{display:none}.account-box{margin:0;padding:0}.messages{padding:24px 18px 15px}.welcome{min-height:220px;padding:15px 0 25px}.welcome-avatar{width:60px;height:60px;margin-bottom:18px;font-size:29px}.welcome h2{max-width:270px;font-size:22px}.welcome p{max-width:250px;font-size:11px}.message{gap:9px;margin-bottom:21px}.message-body{max-width:88%}.message-text{padding:11px 13px;font-size:14px}.message.user{padding-left:20px}.message-avatar{width:27px;height:27px;font-size:15px}.composer-area{padding:0 13px max(10px,env(safe-area-inset-bottom))}.composer{border-radius:13px;padding:11px 13px 9px}.composer textarea{min-height:51px;font-size:16px}.keyboard-hint{max-width:126px;font-size:9px;line-height:1.5}.composer-actions .button{min-height:37px;padding:7px 13px;font-size:12px}.composer-note{margin-top:6px;font-size:9px}.attempts{max-height:140px}.turn-status{font-size:11px}.admin-dialog{border-radius:14px;padding:20px}.invite-form{flex-wrap:wrap;gap:8px}.management-row{gap:8px}.management-row .button{padding:6px 10px;font-size:11px}.state-pill{font-size:10px}.field input{font-size:16px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.message-text+.message-text{margin-top:8px}.memory-consent{background:#f3f7fb;border:1px solid #d8e4ee;border-radius:12px;margin:8px 0;padding:12px 14px;font-size:13px;line-height:1.7}.memory-consent button{margin-top:8px;margin-right:8px}.memory-content{margin-top:20px}.memory-setting{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.memory-entry{border-top:1px solid var(--line);padding:17px 0}.memory-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;line-height:1.8}.memory-actions{flex-wrap:wrap}.memory-actions .button{min-height:34px;padding:5px 10px;font-size:12px}.memory-editor{gap:8px;margin-top:12px;display:grid}.memory-editor textarea{width:100%;min-height:88px;font:inherit;resize:vertical;border:1px solid #cedde8;border-radius:8px;padding:10px}.provider-list{flex-wrap:wrap;gap:8px;margin:18px 0;display:flex}.provider-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px;display:grid}.provider-form .field{min-width:0;margin:0}.provider-form input,.provider-form select{width:100%;min-height:42px;font:inherit;background:#fff;border:1px solid #cedde8;border-radius:8px;padding:8px 10px}.provider-form .subtle,.provider-enabled{grid-column:1/-1}.provider-enabled{align-items:center;gap:8px;font-size:13px;display:flex}.provider-enabled input{width:18px;min-height:18px}.provider-dialog>.subtle{margin-top:12px;line-height:1.7}@media (width<=680px){.provider-form{grid-template-columns:minmax(0,1fr)}.provider-form input,.provider-form select,.memory-editor textarea{font-size:16px}.memory-consent{font-size:12px}.memory-dialog{max-height:80dvh}.memory-setting{align-items:flex-start}}
