:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#313a34;background:#f8f7f3;font-synthesis:none;--paper:#fdfcf9;--green:#304e42;--muted:#767b72;--line:#e4e5dc;--serif:Georgia,"Times New Roman",serif;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button,a{touch-action:manipulation}button{border:0;background:none}button:disabled{opacity:.25;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #789281;outline-offset:4px}svg{width:21px;height:21px;flex-shrink:0}a{color:inherit;text-decoration:none}button{transition:background .18s,color .18s,box-shadow .18s}input,textarea{color:inherit}::selection{background:#dce5d8}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--green)}.brand svg{height:33px;width:33px;stroke-width:1.2}.brand span{font:36px var(--serif);letter-spacing:-1.8px;padding-bottom:4px}.icon-button{width:44px;height:44px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;color:#697269;flex-shrink:0}.icon-button:hover,.icon-button.active{background:#e8ece3;color:var(--green)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:12px 19px;border:1px solid var(--line);border-radius:7px;font-size:14px;background:var(--paper);font-weight:500}.button:hover{background:#eeefe8}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#243e34;box-shadow:0 3px 10px #304e421a}.button svg{width:17px;height:17px}.text-button{font-size:14px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:5px;color:#697367;padding:8px;border-radius:6px}.text-button:hover{background:#e9ece4;color:var(--green)}.eyebrow{font-size:11px;letter-spacing:2.2px;font-weight:600;color:#7b8375}.muted{color:var(--muted);font-size:15px;line-height:1.7}.fine{font-size:13px;color:var(--muted);line-height:1.6}.full{width:100%}.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}
.library-shell{min-height:100svh;display:flex;flex-direction:column}.library-header{height:112px;margin:0 6.2%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.header-note{font:italic 15px var(--serif);color:#828779;margin-left:auto;margin-right:35px}.library-main{width:min(100% - 64px,1000px);margin:0 auto;flex:1}.intro{padding:66px 0 57px}.intro h1{font:normal clamp(40px,5vw,61px)/1.13 var(--serif);letter-spacing:-2.2px;margin:22px 0 19px;color:#36453b}.intro h1 em{font-weight:normal;color:#727f68}.intro p{font-size:15px;color:var(--muted);line-height:1.8;margin:0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.section-heading h2{font:normal 24px var(--serif);margin:0;display:flex;align-items:center;gap:12px}.count{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#e9ece3;border-radius:50%;width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;color:#738069}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.story-card{border:1px solid #e0e2d7;border-radius:9px;min-height:296px;background:#f0f1e9;position:relative;overflow:hidden;box-shadow:0 2px 4px #303b3303;transition:transform .2s,box-shadow .2s}.story-card:before{content:"";position:absolute;left:8px;top:0;bottom:0;width:1px;background:#dce0d2}.story-card:hover{transform:translateY(-3px);box-shadow:0 9px 22px #293a3209}.story-open{text-align:left;display:flex;flex-direction:column;width:100%;height:100%;padding:27px 27px 19px 31px;min-height:296px}.cover-mark{margin-bottom:30px;color:#7c8a72}.cover-mark svg{width:28px;height:28px;stroke-width:1.1}.story-category{font-size:10px;letter-spacing:1.5px;color:#6f7d63;font-weight:600}.story-open h3{font:normal 28px/1.18 var(--serif);letter-spacing:-.5px;margin:13px 0 10px;overflow-wrap:anywhere}.story-description{font-size:13px;line-height:1.6;color:#7a8070}.card-bottom{margin-top:auto;padding-top:30px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#67745f;gap:8px;width:100%}.card-bottom svg{width:16px;height:16px}.new-story-card{min-height:296px;border:1px dashed #d9ddd0;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;padding:24px;background:#fafaf6;color:#747e6b;font:italic 17px var(--serif)}.new-story-card:hover{background:#f0f2e9;border-color:#a5b19b}.new-circle{height:45px;width:45px;border:1px solid #dfe4d7;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:7px;color:#859477}.new-circle svg{width:18px;height:18px}.new-story-card .fine{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#929687}.library-footnote{display:flex;align-items:center;flex-direction:column;text-align:center;padding:57px 0 38px;color:#8a9081;gap:11px}.tiny-feather svg{width:19px;height:19px;stroke-width:1}.library-footnote p{font:italic 15px/1.8 var(--serif);margin:0}.library-footer{display:flex;align-items:center;justify-content:space-between;margin:0 6.2%;padding:13px 0;border-top:1px solid var(--line);color:#909588;font-size:12px}.library-footer .text-button{font-size:12px;min-height:36px;color:#858e7b}
.writing-room{display:flex;height:100dvh;overflow:hidden;background:var(--paper)}.outline{width:286px;flex:0 0 286px;background:#f3f4ee;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.outline-top{padding:19px 20px 0;display:flex;align-items:center;justify-content:space-between}.outline-top .text-button{padding-left:0;font-size:13px;color:#7d8577}.outline-top svg{width:15px;height:15px}.story-heading{display:flex;flex-direction:column;align-items:flex-start;padding:29px 28px 26px}.story-heading .eyebrow{font-size:10px;letter-spacing:1.7px}.story-title-button{font:normal 27px/1.25 var(--serif);text-align:left;padding:12px 0 9px;letter-spacing:-.6px;overflow-wrap:anywhere;width:100%}.story-title-button:hover{color:#628063}.story-heading .fine{font-size:12px;color:#8c9384}.outline-label{display:flex;align-items:center;justify-content:space-between;margin:0 19px 9px 28px;border-top:1px solid var(--line);padding-top:12px}.outline-label>span{font-size:10px;letter-spacing:1.5px;color:#929887;font-weight:600}.outline-label .icon-button{width:36px;height:36px}.outline-label svg{width:16px;height:16px}.chapters{overflow-y:auto;flex:1;padding:0 15px 30px}.chapter{margin:0 0 13px;border-radius:6px}.chapter-row{display:flex;align-items:center;min-height:44px}.chapter-toggle{display:flex;align-items:center;justify-content:center;min-height:44px;width:25px;flex-shrink:0;padding:0}.chevron{display:flex;transform:rotate(180deg);color:#929986}.chevron.expanded{transform:rotate(-90deg)}.chevron svg{width:13px;height:13px}.chapter-name{font-size:14px;font-weight:600;text-align:left;flex:1;min-width:0;padding:8px 0;line-height:1.4;overflow-wrap:anywhere}.mini-button{width:36px;min-height:44px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;color:#8a9480}.mini-button svg{width:15px;height:15px}.mini-button:hover{background:#e2e7db;color:var(--green)}.scene-row{display:flex;align-items:center;border-radius:6px;margin:3px 0 3px 13px;min-height:44px}.scene-row.selected{background:#e4e9dd;color:#3e5b42}.scene-link{display:flex;align-items:center;gap:12px;min-height:44px;padding:9px 12px;font-size:13px;color:#7c8574;text-align:left;flex:1;min-width:0;line-height:1.5}.scene-link>span:last-child{overflow-wrap:anywhere}.selected .scene-link{color:#405e44}.scene-mark{width:5px;height:5px;border:1px solid #b1b9a8;transform:rotate(45deg);flex-shrink:0}.selected .scene-mark{border-color:#698060;background:#698060}.scene-row:not(.selected):hover{background:#eaede3}.add-scene{display:flex;align-items:center;gap:9px;padding:6px 12px;margin-left:13px;min-height:40px;font-size:12px;color:#929b88}.add-scene svg{width:13px;height:13px}.add-scene:hover,.add-chapter:hover{color:var(--green)}.add-chapter{display:flex;align-items:center;gap:9px;min-height:44px;margin:10px 0 0 12px;font-size:13px;color:#7c8870}.add-chapter svg{height:15px;width:15px}.outline-bottom{display:flex;align-items:center;justify-content:space-between;padding:12px 13px 12px 27px;border-top:1px solid var(--line);gap:4px}.outline-bottom>span{font:italic 13px var(--serif);color:#8c9482;display:flex;align-items:center;gap:8px}.outline-bottom>span svg{width:16px;height:16px;stroke-width:1.1}.outline-bottom .icon-button{width:34px}.editor-shell{display:flex;flex-direction:column;flex:1;min-width:0}.editor-header{height:78px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eeeee7;padding:0 30px 0 22px;color:#8d9388;font-size:12px;gap:12px}.editor-location{display:flex;align-items:center;gap:11px;min-width:0}.editor-location>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-location svg{width:18px;height:18px}.breadcrumb-divider{margin:0 11px;color:#c5cabd}.scene-breadcrumb{color:#697361}.editor-tools{display:flex;align-items:center;gap:14px}.focus-button{font-size:12px;color:#858f7d;gap:7px;white-space:nowrap}.focus-button svg{width:15px;height:15px}.editor-tools .icon-button svg{width:18px;height:18px}.writing-area{flex:1;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}.manuscript{width:min(100% - 104px,650px);margin:0 auto;padding:70px 0 90px}.chapter-kicker{font-size:10px;letter-spacing:1.8px;color:#9a9e90;display:flex;gap:12px}.chapter-kicker span{color:#bec4b6}.scene-title{display:block;border:0;outline:0;background:transparent;font:normal clamp(30px,3vw,41px)/1.25 var(--serif);letter-spacing:-.9px;width:100%;padding:0;margin:23px 0 24px;min-width:0;border-radius:0}.scene-title:focus{color:#304e42}.title-rule{width:36px;height:1px;background:#c6cebb;margin-bottom:29px}.prose{font:normal 19px/1.95 var(--serif);letter-spacing:.05px;display:block;width:100%;resize:none;border:0;outline:0;border-radius:0;background:transparent;overflow:hidden;padding:0;color:#4e554a;min-height:280px;tab-size:4}.prose::placeholder{color:#aaaE9e;font-style:italic}.end-mark{text-align:center;color:#b5bcaa;font-size:21px;font-family:var(--serif);margin-top:37px}.editor-footer{flex-shrink:0;min-height:47px;border-top:1px solid #eeeee7;padding:12px 31px;display:flex;align-items:center;justify-content:space-between;color:#939a8b;font-size:11px;gap:15px}.is-focused .outline{display:none}.is-focused .editor-location>span{visibility:hidden}.is-focused .manuscript{padding-top:72px}.is-focused .editor-header{border-color:transparent}.is-focused .editor-tools>.icon-button{display:none}.mobile-close{display:none}.outline-scrim{display:none}.move-pair{display:flex}.move-pair .mini-button{width:29px}.arrange-help{font-size:12px;line-height:1.6;color:#7b8571;margin:0 28px 15px}.dragging{opacity:.4}.drop-target{box-shadow:inset 0 2px #77916b}.empty-chapter{padding:100px 25px;text-align:center}.empty-chapter h1{font:32px var(--serif);margin:25px 0}
dialog{border:1px solid #e1e4d8;border-radius:14px;padding:30px;width:min(440px,calc(100% - 32px));box-shadow:0 20px 100px #25382e24;color:inherit;background:#fdfcf8}dialog::backdrop{background:#25382e48;backdrop-filter:blur(3px)}.dialog-top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.dialog-top h2{font:normal 28px/1.2 var(--serif);margin:6px 0 14px;letter-spacing:-.5px}.dialog-top .icon-button{margin:-10px -12px 0 0}.dialog-top .icon-button svg{width:18px;height:18px}dialog .muted{margin:2px 0 25px}dialog label{display:block;font-size:13px;margin:18px 0 9px;color:#6d7864}dialog input,dialog select{width:100%;min-height:49px;background:#f7f8f1;border:1px solid #dce1d3;border-radius:6px;padding:12px;font-size:16px;outline:none}dialog input:focus,dialog select:focus{border-color:#728a65;box-shadow:0 0 0 2px #7892811a}dialog select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8571' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;padding-right:42px}dialog .full{margin-top:23px}.dialog-actions{display:flex;flex-direction:column;gap:10px}.dialog-actions .text-button{justify-content:flex-start}.dialog-actions .button{justify-content:flex-start}.dialog-actions .danger{justify-content:center;margin-top:8px}.danger{color:#fff;background:#8e5147;border-color:#8e5147}.danger:hover{background:#784137}.danger-text{color:#9b655b}.danger-text:hover{background:#f5eae5;color:#8e5147}.error{color:#a95f46!important}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,12px);max-width:calc(100% - 32px);background:#304e42;color:white;font-size:14px;line-height:1.5;padding:13px 22px;border-radius:8px;box-shadow:0 4px 24px #304e4220;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.library-main{width:min(100% - 128px,1120px)}.intro{padding-top:84px;padding-bottom:70px}.story-card,.story-open,.new-story-card{min-height:320px}.manuscript{padding-top:90px}}
@media(max-width:1100px){.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-main{width:calc(100% - 96px)}.outline{width:255px;flex-basis:255px}.story-heading{padding-left:24px;padding-right:24px}.story-title-button{font-size:25px}.editor-header{padding:0 16px 0 12px}.editor-tools{gap:3px}.manuscript{width:calc(100% - 80px);padding-top:57px}.prose{font-size:18px;line-height:1.95}.scene-title{font-size:34px}.scene-breadcrumb{display:none}.breadcrumb-divider{display:none}}
@media(max-width:760px){.library-header{height:86px;margin:0 24px}.brand span{font-size:32px}.brand svg{width:29px;height:29px}.header-note{margin-right:14px;font-size:13px}.library-main{width:calc(100% - 48px)}.intro{padding:48px 0 45px}.intro h1{font-size:46px;letter-spacing:-1.7px}.intro p{font-size:14px;max-width:280px}.section-heading h2{font-size:23px}.section-heading .button{padding:10px 14px}.story-grid{gap:16px}.story-open{padding:24px}.story-open h3{font-size:27px}.library-footer{margin:0 24px}.library-footnote{padding:40px 0 28px}.outline{position:fixed;top:0;left:0;bottom:0;width:min(320px,86vw);transform:translateX(-100%);transition:transform .2s;box-shadow:12px 0 40px #304e420c}.outline-open .outline{transform:translateX(0)}.outline-open .outline-scrim{display:block;position:fixed;inset:0;background:#25382e33;z-index:19}.mobile-close{display:inline-flex}.is-focused .outline{display:flex}.editor-header{height:65px;padding:0 12px 0 10px;font-size:12px}.editor-location{gap:4px}.editor-tools{gap:0}.editor-tools .focus-button{padding:8px}.focus-button span{font-size:12px}.manuscript{width:calc(100% - 52px);padding:46px 0 75px}.chapter-kicker{font-size:10px}.scene-title{font-size:34px;margin-top:22px}.prose{font-size:18px;line-height:1.9}.editor-footer{padding:12px 25px;min-height:44px;font-size:11px}.is-focused .manuscript{padding-top:46px}.is-focused .editor-location>span{display:none}}
@media(max-width:480px){.story-grid{grid-template-columns:1fr}.new-story-card{min-height:155px}.new-circle{margin:0}.story-open{min-height:285px}.header-note{display:none}.intro h1{font-size:43px}.library-main{width:calc(100% - 40px)}.library-header{margin:0 20px}.library-footer{margin:0 20px}.section-heading{margin-bottom:19px}.library-footnote{padding-top:38px}.intro .eyebrow{font-size:10px}.editor-tools .icon-button{width:33px}}
.scene-link,.add-chapter{font-size:14px}.add-scene{font-size:13px}.editor-header,.editor-footer{font-size:13px}.outline-label>span,.chapter-kicker,.story-category,.story-heading .eyebrow{font-size:12px;letter-spacing:1.3px}.chapter-toggle{width:28px}.mini-button{width:40px}.move-pair .mini-button{width:32px}
.inline-title,.library-story-title{border:0;outline:0;background:transparent;color:inherit;border-radius:0;resize:none;overflow:hidden;min-width:0;box-shadow:none;cursor:text;-webkit-appearance:none}
.inline-title:focus,.library-story-title:focus{background:#e4e9dd66;box-shadow:0 1px #9aaa8c}
.story-title-button{display:block;box-sizing:border-box;margin:0;padding:12px 0 9px;width:100%;line-height:1.25}
.library-story-title{display:block;width:100%;font:normal 28px/1.18 var(--serif);letter-spacing:-.5px;margin:13px 0 10px;padding:0}
.story-card{cursor:pointer}.card-bottom{padding-left:0;padding-right:0;text-align:left;min-height:44px}
.chapter-name.inline-title{width:100%;padding:10px 0;text-overflow:ellipsis;font-size:16px;letter-spacing:-.3px}
.drag-handle{width:38px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#9aa48e;cursor:grab;touch-action:none;user-select:none;border-radius:6px}
.drag-handle svg{width:15px;height:18px;pointer-events:none}.drag-handle:hover,.drag-handle:focus-visible{color:#526d45;background:#e4e9dd}.drag-handle:active{cursor:grabbing}
.scene-row .drag-handle{margin-right:2px}.chapter-row .drag-handle{margin-left:4px}.chapter-row{padding-right:2px}.outline-label{min-height:45px;margin-bottom:7px;padding-bottom:9px}
.outline-trigger{display:none}.focus-button{display:inline-flex}.is-focused .editor-tools>.focus-button{display:inline-flex}.is-focused .outline-trigger{display:none}
.editor-tools{gap:3px}.drop-before{position:relative;box-shadow:0 -2px #839b72}.drop-after{position:relative;box-shadow:0 2px #839b72}.drop-inside{outline:1px dashed #839b72;background:#e4e9dd77}
.drag-ghost{position:fixed;pointer-events:none;z-index:200;max-width:240px;padding:12px 18px;background:#fdfcf9;border:1px solid #bdc9b1;border-radius:7px;box-shadow:0 10px 30px #304e4226;font-size:14px;color:#304e42;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.is-reordering{user-select:none;cursor:grabbing}.is-reordering *{cursor:grabbing!important}
@media(max-width:760px){.outline-trigger{display:inline-flex}.drag-handle{width:44px}.chapter-name.inline-title{font-size:16px}.is-focused .editor-tools>.focus-button{display:inline-flex}}
@media(hover:hover){.drag-handle{opacity:.45}.chapter-row:hover .drag-handle,.scene-row:hover .drag-handle,.drag-handle:focus-visible{opacity:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.library-main{padding-top:54px;padding-bottom:54px}.new-story-card{font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.library-header>.icon-button{margin-left:auto}@media(max-width:760px){.library-main{padding-top:34px;padding-bottom:34px}}
.story-card,.story-open,.new-story-card{min-height:220px}.story-open{padding:25px 25px 12px 29px;pointer-events:none;position:relative}.library-story-title{margin:0 0 10px;position:relative;pointer-events:auto;z-index:2}.card-open{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;z-index:1}.card-open:focus-visible{outline-offset:-5px}.story-description{pointer-events:none}.card-actions{display:flex;justify-content:flex-end;margin-top:auto;padding-top:24px;pointer-events:none}.story-trash{pointer-events:auto;position:relative;z-index:2;color:#929b89}.story-trash svg{width:17px;height:17px}.story-trash:hover,.story-trash:focus-visible{color:#9b655b;background:#f2e7e0}.delete-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 12px;margin:-10px 0 18px;border-radius:6px;background:#e9ede3;color:#53634a;font-size:14px}.delete-notice .text-button{color:var(--green);text-decoration:underline;text-underline-offset:3px}.recently-deleted{margin-top:22px;border-top:1px solid var(--line);padding-top:17px;font-size:14px}.recently-deleted summary{cursor:pointer;color:#6d7864;min-height:36px}.restore-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #eeeee7;padding:5px 0}.restore-row>span{overflow-wrap:anywhere;min-width:0}.restore-row button{flex-shrink:0}.story-card:before{pointer-events:none}
@media(max-width:480px){.story-card,.story-open{min-height:190px}.new-story-card{min-height:150px}.story-open{padding:23px 22px 10px 27px}}
