@import"https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,600;6..72,700&display=swap";:root{font-family:Manrope,system-ui,sans-serif;color:#292b27;background:#eceae4;font-synthesis:none;--bg: #eceae4;--surface: #faf9f6;--surface-2: #f3f1ec;--surface-3: #e8e5dd;--text: #292b27;--muted: #777972;--border: #dcd9d0;--accent: #335c4b;--accent-soft: #e2ebe5;--accent-text: #fff;--shadow: 0 18px 60px rgba(42, 46, 40, .1)}:root[data-theme=dark]{color:#e9e9e3;background:#181a18;--bg: #181a18;--surface: #20231f;--surface-2: #262925;--surface-3: #30342f;--text: #e9e9e3;--muted: #a2a69e;--border: #383c36;--accent: #91b8a3;--accent-soft: #2c3e34;--accent-text: #172019;--shadow: 0 18px 60px rgba(0, 0, 0, .24)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;overflow:hidden;background:var(--bg);color:var(--text)}button,select,textarea,input{font:inherit}button{color:inherit}.app-shell{height:100%;min-height:520px;display:flex;flex-direction:column}.topbar{height:70px;flex:0 0 70px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:0 22px;background:var(--surface);border-bottom:1px solid var(--border);z-index:20}.brand,.top-actions,.document-title,.theme-control,.privacy-note{display:flex;align-items:center}.brand{gap:11px;min-width:0}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--accent);color:var(--accent-text);font-family:DM Mono,monospace;font-size:20px;font-weight:500;box-shadow:inset 0 0 0 1px #ffffff1f}.brand-name{font-family:Newsreader,serif;font-weight:700;font-size:19px;line-height:16px}.brand-subtitle{color:var(--muted);font-size:10px;letter-spacing:.13em;text-transform:uppercase;margin-top:4px}.view-switcher{display:flex;padding:4px;gap:2px;background:var(--surface-2);border:1px solid var(--border);border-radius:11px}.view-switcher button{border:0;background:transparent;color:var(--muted);padding:7px 12px;border-radius:7px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px;font-weight:600}.view-switcher button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #14191414}.top-actions{justify-content:flex-end;gap:8px}.action-button,.download-button{border:1px solid var(--border);border-radius:9px;height:36px;padding:0 13px;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px;font-weight:600}.action-button.secondary,.download-button{background:var(--surface)}.action-button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.theme-control{gap:6px;height:36px;border:1px solid var(--border);border-radius:9px;padding:0 9px;color:var(--muted)}.theme-control select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;outline:0;background:transparent;color:var(--text);font-size:12px;cursor:pointer}.theme-control option{background:var(--surface)}.workspace{min-height:0;flex:1;display:flex;padding:14px;gap:14px}.sidebar{width:220px;flex:0 0 220px;min-height:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.sidebar-header{height:46px;padding:0 12px 0 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);color:var(--muted);font-size:10px;letter-spacing:.14em;font-weight:700}.mini-button,.icon-button{border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--muted);border-radius:6px}.mini-button{width:28px;height:28px}.mini-button:hover,.icon-button:hover{background:var(--surface-2);color:var(--text)}.mobile-sidebar{display:none;width:34px;height:34px}.file-list{padding:8px;display:flex;flex-direction:column;gap:3px;overflow-y:auto}.file-row{min-height:38px;padding:0 8px;display:flex;align-items:center;gap:8px;color:var(--muted);border-radius:8px;cursor:pointer;font-size:12px}.file-row.active{color:var(--accent);background:var(--accent-soft)}.file-row .file-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;background:transparent;border:0;cursor:pointer;padding:0;font-weight:600}.file-row input{min-width:0;width:100%;border:0;border-bottom:1px solid var(--accent);outline:0;background:transparent;color:var(--text);font-size:12px}.close-file{opacity:0;border:0;background:transparent;color:inherit;padding:3px;cursor:pointer;display:grid;place-items:center}.file-row:hover .close-file,.file-row.active .close-file{opacity:.8}.import-drop{margin:auto 12px 12px;min-height:90px;border:1px dashed var(--border);background:var(--surface-2);color:var(--muted);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}.import-drop span{color:var(--text);font-size:11px;font-weight:600}.import-drop small{font-size:9px}.privacy-note{justify-content:center;gap:5px;height:37px;background:var(--surface-2);border-top:1px solid var(--border);color:var(--muted);font-size:9px}.document-area{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.tabs{height:41px;flex:0 0 41px;display:flex;align-items:end;padding:5px 8px 0;gap:3px;background:var(--surface-2);border-bottom:1px solid var(--border);overflow-x:auto}.tab{max-width:175px;min-width:110px;height:35px;padding:0 9px 0 12px;border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:11px}.tab span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab.active{background:var(--surface);color:var(--text);border-color:var(--border);position:relative;top:1px}.tab svg{flex:0 0 auto;opacity:.6}.new-tab{flex:0 0 auto;width:30px;height:30px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;border-radius:7px;align-self:center}.new-tab:hover{background:var(--surface-3);color:var(--text)}.document-toolbar{height:49px;flex:0 0 49px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.document-title{gap:8px;font-size:12px}.document-title>svg{color:var(--accent)}.document-title>button{border:0;padding:0;background:transparent;font-weight:700;cursor:pointer}.save-state{display:flex;align-items:center;gap:3px;margin-left:7px;color:var(--muted);font-size:10px;font-weight:500}.save-state.saved svg{color:var(--accent)}.download-button{height:30px;color:var(--muted);padding:0 10px}.download-button:hover{color:var(--text)}.panes{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.editor-pane,.preview-pane{min-width:0;min-height:0;display:flex;flex-direction:column}.editor-pane{border-right:1px solid var(--border)}.pane-label{height:34px;flex:0 0 34px;display:flex;align-items:center;gap:6px;padding:0 15px;background:var(--surface-2);border-bottom:1px solid var(--border);color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.13em}.editor-pane textarea{width:100%;flex:1;min-height:0;resize:none;border:0;outline:0;padding:27px clamp(20px,3.2vw,48px);background:var(--surface);color:var(--text);font:13px/1.85 DM Mono,monospace;-moz-tab-size:2;tab-size:2}.preview-pane{background:var(--surface)}.markdown-body{flex:1;min-height:0;overflow-y:auto;padding:24px clamp(28px,4vw,64px) 60px;font-family:Newsreader,Georgia,serif;font-size:17px;line-height:1.72;color:var(--text)}.markdown-body>:first-child{margin-top:0}.markdown-body h1,.markdown-body h2,.markdown-body h3{line-height:1.18;letter-spacing:-.02em}.markdown-body h1{font-size:38px;margin:.5em 0 .6em}.markdown-body h2{font-size:26px;margin-top:1.6em;border-bottom:1px solid var(--border);padding-bottom:.35em}.markdown-body h3{font-size:20px;margin-top:1.5em}.markdown-body p{margin:1em 0}.markdown-body a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px}.markdown-body blockquote{margin:1.4em 0;padding:.15em 1.1em;border-left:3px solid var(--accent);background:var(--accent-soft);color:var(--muted);border-radius:0 7px 7px 0}.markdown-body code{font-family:DM Mono,monospace;font-size:.78em;background:var(--surface-3);padding:.2em .4em;border-radius:4px}.markdown-body pre{overflow-x:auto;padding:18px;background:#20251f;color:#e7eade;border-radius:9px;line-height:1.65;box-shadow:inset 0 0 0 1px #ffffff0f}.markdown-body pre code{padding:0;background:transparent;color:inherit}.markdown-body table{width:100%;border-collapse:collapse;font-family:Manrope,sans-serif;font-size:12px;margin:1.5em 0}.markdown-body th,.markdown-body td{padding:9px 11px;border:1px solid var(--border);text-align:left}.markdown-body th{background:var(--surface-2)}.markdown-body img{max-width:100%;border-radius:8px}.markdown-body hr{border:0;border-top:1px solid var(--border);margin:2em 0}.markdown-body input[type=checkbox]{accent-color:var(--accent)}.view-edit{grid-template-columns:1fr}.view-edit .preview-pane{display:none}.view-preview{grid-template-columns:1fr}.view-preview .editor-pane{display:none}.statusbar{height:31px;flex:0 0 31px;display:flex;align-items:center;gap:14px;padding:0 14px;background:var(--surface-2);border-top:1px solid var(--border);color:var(--muted);font-size:9px;letter-spacing:.04em}.statusbar .status-spacer{flex:1}.statusbar a{color:inherit;display:grid;place-items:center}button,.theme-control,.file-row,.import-drop{transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}.action-button:active,.download-button:active{transform:translateY(1px)}button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:860px){.topbar{grid-template-columns:1fr auto;padding:0 12px}.view-switcher{position:fixed;bottom:44px;left:50%;transform:translate(-50%);z-index:30;box-shadow:0 8px 30px #00000026}.view-switcher button{padding:8px 11px}.theme-control select,.theme-control svg:last-child,.action-button span{display:none}.theme-control{padding:0;width:36px;justify-content:center}.mobile-sidebar{display:grid}.brand-mark{display:none}.workspace{padding:8px}.sidebar{position:fixed;z-index:25;inset:78px auto 8px 8px;width:230px;transform:translate(calc(-100% - 16px));transition:transform .2s ease}.sidebar.open{transform:translate(0)}.panes{grid-template-columns:1fr}.view-split .editor-pane{display:none}.editor-pane{border-right:0}}@media(max-width:520px){.brand-subtitle{display:none}.brand-name{font-size:17px}.action-button{width:36px;padding:0;justify-content:center}.action-button.secondary{display:none}.document-toolbar{padding:0 10px}.download-button span,.save-state{display:none}.markdown-body{padding:22px 22px 70px}.editor-pane textarea{padding:22px 18px 70px}}
