/* tools/markdown.css */

.editor-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 500px;
}
.editor-wrap textarea {
    border: none; outline: none; resize: none;
    padding: 1rem; font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem; line-height: 1.7;
    background: #fff; color: #1e293b; tab-size: 4;
}
.editor-wrap textarea:focus { box-shadow: inset 0 0 0 2px rgba(99,102,241,0.2); }
.preview-pane {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    background: #fff;
}
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.toolbar-btn {
    padding: 0.35rem 0.75rem; border-radius: 0.5rem;
    font-size: 0.75rem; font-weight: 500;
    transition: all 0.2s ease; cursor: pointer;
}
.toolbar-btn-default { background: #f1f5f9; color: #475569; }
.toolbar-btn-default:hover { background: #e2e8f0; }
.toolbar-btn-primary { background: #eef2ff; color: #4f46e5; }
.toolbar-btn-primary:hover { background: #e0e7ff; }
@media (max-width: 768px) {
    .editor-wrap {
        grid-template-columns: 1fr;
        min-height: 300px;
    }
    .editor-wrap textarea { min-height: 200px; }
    .preview-pane { min-height: 200px; border-top: 1px solid #e2e8f0; }
}
