/* ── Button bar ───────────────────────────────────────────── */
.md-toolbar {
    display: flex;
    gap: 2px;
    padding: 3px 4px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
}

.md-toolbar-btn {
    min-width: 26px;
    height: 24px;
    padding: 0 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    line-height: 1;
}

.md-toolbar-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.md-toolbar-btn:active {
    background: #d1d5db;
}

/* ── Edit area ────────────────────────────────────────── */
.md-edit-area {
    position: relative;
    min-height: 80px;
    border: 1px solid #d1d5db;
    border-radius: 0 0 0.25rem 0.25rem;
}

.md-input {
    display: block;
    width: 100%;
    min-height: 80px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 6px 8px;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    tab-size: 4;
    border: none;
    outline: none;
    resize: vertical;
    background: #fff;
    color: #111827;
}

.md-edit-area:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px #93c5fd;
}
