.se-waveform-panel { min-width: 0; margin-top: 14px; }
.se-waveform-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 8px 0 12px; min-width: 0; }
.se-waveform-toolbar button { min-height: 46px; overflow-wrap: anywhere; }
.se-waveform-zoom-controls { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.se-waveform-zoom-controls button { width: 46px; padding: 0; font-size: 22px; }
.se-waveform-zoom-controls output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.se-waveform-viewport { max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--site-border); border-radius: 8px; background: var(--site-surface-muted); touch-action: pan-x; overscroll-behavior-x: contain; }
.se-waveform-stage { position: relative; height: 164px; min-width: 100%; }
.se-waveform-canvas { position: sticky; left: 0; display: block; height: 164px; touch-action: pan-x; cursor: crosshair; }
.se-waveform-canvas[aria-disabled="true"] { cursor: default; }
.se-waveform-handle { position: absolute; width: 44px; height: 72px; border: 0; background: transparent; padding: 0; color: var(--site-text); cursor: ew-resize; touch-action: none; user-select: none; z-index: 1; }
.se-waveform-handle::before { content: ""; position: absolute; left: var(--se-waveform-line-x, 21px); width: 2px; height: 72px; background: #2563eb; }
.se-waveform-handle span { display: grid; place-items: center; width: 28px; height: 30px; margin: auto; color: #fff; background: #2563eb; border: 1px solid #fff; border-radius: 5px; }
.se-waveform-handle-start { top: 0; }
.se-waveform-handle-end { bottom: 20px; }
.se-waveform-handle-end::before, .se-waveform-handle-end span { background: #b45309; }
.se-waveform-handle:focus-visible { outline: 2px solid var(--site-text); outline-offset: -2px; border-radius: 5px; }
.se-waveform-handle:disabled { opacity: .45; cursor: default; }
.se-waveform-handle[hidden] { display: none; }
.se-waveform-selection { margin: 7px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.se-waveform-progress { display: block; width: 100%; margin: 8px 0; }
.se-waveform-progress.hidden { display: none; }
@media (max-width: 600px) {
    .se-waveform-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .se-waveform-zoom-controls { justify-content: center; }
    #se-waveform-retry { grid-column: 1 / -1; }
}
