.markdown-shell{gap:0}.markdown-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.markdown-toolbar button,.markdown-view-switch button{min-height:36px;padding:6px 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--ink-muted);font:inherit;font-size:.8rem;cursor:pointer}.markdown-toolbar button+button{border-left:1px solid var(--line)}.markdown-toolbar button:hover,.markdown-toolbar button:focus-visible,.markdown-view-switch button:hover,.markdown-view-switch button:focus-visible,.markdown-view-switch button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--ink)}.markdown-toolbar button:focus-visible,.markdown-view-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.markdown-statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;border-bottom:1px solid var(--line)}.markdown-save-status{color:var(--ink-muted);font-size:.78rem}.markdown-save-status[data-tone=error]{color:var(--danger)}.markdown-view-switch{display:flex;align-items:center}.markdown-workspace{flex:1 1 auto;min-height:0;margin-top:14px}.markdown-editor-field,.markdown-input,.markdown-preview{flex:1 1 auto;min-height:520px}.markdown-input{width:100%;resize:vertical;tab-size:2;font-size:.92rem;line-height:1.6}.markdown-preview{min-width:0;overflow:auto;padding:2px 4px 24px;overflow-wrap:anywhere;color:var(--ink)}.markdown-empty{margin:0;color:var(--ink-muted)}.markdown-preview>:first-child{margin-top:0}.markdown-preview>:last-child{margin-bottom:0}.markdown-preview h1,.markdown-preview h2,.markdown-preview h3,.markdown-preview h4,.markdown-preview h5,.markdown-preview h6{margin:1.35em 0 .55em;line-height:1.25}.markdown-preview h1,.markdown-preview h2{padding-bottom:.35em;border-bottom:1px solid var(--line)}.markdown-preview p,.markdown-preview ul,.markdown-preview ol,.markdown-preview pre,.markdown-preview blockquote,.markdown-preview table{margin:0 0 1em}.markdown-preview ul,.markdown-preview ol{padding-left:1.6em}.markdown-preview li+li{margin-top:.25em}.markdown-preview a{color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px}.markdown-preview blockquote{padding:2px 0 2px 14px;border-left:3px solid var(--line);color:var(--ink-muted)}.markdown-preview blockquote>:last-child{margin-bottom:0}.markdown-preview code{padding:.12em .3em;background:var(--section-bg);font-family:var(--font-mono);font-size:.9em}.markdown-preview pre{overflow:auto;padding:14px;border:1px solid var(--line);background:var(--field-bg)}.markdown-preview pre code{padding:0;background:transparent;font-size:.84rem}.markdown-preview table{width:100%;border-collapse:collapse;font-size:.9rem}.markdown-preview th,.markdown-preview td{padding:7px 9px;border:1px solid var(--line);text-align:left}.markdown-preview th{background:var(--section-bg)}.markdown-preview hr{margin:1.5em 0;border:0;border-top:1px solid var(--line)}.markdown-preview img{height:auto}.markdown-image-placeholder{display:block;margin:0 0 1em;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--ink-muted);font-size:.82rem}.markdown-shell[data-view=write] .markdown-workspace,.markdown-shell[data-view=preview] .markdown-workspace{grid-template-columns:minmax(0,1fr)}.markdown-shell[data-view=write] .markdown-preview-pane,.markdown-shell[data-view=preview] .markdown-source-pane{display:none}.markdown-shell[data-view=write] .markdown-source-pane,.markdown-shell[data-view=preview] .markdown-preview-pane{padding:0;border:0}@media(max-width:620px){.markdown-toolbar button{flex:1 1 auto;min-height:40px}.markdown-statusbar{align-items:flex-start;flex-direction:column-reverse;gap:2px;padding:6px 0 8px}.markdown-view-switch{width:100%}.markdown-view-switch button{flex:1 1 0;min-height:40px}.markdown-editor-field,.markdown-input,.markdown-preview{min-height:58dvh}.markdown-input{font-size:16px}}
