:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:#182033;background:#f7f8fb;font-synthesis:none;text-rendering:optimizeLegibility;--blue: #3d76ef;--blue-dark: #285fd2;--ink: #182033;--muted: #7a8498;--line: #e7eaf0;--surface: #ffffff;--soft-blue: #edf3ff;--danger: #c34d55}*{box-sizing:border-box}html,body,#root{min-height:100%}html{background:#f7f8fb}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(circle at 90% -10%,rgba(197,217,255,.48),transparent 30rem),#f7f8fb;-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(61,118,239,.28);outline-offset:2px}.app-shell,.app-loading{min-height:100dvh}.app-loading{display:grid;place-items:center;color:var(--muted)}.eyebrow{margin:0 0 7px;color:#7690bc;font-size:11px;font-weight:750;letter-spacing:.18em}.icon-button,.text-button{border:0;background:transparent;cursor:pointer}.icon-button{display:grid;width:42px;height:42px;place-items:center;border-radius:50%}.icon-button:hover{background:#4d5e7f14}.text-button{color:var(--blue);font-weight:700;padding:10px 4px}.login-screen{min-height:100dvh;display:grid;grid-template-rows:1fr auto;gap:48px;padding:max(52px,env(safe-area-inset-top)) 26px max(38px,env(safe-area-inset-bottom));overflow:hidden}.login-intro{align-self:center;max-width:430px;margin:0 auto;width:100%}.login-intro h1{margin:0;font-size:clamp(42px,12vw,68px);letter-spacing:-.07em;line-height:.98}.login-copy{margin:18px 0 0;max-width:320px;color:var(--muted);font-size:16px;line-height:1.7}.login-orbit{position:relative;width:146px;height:146px;margin:0 0 46px}.login-orbit:before{content:"";position:absolute;inset:0;border-radius:50%;background:#dce9ff;box-shadow:28px 32px 80px #4b73be2e}.login-orbit__face{position:absolute;inset:0;display:grid;place-items:center;z-index:1;color:#6f8fbe;font-size:45px;font-weight:800}.login-orbit__star{position:absolute;right:-17px;bottom:2px;z-index:2;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;color:#fff;background:var(--blue);font-size:25px;box-shadow:0 13px 32px #3d76ef59}.login-form{width:min(100%,430px);margin:0 auto}.login-form>label{display:block;margin-bottom:10px;font-size:13px;color:var(--muted);font-weight:650}.login-field{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 8px 8px 18px;border-radius:22px;background:#fff;box-shadow:0 12px 45px #3f50741a}.login-field>svg{color:#8b98ae;flex:0 0 auto}.login-field input{min-width:0;flex:1;border:0;outline:0;background:transparent}.login-field button{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:16px;color:#fff;background:var(--blue);cursor:pointer}.login-field button:disabled{opacity:.4;cursor:default}.form-error{margin:10px 2px 0;color:var(--danger);font-size:13px;line-height:1.5}.shelf-screen{width:min(100%,1040px);min-height:100dvh;margin:0 auto;padding:max(34px,env(safe-area-inset-top)) 22px max(104px,env(safe-area-inset-bottom))}.shelf-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.shelf-header h1{margin:0;font-size:clamp(32px,8vw,52px);line-height:1;letter-spacing:-.055em}.shelf-loading{padding:80px 0;color:var(--muted);text-align:center}.empty-shelf{min-height:62dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-shelf__portrait{display:grid;place-items:center;width:172px;height:210px;margin-bottom:30px;border-radius:86px 86px 38px 38px;color:#6884b2;background:linear-gradient(160deg,#dce9ff,#edf3ff);font-size:42px;box-shadow:0 30px 80px #526fa624}.empty-shelf h2{margin:0;font-size:24px;letter-spacing:-.035em}.empty-shelf p{max-width:330px;margin:12px 0 24px;color:var(--muted);line-height:1.65}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border:0;border-radius:16px;color:#fff;background:var(--blue);box-shadow:0 12px 28px #3d76ef3d;cursor:pointer;font-weight:700}.character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.character-tile,.new-character-tile{position:relative;min-height:228px;border:0;border-radius:30px;overflow:hidden}.character-tile{background:#fff;box-shadow:0 14px 42px #46577814}.character-open{width:100%;min-height:228px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:transparent;cursor:pointer}.character-name{margin-top:17px;font-size:17px;font-weight:760}.character-hint{margin-top:4px;color:var(--muted);font-size:12px}.character-settings{position:absolute;top:13px;right:13px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;color:#73809a;background:#f4f6fae6;cursor:pointer}.new-character-tile{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;border:1.5px dashed #cad2e1;color:#71809a;background:transparent;cursor:pointer}.new-character-tile:hover{color:var(--blue);border-color:#9db9f4;background:#edf3ff80}.avatar{flex:0 0 auto;object-fit:cover;background:#dce9ff;color:#6b83ac}.avatar--small{width:38px;height:38px;border-radius:13px}.avatar--medium{width:60px;height:60px;border-radius:20px}.avatar--large{width:112px;height:112px;border-radius:38px}.avatar--fallback{display:grid;place-items:center;font-weight:800;font-size:28px}.avatar--small.avatar--fallback{font-size:15px}.editor-screen{min-height:100dvh;background:#f7f8fb}.editor-header,.chat-header{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:46px 1fr 46px;align-items:center;min-height:calc(68px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;background:#f7f8fbe0;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);border-bottom:1px solid rgba(224,228,236,.7)}.editor-header h1{margin:0;text-align:center;font-size:17px}.editor-form{width:min(100%,680px);margin:0 auto;padding:34px 22px max(70px,env(safe-area-inset-bottom))}.avatar-editor{display:flex;flex-direction:column;align-items:center;gap:13px;margin-bottom:38px}.avatar-upload{display:inline-flex;gap:7px;align-items:center;color:var(--blue);font-size:13px;font-weight:700;cursor:pointer}.avatar-upload input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.field-label{display:block;margin:24px 4px 9px;color:#4b566a;font-size:13px;font-weight:700}.field-input,.field-textarea{width:100%;border:1px solid transparent;border-radius:20px;background:#fff;box-shadow:0 8px 28px #4555740f;color:var(--ink);outline:0}.field-input{height:58px;padding:0 17px}.field-textarea{min-height:122px;padding:16px 17px;resize:vertical;line-height:1.7}.field-textarea--large{min-height:230px}.field-input:focus,.field-textarea:focus{border-color:#a7bff1;box-shadow:0 0 0 4px #3d76ef14}.thinking-setting{display:flex;align-items:center;gap:16px;min-height:76px;margin-top:24px;padding:15px 17px;border-radius:20px;background:#fff;box-shadow:0 8px 28px #4555740f;cursor:pointer}.thinking-setting__copy{min-width:0;flex:1}.thinking-setting__copy strong,.thinking-setting__copy>span{display:block}.thinking-setting__copy strong{color:#4b566a;font-size:14px}.thinking-setting__copy>span{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}.thinking-setting input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.thinking-switch{position:relative;flex:0 0 auto;width:48px;height:29px;border-radius:999px;background:#d9dee8;transition:background .2s ease}.thinking-switch:after{content:"";position:absolute;top:3px;left:3px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 2px 8px #222c4233;transition:transform .2s ease}.thinking-setting input:checked+.thinking-switch{background:var(--blue)}.thinking-setting input:checked+.thinking-switch:after{transform:translate(19px)}.thinking-setting input:focus-visible+.thinking-switch{outline:3px solid rgba(61,118,239,.28);outline-offset:3px}.danger-button{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:42px;border:0;border-radius:18px;color:var(--danger);background:#fff0f1;cursor:pointer}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.chat-screen{min-height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f7f8fb}.chat-header{grid-template-columns:46px 1fr 46px}.chat-identity{min-width:0;display:flex;align-items:center;gap:10px;justify-self:center}.chat-identity h1{margin:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-identity span{display:block;margin-top:2px;color:#8a96a9;font-size:11px}.message-thread{min-height:0;overflow-y:auto;padding:26px 16px 18px;overscroll-behavior:contain}.message-row{width:min(100%,760px);display:flex;align-items:flex-end;gap:9px;margin:0 auto 16px}.message-row--user{justify-content:flex-end}.message-row--assistant{justify-content:flex-start}.message-bubble{position:relative;max-width:min(78%,560px);padding:12px 15px;border-radius:22px;color:#263044;background:#fff;box-shadow:0 7px 22px #4958740f;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.62;font-size:15px}.message-row--user .message-bubble{color:#fff;background:var(--blue);border-bottom-right-radius:7px;box-shadow:0 8px 23px #3d76ef2e}.message-row--assistant .message-bubble{border-bottom-left-radius:7px}.message-row--greeting{opacity:0;animation:rise-in .42s ease forwards}@keyframes rise-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.message-bubble--pending{min-width:50px}.typing-dots{height:18px;display:flex;align-items:center;gap:4px}.typing-dots i{width:5px;height:5px;border-radius:50%;background:#9aa5b7;animation:dot 1.1s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.14s}.typing-dots i:nth-child(3){animation-delay:.28s}@keyframes dot{0%,70%,to{transform:translateY(0);opacity:.45}35%{transform:translateY(-4px);opacity:1}}.remember-button{position:absolute;right:-6px;bottom:-10px;display:grid;place-items:center;width:29px;height:29px;border:0;border-radius:50%;color:#73809b;background:#f1f4f9;box-shadow:0 4px 10px #4656741f;cursor:pointer;opacity:0;transform:translateY(3px);transition:.18s ease}.message-bubble:hover .remember-button,.remember-button:focus-visible{opacity:1;transform:translateY(0)}.chat-composer{position:sticky;bottom:0;z-index:8;display:flex;align-items:flex-end;gap:9px;padding:10px 14px max(12px,env(safe-area-inset-bottom));background:#f7f8fbf0;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-top:1px solid rgba(224,228,236,.75)}.chat-composer textarea{flex:1;max-height:140px;min-height:48px;padding:13px 16px;border:0;border-radius:20px;outline:0;resize:none;background:#fff;box-shadow:0 7px 24px #41537412;line-height:1.45}.chat-composer button{display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:18px;color:#fff;background:var(--blue);cursor:pointer}.chat-composer button:disabled{opacity:.35}.panel-backdrop{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;background:#131c2e42;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.memory-panel{width:100%;max-height:min(82dvh,720px);display:flex;flex-direction:column;padding:22px 18px max(24px,env(safe-area-inset-bottom));border-radius:30px 30px 0 0;background:#fbfcfe;box-shadow:0 -24px 80px #1e2e4c2e;animation:panel-up .25s ease}@keyframes panel-up{0%{transform:translateY(24px);opacity:0}}.memory-header{display:flex;align-items:center;justify-content:space-between}.memory-header h2{margin:0;font-size:26px;letter-spacing:-.04em}.memory-form{display:flex;gap:8px;margin:20px 0}.memory-form input{flex:1;min-width:0;height:50px;padding:0 15px;border:1px solid var(--line);border-radius:17px;background:#fff;outline:0}.memory-form button{display:grid;place-items:center;width:50px;border:0;border-radius:17px;color:#fff;background:var(--blue)}.memory-list{overflow-y:auto}.memory-empty{padding:42px 18px;color:var(--muted);text-align:center;line-height:1.7}.memory-item{display:flex;gap:12px;align-items:flex-start;padding:16px 4px;border-bottom:1px solid var(--line)}.memory-item p{flex:1;margin:0;line-height:1.65}.memory-item button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:12px;color:#a06a70;background:transparent;cursor:pointer}.install-notice{position:fixed;left:14px;right:14px;bottom:max(14px,env(safe-area-inset-bottom));z-index:20;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:11px;max-width:560px;min-height:70px;margin:0 auto;padding:10px 10px 10px 16px;border:1px solid rgba(226,230,238,.86);border-radius:22px;background:#fffffff5;box-shadow:0 18px 58px #2e3e5b2b;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.install-notice>svg{color:var(--blue)}.install-notice strong,.install-notice span{display:block}.install-notice strong{font-size:14px}.install-notice span{margin-top:3px;color:var(--muted);font-size:11px}.install-action{height:40px;padding:0 13px;border:0;border-radius:13px;color:#fff;background:var(--blue);font-size:13px;font-weight:700}.install-close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;color:var(--muted);background:transparent}.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));z-index:50;transform:translate(-50%);padding:10px 16px;border-radius:999px;color:#fff;background:#1c2434e6;box-shadow:0 10px 30px #141c2d2e;font-size:13px;white-space:nowrap;animation:toast-in .2s ease}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,5px)}}@media(min-width:720px){.character-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.character-tile,.new-character-tile,.character-open{min-height:276px}.message-thread{padding-inline:30px}.memory-panel{width:min(440px,100%);height:100dvh;max-height:none;margin-left:auto;border-radius:30px 0 0 30px;animation-name:panel-side}@keyframes panel-side{0%{transform:translate(28px);opacity:0}}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(hover:none){.remember-button{opacity:1;transform:translateY(0)}}
