*{box-sizing:border-box;margin:0;padding:0}:root{--rp-base:#faf4ed;--rp-surface:#fffaf3;--rp-overlay:#f2e9e1;--rp-muted:#9893a5;--rp-subtle:#797593;--rp-text:#575279;--rp-love:#b4637a;--rp-gold:#ea9d34;--rp-rose:#d7827e;--rp-pine:#286983;--rp-foam:#56949f;--rp-iris:#907aa9;--rp-highlight-low:#f4ede8;--rp-highlight-med:#dfdad9;--rp-highlight-high:#cecacd}body{background:var(--rp-base);color:var(--rp-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.65;transition:background-color .4s,color .4s;overflow:hidden}.app-container{width:100vw;height:100vh;display:flex;overflow:hidden}.app-container.focus-mode .sidebar,.app-container.focus-mode .file-controls{opacity:.1;transition:opacity .5s cubic-bezier(.4,0,.2,1)}.app-container.focus-mode .sidebar:hover,.app-container.focus-mode .file-controls:hover{opacity:.4}.app-container.no-sidebar .main-content{width:100%;height:calc(100vh - 56px);min-height:0;margin-left:0}.app-container.no-sidebar .file-controls{width:100%;left:0}.app-container.no-sidebar .editable-container{max-width:none;margin:0 auto}.app-container.no-sidebar .editable-container .cm-scroller{padding:56px 0 160px}.sidebar{background:var(--rp-highlight-low);border-right:1px solid var(--rp-overlay);z-index:100;flex-direction:column;width:280px;height:100vh;transition:opacity .5s cubic-bezier(.4,0,.2,1),background-color .4s;display:flex;position:fixed;top:0;left:0;overflow:hidden}.sidebar-header{border-bottom:1px solid var(--rp-overlay);background:var(--rp-surface);justify-content:space-between;align-items:center;padding:10px 14px;display:flex}.sidebar-title{color:var(--rp-text);font-size:13px;font-weight:500}.new-document-btn{color:var(--rp-iris);border:1px solid var(--rp-overlay);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;padding:0;font-size:13px;font-weight:450;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex}.new-document-btn:hover{background:var(--rp-highlight-med);color:var(--rp-text)}.document-search{background:var(--rp-surface);border-bottom:1px solid var(--rp-overlay);color:var(--rp-muted);align-items:center;gap:7px;padding:8px 10px 8px 12px;display:flex}.document-search input{color:var(--rp-text);font:inherit;background:0 0;border:0;outline:0;flex:1;min-width:0;font-size:13px}.document-search input::placeholder{color:var(--rp-subtle)}.document-search button{color:var(--rp-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;width:22px;height:22px;padding:0;display:flex}.document-search button:hover{background:var(--rp-highlight-med);color:var(--rp-text)}.document-list{flex:1;margin:0;padding:0;list-style:none;overflow-y:auto}.document-item{border-bottom:1px solid var(--rp-highlight-med);cursor:pointer;background:var(--rp-surface);align-items:center;min-height:52px;padding:7px 8px 7px 12px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex}.document-item:hover{background:var(--rp-highlight-low)}.document-item.active{background:var(--rp-highlight-med);border-left:2px solid var(--rp-iris);padding-left:10px}.document-content{text-align:left;cursor:pointer;min-width:0;font:inherit;color:inherit;background:0 0;border:none;flex:1;width:100%;padding:0;display:block}.document-title{color:var(--rp-text);text-overflow:ellipsis;white-space:nowrap;margin-bottom:2px;font-size:13px;font-weight:450;overflow:hidden}.document-date{color:var(--rp-muted);font-size:11px;font-weight:400}.document-actions{opacity:0;gap:2px;transition:opacity .3s cubic-bezier(.4,0,.2,1);display:flex}.document-item:hover .document-actions,.document-item:focus-within .document-actions,.document-item.active .document-actions{opacity:1}.action-btn{cursor:pointer;color:var(--rp-muted);background:0 0;border:none;border-radius:7px;padding:4px;font-size:12px;transition:all .3s cubic-bezier(.4,0,.2,1)}.action-btn:hover{background:var(--rp-overlay);color:var(--rp-text)}.rename-input{border:1px solid var(--rp-highlight-high);background:var(--rp-surface);width:100%;color:var(--rp-text);border-radius:6px;outline:none;padding:4px 8px;font-size:14px;font-weight:450;transition:all .3s cubic-bezier(.4,0,.2,1)}.rename-input:focus{border-color:var(--rp-iris);box-shadow:0 0 0 1px var(--rp-iris)}.no-documents{text-align:center;color:var(--rp-muted);padding:32px 24px;font-size:14px;font-style:italic}.main-content{background:var(--rp-base);flex:1;height:calc(100vh - 56px);min-height:100vh;margin-top:56px;margin-left:280px;display:block;overflow:hidden}.file-controls{background:var(--rp-surface);border-bottom:1px solid var(--rp-overlay);z-index:99;align-items:center;gap:16px;height:56px;padding:10px 16px;transition:opacity .5s cubic-bezier(.4,0,.2,1);display:flex;position:fixed;top:0;left:280px;right:0}.file-controls button{border:1px solid var(--rp-overlay);color:var(--rp-iris);cursor:pointer;background:#fffaf3b8;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:450;transition:all .3s cubic-bezier(.4,0,.2,1)}.file-controls button:hover{background:var(--rp-highlight-low);border-color:var(--rp-highlight-high);color:var(--rp-text);box-shadow:0 2px 4px #907aa929}.file-name{color:var(--rp-muted);text-overflow:ellipsis;white-space:nowrap;max-width:40vw;margin-left:auto;font-size:13px;font-weight:450;overflow:hidden}.save-state{color:var(--rp-muted);text-align:right;text-transform:capitalize;min-width:44px;font-size:12px}.save-state.error{color:var(--rp-love)}.app-toast{z-index:1200;background:var(--rp-text);color:var(--rp-surface);border-radius:8px;padding:10px 14px;font-size:13px;position:fixed;bottom:20px;right:20px;box-shadow:0 12px 30px #57527929}.file-controls .about-btn{border:1px solid var(--rp-overlay);color:var(--rp-muted);cursor:pointer;background:#fffaf38f;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;margin-left:8px;padding:0;font-size:14px;font-weight:500;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex}.file-controls .about-btn:hover{background:var(--rp-highlight-low);border-color:var(--rp-highlight-high);color:var(--rp-text);box-shadow:0 2px 4px #907aa929}.editable-container{background:var(--rp-base);outline:none;width:100%;max-width:none;height:100%;min-height:0;margin:0 auto;position:relative}.editable-container:focus-within{background:var(--rp-surface)}.editable-container .cm-editor{color:var(--rp-text);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;background:0 0;height:100%;font-family:JetBrains Mono,SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;font-size:17px;font-weight:500;line-height:1.8}.editable-container .cm-editor.cm-focused{outline:none}.editable-container .cm-scroller{padding:48px 0 160px;font-family:inherit}.editable-container .cm-content{box-sizing:border-box;caret-color:var(--rp-text);max-width:1040px;margin:0 auto;padding:0 72px}.editable-container .cm-line{padding:0}.editable-container .cm-placeholder{color:var(--rp-muted);font-style:italic}.onboarding-panel{justify-content:center;align-items:center;height:100%;padding:48px 24px;display:flex}.onboarding-content{width:100%;max-width:520px}.onboarding-kicker{color:var(--rp-iris);margin-bottom:12px;font-size:13px;font-weight:700}.onboarding-content h1{color:var(--rp-text);margin-bottom:14px;font-size:30px;font-weight:800;line-height:1.15}.onboarding-content p{color:var(--rp-subtle);font-size:16px;line-height:1.7}.onboarding-actions{gap:10px;margin-top:24px;display:flex}.onboarding-actions button{background:var(--rp-surface);border:1px solid var(--rp-overlay);color:var(--rp-text);cursor:pointer;font:inherit;border-radius:8px;align-items:center;gap:8px;padding:10px 14px;font-size:14px;font-weight:600;display:inline-flex}.onboarding-actions button:first-child,.confirm-actions .primary-button{background:var(--rp-iris);border-color:var(--rp-iris);color:var(--rp-surface)}.onboarding-actions button:hover{border-color:var(--rp-iris)}.editable-container .cm-cursorLayer .cm-cursor{background:0 0;border-left:0;width:.65em;transition:left 70ms linear,top 70ms linear,transform 70ms linear,height 70ms linear;animation:1.1s step-end infinite cursorBlink}.editable-container .cm-cursorLayer .cm-cursor:after{background:var(--rp-text);content:"";width:.65em;height:2px;position:absolute;bottom:.15em;left:0}.editable-container .cm-focused .cm-cursorLayer .cm-cursor{animation-play-state:running}@keyframes cursorBlink{0%,45%{opacity:1}46%,to{opacity:0}}@media (prefers-reduced-motion:reduce){.editable-container .cm-cursorLayer .cm-cursor{transition:none;animation:none}}.document-list::-webkit-scrollbar{width:8px}.editable-container::-webkit-scrollbar{width:8px}.document-list::-webkit-scrollbar-track{background:#faf4edb8;border-radius:4px}.editable-container::-webkit-scrollbar-track{background:#faf4edb8;border-radius:4px}.document-list::-webkit-scrollbar-thumb{background:var(--rp-highlight-high);border-radius:4px;transition:background .3s}.editable-container::-webkit-scrollbar-thumb{background:var(--rp-highlight-high);border-radius:4px;transition:background .3s}.document-list::-webkit-scrollbar-thumb:hover{background:var(--rp-subtle)}.editable-container::-webkit-scrollbar-thumb:hover{background:var(--rp-subtle)}@media (prefers-color-scheme:dark){body{background:var(--rp-base);color:var(--rp-text)}.sidebar{background:var(--rp-surface);border-right-color:var(--rp-overlay)}.sidebar-header{background:var(--rp-surface);border-bottom-color:var(--rp-overlay)}.sidebar-title{color:var(--rp-text)}.new-document-btn{border-color:var(--rp-overlay);color:var(--rp-muted);background:0 0}.new-document-btn:hover{background:var(--rp-overlay);color:var(--rp-text)}.document-item{background:var(--rp-surface);border-bottom-color:var(--rp-overlay)}.document-item:hover{background:var(--rp-overlay)}.document-item.active{background:var(--rp-overlay);border-left-color:var(--rp-iris)}.document-title{color:var(--rp-text)}.document-date,.action-btn{color:var(--rp-muted)}.action-btn:hover{background:var(--rp-highlight-high);color:var(--rp-text)}.rename-input{background:var(--rp-overlay);border-color:var(--rp-iris);color:var(--rp-text)}.document-search{background:var(--rp-surface);border-bottom-color:var(--rp-overlay);color:var(--rp-muted)}.document-search input{color:var(--rp-text)}.document-search input::placeholder{color:var(--rp-subtle)}.document-search button{color:var(--rp-muted)}.document-search button:hover{background:var(--rp-overlay);color:var(--rp-text)}.rename-input:focus{border-color:var(--rp-muted);box-shadow:0 0 0 1px var(--rp-muted)}.no-documents{color:var(--rp-muted)}.main-content{background:var(--rp-base)}.file-controls{background:var(--rp-base);border-bottom-color:var(--rp-overlay)}.file-controls button{border-color:var(--rp-overlay);color:var(--rp-muted);background:#fffaf3b8}.file-controls button:hover{background:var(--rp-surface);border-color:var(--rp-iris);color:var(--rp-text)}.file-name,.save-state{color:var(--rp-muted)}.save-state.error{color:var(--rp-rose)}.app-toast{background:var(--rp-text);color:var(--rp-base)}.editable-container{background:var(--rp-base);color:var(--rp-text)}.editable-container:focus-within{background:var(--rp-base)}.editable-container .cm-editor{color:var(--rp-text)}.editable-container .cm-content{caret-color:var(--rp-text)}.editable-container .cm-placeholder{color:var(--rp-muted)}.editable-container .cm-cursorLayer .cm-cursor{background:0 0}.editable-container .cm-cursorLayer .cm-cursor:after{background:var(--rp-text)}.document-list::-webkit-scrollbar-thumb{background:var(--rp-highlight-high)}.editable-container::-webkit-scrollbar-thumb{background:var(--rp-highlight-high)}.document-list::-webkit-scrollbar-thumb:hover{background:var(--rp-iris)}.editable-container::-webkit-scrollbar-thumb:hover{background:var(--rp-iris)}}.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#5752795c;justify-content:center;align-items:center;transition:opacity .3s cubic-bezier(.4,0,.2,1);display:flex;position:fixed;inset:0}.modal-content{background:var(--rp-surface);border:1px solid var(--rp-overlay);border-radius:8px;width:90%;max-width:480px;max-height:80vh;animation:.4s cubic-bezier(.4,0,.2,1) modalAppear;overflow-y:auto;box-shadow:0 20px 40px -10px #57527933,0 10px 20px -5px #5752791a}@keyframes modalAppear{0%{opacity:0;transform:scale(.97)translateY(10px)}to{opacity:1;transform:scale(1)translateY(0)}}.modal-header{border-bottom:1px solid var(--rp-overlay);justify-content:space-between;align-items:center;padding:18px 18px 14px;display:flex}.modal-header h2{color:var(--rp-text);margin:0;font-size:17px;font-weight:700}.modal-close{color:var(--rp-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:24px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex}.modal-close:hover{background:var(--rp-highlight-low);color:var(--rp-text)}.modal-body{padding:18px}.modal-body p{color:var(--rp-subtle);margin:0 0 14px;line-height:1.7}.modal-body p:last-child{margin-bottom:0}.modal-facts{border:1px solid var(--rp-overlay);border-radius:8px;margin-top:18px;overflow:hidden}.modal-facts div{justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.modal-facts div+div{border-top:1px solid var(--rp-overlay)}.modal-facts span{color:var(--rp-muted);font-size:12px}.modal-facts strong{color:var(--rp-text);font-size:13px;font-weight:650}.modal-footer{border-top:1px solid var(--rp-overlay);margin-top:18px;padding-top:14px}.modal-footer small{color:var(--rp-muted);font-size:12px}.modal-footer a{color:var(--rp-iris);font-weight:450;text-decoration:none;transition:color .3s cubic-bezier(.4,0,.2,1)}.modal-footer a:hover{color:var(--rp-text);text-decoration:underline}@media (prefers-color-scheme:dark){.modal-overlay{background:#57527970}.modal-content{background:var(--rp-surface)}.modal-header{border-bottom-color:var(--rp-overlay)}.modal-header h2{color:var(--rp-text)}.modal-close{color:var(--rp-muted)}.modal-close:hover{background:var(--rp-overlay);color:var(--rp-text)}.modal-content{border-color:var(--rp-overlay)}.modal-body p{color:var(--rp-subtle)}.modal-footer{border-top-color:var(--rp-overlay)}.modal-footer small{color:var(--rp-muted)}.modal-footer a{color:var(--rp-text)}.modal-footer a:hover{color:var(--rp-surface)}.file-controls .about-btn{border-color:var(--rp-overlay);color:var(--rp-muted);background:#fffaf38f}.file-controls .about-btn:hover{background:var(--rp-overlay);border-color:var(--rp-iris);color:var(--rp-text)}}.confirm-overlay{z-index:1100;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#5752793d;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.confirm-dialog{background:var(--rp-surface);border:1px solid var(--rp-overlay);border-radius:8px;width:min(360px,100vw - 40px);padding:18px;box-shadow:0 18px 50px #57527933}.confirm-dialog h2{color:var(--rp-text);margin-bottom:8px;font-size:17px;font-weight:550}.confirm-dialog p{color:var(--rp-muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.confirm-checkbox{color:var(--rp-subtle);cursor:pointer;align-items:center;gap:8px;margin-top:14px;font-size:13px;display:flex}.confirm-checkbox input{accent-color:var(--rp-iris);width:14px;height:14px}.confirm-actions{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}.confirm-actions button{background:var(--rp-surface);border:1px solid var(--rp-highlight-high);color:var(--rp-text);cursor:pointer;border-radius:8px;padding:8px 12px;font-size:13px}.confirm-actions .danger-button{background:var(--rp-love);border-color:var(--rp-love);color:var(--rp-surface)}@media (prefers-color-scheme:dark){.confirm-overlay{background:#57527952}.confirm-dialog{background:var(--rp-surface);border-color:var(--rp-overlay)}.confirm-dialog h2{color:var(--rp-text)}.confirm-dialog p{color:var(--rp-muted)}.confirm-actions button{background:var(--rp-surface);border-color:var(--rp-highlight-high);color:var(--rp-text)}}@media (width<=768px){.app-container{flex-direction:column;height:100vh;min-height:100vh}.sidebar{border-right:none;border-bottom:1px solid var(--rp-overlay);z-index:auto;width:100%;height:180px;position:relative;top:auto;left:auto}.sidebar-header{padding:10px 14px}.sidebar-title{font-size:14px}.new-document-btn{width:28px;height:28px;padding:0;font-size:12px}.document-list{height:91px;overflow-y:auto}.document-item{min-height:46px;padding:6px 10px 6px 12px}.document-title{font-size:13px}.document-date{font-size:11px}.main-content{flex:1;height:calc(100vh - 180px);min-height:0;margin-top:0;margin-left:0}.file-controls{z-index:auto;flex-wrap:wrap;gap:8px;width:100%;height:auto;min-height:50px;padding:10px 14px;position:relative;top:auto;left:auto;right:auto}.file-controls button{padding:6px 10px;font-size:12px}.file-name{order:1;width:100%;margin-left:0;font-size:12px}.file-controls .about-btn{width:28px;height:28px;font-size:12px}.editable-container{max-width:none;height:calc(100vh - 230px)}.editable-container .cm-editor{height:100%;font-size:16px}.editable-container .cm-scroller{padding:24px 0 120px}.editable-container .cm-content{padding:0 20px}.onboarding-panel{align-items:flex-start;padding:40px 20px}.onboarding-content h1{font-size:26px}.onboarding-actions,.app-container.no-sidebar{flex-direction:column}.app-container.no-sidebar .main-content{height:100vh;min-height:100vh;margin-top:0;margin-left:0}.app-container.no-sidebar .file-controls{z-index:auto;width:100%;position:relative;top:auto;left:auto;right:auto}.app-container.no-sidebar .editable-container{max-width:none;height:calc(100vh - 50px)}.app-container.no-sidebar .editable-container .cm-scroller{padding:24px 0 120px}.modal-content{width:95%;max-width:none;margin:20px}.modal-header{padding:16px 16px 12px}.modal-header h2{font-size:16px}.modal-body{padding:16px}.modal-body p{font-size:14px}.modal-footer{margin-top:16px;padding-top:12px}.modal-footer small{font-size:11px}}@media (width<=768px) and (prefers-color-scheme:dark){.sidebar{border-bottom-color:var(--rp-overlay)}.main-content{background:var(--rp-base)}.file-controls{background:var(--rp-base);border-bottom-color:var(--rp-overlay)}.editable-container{background:var(--rp-base)}}.pwa-toast{background:var(--rp-text);color:var(--rp-base);z-index:1000;border-radius:8px;align-items:center;gap:12px;padding:12px 20px;animation:.3s slideUp;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 4px 12px #5752791f}.pwa-toast-message{font-size:14px}.pwa-toast-button{background:var(--rp-base);color:var(--rp-text);cursor:pointer;border:none;border-radius:4px;padding:6px 12px;font-size:14px;font-weight:500;transition:opacity .2s}.pwa-toast-button:hover{opacity:.9}.pwa-toast-close{color:var(--rp-base);cursor:pointer;opacity:.7;background:0 0;border:none;justify-content:center;align-items:center;padding:4px;transition:opacity .2s;display:flex}.pwa-toast-close:hover{opacity:1}.pwa-install-prompt{background:var(--rp-surface);color:var(--rp-text);border:1px solid var(--rp-overlay);z-index:1000;border-radius:8px;align-items:center;gap:12px;padding:16px 20px;animation:.3s slideDown;display:flex;position:fixed;top:20px;left:50%;transform:translate(-50%);box-shadow:0 4px 12px #5752791f}.pwa-install-button{background:var(--rp-text);color:var(--rp-base);cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:14px;font-weight:500;transition:opacity .2s}.pwa-install-button:hover{opacity:.9}.pwa-install-close{color:var(--rp-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;margin-left:auto;padding:4px;transition:color .2s;display:flex}.pwa-install-close:hover{color:var(--rp-text)}@keyframes slideUp{0%{opacity:0;transform:translate(-50%)translateY(100%)}to{opacity:1;transform:translate(-50%)translateY(0)}}@keyframes slideDown{0%{opacity:0;transform:translate(-50%)translateY(-100%)}to{opacity:1;transform:translate(-50%)translateY(0)}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:#ffffffde;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#242424;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}
