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

.xml-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;
}

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

.xml-example-btn.invalid-ex {
    border-color: #ffc9c9;
    color: #c92a2a;
}

.xml-example-btn.invalid-ex:hover,
.xml-example-btn.invalid-ex.active {
    background: #fff5f5;
    border-color: #fa5252;
}

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

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

.xml-validator-container textarea {
    height: 220px;
}

.xml-result-ok {
    color: #2b8a3e;
    font-weight: 700;
    margin-bottom: 8px;
}

.xml-result-bad {
    color: #c92a2a;
    font-weight: 700;
    margin-bottom: 8px;
}

.xml-result-meta,
.xml-result-error,
.xml-result-tree {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
    line-height: 1.5;
    color: #343a40;
}

.xml-result-error {
    color: #c92a2a;
    margin-top: 8px;
}

.xml-result-tree {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    max-height: 240px;
    overflow: auto;
}

.clear-button {
    background-color: #e9ecef;
    color: #495057;
}

.clear-button:hover {
    background-color: #dee2e6;
}
