:root{color-scheme:light;--bg:#f7f6f2;--surface:#fffefb;--muted-surface:#faf9f6;--text:#272c2b;--muted:#8b8d85;--border:#e7e7df;--accent:#d96843;--accent-soft:#faede5;--green:#71866b;--code:#f1f0ea;--shadow:0 12px 34px #2f352608}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea{font:inherit}button,summary,a{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{color:inherit}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:none}button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.3;cursor:default}.site-header{height:86px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 4.1%;gap:20px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);font-size:23px;font-weight:670;letter-spacing:-1px}.brand-dot{color:var(--accent)}.header-note{color:var(--muted);font-size:12px;display:flex;align-items:center;gap:9px;margin-right:auto;margin-left:28px}.green-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;flex-shrink:0}.header-actions{display:flex;align-items:center;gap:16px}.icon-button{border:1px solid var(--border);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:24px}.icon-button:hover{background:var(--accent-soft)}main{max-width:1600px;margin:0 auto;padding:39px 4.1% 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.8px;color:var(--accent);margin:0 0 10px}h1{font-family:Georgia,"Times New Roman",serif;font-size:38px;line-height:1.2;font-weight:400;letter-spacing:-1.2px;margin:0 0 10px}.intro-description{margin:0;color:var(--muted);font-size:13px}.intro-aside{display:flex;align-items:center;gap:18px;padding:0 26px;color:var(--muted);font-size:12px;line-height:1.8;transform:rotate(-3deg)}.intro-aside svg{width:35px;height:35px;color:var(--accent);stroke-width:1.1}.workspace{border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);overflow:visible}.document-bar{min-height:69px;padding:15px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);gap:12px}.document-title{display:flex;align-items:center;gap:9px;min-width:0}.document-title>svg{color:var(--muted);width:17px}.document-title input{color:var(--text);border:none;background:transparent;font-weight:600;width:130px;padding:3px 0;min-width:60px;max-width:240px}.extension{color:var(--muted);margin-left:-8px}.saved-status{border-left:1px solid var(--border);padding-left:17px;margin-left:14px;display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}.file-actions{display:flex;align-items:center;gap:6px}.button{border-radius:6px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:500;white-space:nowrap;text-decoration:none;line-height:1.5}.button svg{width:15px;height:15px}.button.subtle{color:var(--muted)}.button.subtle:hover{background:var(--code);color:var(--text)}.button.primary{background:var(--accent);color:#fff9f2;border:1px solid transparent}.button.primary:hover{filter:brightness(.95)}.plus{font-size:19px;line-height:15px;font-weight:300}.export-menu{position:relative;margin-left:5px}.export-menu summary{list-style:none}.export-menu summary::-webkit-details-marker{display:none}.chevron{width:12px!important;height:12px!important;margin-left:4px}.dropdown{z-index:10;position:absolute;right:0;top:calc(100% + 8px);width:220px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 25px #0002}.dropdown button{width:100%;display:flex;justify-content:space-between;text-align:left;padding:12px 10px;font-size:12px;border-radius:4px}.dropdown button:hover{background:var(--code)}.dropdown span{color:var(--muted);font-size:10px}.format-bar{height:57px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:12px;background:var(--muted-surface)}.format-tools{display:flex;align-items:center;gap:4px;min-width:0}.tool{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:5px;font-size:15px}.tool:hover{background:var(--accent-soft);color:var(--accent)}.tool svg{width:17px;height:17px}.tool i{font-family:Georgia,serif;font-size:19px}.tool .subscript{font-size:9px;align-self:flex-end;padding-bottom:6px}.code-tool{font-family:monospace;font-size:12px;font-weight:600}.tool-separator{height:15px;width:1px;background:var(--border);margin:0 7px}.view-controls{display:flex;padding:3px;background:var(--code);border-radius:6px;gap:2px}.view-controls button{font-size:10px;color:var(--muted);padding:5px 10px;border-radius:4px}.view-controls [aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0001}.panes{display:grid;grid-template-columns:1fr 1fr;height:clamp(410px,calc(100dvh - 400px),750px);min-height:410px}.source-pane,.preview-pane{display:flex;flex-direction:column;min-width:0;overflow:hidden}.source-pane{border-right:1px solid var(--border);background:var(--muted-surface)}.pane-label{height:45px;min-height:45px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;font-size:9px;color:var(--muted);letter-spacing:1px}.pane-label>span:first-child{display:flex;align-items:center;gap:7px}.pane-label>span:last-child{letter-spacing:0;font-size:10px}.label-dot{width:5px;height:5px;border-radius:50%;background:var(--muted)}.label-dot.orange{background:var(--accent)}.live-badge{color:var(--green);display:flex;gap:5px;align-items:center}.live-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--green)}.source-area{flex:1;position:relative;overflow:hidden;min-height:0}.source-area textarea{width:100%;height:100%;resize:none;outline:none;border:0;background:transparent;color:var(--text);padding:13px 26px 40px 61px;line-height:27px;font-size:12px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;tab-size:2;overflow:auto;white-space:pre;caret-color:var(--accent)}.source-area textarea:focus-visible{outline:0;box-shadow:inset 3px 0 var(--accent)}#line-numbers{position:absolute;left:0;top:0;bottom:0;padding:13px 0 40px;width:45px;text-align:right;color:var(--muted);font:11px/27px "SFMono-Regular",Consolas,monospace;opacity:.6;white-space:pre;overflow:hidden;pointer-events:none}.preview-scroll{overflow:auto;flex:1;padding:8px 42px 40px;min-height:0}.prose{font-size:13px;line-height:1.85;overflow-wrap:anywhere}.prose>:first-child{margin-top:0}.prose h1,.prose h2,.prose h3{font-family:Georgia,"Times New Roman",serif;line-height:1.3;font-weight:400;letter-spacing:-.4px}.prose h1{font-size:31px;margin-bottom:19px}.prose h2{font-size:24px;margin:29px 0 12px}.prose h3{font-size:20px}.prose p{margin:12px 0}.prose a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px}.prose strong{font-weight:650}.prose ul,.prose ol{padding-left:21px}.prose li{padding:3px 0}.prose blockquote{margin:24px 0;padding:6px 19px;border-left:2px solid var(--accent);background:var(--accent-soft);color:var(--text);font-family:Georgia,serif;font-style:italic}.prose blockquote p{margin:6px 0}.prose code{background:var(--code);padding:3px 5px;border-radius:4px;font-size:11px;font-family:"SFMono-Regular",Consolas,monospace}.prose pre{overflow:auto;padding:18px 20px;border-radius:6px;background:var(--code);line-height:1.8}.prose pre code{padding:0;background:none}.prose hr{border:0;border-top:1px solid var(--border);margin:27px 0}.prose table{border-collapse:collapse;width:100%;font-size:12px;display:block;overflow:auto;white-space:nowrap}.prose th,.prose td{padding:9px 14px;border-bottom:1px solid var(--border);text-align:left}.prose th{background:var(--muted-surface);font-weight:600}.prose input[type=checkbox]{accent-color:var(--green);margin-right:7px}.prose img{max-width:100%;height:auto;border-radius:5px}.preview-empty{color:var(--muted);text-align:center;padding:90px 20px}.preview-empty svg{width:34px;height:34px;color:var(--accent);margin-bottom:8px}.preview-empty h2{font-size:25px}.workspace-footer{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-top:1px solid var(--border);color:var(--muted);font-size:10px;border-radius:0 0 12px 12px}.footer-divider{padding:0 10px;color:var(--border)}.workspace-footer button{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.workspace-footer button:hover{color:var(--accent)}.workspace-footer svg{width:15px;height:15px}.keyboard-hint{font:10px monospace;border:1px solid var(--border);border-radius:3px;padding:0 4px}.page-footer{display:flex;justify-content:space-between;align-items:center;padding:20px 0 26px;font-size:10px;color:var(--muted);gap:15px}.page-footer>span:first-child{display:flex;align-items:center;gap:7px}.page-footer svg{width:12px;height:12px}.orange-dot{color:var(--accent);margin-left:3px}.panes[data-view=editor]{grid-template-columns:1fr}.panes[data-view=editor] .preview-pane{display:none}.panes[data-view=editor] .source-pane{border-right:0}.panes[data-view=preview]{grid-template-columns:1fr}.panes[data-view=preview] .source-pane{display:none}.panes[data-view=preview] .preview-scroll{padding-left:max(30px,calc((100% - 760px)/2));padding-right:max(30px,calc((100% - 760px)/2))}.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}dialog{width:min(600px,calc(100% - 30px));max-height:85dvh;border:1px solid var(--border);border-radius:14px;padding:30px;background:var(--surface);color:var(--text);box-shadow:0 20px 80px #0002}dialog::backdrop{background:#1f272b55;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font:30px Georgia,serif;margin:0}.dialog-heading .eyebrow{font-size:8px}.dialog-note{color:var(--muted);font-size:12px;margin:20px 0 25px}.guide-grid{display:grid;grid-template-columns:110px 1fr;gap:13px;font-size:12px}.guide-grid span{color:var(--muted)}.guide-grid code{background:var(--code);padding:4px 7px;border-radius:3px;font-size:10px;overflow-wrap:anywhere}.guide-shortcuts{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:20px;margin-top:25px;font-size:10px;color:var(--muted)}kbd{border:1px solid var(--border);border-radius:3px;padding:2px 4px;font-family:inherit;font-size:9px}#draft-list{display:grid;gap:6px;margin-bottom:25px;max-height:45vh;overflow:auto}.draft-row{text-align:left;display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--border);border-radius:6px}.draft-row:hover{background:var(--muted-surface)}.draft-row.active{border-color:var(--accent);background:var(--accent-soft)}.draft-row span{display:grid;gap:2px;min-width:0}.draft-row strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-row small{font-size:10px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:var(--text);color:var(--surface);font-size:12px;padding:11px 20px;border-radius:7px;box-shadow:0 5px 30px #0002;transition:opacity .18s,transform .18s;max-width:90%;z-index:100}#toast.visible{opacity:1;transform:translate(-50%,0)}body.dark{color-scheme:dark;--bg:#1c2223;--surface:#252c2d;--muted-surface:#212728;--text:#e8e7de;--muted:#9ca49d;--border:#36403f;--accent:#e68c64;--accent-soft:#44342c;--green:#a4b49a;--code:#303938;--shadow:0 12px 34px #0001}.dragging .workspace{outline:2px dashed var(--accent);outline-offset:6px}@media(min-width:1500px){.panes{min-height:520px}.prose{font-size:14px}.source-area textarea{font-size:13px}}@media(max-width:1050px){.header-note{display:none}.saved-status{margin-left:6px;padding-left:10px}.pane-label>span:last-child:not(.live-badge){display:none}.format-tools{gap:1px}.tool-separator{margin:0 4px}.tool{width:28px}.preview-scroll{padding:8px 26px 35px}.document-bar{padding:14px 16px}}@media(max-width:780px){.site-header{height:70px;padding:0 20px}.brand{font-size:20px}.brand img{width:30px;height:30px}.header-actions{gap:6px}.header-actions .button{padding:7px;font-size:11px}.header-actions .button svg{display:none}main{padding:27px 18px 0}h1{font-size:31px}.intro{margin-bottom:24px}.intro-aside{display:none}.intro-description{font-size:12px;max-width:300px}.document-bar{flex-wrap:wrap;padding:13px 14px;gap:11px}.document-title{width:100%}.document-title input{width:125px}.saved-status{margin-left:auto;border:0;font-size:9px}.file-actions{width:100%;justify-content:flex-end}.format-bar{height:auto;min-height:55px;flex-wrap:wrap;padding:9px 10px;justify-content:center;gap:8px}.format-tools{width:100%;justify-content:space-between;gap:0}.tool-separator{margin:0 2px}.tool{width:27px}.view-controls{width:100%;justify-content:center}.view-controls button{flex:1;font-size:11px}.panes{height:55dvh;min-height:370px}.panes[data-view=split]{grid-template-columns:1fr;grid-template-rows:1fr 1fr;height:85dvh;min-height:660px}.panes[data-view=split] .source-pane{border-right:0;border-bottom:1px solid var(--border)}.pane-label{padding:0 18px;height:38px;min-height:38px}.source-area textarea{padding-left:49px;padding-right:18px;font-size:12px;line-height:25px}#line-numbers{width:34px;line-height:25px}.preview-scroll{padding:12px 24px 28px}.workspace-footer{padding:0 12px;font-size:9px}.workspace-footer #reading-time,.workspace-footer .footer-divider:last-of-type{display:none}.footer-divider{padding:0 5px}.workspace-footer button{font-size:9px}.workspace-footer button svg,.keyboard-hint{display:none}.page-footer{font-size:9px;align-items:flex-start}.page-footer>span:last-child{display:none}dialog{padding:23px}.guide-grid{grid-template-columns:80px 1fr;font-size:11px}.dialog-heading h2{font-size:25px}}@media print{.site-header,.intro,.document-bar,.format-bar,.source-pane,.pane-label,.workspace-footer,.page-footer,dialog,#toast{display:none!important}body,main,.workspace,.panes,.preview-pane,.preview-scroll{display:block!important;background:white!important;border:0;box-shadow:none;padding:0!important;margin:0!important;height:auto!important;overflow:visible!important}.prose{color:#222}}
