:root{font-family:Inter,Segoe UI,Microsoft YaHei,sans-serif;color:#342f32;background:#f7f5f1;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--wine:#762b43;--wine-dark:#582034;--muted:#8a8184;--line:#e9e3dd;--cream:#f7f5f1;--serif:"Noto Serif SC","Source Han Serif SC","Songti SC",SimSun,serif}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin-top:0}button{border:0}input,textarea,select{width:100%;background:#fdfcfa;border:1px solid #e2dcd6;border-radius:10px;padding:12px 14px;color:#342f32;outline:0;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#aa6c7d;box-shadow:0 0 0 3px #762b4310}textarea{resize:vertical;line-height:1.8}input[type=range]{padding:12px 0;accent-color:var(--wine)}input::placeholder,textarea::placeholder{color:#aaa1a3;font-size:13px}button:focus-visible,a:focus-visible{outline:3px solid #a96b7f;outline-offset:4px}label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600;color:#5a4b50}svg{flex-shrink:0}::selection{background:#e6c5ce}h1{font-size:30px;font-weight:600;letter-spacing:-.7px;line-height:1.5}h2{font-size:22px;font-weight:600;letter-spacing:-.3px}h3{font-size:16px;font-weight:600}h4{font-size:14px}.muted{color:var(--muted);font-size:13px;line-height:1.8}.helper{font-size:12px;color:#8b7e84;font-weight:400;line-height:1.8;margin:0}.eyebrow{font-size:10px;letter-spacing:2.3px;color:#a18876;font-weight:600;display:block;margin-bottom:12px}.eyebrow.light{color:#e6cbb8;letter-spacing:2px;display:flex;align-items:center;gap:9px}.eyebrow.light>span{width:5px;height:5px;background:#e1ba88;border-radius:50%}.required{color:var(--wine)}.full{width:100%}.space-top{margin-top:18px}.primary,.secondary,.danger-button,.hero-cta,.quiet-button,.text-button,.stop-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .15s,transform .15s;font-size:13px;font-weight:500}.primary{background:var(--wine);color:#fff;border-radius:10px;padding:13px 20px;min-height:45px}.primary:hover{background:var(--wine-dark)}.secondary{background:#fffdfa;color:#635259;border:1px solid #e0d6d4;border-radius:10px;padding:11px 16px;min-height:42px}.secondary:hover,.secondary.pressed{background:#f4e9eb;border-color:#d5b3bd}.small{font-size:12px;padding:8px 12px;min-height:34px}.quiet-button{background:transparent;color:#8b7b82;padding:8px;font-size:12px}.text-button{color:var(--wine);background:transparent;font-size:12px;padding:7px 0}.danger{color:#b75050}.danger-button{background:#a94343;color:#fff;border-radius:10px;padding:12px 20px}.icon-button{background:transparent;display:inline-flex;align-items:center;justify-content:center;color:#9b8a90;padding:8px;border-radius:8px;min-width:34px;min-height:34px}.icon-button:hover{background:#f1e9e8;color:var(--wine)}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.badge{font-size:10px;border:1px solid #e7ddda;border-radius:5px;padding:3px 7px;color:#a38e8f;white-space:nowrap;margin-left:7px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:var(--wine)}.app-shell{min-height:100vh}.sidebar{width:235px;position:fixed;inset:0 auto 0 0;background:#fdfbf8;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:34px 22px 20px;z-index:30;overflow-y:auto;overscroll-behavior-y:contain}.brand{display:flex;align-items:center;gap:12px;padding-left:10px;font-family:var(--serif);font-size:27px;font-weight:700;letter-spacing:5px;color:#5a2b38}.brand-mark{width:40px;height:45px;background:#772c43;color:#f5e8d6;border-radius:13px;display:flex;align-items:center;justify-content:center}.brand small{display:block;font:9px Inter,Segoe UI,sans-serif;letter-spacing:3.4px;color:#af9898;margin-top:3px}.sidebar-divider{height:1px;background:var(--line);margin:30px 10px 26px}.nav-caption{display:block;font-size:10px;color:#b2a4a5;letter-spacing:1px;padding:0 14px;margin-bottom:13px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 15px;font-size:13px;color:#85767d;border-radius:10px;transition:background .15s}.nav-item:hover{background:#f6f0ed}.nav-item.active{color:#70273d;background:#f1e5e8;font-weight:600}.nav-item small{margin-left:auto;font-size:10px;font-weight:400;color:#ab8f99}.recent-nav{margin-top:35px}.recent-nav>a{display:flex;align-items:center;gap:12px;padding:10px 15px}.recent-nav>a>span{width:7px;height:7px;border-radius:50%;flex-shrink:0}.recent-nav>a>div{font-size:12px;color:#77616c;overflow:hidden}.recent-nav small{display:block;margin-top:5px;font-size:10px;color:#b0a3a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}.sidebar-bottom{margin-top:auto;padding-top:25px}.credit-card{padding:17px;border:1px solid #eaddd6;border-radius:12px;background:linear-gradient(130deg,#f8eee5,#fbf7f2);margin:0 5px 16px}.credit-card>div{display:flex;align-items:center;gap:7px;color:#a18a75;font-size:11px}.credit-card>strong{font-weight:500;font-size:25px;display:block;color:#705a52;margin:10px 0 9px;letter-spacing:-.5px}.credit-card small{font-size:11px;color:#b09a89;letter-spacing:0}.credit-card>a{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a58e83}.admin-link{padding:9px 15px;margin-bottom:13px;font-size:12px}.profile{display:flex;align-items:center;gap:10px;background:transparent;width:100%;padding:13px 7px 0;border-top:1px solid var(--line);text-align:left}.profile-avatar{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e9ded7;color:#8b6961;font-family:var(--serif)}.profile>span:nth-child(2){font-size:12px;flex:1;color:#6a535f}.profile small{display:block;font-size:10px;font-weight:400;color:#b3a2a6;margin-top:4px}.profile>svg{color:#b19ca2}.workspace{margin-left:235px}.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#f9f7f3;gap:12px}.topbar-label{font-size:11px;color:#a29195;letter-spacing:1px}.topbar-right{display:flex;gap:22px;align-items:center}.beta-pill{font-size:10px;display:inline-flex;align-items:center;gap:7px;color:#9c8b7b}.beta-pill>span{width:5px;height:5px;border-radius:50%;background:#99a37b}.mobile-menu{display:none}.page{padding:35px 42px 24px;max-width:1450px;margin:auto}.hero{min-height:292px;border-radius:18px;background:#67283e;display:flex;position:relative;overflow:hidden;color:#fff4e8;isolation:isolate}.hero-copy{padding:36px 40px;z-index:2;width:64%}.hero h1{font-family:var(--serif);font-size:35px;line-height:1.55;letter-spacing:3px;margin:15px 0}.hero p{font-size:12px;color:#d6b9bc;letter-spacing:.4px;margin-bottom:23px}.hero-cta{border:1px solid #b78183;background:#854359;color:#ffefe3;padding:10px 15px;border-radius:8px;font-size:11px}.hero-cta:hover{background:#97516b}.hero-art{position:absolute;inset:0 0 0 auto;width:42%;overflow:hidden;background:radial-gradient(ellipse at 70% 30%,#a6665033,transparent 70%)}.arch{position:absolute;width:182px;height:280px;bottom:-16px;left:20%;border:1px solid #c69a7a99;border-radius:100px 100px 0 0;background:#4e273b;overflow:hidden;box-shadow:0 0 0 12px #95555c22,0 0 0 13px #b7787430}.arch-moon{position:absolute;width:65px;height:65px;border-radius:50%;background:#e8c594;top:44px;right:22px;box-shadow:0 0 45px #eec39f33}.arch-mountains{position:absolute;width:270px;height:200px;bottom:-90px;left:-50px;border-radius:50% 50% 0 0;background:#9c6263;transform:rotate(15deg)}.arch-mountains:after{content:"";position:absolute;inset:38px -20px -15px 90px;border-radius:50% 50% 0 0;background:#c08c74}.arch-horizon{position:absolute;bottom:68px;width:100%;height:1px;background:#d3a18166;box-shadow:0 12px #d3a18122,0 24px #d3a18122}.art-line{height:1px;width:280px;background:linear-gradient(90deg,transparent,#d5a38177);position:absolute;transform:rotate(-35deg);right:-62px}.line-one{top:74px}.line-two{top:100px}.art-caption{position:absolute;right:22px;top:36px;writing-mode:vertical-rl;letter-spacing:4px;font-size:8px;color:#caa08e}.floating-note{position:absolute;bottom:29px;right:27px;padding:12px 15px;backdrop-filter:blur(8px);background:#ac6c6566;border:1px solid #c79b8055;border-radius:9px;display:flex;align-items:center;gap:10px;color:#f0d6bf;font-size:10px}.continue-card{margin-top:24px;border:1px solid #e9ded7;background:#fffcf8;border-radius:12px;display:flex;align-items:center;gap:14px;padding:17px 22px}.continue-label{font-size:10px;color:#ad9188;display:flex;align-items:center;gap:7px;white-space:nowrap;margin-right:6px}.continue-text{flex:1;min-width:0}.continue-text strong{font-size:12px;font-weight:500;color:#765961}.continue-text p{font-size:11px;color:#a49596;margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:500px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 20px}.section-heading h1,.section-heading h2,.section-heading h3{margin-bottom:0}.section-heading h2{font-size:20px}.section-heading h2>span{font-family:Inter,sans-serif;font-size:10px;color:#b2a3a0;vertical-align:middle;padding:2px 7px;border:1px solid var(--line);border-radius:6px;margin-left:8px;font-weight:400}.discover section#characters{padding-top:36px;scroll-margin-top:20px}.search-field{display:flex;align-items:center;gap:9px;border:1px solid #e5ddd7;border-radius:10px;background:#fcfaf7;padding:0 12px;max-width:255px;color:#ac9b9f}.search-field input{border:0;background:transparent;padding:12px 0;box-shadow:none;font-size:12px}.search-field input::placeholder{font-size:11px}.category-tabs{display:flex;gap:9px;margin:24px 0 23px;flex-wrap:wrap}.category-tabs button{font-size:11px;display:flex;gap:6px;align-items:center;background:transparent;color:#a09193;border-radius:7px;padding:9px 14px;border:1px solid #e7e0da}.category-tabs button.selected{background:#772b43;color:#fff1eb;border-color:#772b43}.character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.character-card{padding:0;min-width:0;text-align:left;background:#fffcf8;border:1px solid #e9e0d9;border-radius:14px;overflow:hidden;transition:transform .2s,box-shadow .2s}.character-card:hover{transform:translateY(-4px);box-shadow:0 13px 24px #5c3b4a12}.card-art{height:184px;background:var(--card);position:relative;isolation:isolate;overflow:hidden}.card-category{position:absolute;left:16px;top:16px;padding:4px 8px;border:1px solid #ffffff33;border-radius:5px;background:#ffffff12;color:#fff9efbb;font-size:9px;letter-spacing:1px}.card-orbit{position:absolute;width:135px;height:135px;border-radius:50%;border:1px solid #ffffff27;right:-15px;top:20px;box-shadow:0 0 0 25px #ffffff06,0 0 0 26px #ffffff12}.card-glyph{font-family:var(--serif);font-size:114px;font-weight:400;color:#fff7e8cc;position:absolute;right:36px;top:10px;z-index:1;text-shadow:1px 8px 20px #00000010}.card-hills{width:200%;height:170px;position:absolute;left:-26%;bottom:-128px;border-radius:50%;background:#ffffff1b;transform:rotate(-18deg);box-shadow:0 -25px #ffffff09}.art-1 .card-orbit{width:105px;height:140px;right:40px;top:22px;border-radius:60px 60px 0 0}.art-2 .card-orbit{border-radius:0;transform:rotate(45deg);right:13px;top:47px}.art-3 .card-glyph{opacity:.8;right:55px}.card-title{position:absolute;bottom:22px;left:18px;color:#fff8ecc4;font-size:10px;letter-spacing:3px}.card-open{position:absolute;bottom:16px;right:16px;border:1px solid #ffffff36;border-radius:50%;width:29px;height:29px;display:flex;align-items:center;justify-content:center;color:#ffffffaf}.card-content{padding:19px 18px 18px}.card-name{display:flex;align-items:center;gap:9px}.card-name h3{font-family:var(--serif);font-size:21px;letter-spacing:1px;margin:0;color:#4e4145}.card-name>span{font-size:8px;color:#b7a293;background:#f4eee8;border-radius:4px;padding:2px 5px}.card-content p{font-size:10px;color:#a08d93;line-height:1.8;margin:10px 0 16px;min-height:36px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tags>span{font-size:9px;background:#f4f0eb;color:#ac9996;border-radius:5px;padding:4px 7px}.page-footer{margin-top:38px;padding:20px 0;display:flex;gap:9px;align-items:center;justify-content:center;color:#b2a3a4;font-size:10px;border-top:1px solid var(--line);line-height:1.8}.avatar{--avatar:#756684;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--avatar);color:#f9efe0;position:relative;overflow:hidden;flex-shrink:0}.avatar:after{content:"";position:absolute;border:1px solid #ffffff33;width:33px;height:33px;right:-10px;top:10px;border-radius:50%}.avatar span{font-family:var(--serif);font-size:23px;z-index:1}.avatar.large{width:64px;height:75px;border-radius:14px}.avatar.large span{font-size:38px}.empty{padding:75px 24px;text-align:center;color:#9b858f;display:flex;flex-direction:column;align-items:center;gap:15px}.empty h2,.empty h3{margin:0;color:#765668}.empty p{font-size:13px;line-height:1.8;margin:0 0 7px}.panel{background:#fffdfa;border:1px solid var(--line);border-radius:14px;padding:25px}.panel h3{display:flex;align-items:center;gap:8px;color:#6e525f;margin-bottom:22px}.form-stack{display:flex;flex-direction:column;gap:20px}.form-stack h3{margin:0 0 3px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-row label{min-width:0}.stories-list{display:flex;flex-direction:column;gap:14px;margin-top:30px}.story-row{display:flex;align-items:center;gap:22px;text-align:left;padding:22px;background:#fffcf8;border:1px solid var(--line);border-radius:13px;color:#8f7a84}.story-row>div:nth-child(2){flex:1;min-width:0}.story-row h3{margin:0 0 8px;color:#654953}.story-row p{font-size:12px;color:#a39097;margin:0 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-row span:not(.avatar span){font-size:10px;color:#b3a1a7}.create-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;margin-top:30px}.creation-preview{height:fit-content;position:sticky;top:24px;text-align:center;padding:28px 22px}.creation-preview .avatar{margin:30px auto 16px}.creation-preview h2{font-family:var(--serif);letter-spacing:2px;margin:0 0 12px}.creation-preview .muted{font-size:11px;margin-top:23px}.preview-bubble{font-size:12px;line-height:1.9;background:#f7f1ec;color:#a08d93;padding:16px;border-radius:2px 12px 12px;margin-top:25px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.color-picker{display:flex;gap:12px}.color-picker button{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}.color-picker button.selected{outline:2px solid #c5a4ad;outline-offset:3px}.inline-error{background:#fff0ec;border:1px solid #efd3c9;color:#ac5c4d;padding:10px 14px;border-radius:8px;font-size:12px;line-height:1.7}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:48% 52%;background:#fcfaf6}.auth-story{background:#61283b;position:relative;isolation:isolate;overflow:hidden;padding:40px 50px;display:flex;flex-direction:column;color:#f5e6d7;min-height:100dvh}.auth-brand{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:27px;letter-spacing:5px;z-index:2}.auth-brand small{font-family:Inter,sans-serif;font-size:9px;color:#c39497;letter-spacing:2px;margin-top:10px}.auth-copy{position:relative;z-index:2;margin:auto 0;padding:65px 0 40px}.auth-copy>span{color:#d9af97;font-size:11px;letter-spacing:5px}.auth-copy h1{font-family:var(--serif);font-size:59px;letter-spacing:7px;font-weight:400;line-height:1.5;margin:22px 0 24px}.auth-copy p{font-size:13px;line-height:2.3;color:#cfaab1;letter-spacing:2px}.auth-foot{font-size:10px;letter-spacing:2px;color:#b78694;z-index:2}.auth-illustration{position:absolute;inset:0;overflow:hidden;z-index:0}.auth-illustration .moon{width:190px;height:190px;border-radius:50%;background:#cb946d55;position:absolute;top:18%;right:-80px;box-shadow:0 0 0 26px #d5a38808,0 0 0 27px #d5a38822}.window-lines{position:absolute;width:270px;height:75%;border:1px solid #bc86814d;right:-62px;top:16%;border-radius:160px 160px 0 0;box-shadow:0 0 0 17px #bc868108,0 0 0 18px #bc86812b}.hill{position:absolute;border-radius:50%;background:#8c505a33;bottom:-18%;right:-39%;width:600px;height:500px;transform:rotate(-30deg)}.hill-two{right:20%;bottom:-38%;background:#ad7a6c22}.lantern{position:absolute;right:44px;bottom:90px;border:1px solid #c092733d;width:70px;height:110px;border-radius:40px 40px 5px 5px;background:linear-gradient(#e8bc8044,#7f3a4722)}.lantern-two{right:130px;bottom:130px;width:40px;height:70px;opacity:.5}.illustration-word{position:absolute;right:25px;top:43%;font-family:var(--serif);writing-mode:vertical-rl;color:#d2a18433;font-size:100px;letter-spacing:28px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:45px}.auth-form{width:100%;max-width:365px}.auth-form h2{font-family:var(--serif);font-size:30px;letter-spacing:1px;color:#573946;margin:20px 0 12px}.auth-form>.muted{margin-bottom:30px;font-size:12px}.auth-form form{display:flex;flex-direction:column;gap:20px}.auth-form input{padding:13px 14px}.check-label{flex-direction:row;align-items:flex-start;font-size:11px;line-height:1.8;color:#9c878e;font-weight:400}.check-label input{width:15px;height:15px;flex-shrink:0;accent-color:var(--wine);margin:3px 0 0}.auth-switch{display:flex;justify-content:space-between;margin-top:20px;gap:12px}.auth-switch button{background:transparent;color:#9e7b88;font-size:11px;padding:0}.auth-note{font-size:10px;color:#b4a3a3;display:flex;align-items:center;gap:6px;margin:35px 0 0;line-height:1.8}.secret-box{background:#f4ebe6;border-radius:8px;padding:18px;overflow-wrap:anywhere;font-family:monospace;letter-spacing:1px;line-height:1.8;margin:18px 0}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#2d1c2d70;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:100%;max-width:510px;background:#fffcf8;border:1px solid #e7d8d5;border-radius:18px;padding:27px;max-height:90dvh;overflow-y:auto;box-shadow:0 30px 100px #1d15243b;outline:none}.modal.wide{max-width:800px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.modal-head h2{margin:0;font-family:var(--serif);font-size:21px;color:#674450}.character-detail-head{display:flex;align-items:center;gap:19px;margin:25px 0}.character-detail-head h2{font-family:var(--serif);font-size:29px;letter-spacing:2px;margin:5px 0 8px}.character-detail-head .eyebrow{font-size:10px;letter-spacing:1px;margin:0}.character-detail-head p{font-size:12px;color:#a18b93;margin:0}.detail-description{font-size:13px;line-height:2;color:#8f7883}.greeting-preview{background:#f4ede6;border-radius:12px;padding:20px;margin:20px 0 25px}.greeting-preview>span{font-size:10px;letter-spacing:2px;color:#b49d89}.greeting-preview p{white-space:pre-wrap;font-size:12px;line-height:2;color:#7f636b;margin:12px 0 0}.toast{position:fixed;bottom:27px;left:calc(50% + 100px);transform:translate(-50%);z-index:150;display:flex;align-items:center;gap:10px;max-width:calc(100% - 30px);width:max-content;background:#573341;color:#fff1e8;padding:14px 18px;border-radius:12px;box-shadow:0 10px 35px #39223122;font-size:12px;line-height:1.8}.toast button{display:flex;color:#c8aab5;background:transparent;margin-left:10px}.chat-layout{height:calc(100dvh - 75px);display:flex;position:relative}.conversation{flex:1;min-width:0;display:flex;flex-direction:column;background:#fbf8f3}.chat-heading{display:flex;align-items:center;gap:12px;padding:18px 25px;border-bottom:1px solid var(--line);background:#fffdfa}.chat-identity{flex:1;min-width:0}.chat-identity h2{font-family:var(--serif);font-size:20px;letter-spacing:1px;display:flex;align-items:center;gap:9px;margin:0 0 5px}.chat-identity h2>span{font-family:Inter,Microsoft YaHei,sans-serif;font-size:8px;letter-spacing:0;border:1px solid #e1d8ce;color:#aa9b88;border-radius:4px;padding:2px 5px;font-weight:400}.chat-identity p{font-size:10px;color:#ad9a9e;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-identity p>span{margin:0 5px}.message-scroll{flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#dacbd0 transparent;padding:15px max(25px,calc((100% - 760px)/2)) 20px;overscroll-behavior:contain}.story-intro{text-align:center;margin:14px 0 32px}.story-intro>span{font-size:9px;color:#bda291;letter-spacing:2px}.story-intro>p{font-family:var(--serif);font-size:14px;color:#a99095;letter-spacing:1px;margin:10px 0}.story-intro>small{font-size:9px;color:#beafb0}.message{display:flex;gap:12px;align-items:flex-start;margin:0 0 24px}.message .avatar{width:32px;height:32px;border-radius:10px;margin-top:3px}.message .avatar span{font-size:19px}.message-main{max-width:85%;min-width:0}.message-author{display:block;font-size:10px;color:#b09ca5;margin:0 0 8px 4px}.message-bubble{background:#fffdf9;border:1px solid #e9dfd6;padding:17px 20px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:13px;color:#66505d;border-radius:3px 15px 15px}.message.user{justify-content:flex-end}.message.user .message-author{text-align:right;margin-right:5px}.message.user .message-bubble{background:#f0e2e6;border-color:#e5ccd4;border-radius:15px 3px 15px 15px;color:#784b5d}.message-meta{font-size:9px;color:#b8a8ae;margin:7px 0 0 5px}.typing{display:flex;gap:5px;align-items:center;height:20px}.typing i{width:5px;height:5px;background:#c89aa9;border-radius:50%;animation:typing 1.4s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes typing{50%{opacity:.25;transform:translateY(-3px)}}.cursor{display:inline-block;height:15px;width:2px;background:#aa6e83;margin-left:4px;vertical-align:middle;animation:typing 1s infinite}.composer-area{padding:15px max(25px,calc((100% - 760px)/2)) 12px;border-top:1px solid #eee6e0;background:#fbf8f3}.composer{background:#fffdfa;border:1px solid #d9c8cd;border-radius:13px;box-shadow:0 5px 20px #6b3e5b05;padding:14px 14px 10px}.composer textarea{background:transparent;border:0;padding:0 4px;box-shadow:none;resize:none;font-size:13px;line-height:1.8;max-height:140px}.composer-tools{display:flex;align-items:center;justify-content:space-between;margin-top:5px}.composer-tools>span{font-size:9px;color:#b6a6ad}.composer-tools>div{display:flex;align-items:center;gap:7px}.send-button{height:33px;width:38px;border-radius:8px;background:#7b3049;color:#fff;display:flex;align-items:center;justify-content:center}.send-button:disabled{background:#bc9da7}.stop-button{color:#8d5064;background:#f1e6e8;border:1px solid #dac0c9;border-radius:8px;padding:8px 12px;font-size:11px}.composer-note{text-align:center;font-size:9px;line-height:1.6;color:#b7a5aa;margin-top:9px}.context-notice{display:flex;align-items:center;gap:7px;background:#f4eadd;color:#9a805e;border-radius:8px;padding:9px 12px;font-size:10px;line-height:1.7;margin-bottom:10px}.context-notice button{background:transparent;color:#987751;font-size:10px;white-space:nowrap;margin-left:auto}.memory-panel{width:300px;flex-shrink:0;border-left:1px solid var(--line);padding:22px;background:#fffdf9;overflow-y:auto}.memory-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.memory-heading h3{display:flex;gap:8px;align-items:center;margin:0;font-size:14px;color:#785667}.memory-panel>.muted{font-size:11px}.memory-panel>label{margin:19px 0;font-size:12px}.memory-panel textarea{font-size:11px;padding:10px}.memory-panel>.helper{display:block;margin-top:10px;font-size:10px}.memory-actions{margin-top:26px;border-top:1px solid var(--line);padding-top:18px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.memory-actions .text-button{font-size:11px}.summary-proposal{border:1px solid #e4cbd3;padding:13px;border-radius:9px;background:#faf1f3;margin-top:20px}.summary-proposal strong{font-size:12px;color:#865a6c}.summary-proposal p{font-size:12px;line-height:1.9;color:#8c727e;white-space:pre-wrap}.account-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin-top:25px}.balance-panel{background:linear-gradient(140deg,#77354b,#542438);color:#efdbd3;display:flex;flex-direction:column;border-color:#71354a}.balance-panel>svg{color:#c59b81;margin-bottom:16px}.balance-panel>span{font-size:12px;color:#d6afa9}.balance-panel>strong{font-size:40px;font-weight:400;letter-spacing:-1px;display:flex;gap:9px;align-items:baseline;margin:12px 0 17px}.balance-panel>strong small{font-size:13px;color:#bf919c}.balance-panel>p{font-size:12px;line-height:1.9;color:#d2a7b0;max-width:270px}.balance-rules{margin-top:auto;border-top:1px solid #ffffff1f;padding-top:20px}.balance-rules h4{color:#dfbdba;font-weight:400}.balance-rules p{font-size:11px;line-height:1.9;color:#c39aa6;margin:10px 0 0}.usage-panel{margin-top:25px}.usage-panel .section-heading{margin-top:0}.usage-panel h3{margin:0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}th{font-size:10px;font-weight:400;letter-spacing:.5px;color:#ae979f;border-bottom:1px solid var(--line);padding:14px 13px}td{padding:15px 13px;border-bottom:1px solid #f0eae4;color:#8e747e;font-size:11px}tr:last-child td{border-bottom:0}.positive{color:#77916f}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:28px 0}.stat-grid>div{background:#fffdfa;border:1px solid var(--line);border-radius:12px;padding:20px;position:relative}.stat-grid svg{position:absolute;right:18px;top:21px;color:#c5adb7;width:20px}.stat-grid span{font-size:11px;color:#a28994;display:block;margin-bottom:16px}.stat-grid strong{font-weight:500;font-size:25px;color:#755362}.stat-grid small{font-size:10px;margin-left:5px;color:#b292a0}.admin-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.admin-side{display:flex;flex-direction:column;gap:20px}.admin-page input,.admin-page select{font-size:12px}.admin-page .helper{font-size:10px}.compact-info{background:#f0ebe4;color:#927e74}.compact-info h3{margin:15px 0}.compact-info p{font-size:12px;line-height:1.9;margin:0}.invite-result{background:#f4ebe9;padding:15px;border:1px solid #e7d3d6;border-radius:10px}.invite-result>small{display:block;color:#a58890;font-size:10px}.invite-result code{display:block;overflow-wrap:anywhere;color:#854b62;margin:13px 0}.invite-list>div{padding:12px 0;border-top:1px solid var(--line);font-size:11px;color:#927380}.invite-list small{display:block;font-size:10px;color:#b5a1aa;margin-top:7px}.test-result{background:#eef1e8;border:1px solid #d9dfcc;border-radius:9px;padding:12px;color:#7e8c6b;font-size:12px;line-height:1.8}.report{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--line)}.report strong{font-size:12px;font-weight:500;color:#825b6f}.report small{font-size:10px;color:#b19ca6;margin-left:12px}.report p{font-size:12px;color:#9b838e;line-height:1.9;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}@media(min-width:1600px){.page{padding-top:45px}.hero{min-height:330px}.hero-copy{padding:42px 48px}.hero h1{font-size:41px}.arch{height:315px;width:210px}.card-art{height:210px}.card-glyph{font-size:140px}.card-content p,.card-title{font-size:12px}.tags>span{font-size:10px}}@media(max-width:1200px){.sidebar{width:205px;padding:30px 16px 18px}.workspace{margin-left:205px}.page{padding:28px}.topbar{padding:0 28px}.character-grid{gap:16px}.hero-copy{padding:32px;width:68%}.hero h1{font-size:30px}.hero-art{width:39%}.arch{left:10%;width:150px}.floating-note{right:14px;font-size:9px}.continue-label span{display:none}.card-content{padding:16px}.create-layout{grid-template-columns:minmax(0,1fr) 220px}.memory-panel{width:280px}.with-memory .message-scroll,.with-memory .composer-area{padding-left:20px;padding-right:20px}.admin-grid{grid-template-columns:1.3fr 1fr}.stat-grid{gap:12px}.stat-grid>div{padding:16px}}@media(max-width:980px){.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{flex-wrap:wrap}.hero-art{opacity:.7}.hero-copy{width:80%}.hero-copy p{max-width:65%;line-height:1.8}.hero h1{font-size:30px}.floating-note{display:none}.continue-card{padding:15px;gap:10px}.continue-card .text-button{font-size:10px;white-space:nowrap}.create-layout{grid-template-columns:1fr}.creation-preview{display:none}.account-grid,.admin-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}.memory-panel{position:absolute;right:0;top:0;bottom:0;width:310px;z-index:12;box-shadow:-15px 0 50px #553d511c}.auth-story{padding:35px}.auth-copy h1{font-size:44px}.auth-panel{padding:35px}.auth-copy p{font-size:11px}.topbar-right{gap:10px}}@media(max-width:700px){.sidebar{transform:translate(-100%);transition:transform .2s;width:235px}.sidebar.open{transform:none}.sidebar-scrim{position:fixed;inset:0;background:#35253066;z-index:25;backdrop-filter:blur(2px)}.workspace{margin-left:0}.topbar{height:60px;padding:0 18px;gap:8px}.mobile-menu{display:flex}.topbar-label{font-size:9px;flex:1;letter-spacing:0}.topbar-right{gap:4px}.topbar-right .quiet-button{font-size:10px}.beta-pill{font-size:8px}.page{padding:22px 18px}.hero{min-height:290px;border-radius:14px}.hero-copy{padding:26px 24px;width:88%}.hero .eyebrow{font-size:8px;letter-spacing:1px}.hero h1{font-size:29px;margin-top:19px;line-height:1.65;letter-spacing:2px}.hero p{font-size:10px;margin-bottom:18px;max-width:80%}.hero-art{width:44%;opacity:.55}.arch{width:130px;height:230px;left:28%;bottom:-25px}.arch-moon{width:45px;height:45px;right:15px}.hero-cta{font-size:10px;padding:9px 11px}.art-caption{display:none}.discover section#characters{padding-top:28px}.section-heading{gap:15px;margin-bottom:16px}.section-heading h2{font-size:18px}.section-heading .eyebrow{font-size:8px}.search-field{max-width:100%;width:100%}.category-tabs{gap:7px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:17px 0}.category-tabs button{font-size:10px;padding:8px 10px;white-space:nowrap}.category-tabs svg{width:13px}.character-grid{gap:13px}.card-art{height:154px}.card-category{font-size:7px;left:12px;top:12px;padding:3px 6px}.card-glyph{font-size:91px;right:20px;top:16px}.card-orbit{width:100px;height:100px;right:-23px;top:23px}.card-title{bottom:17px;left:12px;font-size:8px;letter-spacing:1px}.card-open{right:10px;bottom:12px;width:24px;height:24px}.card-open svg{width:15px}.card-content{padding:13px 12px}.card-name h3{font-size:19px}.card-name>span{font-size:7px}.card-content p{font-size:10px;min-height:36px;line-height:1.8;margin:8px 0 12px}.tags{gap:4px}.tags>span{font-size:8px;padding:4px 5px}.continue-card{margin-top:18px;padding:13px 12px;gap:10px}.continue-label{display:none}.continue-card .avatar{width:32px;height:32px}.continue-text strong{font-size:11px}.continue-text p{font-size:9px;margin-top:4px}.continue-card .text-button{font-size:9px;gap:5px}.continue-card .text-button svg{width:13px}.page-footer{font-size:9px;text-align:center;margin-top:25px;align-items:flex-start}.page-footer svg{width:13px}.page h1{font-size:25px;line-height:1.6}.panel{padding:20px}.field-row{gap:12px}.story-row{padding:16px;gap:14px}.story-row .avatar.large{width:48px;height:58px}.story-row .avatar.large span{font-size:30px}.story-row h3{font-size:14px}.story-row p{font-size:11px}.story-row>svg{width:16px}.toast{left:50%;bottom:20px;font-size:11px}.modal-backdrop{padding:16px}.modal{padding:22px;max-height:92dvh}.auth-shell{display:flex;flex-direction:column}.auth-story{min-height:0;height:220px;padding:24px 28px}.auth-brand{font-size:23px;gap:10px}.auth-brand>svg{width:23px}.auth-brand small{font-size:8px;margin-top:4px}.auth-copy{margin:0;padding:18px 0 0}.auth-copy>span,.auth-foot,.auth-copy p{display:none}.auth-copy h1{font-size:31px;letter-spacing:4px;margin:0;line-height:1.5}.auth-copy h1 br{display:none}.auth-copy:after{content:"一盏灯，一段故事。";display:block;font-size:11px;letter-spacing:3px;color:#cba3aa;margin-top:12px}.auth-illustration .moon{width:85px;height:85px;right:24px;top:74px}.window-lines{width:140px;right:9px;top:28px;height:280px}.illustration-word{font-size:40px;right:42px;top:100px;letter-spacing:10px;opacity:.3}.lantern{display:none}.auth-panel{padding:30px 28px 35px;flex:1}.auth-form{max-width:420px}.auth-form h2{font-size:25px;margin-top:14px}.auth-form>.muted{font-size:11px;margin-bottom:23px}.auth-form form{gap:18px}.auth-note{margin-top:28px}.chat-layout{height:calc(100dvh - 60px)}.chat-heading{padding:13px 12px;gap:9px}.chat-heading>.icon-button{padding:5px;min-width:26px}.chat-heading .avatar{width:34px;height:34px}.chat-identity h2{font-size:18px}.chat-identity p{font-size:9px;max-width:150px}.chat-heading>.secondary{padding:8px;min-height:33px}.chat-heading>.secondary span{font-size:10px}.message-scroll{padding:15px 16px 20px}.message{gap:9px;margin-bottom:22px}.message-main{max-width:87%}.message-bubble{padding:13px 14px;font-size:13px;line-height:1.9}.message .avatar{width:27px;height:29px;border-radius:8px}.message .avatar span{font-size:17px}.story-intro{margin:8px 0 25px}.story-intro p{font-size:12px}.composer-area{padding:10px 12px max(8px,env(safe-area-inset-bottom))}.composer{padding:12px 10px 8px}.composer textarea{font-size:14px}.composer-tools>span{font-size:8px}.composer-note{font-size:8px;padding:0 4px}.memory-panel{width:min(335px,90vw);padding:20px}.context-notice{font-size:9px;padding:7px 9px}.context-notice>button{font-size:9px}.stat-grid{gap:12px}.stat-grid>div{padding:17px}.stat-grid svg{width:17px;right:15px}.stat-grid span{font-size:10px}.stat-grid strong{font-size:23px}.admin-page .field-row{grid-template-columns:1fr 1fr}.admin-page .button-row{gap:8px}.admin-page .button-row button{font-size:11px;padding:10px 12px}.report{align-items:flex-start;gap:10px}.report>.secondary{white-space:nowrap}.table-scroll th,.table-scroll td{padding:12px 9px}}.card-content p{font-size:12px;color:#8c757f;min-height:43px}.tags>span{font-size:10px;color:#8f7b7b}.card-category{font-size:10px}.card-title{font-size:11px}.category-tabs button{font-size:12px}.nav-item{font-size:14px}.hero p{font-size:13px}.search-field input::placeholder{font-size:12px}.page-footer{font-size:11px;color:#99878f}@media(max-width:700px){.card-content p{font-size:11px;min-height:40px}.tags>span{font-size:9px}.card-category{font-size:9px}.card-title{font-size:10px}.category-tabs button,.hero p{font-size:11px}.page-footer{font-size:10px}}@media(max-width:700px){.sidebar{visibility:hidden;pointer-events:none;transition:transform .2s,visibility .2s}.sidebar.open{visibility:visible;pointer-events:auto}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
