.btn-group-right {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#outputList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.output-item {
    border: 1px solid #dee2e6;
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.75rem;
}

.output-item h6 {
    margin: 0 0 0.35rem;
    word-break: break-word;
}

#mergedText {
    min-height: 260px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.small-note {
    color: #6c757d;
    font-size: 0.86rem;
}

@media (max-width: 767px) {
    .btn-group-right {
        justify-content: stretch;
    }

    .btn-group-right .btn {
        flex: 1 1 auto;
    }
}
