/* A single visual shell for the book, stories, writing and delivery. */
@media screen {
:root{--ink:#272825;--muted:#686b63;--green:#303f37;--soft:#e9e7df;--paper:#fffdf7;--bg:#f3f0e8;--line:#d5d1c5;--radius:0;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:16px;line-height:1.65}
body{background:var(--bg)}button,input,textarea,select{border-radius:2px}button{font-weight:500;min-height:44px}button:disabled{cursor:not-allowed}.primary{background:var(--green);border-color:var(--green)}.primary:hover{background:#202e27}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a55135;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #a55135;outline-offset:3px;border-color:#a55135}h1,h2,h3{font-family:Georgia,"Noto Serif CJK SC","Songti SC",SimSun,serif;font-weight:400}.hint{font-size:14px;line-height:1.8}.eyebrow{font-size:11px;letter-spacing:.14em;color:var(--muted)}.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}.skip-link{position:fixed;left:16px;top:-80px;z-index:100;background:var(--paper);padding:12px}.skip-link:focus{top:8px}
.header{background:var(--bg);border-bottom:1px solid var(--line)}.header-inner{max-width:1440px;padding:20px 40px;gap:28px}.brand{display:flex;align-items:center;gap:12px;text-align:left;font-family:Georgia,serif;font-size:17px;font-weight:400;padding:0;flex-shrink:0}.brand-mark{font-size:38px;line-height:1;color:#a55135;letter-spacing:-.07em}.brand small{font-family:Arial,"Microsoft YaHei",sans-serif;font-size:10px;letter-spacing:.15em;margin-top:5px}.project-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:440px;flex:1}.project-select{margin:0;background:transparent;border:0;border-bottom:1px solid var(--line);font-size:13px;min-height:44px;text-overflow:ellipsis}.project-row button{flex-shrink:0;color:var(--muted);font-size:12px}.header-actions{flex-wrap:nowrap;gap:14px}.header select#language{width:105px;border:0;background:transparent;font-size:12px}.workspace-tools{position:relative}.workspace-tools>summary{cursor:pointer;list-style:none;display:flex;align-items:center;min-height:44px;font-size:13px;white-space:nowrap}.workspace-tools>summary::after{content:'+';margin-left:8px;font-size:18px}.workspace-tools[open]>summary::after{content:'−'}.tools-menu{position:absolute;right:0;top:50px;width:270px;padding:18px;background:var(--paper);border:1px solid var(--line);z-index:10;box-shadow:0 8px 22px #27282512;display:grid;gap:8px}.tools-menu button{text-align:left;font-size:14px}.tools-menu .connection{margin:8px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.layout{max-width:1440px;margin:0 auto 60px;padding:0 40px;grid-template-columns:160px minmax(0,1fr);gap:48px}.sidebar{top:24px;padding-top:36px}.rail-caption{font-size:10px;letter-spacing:.13em;color:var(--muted);margin:0 0 26px}.steps{margin:0;gap:0}.step{padding:15px 0;gap:16px;min-height:52px;border-bottom:1px solid var(--line);border-radius:0;font-size:14px}.step b{border:0;border-radius:0;width:auto;height:auto;font-size:10px;font-weight:400;letter-spacing:.08em;color:#8b8c82}.step.active{background:transparent;box-shadow:none;color:var(--ink);font-weight:600}.step.active b{background:transparent;color:#a55135}.step.active::after{content:'•';color:#a55135;margin-left:auto}.rail-note{font-family:Georgia,"Songti SC",SimSun,serif;font-size:15px;line-height:1.9;color:var(--muted);margin-top:42px;max-width:130px}main{min-width:0;padding-top:28px}.workspace-state{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;padding-bottom:13px;border-bottom:1px solid var(--line)}.workspace-state .eyebrow{margin:0}.save-state{margin:0;font-size:11px;color:var(--muted);line-height:1.6;text-align:right;max-width:70%}.card{background:transparent;border:0;border-radius:0;padding:0}.section-head h2{font-size:34px;line-height:1.5}.section-head .hint{max-width:54ch}.bottom-nav{border-top:1px solid var(--line);margin-top:40px;padding-top:16px}.bottom-nav button{font-size:13px}.bottom-nav .primary{background:transparent;color:var(--ink);border-color:transparent}.footnote{font-size:11px;color:var(--muted);margin-top:40px;padding-top:20px;border-top:1px solid var(--line)}
/* The book is the entry point. Configuration lives below its contents. */
.desk-spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);gap:clamp(32px,5vw,80px);align-items:center;padding:16px 0 44px}.desk-intro h1{font-size:clamp(36px,4vw,58px);line-height:1.38;letter-spacing:-.04em;white-space:pre-line;margin:16px 0 24px}.desk-hint{font-size:15px;color:var(--muted);max-width:28em;line-height:1.9}.desk-intro #welcome p{font-size:13px;color:var(--muted);max-width:30ch}.desk-continue{margin-top:22px;min-height:50px;padding:13px 24px;font-size:14px}.demo-link{display:block;font-size:12px;color:var(--muted);padding-left:0;margin-top:4px}.desk-counts{font-size:11px;color:var(--muted);margin-top:28px;letter-spacing:.04em}.book-cover{position:relative;min-height:400px;padding:36px 32px 30px 40px;background:#34423a;color:#f9f4e5;display:flex;flex-direction:column;border-left:8px solid #25372e;max-width:360px;width:100%;justify-self:center;aspect-ratio:3/4}.cover-edition{font-size:10px;letter-spacing:.18em;opacity:.8}.cover-title{margin-top:46px}.cover-title label{font-size:10px;letter-spacing:.12em;color:#d8ddce}.cover-title textarea{font-family:Georgia,"Noto Serif CJK SC","Songti SC",SimSun,serif;background:transparent;border:0;border-radius:0;color:#fff9e8;padding:10px 0;line-height:1.55;font-size:30px;resize:none;width:100%;min-height:150px}.cover-title textarea::placeholder{color:#d9decf;opacity:1}.cover-title textarea:focus{outline-color:#e5c198}.cover-rule{height:1px;width:45px;background:#c4ae80;margin:12px 0 24px}.book-cover #coverAuthor{font-size:12px;overflow-wrap:anywhere}.cover-imprint{font-family:Georgia,serif;font-size:11px;letter-spacing:.05em;margin-top:auto;padding-top:30px;color:#d8ddce}.desk-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px}.desk-section-head h2{font-size:25px}.desk-section-head button{font-size:12px;color:var(--muted)}.desk-contents{margin-top:20px}.desk-contents ol{padding:0;margin:0;list-style:none}.desk-chapter{display:flex;align-items:center;gap:22px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:22px 0}.desk-chapter:hover{background:#e9e5db}.desk-chapter-number{font-family:Georgia,serif;font-size:14px;color:#8a715a}.desk-chapter-copy{display:grid;gap:4px;min-width:0}.desk-chapter strong{font-family:Georgia,"Songti SC",SimSun,serif;font-size:21px;font-weight:400;overflow-wrap:anywhere}.desk-chapter small{font-size:11px;color:var(--muted)}.desk-arrow{margin-left:auto;color:#8a715a}.desk-contents #deskEmpty{padding:24px 0;max-width:52ch}.book-settings{margin-top:40px;border-block:1px solid var(--line)}.book-settings>summary{font-size:13px;cursor:pointer;min-height:52px;padding:16px 0;line-height:1.6}.settings-content{padding:24px 0 32px;max-width:720px}.scene-option{border-radius:0;background:transparent;padding:14px}.scene-option:has(input:checked){background:#e8e6dc;border-color:#626d59;box-shadow:none}.scene-option strong{font-size:14px}.scene-option small{font-size:12px}.scene-option input{accent-color:var(--green)}.settings-content input,.settings-content select{background:var(--paper)}
/* One question at a time; the sourcebook is a separate, reachable view. */
.story-switch{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:32px}.story-switch button{border:0;border-radius:0;background:transparent;color:var(--muted);padding:12px 0;font-size:13px}.story-switch button[aria-pressed=true]{color:var(--ink);box-shadow:inset 0 -2px #a55135}.editorial-sources #interviewView{max-width:700px;margin-inline:auto}.editorial-sources #interviewView .section-head{margin-bottom:28px}.editorial-sources #interviewView .section-head h2{font-size:32px}.question-box{padding:26px 0 18px;margin:0;background:none;border:0;border-radius:0;border-top:1px solid var(--line)}.question-box small{font-size:11px;color:#91684b;letter-spacing:.1em}.question-box p{font-family:Georgia,"Noto Serif CJK SC","Songti SC",SimSun,serif;font-size:28px;line-height:1.7;max-width:100%;margin-top:16px;overflow-wrap:anywhere}.editorial-sources .field label{font-size:12px;font-weight:400;color:var(--muted)}#answer{font-family:Georgia,"Noto Serif CJK SC","Songti SC",SimSun,serif;font-size:19px;line-height:1.9;background:var(--paper);border:1px solid var(--line);padding:24px;min-height:250px}.editorial-sources #interviewView>.row{gap:8px}.editorial-sources #interviewView>.row button{font-size:12px;padding:10px 12px}.editorial-sources #interviewView>.row button[data-action=saveAnswer]{font-size:14px;padding-inline:24px}.editorial-sources #interviewView>.row button[data-action=askAI],.editorial-sources #voiceButton{background:transparent;border-color:transparent;color:var(--muted)}.interview-next{border-top:1px solid var(--line);margin-top:32px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.interview-next button{font-size:12px}.editorial-sources #archiveView{max-width:800px;margin-inline:auto}.source-search-label{font-size:14px}.source-search-row input{background:var(--paper)}.source-record{border-color:var(--line)}.source-record>summary{padding-block:24px}.source-title{font-family:Georgia,"Songti SC",SimSun,serif;font-size:21px}.source-excerpt{font-size:14px;line-height:1.9;color:var(--muted)}.source-id{font-size:11px;letter-spacing:.08em;color:#91684b}.source-inclusion{font-size:11px;border:1px solid var(--line);padding:2px 6px}.source-content{font-family:Georgia,"Songti SC",SimSun,serif;line-height:1.9}.source-body .tools button{min-height:44px}.source-body .material-choice{padding:12px;background:var(--paper)}.source-body .material-choice input{width:20px;height:20px}.subsection{border-color:var(--line)}.notice{background:#eae6da;font-size:13px;line-height:1.8;border-radius:0}
/* A manuscript, with tools at its edge rather than above the first paragraph. */
.editorial-writing .section-head{margin-bottom:22px}.editorial-writing .section-head .eyebrow{font-size:10px}.editorial-writing .section-head h2{font-size:30px;overflow-wrap:anywhere}.chapter-toolbar{margin:0 0 28px;justify-content:flex-start;gap:8px;border-block:1px solid var(--line);padding:12px 0}.chapter-toolbar select{background:transparent;border:0;max-width:none;flex:1 1 180px;font-size:14px}.chapter-toolbar button{font-size:12px;background:transparent;border-color:transparent;padding-inline:8px}.chapter-position{font-size:11px;color:#91684b}.writing-save-state{display:none}.editorial-writing #chapterEditor{background:var(--paper);padding:40px clamp(24px,5vw,72px);border:1px solid var(--line);max-width:850px;margin-inline:auto}.editorial-writing #chapterEditor>.row:first-child{border-bottom:1px solid var(--line);padding-bottom:20px;font-size:11px}.badge{font-size:11px;border-radius:0;background:#eeeee4}.editorial-writing #chapterOrigin{font-size:11px}.editorial-writing #chapterEditor .field{max-width:650px;margin-inline:auto;margin-top:30px}.editorial-writing #chapterEditor .field label{font-size:11px;font-weight:400;color:var(--muted)}#editChapterTitle{font-family:Georgia,"Songti SC",SimSun,serif;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0;font-size:32px;line-height:1.5;padding:8px 0 16px}#chapterText{font-family:Georgia,"Noto Serif CJK SC","Songti SC",SimSun,serif;border:1px solid transparent;border-radius:0;background:transparent;font-size:19px;line-height:2;padding:8px 0;min-height:480px}.editorial-writing #chapterEditor>.row.spaced{border-top:1px solid var(--line);padding-top:22px;margin-top:28px}.review-send-notice{font-size:12px;color:var(--muted);width:100%}.editorial-writing #chapterEditor>.row.spaced button{font-size:12px}.chapter-composer{border-block:1px solid var(--line);margin-top:32px}.chapter-composer>summary,.other-methods>summary{min-height:48px;padding:16px 0;font-size:13px;cursor:pointer}.composer-content{padding:0 0 24px}.composer-content input{background:var(--paper)}.composer-content .notice{background:transparent;padding:0}.editorial-writing .empty{font-family:Georgia,"Songti SC",SimSun,serif;font-size:24px;text-align:left;padding:42px 0;line-height:1.8;max-width:26ch}.editorial-writing:has(#noChapter:not([hidden])) .chapter-toolbar select,.editorial-writing:has(#noChapter:not([hidden])) #chapterFinderButton{display:none}.chapter-text:focus{scroll-margin-top:40px}
.editorial-export{max-width:850px;margin-inline:auto}.manuscript-overview{background:var(--paper);padding:30px;border:1px solid var(--line)}.manuscript-title{font-family:Georgia,"Songti SC",SimSun,serif;font-size:36px;font-weight:400}.manuscript-note{font-size:14px;line-height:1.8}.manuscript-scope{font-size:12px;color:var(--muted)}.manuscript-chapter-title{font-family:Georgia,"Songti SC",SimSun,serif;font-size:20px}.export-option{padding-block:28px;border-color:var(--line)}.export-option h3{font-size:22px}.export-option button{font-size:13px}.editorial-export .checklist{font-size:14px;line-height:1.9}.save-recovery{border-radius:0;margin-bottom:24px}.save-recovery button{min-height:44px}.chapter-focus{background:var(--bg)}.chapter-focus #chapterEditor{border:0;box-shadow:none}.focus-page{background:var(--paper)}.chapter-focus #chapterText{min-height:55vh}dialog{border-radius:3px;background:var(--paper)}
}
@media screen and (max-width:1000px){.layout{grid-template-columns:130px minmax(0,1fr);gap:28px;padding-inline:28px}.header-inner{padding-inline:28px}.brand{font-size:14px}.desk-spread{gap:26px}.book-cover{min-height:350px;padding-inline:24px}.cover-title textarea{font-size:26px}.desk-intro h1{font-size:36px}.rail-note{font-size:13px}}
@media screen and (max-width:700px){
.header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:14px 22px 10px;gap:10px}.brand{font-size:14px;gap:8px}.brand-mark{font-size:30px}.brand small{font-size:9px;letter-spacing:.08em}.header-actions{gap:6px}.header select#language{width:78px;padding-inline:0;font-size:11px}.workspace-tools>summary{font-size:11px}.workspace-tools>summary::after{margin-left:3px}.project-row{grid-column:1/-1;grid-row:2;max-width:none}.project-select{font-size:12px;min-height:36px;padding:3px 0;border-bottom:0}.project-row button{font-size:11px;min-height:44px;padding:4px 8px}.layout{display:block;padding:0 22px;margin:0 auto 100px}.sidebar{padding:0;position:static}.rail-caption,.rail-note{display:none}.steps{position:fixed;bottom:0;left:0;right:0;padding:7px 12px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--bg);border-top:1px solid var(--line);z-index:5;gap:4px}.step{display:flex;flex-direction:column;gap:1px;padding:6px 2px;border:0;min-height:50px;text-align:center;font-size:12px;line-height:1.4}.step b{font-size:9px}.step.active{box-shadow:inset 0 2px #a55135}.step.active::after{display:none}main{padding-top:18px;scroll-margin-top:10px}.workspace-state{margin-bottom:24px;padding-bottom:10px;align-items:flex-start;gap:8px}.workspace-state .eyebrow{font-size:10px;letter-spacing:.06em}.save-state{font-size:10px;max-width:76%}.card{padding:0}.desk-spread{display:flex;flex-direction:column;gap:26px;padding:0 0 28px;align-items:stretch}.desk-intro .eyebrow{display:none}.desk-intro h1{font-size:34px;line-height:1.4;margin:0 0 12px;letter-spacing:-.04em}.desk-hint{font-size:13px;margin:8px 0;line-height:1.8;max-width:32ch}.desk-intro #welcome p{font-size:12px;margin:8px 0}.desk-continue{margin-top:12px;min-height:48px;font-size:13px;width:100%;padding:12px 18px}.demo-link{display:inline-block;font-size:11px;min-height:44px;margin:0}.desk-counts{display:inline;font-size:10px;float:right;margin-top:14px}.book-cover{max-width:none;aspect-ratio:auto;min-height:230px;padding:24px 26px;border-left-width:7px;align-self:stretch}.cover-edition{font-size:9px}.cover-title{margin-top:18px}.cover-title textarea{font-size:27px;line-height:1.5;min-height:88px;height:88px;padding:4px 0}.cover-title label{font-size:9px}.cover-rule{margin:12px 0 14px;width:32px}.cover-imprint{position:absolute;right:24px;bottom:24px;padding:0;font-size:10px}.book-cover #coverAuthor{max-width:50%;font-size:11px}.desk-contents{margin-top:10px}.desk-section-head{gap:8px;padding-bottom:12px}.desk-section-head h2{font-size:22px}.desk-section-head button{font-size:11px;padding-inline:0}.desk-chapter{padding-block:20px;gap:16px}.desk-chapter strong{font-size:20px}.desk-chapter small{font-size:10px}.book-settings{margin-top:28px}.book-settings>summary{font-size:12px}.scene-grid{grid-template-columns:1fr}.settings-content .grid{grid-template-columns:1fr;gap:0}.settings-content .section-head h2{font-size:25px}.settings-content label{font-size:13px}.story-switch{margin-bottom:24px;gap:24px}.story-switch button{font-size:12px}.section-head h2,.editorial-sources #interviewView .section-head h2{font-size:27px}.section-head .hint{font-size:13px}.editorial-sources #interviewView .section-head{margin-bottom:20px}.question-box{padding:20px 0 10px}.question-box p{font-size:23px;line-height:1.7;margin-top:12px}.question-box small{font-size:10px}#answer{padding:18px;font-size:18px;min-height:240px}.editorial-sources #interviewView>.row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:16px}.editorial-sources #interviewView>.row button[data-action=saveAnswer]{font-size:13px;padding-inline:12px}.interview-next{align-items:flex-start;flex-direction:column;gap:0}.source-search-row{flex-wrap:wrap}.source-search-row input{flex-basis:100%}.source-search-row button{margin-left:auto}.source-title{font-size:20px}.source-body{padding-bottom:20px}.chapter-toolbar{padding:8px 0;margin-bottom:20px;gap:4px}.chapter-position{font-size:10px;width:100%}.chapter-toolbar select{flex-basis:100%;font-size:14px;padding-left:0;min-height:44px}.chapter-toolbar button{min-height:44px;font-size:12px;padding:8px 6px}.editorial-writing .section-head{margin-bottom:18px}.editorial-writing .section-head h2{font-size:27px}.editorial-writing .section-head .eyebrow{font-size:10px}.editorial-writing #chapterEditor{padding:24px 0;background:transparent;border:0;border-top:2px solid #797c6c}.editorial-writing #chapterEditor>.row:first-child{padding-bottom:16px;gap:8px}.editorial-writing #chapterEditor .field{margin-top:22px}.editorial-writing #chapterEditor .field label{font-size:10px}#editChapterTitle{font-size:27px}#chapterText{font-size:18px;line-height:1.95;min-height:380px}.editorial-writing #chapterEditor>.row.spaced button{min-height:44px;flex:1 1 auto}.chapter-composer>summary{font-size:12px}.editorial-writing .empty{font-size:22px;padding-block:30px}.manuscript-overview{padding:22px}.manuscript-title{font-size:28px}.manuscript-chapter{gap:10px}.manuscript-chapter button{font-size:12px}.export-option{grid-template-columns:1fr;gap:12px}.export-option h3{font-size:22px}.export-option button{justify-self:start;max-width:100%}.bottom-nav{margin-top:28px}.footnote{font-size:10px;line-height:1.8;margin-top:24px}.chapter-focus .focus-page{padding-inline:22px}.chapter-focus #chapterEditor{padding-inline:0}.workspace-tools .tools-menu{right:0;width:min(280px,calc(100vw - 44px))}
}
@media screen and (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media screen{.interview-tools{margin-top:12px}.interview-tools>summary{cursor:pointer;font-size:12px;color:var(--muted);min-height:44px;padding-block:12px}.interview-tools>.row button{font-size:12px}.interview-tools>.hint{font-size:12px}.brand{min-width:0}.brand>span:last-child{min-width:0}.project-select{flex:1}.private-edition .project-row{max-width:440px}.private-edition .demo-link{display:none}.private-edition .desk-intro:has(#welcome:not([hidden])) .demo-link{display:block}}
@media screen and (max-width:700px){#answer{min-height:180px}.interview-actions{position:sticky;bottom:74px;background:var(--bg);z-index:2;padding:8px 0;margin-top:8px!important}.private-edition .project-row{max-width:none}.private-edition .desk-intro:has(#welcome:not([hidden])) .demo-link{display:inline-block}textarea,input,select{scroll-margin-block:30px 150px}.tools-menu .connection{font-size:12px}.book-cover textarea{font-size:26px}.cover-title label{line-height:1.7}}
@media screen and (max-width:700px){.project-select,.header select#language{min-height:44px}.interview-actions{scroll-margin-bottom:90px}}
@media screen and (max-width:700px){.toast{bottom:calc(84px + env(safe-area-inset-bottom));border-radius:2px;font-size:13px}}
@media screen and (max-width:700px){.editorial-writing .section-head .eyebrow{display:none}.editorial-writing .section-head h2{font-size:23px}.editorial-writing .section-head{margin-bottom:14px}.chapter-position{width:auto;flex:0 0 auto}.chapter-toolbar select{flex:1 1 calc(100% - 100px);width:0}.chapter-toolbar{gap:4px 10px}}
