.md-shell{flex-direction:column;gap:12px;display:flex}.md-topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.md-view-switch,.md-top-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.md-view-switch .chip.is-active{background:var(--primary);border-color:var(--primary);color:var(--primary-contrast);font-weight:700}.md-sync-check{cursor:pointer;align-items:center;gap:6px;margin-right:4px;font-size:.86rem;display:inline-flex}.md-toolbar{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);flex-wrap:wrap;align-items:center;gap:4px;padding:8px;display:flex}.md-tb-btn{min-width:34px;min-height:32px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;padding:4px 8px;font-size:.85rem;font-weight:600}.md-tb-btn:hover{background:var(--surface);border-color:var(--border)}.md-tb-sep{background:var(--border);width:1px;height:20px;margin:0 3px}.md-workspace{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=760px){.md-shell[data-view=split] .md-workspace{grid-template-columns:repeat(2,minmax(0,1fr))}}.md-shell[data-view=edit] .md-preview-pane,.md-shell[data-view=preview] .md-editor-pane{display:none}@media (width<=759px){.md-shell[data-view=split] .md-preview-pane,.md-view-switch [data-md-view=split]{display:none}}.md-textarea{resize:vertical;width:100%;height:440px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.92rem;line-height:1.6}.md-preview-pane{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);height:440px;padding:16px 18px;overflow-y:auto}.md-preview h1,.md-preview h2,.md-preview h3{margin-top:1em;margin-bottom:.45em}.md-preview>:first-child{margin-top:0}.md-preview pre{border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);padding:12px 14px;overflow-x:auto}.md-preview code{background:var(--surface-2);border-radius:5px;padding:2px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.88em}.md-preview pre code{background:0 0;padding:0}.md-preview blockquote{border-left:4px solid var(--primary);background:var(--surface-2);border-radius:0 var(--radius-sm) var(--radius-sm) 0;margin:12px 0;padding:8px 14px}.md-preview blockquote p{margin:0}.md-table-wrap{margin:12px 0;overflow-x:auto}.md-preview table{border-collapse:collapse;width:100%;font-size:.92rem}.md-preview th,.md-preview td{border:1px solid var(--border);padding:7px 10px}.md-preview th{background:var(--surface-2)}.md-task-list{padding-left:0;list-style:none}.md-task-item{align-items:baseline;gap:8px;display:flex}.md-footer-bar{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-top:8px;display:flex}.md-export-actions{flex-wrap:wrap;gap:8px;display:flex}@media (width>=960px){.md-workspace{gap:16px}.md-textarea,.md-preview-pane{height:560px;min-height:540px}.md-textarea{font-size:.95rem}.md-preview-pane{padding:20px 24px}}
