:root{--ink:#1f2329;--muted:#646a73;--subtle:#7b818a;--line:#e5e6eb;--soft:#f5f6f7;--surface:#fff;--editor-surface:#fbfcfd;--accent:#c9362b;--accent-soft:#fff1f0;--link:#1769aa;--success:#358054;--font-sans:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;--font-editor:"SFMono-Regular", Consolas, "Liberation Mono", "PingFang SC", "Microsoft YaHei", monospace}*{box-sizing:border-box}html,body{height:100%}html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}body{background:var(--surface);color:var(--ink);font-family:var(--font-sans);letter-spacing:0;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;overflow:hidden}::selection{color:#17191c;background:#fee2df}button,textarea{font:inherit}button{color:inherit}.app-shell{height:100dvh;min-height:0;padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);background:var(--surface);flex-direction:column;display:flex}.toolbar{z-index:2;flex:0 0 calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0;border-bottom:1px solid var(--line);background:#fffffffa;grid-template-columns:minmax(190px,1fr) auto minmax(280px,1fr);align-items:center;gap:20px;display:grid}.brand{color:#2b2f36;white-space:nowrap;align-items:center;gap:9px;min-width:max-content;font-size:14px;font-weight:650;display:flex}.brand-mark{background:var(--accent);color:#fff;border-radius:6px;place-items:center;width:30px;height:30px;font-size:14px;font-weight:750;display:grid}.toolbar-actions{white-space:nowrap;justify-self:end;align-items:center;gap:5px;display:flex}.action-button{color:#4f5660;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;min-height:36px;padding:0 13px;font-size:13px;transition:background-color .15s,border-color .15s,color .15s}.action-button:hover:not(:disabled){border-color:var(--line);background:var(--soft);color:#20242a}.action-button:focus-visible,.mode-switcher button:focus-visible{outline-offset:2px;outline:2px solid #1677ff}.action-button:disabled{opacity:.42;cursor:default}.danger-action:hover:not(:disabled){background:var(--accent-soft);color:#b52e24;border-color:#f3c5c1}.primary-action{color:#fff;background:#252a31;border-color:#252a31;font-weight:550}.primary-action:hover:not(:disabled){color:#fff;background:#3b414a;border-color:#3b414a}.mode-switcher{border:1px solid var(--line);background:var(--soft);border-radius:7px;justify-self:center;padding:3px;display:flex}.mode-switcher button{min-width:56px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:0 10px;font-size:13px}.mode-switcher button.active{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 3px #1f23291a}.workspace{background:var(--surface);flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;display:grid}.workspace.mode-editor,.workspace.mode-preview{grid-template-columns:minmax(0,1fr)}.mode-editor .preview-pane,.mode-preview .editor-pane{display:none}.pane{flex-direction:column;min-width:0;min-height:0;display:flex}.editor-pane{border-right:1px solid var(--line)}.mode-editor .editor-pane{border-right:0}.pane-heading{border-bottom:1px solid var(--line);color:#555c66;background:#fafbfc;flex:0 0 40px;justify-content:space-between;align-items:center;gap:16px;padding:0 20px;font-size:12px;font-weight:500;display:flex}.pane-heading>span:first-child{color:#454b54;font-weight:600}.heading-meta{justify-content:flex-end;align-items:center;gap:12px;min-width:0;display:flex}.character-count,.save-status{white-space:nowrap;font-weight:450}.character-count{color:var(--subtle)}.save-status{min-width:7em;min-height:1em;color:var(--success);text-align:right}.save-status.error{color:#bd382e}.editor-input{background:var(--editor-surface);flex:1;min-height:0;display:flex}textarea{resize:none;background:var(--editor-surface);color:#292d33;width:100%;min-height:0;caret-color:var(--accent);font-family:var(--font-editor);tab-size:2;border:0;outline:0;flex:1;padding:24px clamp(24px,4vw,56px) 64px;font-size:15px;line-height:27px}textarea::placeholder{color:#888f98}.mode-editor textarea{padding-left:clamp(32px,9vw,144px);padding-right:clamp(32px,9vw,144px)}.markdown-body{color:#292d33;line-break:strict;overflow-wrap:anywhere;text-autospace:normal;word-break:normal;flex:1;min-height:0;padding:32px clamp(28px,5vw,68px) 72px;font-size:16px;line-height:1.8;overflow:auto}.markdown-body:focus-visible{outline-offset:-2px;outline:2px solid #1677ff}.preview-empty{color:#7d848d;place-items:center;min-height:100%;font-size:14px;display:grid}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{color:#171a1f;text-wrap:balance;margin:1.65em 0 .65em;font-weight:700;line-height:1.35}.markdown-body h1{border-bottom:1px solid var(--line);padding-bottom:.42em;font-size:2em}.markdown-body h2{border-bottom:1px solid var(--line);padding-bottom:.28em;font-size:1.5em}.markdown-body h3{font-size:1.22em}.markdown-body h4{font-size:1.08em}.markdown-body p{margin:0 0 1.08em}.markdown-body a{color:var(--link);text-underline-offset:3px;text-decoration-color:#9fc1dc;transition:color .15s}.markdown-body a:hover{color:#0d4f84}.markdown-body strong{font-weight:700}.markdown-body ul,.markdown-body ol{margin:0 0 1.2em;padding-left:1.6em}.markdown-body ul{list-style:outside}.markdown-body ol{list-style:decimal}.markdown-body ul ul{list-style-type:circle}.markdown-body ul ul ul{list-style-type:square}.markdown-body ol ol{list-style-type:lower-alpha}.markdown-body li:has(>input[type=checkbox]){list-style:none}.markdown-body li{margin:.32em 0}.markdown-body li>ul,.markdown-body li>ol{margin:.38em 0}.markdown-body blockquote{color:#59616c;background:#f7f8fa;border-left:3px solid #b8c0cc;border-radius:0 6px 6px 0;margin:1.45em 0;padding:.72em 1.1em}.markdown-body blockquote p:last-child{margin-bottom:0}.markdown-body code{color:#a33b32;font-family:var(--font-editor);background:#f4f5f7;border:1px solid #e3e6ea;border-radius:4px;padding:.16em .4em;font-size:.87em}.markdown-body pre{background:#f6f8fa;border:1px solid #e1e4e8;border-radius:6px;margin:1.45em 0;padding:18px 20px;line-height:1.68;overflow:auto}.markdown-body pre code{color:#30343a;background:0 0;border:0;padding:0;font-size:13px}.markdown-body table{border-spacing:0;border-collapse:separate;white-space:nowrap;-webkit-overflow-scrolling:touch;border:1px solid #dfe2e6;border-radius:6px;width:100%;max-width:100%;margin:1.45em 0;font-size:14px;display:block;overflow-x:auto}.markdown-body th,.markdown-body td{text-align:left;border-bottom:1px solid #e3e6e9;border-right:1px solid #e3e6e9;padding:10px 13px}.markdown-body th:last-child,.markdown-body td:last-child{border-right:0}.markdown-body tr:last-child td{border-bottom:0}.markdown-body th{background:#f5f6f7;font-weight:650}.markdown-body tbody tr:nth-child(2n){background:#fafbfc}.markdown-body hr{background:var(--line);border:0;height:1px;margin:2em 0}.markdown-body img{border-radius:6px;max-width:100%;height:auto;box-shadow:0 6px 24px #1f23291a}.markdown-body input[type=checkbox]{accent-color:#1677ff;margin-right:.45em}textarea,.markdown-body pre,.markdown-body table{scrollbar-width:thin;scrollbar-color:#3c3c4338 transparent}textarea:hover,.markdown-body pre:hover,.markdown-body table:hover{scrollbar-color:#3c3c4366 transparent}.markdown-body{scrollbar-width:thin;scrollbar-color:transparent transparent}.markdown-body.is-scrolling{scrollbar-color:#3c3c4366 transparent}.markdown-body::-webkit-scrollbar{width:10px;height:10px}textarea::-webkit-scrollbar{width:10px;height:10px}.markdown-body pre::-webkit-scrollbar{width:10px;height:10px}.markdown-body table::-webkit-scrollbar{width:10px;height:10px}.markdown-body::-webkit-scrollbar-track{background:0 0}textarea::-webkit-scrollbar-track{background:0 0}.markdown-body pre::-webkit-scrollbar-track{background:0 0}.markdown-body table::-webkit-scrollbar-track{background:0 0}.markdown-body::-webkit-scrollbar-corner{background:0 0}textarea::-webkit-scrollbar-corner{background:0 0}.markdown-body pre::-webkit-scrollbar-corner{background:0 0}.markdown-body table::-webkit-scrollbar-corner{background:0 0}.markdown-body::-webkit-scrollbar-thumb{background:#3c3c4338 padding-box padding-box;border:3px solid #0000;border-radius:999px;min-width:32px;min-height:32px;transition:background-color .18s}textarea::-webkit-scrollbar-thumb{background:#3c3c4338 padding-box padding-box;border:3px solid #0000;border-radius:999px;min-width:32px;min-height:32px;transition:background-color .18s}.markdown-body pre::-webkit-scrollbar-thumb{background:#3c3c4338 padding-box padding-box;border:3px solid #0000;border-radius:999px;min-width:32px;min-height:32px;transition:background-color .18s}.markdown-body table::-webkit-scrollbar-thumb{background:#3c3c4338 padding-box padding-box;border:3px solid #0000;border-radius:999px;min-width:32px;min-height:32px;transition:background-color .18s}.markdown-body::-webkit-scrollbar-thumb{background-color:#0000}.markdown-body::-webkit-scrollbar-button{width:0;height:0;display:none}textarea::-webkit-scrollbar-button{width:0;height:0;display:none}.markdown-body pre::-webkit-scrollbar-button{width:0;height:0;display:none}.markdown-body table::-webkit-scrollbar-button{width:0;height:0;display:none}textarea:hover::-webkit-scrollbar-thumb{background-color:#3c3c4366}.markdown-body pre:hover::-webkit-scrollbar-thumb{background-color:#3c3c4366}.markdown-body table:hover::-webkit-scrollbar-thumb{background-color:#3c3c4366}.markdown-body.is-scrolling::-webkit-scrollbar-thumb{background-color:#3c3c4366}.markdown-body::-webkit-scrollbar-thumb:hover{background-color:#3c3c4385}textarea::-webkit-scrollbar-thumb:hover{background-color:#3c3c4385}.markdown-body pre::-webkit-scrollbar-thumb:hover{background-color:#3c3c4385}.markdown-body table::-webkit-scrollbar-thumb:hover{background-color:#3c3c4385}.markdown-body::-webkit-scrollbar-thumb:active{background-color:#3c3c43a3}textarea::-webkit-scrollbar-thumb:active{background-color:#3c3c43a3}.markdown-body pre::-webkit-scrollbar-thumb:active{background-color:#3c3c43a3}.markdown-body table::-webkit-scrollbar-thumb:active{background-color:#3c3c43a3}.mode-preview .markdown-body>:not(.preview-empty){max-width:780px;margin-left:auto;margin-right:auto}@media (max-width:960px){.workspace{grid-template-rows:minmax(0,1fr) minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.workspace.mode-editor,.workspace.mode-preview{grid-template-rows:minmax(0,1fr)}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}.mode-editor .editor-pane{border-bottom:0}.workspace.mode-split .preview-pane .markdown-body>:not(.preview-empty){max-width:780px;margin-left:auto;margin-right:auto}}@media (max-width:780px){.toolbar{flex-basis:calc(124px + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 12px 8px;grid-template-rows:48px 44px;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:8px 12px}.toolbar-actions{grid-area:2/1/auto/-1;justify-self:center}.mode-switcher{grid-area:1/2;padding:1px}.mode-switcher button{min-width:52px;height:44px;padding:0 8px}.action-button{min-height:44px;padding:0 12px}.pane-heading{flex-basis:38px;padding:0 16px;font-size:12px}textarea{padding:20px 20px 48px;font-size:16px;line-height:28px}.mode-editor textarea{padding-left:24px;padding-right:24px}.markdown-body{padding:24px 22px 52px;font-size:16px}}@media (max-width:460px){.brand-suffix{display:none}.toolbar{gap:8px}.toolbar-actions{gap:3px}.action-button{padding:0 10px}.mode-switcher button{min-width:50px;padding:0 7px}.markdown-body{padding-left:18px;padding-right:18px}}@media (max-width:350px){.brand{gap:7px;font-size:13px}.brand-mark{width:28px;height:28px}.mode-switcher button{min-width:46px;padding:0 6px;font-size:12px}.action-button{padding:0 8px;font-size:12px}}@media (pointer:coarse){.action-button{min-width:44px;min-height:44px}.mode-switcher button{height:44px}}@media (max-width:780px) and (max-height:500px){.workspace.mode-split:has(.editor-input:focus-within){grid-template-rows:minmax(0,1fr)}.workspace.mode-split:has(.editor-input:focus-within) .editor-pane{border-bottom:0}.workspace.mode-split:has(.editor-input:focus-within) .preview-pane{display:none}}@media (prefers-reduced-motion:reduce){.action-button,.markdown-body a{transition:none}.markdown-body::-webkit-scrollbar-thumb{transition:none}textarea::-webkit-scrollbar-thumb{transition:none}.markdown-body pre::-webkit-scrollbar-thumb{transition:none}.markdown-body table::-webkit-scrollbar-thumb{transition:none}}
