@charset "UTF-8";
:root{--paper:#f7f5ef;--white:#fffefa;--ink:#302c26;--muted:#8b857b;--line:#e8e3d9;--accent:#947044;--accent-dark:#75552e;--wash:#ece5d9;--green:#5d7b62;--red:#a44e43;--sidebar:#24211c;--radius:16px;--shadow:0 16px 60px #30261716;font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:9px;background:#fffefa;color:var(--ink);padding:11px 13px;outline:none}textarea{resize:vertical;line-height:1.8;min-height:90px}input:focus,textarea:focus,select:focus{border-color:#b2976b;box-shadow:0 0 0 3px #b2976b15}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);flex:none}input[type=color]{height:43px;padding:6px}button:focus-visible,a:focus-visible{outline:2px solid #a17e4b;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.35}h1{font-size:28px;font-weight:650;letter-spacing:-.6px}h2{font-size:19px;font-weight:650}h3{font-size:16px;font-weight:650}small,.muted{color:var(--muted)}small{font-size:12px}svg.icon{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.gap16{gap:16px}.stack{display:flex;flex-direction:column;gap:16px}.grow{flex:1;min-width:0}.right{text-align:right}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;border:1px solid var(--line);border-radius:9px;padding:9px 15px;background:var(--white);font-weight:550;transition:.18s}.btn:hover{border-color:#c5b49a;background:#faf6ef;transform:translateY(-1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fffaf3}.btn.primary:hover{background:var(--accent-dark)}.btn.dark{background:var(--sidebar);border-color:var(--sidebar);color:#f9f3e8}.btn.ghost{background:transparent;border-color:transparent}.btn.ghost:hover{background:var(--wash)}.btn.small{min-height:32px;font-size:12px;padding:5px 10px}.btn.danger{color:var(--red);border-color:#e7cbc4}.icon-button{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;flex:none}.icon-button:hover{background:#00000007}.tag{display:inline-flex;align-items:center;border-radius:5px;background:#eee9df;color:#83715b;padding:3px 8px;font-size:11px;line-height:1.5}.pill{display:inline-flex;align-items:center;gap:6px;background:#ecefe7;border:1px solid #dce3d3;color:#657a55;border-radius:20px;padding:5px 10px;font-size:11px;white-space:nowrap}.pill::before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.pill.pending{color:#927448;background:#f3ede2;border-color:#e7ddca}.pill.error{background:#f5e9e5;color:#a15446;border-color:#e8cec6}.empty{padding:62px 22px;text-align:center;color:var(--muted)}.empty .icon{width:38px;height:38px;margin-bottom:12px;color:#b8aa94}.empty h3{color:var(--ink);margin-bottom:8px}.empty p{font-size:13px;margin-bottom:18px}.note{padding:12px 14px;background:#f1ece2;border-radius:9px;color:#7e6b4f;font-size:12px}.note.error{background:#f8eae6;color:#9c5145}.note.success{background:#edf1e8;color:#60774e}.divider{height:1px;background:var(--line);margin:20px 0}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--accent);text-transform:uppercase;font-weight:650}.boot{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--muted)}.boot-mark{font-size:36px;color:var(--accent)}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #b7976a44;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--sidebar);color:#f2ece2;padding:28px 19px 16px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 24px}.brand-mark{color:#d8bd92;display:flex;align-items:center;justify-content:center;border:1px solid #6e5c41;width:39px;height:42px;border-radius:11px}.brand-mark svg{width:25px;height:25px}.brand-title{font-size:19px;letter-spacing:2px;font-family:"Songti SC","SimSun",serif;font-weight:bold}.brand-sub{font-size:9px;letter-spacing:2.4px;color:#a69882;margin-top:2px}.new-story{width:100%;background:#d3b98e;border-color:#d3b98e;color:#332a20;margin-bottom:22px}.new-story:hover{background:#e0c8a2;border-color:#e0c8a2}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;gap:12px;align-items:center;padding:11px 13px;color:#b7afa2;border-radius:8px;font-size:13px;transition:.18s}.nav a:hover{background:#ffffff07;color:#f4eee4}.nav a.active{background:#ffffff0c;color:#e2cba3}.nav a.active:before{content:'';width:3px;height:18px;position:absolute;left:19px;background:#d7bb89;border-radius:2px}.nav .icon{width:18px;height:18px}.sidebar-label{font-size:10px;letter-spacing:1.5px;color:#8b8172;padding:23px 12px 10px;display:flex;align-items:center;justify-content:space-between}.recent-list{overflow:auto;flex:1;margin-top:2px;min-height:20px}.recent-link{display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:8px;color:#aaa293;font-size:12px}.recent-link:hover,.recent-link.selected{background:#ffffff07;color:#e8ddcc}.recent-dot{height:6px;width:6px;flex:none;border-radius:50%;background:#7c6b54}.recent-empty{padding:10px 12px;font-size:11px;color:#7f7566;line-height:1.9}.sidebar-bottom{border-top:1px solid #ffffff0b;padding-top:15px;margin-top:12px}.user-badge{width:34px;height:34px;background:#3c352c;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#ddc9a6;font-size:13px}.user-info{line-height:1.6}.user-info strong{font-size:12px;font-weight:500}.user-info small{display:block;color:#8e8371;font-size:10px}.sidebar-bottom .icon-button{color:#a99a84}.sidebar-bottom .icon-button:hover{background:#ffffff10}.workspace{grid-column:2;min-width:0}.topbar{height:76px;padding:0 42px;border-bottom:1px solid #e8e3d9aa;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f7f5efe8}.breadcrumb{font-size:12px;color:#a0988b;display:flex;align-items:center;gap:9px}.breadcrumb span:last-child{color:#5e574c}.topbar-actions{display:flex;align-items:center;gap:12px}.topbar-key{font-size:10px;letter-spacing:1px;color:#a69b88}.content{max-width:1370px;margin:0 auto;padding:34px 42px 55px}.mobile-toggle,.mobile-bottom{display:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading p{font-size:13px;color:var(--muted);margin-top:8px}.hero{position:relative;isolation:isolate;border:1px solid #e5ddd0;background:linear-gradient(110deg,#ece5d7,#f5f1e9 67%,#e7e1d4);border-radius:17px;padding:32px 36px;min-height:204px;overflow:hidden;display:flex;align-items:center;margin-bottom:30px}.hero h1{font-family:"Songti SC","SimSun",serif;font-size:32px;font-weight:500;letter-spacing:1px;margin:13px 0 12px}.hero p{font-size:13px;color:#8e7f67;max-width:530px;line-height:1.9}.hero-art{position:absolute;right:35px;top:-45px;width:320px;height:320px;border:1px solid #b79f7444;border-radius:50%;z-index:-1}.hero-art::before,.hero-art::after{content:'';position:absolute;border:1px solid #b79f7433;inset:30px;border-radius:50%}.hero-art::after{inset:60px}.hero-art svg{position:absolute;width:76px;height:76px;top:125px;left:124px;color:#bda780;stroke-width:.7;transform:rotate(-13deg)}.hero-mark{position:absolute;right:41px;bottom:25px;font-size:10px;letter-spacing:2px;color:#aa9777}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:28px 0 16px}.section-heading h2{font-size:17px}.section-heading small{font-size:11px}.section-heading .btn{font-size:12px}.stats-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}.stat-compact{display:flex;gap:13px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:11px;padding:16px 18px}.stat-compact .stat-icon{height:37px;width:37px;background:#f0eadf;display:flex;align-items:center;justify-content:center;border-radius:10px;color:#ad9065}.stat-compact strong{font-size:19px;line-height:1.2;font-weight:550}.stat-compact small{display:block;font-size:10px;margin-top:4px}.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.character-card{background:var(--white);border:1px solid var(--line);border-radius:13px;overflow:hidden;transition:.2s;position:relative;cursor:pointer;display:flex;flex-direction:column;text-align:left;width:100%;padding:0}.character-card:hover{transform:translateY(-3px);box-shadow:0 9px 24px #51432b0d;border-color:#cdbb9e}.card-cover{height:156px;background:linear-gradient(135deg,color-mix(in srgb,var(--card-color) 24%,#f4f1e7),color-mix(in srgb,var(--card-color) 48%,#f4f1e7));position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--card-color) 80%,#40362a)}.card-cover::before{content:'';position:absolute;width:155px;height:155px;border:1px solid currentColor;border-radius:50%;opacity:.15;top:-18px;right:-40px}.card-cover::after{content:'';position:absolute;width:95px;height:95px;border:1px solid currentColor;transform:rotate(35deg);opacity:.1;bottom:-45px;left:-20px}.cover-symbol{height:71px;width:71px;border-radius:50%;border:1px solid #ffffff80;background:#ffffff36;box-shadow:0 5px 22px #463b2010;display:flex;align-items:center;justify-content:center;position:relative}.cover-symbol svg{width:38px;height:38px;stroke-width:1.1}.cover-caption{position:absolute;left:15px;top:12px;font-size:9px;letter-spacing:2px;opacity:.6}.cover-version{position:absolute;right:12px;bottom:10px;font-size:9px;opacity:.65}.card-cover img{width:100%;height:100%;object-fit:cover}.card-body{padding:16px 17px 17px;display:flex;flex-direction:column;flex:1}.card-body h3{font-family:"Songti SC","SimSun",serif;font-size:19px;letter-spacing:1px}.card-subtitle{font-size:11px;color:#9b8d79;margin-top:4px}.card-summary{font-size:12px;color:#817b70;margin:12px 0 15px;line-height:1.8;min-height:42px}.card-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}.card-bottom .icon{width:16px;height:16px;color:#b29a75}.card-tags{display:flex;gap:5px;flex-wrap:wrap}.card-tags .tag{font-size:10px;padding:2px 6px}.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.world-card{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:pointer;transition:.18s;text-align:left;padding:0}.world-card:hover{box-shadow:0 9px 24px #51432b0d;transform:translateY(-2px)}.world-cover{height:108px;background:linear-gradient(120deg,color-mix(in srgb,var(--card-color) 20%,#f6f2e7),color-mix(in srgb,var(--card-color) 50%,#f6f2e7));position:relative;overflow:hidden}.world-cover:before{content:'';position:absolute;left:-10%;bottom:-60px;width:80%;height:120px;border:1px solid #ffffff80;border-radius:50%;transform:rotate(-20deg);background:#ffffff16}.world-cover:after{content:'';position:absolute;right:-20%;bottom:-75px;width:100%;height:150px;border-radius:50%;border:1px solid #ffffffa0;transform:rotate(15deg);background:#ffffff22}.world-cover svg{position:absolute;right:30px;top:22px;width:40px;height:40px;color:#ffffffb3;stroke-width:1}.world-body{padding:16px 18px}.world-body h3{font-size:15px;margin-bottom:5px}.world-body p{color:var(--muted);font-size:11px}.world-banner{display:flex;align-items:center;gap:10px;color:#93836b;font-size:12px;margin-top:10px}.continue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.continue-card{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);border-radius:11px;padding:16px;background:var(--white);min-width:0}.continue-card:hover{border-color:#c9b598}.avatar{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;flex:none;background:color-mix(in srgb,var(--card-color,#b78d60) 18%,#f6f2e8);color:var(--card-color,#997548);overflow:hidden}.avatar svg{width:23px;height:23px;stroke-width:1.3}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.large{width:60px;height:60px;border-radius:16px}.avatar.large svg{width:30px;height:30px}.avatar.small{width:32px;height:32px;border-radius:9px}.avatar.small svg{width:18px;height:18px}.continue-card strong{font-size:12px;font-weight:550;display:block}.continue-card p{font-size:11px;color:var(--muted);margin-top:4px}.searchbar{position:relative;flex:1;max-width:350px}.searchbar svg{position:absolute;left:13px;top:12px;width:17px;height:17px;color:#a69c8a}.searchbar input{padding-left:39px;background:var(--white);height:41px;font-size:12px}.library-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.tabs{display:flex;gap:5px;background:#ece7dd;padding:4px;border-radius:9px;flex-wrap:wrap}.tabs button{padding:6px 13px;border-radius:6px;font-size:12px;color:#8e826f}.tabs button.active{background:var(--white);color:#6f5637;box-shadow:0 1px 3px #00000009}.page-foot{font-size:11px;color:#aaa294;text-align:center;margin-top:32px}.mobile-dimmer{display:none}
.chat-layout{height:calc(100dvh - 76px);display:grid;grid-template-columns:minmax(0,1fr) 278px}.chat-column{display:flex;flex-direction:column;min-height:0;min-width:0}.chat-header{padding:20px 30px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffefa77}.chat-header h2{font-size:16px;margin-bottom:4px}.chat-header p{font-size:11px;color:#9b8a72}.messages{overflow:auto;overscroll-behavior:contain;flex:1;padding:25px 32px 20px;scroll-behavior:smooth}.messages-inner{max-width:780px;margin:0 auto}.scene{padding:18px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;margin:8px 0 28px;color:#948570;font-size:12px;line-height:2}.scene-label{font-size:9px;letter-spacing:3px;display:block;color:#b4a081;margin-bottom:8px}.message{display:flex;gap:12px;margin-bottom:27px;align-items:flex-start}.message.user{flex-direction:row-reverse;margin-left:48px}.message-body{max-width:calc(100% - 48px);min-width:0}.message-label{font-size:10px;color:#a49987;display:flex;align-items:center;gap:8px;margin:0 0 7px}.message.user .message-label{justify-content:flex-end}.message-text{font-size:14px;line-height:1.95;overflow-wrap:anywhere;white-space:normal}.message-text p{margin:0 0 10px}.message-text p:last-child{margin-bottom:0}.message-text em{color:#93846c}.message-text code{background:#ebe6db;border-radius:4px;padding:1px 5px;font-family:Consolas,monospace;font-size:12px}.message-text pre{white-space:pre-wrap;overflow:auto;background:#ede8df;border-radius:8px;padding:12px;font-size:12px}.message-text pre code{padding:0;background:none}.message.user .message-text{padding:13px 18px;background:#eae2d5;border-radius:14px 4px 14px 14px;color:#4f4538}.message-actions{display:flex;gap:4px;align-items:center;margin-top:7px;opacity:.55;transition:.15s}.message:hover .message-actions{opacity:1}.message-actions button{font-size:10px;display:flex;align-items:center;gap:4px;padding:3px 7px;color:#9b896d;border-radius:4px}.message-actions button:hover{background:#eae3d7}.message-actions svg{width:12px;height:12px}.message.user .message-actions{justify-content:flex-end}.message-error{color:#a77763;font-size:11px;margin-top:7px}.typing{display:flex;gap:5px;padding:10px 0}.typing i{height:5px;width:5px;border-radius:50%;background:#b59d76;animation:blink 1.4s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes blink{50%{opacity:.25;transform:translateY(-3px)}}.composer-wrap{padding:10px 28px 18px;background:var(--paper);border-top:1px solid var(--line)}.composer{background:var(--white);border:1px solid #dcd3c4;box-shadow:0 3px 20px #47382406;border-radius:13px;overflow:hidden}.composer textarea{border:0;box-shadow:none;background:none;resize:none;min-height:63px;max-height:170px;width:100%;padding:15px 17px 5px;font-size:13px;line-height:1.8}.composer-footer{display:flex;justify-content:space-between;align-items:center;padding:8px 12px 10px;gap:10px}.composer-footer small{font-size:10px;color:#ab9c85}.composer-send{height:34px;min-width:36px;border-radius:8px;background:#947044;color:#fffaf4;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;font-size:11px}.composer-send .icon{width:16px;height:16px}.composer-note{text-align:center;color:#aaa18f;font-size:9px;margin-top:9px}.connection-banner{margin:0 0 10px;font-size:11px;color:#91744e;display:flex;align-items:center;gap:8px}.connection-banner button{text-decoration:underline;text-underline-offset:3px}.chat-aside{border-left:1px solid var(--line);padding:24px 20px;background:#f0ede5;overflow:auto}.aside-heading{font-size:10px;letter-spacing:2px;color:#a5977f;margin-bottom:15px}.aside-block{padding-bottom:22px;margin-bottom:23px;border-bottom:1px solid #e3ddcf}.aside-block:last-child{border:0}.aside-block h3{font-size:13px;margin-bottom:9px}.aside-block p{font-size:11px;color:#91836d;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}.aside-fact{font-size:11px;padding:7px 0;color:#7d705e;border-bottom:1px dotted #d8cdbb}.memory-count{font-size:10px;color:#a19580;display:flex;gap:5px;align-items:center}.aside-world{display:flex;align-items:center;gap:10px;margin-bottom:12px}.aside-world .avatar{width:32px;height:32px}.aside-world h3{margin:0;font-size:12px}.aside-world small{font-size:10px}.chat-aside .btn{font-size:11px}.branch-link{display:block;font-size:11px;color:#8b7354;padding:6px 0}.branch-link:hover{text-decoration:underline}.archive-table{display:flex;flex-direction:column;gap:10px}.archive-row{display:flex;align-items:center;gap:16px;padding:17px 19px;background:var(--white);border:1px solid var(--line);border-radius:11px}.archive-row h3{font-size:13px}.archive-row p{font-size:11px;color:var(--muted);margin-top:5px}.archive-actions{display:flex;gap:5px}.panel{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:23px}.panel h2{font-size:16px;margin-bottom:15px}.panel h3{font-size:13px;margin-bottom:12px}.panel p.helper{font-size:12px;color:var(--muted);margin-bottom:18px;line-height:1.9}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid .full{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;font-weight:550;color:#756751}.field small{font-size:10px;color:#a1937d}.field input,.field select,.field textarea{font-size:12px}.checkline{display:flex;align-items:center;gap:9px;font-size:12px;color:#8c7a60;cursor:pointer}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:20px}.form-error{color:var(--red);font-size:12px;margin-top:12px;white-space:pre-line}.details{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.details summary{cursor:pointer;font-size:12px;color:#8a7555;margin-bottom:14px}.details summary::marker{color:#b9a17c}.usage-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:23px}.usage-card{background:var(--white);padding:20px 21px;border:1px solid var(--line);border-radius:11px}.usage-card small{font-size:11px;display:block;margin-bottom:8px}.usage-card strong{font-size:25px;font-weight:500;letter-spacing:-.5px}.usage-card span{font-size:11px;color:var(--muted);margin-left:6px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th{font-weight:500;text-align:left;color:#9f8c6e;border-bottom:1px solid var(--line);padding:10px 13px;background:#f7f3ec}td{padding:12px 13px;border-bottom:1px solid #ede7dd;color:#746b5e}tr:last-child td{border-bottom:0}.status-label{display:inline-flex;padding:2px 6px;background:#eee9df;border-radius:4px;font-size:10px;color:#8b7657}.status-label.complete{background:#edf1e9;color:#648058}.status-label.failed,.status-label.interrupted{background:#f6e9e3;color:#a26e52}.status-label.running,.status-label.queued{background:#eee7f5;color:#8d74a6}.bar-chart{display:flex;align-items:flex-end;height:130px;gap:12px;padding:8px 0 0}.bar-item{flex:1;min-width:25px;text-align:center;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:6px}.bar-item .bar{background:#cbb694;border-radius:4px 4px 0 0;min-height:2px}.bar-item small{font-size:9px}.bar-item .bar-value{font-size:9px;color:#a48f6d}.user-admin-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.user-admin-row:last-child{border:0}.feedback-card{padding:16px 0;border-bottom:1px solid var(--line)}.feedback-card p{font-size:12px;line-height:1.9;white-space:pre-wrap}.feedback-card small{font-size:10px}.setting-tabs{margin-bottom:23px;display:inline-flex;max-width:100%}.backup-info{font-size:12px;line-height:1.9;color:#8c7b60}.code{padding:9px 11px;border-radius:7px;background:#ede7dc;font:12px Consolas,monospace;word-break:break-all;display:block;user-select:all}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;background:#f7f4ec}.auth-story{background:#25211b;position:relative;overflow:hidden;padding:50px 64px;display:flex;flex-direction:column;justify-content:space-between;color:#d9c5a3}.auth-story .brand{padding:0}.auth-story .brand-title{color:#f1e6d3}.auth-copy{position:relative;z-index:1;margin-top:60px}.auth-copy .eyebrow{color:#a58b63}.auth-copy h1{font-family:"Songti SC","SimSun",serif;font-size:42px;line-height:1.6;font-weight:400;letter-spacing:3px;margin:22px 0}.auth-copy p{color:#ab9d86;line-height:2.2;font-size:13px;max-width:390px}.auth-circle{position:absolute;width:610px;height:610px;border:1px solid #8a73452a;border-radius:50%;right:-220px;bottom:-290px}.auth-circle:before,.auth-circle:after{content:'';position:absolute;inset:65px;border:1px solid #8a73452a;border-radius:50%}.auth-circle:after{inset:125px}.auth-story-foot{font-size:10px;letter-spacing:1.5px;color:#776851;margin-top:65px;z-index:1}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:55px 50px}.auth-box{width:100%;max-width:370px}.auth-box h2{font-size:24px;margin-bottom:9px;font-family:"Songti SC","SimSun",serif}.auth-box .auth-intro{font-size:12px;color:#9c8c72;margin-bottom:29px;line-height:1.9}.auth-box .field{margin-bottom:18px}.auth-box input{background:#fffdf8;padding:12px 13px;font-size:13px}.auth-box .btn.primary{width:100%;margin-top:22px;height:44px}.auth-links{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#9c7e4c;margin-top:19px}.auth-links button{font-size:11px;padding:0}.auth-links button:hover{text-decoration:underline}.auth-foot{font-size:10px;color:#b1a38e;margin-top:38px;text-align:center}.auth-box .note{margin-bottom:20px}
.modal-overlay{position:fixed;inset:0;z-index:100;background:#211b146b;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:100%;max-width:620px;max-height:90dvh;background:var(--paper);border:1px solid #d9cdb8;border-radius:17px;box-shadow:0 20px 100px #00000030;overflow:auto}.modal.wide{max-width:840px}.modal-head{position:sticky;top:0;background:#f7f5eff5;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid var(--line);gap:15px;backdrop-filter:blur(8px)}.modal-head h2{font-size:18px;font-family:"Songti SC","SimSun",serif;letter-spacing:1px}.modal-body{padding:25px}.modal-body .form-grid{gap:18px}.modal-foot{padding:17px 25px;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end;background:#f3efe6}.detail-top{display:flex;align-items:center;gap:18px;margin-bottom:22px}.detail-top h2{font-size:25px;font-family:"Songti SC","SimSun",serif;margin-bottom:5px}.detail-top p{font-size:12px;color:#9b886c}.detail-section{margin:21px 0}.detail-section h3{font-size:12px;color:#8f7754;letter-spacing:.5px;margin-bottom:8px}.detail-section p{white-space:pre-wrap;line-height:1.9;font-size:12px;color:#726553}.chooser-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-height:245px;overflow:auto;padding:2px}.chooser{padding:12px 8px;border:1px solid var(--line);border-radius:10px;text-align:center;background:var(--white)}.chooser .avatar{margin:0 auto 7px}.chooser strong{font-size:12px;font-weight:500}.chooser.selected{border-color:#ac8b56;background:#f0e8d9;box-shadow:0 0 0 1px #ac8b56}.chooser-label{font-size:12px;font-weight:550;color:#8d7756;margin:20px 0 10px}.world-choice{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--white);border:1px solid var(--line);border-radius:9px;text-align:left;margin-bottom:9px;width:100%;font-size:12px}.world-choice.selected{border-color:#b69a6d;background:#f0e8d9}.world-choice small{font-size:10px}.world-choice .checkmark{margin-left:auto;color:#a18558}.recovery-code{font:13px Consolas,monospace;word-break:break-all;background:#eee5d5;color:#846439;padding:16px;border-radius:9px;line-height:1.9;user-select:all;margin:20px 0}.toast{position:fixed;bottom:30px;left:calc(50% + 119px);transform:translateX(-50%);z-index:150;background:#31291f;color:#f7eddc;padding:12px 20px;border:1px solid #62533e;border-radius:10px;box-shadow:var(--shadow);font-size:12px;max-width:85vw;animation:fadein .2s}.toast.error{background:#783e32;color:#fff0e8}@keyframes fadein{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}.logo-small{display:none}.skeleton{height:170px;background:linear-gradient(90deg,#eae4d8,#f7f2e8,#eae4d8);border-radius:12px;animation:blink 2s infinite}
@media(min-width:1600px){.character-grid{gap:21px}.card-cover{height:184px}.content{padding-top:40px}.chat-layout{grid-template-columns:minmax(0,1fr) 310px}.chat-aside{padding:28px 25px}}
@media(max-width:1250px){.content{padding:28px}.topbar{padding:0 28px}.character-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-aside{display:none}.chat-aside.open{display:block;position:fixed;right:0;top:76px;bottom:0;width:300px;z-index:40;box-shadow:-20px 0 45px #211b1420}.continue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.continue-grid> :nth-child(3){display:none}.hero-art{right:-70px}.hero-mark{display:none}}
@media(max-width:1000px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding:25px 14px 16px}.nav a.active:before{left:14px}.content{padding:25px 23px}.topbar{padding:0 23px}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-grid{grid-template-columns:1fr}.world-card{display:flex}.world-cover{width:95px;height:auto;min-height:105px;flex:none}.world-cover svg{right:27px;top:32px}.world-body{flex:1}.stats-strip{gap:8px}.stat-compact{padding:13px 12px;gap:9px}.stat-compact .stat-icon{display:none}.usage-cards{grid-template-columns:repeat(2,1fr)}.panel-grid{grid-template-columns:1fr}.auth-story{padding:38px}.auth-copy h1{font-size:35px}.auth-form-wrap{padding:40px}.toast{left:calc(50% + 102px)}}
@media(max-width:760px){:root{font-size:14px}.shell{display:block}.sidebar{transform:translateX(-100%);width:255px;transition:transform .2s}.sidebar.open{transform:none}.mobile-dimmer.open{display:block;position:fixed;inset:0;background:#211b1470;z-index:25}.workspace{width:100%}.topbar{height:62px;padding:0 17px;gap:8px;background:var(--paper);position:sticky;top:0;z-index:20}.mobile-toggle{display:inline-flex;margin-right:5px}.topbar-key{display:none}.topbar-actions{gap:5px}.topbar .pill{font-size:10px;padding:4px 8px}.breadcrumb{gap:4px;font-size:11px}.content{padding:24px 17px 90px}.page-heading{gap:12px;margin-bottom:21px;align-items:flex-start}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}.page-heading>.row{flex-wrap:wrap;justify-content:flex-end}.page-heading .btn{font-size:11px;padding:7px 10px;min-height:35px}.hero{padding:24px 23px;min-height:190px;margin-bottom:23px}.hero h1{font-size:27px;margin:12px 0}.hero p{font-size:12px;max-width:280px}.hero-art{right:-200px;top:-25px}.hero .eyebrow{font-size:9px;letter-spacing:2px}.stats-strip{gap:8px;margin-bottom:24px}.stat-compact{padding:13px 11px}.stat-compact strong{font-size:18px}.stat-compact small{font-size:9px}.character-grid{gap:12px}.card-cover{height:138px}.card-body{padding:13px}.card-body h3{font-size:18px}.card-subtitle{font-size:10px;line-height:1.8}.card-summary{font-size:11px;margin:10px 0;min-height:40px}.card-tags{gap:4px}.card-tags .tag{font-size:9px;padding:2px 5px}.card-bottom .icon{display:none}.cover-caption{font-size:8px}.continue-grid{grid-template-columns:1fr}.continue-grid> :nth-child(3){display:flex}.continue-card{padding:13px}.continue-card strong{font-size:12px}.section-heading h2{font-size:16px}.section-heading{margin-top:24px}.library-tools{align-items:stretch;flex-direction:column;gap:12px}.searchbar{max-width:none}.tabs{align-self:flex-start;gap:2px}.tabs button{padding:6px 12px}.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;background:#fcfaf5f5;border-top:1px solid var(--line);padding:8px 8px max(9px,env(safe-area-inset-bottom));backdrop-filter:blur(10px)}.mobile-bottom a{flex:1;text-align:center;display:flex;align-items:center;flex-direction:column;gap:4px;color:#afa18c;font-size:9px}.mobile-bottom a.active{color:#8d6939}.mobile-bottom svg{width:19px;height:19px}.chat-layout{height:calc(100dvh - 62px);display:flex;flex-direction:column}.chat-column{height:100%;flex:1}.chat-header{padding:14px 16px;gap:8px}.chat-header h2{font-size:14px}.chat-header p{font-size:10px}.chat-header .avatar{width:35px;height:35px;border-radius:10px}.chat-header .icon-button{width:30px;height:32px}.chat-header .row{gap:8px}.messages{padding:20px 16px 12px}.message{gap:9px;margin-bottom:23px}.message>.avatar{width:30px;height:30px;border-radius:9px}.message>.avatar svg{width:18px;height:18px}.message-text{font-size:13px}.message.user{margin-left:20px}.message.user .message-text{padding:11px 14px}.message-body{max-width:calc(100% - 39px)}.message-label{font-size:9px}.message-actions{opacity:1}.message-actions button{font-size:9px}.scene{font-size:11px;padding:15px 12px;margin-bottom:24px}.composer-wrap{padding:9px 12px max(10px,env(safe-area-inset-bottom))}.composer textarea{font-size:14px;min-height:56px;padding:12px 13px 3px}.composer-footer small{font-size:9px}.composer-note{font-size:8px;margin-top:7px}.chat-aside.open{top:62px;width:min(330px,90vw)}.archive-row{padding:13px;gap:10px;flex-wrap:wrap}.archive-actions{margin-left:auto}.archive-row p{font-size:10px}.archive-row .btn{font-size:10px;padding:5px 8px}.panel{padding:18px}.panel-grid{gap:16px}.form-grid{grid-template-columns:1fr;gap:15px}.usage-cards{gap:10px;margin-bottom:17px}.usage-card{padding:15px}.usage-card strong{font-size:23px}.usage-card small{font-size:10px}.setting-tabs{display:flex;width:100%;overflow:auto;flex-wrap:nowrap}.setting-tabs button{white-space:nowrap;flex:1;font-size:11px;padding:7px 10px}.table-wrap{margin:0 -6px}.auth-shell{grid-template-columns:1fr;min-height:100dvh}.auth-story{padding:27px 26px 30px;min-height:250px;display:block}.auth-story .brand{padding-bottom:0}.auth-story .brand-mark{width:34px;height:36px}.auth-story .brand-title{font-size:17px}.auth-copy{margin-top:23px}.auth-copy h1{font-size:25px;line-height:1.4;letter-spacing:2px;margin:9px 0}.auth-copy h1 br{display:none}.auth-copy p{font-size:11px;line-height:1.9;max-width:320px}.auth-copy .eyebrow,.auth-story-foot{display:none}.auth-form-wrap{padding:32px 26px 40px;align-items:flex-start}.auth-box{max-width:400px}.auth-box h2{font-size:22px}.auth-box .auth-intro{margin-bottom:23px}.auth-box .field{margin-bottom:16px}.auth-box .auth-foot{margin-top:25px}.modal-overlay{padding:12px}.modal{max-height:94dvh;border-radius:13px}.modal-head{padding:17px 18px}.modal-head h2{font-size:17px}.modal-body{padding:18px}.modal-foot{padding:14px 18px}.chooser-grid{grid-template-columns:repeat(4,1fr);gap:7px}.chooser{padding:9px 5px}.chooser .avatar{width:32px;height:32px}.chooser strong{font-size:10px}.chooser-label{margin-top:16px}.detail-top h2{font-size:22px}.toast{left:50%;bottom:84px}.chat-page .toast{bottom:140px}.user-admin-row{gap:10px;flex-wrap:wrap}.user-admin-row .row:last-child{margin-left:auto}.bar-chart{gap:7px}.bar-item small,.bar-item .bar-value{font-size:8px}.connection-banner{font-size:10px}.btn{min-height:39px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.memory-close{display:none}.chat-layout.without-aside{grid-template-columns:minmax(0,1fr)}.chat-aside.collapsed{display:none}@media(max-width:1250px){.memory-close{display:inline-flex}}
.subscription-intro{margin-bottom:20px}.subscription-intro .eyebrow{display:block;margin-bottom:8px}.subscription-intro .helper{margin:14px 0 18px;max-width:780px}.subscription-hint{font-size:12px}.subscription-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.subscription-card{display:flex;flex-direction:column;padding:22px;min-width:0;border-top:3px solid #b99a6a}.subscription-card:nth-child(3n+2){border-top-color:#a59bb7}.subscription-card:nth-child(3n){border-top-color:#7c9b96}.subscription-number{font-size:13px;letter-spacing:2px;color:var(--muted)}.subscription-card h2{margin:18px 0 20px;overflow-wrap:anywhere}.subscription-model{padding:16px;background:#f3eee5;border-radius:10px;margin-bottom:18px}.subscription-model small,.subscription-model strong,.subscription-actual small,.subscription-actual code,.subscription-prices small,.subscription-prices span{display:block}.subscription-model strong{font-size:19px;margin-top:5px;color:var(--accent-dark);overflow-wrap:anywhere}.subscription-actual code{font-family:Consolas,monospace;font-size:12px;margin:6px 0;overflow-wrap:anywhere}.subscription-prices{margin:18px 0;font-size:12px}.subscription-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}.subscription-current{margin-bottom:20px;display:flex;gap:28px;align-items:center;flex-wrap:wrap}.subscription-current strong{display:block;font-size:17px;margin-top:2px}.subscription-current .helper{margin:0;flex:1;min-width:220px}.topbar-actions .pill{max-width:240px;overflow:hidden;text-overflow:ellipsis}.chat-header p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subscription-card .tag{max-width:100%;overflow-wrap:anywhere}@media(max-width:1100px){.subscription-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.subscription-grid{grid-template-columns:1fr;gap:14px}.subscription-card{padding:20px}.subscription-current{gap:16px}.subscription-intro .row.between{align-items:flex-start}.subscription-intro h2{font-size:18px}.topbar-actions .pill{max-width:150px}.subscription-actions .btn{min-height:38px}}
