.md-lead {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.9em;
    line-height: 1.45;
}

.markdown-converter {
    width: 100%;
    padding: 20px;
}

.input-section, .output-section {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.md-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.md-examples-label {
    font-size: 0.88em;
    font-weight: 600;
    color: #495057;
}

.md-example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.md-example-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid #c5d8ef;
    border-radius: 8px;
    background: #fff;
    color: #1971c2;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.md-example-btn:hover,
.md-example-btn.active {
    background: #e7f5ff;
    border-color: #1971c2;
    box-shadow: 0 1px 4px rgba(25, 113, 194, 0.15);
}

.md-example-btn .ex-title {
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.2;
}

.md-example-btn .ex-hint {
    font-size: 0.72em;
    color: #64748b;
    font-weight: 500;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
}

.output-section {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

#htmlOutput {
    min-height: 120px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    line-height: 1.6;
}

#htmlOutput h1,
#htmlOutput h2,
#htmlOutput h3 {
    margin: 0.6em 0 0.35em;
}

#htmlOutput pre {
    background: #f1f3f5;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

#htmlOutput code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

#htmlOutput blockquote {
    margin: 0.5em 0;
    padding: 0.35em 0.9em;
    border-left: 4px solid #74c0fc;
    background: #f8f9fa;
    color: #495057;
}

#htmlOutput table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5em 0;
}

#htmlOutput th,
#htmlOutput td {
    border: 1px solid #dee2e6;
    padding: 6px 10px;
    text-align: left;
}

.html-source-section {
    margin-bottom: 0;
}

.html-source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.html-source-header h3 {
    margin: 0;
}

.copy-html-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #1971c2;
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.copy-html-btn:hover {
    background: #1864ab;
}

.copy-html-btn.copied {
    background: #0f766e;
}

.html-source {
    margin: 0;
    padding: 12px;
    background: #212529;
    color: #e9ecef;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82em;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow: auto;
}
