@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.resize{resize:both}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;width:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background-color:#fafaf9;color:#1c1c1e;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.writedown-root{display:flex;flex-direction:column;height:100vh;width:100%;background-color:#fafaf9}.topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 28px 14px;flex-shrink:0}.topbar-logo{display:flex;align-items:center;gap:8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.topbar-logo-mark{width:24px;height:24px;background:#1c1c1e;border-radius:6px;display:flex;align-items:center;justify-content:center}.topbar-logo-mark svg{width:14px;height:14px}.topbar-logo-name{font-size:15px;font-weight:500;letter-spacing:-.3px;color:#1c1c1e}.topbar-actions{display:flex;align-items:center;gap:10px}.btn-ghost{background:transparent;border:none;cursor:pointer;font-family:inherit;font-size:13px;font-weight:450;color:#6b7280;padding:6px 12px;border-radius:8px;display:flex;align-items:center;gap:6px;transition:background .15s ease,color .15s ease;letter-spacing:-.1px}.btn-ghost:hover{background:#0000000d;color:#1c1c1e}.btn-ghost .count-badge{background:#e5e7eb;color:#374151;font-size:11px;font-weight:500;padding:1px 6px;border-radius:10px;min-width:18px;text-align:center;transition:background .15s ease}.save-container{position:relative}.btn-save{background:#1c1c1e;color:#fafaf9;border:none;cursor:pointer;font-family:inherit;font-size:13px;font-weight:500;letter-spacing:-.1px;padding:7px 16px;border-radius:100px;display:flex;align-items:center;gap:6px;transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease;box-shadow:0 1px 3px #0000001f,0 1px 2px #00000014}.btn-save:hover{opacity:.88;transform:translateY(-1px);box-shadow:0 4px 12px #00000026,0 2px 4px #00000014}.btn-save:active{transform:translateY(0);opacity:1}.btn-save:disabled{opacity:.35;cursor:not-allowed;transform:none;box-shadow:none}.btn-save-chevron{width:12px;height:12px;transition:transform .2s ease}.btn-save-chevron.open{transform:rotate(180deg)}.save-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:200px;background:#fcfcfbeb;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:6px;box-shadow:0 0 0 1px #fff9 inset,0 4px 6px #0000000a,0 10px 30px #0000001a,0 20px 50px #0000000f;z-index:100;transform-origin:top right;animation:dropdown-in .18s cubic-bezier(.16,1,.3,1) forwards}@keyframes dropdown-in{0%{opacity:0;transform:scale(.94) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.dropdown-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;border:none;background:transparent;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:13.5px;font-weight:400;color:#1c1c1e;letter-spacing:-.1px;transition:background .12s ease}.dropdown-item:hover{background:#0000000d}.dropdown-item:active{background:#00000014}.dropdown-item-icon{width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.dropdown-item-icon.txt{background:#eff6ff}.dropdown-item-icon.md{background:#f0fdf4}.dropdown-item-icon.local{background:#fff7ed}.dropdown-item-icon svg{width:14px;height:14px}.dropdown-divider{height:1px;background:#0000000f;margin:4px 6px}.dropdown-item-label{display:flex;flex-direction:column;gap:1px}.dropdown-item-title{font-size:13px;font-weight:500;color:#1c1c1e}.dropdown-item-sub{font-size:11px;color:#9ca3af;letter-spacing:0px}.canvas-wrapper{flex:1;display:flex;flex-direction:column;overflow:hidden;padding:0 max(28px,calc((100% - 720px)/2))}.editor-container{flex:1;display:flex;flex-direction:column;overflow-y:auto}.editor-container::-webkit-scrollbar{width:0}.write-textarea{flex:1;width:100%;resize:none;border:none;outline:none;background:transparent;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:17px;font-weight:400;line-height:1.85;color:#1c1c1e;letter-spacing:-.2px;padding:8px 0 120px;caret-color:transparent!important;-webkit-font-smoothing:antialiased;transition:color .2s ease}.custom-caret{position:fixed;width:2.5px;background-color:#3b82f6;border-radius:1px;pointer-events:none;z-index:100;display:none}@keyframes caret-blink{0%,to{opacity:1}50%{opacity:0}}.ProseMirror{outline:none!important}.ProseMirror p.is-editor-empty:first-child:before{color:#c4c4c2;content:attr(data-placeholder);float:left;height:0;pointer-events:none;font-weight:400}.ProseMirror p{margin-bottom:.8em}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4{font-weight:600;line-height:1.3;margin-top:1.25em;margin-bottom:.4em;letter-spacing:-.4px}.ProseMirror h1{font-size:1.6em}.ProseMirror h2{font-size:1.3em}.ProseMirror h3{font-size:1.1em}.ProseMirror ul,.ProseMirror ol{padding-left:1.25rem;margin-bottom:.8em}.ProseMirror ul{list-style-type:disc}.ProseMirror ol{list-style-type:decimal}.ProseMirror blockquote{border-left:3px solid #E5E7EB;padding-left:1rem;margin-left:0;margin-right:0;color:#6b7280;font-style:italic}.ProseMirror hr{border:none;border-top:1px solid #E5E7EB;margin:2em 0}.ProseMirror code{background:#0000000d;padding:.2em .4em;border-radius:4px;font-size:.85em;font-family:inherit}.ProseMirror pre{background:#1c1c1e;color:#fafaf9;padding:1rem;border-radius:8px;overflow-x:auto;font-size:.85em}.ProseMirror pre code{background:transparent;padding:0;color:inherit}.footer{display:flex;align-items:center;justify-content:flex-end;padding:12px 28px 18px;flex-shrink:0;pointer-events:none}.word-count{font-size:12px;font-weight:400;color:#c4c4c2;letter-spacing:.1px;transition:color .3s ease,opacity .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.word-count.has-content{color:#9ca3af}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000014;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:200;animation:fade-in .2s ease forwards}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.drawer{position:fixed;top:0;right:0;bottom:0;width:340px;background:#fafaf9;border-left:1px solid rgba(0,0,0,.07);box-shadow:-8px 0 40px #00000014;z-index:201;display:flex;flex-direction:column;animation:drawer-in .28s cubic-bezier(.16,1,.3,1) forwards}@keyframes drawer-in{0%{transform:translate(100%)}to{transform:translate(0)}}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 16px;border-bottom:1px solid rgba(0,0,0,.06);flex-shrink:0}.drawer-title{font-size:15px;font-weight:600;letter-spacing:-.3px;color:#1c1c1e}.btn-close{width:28px;height:28px;border-radius:50%;border:none;background:#0000000f;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease;color:#6b7280}.btn-close:hover{background:#0000001a;color:#1c1c1e}.drawer-list{flex:1;overflow-y:auto;padding:10px 12px}.drawer-list::-webkit-scrollbar{width:0}.drawer-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:8px;color:#c4c4c2}.drawer-empty-icon{width:40px;height:40px;border-radius:12px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;margin-bottom:4px}.drawer-empty p{font-size:13px;color:#9ca3af}.drawer-entry{padding:12px 14px;border-radius:10px;cursor:pointer;transition:background .12s ease;border:none;background:transparent;width:100%;text-align:left;margin-bottom:2px}.drawer-entry:hover{background:#0000000a}.drawer-entry:active{background:#00000012}.drawer-entry-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px}.drawer-entry-date{font-size:11px;font-weight:500;color:#9ca3af;letter-spacing:.1px}.drawer-entry-words{font-size:11px;color:#c4c4c2}.drawer-entry-preview{font-size:13px;color:#374151;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.drawer-entry-restore{font-size:11px;color:#9ca3af;margin-top:6px;opacity:0;transition:opacity .15s ease}.drawer-entry:hover .drawer-entry-restore{opacity:1}.toast-container{position:fixed;bottom:28px;left:50%;transform:translate(-50%);z-index:300;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.toast{background:#1c1c1e;color:#fafaf9;font-size:13px;font-weight:450;letter-spacing:-.1px;padding:9px 18px;border-radius:100px;box-shadow:0 4px 20px #0003;display:flex;align-items:center;gap:8px;white-space:nowrap;animation:toast-in .3s cubic-bezier(.16,1,.3,1) forwards}.toast.fade-out{animation:toast-out .25s ease forwards}@keyframes toast-in{0%{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(6px) scale(.97)}}.toast-dot{width:6px;height:6px;border-radius:50%;background:#34d399;flex-shrink:0}.drawer-item-container{display:flex;align-items:center;gap:8px;margin-bottom:2px}.drawer-item-container .drawer-entry{margin-bottom:0;flex:1}.btn-delete{color:#9ca3af;background:transparent;border:none;border-radius:8px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:all .15s ease;flex-shrink:0}.drawer-item-container:hover .btn-delete{opacity:1}.btn-delete:hover{background:#fee2e2;color:#ef4444}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000026;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:400;display:flex;align-items:center;justify-content:center;animation:fade-in .2s ease forwards}.modal{background:#fcfcfb;border-radius:20px;padding:24px;width:320px;box-shadow:0 10px 40px #0000001a;animation:modal-in .3s cubic-bezier(.16,1,.3,1) forwards}@keyframes modal-in{0%{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-title{font-size:16px;font-weight:600;color:#1c1c1e;margin-bottom:8px;letter-spacing:-.3px}.modal-desc{font-size:13.5px;color:#6b7280;line-height:1.5;margin-bottom:24px}.modal-actions{display:flex;gap:10px;justify-content:flex-end}.btn-cancel{background:transparent;border:none;font-family:inherit;font-size:13.5px;font-weight:500;color:#6b7280;cursor:pointer;padding:8px 16px;border-radius:8px;transition:background .15s ease,color .15s ease}.btn-cancel:hover{background:#0000000d;color:#1c1c1e}.btn-danger{background:#ef4444;color:#fff;border:none;font-family:inherit;font-size:13.5px;font-weight:500;cursor:pointer;padding:8px 16px;border-radius:8px;transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease;box-shadow:0 1px 2px #ef444433}.btn-danger:hover{opacity:.9;transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.btn-danger:active{transform:translateY(0)}
