.testigo-clipper {
    margin-top: 0.45rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.testigo-clipper.is-collapsed {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.testigo-clipper-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.testigo-clipper.is-collapsed .testigo-clipper-header {
    width: 100%;
    justify-content: flex-end;
}

.testigo-clipper.is-collapsed .testigo-clipper-header > div {
    display: none;
}

.testigo-clipper-header strong,
.testigo-clipper-header small {
    display: block;
}

.testigo-clipper-header strong {
    color: #1f2937;
    font-size: 0.95rem;
}

.testigo-clipper-header small {
    color: #6b7280;
    font-size: 0.78rem;
}

.testigo-clipper-toggle {
    white-space: nowrap;
}

.testigo-clipper.is-collapsed .testigo-clipper-toggle {
    padding: 0.2rem 0.45rem;
    color: #6b7280;
    font-size: 0.72rem;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.82);
    border-color: #d1d5db;
    box-shadow: none;
}

.testigo-clipper.is-collapsed .testigo-clipper-toggle:hover {
    color: #374151;
    background: #fff;
    border-color: #9ca3af;
}

.testigo-clipper-body {
    max-height: 560px;
    opacity: 1;
    overflow: hidden;
    padding-top: 0.9rem;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding-top 0.2s ease;
}

.testigo-clipper.is-collapsed .testigo-clipper-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    pointer-events: none;
}

.testigo-clipper-meta {
    color: #6b7280;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.testigo-clipper-duration {
    color: #374151;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.testigo-clipper-slider {
    margin: 0.75rem 0 1.25rem;
}

.testigo-clipper .noUi-target {
    border: 0;
    box-shadow: none;
    background: #e5e7eb;
}

.testigo-clipper .noUi-connect {
    background: #0d6efd;
}

.testigo-clipper .noUi-horizontal {
    height: 8px;
}

.testigo-clipper .noUi-horizontal .noUi-handle {
    top: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.testigo-clipper .noUi-handle::before,
.testigo-clipper .noUi-handle::after {
    display: none;
}

.testigo-clipper .noUi-tooltip {
    border: 0;
    background: #111827;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.testigo-clipper-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.testigo-clipper-times label {
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 600;
}

.testigo-clipper-times input {
    margin-top: 0.25rem;
    font-family: Consolas, Monaco, monospace;
}

.testigo-clipper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testigo-clipper-actions .btn {
    flex: 1 1 auto;
}

.testigo-clipper-message {
    min-height: 1.2rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.testigo-clipper-message.is-info {
    color: #2563eb;
}

.testigo-clipper-message.is-success {
    color: #047857;
}

.testigo-clipper-message.is-error {
    color: #dc2626;
}

@media (max-width: 575px) {
    .testigo-clipper {
        padding: 0.85rem;
    }

    .testigo-clipper.is-collapsed {
        padding: 0;
    }

    .testigo-clipper-header,
    .testigo-clipper-actions {
        flex-direction: column;
    }

    .testigo-clipper-toggle {
        width: 100%;
    }

    .testigo-clipper.is-collapsed .testigo-clipper-toggle {
        width: auto;
    }

    .testigo-clipper-times {
        grid-template-columns: 1fr;
    }

    .testigo-clipper-actions .btn {
        width: 100%;
    }
}
