/* ── Recording bar ── */
.sds-audio-recorder__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #d64545;
    border-radius: 12px;
    padding: 8px 14px;
    margin-bottom: 8px;
}

.sds-audio-recorder__status {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.sds-audio-recorder__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d64545;
    flex-shrink: 0;
    animation: sdsRecordingPulse 1.2s ease-in-out infinite;
}

@keyframes sdsRecordingPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.sds-audio-recorder__label {
    font-size: 12px;
    font-weight: 600;
    color: #d64545;
    white-space: nowrap;
}

.sds-audio-recorder__waves {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    padding: 0 8px;
}

.sds-audio-recorder__waves span {
    display: inline-block;
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: #d64545;
    opacity: 0.7;
    animation: sdsWaveBar 0.9s ease-in-out infinite;
}

/* Repeating 7-step delay cycle across all 28 bars */
.sds-audio-recorder__waves span:nth-child(7n+1) { animation-delay: 0s; }
.sds-audio-recorder__waves span:nth-child(7n+2) { animation-delay: 0.08s; }
.sds-audio-recorder__waves span:nth-child(7n+3) { animation-delay: 0.16s; }
.sds-audio-recorder__waves span:nth-child(7n+4) { animation-delay: 0.24s; }
.sds-audio-recorder__waves span:nth-child(7n+5) { animation-delay: 0.32s; }
.sds-audio-recorder__waves span:nth-child(7n+6) { animation-delay: 0.40s; }
.sds-audio-recorder__waves span:nth-child(7n+7) { animation-delay: 0.48s; }

@keyframes sdsWaveBar {
    0%, 100% { height: 4px; }
    50%       { height: 18px; }
}

.sds-audio-recorder__elapsed {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #000;
    font-weight: 500;
    min-width: 36px;
    flex-shrink: 0;
}

.sds-audio-recorder__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sds-audio-recorder__btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}

.sds-audio-recorder__btn--cancel {
    border: none;
    background: transparent;
    color: var(--sds-primary);
}

.sds-audio-recorder__btn--cancel:hover { background: var(--sds-teal-100); }

.sds-audio-recorder__btn--transcribe {
    border: none;
    background: var(--sds-primary);
    color: #fff;
}

.sds-audio-recorder__btn--transcribe:hover { opacity: 0.88; }

/* ── Mobile ── */
@media (max-width: 570px) {
    .sds-audio-recorder__bar {
        flex-wrap: wrap;
        gap: 6px 8px;
    }

    .sds-audio-recorder__status {
        display: none;
    }

    .sds-audio-recorder__actions {
        width: 100%;
    }

    .sds-audio-recorder__btn {
        flex: 1;
        justify-content: center;
    }
}
