﻿.md-app{display:flex;flex-direction:column;height:100%;background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;}.md-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border);gap:12px;flex-wrap:wrap;}.md-header-left{display:flex;align-items:center;gap:12px;}.md-header-right{display:flex;align-items:center;gap:8px;}.md-title{font-size:15px;font-weight:700;color:var(--text);}.md-mode-toggle{display:flex;gap:4px;background:var(--surface-2);padding:4px;border-radius:8px;}.md-mode-btn{padding:6px 16px;border:none;background:transparent;color:var(--text-muted);font-size:13px;font-weight:500;cursor:pointer;border-radius:6px;transition:all 0.15s;font-family:var(--font-sans);}.md-mode-btn:hover{color:var(--text);background:var(--surface-3);}.md-mode-btn.active{background:var(--accent);color:#080b14;font-weight:600;}.md-main{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1;overflow:hidden;}.md-panel{display:flex;flex-direction:column;overflow:hidden;min-height:0;}.md-panel:first-child{border-right:1px solid var(--border);}.md-panel-header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--border);background:var(--surface-2);}.md-panel-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;color:var(--text-muted);}.md-panel-actions{display:flex;gap:6px;}.md-textarea{width:100%;flex:1;background:var(--bg);color:var(--text);border:none;padding:16px;font-family:var(--font-mono);font-size:13px;line-height:1.7;resize:none;outline:none;tab-size:2;min-height:0;}.md-textarea::placeholder{color:var(--text-muted);opacity:0.5;}.md-output-wrap{flex:1;overflow:auto;background:var(--bg);}pre.md-output{padding:16px;font-family:var(--font-mono);font-size:13px;line-height:1.7;white-space:pre-wrap;word-break:break-all;color:var(--text);min-height:100%;margin:0;}.md-preview{padding:16px;font-family:var(--font-sans);font-size:14px;line-height:1.7;color:var(--text);min-height:100%;overflow:auto;}.md-preview h1{font-size:24px;font-weight:700;margin:0 0 12px;color:var(--text);border-bottom:1px solid var(--border);padding-bottom:8px;}.md-preview h2{font-size:20px;font-weight:600;margin:16px 0 8px;color:var(--text);}.md-preview h3{font-size:16px;font-weight:600;margin:12px 0 6px;color:var(--text);}.md-preview p{margin:8px 0;}.md-preview code{background:var(--surface-2);padding:2px 6px;border-radius:4px;font-family:var(--font-mono);font-size:12px;color:var(--accent);}.md-preview pre{background:var(--surface-2);padding:12px;border-radius:var(--radius-sm);overflow-x:auto;margin:12px 0;}.md-preview pre code{background:none;padding:0;color:var(--text);}.md-preview blockquote{border-left:3px solid var(--accent);padding:8px 16px;margin:12px 0;color:var(--text-secondary);background:var(--surface-2);border-radius:0 var(--radius-sm) var(--radius-sm) 0;}.md-preview ul,.md-preview ol{padding-left:24px;margin:8px 0;}.md-preview li{margin:4px 0;}.md-preview a{color:var(--accent);text-decoration:none;}.md-preview a:hover{text-decoration:underline;}.md-preview strong{font-weight:600;}.md-preview em{font-style:italic;}.md-preview hr{border:none;border-top:1px solid var(--border);margin:16px 0;}.md-preview table{border-collapse:collapse;width:100%;margin:12px 0;}.md-preview th,.md-preview td{border:1px solid var(--border);padding:8px 12px;text-align:left;font-size:13px;}.md-preview th{background:var(--surface-2);font-weight:600;}.md-preview img{max-width:100%;border-radius:var(--radius-sm);}.md-status-bar{padding:6px 16px;border-top:1px solid var(--border);background:var(--surface-2);display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--text-muted);}.md-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-muted);gap:8px;padding:40px;text-align:center;}.md-empty-state svg{opacity:0.3;margin-bottom:8px;}.md-empty-state p{font-size:14px;}.md-empty-state .md-hint{font-size:12px;opacity:0.6;}@media (max-width:768px){.md-main{grid-template-columns:1fr;grid-template-rows:1fr 1fr;}.md-panel:first-child{border-right:none;border-bottom:1px solid var(--border);}}