:root{--chrome:#191c18;--chrome-2:#242923;--paper:#f5f2ea;--paper-2:#ebe8df;--surface:#fffefa;--ink:#252722;--muted:#6d7169;--line:#d7d4ca;--accent:#df5b3f;--accent-dark:#b9442e;--moss:#6f9271;--moss-soft:#e6eee4;--danger:#a74235}*{box-sizing:border-box;letter-spacing:0}body,html{min-width:320px;min-height:100%;margin:0}body{background:var(--paper-2);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Noto Sans SC,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(223,91,63,.4);outline-offset:2px}h1,h2,h3,p{margin-top:0}.eyebrow{margin:0 0 12px;color:#9aa899;font-size:11px;font-weight:800}.brand{display:inline-flex;align-items:center;gap:10px;color:#f8f5ec;font-family:Georgia,Times New Roman,serif;font-size:19px;font-weight:700;white-space:nowrap}.brand em{color:var(--accent);font-style:normal}.brand-mark{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:5px;background:var(--accent);color:white;font-size:19px}.topbar{display:flex;height:62px;align-items:center;justify-content:space-between;gap:18px;padding:0 28px;background:var(--chrome);color:#f8f5ec}.topbar-meta{color:#aeb4aa;font-size:13px}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:0 17px;border:1px solid transparent;border-radius:5px;font-size:14px;font-weight:700;white-space:nowrap}.button-primary{background:var(--accent);color:white}.button-primary:hover:not(:disabled){background:var(--accent-dark)}.button-secondary{border-color:var(--line);background:var(--surface);color:var(--ink)}.button-secondary:hover:not(:disabled){background:#f7f6f0}.icon-button{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border:0;border-radius:5px;background:transparent;color:inherit;font-size:24px;line-height:1}.icon-button:hover{background:rgba(255,255,255,.12)}.text-button{border:0;background:none;color:var(--accent-dark);font-size:13px;font-weight:700;text-decoration:underline}.notice{padding:15px 18px;border-radius:5px;line-height:1.6}.notice-error{border:1px solid #e5c2b7;background:#fff1ec;color:#78392d}.library-page{min-height:100svh}.library-content{width:min(1120px,calc(100% - 56px));margin:0 auto;padding:54px 0 90px}.library-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.library-heading .eyebrow{color:#738171}.library-heading h1,.wizard-header h1{margin:0;font-family:Georgia,Songti SC,serif;font-size:34px;line-height:1.25}.feature{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(310px,.88fr);border-radius:6px;background:#151915;color:white}.feature,.feature-art{min-height:325px;overflow:hidden}.feature-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.feature-copy{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:38px 40px}.feature-copy h2{margin:0 0 14px;font-family:Georgia,Songti SC,serif;font-size:31px;line-height:1.2}.feature-copy>p:not(.eyebrow){max-width:36ch;margin:0;color:#ced4ca;font-size:14px;line-height:1.8}.feature-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:42px;padding-top:22px;border-top:1px solid #3b413a}.feature-footer>span{color:#aeb7aa;font-size:12px}.library-section{margin-top:43px}.private-test-access{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-top:28px;padding:20px 22px;border:1px solid var(--line);border-radius:5px;background:rgba(255,254,250,.68)}.private-test-access h2{margin:3px 0 5px;font-size:17px}.private-test-access p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px;line-height:1.5}.private-test-side{display:flex;min-width:min(100%,390px);flex-direction:column;align-items:flex-end;gap:8px}.private-test-form{display:flex;width:100%;gap:8px}.private-test-access .private-test-status{margin:0;color:#3f6b49;font-size:12px;font-weight:700}.private-test-form input{min-width:0;flex:1 1;min-height:40px;padding:8px 10px;border:1px solid #c7ccc3;border-radius:4px;background:white;color:var(--ink)}.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}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:15px}.section-head h2{margin:0;font-family:Georgia,Songti SC,serif;font-size:23px}.section-head span{color:var(--muted);font-size:12px}.story-list{overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.story-row{display:flex;width:100%;min-height:76px;align-items:center;gap:16px;padding:12px 20px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.story-row:last-child{border-bottom:0}.story-row:hover{background:#f5f5ef}.story-row-mark{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:4px;background:#d7e2d5;color:#3f5d43;font-family:Georgia,serif;font-size:24px}.story-row-main{display:flex;min-width:0;flex:1 1;flex-direction:column;gap:4px}.story-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-row time,.story-row-main small{color:var(--muted);font-size:12px}.row-arrow{font-size:19px}.empty-state{padding:29px;border:1px dashed #bfc5bb;border-radius:5px;color:var(--muted);font-size:14px}.wizard-page{min-height:100svh;background:var(--paper)}.wizard-shell{width:min(1020px,calc(100% - 48px));margin:0 auto;padding:44px 0 80px}.wizard-header{margin-bottom:29px}.wizard-header .eyebrow{color:#72816f}.wizard-header>p:last-child{margin:8px 0 0;color:var(--muted);font-size:13px}.wizard-layout{display:grid;grid-template-columns:210px minmax(0,1fr);grid-gap:24px;gap:24px;align-items:start}.wizard-nav{display:flex;flex-direction:column;gap:4px;padding-top:8px}.wizard-nav button{display:flex;min-height:49px;align-items:center;gap:11px;padding:0 12px;border:0;border-radius:5px;background:none;color:var(--muted);text-align:left}.wizard-nav button.active{background:#e9eee5;color:#315740;font-weight:750}.wizard-nav button:disabled{opacity:.65}.wizard-nav button span{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border:1px solid;border-radius:50%;font-size:12px}.wizard-main{min-height:475px;padding:32px 36px 25px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.wizard-main h2{margin:0 0 8px;font-family:Georgia,Songti SC,serif;font-size:25px}.field-intro{margin:0 0 26px;color:var(--muted);font-size:13px;line-height:1.6}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:22px 18px;gap:22px 18px}.field{display:flex;min-width:0;flex-direction:column;gap:9px;color:var(--ink);font-size:13px;font-weight:700}.field b{color:var(--accent)}.field-wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid #cfd0c6;border-radius:5px;outline:none;background:white;color:var(--ink);font-size:14px;font-weight:400}.field textarea{min-height:126px;resize:vertical;line-height:1.6}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(223,91,63,.14)}.field small{color:var(--muted);font-size:11px;font-weight:400}.segmented{display:inline-flex;gap:2px;padding:3px;border-radius:5px;background:var(--paper-2)}.segmented button{min-height:31px;padding:0 13px;border:0;border-radius:4px;background:transparent;color:#65695f;font-size:13px}.segmented button.selected{background:white;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.1);font-weight:700}.trait-options{align-self:flex-start;flex-wrap:wrap}.rule-options{margin-bottom:30px;border-top:1px solid var(--line)}.check-row{display:flex;min-height:52px;align-items:center;gap:13px;padding:8px 2px;border-bottom:1px solid var(--line);font-size:14px}.check-row input{width:18px;height:18px;margin:0;accent-color:var(--moss)}.fixed-check{display:grid;width:18px;height:18px;place-items:center;border-radius:3px;background:var(--moss);color:white;font-size:12px}.fixed-rule small{margin-left:auto;color:var(--muted)}.style-options{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:8px;gap:8px}.style-options button{min-height:47px;border:1px solid var(--line);border-radius:5px;background:white;font-size:13px}.style-options button.selected{border-color:#78947a;background:var(--moss-soft);color:#315740;font-weight:700}.review-list{margin:0;border-top:1px solid var(--line)}.review-list>div{display:grid;grid-template-columns:105px minmax(0,1fr);grid-gap:16px;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);line-height:1.65}.review-list dt{color:var(--muted);font-size:13px}.review-list dd{min-width:0;margin:0;overflow-wrap:anywhere;font-size:14px}.review-list dd span{display:block;color:var(--muted);font-size:12px}.form-error{margin:18px 0 0;color:var(--danger);font-size:13px}.wizard-footer{display:flex;justify-content:space-between;gap:12px;margin-top:34px;padding-top:20px;border-top:1px solid var(--line)}.workspace-page{height:100svh;overflow:hidden;background:var(--chrome)}.studio-topbar{position:relative;z-index:5;height:58px;padding:0 16px;border-bottom:1px solid #363b35}.studio-left,.studio-right{display:flex;min-width:0;align-items:center;gap:12px}.studio-left .brand>span:last-child{display:none}.studio-story-title{overflow:hidden;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.save-state{color:#91ac91}.branch-pill,.save-state{font-size:12px;white-space:nowrap}.branch-pill{padding:7px 12px;border:1px solid #3c423b;border-radius:4px;background:#252923;color:#d8ddd4}.branch-trigger{display:inline-flex;max-width:280px;min-height:34px;align-items:center;gap:9px}.branch-trigger:hover{border-color:#70836e;background:#30382f}.branch-trigger-label{overflow:hidden;text-overflow:ellipsis}.branch-trigger-icon,.close-inspector,.mobile-nav,.mobile-status-button{display:none}.studio-layout{display:grid;height:calc(100svh - 58px);grid-template-columns:220px minmax(0,1fr) 300px}.studio-sidebar{overflow-y:auto;padding:18px 12px;border-right:1px solid #343a33;background:#20241f;color:#d6d9d0}.sidebar-cover{position:relative;overflow:hidden;height:115px;margin:0 4px 25px;border-radius:5px;background:black}.sidebar-cover img{width:100%;height:100%;object-fit:cover;opacity:.72}.sidebar-cover strong{position:absolute;right:10px;bottom:9px;left:10px;color:white;font-size:13px}.sidebar-section-label{padding:0 12px 9px;color:#818e81;font-size:11px}.sidebar-active{padding:12px;border-radius:5px;background:#343b33;color:#fff;font-size:13px;font-weight:700}.sidebar-summary{display:flex;flex-direction:column;gap:8px;margin:30px 3px 0;padding:17px 10px;border-top:1px solid #3b423b;color:#f0f0e9;font-size:13px}.sidebar-summary small,.sidebar-summary span{color:#9fa99e;font-size:11px}.sidebar-link{margin:12px 3px;padding:8px 10px;border:0;background:none;color:#aebbaa;font-size:12px}.sidebar-link:hover{color:white}.reading-panel{min-width:0;overflow-y:auto;scroll-padding-bottom:240px;background:var(--paper)}.reading-inner{width:min(100%,880px);margin:0 auto;padding:29px clamp(20px,4%,42px) 55px}.turn-tail{height:1px;scroll-margin-bottom:240px}.story-cover{position:relative;overflow:hidden;width:100%;height:clamp(145px,23vh,265px);border-radius:5px;background:#101510}.story-cover img{width:100%;height:100%;object-fit:cover;object-position:center 45%}.story-cover span{position:absolute;bottom:14px;left:16px;padding:5px 8px;border-radius:3px;background:rgba(16,20,15,.82);color:white;font-size:12px}.chapter-meta{margin:35px 0 9px;color:var(--muted);font-size:12px}.chapter-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;padding-bottom:19px;border-bottom:1px solid var(--line)}.chapter-heading h1{min-width:0;margin:0;font-family:Georgia,Songti SC,serif;font-size:30px;line-height:1.3;overflow-wrap:anywhere}.chapter-heading>span{color:var(--muted);font-size:11px;white-space:nowrap}.narrative-entry{padding:29px 0 35px;border-bottom:1px solid var(--line)}.action-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 14px;margin-bottom:18px;padding-left:12px;border-left:3px solid var(--accent);font-size:13px}.action-line span{color:var(--accent-dark);font-size:11px;font-weight:750;white-space:nowrap}.action-line strong{overflow-wrap:anywhere}.entry-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px;color:var(--muted);font-size:11px;font-weight:700}.story-prose{color:#282c27;font-family:Songti SC,"Noto Serif SC","Source Han Serif SC",STSong,serif;font-size:17px;line-height:2.03;overflow-wrap:anywhere}.story-prose p{margin:0 0 15px}.story-prose p:last-child{margin-bottom:0}.narrative-preview{margin-top:18px;padding-left:12px;border-left:2px solid #cdd8c9}.narrative-preview .entry-heading span{color:var(--muted)}.change-list{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:14px}.change-list strong{flex:0 0 auto;margin-right:5px;color:var(--muted);font-size:11px}.change-list span{padding:5px 9px;border-radius:3px;background:var(--moss-soft);color:#3e6044;font-size:12px}.choices{margin-top:27px}.choices h2{margin-bottom:12px;color:var(--muted);font-size:12px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:9px;gap:9px}.choice-button{display:grid;min-width:0;min-height:89px;grid-template-columns:minmax(0,1fr) 15px;align-content:center;grid-gap:4px 7px;gap:4px 7px;padding:13px;border:1px solid var(--line);border-radius:5px;background:#fffefa;text-align:left}.choice-button:hover{border-color:#b7bdaf;background:#f9faf5}.choice-button strong{font-size:13px;overflow-wrap:anywhere}.choice-button span{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.5}.choice-button b{grid-column:2;grid-row:1;color:var(--accent)}.composer{position:-webkit-sticky;position:sticky;z-index:2;bottom:0;overflow:hidden;margin-top:22px;border:1px solid #bdbfb5;border-radius:6px;background:white;box-shadow:0 12px 36px rgba(22,27,21,.15)}.composer-footer,.composer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 11px}.composer-top{border-bottom:1px solid #e2e2dc}.composer-footer>span,.composer-top>span{color:var(--muted);font-size:11px}.mode-switch button{min-height:28px}.composer textarea{display:block;width:100%;min-height:78px;max-height:200px;padding:12px 14px;resize:vertical;border:0;outline:none;font-size:14px;line-height:1.6}.setup-shell{width:min(1180px,calc(100% - 48px))}.setup-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-gap:18px;gap:18px;align-items:start}.setup-main h2{margin-top:28px}.setup-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px}.setup-section-head h2{margin:0}.setup-side{display:grid;grid-gap:16px;gap:16px}.setup-card,.setup-preview{padding:16px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.setup-card h2,.setup-preview h2{margin:0 0 8px;font-size:16px}.attribute-row input,.attribute-row select,.setup-card textarea{width:100%}.attribute-row{display:grid;grid-template-columns:minmax(0,1fr) 110px minmax(0,1.4fr) 36px;grid-gap:8px;gap:8px;margin-top:8px}.suggestion-list{margin:8px 0}.rulebook{max-height:220px;overflow:auto;white-space:pre-wrap}.story-ended{margin-top:24px;color:var(--muted)}.director-form{display:grid;grid-gap:12px;gap:12px;padding:12px 14px 4px}.director-lead,.director-section-head span{color:var(--muted);font-size:12px;line-height:1.5}.director-section{display:grid;grid-gap:8px;gap:8px;padding-top:8px;border-top:1px solid #e2e2dc}.director-row,.director-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.director-section-head{justify-content:space-between}.director-section-head strong{font-size:13px}.director-row input,.director-row select{min-width:140px;flex:1 1;min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:4px;background:white}.location-map{display:grid;grid-gap:8px;gap:8px}.map-node{padding:8px 10px;border:1px solid #495448;border-radius:4px}.map-node.current{border-color:#8eb192;background:#2a332b}.map-node strong{font-size:13px}.map-node small{color:#a7b5a6}.composer-footer{padding:7px 10px 10px}.send-button{min-height:36px}.progress-panel{display:flex;gap:13px;margin:25px 0;padding:17px;border:1px solid #cdd8c9;border-radius:5px;background:#edf3e9}.progress-panel strong{font-size:14px}.progress-panel p{margin:4px 0 12px;color:#5d6d59;font-size:12px;line-height:1.5}.loading-indicator{width:17px;height:17px;flex:0 0 17px;margin-top:2px;border:2px solid #b2c5af;border-top-color:#55745c;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.stage-list{display:flex;flex-wrap:wrap;gap:6px}.stage-list span{padding:4px 7px;border:1px solid #cdd8c9;border-radius:3px;color:#687866;font-size:11px}.stage-list span.active{border-color:#739577;background:#d9e9d7;color:#33533c}.turn-issue{margin:24px 0}.turn-issue p{margin:5px 0;font-size:13px}.turn-issue>div{display:flex;align-items:center;gap:12px;margin-top:13px}.inspector-wrap{min-width:0;overflow-y:auto;border-left:1px solid #343a33;background:#20241f;color:#d9ded7}.state-panel{min-height:100%;padding:20px 16px 40px}.inspector-title{margin-bottom:16px;font-size:13px;font-weight:700}.inspector-tabs{display:flex;gap:16px;border-bottom:1px solid #384039}.inspector-tabs button{padding:8px 2px 10px;border:0;border-bottom:2px solid transparent;background:none;color:#9ea99d;font-size:12px}.inspector-tabs button.active{border-bottom-color:var(--accent);color:white}.inspector-section{padding:17px 0;border-bottom:1px solid #384039;overflow-wrap:anywhere}.inspector-section h3{margin:0 0 11px;color:#93a293;font-size:11px;font-weight:600}.inspector-section strong{display:block;font-size:13px}.inspector-section p{margin:7px 0 0;color:#c4ccc2;font-size:12px;line-height:1.65}.inspector-section small{display:block;margin-top:6px;color:#929e91;font-size:11px;line-height:1.5}.location-name{font-family:Georgia,Songti SC,serif;font-size:17px!important}.metric{display:grid;grid-template-columns:49px minmax(0,1fr) 27px;align-items:center;grid-gap:8px;gap:8px;margin-top:12px;color:#a7b5a6;font-size:11px}.metric meter{display:block;width:100%;height:9px}.metric meter::-webkit-meter-bar{border:0;border-radius:4px;background:#424941}.metric meter::-webkit-meter-optimum-value{border-radius:4px;background:#779879}.metric b{color:#d9e6d8;text-align:right}.tag-list{display:flex;flex-wrap:wrap;gap:6px}.tag{padding:5px 7px;border:1px solid #495448;border-radius:3px;color:#dce5d9;font-size:11px}.character-row>span{display:inline-block;margin-top:4px;color:#8eb192;font-size:11px}.event-row strong{margin-top:7px}.event-row p{margin-top:6px}.loading-page{display:flex;min-height:100svh;flex-direction:column;align-items:center;justify-content:center;gap:17px;background:var(--chrome);color:white}.loading-page p{max-width:38ch;margin:0;color:#cad2c8;text-align:center}.branch-overlay{position:fixed;z-index:30;inset:0;display:flex;justify-content:flex-end;background:rgba(14,20,15,.58)}.branch-panel{display:grid;width:min(440px,100vw);height:100svh;grid-template-rows:auto auto minmax(0,1fr);background:var(--surface);box-shadow:-16px 0 40px rgba(0,0,0,.2)}.branch-panel-header{display:flex;min-height:82px;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid var(--line)}.branch-panel-header small{color:#778575;font-size:10px;font-weight:800}.branch-panel-header h2{margin:4px 0 0;font-size:21px}.branch-panel-header .icon-button{color:var(--ink)}.branch-panel-header .icon-button:hover{background:var(--paper-2)}.branch-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}.branch-tabs button{min-height:47px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:13px}.branch-tabs button.active{border-bottom-color:var(--accent);color:var(--ink);font-weight:700}.branch-tabs span{margin-left:5px;color:var(--muted);font-size:11px}.branch-panel-body{min-height:0;overflow-y:auto;padding:0 20px 32px}.branch-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:18px;font-size:13px}.branch-blocked{margin-top:18px;padding:10px 12px;border-left:3px solid var(--accent);background:#fff2e8;color:#78412f;font-size:12px}.branch-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0;border-bottom:1px solid var(--line)}.branch-section-head>div{display:flex;min-width:0;flex-direction:column;gap:4px}.branch-section-head small{color:var(--muted);font-size:11px}.branch-section-head strong{overflow-wrap:anywhere;font-size:15px}.branch-section-head span{color:var(--muted);font-size:11px}.branch-undo-button{min-height:34px;flex:0 0 auto;padding:0 10px;font-size:12px}.branch-form-error{margin:14px 0;color:var(--danger);font-size:12px;line-height:1.5}.branch-action{padding:19px 0 20px;border-bottom:1px solid var(--line)}.branch-action h3{margin:0 0 11px;font-size:16px}.branch-action p{margin:8px 0;color:#555e53;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.branch-action p strong{color:var(--ink)}.branch-action-note{color:#537258!important}.branch-action-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.branch-action-footer .button{min-height:36px;padding:0 12px;font-size:12px}.branch-name-field{display:flex;flex-direction:column;gap:7px;margin-top:15px;font-size:12px;font-weight:700}.branch-name-field input{min-height:39px;padding:8px 10px;border:1px solid #c7ccc3;border-radius:4px;background:white;color:var(--ink);font-size:13px;font-weight:400}.branch-list-heading{padding:21px 0 8px;color:var(--muted);font-size:11px;font-weight:700}.branch-list,.history-list{border-top:1px solid var(--line)}.branch-list-item,.history-item{display:flex;width:100%;min-height:84px;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 3px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);text-align:left}.branch-list-item:hover:not(:disabled),.history-item.selected,.history-item:hover:not(:disabled){background:#f5f7f0}.branch-list-item small,.history-item small{color:var(--muted);font-size:11px}.branch-list-item strong,.history-item strong{font-size:13px;overflow-wrap:anywhere}.history-item span{color:#596158;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.history-item em{color:var(--accent-dark);font-size:11px;font-style:normal;font-weight:700}.branch-list-title{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px}.branch-list-title b{flex:0 0 auto;color:#52775a;font-size:11px}.branch-list-item>span:last-child{color:var(--accent-dark);font-size:11px;font-weight:700}.branch-list-item.current{background:#f2f6ef}.branch-list-item.current>span:last-child{color:#52775a}@media (max-width:1080px){.studio-layout{grid-template-columns:180px minmax(0,1fr) 270px}.feature-copy{padding:30px}}@media (max-width:850px){.studio-layout{grid-template-columns:minmax(0,1fr) 270px}.studio-sidebar{display:none}.feature{grid-template-columns:1fr 1fr}.feature-footer{align-items:flex-start;flex-direction:column}}@media (max-width:680px){.topbar{height:56px;padding:0 15px}.library-content{width:min(100% - 30px,560px);padding:32px 0 70px}.library-heading{align-items:flex-start}.library-heading h1,.wizard-header h1{font-size:26px}.library-heading .button{min-height:38px;padding:0 10px;font-size:12px}.feature{grid-template-columns:1fr}.private-test-access{align-items:stretch;flex-direction:column;gap:12px;padding:17px}.private-test-form{min-width:0}.feature-art{min-height:180px;height:180px}.feature-copy{padding:24px}.feature-copy h2{font-size:27px}.feature-footer{align-items:center;flex-direction:row;margin-top:24px}.feature-footer>span{display:none}.story-row{gap:10px;padding:12px}.story-row time{display:none}.setup-shell,.wizard-shell{width:min(100% - 28px,560px);padding:28px 0 55px}.attribute-row,.choice-grid,.setup-layout{display:grid;grid-template-columns:1fr}.wizard-layout{display:block}.wizard-nav{flex-direction:row;gap:4px;margin-bottom:12px;padding:0}.wizard-nav button{min-width:0;flex:1 1;flex-direction:column;justify-content:center;gap:3px;padding:7px 2px;font-size:10px;text-align:center}.wizard-main{min-height:0;padding:25px 19px}.wizard-main h2{font-size:21px}.field-grid{grid-template-columns:1fr;gap:18px}.field-wide{grid-column:auto}.style-options{grid-template-columns:repeat(2,minmax(0,1fr))}.review-list>div{grid-template-columns:72px minmax(0,1fr);gap:10px}.workspace-page{height:100svh}.studio-topbar{height:54px}.studio-layout{height:calc(100svh - 108px);display:block}.reading-panel{height:100%;scroll-padding-bottom:220px}.reading-inner{padding:15px 15px 30px}.turn-tail{scroll-margin-bottom:220px}.story-cover{height:150px}.chapter-meta{margin-top:22px}.chapter-heading{display:block}.chapter-heading h1{font-size:27px}.chapter-heading>span{display:block;margin-top:7px}.narrative-entry{padding:25px 0}.story-prose{font-size:16px;line-height:1.95}.choice-grid{grid-template-columns:1fr;gap:7px}.choice-button{min-height:65px}.composer{bottom:2px}.composer-footer>span{display:none}.composer-footer{justify-content:flex-end}.inspector-wrap{position:fixed;z-index:10;top:54px;right:0;bottom:54px;width:min(350px,100vw);display:none;box-shadow:-12px 0 30px rgba(0,0,0,.26)}.inspector-wrap.mobile-open{display:block}.close-inspector{position:absolute;top:8px;right:10px;display:grid}.mobile-status-button{display:grid}.save-state{display:none}.branch-trigger{display:grid;width:36px;height:36px;min-height:36px;padding:0;place-items:center}.branch-trigger-chevron,.branch-trigger-label{display:none}.branch-trigger-icon{display:block;font-size:21px;line-height:1}.mobile-nav{display:grid;height:54px;grid-template-columns:repeat(4,1fr);border-top:1px solid #394038;background:var(--chrome)}.mobile-nav button{border:0;background:none;color:#e5e8e0;font-size:12px}.mobile-nav button:focus,.mobile-nav button:hover{background:#30372f}}@media (max-width:370px){.studio-left{gap:4px}.studio-story-title{max-width:86px}.studio-right{gap:4px}.feature-footer .button{width:100%}}.wizard-page.world-atelier{min-height:100svh;background:radial-gradient(880px 420px at 0 -10%,rgba(223,91,63,.22),transparent 58%),radial-gradient(640px 380px at 100% 0,rgba(111,146,113,.18),transparent 55%),#101410;color:#f3f0e6}.wizard-page.world-atelier:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 0),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 0);background-size:56px 56px;-webkit-mask-image:radial-gradient(circle at 50% 18%,#000,transparent 76%);mask-image:radial-gradient(circle at 50% 18%,#000,transparent 76%)}.world-atelier .topbar{position:-webkit-sticky;position:sticky;top:0;z-index:6;background:rgba(16,20,16,.84);border-bottom:1px solid rgba(243,240,230,.08);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.atelier-stage{position:relative;z-index:1;display:grid;width:min(1180px,calc(100% - 48px));margin:0 auto;padding:28px 0 72px;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"hero hero" "main rail";grid-column-gap:22px;column-gap:22px;grid-row-gap:18px;row-gap:18px;align-items:start}.atelier-hero{grid-area:hero}.atelier-main{grid-area:main;min-width:0}.atelier-rail{grid-area:rail}.atelier-hero{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;min-height:148px;padding:6px 0 8px}.atelier-hero-copy{position:relative;z-index:1;max-width:640px}.atelier-compass{position:absolute;top:-18px;left:-8px;width:168px;height:168px;color:rgba(243,240,230,.08);pointer-events:none}.world-atelier .atelier-hero .eyebrow{margin-bottom:8px;color:#e7b2a6;letter-spacing:.18em}.world-atelier .atelier-hero h1{margin:0;color:#f7f3ea;font-family:var(--font-folio),"Songti SC","STSong",serif;font-size:clamp(44px,5vw,68px);font-weight:400;line-height:1.02}.world-atelier .atelier-hero-copy>p:last-child{max-width:38em;margin:12px 0 0;color:#b7c0b4;font-size:14px;line-height:1.75}.folio-index{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:460px}.folio-index button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 12px 0 10px;border:1px solid rgba(247,243,234,.14);border-radius:999px;background:rgba(255,255,255,.04);color:#d7dfd4;font-size:13px}.folio-index button:hover{border-color:rgba(247,243,234,.32);color:white}.folio-index button.is-current{border-color:rgba(223,91,63,.85);background:rgba(223,91,63,.14);color:white}.folio-index-num{font-family:var(--font-folio),"Songti SC",serif;color:#e7b2a6}.folio-pip{width:7px;height:7px;border-radius:50%;background:#667066}.folio-pip.is-ready{background:#df5b3f;box-shadow:0 0 0 3px rgba(223,91,63,.22)}.atelier-main{display:flex;flex-direction:column;gap:16px}.atelier-rail{position:-webkit-sticky;position:sticky;top:84px;display:grid;align-self:start;grid-gap:16px;gap:16px;max-height:calc(100svh - 104px);overflow:auto}.sheet{padding:26px 28px 24px;border-radius:2px 16px 16px 2px;background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0) 92px),#f6f3ea;color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 18px 40px rgba(0,0,0,.2);scroll-margin-top:86px;animation:folio-rise .65s cubic-bezier(.2,.7,.2,1) both}.sheet:nth-child(2){animation-delay:.08s}.sheet:nth-child(3){animation-delay:.14s}.sheet:nth-child(4){animation-delay:.2s}.sheet-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 16px}.sheet-head>span{font-family:var(--font-folio),"Songti SC",serif;font-size:28px;line-height:1;color:var(--accent)}.sheet-head>div{flex:1 1 200px;min-width:0}.sheet-head h2{margin:0 0 6px;font-family:var(--font-folio),"Songti SC",serif;font-size:30px;font-weight:400;line-height:1.15}.sheet-head p{margin:0;color:var(--muted);font-size:13px;font-weight:400;line-height:1.65}.sheet-head .button{margin-left:auto}.world-atelier .field-label{display:flex;width:100%;align-items:baseline;justify-content:space-between;gap:12px}.world-atelier .field small.is-met{color:#3f6b4a}.world-atelier .field small.is-short{color:var(--accent-dark)}.world-atelier .scribe-input,.world-atelier .sheet input,.world-atelier .sheet textarea{width:100%;min-height:46px;padding:11px 12px;border:1px solid #cfcabd;border-radius:4px;outline:none;background:#fffefa;color:var(--ink);font-family:var(--font-manuscript),"Songti SC","Noto Serif SC",serif;font-size:15px;font-weight:500;line-height:1.7}.world-atelier .sheet textarea{min-height:124px;resize:vertical}.world-atelier .sheet textarea.manuscript{min-height:300px;padding-left:28px;background:linear-gradient(90deg,transparent 16px,rgba(223,91,63,.72) 0,rgba(223,91,63,.72) 17px,transparent 0),#fbfaf4;line-height:1.9}.world-atelier .scribe-input::placeholder,.world-atelier .sheet input::placeholder,.world-atelier .sheet textarea::placeholder{color:#8d9288}.world-atelier .scribe-input:focus,.world-atelier .sheet input:focus,.world-atelier .sheet textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(223,91,63,.16)}.genre-catalog{display:flex;flex-wrap:wrap;gap:8px;max-height:168px;overflow:auto;padding:12px;border:1px solid #e3dfd4;border-radius:4px;background:rgba(255,254,250,.72)}.catalog-empty,.ledger-empty{margin:0;color:var(--muted);font-size:13px;font-weight:400;line-height:1.6}.ledger-empty{padding:14px 2px 2px}.folio-picks{display:flex;flex-wrap:wrap;gap:8px}.folio-picks:empty{display:none}.folio-chip{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid rgba(37,39,34,.16);border-radius:999px;background:rgba(255,254,250,.8);color:#2c332c;font-size:12px;font-weight:700;line-height:1}.folio-chip.is-on,.folio-chip:hover:not(:disabled):not(.is-on):not(.on-cover){border-color:#1c241c}.folio-chip.is-on{background:#1c241c;color:#f6f2e8}.folio-chip.is-picked{border-color:#e3b2a6;background:#fff1ec;color:#8a3d30}.folio-chip.on-cover{border-color:rgba(244,241,232,.24);background:transparent;color:#f4f1e8;font-weight:500}.ledger-card{display:grid;grid-gap:10px;gap:10px;padding:14px;border:1px solid #e4e0d4;background:rgba(255,255,255,.5)}.ledger-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-gap:8px;gap:8px;align-items:center}.ledger-index{font-family:var(--font-folio),"Songti SC",serif;color:var(--accent);font-size:20px;line-height:1}.ledger-remove{min-height:36px;padding:0 8px;border:0;background:transparent;color:#8a3d30;font-size:12px;font-weight:700}.ledger-remove:hover{background:#fff1ec}.kind-switch{display:inline-flex;width:-moz-fit-content;width:fit-content;gap:2px;padding:3px;border-radius:4px;background:#ebe6da}.kind-switch button{min-height:30px;padding:0 12px;border:0;border-radius:3px;background:transparent;color:#5c655c;font-size:12px;font-weight:700}.kind-switch button.is-on{background:white;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}.cover-plate,.scribe-card{animation:folio-rise .7s cubic-bezier(.2,.7,.2,1) both}.cover-plate{animation-delay:.1s}.scribe-card{position:relative;overflow:hidden;padding:18px 18px 16px 20px;border-radius:2px 14px 14px 2px;background:linear-gradient(180deg,#fffefb,#f3efe4);color:var(--ink);box-shadow:0 18px 40px rgba(0,0,0,.24)}.scribe-card:before{content:"";position:absolute;top:0;bottom:0;left:0;width:4px;background:var(--accent)}.scribe-card .eyebrow{margin-bottom:6px;color:var(--accent-dark);letter-spacing:.16em}.scribe-card h2{margin:0 0 8px;font-family:var(--font-folio),"Songti SC",serif;font-size:28px;font-weight:400;line-height:1.15}.scribe-card>p:not(.eyebrow){margin:0 0 14px;color:#5e675e;font-size:13px;line-height:1.7}.scribe-card .button{width:100%;margin-top:12px}.scribe-card.is-busy:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(223,91,63,.16) 50%,transparent 70%);animation:scribe-sheen 1.15s ease infinite;pointer-events:none}.cover-plate{position:relative;min-height:280px;padding:22px 20px 16px;overflow:hidden;color:#f6f2e8;background:radial-gradient(320px 180px at 100% 0,rgba(223,91,63,.34),transparent 62%),linear-gradient(165deg,#243028,#121815 74%);box-shadow:0 18px 40px rgba(0,0,0,.28)}.cover-plate:after{content:"";position:absolute;inset:10px;border:1px solid rgba(246,242,232,.16);pointer-events:none}.cover-seal{position:absolute;z-index:1;top:20px;right:20px;display:grid;width:64px;min-height:64px;padding:6px;place-items:center;border:1.5px solid rgba(223,91,63,.9);color:#f0a090;font-family:var(--font-folio),"Songti SC",serif;font-size:15px;line-height:1.15;white-space:pre-line;text-align:center;transform:rotate(8deg)}.cover-kicker{color:#e7b2a6;font-size:11px;font-weight:800;letter-spacing:.16em}.cover-kicker,.cover-title{position:relative;z-index:1;margin:0 0 12px}.cover-title{max-width:9em;font-family:var(--font-folio),"Songti SC",serif;font-size:34px;line-height:1.2;overflow-wrap:anywhere}.cover-plate.is-blank .cover-title{color:rgba(246,242,232,.42)}.cover-excerpt,.cover-intro{position:relative;z-index:1;margin:0 0 12px;color:#d5ddd2;font-family:var(--font-manuscript),"Songti SC","Noto Serif SC",serif;font-size:13px;line-height:1.75}.cover-intro{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4}.cover-excerpt{padding-top:10px;border-top:1px solid rgba(246,242,232,.12);color:#b7c2b6}.cover-marks{flex-wrap:wrap;gap:6px}.cover-marks,.cover-stats{position:relative;z-index:1;display:flex}.cover-stats{gap:18px;margin-top:16px;padding-top:12px;border-top:1px solid rgba(246,242,232,.12);color:#aeb8ad;font-size:12px}.cover-stats b{display:block;color:#f6f2e8;font-family:var(--font-folio),"Songti SC",serif;font-size:20px;font-weight:400;line-height:1.2}.atelier-error{margin:0;padding:12px 14px;border-radius:4px;background:#fff1ec;color:#78392d}.atelier-dock{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:2px 16px 16px 2px;background:#f6f3ea;color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 18px 40px rgba(0,0,0,.2)}.dock-note{margin:0;color:#5c655c;font-size:13px}.dock-actions{display:flex;gap:8px}@keyframes folio-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes scribe-sheen{0%{transform:translateX(-42%)}to{transform:translateX(42%)}}@media (prefers-reduced-motion:reduce){.cover-plate,.scribe-card,.scribe-card.is-busy:after,.sheet{animation:none}}@media (max-width:860px){.atelier-stage{display:flex;flex-direction:column;width:min(100% - 28px,720px);padding-top:18px}.atelier-hero{flex-direction:column;align-items:flex-start;min-height:0}.folio-index{justify-content:flex-start;max-width:none}.atelier-rail{position:static;max-height:none;overflow:visible}.atelier-compass{display:none}.cover-plate{min-height:0}.cover-excerpt,.cover-intro{display:none}.cover-title{font-size:28px}.world-atelier .topbar-meta{display:none}.sheet{padding:20px 16px 18px}.scribe-card h2,.sheet-head h2{font-size:26px}.atelier-dock{align-items:stretch;flex-wrap:wrap}.dock-actions{width:100%}.dock-actions .button{flex:1 1}}