@charset "UTF-8";:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#35443c;background:#f7f5f0;font-size:14px;line-height:1.6;font-synthesis:none;--paper:#f7f5f0;--ink:#35443c;--sage:#62796c;--sage-dark:#4d6658;--muted:#8b928a;--line:#e5e7df;--terracotta:#ba7d62;--app-height:100dvh;--serif:"Songti SC","Noto Serif CJK SC","SimSun",Georgia,serif}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,input,textarea,select{font:inherit}button{cursor:pointer}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button{color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #a8b6a4;outline-offset:4px}button svg{width:19px;height:19px;flex-shrink:0}button{border:0}input,textarea,select{width:100%;color:var(--ink);background:#fffefb;border:1px solid #dedfd5;border-radius:10px;padding:12px 14px;outline:none;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:#879b88;box-shadow:0 0 0 3px #62796c10}input::placeholder,textarea::placeholder{color:#a1a49b}textarea{resize:vertical;line-height:1.75}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:550;letter-spacing:.02em}label+label{margin-top:18px}a{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:500}button.primary,.primary{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:13px 22px;background:var(--sage);color:#fffef9;border:1px solid var(--sage);border-radius:10px;min-height:48px;transition:background .2s,transform .2s;white-space:nowrap}.primary:hover{background:var(--sage-dark)}.primary:active{transform:translateY(1px)}.full{width:100%}.outline{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #d9ded2;background:transparent;border-radius:9px;padding:10px 14px;font-size:12px;min-height:42px}.outline:hover{border-color:#99ab98;background:#eff2ea}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;padding:6px 2px;color:var(--sage);font-size:12px}.text-button:hover{color:#354b3d}.text-button svg{width:15px;height:15px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;padding:8px;border-radius:9px;background:none;color:#7d8a7e}.icon-button:hover{background:#e9eee5;color:var(--sage-dark)}.subtle{color:var(--muted);font-size:13px;line-height:1.85}.eyebrow{display:block;font-size:9px;letter-spacing:2.5px;font-weight:600;color:#96a38f}.form-error{color:#ac6956;font-size:12px;line-height:1.6;min-height:0;margin:14px 0}.form-error:empty{display:none}.field-hint{color:#969b91;font-size:11px;line-height:1.85;margin:9px 0 17px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.danger{color:#ac7b6c}.danger:hover{color:#a05c48}.danger-button{background:#b37d68;color:#fff;border-radius:9px;padding:12px 20px}.brand{display:flex;align-items:center;text-decoration:none;gap:12px;font-family:var(--serif);font-size:23px;line-height:1.1;letter-spacing:2px}.brand small{display:block;font-size:9px;font-family:inherit;letter-spacing:3px;margin-top:8px;color:#96a38e}.brand-mark{display:flex;align-items:center;justify-content:center;width:40px;height:46px;background:#62796c;color:#f7f5f0;border-radius:20px 20px 7px 7px;font-family:var(--serif);font-size:27px;line-height:1;font-weight:400;letter-spacing:0}.avatar{position:relative;display:flex;align-items:center;justify-content:center;width:43px;height:47px;border-radius:17px 17px 9px 9px;background:#e2e8da;color:#718169;font-family:var(--serif);font-size:23px;flex-shrink:0;overflow:hidden}.avatar:before{content:"";position:absolute;left:5px;right:-13px;bottom:-17px;height:35px;background:#a5b29830;border-radius:50%;transform:rotate(-20deg)}.avatar i{position:absolute;width:3px;height:3px;border-radius:50%;background:#a1ad8b;right:8px;top:8px}.avatar.apricot{background:#f0dfcf;color:#a78266}.avatar.lavender{background:#e9e3ed;color:#8d7f98}.avatar.blue{background:#e1e8ec;color:#7b93a0}.avatar-large{width:115px;height:143px;border-radius:65px 65px 8px 8px;font-size:60px;background:#dae3cd}.avatar-large i{width:5px;height:5px;right:19px;top:21px}.avatar-large:before{height:86px;bottom:-38px;left:-20px}.boot-screen{height:var(--app-height);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;font-family:var(--serif);font-size:42px;letter-spacing:8px}.boot-screen span{font-size:12px;letter-spacing:4px;color:#98a18f}.auth-page{display:grid;grid-template-columns:minmax(380px,47%) 1fr;min-height:var(--app-height);background:#fbfaf6}.auth-visual{background:#ecefe4;position:relative;display:flex;flex-direction:column;min-height:760px;overflow:hidden;padding:45px 55px}.auth-visual .brand{position:relative;z-index:2}.auth-panel{display:flex;align-items:center;justify-content:center;padding:60px 55px}.auth-form-wrap{width:100%;max-width:350px}.auth-form-wrap h1{font-family:var(--serif);font-size:27px;letter-spacing:1px;line-height:1.6;margin:16px 0 14px}.auth-form-wrap>.subtle{font-size:12px;max-width:330px;margin-bottom:32px;color:#92988d}.stacked-form label{font-size:12px}.stacked-form input{background:#fbfaf6;border-radius:7px;padding:13px 14px}.stacked-form .primary{margin-top:24px}.password-wrap{display:block;position:relative}.password-wrap input{padding-right:46px}.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);background:none;padding:10px;line-height:1;color:#a1a997}.password-toggle svg{width:16px;height:16px}.auth-secondary{margin:21px auto 0;display:flex;color:#919b87;font-size:11px}.auth-tip{font-size:10px;line-height:1.8;color:#a2a799;margin:18px 0}.privacy-note{display:flex;gap:10px;font-size:10px;line-height:1.9;color:#a0a894;border-top:1px solid #e7e9df;padding-top:23px;margin-top:32px}.privacy-note svg{width:13px;height:16px;flex-shrink:0;margin-top:3px}.mobile-brand{display:none}.preview-ribbon{height:31px;display:flex;align-items:center;justify-content:center;gap:20px;color:#82876f;background:#e9eddf;font-size:10px;letter-spacing:.4px;border-bottom:1px solid #dfe4d5}.preview-ribbon button{font-size:10px;color:#526b57;padding:0;background:none}.app-shell{display:grid;grid-template-columns:236px minmax(360px,1fr) 292px;height:var(--app-height);max-width:1800px;margin:auto;overflow:hidden;background:var(--paper)}.has-preview .app-shell{height:calc(var(--app-height) - 31px)}.app-shell.no-story{grid-template-columns:236px minmax(360px,1fr)}.sidebar{display:flex;flex-direction:column;background:#eef0e7;border-right:1px solid #e3e6db;min-height:0;padding:30px 17px 0}.sidebar-brand{display:flex;justify-content:space-between;align-items:center;padding:0 13px;margin-bottom:29px}.sidebar-brand .icon-button{display:none}.sidebar .brand{font-size:25px;gap:11px}.sidebar .brand small{font-size:9px;letter-spacing:1px;margin-top:10px;color:#929d85}.new-story-button{display:flex;align-items:center;justify-content:center;gap:13px;min-height:45px;background:#62796c;color:#fbfaf5;border-radius:9px;font-size:12px;margin-bottom:30px}.new-story-button:hover{background:#536c5c}.new-story-button svg{width:16px;height:16px}.nav-label{display:flex;align-items:center;gap:9px;padding:0 11px;color:#919b85;font-size:10px;letter-spacing:1px;margin-bottom:16px}.nav-label svg{width:13px;height:13px}.nav-label>span{margin-left:auto;font-size:9px;letter-spacing:1px}.session-list{flex:1;min-height:0;overflow-y:auto;margin:0 -3px;padding:0 3px}.session-item{width:100%;display:flex;align-items:center;gap:11px;background:none;border-radius:9px;padding:13px 10px;position:relative;text-align:left;margin-bottom:5px;transition:background .2s}.session-item:hover{background:#e6ebdf}.session-item.active{background:#e1e7d8}.session-item .avatar{width:33px;height:37px;font-size:18px;border-radius:13px 13px 6px 6px}.session-item>span:not(.avatar){flex:1;min-width:0}.session-item strong{display:block;font-size:12px;font-weight:500;margin-bottom:4px;color:#5c6b56;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-item small{display:block;color:#9ba18d;font-size:9px;max-width:136px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-item.active>i{width:4px;height:4px;border-radius:50%;background:#8b9d76;flex-shrink:0}.list-empty{color:#a2aa94;font-size:11px;padding:10px 14px;line-height:2}.sidebar-bottom{padding-top:15px;margin-top:auto}.side-action{display:flex;align-items:center;gap:12px;width:100%;background:none;text-align:left;color:#8c977e;padding:10px 12px;font-size:11px}.side-action svg{width:15px;height:15px}.side-action span{font-size:9px;margin-left:auto;color:#a5ae97}.side-action:hover{color:#536950}.profile-row{display:flex;align-items:center;gap:10px;padding:22px 9px 24px;border-top:1px solid #dfe4d5;margin-top:15px}.profile-avatar{width:30px;height:30px;background:#e0e4d5;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#879379;font-size:11px}.profile-row>span{flex:1;min-width:0}.profile-row strong{font-size:10px;font-weight:500;display:block;color:#718064;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-row small{font-size:8px;color:#a7ae99}.profile-row .icon-button{width:25px;height:25px;padding:5px}.chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:#faf9f5}.chat-header{display:flex;align-items:center;gap:13px;min-height:91px;padding:17px 31px;border-bottom:1px solid #e9e9e1;background:#faf9f5;flex-shrink:0}.chat-header>.icon-button:first-child{display:none}.chat-header>.avatar{width:35px;height:41px;font-size:20px;border-radius:16px 16px 8px 8px}.chat-title{min-width:0}.chat-title h1{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:18px;letter-spacing:1px;line-height:1.5;margin:0}.ai-badge{font-size:8px;letter-spacing:0;font-family:-apple-system,BlinkMacSystemFont,sans-serif;padding:1px 5px;border:1px solid #dbe1d2;color:#98a28b;border-radius:4px}.chat-title p{font-size:9px;color:#a7ac9b;letter-spacing:.3px;margin:4px 0 0}.chat-title p>span{color:#b3b6a8;margin-left:6px}.header-tools{display:flex;margin-left:auto;gap:3px}.header-tools .icon-button{width:31px;height:31px;padding:7px}.header-tools [data-action=story]{display:none}.connect-banner{display:flex;gap:8px;align-items:center;min-height:39px;padding:10px 28px;font-size:10px;background:#eeefe4;color:#8f9a7b;text-align:left;border-bottom:1px solid #e6e8db;flex-shrink:0}.connect-banner>svg{width:13px;height:13px}.connect-banner>span{display:flex;align-items:center;gap:8px;margin-left:auto;white-space:nowrap;color:#7d8e69}.connect-banner>span svg{width:12px;height:12px}.message-scroll{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:0 32px 30px;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#dce1d3 transparent}.chapter-intro{text-align:center;margin:27px auto 35px;max-width:420px}.chapter-intro>span{font-size:8px;letter-spacing:1px;color:#b1b5a5}.chapter-intro>div{margin:21px auto 0;position:relative}.chapter-intro>div>span{display:inline-flex;align-items:center;justify-content:center;background:#f0eee4;width:32px;height:32px;border-radius:50%;font-size:18px;color:#ada98a;margin-bottom:9px}.chapter-intro h2{font-family:var(--serif);font-size:18px;letter-spacing:3px;margin:0 0 8px;color:#7e896f}.chapter-intro p{font-size:10px;color:#b0b39f;line-height:1.9;margin:0}.messages{max-width:780px;margin:auto}.message{display:flex;gap:12px;margin-bottom:28px;align-items:flex-start;animation:appear .2s ease-out}.message>.avatar{width:29px;height:34px;font-size:17px;border-radius:12px 12px 6px 6px;margin-top:21px}.message-main{min-width:0;max-width:calc(100% - 70px)}.message-byline{display:flex;align-items:center;gap:10px;font-size:9px;color:#8e9b80;margin-bottom:8px;line-height:1}.message-byline>span{font-size:8px;color:#b3b9a8}.bubble{padding:15px 18px;border-radius:0 13px 13px;background:#eef1e8;line-height:1.95;color:#606e53;font-size:12px;border:1px solid #e5eadc}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.message.own{justify-content:flex-end;margin-top:26px}.own .message-byline{justify-content:flex-end}.own .bubble{background:#f3ece3;border:1px solid #ece4d8;border-radius:13px 0 13px 13px;color:#9a816a}.message-status{font-size:9px;line-height:1.8;color:#b28b73;margin-top:6px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.message-status:empty{display:none}.message-status .text-button{font-size:9px;padding:0}.message-status .text-button svg{width:11px;height:11px}.typing-dots{display:inline-flex;align-items:center;gap:4px;height:18px;padding:0 4px}.typing-dots i{width:4px;height:4px;background:#a1af94;border-radius:50%;animation:pulse 1s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}.composer-wrap{flex-shrink:0;padding:17px 31px 15px;border-top:1px solid #e9eae2;background:#faf9f5}.composer-wrap form{display:flex;align-items:flex-end;gap:13px;background:#fffefa;border:1px solid #e0e3d6;border-radius:12px;padding:12px 12px 12px 17px;box-shadow:0 4px 16px #5e714509}.composer-wrap textarea{border:0;background:transparent;box-shadow:none;padding:3px 0;max-height:132px;resize:none;line-height:1.7;font-size:12px;min-height:29px;overflow-y:auto}.composer-wrap textarea::placeholder{color:#b1b6a4;font-size:11px}.send-button{display:flex;align-items:center;justify-content:center;background:#718768;color:#fffef8;border-radius:9px;width:34px;height:34px;flex-shrink:0;padding:8px}.send-button:hover{background:#5a7553}.send-button svg{width:17px;height:17px}.stop-button{background:#a08d76}.composer-foot{display:flex;justify-content:space-between;font-size:8px;color:#b3b9a6;padding:10px 2px 0;gap:7px}.composer-foot>span:first-child{display:flex;align-items:center;gap:4px;white-space:nowrap}.composer-foot svg{width:9px;height:9px}.mobile-nav{display:none}.story-panel{background:#f6f6ee;border-left:1px solid #e5e8dc;padding:27px 22px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#dce1d3 transparent}.panel-heading{display:flex;align-items:center;justify-content:space-between;color:#a2ab92;letter-spacing:1px;font-size:10px;margin-bottom:22px}.panel-heading .icon-button{display:none}.character-card{position:relative;overflow:hidden;border-radius:4px 4px 12px 12px;background:#e9eddf;padding:19px 15px 22px;text-align:center;border:1px solid #e0e6d3}.character-no{font-size:6px;letter-spacing:1.3px;color:#a2ac91}.character-portrait{height:159px;position:relative;display:flex;justify-content:center;align-items:center;margin-top:13px}.character-portrait .avatar-large{z-index:2}.portrait-line{position:absolute;width:146px;height:146px;border:1px solid #c4cfb553;border-radius:50%;z-index:1;top:5px;left:50%;transform:translate(-50%)}.portrait-line:before{content:"";position:absolute;width:160px;height:160px;border:1px solid #c4cfb533;border-radius:50%;top:-8px;left:-8px}.portrait-leaf{position:absolute;z-index:3;right:14px;bottom:8px;color:#adb996;transform:rotate(25deg)}.portrait-leaf svg{width:51px;height:51px;stroke-width:.7px}.character-card h2{font-family:var(--serif);font-size:23px;letter-spacing:4px;margin:6px 0 4px;color:#6c7e5d}.character-card p{font-size:9px;color:#9aa68a;letter-spacing:1px;margin:0 0 14px}.tag-row{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.tag-row>span{font-size:7px;background:#f5f6ef88;border:1px solid #dce3cf;padding:2px 5px;border-radius:4px;color:#a1ac8d}.character-card.apricot{background:#f0e9de;border-color:#e9dfd1}.character-card.lavender{background:#ede9ef;border-color:#e3dde8}.character-card.blue{background:#e7eef0;border-color:#dbe6e9}.story-note{padding:26px 2px 0}.story-note .eyebrow{font-size:7px;letter-spacing:2px;color:#aab197}.story-note h3{font-family:var(--serif);font-size:17px;letter-spacing:2px;margin:9px 0 12px;color:#7a8969}.story-note p{font-size:10px;line-height:1.9;color:#a4ac94;margin-bottom:17px;white-space:pre-wrap;overflow-wrap:anywhere}.note-divider{height:1px;background:#e3e8d8;margin:21px 0}.note-label{display:block;font-size:8px;letter-spacing:1px;color:#849875;margin-bottom:8px}.story-note .outline{margin-top:8px;font-size:9px;gap:8px;min-height:38px;padding:9px;border-color:#dfe5d5;color:#8c9f7d}.story-note .outline svg{width:12px;height:12px}.gentle-note{display:flex;align-items:center;gap:10px;margin:25px 0 0;padding:16px 6px;border-top:1px solid #e3e7d9;color:#a6b194}.gentle-note svg{width:24px;height:24px;stroke-width:1}.gentle-note p{font-size:9px;line-height:1.9;margin:0;letter-spacing:.5px}.delete-story{font-size:8px;display:flex;margin:18px auto 0;opacity:.65}.delete-story svg{width:10px;height:10px}.empty-state{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 32px 40px;min-height:0;overflow-y:auto}.empty-state>.eyebrow{font-size:8px;letter-spacing:3px;margin-top:7px}.empty-state h1{font-family:var(--serif);font-size:28px;letter-spacing:2px;margin:20px 0 12px;color:#64775b}.empty-state>p{font-size:12px;color:#a0aa91;line-height:2;margin-bottom:27px}.empty-state .primary{font-size:12px;padding:11px 23px}.empty-presets{display:flex;gap:27px;margin-top:37px}.empty-presets button{background:none;display:flex;align-items:center;gap:9px;color:#a7ae9a;font-size:9px;padding:0}.empty-presets .avatar{width:25px;height:30px;font-size:14px;border-radius:10px 10px 5px 5px}.empty-foot{text-align:center;font-size:8px;color:#b2baa5;padding-bottom:22px;letter-spacing:1px}.header-kicker{font-family:var(--serif);font-size:14px;color:#8a9a7c;letter-spacing:2px}.drawer-backdrop{display:none}.modal-backdrop{position:fixed;inset:0;z-index:30;background:#26352b52;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:30px 20px;animation:appear .15s}.modal{display:flex;flex-direction:column;width:min(100%,510px);max-height:calc(var(--app-height) - 60px);background:#faf9f4;border-radius:17px;box-shadow:0 24px 100px #27392924;overflow:hidden}.modal-wide{width:min(100%,670px)}.modal-header{padding:25px 28px 21px;border-bottom:1px solid #e6e9de;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.modal-header h2{font-family:var(--serif);font-size:23px;letter-spacing:1px;margin:8px 0 0}.modal-header .eyebrow{font-size:7px;letter-spacing:2px}.modal-header .icon-button{align-self:flex-start;margin-right:-6px}.modal>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.modal-body{padding:24px 28px;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#dce1d3 transparent}.modal-body>p{font-size:12px;line-height:1.9}.modal-body label{font-size:11px}.modal-body input,.modal-body textarea,.modal-body select{font-size:12px;background:#fffef9}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:24px;padding:19px 28px;border-top:1px solid #e5e9dc;flex-shrink:0;background:#f6f7ef}.modal-footer .primary{min-height:42px;font-size:12px;gap:15px;padding:10px 20px}.modal-footer .primary svg{width:15px;height:15px}.form-section-title{display:flex;align-items:flex-start;gap:13px;margin:0 0 22px}.form-section-title>span{font-size:10px;color:#a8b199;border:1px solid #dfe5d5;display:flex;align-items:center;justify-content:center;width:27px;height:29px;border-radius:14px 14px 4px 4px;margin-top:1px;flex-shrink:0}.form-section-title h3{font-family:var(--serif);font-size:18px;margin-bottom:5px;letter-spacing:.5px}.form-section-title p{font-size:10px;margin:0;color:#a2aa94}.more-settings+.form-section-title{border-top:1px solid #e4e8d9;padding-top:28px;margin-top:27px}.preset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:25px}.person-preset{display:flex;flex-direction:column;align-items:center;border:1px solid #e0e6d7;border-radius:9px;padding:14px 5px 12px;background:#f6f7ef;gap:7px;transition:all .2s}.person-preset.selected{background:#e9eee0;border-color:#9aab8c;box-shadow:0 0 0 1px #9aab8c22}.person-preset .avatar{width:39px;height:45px;font-size:23px;border-radius:17px 17px 7px 7px}.person-preset strong{font-family:var(--serif);font-weight:500;font-size:13px;letter-spacing:1px}.person-preset small{font-size:7px;color:#9da78e;white-space:nowrap}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:18px}.field-grid.three{grid-template-columns:1fr 80px 1.3fr}.field-grid>label+label{margin-top:0}.slider-field{margin:22px 0}.slider-field>div:first-child{display:flex;align-items:center;justify-content:space-between;font-size:11px}.slider-field output{font-size:10px;color:#91a17e}.slider-field input{appearance:none;height:3px;padding:0;border:0;border-radius:3px;background:#e0e7d5;box-shadow:none;margin:17px 0 9px;cursor:pointer}.slider-field input::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;border:3px solid #f6f8ef;background:#8c9f79;box-shadow:0 0 0 1px #abb99c}.range-captions{display:flex;justify-content:space-between;font-size:8px;color:#a4ae96}.slider-field p{font-size:9px;color:#a4ad97;margin:10px 0 0}.more-settings{margin:19px 0}.more-settings summary{cursor:pointer;font-size:10px;color:#91a17e;padding:5px 0;margin-bottom:10px}.more-settings>label{margin-top:17px}.scene-presets{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:23px}.scene-preset{display:flex;align-items:center;gap:12px;padding:13px 16px;background:#f5f5ec;border:1px solid #e1e6d5;border-radius:8px;text-align:left}.scene-preset.selected{border-color:#a9b499;background:#ecefe1}.scene-preset>span{font-size:22px;color:#b1ad88;line-height:1;width:25px;text-align:center}.scene-preset strong{display:block;font-weight:500;font-family:var(--serif);font-size:14px;letter-spacing:1px}.scene-preset small{display:block;font-size:8px;color:#a5ae93;margin-top:3px}.settings-heading{display:flex;align-items:center;gap:12px;margin:0 0 22px}.settings-heading>svg{color:#b2bc9f;width:29px;height:29px;stroke-width:1}.settings-heading h3{font-family:var(--serif);font-size:18px;letter-spacing:1px;margin:0 0 4px}.settings-heading p{font-size:10px;color:#a4ac94;margin:0}.connection-row{display:flex;align-items:center;gap:13px;margin:17px 0}.connection-row .outline{font-size:10px;white-space:nowrap;min-height:36px;padding:8px 12px}.connection-row .outline svg{width:12px;height:12px}.connection-row>span{font-size:9px;color:#97a584;line-height:1.6}.section-divider{height:1px;background:#e3e7d8;margin:24px 0}.settings-actions{display:flex;flex-wrap:wrap;gap:9px}.settings-actions .outline{font-size:10px;gap:8px}.settings-actions svg{width:13px;height:13px}.settings-heading:not(:first-child){margin-top:25px}.privacy-card{display:flex;align-items:flex-start;gap:11px;padding:15px;background:#edf1e4;border-radius:8px;color:#99a589;font-size:9px;line-height:1.9}.privacy-card svg{width:14px;height:14px;flex-shrink:0;margin-top:3px}.memory-art{display:flex;align-items:center;gap:20px;padding:10px 5px 25px;color:#9cae87}.memory-art svg{width:54px;height:54px;stroke-width:.8}.memory-art p{font-family:var(--serif);font-size:19px;line-height:1.8;letter-spacing:1px;margin:0;color:#849773}.modal .subtle{font-size:11px;margin-bottom:20px}#toast{position:fixed;left:50%;bottom:35px;transform:translate(-50%,15px);z-index:100;max-width:min(500px,calc(100% - 40px));padding:12px 20px;border-radius:10px;background:#465c4ced;color:#f7f9f0;font-size:12px;box-shadow:0 8px 25px #364e3922;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center}#toast.visible{opacity:1;transform:translate(-50%)}@keyframes appear{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media(min-width:1500px){.app-shell{grid-template-columns:258px minmax(360px,1fr) 320px}.app-shell.no-story{grid-template-columns:258px minmax(360px,1fr)}.sidebar{padding-left:22px;padding-right:22px}.story-panel{padding:31px 29px}.chat-header{padding-left:45px;padding-right:45px}.message-scroll{padding-left:48px;padding-right:48px}.composer-wrap{padding-left:45px;padding-right:45px}.chapter-intro{margin-top:40px;margin-bottom:45px}.bubble{font-size:13px;padding:17px 20px}.character-portrait{margin-top:22px;height:180px}.character-card{padding-bottom:25px}}@media(max-width:1100px){.app-shell{grid-template-columns:210px minmax(350px,1fr) 246px}.app-shell.no-story{grid-template-columns:210px minmax(350px,1fr)}.sidebar{padding-left:11px;padding-right:11px}.story-panel{padding:24px 17px}.chat-header{padding-left:23px;padding-right:23px;gap:10px}.message-scroll{padding-left:23px;padding-right:23px}.composer-wrap{padding-left:22px;padding-right:22px}.character-card{padding-left:9px;padding-right:9px}.character-no{font-size:5px;letter-spacing:.9px}.character-card h2{font-size:21px}.tag-row{gap:3px}.tag-row>span{font-size:6px}.chat-title p>span{display:none}.session-item{gap:8px;padding-left:8px}.empty-state h1{font-size:26px}.auth-visual{padding:40px 35px}.auth-panel{padding:50px 35px}}@media(max-width:900px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.story-panel{position:fixed;z-index:22;top:0;right:0;bottom:0;width:300px;transform:translate(100%);transition:transform .2s;padding-top:max(25px,env(safe-area-inset-top));padding-bottom:max(25px,env(safe-area-inset-bottom))}.has-preview .story-panel{top:31px}.story-panel.drawer-open{transform:translate(0)}.panel-heading .icon-button,.header-tools [data-action=story]{display:flex}.drawer-backdrop{display:block;position:fixed;inset:0;z-index:21;background:#273b2b50;backdrop-filter:blur(2px);border:0}.drawer-backdrop:has(+.sidebar.drawer-open){z-index:19}.character-no{font-size:7px;letter-spacing:1px}.character-card h2{font-size:24px}.tag-row>span{font-size:8px}.chat-title p>span{display:inline}.auth-page{grid-template-columns:42% 1fr}.auth-visual{padding:35px 25px;min-height:720px}.auth-panel{padding:40px 30px}.auth-form-wrap h1{font-size:25px}.empty-presets{gap:21px}.modal{border-radius:15px}}@media(max-width:767px){:root{font-size:14px}body{background:#faf9f5}.auth-page{display:block;min-height:var(--app-height);background:#f7f5f0}.auth-visual{display:none}.auth-panel{min-height:var(--app-height);padding:calc(env(safe-area-inset-top) + 35px) 29px calc(env(safe-area-inset-bottom) + 28px);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;max-width:510px;margin:auto}.mobile-brand{display:flex;align-items:center;font-family:var(--serif);font-size:24px;letter-spacing:3px;gap:11px;margin-bottom:43px}.mobile-brand .brand-mark{width:33px;height:40px;font-size:24px}.auth-form-wrap{max-width:none}.auth-form-wrap>.eyebrow{font-size:8px;letter-spacing:2px}.auth-form-wrap h1{font-size:26px;line-height:1.6;letter-spacing:1px;margin-top:15px;margin-bottom:13px}.auth-form-wrap>.subtle{font-size:11px;margin-bottom:27px;max-width:100%}.auth-form-wrap input{font-size:16px;padding:13px 14px;background:#faf9f4}.auth-form-wrap label{font-size:11px}.stacked-form label+label{margin-top:19px}.stacked-form .primary{margin-top:28px;height:49px}.privacy-note{font-size:9px;margin-top:31px;line-height:2}.auth-secondary{font-size:10px;margin-top:20px}.app-shell,.app-shell.no-story{display:flex;height:var(--app-height);width:100%;position:relative}.sidebar{position:fixed;top:0;bottom:0;left:0;width:280px;z-index:22;padding-top:calc(env(safe-area-inset-top) + 29px);padding-bottom:env(safe-area-inset-bottom);transform:translate(-100%);transition:transform .2s}.has-preview .sidebar{top:31px}.sidebar.drawer-open{transform:translate(0)}.sidebar-brand{padding-left:17px;padding-right:6px}.sidebar-brand .icon-button{display:flex}.sidebar .brand{font-size:27px}.sidebar .brand small{font-size:9px}.new-story-button{margin:0 11px 30px;min-height:48px;font-size:13px}.nav-label{padding-left:20px;padding-right:20px}.session-item{padding:15px 17px;gap:12px}.session-item strong{font-size:13px}.session-item small{font-size:10px;max-width:180px}.session-item .avatar{width:38px;height:43px;font-size:22px}.side-action{font-size:12px;padding:12px 20px}.profile-row{padding:22px 17px}.profile-row strong{font-size:11px}.profile-row small{font-size:9px}.chat-panel{width:100%;height:100%;background:#faf9f5}.chat-header{padding:calc(env(safe-area-inset-top) + 12px) 13px 12px;min-height:calc(74px + env(safe-area-inset-top));gap:10px}.chat-header>.icon-button:first-child{display:flex;width:29px;height:34px;padding:6px;color:#a0ab92}.chat-header>.avatar{width:32px;height:38px;font-size:20px;border-radius:14px 14px 6px 6px}.chat-title h1{font-size:18px;letter-spacing:1px;gap:8px}.ai-badge{font-size:7px;padding:1px 4px}.chat-title p{font-size:9px;margin-top:2px;line-height:1.5}.chat-title p>span{display:none}.header-tools{gap:1px}.header-tools .icon-button{width:29px;height:31px;padding:6px}.header-tools [data-action=edit-story]{display:none}.header-tools [data-action=story]{display:flex}.connect-banner{padding:9px 18px;min-height:37px;font-size:9px;gap:7px}.connect-banner>svg{width:12px;height:12px}.connect-banner>span{font-size:8px;gap:4px}.connect-banner>span svg{width:10px;height:10px}.message-scroll{padding:0 18px 20px;scroll-behavior:auto}.chapter-intro{margin:25px auto 28px;max-width:300px}.chapter-intro>span{font-size:8px;letter-spacing:.5px}.chapter-intro>div{margin-top:20px}.chapter-intro>div>span{width:29px;height:29px;font-size:17px;margin-bottom:8px}.chapter-intro h2{font-size:18px;margin-bottom:8px;letter-spacing:3px}.chapter-intro p{font-size:10px;line-height:1.85;letter-spacing:.2px}.message{gap:9px;margin-bottom:23px}.message>.avatar{width:27px;height:32px;font-size:17px;margin-top:22px}.message-main{max-width:calc(100% - 44px)}.message-byline{font-size:9px;gap:8px;margin-bottom:8px}.message-byline>span{font-size:7px}.bubble{padding:13px 14px;font-size:13px;line-height:1.85;border-radius:0 12px 12px}.own .bubble{border-radius:12px 0 12px 12px}.message.own{margin-top:25px}.message-status{font-size:8px;gap:5px}.message-status .text-button{font-size:8px}.message-status .text-button svg{width:10px;height:10px}.composer-wrap{padding:12px 15px 9px;border-color:#e5e7dd}.composer-wrap form{border-radius:11px;padding:9px 9px 9px 13px;gap:10px}.composer-wrap textarea{font-size:16px;min-height:28px;line-height:1.6;padding:2px 0}.composer-wrap textarea::placeholder{font-size:11px;line-height:2}.send-button{width:33px;height:33px;border-radius:8px;padding:7px}.send-button svg{width:17px;height:17px}.composer-foot{font-size:6px;padding:7px 0 0;line-height:1.6}.composer-foot svg{width:8px;height:8px}.mobile-nav{display:flex;align-items:center;justify-content:space-around;flex-shrink:0;padding:8px 25px calc(7px + env(safe-area-inset-bottom));min-height:53px;border-top:1px solid #e9ebe0;background:#f5f6ee}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:8px;color:#a8b197;min-width:55px;background:none}.mobile-nav button svg{width:18px;height:18px;stroke-width:1.35}.mobile-nav button.active{color:#6e865e}.story-panel{width:min(310px,88vw);padding:calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 28px)}.panel-heading,.story-note p{font-size:11px}.story-note h3{font-size:20px}.story-note .eyebrow{font-size:8px}.note-label{font-size:9px}.story-note .outline{font-size:11px;min-height:42px}.story-note .outline svg{width:14px;height:14px}.character-card h2{font-size:25px}.character-card p{font-size:10px}.tag-row>span{font-size:8px}.character-no{font-size:6px}.character-card{padding:20px 15px 24px}.gentle-note p{font-size:10px}.delete-story{font-size:9px}.empty-state{padding:0 20px 25px;justify-content:center}.empty-state h1{font-size:23px;letter-spacing:1px;margin:20px 0 13px;white-space:nowrap}.empty-state>.eyebrow{font-size:7px}.empty-state>p{font-size:11px;margin-bottom:25px}.empty-state .primary{font-size:12px;min-height:46px}.empty-presets{gap:20px;margin-top:31px}.empty-presets button{font-size:8px;gap:6px}.empty-presets .avatar{width:22px;height:27px;font-size:13px}.empty-foot{font-size:7px;padding-bottom:calc(env(safe-area-inset-bottom) + 21px)}.header-kicker{font-size:13px;letter-spacing:1px}.preview-ribbon{height:31px;justify-content:space-between;padding:0 12px;gap:4px;font-size:7px;letter-spacing:0}.preview-ribbon button{font-size:7px;white-space:nowrap}.modal-backdrop{padding:calc(env(safe-area-inset-top) + 12px) 0 0;align-items:flex-end;backdrop-filter:blur(3px)}.modal{width:100%;border-radius:20px 20px 0 0;max-height:calc(var(--app-height) - env(safe-area-inset-top) - 12px);box-shadow:0 -10px 80px #21392322}.modal-header{padding:21px 23px 19px}.modal-header h2{font-size:23px;letter-spacing:0;margin-top:9px}.modal-header .eyebrow{font-size:6px;letter-spacing:1.8px}.modal-body{padding:23px}.modal-body label{font-size:11px}.modal-body input,.modal-body textarea,.modal-body select{font-size:16px;padding:11px 12px;border-radius:8px}.modal-body select{font-size:14px;min-height:46px}.modal-footer{padding:16px 23px calc(env(safe-area-inset-bottom) + 16px);gap:20px}.modal-footer .primary{font-size:12px;min-height:45px;padding:11px 18px}.modal-footer .text-button{font-size:11px}.form-section-title{gap:10px;margin-bottom:20px}.form-section-title h3{font-size:18px;letter-spacing:0}.form-section-title p{font-size:9px}.form-section-title>span{font-size:9px;width:23px;height:27px}.preset-grid{gap:7px;grid-template-columns:repeat(2,1fr);margin-bottom:24px}.person-preset{padding:14px 8px;flex-direction:row;flex-wrap:wrap;column-gap:10px;row-gap:3px;justify-content:center;align-content:center}.person-preset .avatar{width:31px;height:37px;font-size:20px;grid-row:span 2}.person-preset strong{font-size:14px;letter-spacing:1px}.person-preset small{font-size:8px;flex-basis:100%;text-align:center;margin-top:4px}.field-grid.three{grid-template-columns:1fr 66px 1.1fr;gap:9px}.field-grid label{font-size:10px}.field-grid input{font-size:14px;padding:11px 8px}.slider-field{margin:23px 0}.slider-field>div:first-child{font-size:12px}.slider-field output{font-size:11px}.slider-field input{height:4px;margin-top:20px;padding:0}.slider-field input::-webkit-slider-thumb{width:20px;height:20px;border-width:4px}.range-captions,.slider-field p{font-size:9px}.more-settings summary{font-size:11px}.scene-presets{gap:7px}.scene-preset{gap:9px;padding:13px 11px}.scene-preset strong{font-size:14px;letter-spacing:0}.scene-preset small{font-size:8px}.scene-preset>span{font-size:21px;width:20px}.field-hint{font-size:10px;line-height:1.9}.settings-heading h3{font-size:19px}.settings-heading p{font-size:10px}.connection-row{gap:10px}.connection-row>span{font-size:9px}.settings-actions .outline{font-size:10px;padding:10px 12px;min-height:43px}.privacy-card{font-size:9px;padding:14px}.memory-art{gap:16px}.memory-art p{font-size:20px}.modal .subtle{font-size:11px}.modal-body>p{font-size:12px}#toast{bottom:calc(env(safe-area-inset-bottom) + 85px);font-size:11px;padding:12px 18px;max-width:calc(100% - 36px);width:max-content}.has-preview .story-panel,.has-preview .sidebar{height:calc(var(--app-height) - 31px)}}@media(max-width:360px){.auth-panel{padding-left:23px;padding-right:23px}.auth-form-wrap h1{font-size:24px}.chat-header{gap:7px;padding-left:10px;padding-right:10px}.chat-title h1{font-size:17px}.chat-title p{font-size:8px}.connect-banner{padding-left:14px;padding-right:14px;font-size:8px}.connect-banner>span{font-size:7px}.message-scroll{padding-left:13px;padding-right:13px}.bubble{font-size:12px;padding:12px}.chapter-intro{max-width:260px}.chapter-intro p{font-size:9px}.empty-state h1{font-size:21px}.empty-presets{gap:13px}.empty-presets button{gap:5px}.modal-body{padding:20px}.modal-header{padding-left:20px;padding-right:20px}.modal-header h2{font-size:21px}.modal-footer{padding-left:20px;padding-right:20px}.scene-preset{padding:12px 9px;gap:7px}.scene-preset strong{font-size:13px}.field-grid.three{grid-template-columns:1fr 60px 1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}:root{font-size:16px;--muted:#747e72}body{overflow-x:hidden}input,textarea,select{font-size:16px}label,.stacked-form label,.modal-body label,.field-grid label{font-size:14px}.auth-form-wrap>.subtle,.auth-quote>span,.auth-tip,.privacy-note,.field-hint,.auth-secondary,.preview-entry{font-size:12px;color:#737e6c}.auth-form-wrap>.subtle{font-size:14px}.preview-entry{display:flex;width:fit-content;margin:17px auto 0;min-height:36px;text-decoration:underline;text-underline-offset:4px}.eyebrow,.nav-label,.nav-label>span,.brand small,.sidebar .brand small,.profile-row small,.profile-row strong,.side-action span,.session-item small,.list-empty,.character-no,.character-card p,.tag-row>span,.note-label,.story-note .eyebrow,.gentle-note p,.delete-story,.chapter-intro>span,.chapter-intro p,.message-byline,.message-byline>span,.message-status,.message-status .text-button,.composer-foot,.empty-foot,.empty-presets button,.form-section-title p,.form-section-title>span,.person-preset small,.scene-preset small,.range-captions,.slider-field p,.more-settings summary,.settings-heading p,.connection-row>span,.privacy-card,.modal .subtle{font-size:12px}.sidebar .brand small,.profile-row small,.session-item small,.side-action,.nav-label,.list-empty{color:#74816a}.session-item strong,.side-action,.new-story-button,.profile-row strong{font-size:14px}.session-item small{max-width:145px}.chat-title h1{font-size:22px}.chat-title p,.chat-title p>span{font-size:12px;color:#7d8775}.ai-badge{font-size:11px;color:#66785d;white-space:nowrap}.connect-banner{font-size:13px;color:#647657;gap:9px}.connect-banner>span{font-size:12px}.bubble{font-size:16px;line-height:1.9;overflow-wrap:anywhere}.message-main{min-width:0}.message-byline,.message-byline>span{color:#758269}.message-status{line-height:1.7}.composer-wrap textarea{font-size:16px}.composer-wrap textarea::placeholder{font-size:14px}.composer-foot{color:#7c8971;gap:12px;line-height:1.7;flex-wrap:wrap}.composer-foot>span{overflow-wrap:anywhere}.chapter-intro p{color:#7b8671;line-height:1.9}.story-note p{font-size:14px;color:#77856a;line-height:1.9;overflow-wrap:anywhere}.story-note .outline{font-size:14px}.character-no{letter-spacing:.7px;white-space:normal}.tag-row{flex-wrap:wrap}.tag-row>span{color:#6f7e60;white-space:nowrap}.empty-state>p,.empty-state .primary,.modal-body>p,.modal .subtle{font-size:14px}.empty-state h1{white-space:normal;text-wrap:balance;line-height:1.65}.empty-presets{flex-wrap:wrap;justify-content:center}.modal-body input,.modal-body textarea,.modal-body select{font-size:16px}.modal .subtle,.field-hint,.privacy-card,.form-section-title p,.settings-heading p{color:#77836c}.modal-body select{min-height:46px}.slider-field>div:first-child{font-size:14px}.slider-field output{font-size:13px}.modal-header .eyebrow{font-size:11px;letter-spacing:1.6px}.person-preset small{white-space:normal;line-height:1.6}.connection-row .outline,.settings-actions .outline,.modal-footer .text-button,.modal-footer .primary{font-size:14px}.modal-footer .primary{min-height:46px}.icon-button{width:40px;height:40px}.modal-header .icon-button{width:44px;height:44px;flex-shrink:0}input[type=range]{min-height:26px;background:linear-gradient(#e0e7d5,#e0e7d5) center/100% 4px no-repeat;margin-top:8px;margin-bottom:3px}input[type=range]::-webkit-slider-thumb{width:22px;height:22px}@media(max-width:1100px){.character-no{font-size:10px}.tag-row>span{font-size:11px}}@media(max-width:900px){.story-panel{width:min(330px,90vw)}.character-no{font-size:11px}.tag-row>span{font-size:12px}.story-note p,.story-panel .panel-heading{font-size:14px}}@media(max-width:767px){.auth-form-wrap>.subtle{font-size:14px}.auth-form-wrap label{font-size:14px}.auth-form-wrap input{font-size:16px}.auth-tip,.auth-secondary,.privacy-note{font-size:12px}.auth-form-wrap h1{font-size:27px}.auth-panel{padding-left:24px;padding-right:24px}.sidebar{width:min(300px,90vw)}.sidebar-brand .brand small{font-size:12px}.session-item strong{font-size:15px}.session-item small{font-size:12px;max-width:190px}.side-action{font-size:14px}.profile-row strong,.profile-row small{font-size:12px}.chat-header{padding-left:10px;padding-right:10px;gap:8px;min-height:calc(78px + env(safe-area-inset-top))}.chat-header>.icon-button:first-child,.header-tools .icon-button{width:40px;height:40px;padding:9px}.chat-header>.avatar{width:32px;height:38px}.chat-title{flex:1}.chat-title h1{font-size:20px;gap:6px;letter-spacing:0}.chat-title p{font-size:12px}.ai-badge{font-size:10px;padding:1px 4px}.chat-title p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.connect-banner{font-size:12px;line-height:1.8;padding:10px 15px}.connect-banner>span{font-size:12px}.connect-banner>svg{display:none}.message-scroll{padding-left:14px;padding-right:14px}.message-main{max-width:calc(100% - 37px)}.message{gap:8px}.message-byline{font-size:12px;flex-wrap:wrap;gap:6px}.message-byline>span{font-size:11px}.bubble{font-size:16px;padding:12px 14px;line-height:1.9}.message-status,.message-status .text-button{font-size:12px}.chapter-intro>span{font-size:11px}.chapter-intro p{font-size:12px}.chapter-intro h2{font-size:21px}.composer-wrap{padding:10px 12px 8px}.composer-wrap form{gap:8px;padding:8px 8px 8px 12px}.composer-wrap textarea{font-size:16px;line-height:1.65}.composer-wrap textarea::placeholder{font-size:13px;line-height:1.9}.send-button{width:42px;height:42px;padding:10px}.send-button svg{width:21px;height:21px}.composer-foot{font-size:10px;gap:8px;padding-top:6px}.composer-foot>span:first-child{display:none}.mobile-nav{min-height:64px;padding:7px 18px calc(7px + env(safe-area-inset-bottom))}.mobile-nav button{min-width:70px;min-height:46px;font-size:12px;gap:3px;color:#7d8e6b}.mobile-nav button svg{width:21px;height:21px}.empty-state h1{font-size:25px}.empty-state>p{font-size:14px}.empty-state .primary{font-size:15px}.empty-presets{column-gap:16px;row-gap:14px}.empty-presets button{font-size:12px}.empty-foot{font-size:11px;padding-bottom:16px}.preview-ribbon{height:auto;min-height:38px;font-size:10px;line-height:1.6;padding:5px 10px;gap:8px}.preview-ribbon button{font-size:10px;min-height:28px}.has-preview .app-shell{height:calc(var(--app-height) - var(--preview-height,38px))}.has-preview .sidebar,.has-preview .story-panel{top:var(--preview-height,38px);height:calc(var(--app-height) - var(--preview-height,38px))}.modal-header h2{font-size:25px}.modal-header{padding:17px 19px}.modal-header .eyebrow{font-size:10px;letter-spacing:1px}.modal-body{padding:20px}.modal-body label,.field-grid label{font-size:14px}.modal-body input,.modal-body textarea,.modal-body select,.field-grid input{font-size:16px}.form-section-title h3{font-size:20px}.form-section-title p{font-size:12px}.field-grid.three{grid-template-columns:minmax(0,1fr) 88px;gap:12px}.field-grid.three>label:last-child{grid-column:1/-1}.person-preset small,.scene-preset small,.field-hint,.slider-field p,.range-captions,.more-settings summary,.connection-row>span,.privacy-card{font-size:12px}.scene-preset strong,.person-preset strong{font-size:16px}.scene-preset{padding:12px 10px;gap:7px}.scene-preset>span{flex-shrink:0}.scene-preset small{font-size:11px}.modal-footer{padding:14px 20px calc(env(safe-area-inset-bottom) + 14px);gap:16px}.modal-footer .primary,.modal-footer .text-button{font-size:14px}.modal-body>p,.modal .subtle{font-size:14px}.settings-heading p{font-size:12px}.settings-actions .outline,.connection-row .outline{font-size:13px}.settings-heading h3{font-size:22px}.app-shell.keyboard-open .mobile-nav{display:none}}@media(max-width:360px){.chat-title h1{font-size:18px}.chat-title p{font-size:11px;max-width:165px}.ai-badge{font-size:9px}.chat-header{gap:6px}.chat-header>.avatar{display:none}.empty-state h1{font-size:23px}.composer-foot{font-size:10px}.scene-presets{grid-template-columns:1fr}.modal-header h2{font-size:23px}.field-grid.three{grid-template-columns:minmax(0,1fr) 78px}.message-scroll{padding-left:11px;padding-right:11px}}.profile-row .icon-button{width:40px;height:40px;padding:9px}@media(max-width:767px){.composer-foot,.message-byline>span,.preview-ribbon,.preview-ribbon button{font-size:12px}.ai-badge{font-size:11px}.chat-title p{font-size:12px}}.sidebar .brand{font-size:20px;letter-spacing:1px;gap:9px;white-space:nowrap}.sidebar .brand-mark{width:34px;height:42px;font-size:25px;flex-shrink:0}.sidebar .brand small{font-size:12px;letter-spacing:1px;white-space:normal}.mobile-brand{white-space:nowrap}@media(max-width:767px){.sidebar .brand{font-size:22px}.mobile-brand{font-size:24px;letter-spacing:2px}.mobile-brand .brand-mark{flex-shrink:0}}.auth-setup-actions{display:grid;gap:13px;margin-top:25px}.auth-setup-actions .outline{min-height:48px;font-size:14px}.auth-form-wrap .stacked-form .auth-tip{margin:13px 0 0}.auth-form-wrap .auth-secondary{min-height:38px;text-align:center;line-height:1.7}.auth-form-wrap .privacy-note{overflow-wrap:anywhere}@media(max-width:767px){.auth-page{min-height:var(--app-height)}.auth-panel{align-items:flex-start;padding-top:36px;padding-bottom:40px}.auth-form-wrap{margin:auto}.auth-form-wrap .stacked-form .primary{margin-top:18px}.auth-form-wrap .privacy-note{margin-top:24px}}.session-row{display:flex;align-items:stretch;gap:2px;min-width:0;margin-bottom:5px}.session-row .session-item{flex:1;min-width:0;width:0;margin-bottom:0;padding-right:4px;gap:9px}.session-row .session-item>span{min-width:0;flex:1}.session-row .session-item strong,.session-row .session-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.session-row .avatar{width:34px;height:40px;font-size:21px}.session-delete{display:flex;align-items:center;justify-content:center;align-self:center;width:40px;min-width:40px;height:44px;padding:10px;background:transparent;color:#a36e5d;border-radius:8px}.session-delete svg{width:18px;height:18px}.session-delete:hover,.session-delete:focus-visible{background:#f0e7df;color:#8f5140}.field-grid.character-basics{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:23px}.character-basics label+label{margin-top:0}.personality-options{min-width:0;border:0;padding:0;margin:0 0 23px}.personality-options legend{font-size:14px;font-weight:550;margin-bottom:12px;padding:0}.personality-options legend span{display:block;margin-top:4px;color:#77836c;font-size:12px;font-weight:400}.personality-chips{display:flex;flex-wrap:wrap;gap:9px}.personality-chip{position:relative;display:block;margin:0!important;font-size:14px;font-weight:400;cursor:pointer}.personality-chip input{position:absolute;width:1px;height:1px;opacity:0;margin:0;padding:0}.personality-chip>span{display:block;min-height:40px;padding:8px 13px;border:1px solid #dce2d4;background:#fbfcf7;border-radius:22px;transition:background .15s,border-color .15s}.personality-chip input:checked+span{border-color:#7e9780;background:#e8efe0;color:#49644e}.personality-chip input:focus-visible+span{outline:2px solid #7e9780;outline-offset:3px}@media(max-width:767px){.session-delete{width:44px;min-width:44px;height:44px}.session-row .session-item{gap:10px}.field-grid.character-basics{gap:14px}.personality-chips{gap:8px}.personality-chip>span{min-height:44px;padding:10px 13px}}:root{color-scheme:dark;--paper: #0e0b16;--ink: #f2edf9;--muted: #b4aec4;--line: #342a46;--sage: #c7a9fb;--sage-dark: #dabfff;--surface: #151121;--surface-raised: #1e182e;--field: #100d1b;--danger: #f2a7bd;--hero-glow: radial-gradient(ellipse at 50% 16%, #292043, transparent 73%);color:var(--ink);background:var(--paper)}body,.chat-panel{background:var(--paper)}button.primary,.new-story-button,.send-button{color:#fff;background:#7650b5;border-color:#9871d6}button.primary:hover,.new-story-button:hover,.send-button:hover{background:#855ec1}.text-button:hover{color:var(--ink)}button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:var(--sage)}.icon-button,.chat-header>.icon-button:first-child,.password-toggle{color:var(--muted)}.icon-button:hover,.outline:hover,.session-item:hover{background:var(--surface-raised);color:var(--ink);border-color:#695489}.outline{border-color:#554568}input,textarea,select,.stacked-form input,.auth-form-wrap input,.modal-body input,.modal-body textarea,.modal-body select{background:var(--field);border-color:#4a3b5f}input:focus,textarea:focus,select:focus{border-color:var(--sage);box-shadow:0 0 0 3px #c7a9fb29}input::placeholder,textarea::placeholder,.composer-wrap textarea::placeholder{color:#a39ab5}.brand,.sidebar .brand,.mobile-brand,.header-kicker,.hero-wordmark,.boot-screen{font-family:Georgia,Times New Roman,serif;font-weight:500;letter-spacing:.12em;text-transform:uppercase}.brand,.sidebar .brand,.mobile-brand{font-size:18px}.brand-mark,.sidebar .brand-mark,.mobile-brand .brand-mark{display:block;width:39px;height:39px;flex:none;border-radius:10px;background:#252039}.header-kicker{color:var(--ink)}.boot-screen{text-align:center;padding:24px}.boot-screen span{color:var(--muted);letter-spacing:.02em}.auth-page{background:var(--paper);grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr)}.auth-visual,.soul-home{isolation:isolate;position:relative;background:var(--hero-glow),#120e20}.auth-visual{min-height:690px;border-right:1px solid var(--line)}.auth-visual:before,.soul-home:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at center,#110d20a6,#0e0b1633 74%),linear-gradient(0deg,#0e0b16dc,transparent 45%),url(../soulverse-world.jpg) center / cover no-repeat}.auth-visual:before{inset:auto 0 11%;aspect-ratio:1672 / 941;background:radial-gradient(ellipse at center,#110d208c,transparent 78%),url(../soulverse-world.jpg) center / cover no-repeat;mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent)}.brand-hero{text-align:center;position:relative;padding:0 8px;text-shadow:0 2px 18px #11091f}.auth-visual .brand-hero{margin:auto 0;padding-bottom:32px}.hero-mark{display:block;width:clamp(76px,12vw,132px);height:auto;margin:0 auto 20px;filter:drop-shadow(0 0 18px #a887ff73)}.hero-wordmark{font-size:clamp(31px,5.1vw,84px);line-height:1.12;letter-spacing:.16em;margin:0 0 18px;text-shadow:0 0 28px #b591ff85,0 4px 20px #0e0b16}.auth-visual .hero-wordmark{font-size:clamp(28px,4.2vw,68px)}.brand-hero p{color:#eee4ff;margin:0 0 9px;font-size:15px;letter-spacing:.13em}.brand-hero p[lang=en]{font:italic 400 clamp(17px,2.5vw,25px)/1.4 Georgia,"Times New Roman",serif;letter-spacing:.04em}.auth-panel{background:radial-gradient(ellipse at top right,#251936 0%,transparent 52%)}.auth-form-wrap>.subtle,.auth-tip,.privacy-note,.field-hint,.auth-secondary,.preview-entry{color:var(--muted)}.auth-secondary,.preview-entry{color:var(--sage)}.provider-fields{margin-top:18px}.preview-ribbon{background:#211831;color:#e7daff;border-color:var(--line)}.preview-ribbon button{color:#efdcff}.sidebar,.story-panel,.chat-header,.composer-wrap,.mobile-nav,.modal-footer{background:var(--surface);border-color:var(--line)}.session-item.active,.connect-banner{background:#29203c}.session-item strong,.profile-row strong,.empty-state h1,.chapter-intro h2,.character-card h2,.story-note h3{color:var(--ink)}.avatar,.avatar-large,.profile-avatar,.chapter-intro>div>span{background:#36254f;color:#edddff}.avatar:before{background:#b899ec2b}.avatar i{background:#cba8ff}.avatar.apricot{background:#42283e;color:#ffcee5}.avatar.lavender{background:#3b2e57;color:#edddff}.avatar.blue{background:#293852;color:#d3e5ff}.nav-label,.side-action,.side-action span,.profile-row small,.session-item small,.list-empty,.chat-title p,.chat-title p>span,.connect-banner,.connect-banner>span,.chapter-intro>span,.chapter-intro p,.message-byline,.message-byline>span,.composer-foot,.panel-heading,.character-no,.character-card p,.note-label,.story-note .eyebrow,.story-note p,.gentle-note,.form-section-title p,.form-section-title>span,.modal .subtle,.settings-heading p,.range-captions,.slider-field p,.slider-field output,.more-settings summary,.connection-row>span,.personality-options legend span,.mobile-nav button{color:var(--muted)}.ai-badge{color:#d4c1ee;border-color:#594971}.side-action:hover,.mobile-nav button.active{color:var(--sage)}.drawer-backdrop,.modal-backdrop{background:#090511ad}.profile-row,.connect-banner,.gentle-note,.modal-header,.form-section-title>span,.more-settings+.form-section-title,.privacy-note{border-color:var(--line)}.note-divider,.section-divider{background:var(--line)}.bubble{background:#201a30;border-color:#37304a;color:#efeaf7}.own .bubble{background:#34234e;border-color:#513c6e;color:#f1e7ff}.composer-wrap form{background:var(--field);border-color:#4a3b5f;box-shadow:none}.composer-wrap form:focus-within{border-color:var(--sage)}.stop-button{background:#513759}.character-card{border-color:#4b3863;background:radial-gradient(ellipse at top,#38264f,#20172e 75%)}.character-card.apricot{background:#2c1c2b;border-color:#523449}.character-card.lavender{background:#261e38;border-color:#4b3c61}.character-card.blue{background:#1b2337;border-color:#344362}.portrait-line,.portrait-line:before{border-color:#bda0f264}.portrait-leaf,.settings-heading>svg,.memory-art,.memory-art p,.story-note .outline{color:var(--sage)}.tag-row>span,.privacy-card{background:#29203c;color:#e2d0f8;border-color:#513d69}.story-note .outline{border-color:#56426d}.soul-home{gap:22px}.soul-home .primary{border-radius:28px;padding-inline:28px;box-shadow:0 6px 30px #773dcf52}.soul-home>.home-hint{color:#eee4fa;margin:0;text-shadow:0 2px 10px #0e0b16}.chat-panel:has(.soul-home) .chat-header{min-height:56px;padding-block:8px}.modal{background:var(--surface-raised);border:1px solid var(--line);box-shadow:0 24px 100px #030208a6}.story-footer{gap:12px;flex-wrap:wrap}.story-footer .outline{font-size:14px;min-height:46px}.eyebrow{color:var(--sage)}.typing-dots i{background:var(--sage)}input[type=range]{background:linear-gradient(#594473,#594473) center / 100% 4px no-repeat}input[type=range]::-webkit-slider-thumb{background:var(--sage);border-color:#29203c;box-shadow:0 0 0 1px #9b74d0}.personality-chip>span{color:var(--ink);background:var(--field);border-color:#4a3b5f}.personality-chip input:checked+span{border-color:#ad88e6;background:#35224e;color:#f1dfff}.personality-chip input:focus-visible+span{outline-color:var(--sage)}.form-error,.danger,.session-delete,.message-status{color:var(--danger)}.danger:hover,.session-delete:hover,.session-delete:focus-visible{color:#ffd5e1;background:#45243c}.danger-button{background:#853751}.danger-button:hover{background:#9d4260}#toast{background:#2f2043;color:var(--ink);box-shadow:0 8px 25px #0302088f}@media(min-width:768px){.chat-panel:has(.soul-home) .header-kicker{display:none}}@media(max-width:767px){.auth-page{background:var(--paper)}.auth-panel{background:radial-gradient(ellipse at top center,#271938,transparent 64%);padding-top:calc(env(safe-area-inset-top) + 30px)}.mobile-brand{margin-bottom:39px}.mobile-brand small{display:block;font:400 12px/1.4 system-ui,sans-serif;letter-spacing:.05em;color:var(--muted);margin-top:7px}.hero-wordmark{font-size:clamp(26px,9vw,57px);letter-spacing:.12em}.soul-home:before{inset:auto 0 48%;aspect-ratio:1672 / 941;background:radial-gradient(ellipse at center,#110d2070,transparent 72%),url(../soulverse-world.jpg) center / cover no-repeat;mask-image:linear-gradient(transparent 1%,#000 15%,#000 77%,transparent 100%)}.chat-panel:has(.soul-home) .chat-header{padding-top:calc(env(safe-area-inset-top) + 8px)}.soul-home{padding:24px 18px}}
