#trimBar:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.55rem .85rem;border-bottom:1px solid var(--line)}
#trimReadout{font-variant-numeric:tabular-nums;margin-right:auto}
#trimFrame{position:absolute;top:0;bottom:0;z-index:5;box-sizing:border-box;pointer-events:none;box-shadow:0 0 0 100vw #09090999}
#trimFrame.editing{border-block:3px solid #ffe627}
#trimFrame button{display:none}
#trimFrame.editing button{display:grid;place-items:center;position:absolute;top:0;bottom:0;width:18px;min-width:0;padding:0;border:0;border-radius:3px;background:#ffe627;pointer-events:auto;touch-action:none;cursor:ew-resize}
#trimFrame button:after{content:'';width:3px;height:24px;border-radius:3px;background:#292816}
#trimStart{left:0}#trimEnd{right:0}
#trimFrame.editing:has(#trimStart:focus) #trimStart,#trimFrame.editing:has(#trimEnd:focus) #trimEnd{z-index:1}
#timeline{overflow:hidden}

/* Keep the ruler clear so the playhead can be grabbed at either cut. */
#trimFrame.editing button{top:28px}
#timeline:has(#trimFrame.editing){cursor:crosshair;touch-action:none}
#timeline:has(#trimFrame.editing) #playhead{z-index:6}
