/* A top-layer dialog with one scrollable content row. The timer never shares
   a scroll container or stacking context with the site header/navigation. */
dialog.workout-live{position:fixed;inset:auto;top:var(--visual-viewport-top,0px);left:0;width:100%;height:var(--visual-viewport-height,100dvh);max-width:none;max-height:none;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;transform:none;background:var(--page);color:var(--text);overflow:hidden;overscroll-behavior:none}
dialog.workout-live[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}dialog.workout-live:not([open]){display:none}dialog.workout-live::backdrop{background:var(--page)}
.workout-live .live-top{position:relative;z-index:1;flex-shrink:0;box-sizing:border-box;height:auto;min-height:74px;padding:calc(10px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));gap:14px;background:var(--surface);color:var(--text);border-bottom:1px solid var(--line)}.workout-live .live-top button{display:grid;place-items:center;min-width:48px;min-height:44px;font-size:14px;font-weight:800;color:var(--text);border-radius:12px}.workout-live .live-top button:first-child{font-size:26px}.workout-live .live-top small{font-size:11px;color:var(--text-soft);line-height:1.5}.workout-live .live-top #timer{font-size:22px;line-height:1.4;font-variant-numeric:tabular-nums}.workout-live .live-top #finishWorkout{padding:10px 15px;background:var(--surface-soft);border:1px solid var(--line)}
.workout-live .live-inner{box-sizing:border-box;min-height:0;width:100%;max-width:none;margin:0;padding:24px max(20px,calc((100vw - 680px)/2)) calc(30px + env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding:20px 0 28px}.workout-live .live-inner h1{overflow-wrap:anywhere}.workout-live .set-row input{font-size:16px;min-height:48px;min-width:0}.workout-live #workoutFeedback:empty{display:none}.workout-live .live-nav button{min-height:48px;color:var(--text)}.workout-live #completeSet{min-height:50px}.workout-live [hidden]{display:none!important}
@media(max-height:520px){.workout-live .live-top{min-height:60px;padding-top:8px;padding-bottom:8px}.workout-live .live-top small{display:none}.workout-live .live-inner{padding-top:16px}}
