*,*:before,*:after{box-sizing:border-box}.hxmd-wrap{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";color:#1f2937;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;box-shadow:0 6px 18px rgba(0,0,0,.06);max-width:1200px;margin:0 auto}.hxmd-wrap.hxmd-dark{background:#0f172a;color:#e5e7eb;border-color:#1f2937;box-shadow:0 6px 18px rgba(0,0,0,.3)}.hxmd-wrap.hxmd-dark .hxmd-textarea{background:#0b1224;color:#e5e7eb;border-color:#334155}.hxmd-wrap.hxmd-dark .hxmd-tabs{background:#0b1224;border-color:#334155}.hxmd-wrap.hxmd-dark .hxmd-tab{color:#e5e7eb}.hxmd-wrap.hxmd-dark .hxmd-tab.is-active{background:#1e293b;color:#fff;border-color:#475569}.hxmd-wrap.hxmd-dark .hxmd-btn{background:#1e293b;color:#e5e7eb;border-color:#334155}.hxmd-wrap.hxmd-dark .hxmd-btn:hover{background:#0f172a}.hxmd-wrap.hxmd-dark .hxmd-preview-wrap{background:#0b1224;border-color:#334155}.hxmd-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.hxmd-title{font-size:20px;margin:0}.hxmd-actions{display:flex;align-items:center;gap:12px}.hxmd-toggle{display:inline-flex;align-items:center;gap:8px;user-select:none}.hxmd-tabs{display:flex;gap:8px;background:#f8fafc;border:1px solid #e5e7eb;padding:8px;border-radius:10px}.hxmd-tab{padding:10px 14px;border:1px solid #e5e7eb;background:#fff;border-radius:8px;cursor:pointer;font-size:14px}.hxmd-tab.is-active{background:#0ea5e9;color:#fff;border-color:#0284c7}.hxmd-panel{display:none;margin-top:12px}.hxmd-panel.is-active{display:block}.hxmd-controls{padding:10px 0 4px}.hxmd-row{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.hxmd-group{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}.hxmd-label{font-weight:600;padding-right:4px;border-right:1px solid #e5e7eb;margin-right:8px}.hxmd-radio,.hxmd-check{display:inline-flex;align-items:center;gap:6px;font-size:13px}.hxmd-split{display:flex;flex-direction:row;gap:12px;margin-top:8px}.hxmd-pane{display:flex;flex-direction:column;gap:6px;flex:1 1 0;min-width:0}.hxmd-pane-head{display:flex;align-items:center;justify-content:space-between}.hxmd-pane-title{font-weight:700}.hxmd-btns{display:flex;gap:6px}.hxmd-btn{border:1px solid #e5e7eb;background:#f1f5f9;padding:8px 10px;border-radius:8px;font-size:13px;cursor:pointer}.hxmd-btn:hover{background:#e2e8f0}.hxmd-textarea{min-height:220px;resize:vertical;width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13px;line-height:1.55;outline:none;background:#fff}.hxmd-textarea:focus{border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.15)}.hxmd-stats{font-size:12px;color:#64748b;display:flex;justify-content:flex-end}.hxmd-hint{margin-top:8px;font-size:12px;color:#6b7280}.hxmd-preview-wrap{margin-top:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.hxmd-preview-head{padding:8px 10px;font-weight:600;border-bottom:1px solid #e5e7eb}.hxmd-preview-frame{width:100%;height:240px;border:0;display:block}.hxmd-toast{position:fixed;right:18px;bottom:18px;background:#111827;color:#fff;padding:10px 12px;border-radius:10px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;transform:translateY(6px);z-index:9999}.hxmd-toast.is-show{opacity:1;transform:translateY(0)}@media only screen and (max-width:900px){.hxmd-split{flex-direction:column}.hxmd-pane{margin-bottom:12px}.hxmd-pane:last-child{margin-bottom:0}.hxmd-preview-frame{height:200px}}