/* Workout mode keeps the same accessible exercise dialog and logging controls. */
.session-review { display: flex; flex-direction: column; gap: 14px; }
.session-result { border-top: 4px solid var(--sel); gap: 10px; scroll-margin-top: 80px; }
.session-result h2 { font-size: 26px; line-height: 1.15; }
.result-stats, .comparison-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result-stats > div, .comparison-pair > div { display: flex; flex-direction: column; gap: 8px; background: var(--surface2); padding: 14px; border-radius: 10px; }
.result-stats > div { flex-direction: row; align-items: center; padding: 10px; }
.result-stats b { font: 700 26px var(--mono); }
.result-stats span, .comparison-pair small { font-size: 12px; color: var(--muted); }
.comparison-pair b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.lift-comparison { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding-top: 14px; }
.lift-comparison p { margin-bottom: 0; }
.result-next { border-left: 3px solid var(--sel); padding-left: 14px; }
.result-next p { margin: 8px 0; }
.session-result:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }
.exercise-why { display: block; }
.exercise-why summary { cursor: pointer; font-weight: 600; padding-block: 8px; }
.exercise-why p { margin: 10px 0; }
.exercise-test { border-left: 3px solid var(--sel); padding-left: 12px; margin-top: 16px; }
.rep-check { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; scroll-margin-top: 90px; }
.rep-check h3 { font-size: 22px; line-height: 1.2; margin: 10px 0; }
.rep-check label { display: block; font-size: 13px; margin: 14px 0 8px; }
.rep-entry { display: flex; gap: 8px; }
.rep-entry input { min-width: 0; width: 80px; font: 600 22px var(--mono); text-align: center; }
.rep-entry .btn { flex: 1; min-height: 48px; }
.rep-check #repHint { margin-top: 10px; }
.rep-options { margin-top: 12px; flex-wrap: wrap; }
.rep-check:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }
.completed-sets { display: block; }
.completed-sets > summary { cursor: pointer; padding: 8px 0; font-weight: 600; font-size: 14px; }
.completed-sets[open] > summary { margin-bottom: 12px; }
#sheetW { scroll-margin-top: 85px; }
.lift-disclosure > summary, .session-review details > summary { cursor: pointer; padding-block: 10px; font-size: 14px; font-weight: 600; }
.lift-disclosure[open] > summary { margin-bottom: 12px; }
#liftLog > summary { display: flex; flex-direction: column; gap: 6px; }
#liftLog > summary b { font-size: 20px; }
#liftLog > summary > span:last-child { font-size: 13px; color: var(--muted); }
#liftLog > .feel { margin-top: 16px; }
.rep-entry:not(:has(button)) input { width: 100%; min-height: 48px; }
.workout-skip { border: 0; background: none; color: var(--muted); padding: 6px; font: 500 13px var(--body); cursor: pointer; text-decoration: underline; }
#sessionFeedbackDetails .fbq { margin: 12px 0; }
.workout-launch { scroll-margin-top: 80px; border-top: 4px solid var(--sel); gap: 12px; }
.workout-launch h3 { font-size: 30px; line-height: 1.1; }
.workout-launch .btn { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.workout-launch summary, .short-omitted summary, .workout-instructions summary { cursor: pointer; padding-block: 12px; font-weight: 600; }
.workout-launch ol { padding-left: 22px; }
.workout-launch li { padding-block: 5px; }
.workout-launch li span { display: block; }
.short-omitted { padding: 0 16px; }
.workout-mode .sheet-top .wrap { flex-direction: column; align-items: stretch; }
.workout-mode .sheet-top .iconbtn { order: -1; align-self: flex-start; flex-shrink: 0; min-height: 44px; font: 600 14px var(--body); width: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.workout-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; }
.workout-progress progress { width: 100%; height: 6px; accent-color: var(--sel); border: 0; }
.workout-mode .stage > canvas, .workout-mode .stage3d { height: 220px; }
.workout-mode .chips { display: none; }
.workout-cue { margin: 0; padding: 12px 14px; border-left: 3px solid var(--sel); background: var(--surface); border-radius: 0 8px 8px 0; }
.workout-action { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(640px, 100%); display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px #0000000a; }
.workout-action .btn { min-height: 52px; }
.workout-mode .sheet-body { padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)); }
.workout-instructions .card { margin-bottom: 12px; }
.weekly-recap { gap: 16px; }
.weekly-recap h2 { font-size: 30px; line-height: 1.1; }
.recap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recap-stats > div { background: var(--surface2); border-radius: 10px; padding: 12px 10px; }
.recap-stats b { display: block; font: 700 32px var(--mono); }
.recap-stats span { font-size: 12px; color: var(--muted); display: block; }
.recap-wins { list-style: none; padding: 0; margin: 0; }
.recap-wins li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 5px; }
.recap-wins span { font: 500 16px var(--mono); }
.recap-wins small { color: var(--muted); }

main:has(.workout-launch) > .battle { order: 0; }
dialog.sheet:has(.workout-mode) .restbar { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 700px) {
  .workout-action { bottom: 4vh; border-radius: 0 0 16px 16px; }
  dialog.sheet:has(.workout-mode) .restbar { bottom: calc(4vh + 130px); }
}
