.mic-test-page { padding-block: 24px 60px; }
.mic-test-heading { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.mic-test-heading h1 { margin: 12px 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.mic-test-heading > p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.mic-test-privacy { display: inline-flex; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid rgba(85, 216, 193, .28); border-radius: 999px; color: var(--brand); background: rgba(85, 216, 193, .08); font-size: .82rem; font-weight: 800; }
.mic-test-privacy::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 16px var(--brand); }
.mic-test-privacy-note { color: var(--muted); font-size: .85rem; margin-top: 10px; }

.mic-test-panel {
    max-width: 520px; margin: 0 auto; padding: 28px 24px; border: 1px solid var(--border);
    border-radius: 22px; background: rgba(10, 25, 42, .82); box-shadow: var(--shadow); text-align: center;
}

.mic-device-select { width: 100%; margin-bottom: 20px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: #07111f; font: inherit; }

.mic-meter-shell { margin-bottom: 14px; }
.mic-meter-track { position: relative; height: 34px; border-radius: 10px; background: #07111f; border: 1px solid var(--border); overflow: hidden; }
.mic-meter-fill {
    position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #22c55e 60%, #f59e0b 80%, #ef4444 100%);
    transition: width 60ms linear;
}
.mic-meter-fill.is-clipping { animation: mic-clip-pulse .3s ease-in-out infinite alternate; }
@keyframes mic-clip-pulse { from { opacity: 1; } to { opacity: .6; } }
.mic-peak-marker {
    position: absolute; top: 0; bottom: 0; width: 3px; background: #fff;
    inset-inline-start: 0%; transition: inset-inline-start 100ms linear; box-shadow: 0 0 6px rgba(255,255,255,.8);
}
.mic-meter-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .72rem; }

.mic-db-readout { font-size: 2.2rem; font-weight: 800; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.mic-clip-warning[hidden] { display: none; }
.mic-clip-warning { color: #ef4444; font-weight: 700; margin: 6px 0; }
.mic-status { color: var(--muted); min-height: 1.5em; margin: 10px 0 18px; }

.mic-controls { display: flex; justify-content: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
    .mic-meter-fill, .mic-peak-marker { transition: none; }
    .mic-meter-fill.is-clipping { animation: none; }
}

/* END OF FILE */
