/* Workout + timer mode: one full screen with the clock and every movement. */
.workout-timer { position:fixed; inset:0; z-index:60; display:flex; flex-direction:column; gap:8px; padding:calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); background:#10261f; color:#f4f7f2; overflow-y:auto; overscroll-behavior:contain; }
.workout-timer[hidden] { display:none; }
body.timer-open { overflow:hidden; }
.timer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.workout-timer .timer-close { margin:0; min-height:44px; padding:8px 12px; color:#f4f7f2; background:transparent; border:1px solid #ffffff40; }
.timer-format { font-size:13px; font-weight:600; letter-spacing:.02em; color:#cfe3d6; text-align:right; }
.workout-timer h2 { margin:0; font-size:18px; line-height:1.25; color:#fff; overflow-wrap:anywhere; }
/* The clock takes every bit of height the list and controls leave free, and
   sizes its digits to that box (“10:00” is about 2.7em wide). */
.timer-face { flex:1 1 34vh; min-height:30vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; container-type:size; }
.timer-big { font-size:clamp(96px,34vw,300px); font-weight:700; line-height:.9; font-variant-numeric:tabular-nums; letter-spacing:-.03em; white-space:nowrap; }
@supports (font-size:1cqw) { .timer-big { font-size:min(35cqw,calc(100cqh - 40px)); } }
.timer-caption { margin-top:4px; font-size:18px; font-weight:600; color:#cfe3d6; }
.workout-timer.is-lead .timer-big { color:#9cd3ff; }
.workout-timer.is-rest { background:#3a2a0d; }
.workout-timer.is-rest .timer-big, .workout-timer.is-rest .timer-caption { color:#ffd27a; }
.workout-timer.is-done .timer-big { color:#b7f0c4; }
.timer-rounds { text-align:center; font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
.timer-rounds[hidden] { display:none; }
/* One compact line per movement: name and reps/time. Tap to pull out the notes. */
.timer-moves { flex:0 1 auto; min-height:0; max-height:42vh; overflow-y:auto; list-style:none; margin:0; padding:0; display:grid; gap:6px; align-content:start; }
.timer-move, .timer-note { border-radius:12px; background:#ffffff12; border:2px solid transparent; }
.timer-move.is-current { border-color:#b7f0c4; background:#ffffff22; }
.timer-move-row { display:flex; align-items:baseline; justify-content:space-between; gap:12px; min-height:44px; padding:10px 14px; box-sizing:border-box; }
summary.timer-move-row { cursor:pointer; list-style:none; }
summary.timer-move-row::-webkit-details-marker { display:none; }
summary.timer-move-row::after { content:'▾'; flex:none; margin-left:-4px; font-size:14px; color:#cfe3d6; transition:transform .15s; }
details[open] > summary.timer-move-row::after { transform:rotate(180deg); }
summary.timer-move-row:focus-visible { outline:3px solid #9cd3ff; outline-offset:-3px; border-radius:12px; }
.timer-move-name { flex:1 1 auto; min-width:0; font-size:19px; line-height:1.25; overflow-wrap:anywhere; }
.timer-move-dose { flex:none; max-width:50%; text-align:right; font-size:19px; font-weight:700; color:#b7f0c4; font-variant-numeric:tabular-nums; }
.timer-move-detail { padding:0 14px 12px; font-size:15px; line-height:1.4; color:#cfe3d6; }
.timer-move-detail p { margin:0 0 6px; }
.timer-note .timer-move-name { font-size:16px; font-weight:600; color:#cfe3d6; }
.timer-controls { position:sticky; bottom:0; flex:none; display:flex; flex-wrap:wrap; gap:10px; padding-top:6px; background:inherit; }
.timer-controls button { flex:1 1 30%; margin:0; min-height:56px; font-size:17px; color:#f4f7f2; background:#ffffff1a; border:1px solid #ffffff40; border-radius:14px; }
.timer-controls .timer-primary { flex:1 1 100%; min-height:60px; font-size:20px; color:#10261f; background:#b7f0c4; border-color:#b7f0c4; }
.workout-timer button:focus-visible { outline:3px solid #9cd3ff; outline-offset:2px; }
/* Entry points */
.part-card .part-timer-open { display:block; width:calc(100% - 28px); margin:0 14px 12px; min-height:44px; }
.sheet-timer { width:100%; min-height:48px; margin:4px 0 12px; }
@media (min-width:760px) { .workout-timer { padding-left:max(24px,calc((100vw - 720px)/2)); padding-right:max(24px,calc((100vw - 720px)/2)); } }
/* Reset the app's general disclosure styling inside the timer. */
.workout-timer details.timer-move-more { border:0; margin:0; padding:0; }
.workout-timer summary.timer-move-row { color:#f4f7f2; font-size:inherit; min-height:44px; }
.workout-timer summary.timer-move-row:focus-visible { outline:3px solid #9cd3ff; outline-offset:-3px; }
/* “0:59” is narrower than “10:00”, so short times get bigger digits. */
@supports (font-size:1cqw) { .timer-big[data-chars="4"] { font-size:min(47cqw,calc(100cqh - 40px)); } }
/* Interval / set count above the clock: read from across the gym. */
.timer-count { font-family:var(--font-display,inherit); font-weight:800; line-height:1; font-size:clamp(48px,18vw,150px); letter-spacing:.02em; margin-bottom:.14em; color:var(--signal,#b7f0c4); font-variant-numeric:tabular-nums; white-space:nowrap; }
.timer-count:empty { display:none; }
@supports (font-size:1cqw) {
  .timer-count { font-size:min(22cqw,26cqh); }
  .timer-face.has-count .timer-big { font-size:min(35cqw,calc(100cqh - 52px - 22cqw)); }
  .timer-face.has-count .timer-big[data-chars="4"] { font-size:min(47cqw,calc(100cqh - 52px - 22cqw)); }
}
.workout-timer.is-rest .timer-count { color:#ffd27a; }
/* EMOM wheel: one row per interval, the one in progress in the middle. */
.timer-moves.is-wheel { position:relative; max-height:34vh; scroll-behavior:auto; overscroll-behavior:contain; }
.timer-interval { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:start; opacity:.55; }
.timer-interval.is-current, .timer-interval:focus-within { opacity:1; }
.timer-interval.is-past { opacity:.8; }
.timer-interval-number { padding-top:14px; text-align:center; font-size:17px; font-weight:700; color:#cfe3d6; font-variant-numeric:tabular-nums; }
.timer-interval.is-current .timer-interval-number { color:#b7f0c4; }
.timer-entry-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.workout-timer .timer-entry { display:flex; align-items:baseline; gap:10px; width:100%; min-height:52px; margin:0; padding:10px 12px 10px 4px; text-align:left; color:#f4f7f2; background:transparent; border:0; border-radius:12px; }
.workout-timer .timer-entry:disabled { opacity:1; cursor:default; }
.timer-entry .timer-move-dose { max-width:40%; }
.timer-entry-value { flex:none; min-width:64px; padding:4px 8px; text-align:center; font-size:15px; font-weight:700; color:#cfe3d6; border:1px dashed #ffffff55; border-radius:10px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.timer-entry-value:empty { display:none; }
.timer-entry-value.is-set { color:#10261f; background:#b7f0c4; border:1px solid #b7f0c4; }
.workout-timer .timer-entry-info { width:44px; min-height:44px; margin:0 6px 0 0; padding:0; border-radius:50%; font-size:15px; font-style:italic; font-weight:700; }
.timer-entry-wrap > .timer-move-detail, .timer-entry-edit { grid-column:1 / -1; }
.timer-move-detail[hidden] { display:none; }
.timer-entry-edit { display:grid; grid-template-columns:56px minmax(0,1fr) 56px auto; gap:8px; align-items:center; padding:2px 10px 12px 4px; }
.workout-timer .timer-reps-step { margin:0; min-height:56px; padding:0; font-size:26px; line-height:1; }
.timer-entry-edit input { width:100%; min-height:56px; margin:0; box-sizing:border-box; text-align:center; font-size:30px; font-weight:700; font-variant-numeric:tabular-nums; color:#10261f; background:#f4f7f2; border:2px solid transparent; border-radius:12px; }
.timer-entry-edit input[aria-invalid="true"] { border-color:#ff8a7a; }
.workout-timer .timer-reps-done { margin:0; min-height:56px; padding:0 16px; font-size:17px; font-weight:700; color:#10261f; background:#b7f0c4; border:1px solid #b7f0c4; border-radius:12px; }
.workout-timer details.timer-how { flex:none; margin:0; padding:0 14px; border:0; border-radius:12px; background:#ffffff12; }
.workout-timer details.timer-how summary { min-height:44px; display:flex; align-items:center; font-size:16px; font-weight:600; color:#cfe3d6; cursor:pointer; }
.workout-timer details.timer-how p { margin:0 0 12px; font-size:15px; line-height:1.4; color:#cfe3d6; }
.timer-entry .timer-move-name { font-size:17px; overflow-wrap:break-word; }
.timer-entry .timer-move-dose { flex:none; font-size:16px; }
.timer-entry-value { min-width:52px; font-size:14px; }
.timer-entry-edit input { appearance:textfield; -moz-appearance:textfield; }
.timer-entry-edit input::-webkit-outer-spin-button, .timer-entry-edit input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
/* Running, the count sits above the clock: the face grows by the count's height (the
   movement list gives up the room) so the digits stay as big as before Start. */
.timer-face.has-count { flex:1 0 auto; min-height:calc(34vh + 24vw); }

/* Every movement under the clock at once (asked 2026-11-25): one compact top row, a list
   that never scrolls, and a clock that takes the height left over. */
.timer-head .timer-close { flex:none; min-width:44px; padding:8px 10px; font-size:22px; line-height:1; }
.timer-head h2 { flex:1 1 auto; min-width:0; font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.timer-head .timer-format { flex:none; max-width:38%; }
.timer-moves.is-fit { flex:0 0 auto; max-height:none; overflow:visible; gap:4px; }
.workout-timer:has(.timer-moves.is-fit) .timer-face { flex:1 1 0; min-height:12vh; }
.workout-timer[data-moves="many"] .timer-move-row { min-height:40px; padding:6px 12px; }
.workout-timer[data-moves="many"] .timer-move-name, .workout-timer[data-moves="many"] .timer-move-dose { font-size:17px; }
.workout-timer[data-moves="many"] .timer-move-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.workout-timer[data-moves="many"] details[open] .timer-move-name { white-space:normal; }
.workout-timer[data-moves="many"] .timer-controls button { min-height:48px; }
.workout-timer[data-moves="many"] .timer-controls .timer-primary { min-height:52px; }
.workout-timer:has(details[open]) { overflow-y:auto; }
.timer-sub { flex:none; display:flex; align-items:center; gap:8px; }
.timer-sub .timer-rounds { flex:none; font-size:20px; }
.timer-sub details.timer-how { flex:1 1 auto; }
.workout-timer[data-moves="many"] { gap:4px; }
.workout-timer[data-moves="many"] .timer-move-row, .workout-timer[data-moves="many"] summary.timer-move-row { min-height:36px; padding:5px 12px; }
.workout-timer[data-moves="many"] details.timer-how summary { min-height:40px; }
.timer-moves.is-fit { grid-template-columns:minmax(0,1fr); }
.timer-moves.is-fit > li, .timer-moves.is-fit .timer-move-more, .timer-moves.is-fit .timer-move-row { min-width:0; max-width:100%; box-sizing:border-box; }
