@import"https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap";:root{font-family:"Source Sans 3",Microsoft YaHei,sans-serif;color:#292722;background:#f3f0e9;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #292722;--muted: #7b776e;--faint: #aaa49a;--paper: #fbfaf6;--paper-deep: #f3f0e8;--line: #ded9ce;--line-soft: #ebe7df;--accent: #b75d3f;--accent-dark: #98472f;--accent-pale: #f3e3dc;--green: #4e725e;--shadow: 0 12px 38px rgb(51 45 36 / 8%)}*{box-sizing:border-box}html,body,#app{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;background:radial-gradient(circle at 5% 0%,rgb(184 113 80 / 8%),transparent 26rem),#f3f0e9}button,input,textarea,select{font:inherit}button{color:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid rgb(183 93 63 / 45%);outline-offset:2px}button:disabled{cursor:not-allowed!important;opacity:.48}.app-shell{min-height:100vh}.topbar{height:66px;padding:0 38px;display:flex;align-items:center;gap:34px;border-bottom:1px solid var(--line);background:#fbfaf6e5;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);position:sticky;z-index:30;top:0}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;margin-right:auto}.brand-mark{width:35px;height:35px;display:grid;place-items:center;border-radius:10px 10px 10px 3px;color:#fff;background:var(--accent);box-shadow:0 5px 15px #b75d3f40}.brand>span:last-child{display:flex;line-height:1;flex-direction:column;gap:4px}.brand strong{font-family:"Noto Serif SC",serif;font-size:17px;letter-spacing:.08em}.brand small{color:var(--faint);font-size:8px;letter-spacing:.22em}.topnav{display:flex;align-items:center;align-self:stretch}.topnav a{min-width:90px;padding:0 16px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:14px;text-decoration:none;border-bottom:2px solid transparent}.topnav a:hover,.topnav a.active{color:var(--accent)}.topnav a.active{border-bottom-color:var(--accent)}.local-badge{padding:6px 10px;display:flex;align-items:center;gap:7px;color:var(--green);font-size:12px;border:1px solid #cad8ce;border-radius:20px;background:#f2f7f3}.status-dot{width:6px;height:6px;border-radius:50%;background:#5e9270;box-shadow:0 0 0 3px #5e927021}.app-main{min-height:calc(100vh - 66px)}.button{height:40px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;font-weight:600;font-size:14px;white-space:nowrap;transition:transform .18s,box-shadow .18s,border-color .18s,background .18s}.button:hover:not(:disabled){transform:translateY(-1px)}.button.primary{color:#fff;background:var(--accent);box-shadow:0 6px 16px #b75d3f33}.button.primary:hover:not(:disabled){background:var(--accent-dark);box-shadow:0 8px 20px #b75d3f45}.button.secondary{border-color:#d4c8bb;background:#fff}.button.ghost{color:var(--muted);border-color:var(--line);background:#ffffff73}.button.danger-outline{color:#a8483e;border-color:#dfb5ae;background:#fff8f7}.button.large{height:47px;padding:0 21px}.button.small{height:33px;padding:0 12px;font-size:12px}.icon-button{width:34px;height:34px;padding:0;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;cursor:pointer}.icon-button:hover{background:var(--paper-deep)}.icon-button.danger:hover{color:#ad433b;background:#fff0ed}.icon-text-button{display:flex;align-items:center;gap:6px;color:var(--muted);white-space:nowrap;border:0;background:none;cursor:pointer}.icon-text-button:hover{color:var(--accent)}.eyebrow{display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.home-view{max-width:1250px;margin:0 auto;padding:62px 34px 80px}.hero{min-height:390px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center}.hero-copy{max-width:600px;padding-left:28px}.hero h1{margin:18px 0 20px;font-family:"Noto Serif SC",serif;font-size:clamp(42px,5vw,67px);font-weight:600;line-height:1.24;letter-spacing:-.055em}.hero h1 em{color:var(--accent);font-style:normal;position:relative}.hero h1 em:after{content:"";height:6px;position:absolute;left:3px;right:-3px;bottom:-2px;border-radius:50%;border-top:2px solid rgb(183 93 63 / 52%);transform:rotate(-2deg)}.hero-copy>p{max-width:490px;color:var(--muted);font-size:16px;line-height:1.9}.hero-actions{margin-top:30px;display:flex;gap:12px}.hero-art{height:350px;position:relative;display:grid;place-items:center;perspective:1000px}.paper{width:250px;height:310px;position:absolute;border:1px solid #ded6c7;border-radius:2px 10px 10px 2px;background:#fffdf8;box-shadow:0 22px 50px #43372a24}.paper-back{transform:translate(32px,-10px) rotate(8deg);background:#e8dfd1}.paper-front{padding:38px 36px;color:#3e3932;transform:rotate(-4deg)}.paper-front:before{content:"";position:absolute;width:5px;left:12px;top:0;bottom:0;background:var(--accent);opacity:.8}.paper-kicker{color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.18em}.paper-title{margin:14px 0;font-family:"Noto Serif SC",serif;font-size:25px;line-height:1.5}.paper-rule{width:28px;height:2px;margin:14px 0 19px;background:var(--accent)}.paper-lines{display:flex;flex-direction:column;gap:10px}.paper-lines i{display:block;height:3px;border-radius:5px;background:#e6e0d5}.paper-lines i:nth-child(2){width:86%}.paper-lines i:nth-child(4){width:92%}.paper-lines i:nth-child(5){width:63%}.paper-front>svg{position:absolute;right:30px;bottom:25px;color:#d1c8ba}.ink-orbit{width:48px;height:48px;position:absolute;right:65px;top:38px;display:grid;place-items:center;color:#fff;border-radius:50%;background:var(--accent);box-shadow:0 8px 20px #b75d3f40}.home-toolbar{margin:50px 0 22px;padding-top:30px;display:flex;align-items:end;justify-content:space-between;border-top:1px solid var(--line)}.home-toolbar h2,.section-heading h2{margin:0;font-family:"Noto Serif SC",serif;font-size:23px}.home-toolbar p,.section-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}.toolbar-actions{display:flex;gap:14px}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.project-card,.new-project-card{min-height:190px;display:flex;border:1px solid var(--line);border-radius:11px;background:var(--paper);overflow:hidden;box-shadow:0 5px 18px #3932290a;transition:transform .2s,box-shadow .2s,border-color .2s}.project-card{cursor:pointer}.project-card:hover,.new-project-card:hover{transform:translateY(-3px);border-color:#cfc5b8;box-shadow:var(--shadow)}.project-cover{width:112px;flex:0 0 auto;padding:17px;display:flex;flex-direction:column;justify-content:space-between;color:#ffffffe5;background:#7d6a5a}.project-cover:after{content:"";width:22px;height:1px;display:block;position:absolute;background:currentColor}.project-cover span{font-family:"Noto Serif SC",serif;font-size:13px;writing-mode:vertical-rl;letter-spacing:.2em}.project-cover svg{align-self:end;opacity:.55}.cover-1{background:#536a62}.cover-2{background:#775862}.cover-3{background:#4f6474}.project-info{min-width:0;flex:1;padding:21px 18px 17px;display:flex;flex-direction:column;justify-content:space-between}.project-heading{display:flex;align-items:start;justify-content:space-between;gap:8px}.project-heading>div{min-width:0}.project-heading h3{margin:0 0 8px;overflow:hidden;font-family:"Noto Serif SC",serif;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.project-heading p{height:38px;margin:0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.6}.project-meta{padding-top:13px;display:flex;align-items:center;justify-content:space-between;color:var(--faint);font-size:11px;border-top:1px solid var(--line-soft)}.project-meta span{display:flex;align-items:center;gap:4px}.new-project-card{flex-direction:column;align-items:center;justify-content:center;color:var(--muted);border-style:dashed;cursor:pointer}.new-project-card>span{width:45px;height:45px;margin-bottom:12px;display:grid;place-items:center;color:var(--accent);border-radius:50%;background:var(--accent-pale)}.new-project-card strong{color:var(--ink)}.new-project-card small{margin-top:5px;color:var(--faint)}.empty-projects{padding:65px 20px;text-align:center;border:1px dashed #ccc4b7;border-radius:12px;background:#fbfaf694}.empty-icon,.stage-empty>div{width:62px;height:62px;margin:0 auto 16px;display:grid;place-items:center;color:var(--accent);border-radius:50%;background:var(--accent-pale)}.empty-projects h3,.stage-empty h3{margin:0 0 7px;font-family:"Noto Serif SC",serif}.empty-projects p,.stage-empty p{margin:0 0 22px;color:var(--muted)}.modal-backdrop{padding:20px;position:fixed;z-index:100;inset:0;display:grid;place-items:center;background:#1e1c187a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-card{width:min(500px,100%);padding:34px;border:1px solid var(--line);border-radius:14px;background:var(--paper);box-shadow:0 24px 70px #201c1640}.modal-card h2{margin:9px 0 6px;font-family:"Noto Serif SC",serif;font-size:25px}.modal-card>p{margin:0 0 24px;color:var(--muted)}.modal-actions{margin-top:24px;display:flex;justify-content:end;gap:9px}.field{min-width:0;display:flex;flex-direction:column;gap:7px}.field>span,.provider-name>span{color:#5f5a52;font-size:12px;font-weight:600}.field>span{display:flex;justify-content:space-between}.field>span em{color:var(--faint);font-style:normal;font-weight:400}.field input,.field textarea,.field select,.provider-name input,.url-input-row input{width:100%;color:var(--ink);border:1px solid #d8d2c7;border-radius:7px;background:#fff;transition:border-color .15s,box-shadow .15s}.field input,.field select,.provider-name input,.url-input-row input{height:41px;padding:0 12px}.field textarea{padding:10px 12px;line-height:1.7;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus,.provider-name input:focus,.url-input-row input:focus{border-color:#b75d3fa6;outline:0;box-shadow:0 0 0 3px #b75d3f14}.inline-alert,.work-alert{color:#9b4037;border:1px solid #e5beb8;background:#fff3f1}.inline-alert{padding:10px 13px;border-radius:7px}.page-container{max-width:1060px;margin:0 auto;padding:54px 30px 80px}.page-heading{margin-bottom:28px;display:flex;align-items:end;justify-content:space-between}.page-heading h1{margin:10px 0 5px;font-family:"Noto Serif SC",serif;font-size:36px}.page-heading p{margin:0;color:var(--muted)}.security-notice{margin-bottom:42px;padding:17px 19px;display:flex;align-items:start;gap:13px;color:#3f674e;border:1px solid #c8d9cd;border-radius:9px;background:#f1f6f2}.security-notice div{flex:1}.security-notice strong{font-size:13px}.security-notice p{margin:4px 0 0;color:#668071;font-size:12px;line-height:1.6}.section-heading{margin:0 0 17px;display:flex;align-items:end;justify-content:space-between}.provider-list{display:flex;flex-direction:column;gap:15px}.provider-card{padding:22px;border:1px solid var(--line);border-radius:11px;background:var(--paper);box-shadow:0 4px 16px #3d362c0a}.provider-card-head{margin-bottom:21px;padding-bottom:18px;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line-soft)}.provider-icon{width:39px;height:39px;display:grid;place-items:center;color:var(--accent);border-radius:9px;background:var(--accent-pale)}.provider-name{flex:1;display:flex;align-items:center;gap:10px}.provider-name input{max-width:260px;font-weight:600}.switch{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;cursor:pointer}.switch input{position:absolute;opacity:0}.switch>span{width:31px;height:18px;padding:2px;border-radius:10px;background:#c9c5bd;transition:background .2s}.switch>span:after{content:"";width:14px;height:14px;display:block;border-radius:50%;background:#fff;transition:transform .2s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{transform:translate(13px)}.provider-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.span-2{grid-column:span 2}.input-with-action{position:relative}.input-with-action input{padding-right:38px}.input-with-action button{width:36px;position:absolute;right:1px;top:1px;bottom:1px;display:grid;place-items:center;color:var(--muted);border:0;background:#fff;cursor:pointer}.field input[type=range]{padding:0;accent-color:var(--accent);border:0;background:transparent}.test-connection{grid-column:span 4;display:flex;align-items:center;gap:12px}.test-connection>span{display:flex;align-items:center;gap:5px;font-size:12px}.success-text{color:var(--green)}.error-text{color:#a4423a}.model-routing-heading{margin-top:44px}.routing-card{border:1px solid var(--line);border-radius:11px;background:var(--paper);overflow:hidden}.routing-row{min-height:70px;padding:13px 19px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line-soft)}.routing-row:last-child{border-bottom:0}.routing-row>div{display:flex;flex-direction:column;gap:3px}.routing-row strong{font-size:14px}.routing-row span{color:var(--muted);font-size:12px}.select-wrap{position:relative}.select-wrap select{width:310px;height:39px;padding:0 35px 0 11px;border:1px solid #d8d2c7;border-radius:7px;background:#fff;appearance:none}.select-wrap svg{position:absolute;right:11px;top:12px;pointer-events:none}.danger-zone{margin-top:44px;padding-top:25px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line)}.danger-zone>div{display:flex;align-items:center;gap:12px;color:#a84d43}.danger-zone span{display:flex;flex-direction:column}.danger-zone small{margin-top:3px;color:var(--muted)}.spinning{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.workspace{height:calc(100vh - 66px);display:grid;grid-template-columns:235px minmax(500px,1fr) 260px;background:var(--paper);overflow:hidden}.workspace-loading{min-height:calc(100vh - 66px);display:grid;place-content:center;justify-items:center;gap:12px;color:var(--muted)}.work-nav{min-height:0;padding:19px 13px 16px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#eeeae2}.back-link{margin:0 6px 17px;padding:4px 0;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;border:0;background:none;cursor:pointer}.back-link:hover{color:var(--accent)}.project-title-block{margin:0 5px 17px;padding-bottom:17px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #d8d3c9}.mini-cover{width:38px;height:43px;flex:0 0 auto;display:grid;place-items:center;color:#f4ece5;border-radius:4px 8px 8px 4px;background:#766255}.project-title-block div{min-width:0;display:flex;flex-direction:column}.project-title-block input{width:100%;padding:2px 0;overflow:hidden;font-family:"Noto Serif SC",serif;font-weight:600;text-overflow:ellipsis;border:0;background:transparent}.project-title-block small{margin-top:4px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.work-stage-nav{display:flex;flex-direction:column;gap:3px}.work-stage-nav button{height:38px;padding:0 10px;display:flex;align-items:center;gap:9px;color:#625f58;border:0;border-radius:6px;background:transparent;cursor:pointer;font-size:13px;text-align:left}.work-stage-nav button svg:last-child{margin-left:auto;opacity:0}.work-stage-nav button:hover{background:#ffffff73}.work-stage-nav button.active{color:var(--accent-dark);background:#fbf8f2;box-shadow:0 2px 7px #3c342b0d}.work-stage-nav button.active svg:last-child{opacity:1}.work-stage-nav .mobile-writing-entry{display:none}.chapter-nav{min-height:0;margin-top:18px;padding-top:14px;flex:1;overflow-y:auto;border-top:1px solid #d8d3c9}.chapter-nav-head{padding:0 7px 8px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.12em}.chapter-nav-head button{width:25px;height:25px;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;cursor:pointer}.chapter-nav-head button:hover{background:#fff}.chapter-nav-item{width:100%;height:34px;padding:0 7px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;border:0;border-radius:5px;background:transparent;cursor:pointer}.chapter-nav-item:hover,.chapter-nav-item.active{color:var(--ink);background:#fff9}.chapter-nav-item>span{color:var(--faint);font-size:9px;font-variant-numeric:tabular-nums}.chapter-nav-item em{min-width:0;flex:1;overflow:hidden;font-style:normal;text-align:left;text-overflow:ellipsis;white-space:nowrap}.chapter-nav-item i{width:6px;height:6px;border:1px solid #aaa49a;border-radius:50%}.chapter-nav-item i.drafting{border-color:#bf8744;background:#d9a35e}.chapter-nav-item i.completed{border-color:#568069;background:#649275}.chapter-nav-empty{padding:15px 7px;color:var(--faint);font-size:11px}.export-manuscript{height:34px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px;border:1px solid #d5d0c7;border-radius:6px;background:#ffffff6b;cursor:pointer}.work-main{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--paper)}.work-header{height:48px;padding:0 20px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-soft)}.work-header>div{display:flex;align-items:center;gap:14px}.stage-label{font-size:12px;font-weight:600}.save-state{display:flex;align-items:center;gap:4px;color:var(--faint);font-size:10px}.work-alert{padding:9px 20px;flex:0 0 auto;font-size:12px;border-width:0 0 1px}.editor-page{min-height:0;padding:42px clamp(30px,6vw,75px) 80px;overflow-y:auto}.editor-page-heading{margin-bottom:36px}.editor-page-heading.horizontal{display:flex;align-items:end;justify-content:space-between;gap:30px}.editor-page-heading h1{margin:8px 0;font-family:"Noto Serif SC",serif;font-size:32px;font-weight:600}.editor-page-heading p{margin:0;color:var(--muted);font-size:13px}.heading-actions{display:flex;gap:8px}.form-section{margin-bottom:35px;padding-bottom:34px;border-bottom:1px solid var(--line-soft)}.form-section:last-child{border-bottom:0}.form-section-title{margin-bottom:20px;display:flex;align-items:flex-start;gap:12px}.form-section-title>div{flex:1}.form-section-title>span{width:27px;height:27px;display:grid;place-items:center;color:var(--accent);font-size:10px;font-weight:700;border-radius:50%;background:var(--accent-pale)}.form-section-title h2{margin:0;font-family:"Noto Serif SC",serif;font-size:16px}.form-section-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.setup-ai-button{height:31px;padding:0 11px;flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;color:var(--accent-dark);font-size:11px;font-weight:600;white-space:nowrap;border:1px solid #dfb5a5;border-radius:16px;background:#fff8f4;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}.setup-ai-button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-pale);transform:translateY(-1px)}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three-column{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.two-column.compact{gap:10px}.chip-list{margin-bottom:18px;display:flex;flex-wrap:wrap;gap:8px}.chip-list button{height:32px;padding:0 14px;color:var(--muted);font-size:12px;border:1px solid var(--line);border-radius:17px;background:#fff;cursor:pointer}.chip-list button:hover{border-color:#c6a798}.chip-list button.selected{color:var(--accent-dark);border-color:#dfb5a5;background:var(--accent-pale)}.source-import-card{margin-bottom:25px;padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--paper-deep)}.source-import-title{margin-bottom:13px;display:flex;align-items:center;gap:9px}.source-import-title>svg{color:var(--accent)}.source-import-title>div{display:flex;flex-direction:column}.source-import-title strong{font-size:13px}.source-import-title small{color:var(--muted);font-size:10px}.url-input-row{display:flex;gap:8px}.url-input-row input{flex:1}.source-import-card>p{margin:9px 0 0;color:var(--faint);font-size:10px}.sample-textarea{font-family:"Noto Serif SC",serif;font-size:13px}.style-profile-grid{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.outline-timeline{position:relative}.outline-timeline:before{content:"";width:1px;position:absolute;left:16px;top:16px;bottom:35px;background:#d8cfc2}.outline-act{margin-bottom:18px;display:grid;grid-template-columns:34px 1fr;gap:15px;position:relative}.timeline-marker span{width:33px;height:33px;display:grid;place-items:center;color:#fff;font-family:"Noto Serif SC",serif;font-size:12px;border:4px solid var(--paper);border-radius:50%;background:var(--accent)}.outline-card,.character-card{padding:18px;border:1px solid var(--line);border-radius:9px;background:#fff}.card-actions{display:flex;justify-content:space-between}.card-actions span{color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.15em}.card-actions button,.character-card-head>button,.chapter-plan-head button{padding:3px;color:var(--faint);border:0;background:none;cursor:pointer}.card-actions button:hover,.character-card-head>button:hover,.chapter-plan-head button:hover{color:#a6463d}.title-input{width:100%;margin:4px 0 13px;padding:3px 0;font-family:"Noto Serif SC",serif;font-size:18px;font-weight:600;border:0;border-bottom:1px solid transparent;background:transparent}.title-input:focus{border-bottom-color:var(--line);outline:0}.outline-card .field+.field,.character-card .field+.field{margin-top:12px}.add-block-button{width:calc(100% - 49px);height:43px;margin-left:49px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);border:1px dashed #cec5b8;border-radius:8px;background:transparent;cursor:pointer}.stage-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.stage-empty p{max-width:380px;font-size:13px;line-height:1.7}.stage-empty.full-height{flex:1}.character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.character-card-head{margin-bottom:13px;display:flex;align-items:start;gap:10px}.character-card-head .avatar{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;color:#fff;font-family:"Noto Serif SC",serif;border-radius:50%;background:#75635a}.character-card-head>div{min-width:0;flex:1}.character-card-head .title-input{margin:0;font-size:16px}.role-input{width:100%;padding:0;color:var(--accent);font-size:10px;border:0;background:transparent}.character-card .field>span{font-size:10px}.character-card .field input{height:34px;font-size:12px}.character-card .field textarea{font-size:12px}.chapter-plan-list{display:flex;flex-direction:column;gap:12px}.chapter-plan-card{display:grid;grid-template-columns:50px 1fr;border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.chapter-number{color:var(--accent);font-family:"Noto Serif SC",serif;font-size:17px;border:0;border-right:1px solid var(--line-soft);background:var(--paper-deep);cursor:pointer}.chapter-number:hover{color:#fff;background:var(--accent)}.chapter-plan-content{padding:15px 18px 18px}.chapter-plan-head{display:flex;align-items:start;gap:15px}.chapter-plan-head .title-input{flex:1}.chapter-plan-head>div{display:flex;align-items:center;gap:9px;color:var(--faint);font-size:10px}.writing-page{min-height:0;flex:1;display:flex;flex-direction:column}.writing-toolbar{min-height:55px;padding:0 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-soft)}.writing-toolbar>div:first-child{display:flex;align-items:center;gap:10px}.mobile-writing-back,.mobile-chapter-index-button,.mobile-chapter-index-backdrop{display:none}.writing-toolbar>div:first-child>span{color:var(--accent);font-size:10px;font-weight:700;letter-spacing:.08em}.writing-toolbar input{width:280px;padding:4px;font-family:"Noto Serif SC",serif;font-size:15px;font-weight:600;border:0;background:transparent}.writing-actions{display:flex;gap:3px}.writing-actions button{height:29px;padding:0 8px;display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px;border:0;border-radius:5px;background:transparent;cursor:pointer}.writing-actions button:hover{background:var(--paper-deep)}.manuscript-wrap{min-height:0;flex:1;position:relative}.manuscript-editor{width:100%;height:100%;padding:45px clamp(45px,9vw,115px) 80px;color:#37332e;font-family:"Noto Serif SC",serif;font-size:16px;line-height:2.15;border:0;background:linear-gradient(90deg,transparent calc(100% - 1px),var(--line-soft) 1px) center / calc(100% - clamp(90px,18vw,230px)) 100% no-repeat;outline:0;resize:none}.manuscript-editor::placeholder{color:#c1bbb1}.version-panel{width:235px;padding:13px;position:absolute;z-index:4;right:12px;top:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:var(--shadow)}.version-panel>div{padding:3px 4px 10px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line-soft)}.version-panel>div button{border:0;background:none;cursor:pointer}.version-panel>button{width:100%;padding:9px 4px;display:flex;flex-direction:column;align-items:start;gap:2px;border:0;border-bottom:1px solid var(--line-soft);background:none;cursor:pointer}.version-panel>button:hover{color:var(--accent)}.version-panel small{color:var(--faint)}.version-panel>p{color:var(--faint);font-size:11px}.writing-footer{min-height:55px;padding:0 23px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line-soft)}.writing-footer>span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.context-panel{min-height:0;padding:0 17px 20px;overflow-y:auto;border-left:1px solid var(--line);background:#f7f5f0}.context-head{height:48px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line)}.context-head strong{font-size:12px}.context-head>span{width:7px;height:7px;margin-left:auto;border-radius:50%;background:#c0bcb4}.context-head>span.online{background:#609074}.context-panel section{padding:17px 0;border-bottom:1px solid var(--line)}.context-label{margin-bottom:9px;display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.model-chip{padding:9px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:#fff}.model-chip>span{width:28px;height:28px;display:grid;place-items:center;color:var(--accent);border-radius:6px;background:var(--accent-pale)}.model-chip>div{min-width:0;display:flex;flex-direction:column}.model-chip strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.model-chip small{color:var(--faint);font-size:9px}.missing-model{width:100%;padding:9px;color:#a0473e;font-size:10px;border:1px dashed #dbb4ae;border-radius:6px;background:#fff5f3;cursor:pointer}.context-section-head{display:flex;justify-content:space-between}.context-section-head button{color:var(--muted);border:0;background:none;cursor:pointer}.lock-status{width:100%;padding:8px;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}.lock-status.locked{color:var(--green);border-color:#c8d9cd;background:#f2f7f3}.context-checklist{margin:0;padding:0;display:flex;flex-direction:column;gap:9px;list-style:none}.context-checklist li{display:flex;align-items:center;gap:7px;color:var(--faint);font-size:11px}.context-checklist li svg{padding:2px;border:1px solid #cbc6bd;border-radius:50%}.context-checklist li.done{color:#4f6d5a}.context-checklist li.done svg{color:#fff;border-color:#668570;background:#668570}.context-checklist li em{margin-left:auto;font-style:normal}.chapter-context{margin:0 0 12px;color:#68635c;font-family:"Noto Serif SC",serif;font-size:11px;line-height:1.7}.context-stats{margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.context-stats div{padding:7px 4px;display:flex;flex-direction:column;gap:2px;text-align:center;border-radius:5px;background:#eeebe4}.context-stats dt{color:var(--faint);font-size:8px}.context-stats dd{margin:0;font-size:9px}.context-tip{margin-top:16px;padding:10px;display:flex;align-items:start;gap:7px;color:#8a695b;border-radius:7px;background:#efe5de}.context-tip svg{flex:0 0 auto}.context-tip p{margin:0;font-size:9px;line-height:1.55}@media(max-width:1100px){.workspace{grid-template-columns:220px minmax(480px,1fr)}.context-panel{display:none}.project-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:780px){.topbar{height:58px;padding:0 16px}.local-badge{display:none}.topnav a{min-width:auto;padding:0 10px;font-size:12px}.app-main{min-height:calc(100vh - 58px)}.button{height:36px;padding:0 12px;gap:6px;font-size:12px}.button.large{height:42px;padding:0 14px}.icon-text-button{font-size:12px}.home-view{padding:40px 18px 60px}.hero{min-height:auto;grid-template-columns:1fr}.hero-copy{padding:0}.hero h1{font-size:42px}.hero-art{display:none}.hero-actions{gap:8px;flex-wrap:wrap}.hero-actions .button{flex:1 1 auto}.home-toolbar{margin-top:45px;align-items:start}.project-grid{grid-template-columns:1fr}.toolbar-actions{flex-direction:column;gap:4px}.page-container{padding:38px 17px 60px}.page-heading{align-items:start;gap:20px}.page-heading>div{min-width:0}.provider-card{padding:16px}.provider-card-head{align-items:start;flex-wrap:wrap}.provider-name{min-width:calc(100% - 55px);flex-direction:column;align-items:start}.provider-name input{max-width:none}.provider-fields{grid-template-columns:1fr}.span-2,.test-connection{grid-column:span 1}.routing-row{align-items:start;flex-direction:column}.select-wrap,.select-wrap select{width:100%}.danger-zone{align-items:start;flex-direction:column;gap:15px}.workspace{height:auto;min-height:calc(100vh - 58px);display:block;overflow:visible}.work-nav{padding:10px;border-right:0}.back-link,.project-title-block,.chapter-nav,.export-manuscript{display:none}.work-stage-nav{flex-direction:row;overflow-x:auto}.work-stage-nav button{flex:0 0 auto}.work-stage-nav .mobile-writing-entry{display:flex}.work-stage-nav button svg:last-child{display:none}.work-main{min-height:calc(100vh - 116px)}.editor-page{padding:30px 18px 60px}.editor-page-heading.horizontal{align-items:start;flex-direction:column}.heading-actions{width:100%;flex-wrap:wrap}.heading-actions .button{flex:1 1 auto}.two-column,.three-column,.style-profile-grid,.character-grid{grid-template-columns:1fr}.url-input-row input{min-width:0}.chapter-plan-card{grid-template-columns:38px 1fr}.writing-toolbar{align-items:start;flex-direction:column;padding:10px 14px;gap:6px}.writing-toolbar>div:first-child{width:100%}.writing-toolbar input{width:auto;min-width:0;flex:1}.writing-actions{width:100%;overflow-x:auto}.manuscript-wrap{min-height:60vh}.manuscript-editor{padding:30px 25px 70px;background:none}.workspace.writing-mode{width:100%;height:100vh;height:100dvh;min-height:0;position:fixed;z-index:40;inset:0;overflow:hidden}.workspace.writing-mode .work-nav,.workspace.writing-mode .work-header{display:none}.workspace.writing-mode .work-main{height:100vh;height:100dvh;min-height:0}.workspace.writing-mode .writing-page{height:100%;min-height:0}.workspace.writing-mode .mobile-writing-back,.workspace.writing-mode .mobile-chapter-index-button{height:28px;padding:0 7px;display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;color:var(--muted);font-size:10px;border:1px solid var(--line);border-radius:5px;background:var(--paper-deep);cursor:pointer}.workspace.writing-mode .mobile-chapter-index-backdrop{position:absolute;z-index:20;inset:0;display:flex;background:#231f1a61;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.mobile-chapter-index{width:min(290px,88vw);min-height:0;display:flex;flex-direction:column;background:var(--paper);box-shadow:18px 0 45px #241f1938}.mobile-chapter-index-head{min-height:64px;padding:11px 13px 11px 17px;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.mobile-chapter-index-head>div{display:flex;align-items:center;gap:5px}.mobile-chapter-index-head>div:first-child{align-items:start;flex-direction:column;gap:2px}.mobile-chapter-index-head span{color:var(--accent);font-size:8px;font-weight:700;letter-spacing:.14em}.mobile-chapter-index-head strong{font-family:"Noto Serif SC",serif;font-size:16px}.mobile-chapter-index-head button{width:31px;height:31px;padding:0;display:grid;place-items:center;color:var(--muted);font-size:20px;line-height:1;border:0;border-radius:6px;background:transparent;cursor:pointer}.mobile-chapter-index-head button:hover{background:var(--paper-deep)}.mobile-chapter-index-list{min-height:0;padding:8px;flex:1;overflow-y:auto}.mobile-chapter-index-list>button{width:100%;min-height:58px;padding:8px 10px;display:grid;grid-template-columns:28px minmax(0,1fr) 8px;align-items:center;gap:9px;color:var(--muted);text-align:left;border:0;border-radius:7px;background:transparent;cursor:pointer}.mobile-chapter-index-list>button:hover,.mobile-chapter-index-list>button.active{color:var(--ink);background:var(--paper-deep)}.mobile-chapter-index-list>button>span:first-child{color:var(--accent);font-size:10px;font-variant-numeric:tabular-nums}.mobile-chapter-index-list>button>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:4px}.mobile-chapter-index-list strong,.mobile-chapter-index-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-chapter-index-list strong{font-family:"Noto Serif SC",serif;font-size:12px}.mobile-chapter-index-list small{color:var(--faint);font-size:9px}.mobile-chapter-index-list i{width:7px;height:7px;border:1px solid #aaa49a;border-radius:50%}.mobile-chapter-index-list i.drafting{border-color:#bf8744;background:#d9a35e}.mobile-chapter-index-list i.completed{border-color:#568069;background:#649275}.workspace.writing-mode .manuscript-wrap{min-height:0}.workspace.writing-mode .manuscript-editor{padding:28px 20px 45px}.workspace.writing-mode .writing-footer{padding:0 14px}}
