:root{--ink:#2d3c31;--green:#3c5b42;--muted:#7a8478;--line:#e2e6dc;--paper:#fffefa;--wash:#eff2e9;--font-size:17px;font:14px/1.5 "Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--wash)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid transparent;border-radius:6px;background:transparent;padding:7px 12px;white-space:nowrap}button:hover{background:#e9eee2}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #6e8a59;outline-offset:2px}input:focus-visible,textarea:focus-visible{outline:2px solid #93a77e;outline-offset:4px}button.primary{background:var(--green);color:white;padding:9px 17px}button.primary:hover{background:#2f4a34}button.primary span{margin-left:18px}a{color:var(--green)}[hidden]{display:none!important}
#app{height:100dvh;min-height:500px;display:flex;flex-direction:column}.document-bar{height:83px;flex-shrink:0;display:flex;align-items:center;gap:28px;padding:0 29px;background:#fcfdf9;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);width:211px;flex-shrink:0}.brand>span:last-child{font:34px/1 Georgia,serif;letter-spacing:-1px}.brand small{font:8px/1.8 "Segoe UI",sans-serif;letter-spacing:1.9px;display:block;margin-top:6px}.logo{height:44px;width:43px;border-radius:12px 12px 12px 3px;background:var(--green);color:#fff;font:italic 40px/.95 Georgia,serif;text-align:center;position:relative;padding-top:1px}.logo span{position:absolute;right:3px;top:1px;font:13px serif;color:#d5e0ba}.document-identity{display:flex;align-items:center;gap:18px;min-width:0;flex:1}.document-identity>#document-name{max-width:390px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}#saved-state{font-size:11px;color:var(--muted);white-space:nowrap}#saved-state::before{content:"";display:inline-block;background:#7b956a;border-radius:50%;width:5px;height:5px;margin-right:6px}#saved-state.unsaved::before{background:#c49a52}.file-actions{display:flex;gap:10px;flex-shrink:0}.menu-row{display:flex;align-items:center;justify-content:space-between;gap:16px;height:43px;padding:0 25px;background:#fafbf7;border-bottom:1px solid var(--line);flex-shrink:0}#menubar{display:flex;gap:4px;overflow:auto;scrollbar-width:none}#menubar button{font-size:13px;padding:7px 13px}#menubar button[aria-expanded=true]{background:#e4eadc}.local-label{font-size:9px;letter-spacing:1.7px;color:#8b9487;white-space:nowrap;padding-right:8px}.local-label i{display:inline-block;width:5px;height:5px;background:#88a575;border-radius:50%;margin:0 7px 1px 0}
.toolbar{height:58px;flex-shrink:0;display:flex;align-items:center;gap:9px;padding:0 28px;background:#fcfdf9;border-bottom:1px solid var(--line)}.tool-group{display:flex;align-items:center;gap:2px;padding-right:12px;border-right:1px solid var(--line)}.tool-group button{min-width:31px;padding:5px 8px}.tool-group b,.tool-group i,.tool-group u,.tool-group s{font-family:Georgia,serif;font-size:17px}.history-tools button{font-size:24px;line-height:1}.tool-group select{border:0;outline:0;background:transparent;max-width:152px;padding:6px}.view-switch{margin-left:auto;display:flex;gap:2px;padding:3px;border:1px solid var(--line);background:#f3f5ee;border-radius:7px}.view-switch button{font-size:12px;padding:5px 14px}.view-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #273a2820}.workspace{display:flex;flex:1;min-height:0}#sidebar{width:247px;flex-shrink:0;background:#f7f8f2;border-right:1px solid var(--line);padding:30px 20px 15px;display:flex;flex-direction:column;overflow:auto}.workspace-label,.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.7px;color:#8b9484}.workspace-label{margin:0 10px 18px}.active-document{display:flex;gap:10px;text-align:left;background:#e9eee0;padding:13px 11px;align-items:center;border:1px solid #e0e7d7;white-space:normal}.active-document>span:nth-child(2){min-width:0}.active-document strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;max-width:143px}.active-document small{display:block;font-size:10px;margin-top:3px;color:#8a9581}.document-icon{font-size:22px;color:#697b5e}.active-dot{height:5px;width:5px;border-radius:50%;background:#8d9f78;flex-shrink:0;margin-left:auto}.sidebar-section{margin:31px 10px 22px}h2{font-size:9px;letter-spacing:1.6px;color:#8b9484;font-weight:600;margin:0 0 13px}h2 span{float:right;letter-spacing:0;font-size:10px}#outline-list{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto}#outline-list button{white-space:normal;text-align:left;font-size:12px;line-height:1.5;padding:7px 10px;border-left:2px solid #dde5d4;border-radius:0;color:#71806a}#outline-list button:hover{color:#30472e;border-left-color:#6f895d}#outline-list button.level-2{margin-left:10px}#outline-list button.level-3{margin-left:20px}#outline-list p{font-size:12px;color:#8b9484}.new-page{border:1px dashed #d8dfce;margin:0 5px;font-size:11px;color:#7c8971;padding:10px}.new-page span{font-size:16px;margin-right:5px}.writing-goal{border:1px solid #dfe5d6;border-radius:9px;padding:17px 17px 15px;margin:34px 5px 0;background:#f0f3e8}.writing-goal>div:first-child{display:flex;align-items:center;justify-content:space-between}.writing-goal .eyebrow{font-size:8px;letter-spacing:1px}.writing-goal button{padding:0 2px;color:#819173}.writing-goal h3{font:italic 20px Georgia,serif;font-weight:400;margin:17px 0 8px;color:#516c42}.writing-goal p{font-size:11px;color:#929c85;margin:0 0 18px;line-height:1.7}.writing-goal progress{width:100%;height:4px;display:block;appearance:none;border:0;border-radius:4px;overflow:hidden}.writing-goal progress::-webkit-progress-bar{background:#dce4ce}.writing-goal progress::-webkit-progress-value{background:#8b9f6e}.writing-goal progress::-moz-progress-bar{background:#8b9f6e}.goal-caption{display:flex;justify-content:space-between;font-size:9px;margin-top:9px;color:#82916f}.sidebar-bottom{margin-top:auto;padding:35px 0 6px 15px;color:#89967d}.leaf{font:42px Georgia,serif;color:#acb69b}.sidebar-bottom p{font:italic 18px/1.5 Georgia,serif;margin:6px 0 25px}.sidebar-bottom small{font-size:8px;letter-spacing:1.7px;color:#a0aa96}
.writing-space{flex:1;min-width:0;display:flex;flex-direction:column}.workspace-topline{height:61px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 37px;color:#85917b;font-size:9px;letter-spacing:1.1px;gap:12px}.workspace-topline>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-topline .slash{padding:0 12px;color:#abb5a1}.tiny-document{font-size:14px;padding-right:9px}.workspace-topline button{color:#8c9882;font-size:11px;letter-spacing:0}.paper-scroll{overflow:auto;flex:1;padding:0 38px 20px;scroll-behavior:smooth}.page-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.6px;color:#97a08f;max-width:900px;margin:0 auto 13px}.page-caption>span:last-child{font-size:7px;letter-spacing:1.3px}.paper{background:var(--paper);max-width:900px;min-height:720px;margin:0 auto;padding:39px 58px 24px;box-shadow:0 3px 10px #3e4e2920,0 0 1px #73806530;border:1px solid #e2e6d9;border-radius:4px}.page-heading{display:flex;justify-content:space-between;align-items:center}.page-heading .eyebrow{font-size:8px;letter-spacing:2px}.rtf-label{font-size:7px;letter-spacing:1.1px;border:1px solid #e8ecdf;border-radius:4px;padding:4px 7px;color:#9ba58c}#title{display:block;border:0;background:transparent;min-width:0;width:100%;font:34px/1.3 Georgia,serif;letter-spacing:-.8px;color:#344632;padding:24px 0 17px;outline-offset:2px}.paper-divider{height:1px;background:#e7ebdf;margin:1px 0 25px}.editing-surfaces{display:flex;gap:32px}.source-wrap{flex:1;min-width:0}.surface-label{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1.2px;color:#9aa58e;margin-bottom:19px}.surface-label span{font-size:9px;letter-spacing:0;color:#a7af9e}#editor{display:block;width:100%;resize:none;border:0;outline:0;background:transparent;padding:0;overflow:hidden;min-height:470px;font:var(--font-size)/1.9 "Cascadia Code",Consolas,monospace;color:#52604c;tab-size:4}#preview{flex:1;min-width:0;font-size:var(--font-size)}.prose{font:17px/1.9 Georgia,"Times New Roman",serif;color:#57654e;overflow-wrap:anywhere}.prose h1,.prose h2,.prose h3{font-family:Georgia,serif;font-weight:400;line-height:1.35;letter-spacing:-.4px;color:#3e5434}.prose h1{font-size:2em;margin:0 0 .65em}.prose h2{font-size:1.4em;margin:1.4em 0 .7em}.prose h3{font-size:1.15em;margin:1em 0 .6em}.prose p{margin:.5em 0}.prose p.blank{line-height:.3;margin:0}.prose ul,.prose ol{padding-left:1.4em;margin:.7em 0}.prose li{padding-left:.3em;margin:.25em 0}.prose li::marker{color:#91a07e}.prose blockquote{border-left:2px solid #bbc6a9;margin:1.4em 0;padding:.2em 0 .2em 1.3em;font-style:italic;color:#869277}.prose table{width:100%;border-collapse:collapse;font:13px/1.5 "Segoe UI",sans-serif;margin:1em 0}.prose td{border:1px solid #dde4d3;padding:8px;min-width:55px}.prose tr:first-child{background:#f2f5eb;font-weight:600}.prose pre{font:13px/1.6 Consolas,monospace;overflow:auto;background:#f0f3ea;border-radius:5px;padding:15px;white-space:pre;overflow-wrap:normal}.prose code{font:85% Consolas,monospace;background:#eef2e6;padding:2px 4px;border-radius:3px}.prose pre code{background:none;padding:0}.prose hr{border:0;border-top:1px solid #dfe5d5;margin:2em 0}.task{font-family:"Segoe UI",sans-serif;color:#86966f}.page-bottom{margin-top:38px;padding-top:16px;border-top:1px solid #edf0e5;display:flex;justify-content:space-between;color:#b1b8a6;font-size:8px;letter-spacing:.6px}.page-bottom>span:first-child{font:italic 11px Georgia,serif;letter-spacing:0}.under-page{text-align:center;font:italic 12px Georgia,serif;color:#a1ac95;margin:22px 0 4px}footer{flex-shrink:0;min-height:40px;border-top:1px solid #dfe4d6;background:#f7f9f2;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 22px;font-size:10px;color:#8e9984}footer>div{display:flex;align-items:center;gap:8px}footer button{font-size:10px;padding:3px}footer #message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.footer-dot{color:#c0c8b5}#selection-count{color:#7a8e66}.zoom-tools button{font-size:14px;padding:1px 7px}.zoom-tools{white-space:nowrap}.split-view .paper{max-width:1500px;padding-left:35px;padding-right:35px}.split-view .page-caption{max-width:1500px}.split-view #preview{border-left:1px solid var(--line);padding-left:30px}.split-view #editor{font-size:14px}.preview-view .source-wrap{display:none}.focus-mode #sidebar,.focus-mode .toolbar,.focus-mode .page-caption,.focus-mode .under-page{display:none}.focus-mode .paper{max-width:850px}.focus-mode .workspace-topline{height:50px}.focus-mode .local-label{visibility:hidden}
.popup-menu{position:fixed;z-index:20;min-width:265px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;background:#fffefa;border:1px solid #dce2d1;border-radius:8px;padding:6px;box-shadow:0 7px 30px #24391e28}.popup-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;font-size:12px;padding:8px 10px;gap:20px}.popup-menu button span:last-child{font-size:10px;color:#97a28c}.popup-menu button:focus{background:#eaf0e1;outline:0}.popup-menu .checked:before{content:"✓";margin-right:5px;color:#66844e}dialog{border:1px solid #dce2d1;border-radius:13px;padding:28px;width:min(590px,calc(100vw - 32px));max-height:85dvh;overflow:auto;background:#fffefa;color:var(--ink);box-shadow:0 15px 80px #24391e35}dialog::backdrop{background:#2b40285c;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-heading h2{font:25px Georgia,serif;letter-spacing:-.4px;color:#3e5434;margin:0}.dialog-heading button{font-size:22px;line-height:1;padding:5px 10px}dialog label{display:block;font-size:12px;margin:14px 0}dialog input:not([type=checkbox]),dialog select{display:block;width:100%;margin-top:7px;border:1px solid #dce3d2;background:white;padding:9px 12px;border-radius:5px}dialog input[type=checkbox]{accent-color:var(--green);margin-right:6px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:24px}.dialog-actions button{border-color:#dce2d1}.dialog-copy{font-size:13px;line-height:1.8;color:#7f8c73}.dialog-error{font-size:12px;color:#a03e31;min-height:18px;margin:14px 0 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stats-grid>div{background:#f1f4e9;border:1px solid #e5eadb;border-radius:7px;padding:17px 12px}.stats-grid strong{font:27px Georgia,serif;display:block;color:#526a42}.stats-grid span{font-size:11px;color:#8c987e}.help-lines p{font-size:12px;line-height:1.8}.help-lines code{background:#eef2e6;padding:3px 6px}#error-strip{background:#fbebdd;padding:8px 20px;font-size:12px;color:#93402e;display:flex;justify-content:space-between;gap:15px}#error-strip button{padding:0 8px;font-size:18px}.template-card{display:block;width:100%;text-align:left;border:1px solid #e0e6d6;white-space:normal;margin:8px 0;padding:13px 16px}.template-card strong{display:block;font:19px Georgia,serif}.template-card small{display:block;color:#8d997f;margin-top:5px}#print-document{display:none}
@media(min-width:1600px){.paper{max-width:960px;padding:48px 70px}.page-caption{max-width:960px}.workspace-topline{padding:0 60px}.paper-scroll{padding-left:60px;padding-right:60px}}
@media(max-width:1150px){#sidebar{width:215px;padding-left:13px;padding-right:13px}.brand{width:180px}.document-identity{gap:8px}#saved-state{font-size:10px}.document-bar{gap:18px}.tool-group{padding-right:6px}.toolbar{padding:0 20px;gap:5px}.insert-tools span{display:none}.view-switch button{padding:5px 10px}.paper{padding:32px 35px}.paper-scroll{padding-left:25px;padding-right:25px}.workspace-topline{padding:0 25px}.split-view #sidebar{display:none}}
@media(max-width:900px){#sidebar{display:none}.brand{width:150px}.brand small{font-size:7px;letter-spacing:1.3px}.document-bar{padding:0 20px;gap:20px;height:73px}.document-identity{display:block}#saved-state{display:block;margin-top:3px}.local-label{display:none}.toolbar{gap:4px}.tool-group button{padding:5px 6px}.insert-tools{display:none}.page-caption{margin-top:0}.paper{max-width:800px}.workspace-topline{height:50px}}
@media(max-width:600px){#app{min-height:400px}.document-bar{padding:0 13px;height:67px;gap:12px}.brand{width:auto;gap:8px}.brand>span:last-child{font-size:28px}.brand small{display:none}.logo{height:35px;width:35px;font-size:32px;border-radius:9px 9px 9px 2px}.document-identity{display:none}.file-actions{margin-left:auto;gap:2px}.file-actions button{font-size:11px;padding:8px 10px}.file-actions .primary span{display:none}.menu-row{padding:0 8px;height:40px}#menubar{width:100%;gap:0}#menubar button{font-size:12px;padding:7px 9px}.toolbar{height:auto;min-height:52px;flex-wrap:wrap;padding:7px 12px;gap:7px}.history-tools{display:none}.tool-group{padding-right:7px}.tool-group select{max-width:124px;font-size:11px;padding:4px 0}.tool-group button{font-size:11px;min-width:26px;padding:3px 5px}.tool-group b,.tool-group i,.tool-group u,.tool-group s{font-size:15px}.view-switch{margin-left:auto}.view-switch button{font-size:10px;padding:4px 9px}.workspace-topline{height:42px;padding:0 16px;font-size:8px}.workspace-topline button span{display:none}.paper-scroll{padding:0 12px 15px}.page-caption{font-size:6px;letter-spacing:1px}.page-caption>span:last-child{display:none}.paper{padding:25px 23px 20px;min-height:650px}#title{font-size:28px;padding:22px 0 15px}.rtf-label{font-size:6px;letter-spacing:.5px}.surface-label{font-size:7px}.surface-label span{font-size:8px}.editing-surfaces{gap:18px}#editor{font-size:14px;line-height:1.9}.prose{font-size:16px}.under-page{font-size:11px}.split-view .paper{padding:25px 18px}.split-view .editing-surfaces{display:block}.split-view #preview{border-left:0;border-top:1px solid var(--line);padding:25px 0 0;margin-top:25px}.split-view #editor{min-height:220px}footer{padding:0 12px;gap:8px}footer #message{display:none}footer .zoom-tools{gap:4px}.stats-grid{grid-template-columns:repeat(2,1fr)}.dialog-actions{justify-content:flex-start}}
@media print{body{background:white}#app,#menu-layer,dialog{display:none!important}#print-document{display:block;max-width:100%;margin:0;padding:0;color:#111;font:12pt/1.5 Georgia,serif}.prose h1,.prose h2,.prose h3{break-after:avoid}.prose table,.prose pre,.prose blockquote{break-inside:avoid}.prose a{color:inherit} @page{margin:20mm}}
