.cvb-widget {
    max-width: 480px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cvb-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Status row */
.cvb-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cvb-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    transition: background 0.3s;
}
.cvb-indicator.connecting { background: #f59e0b; animation: cvb-pulse 1s infinite; }
.cvb-indicator.active     { background: #10b981; animation: cvb-pulse 1.5s infinite; }
.cvb-indicator.error      { background: #ef4444; }

@keyframes cvb-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.cvb-status-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    flex: 1;
}

/* Countdown timer */
.cvb-timer {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px 8px;
    font-variant-numeric: tabular-nums;
    transition: background 0.3s, color 0.3s;
}
.cvb-timer.cvb-timer-warn   { background: #fef3c7; color: #92400e; }
.cvb-timer.cvb-timer-danger { background: #fee2e2; color: #b91c1c; animation: cvb-pulse 1s infinite; }

/* Transcript */
.cvb-transcript {
    min-height: 140px;
    max-height: 260px;
    overflow-y: auto;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    scroll-behavior: smooth;
}

.cvb-transcript-placeholder {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.cvb-message {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
}
.cvb-message:last-child { margin-bottom: 0; }

.cvb-message.user {
    background: #ede9fe;
    color: #3b0764;
    margin-left: 20px;
}

.cvb-message.agent {
    background: #f0fdf4;
    color: #14532d;
    margin-right: 20px;
}

.cvb-speaker {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.55;
    margin-bottom: 3px;
}

/* Controls */
.cvb-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cvb-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    min-height: 48px;
}
.cvb-btn:hover  { opacity: 0.88; }
.cvb-btn:active { transform: scale(0.97); }
.cvb-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cvb-btn-start { color: #ffffff; }

.cvb-btn-end {
    background: #fee2e2;
    color: #b91c1c;
}
.cvb-btn-end:hover { background: #fecaca; opacity: 1; }

.cvb-mic-icon {
    display: flex;
    align-items: center;
}
.cvb-mic-icon.recording svg {
    animation: cvb-mic-bounce 0.7s ease-in-out infinite alternate;
}
@keyframes cvb-mic-bounce {
    from { transform: scale(1);    }
    to   { transform: scale(1.2);  }
}

/* Footer */
.cvb-powered {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin: 14px 0 0;
}
