.mf-template-dialog{max-width:min(660px,calc(100vw - 32px));border-radius:22px;gap:16px}.mf-template-dialog-header{text-align:left}.mf-template-dialog h2{text-align:left;font-size:20px}.mf-template-dialog-header p{text-align:left;font-size:15px;line-height:1.6}.mf-template-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mf-template-choices>button{display:flex;align-items:center;gap:12px;text-align:left;min-width:0;min-height:64px;padding:8px 12px;border:1px solid #e8e7e5;border-radius:12px}.mf-template-choices>button[aria-pressed=true]{outline:2px solid #16171a;outline-offset:-2px}.mf-template-choice-art{width:48px;height:40px;display:grid;place-items:center;flex:none;background:#f6f5f3;border-radius:8px;overflow:hidden}.mf-template-choice-art .mf-template-thumb svg,.mf-template-choice-art img{width:100%;height:100%;object-fit:contain}.mf-template-choices small,.mf-template-choices strong{display:block}.mf-template-choices strong{font-size:14px}.mf-template-choices small{margin-top:4px;color:#6f6f77;font-size:12px}.mf-template-dialog-actions{display:flex;align-items:center;gap:8px}.mf-template-dialog-actions span{flex:1}.mf-template-dialog-actions button{min-height:44px;padding:0 14px;border-radius:10px;font-size:13px;background:#f1f0ee}.mf-template-dialog-actions button:first-child{background:transparent}.mf-template-dialog-actions .mf-template-confirm{background:#16171a;color:#fff}.dark .mf-template-choices>button{border-color:#303036}.dark .mf-template-choices>button[aria-pressed=true]{outline-color:#f4f4f5}.dark .mf-template-choice-art,.dark .mf-template-dialog-actions button{background:#232327}.dark .mf-template-dialog-actions button:first-child{background:transparent}.dark .mf-template-dialog-actions .mf-template-confirm{background:#f4f4f5;color:#16171a}@media (max-width:760px){.mf-template-dialog{left:0!important;top:auto!important;bottom:0!important;transform:none!important;width:100%!important;max-width:none!important;max-height:90dvh;overflow:auto;border-radius:26px 26px 0 0;padding:20px 16px max(16px,env(safe-area-inset-bottom))}.mf-template-choices{grid-template-columns:1fr}.mf-template-choices>button{min-height:58px}.mf-template-choice-art{width:42px;height:36px}.mf-template-dialog-actions{flex-wrap:wrap}.mf-template-dialog-actions button:first-child{flex:1 0 100%;text-align:left}.mf-template-dialog-actions button:not(:first-child){flex:1}.mf-template-dialog-actions span{display:none}}.mf-template-dialog-handle{display:none}.mf-template-dialog>button.absolute{min-width:44px;min-height:44px;right:8px;top:8px;display:grid;place-items:center}.dark .mf-template-choices small{color:#a6a5ab}@media (max-width:760px){.mf-template-dialog{padding-top:8px}.mf-template-dialog-handle{height:24px;display:grid;place-items:center;touch-action:none}.mf-template-dialog-handle span{width:40px;height:5px;border-radius:999px;background:#d6d4d0}.dark .mf-template-dialog-handle span{background:#3b3b42}.mf-template-dialog{display:flex;flex-direction:column;overflow:hidden}.mf-template-dialog-actions,.mf-template-dialog-handle,.mf-template-dialog-header{flex:none}.mf-template-choices{min-height:0;overflow-y:auto;overscroll-behavior:contain}}.mf-editor-shell{--surface:#fff;--page:#faf9f7;--subtle:#f1f0ee;--border:#e8e7e5;--ink:#16171a;--muted:#6f6f77;display:flex;width:100%;height:100dvh;overflow:hidden;background:var(--page);color:var(--ink)}.dark .mf-editor-shell{--surface:#17171a;--page:#0f0f11;--subtle:#232327;--border:#303036;--ink:#f4f4f5;--muted:#a6a5ab}.mf-editor-sidebar{width:240px;flex:0 0 240px;background:var(--subtle);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:20px 14px;min-height:0}.mf-editor-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;padding:0 4px 20px}.mf-editor-brand span{display:grid;place-items:center;background:#16171a;color:white;width:32px;height:32px;border-radius:9px}.dark .mf-editor-brand span{background:#f4f4f5;color:#16171a}.mf-editor-new{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:var(--surface);border:1px solid var(--border);border-radius:10px;font-size:14px;font-weight:600}.mf-editor-sidebar nav{display:grid;gap:4px;margin-top:18px}.mf-editor-sidebar nav a,.mf-sidebar-bottom>button{display:flex;align-items:center;gap:12px;min-height:42px;padding:0 10px;color:var(--muted);font-size:14px;border-radius:9px}.mf-editor-sidebar nav a:hover,.mf-sidebar-bottom>button:hover{background:var(--surface);color:var(--ink)}.mf-sidebar-recent{overflow:auto;margin-top:22px}.mf-sidebar-recent p{padding:0 9px;color:var(--muted);font-size:12px;margin-bottom:8px}.mf-sidebar-recent button{display:flex;align-items:center;text-align:left;gap:9px;width:100%;padding:7px;border-radius:10px;font-size:13px;color:var(--muted)}.mf-sidebar-recent button[aria-current=page]{background:var(--surface);color:var(--ink);border:1px solid var(--border)}.mf-sidebar-recent button span{width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:var(--surface);display:grid;place-items:center;flex:none}.mf-sidebar-recent button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.mf-sidebar-bottom{margin-top:auto;display:grid;gap:4px}.mf-sidebar-bottom>button:last-child{justify-content:flex-start;border:0;background:transparent;box-shadow:none}.mf-editor-main{min-width:0;flex:1;display:flex;flex-direction:column}.mf-editor-topbar{height:60px;flex:none;display:flex;align-items:center;gap:14px;padding:0 18px;background:var(--surface);border-bottom:1px solid var(--border)}.mf-editor-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:9px}.mf-editor-icon:hover{background:var(--subtle)}.mf-editor-title{min-width:0;flex:1;font-size:15px;font-weight:650}.mf-editor-title>div{justify-content:flex-start}.mf-editor-top-actions{display:flex;align-items:center;gap:8px}.mf-editor-content{position:relative;flex:1;min-height:0;min-width:0}.mf-editor-content>div{height:100%}.mf-editor-layout{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.mf-editor-layout.mf-fullscreen{position:fixed;inset:0;z-index:50;background:var(--page)}.mf-editor-toolbar{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:58px;padding:8px 16px;flex:none}.mf-editor-stage{min-height:0;flex:1;padding:0 16px 16px;transition:padding-right .3s ease}.mf-with-assistant .mf-editor-stage{padding-right:388px}.mf-editor-stage [data-testid=mermaid-preview-container]{background-color:var(--surface);background-image:radial-gradient(var(--border) 1px,transparent 1px);background-size:20px 20px;border:1px solid var(--border);border-radius:18px;overflow:hidden!important}.mf-editor-error{display:flex;align-items:flex-start;gap:8px;padding:8px 16px;color:#b72f2c;font-size:13px}.mf-editor-error span{flex:1}.mf-editor-error button{text-decoration:underline}.mf-editor-drawer,.mf-history-drawer{position:fixed;inset:0 auto 0 0;z-index:60;width:min(320px,90vw);background:var(--surface);overflow:auto}.mf-history-drawer{left:auto;right:0}.mf-editor-drawer>div{height:100%;max-width:100%}.mf-editor-scrim{position:fixed;inset:0;z-index:55;background:#0005}.mf-mobile-actions{display:flex;align-items:center;gap:8px;flex:1}.mf-mobile-actions>button{flex:1}.mf-mobile-more{position:relative}.mf-mobile-more summary{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--border);border-radius:10px;list-style:none;cursor:pointer}.mf-mobile-more summary::-webkit-details-marker{display:none}.mf-mobile-menu{position:absolute;bottom:52px;left:0;z-index:30;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:260px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 30px #0002}@media (max-width:760px){.mf-editor-sidebar{display:none}.mf-editor-topbar{height:56px;padding:0 8px;gap:6px}.mf-editor-title{font-size:14px}.mf-top-language{display:none}.mf-editor-toolbar{order:3;min-height:68px;padding:8px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}.mf-editor-toolbar>.mf-ai-open{flex:1;background:#16171a;color:white;border-color:#16171a}.mf-editor-stage{padding:0 12px 12px}.mf-editor-error{padding:7px 12px}.mf-with-assistant .mf-editor-stage{padding-right:12px}}@media (prefers-reduced-motion:reduce){.mf-editor-stage{transition:none}}.mf-editor-tabbar{padding:0 8px 10px}.mf-editor-tabbar [role=tablist]{background:transparent;gap:3px}.mf-editor-tabbar [role=tab]{height:40px;min-width:58px;color:var(--muted);border:1px solid transparent;border-radius:9px}.mf-editor-tabbar [role=tab][data-state=active]{color:var(--ink);background:var(--surface);border-color:var(--border);box-shadow:0 2px 6px #00000008}.mf-outline{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:8px 16px}.mf-outline>div{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid var(--border);font-size:13px}.mf-outline>div:last-child{border:0}.mf-outline p,.mf-outline small,.mf-outline span{color:var(--muted)}.mf-editor-stage [data-testid=mermaid-preview-container] .node rect{fill:var(--surface)!important;stroke:var(--border)!important;rx:10px}.mf-editor-stage [data-testid=mermaid-preview-container] .node polygon{fill:var(--ink)!important;stroke:var(--ink)!important}.mf-editor-stage [data-testid=mermaid-preview-container] .node:has(polygon) .nodeLabel{color:var(--surface)!important}.mf-editor-stage [data-testid=mermaid-preview-container] .node:not(:has(polygon)) .nodeLabel{color:var(--ink)!important}.mf-editor-stage [data-testid=mermaid-preview-container] .edgePath path{stroke:#8e8d94!important}@media (max-width:760px){.mf-editor-tabbar{padding:4px 0 8px}.mf-editor-tabbar [role=tablist]{display:flex;width:100%;height:44px}.mf-editor-tabbar [role=tab]{width:50%;height:44px}}.mf-editor-toolbar{position:static}.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-selected polygon,.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-selected rect{stroke:#2f6bff!important;stroke-width:3px!important}.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-protected polygon,.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-protected rect{stroke:#8e8d94!important;stroke-width:3px!important;stroke-dasharray:5 3!important}.mf-mobile-more{order:2}.mf-editor-error{align-items:center;flex-wrap:wrap;background:var(--surface);border-bottom:1px solid var(--border)}.mf-editor-error>div{flex:1;min-width:180px}.mf-editor-error strong{font-weight:600}.mf-editor-error details{font-size:12px;color:var(--muted)}.mf-editor-error pre{white-space:pre-wrap;max-height:120px;overflow:auto}.mf-editor-error>button{min-height:40px;padding:0 10px;text-decoration:none;border:1px solid var(--border);border-radius:9px}.mf-editor-error>button.mf-editor-repair-primary{background:#16171a;color:#fff}@media (min-width:761px){.mf-with-assistant .mf-editor-error{margin-right:372px}}.mf-command-open{min-width:44px;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:13px;color:var(--muted)}.mf-command-dialog{padding:0;overflow:hidden;border-radius:18px;max-width:min(540px,calc(100vw - 32px))}.mf-command-dialog [cmdk-list]{max-height:min(55vh,420px);overflow:auto}.mf-command-dialog [cmdk-group-heading]{padding:10px 12px 4px;font-size:12px;color:#6f6f77}.mf-command-dialog [cmdk-item]{min-height:44px;padding:10px 12px;border-radius:8px;font-size:13px}.mf-fullscreen-controls{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-end}.mf-fullscreen-controls button{min-width:48px;min-height:48px}.mf-fullscreen .mf-ai-open,.mf-fullscreen .mf-command-open,.mf-fullscreen .mf-editor-error,.mf-fullscreen .mf-editor-tabbar{display:none}.mf-fullscreen .mf-editor-toolbar{min-height:64px}.mf-fullscreen .mf-editor-stage{padding:0 12px 12px}.mf-fullscreen .mf-editor-toolbar{order:0}.dark .mf-command-open{background:#17171a;color:#a6a5ab}@media (max-width:760px){.mf-command-open{min-width:44px}.mf-fullscreen .mf-editor-toolbar{border:0;padding:8px 12px}.mf-fullscreen-controls{justify-content:space-between}}.mf-replace-dialog{gap:14px}.mf-replace-actions{display:flex;gap:8px}.mf-replace-actions button{min-height:44px}@media (max-width:760px){.mf-replace-dialog.mf-replace-mobile{left:0!important;top:auto!important;bottom:0!important;transform:none!important;width:100%!important;max-width:none!important;max-height:90dvh;overflow:auto;margin:0!important;border-radius:26px 26px 0 0;padding:8px 16px max(16px,env(safe-area-inset-bottom));gap:12px}.mf-replace-handle{height:24px;display:grid;place-items:center;touch-action:none}.mf-replace-handle span{width:40px;height:5px;background:var(--border);border-radius:999px}.mf-replace-dialog .mf-replace-actions{justify-content:flex-start}.mf-replace-dialog textarea{min-height:180px;max-height:32dvh}.mf-replace-dialog [data-state=open]{animation:none}}.mf-replace-dialog header{text-align:left}.mf-replace-dialog h2{text-align:left;font-size:20px}.mf-replace-dialog header p{text-align:left;font-size:13px;line-height:1.6}.mf-replace-dialog>button:last-child{min-width:32px;min-height:32px}.mf-render-progress{position:absolute;top:0;left:0;right:0;height:2px;z-index:21;overflow:hidden;pointer-events:none}.mf-render-progress:after{content:"";display:block;width:35%;height:100%;background:#2f6bff;animation:mf-render-progress 1.1s ease-in-out infinite}@keyframes mf-render-progress{0%{transform:translateX(-110%)}to{transform:translateX(300%)}}.mf-last-valid-notice{display:flex;align-items:center;gap:12px;max-width:640px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 8px 28px #0001;font-size:13px}.mf-last-valid-notice span{flex:1}.mf-last-valid-notice button{min-height:44px;white-space:nowrap;padding:0 12px;border:1px solid var(--border);border-radius:9px}@media (prefers-reduced-motion:reduce){.mf-render-progress:after{animation:none;width:100%}}@media (max-width:760px){.mf-mobile-preview:has([data-testid=last-valid-preview-notice])>.mf-editor-error{display:none}.mf-last-valid-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}.mf-last-valid-notice span,.mf-last-valid-notice strong{grid-column:1;padding-left:18px}.mf-last-valid-notice strong{position:relative}.mf-last-valid-notice strong:before{content:"";position:absolute;left:0;top:.45em;width:7px;height:7px;border-radius:50%;background:#d2433f;box-shadow:0 0 0 4px #d2433f16}.dark .mf-last-valid-notice strong:before{background:#ff6e66}.mf-last-valid-notice span{color:var(--muted);font-weight:400;line-height:1.5}.mf-last-valid-notice button{grid-column:2;grid-row:1/span 2}}.mf-empty-preview{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);text-align:center;padding:24px}.mf-empty-preview span{font-size:15px;font-weight:600;color:var(--ink)}.mf-empty-preview p{font-size:13px}.mf-empty-preview button{min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);font-size:13px}.mf-editor-sidebar nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;border-radius:10px;color:var(--muted);font-size:13px;text-align:left}.mf-editor-sidebar nav button[aria-current=page]{background:var(--surface);color:var(--ink);border:1px solid var(--border)}.mf-home-accepted{display:flex;align-items:center;justify-content:center;gap:12px;padding:4px 12px;background:var(--surface);border-bottom:1px solid var(--border);color:var(--muted);font-size:13px}.mf-home-accepted button{min-height:44px;padding:0 10px;color:#2f6bff;font-weight:600}@media (max-width:760px){.mf-editor-top-actions>button{min-height:44px}.mf-editor-title button{opacity:1}.mf-editor-title button,.mf-mobile-menu button{min-width:44px;min-height:44px}}.mf-editor-stage{position:relative}.mf-scope-bar{position:absolute;z-index:25;top:58px;left:28px;right:400px;display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px #0002;font-size:13px}.mf-scope-bar>span{flex:1;color:var(--muted)}.mf-scope-bar>div{display:flex;gap:3px;padding:3px;background:var(--subtle);border-radius:9px}.mf-scope-bar button{min-height:44px;padding:0 12px;border-radius:8px;white-space:nowrap}.mf-scope-bar button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0002}.mf-scope-bar>button{border:1px solid var(--border)}.mf-editor-error .mf-editor-repair-primary,.mf-editor-toolbar .mf-export-primary{background:#16171a;color:#fff;border:1px solid #16171a;text-decoration:none}.mf-editor-error .mf-editor-repair-primary:hover,.mf-editor-toolbar .mf-export-primary:hover{background:#303036;color:#fff}.mf-editor-error .mf-editor-repair-primary{min-height:44px;padding:0 14px;border-radius:10px;font-weight:600;white-space:nowrap}.dark .mf-editor-error .mf-editor-repair-primary,.dark .mf-editor-toolbar .mf-export-primary{background:#f4f4f5;border-color:#f4f4f5;color:#16171a}@media (max-width:760px){.mf-editor-error .mf-editor-repair-primary{padding:0;text-decoration:underline}.dark .mf-editor-error .mf-editor-repair-primary,.mf-editor-error .mf-editor-repair-primary{background:transparent;border:0;color:inherit}.mf-replace-dialog .mf-replace-actions button,.mf-replace-dialog .mf-replace-footer button,.mf-replace-dialog>button:last-child{min-width:44px;min-height:44px}}@media (min-width:1280px){.mf-editor-layout[lang=zh]:not(.mf-fullscreen) .mf-editor-tabbar{position:absolute;top:-52px;left:16px;z-index:2;padding:0}}@media (min-width:1600px){.mf-editor-layout:not(.mf-fullscreen) .mf-editor-tabbar{position:absolute;top:-52px;left:16px;z-index:2;padding:0}}@media (min-width:761px){.mf-editor-layout:has(>.mf-editor-error):not(.mf-fullscreen) .mf-editor-tabbar{position:static;padding:0 8px 10px}}.mf-editor-stage [data-preview-recovery=true]{background-color:var(--surface);background-image:radial-gradient(var(--border) 1px,transparent 1px);background-size:20px 20px;border:1px solid var(--border);border-radius:18px;overflow:hidden}.mf-editor-stage [data-preview-recovery=true] [data-testid=mermaid-preview-container]{border:0;border-radius:0;background:transparent}.mf-top-control-slot{display:inline-flex;align-items:center;gap:6px}.mf-editor-top-actions .mf-export-primary{background:#16171a;border-color:#16171a;color:#fff}.dark .mf-editor-top-actions .mf-export-primary{background:#f4f4f5;border-color:#f4f4f5;color:#16171a}.mf-editor-title>div{min-width:0}.mf-editor-title>div>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mf-editor-title>div>button{flex:none}.mf-editor-title{display:flex;align-items:center;gap:10px}.mf-editor-save-status{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap}.mf-editor-save-status i{width:7px;height:7px;border-radius:50%;background:#a6a5ab}.mf-editor-save-status.is-saved i{background:#27965c}@media (max-width:1100px){.mf-editor-save-status{display:none}}.mf-mobile-code{position:relative;height:100%;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--subtle)}.mf-mobile-code textarea{position:relative;z-index:1;width:100%;height:100%;resize:none;border:0;outline:none;background:transparent;color:var(--ink);padding:16px 16px 16px 52px;white-space:pre;overflow:auto}.mf-mobile-code textarea,.mf-mobile-code-gutter{font:14px/24px ui-monospace,SFMono-Regular,monospace}.mf-mobile-code-gutter{position:absolute;z-index:2;top:16px;bottom:0;left:0;width:44px;overflow:hidden;pointer-events:none;text-align:right;color:var(--muted)}.mf-mobile-code-gutter>div{padding-right:8px}.mf-mobile-code-error{position:absolute;left:0;right:0;height:24px;background:#d2433f18;border-left:2px solid #d2433f}.mf-mobile-code-error-number{color:#d2433f;font-weight:700}@media (max-width:760px){.mf-editor-error>button.mf-editor-repair-primary:nth-last-child(2){background:#16171a;color:#fff;border:1px solid #16171a;padding:0 12px;text-decoration:none}.dark .mf-editor-error>button.mf-editor-repair-primary:nth-last-child(2),.dark .mf-editor-toolbar>.mf-ai-open{background:#f4f4f5;color:#16171a;border-color:#f4f4f5}}.dark .mf-editor-stage svg[aria-roledescription^=flowchart] .edgeLabel p{background:#232327!important;color:#f4f4f5!important}@media (max-width:760px){.mf-command-dialog{top:auto;bottom:0;left:0;transform:none;width:100%;max-width:none;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.mf-command-dialog [cmdk-list]{max-height:min(65dvh,540px)}}.mf-command-grip{height:32px;display:grid;place-items:center;touch-action:none}.mf-command-grip span{width:40px;height:5px;border-radius:99px;background:var(--border)}.mf-replace-dialog{--subtle:#f1f0ee;--border:#e8e7e5;border-color:var(--border)}.dark .mf-replace-dialog{--subtle:#232327;--border:#303036}.mf-replace-dialog .mf-replace-header{text-align:left}.mf-replace-dialog textarea{background:var(--subtle);border-color:var(--border)}.dark .mf-replace-dialog label{color:#f4f4f5}@media (max-width:760px){.mf-export-options [role=menuitem]{min-height:44px}}.mf-outline{min-height:calc(100% - 16px);margin:0 8px 8px;padding:18px 20px}.mf-outline h2{font-size:13px;font-weight:650;padding:0 0 14px;border-bottom:1px solid var(--border)}.mf-outline>.mf-outline-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;min-height:67px}.mf-outline-row .mf-outline-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--sunken,#f6f5f3);color:var(--muted)}.mf-outline-row strong{display:block;font-size:15px}.mf-outline-row p{margin:3px 0 0;font-size:13px}.mf-outline-row small{padding:5px 10px;border-radius:99px;background:var(--sunken,#f6f5f3);white-space:nowrap}.dark .mf-outline-row .mf-outline-icon,.dark .mf-outline-row small{background:#232327;color:#b4b3ba}.mf-outline-row p,.mf-outline-row strong{overflow-wrap:anywhere}@media (max-width:760px){.mf-mobile-editor-view{height:100%;overflow:auto;padding:8px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.mf-mobile-editor-view .mf-mobile-code{border:0;border-radius:12px}.mf-mobile-editor-view .mf-mobile-inline-error{margin-top:12px;padding:12px 14px;border:1px solid #f0c9c7;border-radius:12px;background:#fbf2f1;color:#b72f2c}.mf-mobile-inline-error details{margin-top:8px}.dark .mf-mobile-editor-view .mf-mobile-inline-error{background:#2b1d1d;border-color:#633a39;color:#ff8d86}.mf-editor-toolbar>.mf-ai-open{justify-content:center;white-space:nowrap;padding-inline:8px;font-size:12px}.mf-mobile-actions{min-width:0}.mf-mobile-actions>button{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-inline:4px}}.mf-mobile-inline-error p{margin:5px 0 0;font-size:13px;line-height:1.5;color:inherit}.dark .mf-mobile-editor-view .mf-mobile-inline-error,.mf-mobile-editor-view .mf-mobile-inline-error{color:var(--ink)}.mf-mobile-inline-error summary{color:var(--muted);min-height:44px;display:flex;align-items:center;cursor:pointer}.mf-mobile-inline-error summary:before{content:"▸";margin-right:5px}.mf-mobile-inline-error details[open] summary:before{content:"▾"}.mf-editor-layout:has(.mf-candidate-review) .mf-export-primary{background:var(--surface);border-color:var(--border);color:var(--ink)}@media (max-width:760px){.mf-editor-top-actions .mf-mobile-menu{top:52px;bottom:auto;left:auto;right:0}.mf-mobile-palette{min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:10px;font-size:13px}.mf-mobile-actions>button{background:var(--subtle);border-color:transparent}}.mf-invalid-preview,.mf-preview-loading{z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:18px}.mf-preview-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}.mf-editor-stage [data-testid=mermaid-preview-container][data-empty=true] svg{visibility:hidden}.mf-split-editor-view{height:100%;min-height:0;overflow:auto;padding:12px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.mf-split-editor-code{height:100%;min-height:0;overflow:hidden;border-radius:12px}.mf-split-inline-error{margin-top:12px;padding:12px 14px;border:1px solid #f0c9c7;border-radius:12px;background:#fbf2f1;color:var(--ink);font-size:13px;line-height:1.5}.mf-split-inline-error p{margin:5px 0 0}.mf-split-inline-error summary{display:flex;align-items:center;min-height:44px;color:var(--muted);cursor:pointer}.mf-split-inline-error summary:before{content:"▸";margin-right:5px}.mf-split-inline-error details[open] summary:before{content:"▾"}.mf-split-inline-error pre{max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.dark .mf-split-inline-error{background:#2b1d1d;border-color:#633a39}.monaco-editor .mf-monaco-error-line{background:#d2433f18}.monaco-editor .mf-monaco-error-gutter{border-left:2px solid #d2433f}.monaco-editor .mf-monaco-error-number{color:#d2433f!important;font-weight:700}.dark .monaco-editor .mf-monaco-error-line{background:#ff6e6620}.dark .monaco-editor .mf-monaco-error-gutter{border-color:#ff6e66}.dark .monaco-editor .mf-monaco-error-number{color:#ff8d86!important}@media (max-width:760px){.mf-replace-dialog .mf-replace-header h2{font-size:20px}.mf-replace-dialog .mf-replace-header p{font-size:15px;line-height:1.6}.mf-replace-dialog .mf-replace-actions button,.mf-replace-dialog .mf-replace-footer button{border-radius:10px;font-size:15px}}.mf-command-dialog{--command-soft:#f6f5f3;--command-line:#e8e7e5;--command-muted:#6f6f77;max-width:min(520px,calc(100vw - 32px))}.dark .mf-command-dialog{--command-soft:#232327;--command-line:#303036;--command-muted:#a6a5ab}.mf-command-dialog [cmdk-input-wrapper]{margin:20px 48px 8px 20px;border:1px solid var(--command-line);border-radius:12px;background:var(--command-soft)}.mf-command-dialog [cmdk-input-wrapper]:focus-within{outline:2px solid #2f6bff;outline-offset:2px}.mf-command-dialog [cmdk-list]{max-height:min(58vh,500px);padding:4px 8px 12px}.mf-command-dialog [cmdk-item]{font-size:15px}@media (max-width:760px){.mf-command-dialog{max-width:none}.mf-command-dialog [cmdk-input-wrapper]{margin:0 16px 8px}.mf-command-dialog [cmdk-list]{max-height:min(55dvh,440px)}.mf-command-grip span{background:var(--command-line)}.mf-command-close{min-height:44px;margin:0 16px max(16px,env(safe-area-inset-bottom));border-radius:10px;background:var(--command-soft);font-size:15px}}.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-selected rect{fill:#eef3ff!important}.dark .mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-selected rect{fill:#25345b!important}.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-selected .mf-scope-badge rect{fill:#2f6bff!important;stroke:none!important}.mf-editor-stage [data-testid=mermaid-preview-container] .node.mf-scope-protected .mf-scope-badge rect{fill:#16171a!important;stroke:none!important}.mf-tok-keyword{color:#7c3aed;font-weight:600}.mf-tok-direction{color:#0e7490;font-weight:600}.mf-tok-directive{color:#2f6bff}.mf-tok-arrow{color:#c2410c}.mf-tok-label,.mf-tok-string{color:#15803d}.mf-tok-number{color:#b45309}.mf-tok-comment{color:#9a9aa2;font-style:italic}.dark .mf-tok-keyword{color:#c4b5fd}.dark .mf-tok-direction{color:#67e8f9}.dark .mf-tok-directive{color:#93b4ff}.dark .mf-tok-arrow{color:#fdba74}.dark .mf-tok-label,.dark .mf-tok-string{color:#86efac}.dark .mf-tok-number{color:#fcd34d}.dark .mf-tok-comment{color:#77767e}.mf-mobile-code-highlight{position:absolute;inset:0;z-index:0;margin:0;overflow:hidden;pointer-events:none;padding:16px 16px 16px 52px;color:var(--ink);font:14px/24px ui-monospace,SFMono-Regular,monospace;white-space:pre}.mf-mobile-code-highlight code{display:block;font:inherit}.mf-mobile-code textarea{color:transparent;caret-color:var(--ink);-webkit-text-fill-color:transparent}.mf-mobile-code textarea::selection{background:rgb(47 107 255/.25);-webkit-text-fill-color:transparent}