.audio-upload{min-width:0;color:var(--muted);font:11px/1.5 var(--sans,system-ui,sans-serif)}
.audio-upload-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.audio-upload-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audio-upload-preview{display:flex;align-items:center;gap:8px;flex:none}
.audio-upload-duration{font-variant-numeric:tabular-nums;white-space:nowrap}
.audio-upload-waveform{display:block;width:100%;height:58px;margin:4px 0 0}
.audio-upload-live-waveform{display:block;width:100%;height:58px;margin:4px 0 0}
.audio-upload :is(.audio-upload-waveform,.audio-upload-live-waveform)[hidden]{display:none}
.audio-upload audio{display:none}
.audio-upload-play{display:grid;place-items:center;border:0;background:none;color:var(--brand);padding:4px;min-width:28px;min-height:28px;cursor:pointer;border-radius:4px}
.audio-upload-play svg{width:14px;height:14px;fill:currentColor}
.audio-upload-play:hover{background:#f3f5ff}
.audio-upload-play:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.audio-upload-progress{padding:22px 30px 16px;color:var(--muted);font:12px/1.6 var(--sans,system-ui,sans-serif)}
.audio-upload-status{display:flex;align-items:center;gap:8px 24px;flex-wrap:wrap;min-width:0}
.audio-upload-transcript-progress{font-size:11px;color:var(--muted)}
.audio-upload-transfer{display:flex;align-items:center;gap:12px;max-width:480px;margin-top:12px;font-size:11px;font-variant-numeric:tabular-nums}
.audio-upload-transfer progress{display:block;flex:1;min-width:0;height:3px;border:0;border-radius:3px;overflow:hidden;accent-color:var(--brand);background:#edf0fa}
.audio-upload-transfer progress::-webkit-progress-bar{background:#edf0fa;border-radius:3px}
.audio-upload-transfer progress::-webkit-progress-value{background:var(--brand);border-radius:3px}
.audio-upload-transfer progress::-moz-progress-bar{background:var(--brand);border-radius:3px}
.audio-upload-transfer>span{min-width:36px;text-align:right}
.audio-upload-progress[data-phase=failed]{color:#a34e42}
.audio-upload-progress[data-phase=complete]{color:#3f7f64}
[data-upload-progress]:not(:empty){border-top:1px solid var(--line)}
.pg-record-controls>[data-trial-upload-status],.pg-record-controls>[data-comparison-upload-status],.pg-capture-controls>[data-pg-upload-status]{grid-column:2;grid-row:1;min-width:0;width:100%;max-width:none}
.pg-upload-actions{display:flex;align-items:center;gap:20px;grid-column:1/-1;grid-row:2}
.pg-upload-actions:empty{display:none}
.pg-upload-actions :is(.quiet,.pg-direct-upload,.pg-upload-link){margin:0!important;padding:5px 0!important;min-height:28px!important;border:0;border-radius:0;background:none;font:12px/1.6 var(--sans,system-ui,sans-serif)!important;color:var(--muted);order:0!important}
.pg-upload-actions :is(.quiet,.pg-direct-upload,.pg-upload-link):hover:not(:disabled){background:none;color:var(--brand);text-decoration:underline;text-underline-offset:4px}
.pg-upload-actions button:focus:not(:focus-visible){outline:none;box-shadow:none}
.pg-upload-actions button:focus-visible{outline:1px solid var(--brand);outline-offset:3px}
.pg-audio-form:has([data-pg-upload-status])+.pg-analysis-result{border-top:0}
.pg-audio-form:has([data-pg-upload-status]) .pg-audio-idle{min-height:190px;border-top:0}
.hc-live-root.has-external-controls .pg-capture-controls>.pg-file-run{display:none}
.hc-live-root .pg-embedded-wave .audio-upload-waveform{height:76px;margin-top:5px}
.hc-live-root .pg-embedded-wave .audio-upload-live-waveform{height:76px;margin-top:5px}
@media(max-width:700px){.audio-upload-live-waveform{height:48px}}
@media(max-width:700px){.audio-upload-progress{padding:18px}.audio-upload-waveform{height:48px}.audio-upload .recording-meter.prominent .audio-upload-name{display:block;font-size:10px}.audio-upload-preview{gap:3px}.audio-upload-play{min-width:24px;padding:3px}.audio-upload .recording-meter.prominent>.audio-upload-meta{justify-content:space-between}}

.audio-upload-transfer progress:not([value]){appearance:none;background:linear-gradient(90deg,#edf0fa 0%,#edf0fa 25%,var(--brand) 50%,#edf0fa 75%,#edf0fa 100%);background-size:200% 100%;animation:audio-analysis-progress 1.8s linear infinite}
.audio-upload-transfer progress:not([value])::-webkit-progress-bar{background:transparent}
@keyframes audio-analysis-progress{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.audio-upload-transfer progress:not([value]){animation:none}}
