:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#30332e;background:#f6f5f0;font-synthesis:none;--paper:#f6f5f0;--panel:#faf9f5;--text:#30332e;--muted:#74776e;--faint:#96988e;--line:#dedfd6;--hover:#edeee6;--accent:#57654e;--danger:#a13d31;--serif:Georgia,"Iowan Old Style","Palatino Linotype",serif;font-size:14px;color-scheme:light}:root[data-theme=dark]{--paper:#202320;--panel:#272a26;--text:#d8dbd0;--muted:#a3a89c;--faint:#8f9589;--line:#3c4039;--hover:#30362e;--accent:#b7c9a6;--danger:#f3a093;color:var(--text);background:var(--paper);color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;background:transparent;border:1px solid var(--line);border-radius:5px;padding:10px 15px;transition:background .15s}button:hover{background:var(--hover)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button svg{flex-shrink:0}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}p{line-height:1.7}input,select{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:4px;padding:12px 14px;min-height:44px;width:100%}input::placeholder,textarea::placeholder{color:var(--faint)}label{display:block;font-size:13px;color:var(--text);margin-bottom:22px}label>input,label>select{display:block;margin-top:9px}small{font-size:11px}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:500;letter-spacing:2px;color:var(--muted);line-height:1.4}.primary{background:var(--text);border-color:var(--text);color:var(--paper);display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:43px;padding:12px 19px;font-size:12px}.primary:hover{background:var(--accent);border-color:var(--accent)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;padding:8px;border-radius:5px;color:var(--muted);flex-shrink:0}.icon-button:hover{color:var(--text)}.text-button{border:0;padding:6px 0;display:inline-flex;align-items:center;gap:8px;font-size:12px;border-radius:0}.text-button:hover{background:none;color:var(--accent)}.wordmark{font-family:var(--serif);font-size:31px;letter-spacing:-1.7px;line-height:1}.brand-dot{color:var(--accent)}.skip-link{position:fixed;left:20px;top:-100px;z-index:100;padding:12px;background:var(--text);color:var(--paper)}.skip-link:focus{top:15px}.app{min-height:100dvh}.app-header{height:101px;max-width:1600px;margin:auto;padding:0 6.25%;display:flex;align-items:center;justify-content:space-between;gap:16px}.header-left,.header-right{display:flex;align-items:center;gap:16px;min-width:0}.header-right{gap:9px}.header-divider{width:1px;height:20px;background:var(--line);margin:0 8px;flex-shrink:0}.save-status{font-size:11px;display:flex;align-items:center;gap:8px;border:0;color:var(--muted);padding:9px 4px;white-space:nowrap}.save-status:hover{background:none;color:var(--text)}.status-dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}.status-dot.working{background:var(--faint)}.save-status.failed{color:var(--danger)}.failed .status-dot{background:var(--danger)}.account-button{border:1px solid var(--line);border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-family:var(--serif);font-size:13px;padding:0;margin-left:12px}.library{max-width:1064px;margin:0 auto;padding:85px 40px 32px}.library-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:66px}.library-intro .eyebrow{margin-bottom:21px}.library-intro h1{font-size:62px;letter-spacing:-2.5px;line-height:1.08;margin-bottom:19px}.library-intro p:last-child{color:var(--muted);font-size:14px}.new-manuscript{margin-bottom:3px}.library-tabs{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.library-tabs [role=tablist]{display:flex;gap:29px;align-items:center}.library-tabs [role=tab]{font-size:12px;border:0;border-radius:0;padding:16px 0 19px;color:var(--muted);position:relative}.library-tabs [role=tab]:hover{background:none}.library-tabs [role=tab].active{color:var(--text)}.library-tabs [role=tab].active:after{content:"";height:1px;background:var(--text);position:absolute;bottom:-1px;left:0;right:0}.library-tabs [role=tab] span{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:1px 5px;border-radius:8px;margin-left:7px}.library-search{display:flex;align-items:center;margin:0;color:var(--faint);width:166px}.library-search input{border:0;padding:6px 0 6px 8px;font-size:11px;margin:0;background:transparent;min-height:30px}.manuscript-row{display:flex;align-items:center;gap:21px;min-height:123px;border-bottom:1px solid var(--line)}.manuscript-number{font-family:var(--serif);font-size:12px;color:var(--faint);width:23px;flex-shrink:0}.manuscript-open{text-align:left;border:0;padding:22px 0;flex:1;min-width:0}.manuscript-open:hover{background:none}.manuscript-open:hover h2{color:var(--accent)}.manuscript-open h2{font-size:27px;letter-spacing:-.4px;line-height:1.3;margin-bottom:10px;overflow-wrap:anywhere}.manuscript-open>span{font-size:11px;color:var(--muted)}.middle-dot{margin:0 10px;color:var(--faint)}.edited-at{font-size:11px;color:var(--muted);margin-left:auto}.manuscript-options{margin-left:23px}.manuscript-row>svg{color:var(--faint);margin-right:3px}.recovered-tag{font-size:9px;border:1px solid var(--line);padding:2px 6px;margin-left:9px}.library-new-row{width:100%;display:flex;align-items:center;gap:24px;border:0;border-bottom:1px solid var(--line);padding:27px 0;font-size:12px;color:var(--muted);border-radius:0;text-align:left}.library-new-row>svg{margin-left:2px}.library-new-row:hover{background:none;color:var(--text)}.library-footer{margin-top:70px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.library-footer>div{display:flex;align-items:center;gap:10px}.library-footer .text-button{font-size:10px;color:var(--muted)}.empty-library{padding:70px 20px 57px;text-align:center;color:var(--muted)}.empty-library>svg{color:var(--accent);margin-bottom:24px}.empty-library h2{font-size:26px;color:var(--text);margin-bottom:10px}.empty-library p{font-size:13px;margin-bottom:19px}.empty-library .text-button{font-size:12px}.manuscript-label{display:flex;align-items:center;gap:10px;border:0;min-width:0;padding:8px 0;font-size:12px;color:var(--muted)}.manuscript-label:hover{background:none;color:var(--text)}.manuscript-label span{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-view{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.editor-view .app-header{height:80px;min-height:80px;width:100%;padding:0 3.5%;border-bottom:1px solid transparent}.writing-layout{min-height:0;flex:1;position:relative;display:flex;justify-content:center}.editor{width:100%;max-width:830px;padding:44px 55px 0;display:flex;flex-direction:column;min-height:0;min-width:0;height:100%}.chapter-heading{flex-shrink:0;margin:0 0 23px}.chapter-heading .eyebrow{font-size:9px;letter-spacing:2.1px;margin-bottom:17px}.chapter-heading h1{font-size:40px;letter-spacing:-.9px;line-height:1.25;overflow-wrap:anywhere}.chapter-rule{width:32px;display:block;border-bottom:1px solid var(--line);margin-top:25px}.manuscript-input{font-family:var(--serif);font-weight:400;color:var(--text);background:transparent;border:0;border-radius:0;outline:none;resize:none;flex:1;min-height:70px;width:100%;padding:2px 12px 35vh 0;caret-color:var(--accent);scrollbar-width:thin;scrollbar-color:var(--line) transparent;overflow-y:auto;tab-size:4;letter-spacing:-.14px;overscroll-behavior:contain}.manuscript-input::selection{background:#cdd7bb88}.manuscript-input:focus-visible{outline:none}.writing-footer{height:58px;min-height:58px;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.writing-footer-center{color:var(--faint);display:flex;gap:8px;align-items:center}.keyboard-hint{display:flex;align-items:center;gap:5px;font-size:9px}.goal-line{width:48px;height:2px;background:var(--line)}.goal-line span{height:2px;background:var(--accent);display:block}.chapter-drawer{width:292px;position:absolute;top:0;left:0;bottom:0;background:var(--panel);border-right:1px solid var(--line);z-index:20;padding:23px 23px 20px;display:flex;flex-direction:column;overflow:auto}.drawer-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.drawer-heading .eyebrow{font-size:9px;letter-spacing:1.5px}.chapter-drawer h2{font-size:25px;line-height:1.3;margin-bottom:10px;overflow-wrap:anywhere}.drawer-count{font-size:10px;color:var(--muted)}.chapter-list{margin:35px -11px 12px}.chapter-row{display:flex;align-items:center;border-radius:3px;min-height:49px}.chapter-row.selected{background:var(--hover)}.chapter-row>button:first-child{border:0;flex:1;min-width:0;display:flex;gap:11px;text-align:left;align-items:baseline;padding:12px 11px;font-size:12px;line-height:1.5}.chapter-row>button:first-child>span:last-child{overflow-wrap:anywhere}.chapter-index{font-size:10px;color:var(--faint)}.chapter-row small{display:block;font-size:9px;color:var(--accent)}.chapter-row .icon-button{width:27px}.add-chapter{font-size:11px;color:var(--muted);align-self:flex-start}.drawer-bottom{margin-top:auto;padding-top:40px;display:flex;flex-direction:column;gap:8px;color:var(--muted)}.drawer-bottom button{font-size:11px}.drawer-backdrop{position:fixed;inset:80px 0 0;z-index:19;background:#20272018;border:0;border-radius:0}.drawer-backdrop:hover{background:#20272018}.is-focused .app-header{display:none}.is-focused .editor{padding-top:65px;max-width:850px}.is-focused .chapter-heading{opacity:.65}.focus-exit{position:fixed;right:24px;top:16px;z-index:15;border:0;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;padding:8px}.focus-exit kbd{font-size:9px;opacity:.6}.notice{padding:10px 30px;font-size:12px;background:var(--hover);display:flex;align-items:center;justify-content:center;gap:15px;color:var(--text);z-index:25;flex-shrink:0}.error-notice{color:var(--danger)}.notice .icon-button{height:25px;width:25px}.update-notice{font-size:11px}.save-warning{border:1px solid var(--danger);padding:12px;margin-bottom:10px;color:var(--danger);display:flex;flex-direction:column;gap:6px;font-size:12px}.save-warning>div{display:flex;gap:6px;flex-wrap:wrap}.save-warning button{font-size:11px;padding:6px 9px}.dialog{border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);padding:0;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 20px 80px #00000012}.dialog::backdrop{background:#1b241f44;backdrop-filter:blur(3px)}.dialog.wide{width:min(800px,calc(100vw - 28px))}.dialog-inner{padding:29px 30px 30px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:28px}.dialog-heading h2{font-size:27px;letter-spacing:-.6px;line-height:1.3}.dialog-heading .icon-button{margin:-5px -9px 0 0}.dialog p{color:var(--muted);font-size:13px;margin-bottom:23px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:27px;flex-wrap:wrap}.dialog-actions>button{font-size:12px}.dialog form>.full-width{width:100%}.action-list{display:flex;flex-direction:column;gap:4px}.action-list button{display:flex;align-items:center;gap:13px;border:0;text-align:left;font-size:13px;padding:13px 8px}.action-list button svg{color:var(--muted)}.danger-text{color:var(--danger)}.danger-button{background:var(--danger);color:var(--paper);border-color:var(--danger)}.settings-group{margin-bottom:29px}.setting-label{display:block;font-size:13px;margin-bottom:12px}.theme-options{display:flex;gap:10px}.theme-options>button{display:flex;flex:1;flex-direction:column;align-items:center;gap:10px;font-size:11px;padding:15px 7px}.theme-options>button[aria-pressed=true]{border-color:var(--accent);background:var(--hover)}.range-label{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;row-gap:4px}.range-label>span{color:var(--muted);font-size:11px}.range-label input{width:100%;padding:0;border:0;accent-color:var(--accent);min-height:20px;background:transparent}.checkbox-label{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5}.checkbox-label input{width:15px;height:15px;min-height:15px;margin:0;accent-color:var(--accent)}.keyboard-guide{display:grid;grid-template-columns:1fr auto;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;gap:13px}.keyboard-guide kbd{font:inherit;font-size:10px}.sync-summary{display:flex;align-items:center;gap:12px;margin-bottom:14px;color:var(--accent)}.sync-summary h3{font-size:24px}.sync-details{font-size:12px;margin:25px 0}.sync-details>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.sync-details dt{color:var(--muted)}.sync-details dd{text-align:right;margin:0}.dialog .small-note{font-size:11px;line-height:1.7}.install-details{border-top:1px solid var(--line);padding-top:20px;margin-top:25px;font-size:12px}.install-details summary{cursor:pointer;color:var(--muted)}.install-details p{font-size:12px;margin-top:15px;margin-bottom:0}.recovery-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.recovery-list>div>span{font-family:var(--serif);font-size:18px}.recovery-list small{display:block;font-family:Inter,sans-serif;text-transform:uppercase;font-size:9px;color:var(--muted);letter-spacing:1px;margin-bottom:4px}.recovery-list button{font-size:11px}.history-layout{display:grid;grid-template-columns:185px 1fr;gap:24px}.revision-list{max-height:350px;overflow:auto;display:flex;flex-direction:column;align-items:stretch;gap:4px}.revision-list button{border:0;text-align:left;font-size:12px;padding:10px}.revision-list button.selected{background:var(--hover)}.revision-list small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.revision-preview{min-width:0}.revision-preview h3{font-size:22px}.revision-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.7 var(--serif);max-height:300px;overflow:auto;color:var(--muted);padding-right:10px}.revision-preview .primary{font-size:11px}.auth-screen{min-height:100dvh;display:flex;flex-direction:column;padding:43px 6.25% 30px}.auth-top{display:flex;justify-content:space-between;align-items:center}.auth-top>.eyebrow{font-size:9px;letter-spacing:1.8px}.auth-content{width:100%;max-width:380px;margin:72px auto 65px;text-align:center}.auth-mark{color:var(--accent);margin-bottom:27px}.auth-content>.eyebrow{font-size:8px;letter-spacing:1.9px;margin-bottom:20px}.auth-content h1{font-size:46px;letter-spacing:-1.8px;line-height:1.13;margin:0 -40px 19px}.auth-intro{font-size:12px;color:var(--muted);max-width:280px;margin:0 auto 34px}.auth-content form{text-align:left}.auth-content label{font-size:11px;margin-bottom:20px}.auth-content input{font-size:13px}.auth-submit{width:100%;justify-content:space-between;margin-top:4px}.auth-switch{display:block;margin:17px auto 0;font-size:11px;color:var(--muted)}.local-option{border-top:1px solid var(--line);padding-top:24px;margin-top:35px;display:flex;flex-direction:column;align-items:center;gap:5px}.local-option>span{font-size:11px;color:var(--muted)}.local-option .text-button{font-size:11px}.local-option small{font-size:9px;color:var(--faint)}.auth-footer{margin-top:auto;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px}.error-text,.form-message{font-size:12px!important;margin:8px 0 17px!important}.error-text{color:var(--danger)!important}.form-message{color:var(--accent)!important}.global-error{position:fixed;bottom:20px;left:20px;right:20px;color:var(--danger);padding:12px;background:var(--panel);border:1px solid var(--danger);z-index:50;font-size:12px}.loading-screen,.fatal{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:40px;text-align:center}.loading-screen p{font-size:12px;color:var(--muted)}.fatal p{max-width:520px}.fatal h1{font-size:36px}@media(min-width:1300px){.chapter-drawer~.editor{margin-left:240px}}@media(max-width:900px){.library{padding-top:58px}.library-intro h1{font-size:52px}.app-header{height:87px}.library-intro{margin-bottom:47px}.library-footer{margin-top:50px}.editor{max-width:760px;padding:34px 38px 0}.chapter-heading h1{font-size:36px}.keyboard-hint{display:none}.manuscript-options{margin-left:6px}}@media(max-width:600px){.app-header{padding:0 24px;height:78px;gap:10px}.wordmark{font-size:29px}.header-right{gap:4px}.header-divider{margin:0 5px}.save-status{font-size:9px;gap:6px}.status-dot{width:4px;height:4px}.account-button{margin-left:6px}.library{padding:47px 25px 28px}.library-intro{display:block;margin-bottom:33px}.library-intro .eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:17px}.library-intro h1{font-size:49px;letter-spacing:-2px;margin-bottom:14px}.library-intro p:last-child{font-size:12px}.new-manuscript{margin-top:25px;font-size:11px;min-height:40px}.library-tabs{gap:10px}.library-tabs [role=tablist]{gap:21px}.library-tabs [role=tab]{font-size:11px}.library-search{width:125px}.library-search input{font-size:10px}.manuscript-row{gap:12px;min-height:113px}.manuscript-number{width:16px;font-size:10px}.manuscript-open h2{font-size:23px;margin-bottom:8px}.manuscript-open>span{font-size:10px}.manuscript-row>svg{display:none}.edited-at{font-size:9px;max-width:46px;text-align:right}.manuscript-options{margin-left:0;width:27px}.library-new-row{font-size:10px;gap:13px;padding:25px 0}.library-footer{align-items:flex-start;flex-direction:column;gap:15px;font-size:10px}.library-footer>div{gap:7px}.empty-library{padding:49px 6px}.empty-library h2{font-size:24px}.empty-library p{font-size:12px}.editor-view .app-header{height:62px;min-height:62px;padding:0 max(12px,env(safe-area-inset-left)) 0 max(10px,env(safe-area-inset-left))}.editor-view .header-left{gap:4px}.editor-view .header-right{gap:0}.editor-view .header-divider{display:none}.manuscript-label{gap:6px;font-size:11px}.manuscript-label span{max-width:115px}.manuscript-label>svg:first-child{display:none}.editor-view .icon-button{width:33px;height:40px;padding:7px}.editor-view .save-status{padding:8px 6px;font-size:8px;gap:4px}.editor-view .header-right .icon-button[aria-label="Export writing"]{display:none}.editor{padding:24px max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left))}.chapter-heading{margin-bottom:19px}.chapter-heading .eyebrow{font-size:8px;margin-bottom:13px}.chapter-heading h1{font-size:31px;letter-spacing:-.7px}.chapter-rule{margin-top:20px;width:25px}.manuscript-input{padding-right:2px;letter-spacing:-.25px}.writing-footer{font-size:9px;min-height:46px;height:46px;gap:10px}.writing-footer-center{font-size:9px}.chapter-drawer{width:min(310px,85vw);padding-bottom:max(20px,env(safe-area-inset-bottom))}.drawer-backdrop{top:62px}.is-focused .editor{padding-top:52px}.focus-exit{top:9px;right:15px;font-size:9px}.notice{padding:9px 13px;font-size:11px}.dialog-inner{padding:24px}.dialog-heading h2{font-size:25px}.dialog p{font-size:12px}.dialog-actions button{font-size:11px}.history-layout{grid-template-columns:1fr;gap:17px}.revision-list{max-height:140px}.revision-preview pre{max-height:220px}.auth-screen{padding:30px 25px 25px}.auth-top>.eyebrow{display:none}.auth-content{max-width:340px;margin:55px auto 45px}.auth-content h1{font-size:41px;margin-left:0;margin-right:0;letter-spacing:-1.5px}.auth-content>.eyebrow{font-size:8px}.auth-footer{font-size:9px;gap:15px;flex-direction:column;align-items:center}.auth-content input{font-size:16px}.auth-content label,.auth-switch{font-size:12px}.local-option .text-button{font-size:11px}}@media(max-height:500px)and (orientation:landscape){.editor-view .app-header{height:42px;min-height:42px;padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}.editor{padding:8px max(35px,env(safe-area-inset-right)) 0 max(35px,env(safe-area-inset-left));max-width:900px}.chapter-heading{display:flex;align-items:baseline;gap:17px;margin-bottom:8px}.chapter-heading .eyebrow{margin-bottom:0;font-size:8px}.chapter-heading h1{font-size:23px}.chapter-rule{display:none}.manuscript-input{padding-bottom:40vh}.writing-footer{height:30px;min-height:30px;font-size:9px}.drawer-backdrop{top:42px}.is-focused .editor{padding-top:12px}.is-focused .chapter-heading{padding-right:110px}.focus-exit{top:6px;right:max(12px,env(safe-area-inset-right))}.dialog{max-height:calc(100dvh - 16px)}.auth-content{margin-top:25px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.focus-reminder{flex-shrink:0;max-height:40dvh;overflow:auto;width:min(740px,calc(100% - 40px));margin:48px auto 0;padding:12px 16px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:12px;display:flex;gap:18px;justify-content:space-between;align-items:flex-start}.focus-reminder p{line-height:1.6}.focus-reminder details{margin-top:6px}.focus-reminder summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.focus-reminder details p{margin-top:8px}.focus-reminder-actions{display:flex;flex-shrink:0;flex-direction:column;align-items:flex-start;gap:4px}.focus-reminder-actions button{font-size:11px;padding:7px 9px;min-height:32px}.focus-reminder~.writing-layout .editor{padding-top:20px}@media(max-width:560px){.focus-reminder{display:block;padding:10px 13px}.focus-reminder-actions{flex-direction:row;flex-wrap:wrap;margin-top:8px}.focus-reminder-actions button{min-height:40px}}@media(max-height:500px)and (orientation:landscape){.focus-reminder{margin-top:38px;padding:8px 12px}.focus-reminder~.writing-layout .editor{padding-top:8px}}
