/* Activity mode. Phase colours and fonts come from ui/tokens.css.
 * Sizes are in cqw (percent of screen width) so the layout
 * scales from a small phone to a tablet without breakpoints. */
:root {
  --work-ink: #FFFFFF; --work-fill: rgba(0, 0, 22, .22);
  --rest-ink: #0F2A1E; --rest-fill: rgba(15, 42, 30, .10);
  --ready-ink: #2A1E00; --ready-fill: rgba(60, 40, 0, .12);
  --switch-ink: #FFFFFF; --switch-fill: rgba(60, 0, 0, .16);
  --round-ink: #FFFFFF; --round-fill: rgba(0, 30, 15, .22);
  --paused: #2B2E3A; --paused-ink: #EEF0F6;
  --done: #12142A; --done-ink: #FFFFFF; --done-hi: #F7C948; --done-danger: #FF8A70;
}
html:has(> body.activity), #app { color-scheme: dark; }
#app, #app * { box-sizing: border-box; }
html:has(> body.activity), body.activity { margin: 0; height: 100%; background: var(--done); color: var(--done-ink); font-family: var(--f-ui); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#app a { color: inherit; }
#app { position: fixed; inset: 0; container-type: inline-size; }
/* A screen drawn inside another page (the front page's report), at the
 * height of its content. */
#app.embedded { position: relative; inset: auto; margin-inline: calc(-1 * var(--space-lg)); background: var(--done); }
#app.embedded .scr { height: auto; }

#app .scr { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none;
  padding: calc(env(safe-area-inset-top, 0px) + 6cqw) calc(env(safe-area-inset-right, 0px) + 7cqw) calc(env(safe-area-inset-bottom, 0px) + 7cqw) calc(env(safe-area-inset-left, 0px) + 7cqw);
  transition: background-color .25s; }
#app .scr > * { position: relative; z-index: 1; }
#app .scr .fill { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; background: var(--fillc); }
#app .s-work, #app .s-ready, #app .s-switch, #app .s-rest, #app .s-round, #app .s-paused { cursor: pointer; }

#app .s-work { background: var(--work); color: var(--work-ink); --fillc: var(--work-fill); }
#app .s-rest { background: var(--rest); color: var(--rest-ink); --fillc: var(--rest-fill); }
#app .s-ready { background: var(--ready); color: var(--ready-ink); --fillc: var(--ready-fill); }
#app .s-switch { background: var(--switch); color: var(--switch-ink); --fillc: var(--switch-fill); }
#app .s-paused { background: var(--paused); color: var(--paused-ink); }
#app .s-round { background: var(--round); color: var(--round-ink); --fillc: var(--round-fill); }
#app .s-done { background: var(--done); color: var(--done-ink); }

#app .top { display: flex; flex-direction: column; gap: 2.4cqw; }
#app .segs { display: flex; gap: 1.2cqw; align-items: center; }
#app .seg { flex: 1; height: 1.5cqw; border-radius: 2cqw; position: relative; overflow: hidden; background: color-mix(in srgb, currentColor 22%, transparent); }
#app .seg span { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; border-radius: inherit; }
#app .rdot { flex: none; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: color-mix(in srgb, currentColor 22%, transparent); }
#app .rdot.done { background: currentColor; }
#app .rdot.cur { background: currentColor; box-shadow: 0 0 0 .7cqw color-mix(in srgb, currentColor 35%, transparent); }
#app .meta { display: flex; justify-content: space-between; font-size: 3.7cqw; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }

#app .main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3cqw; min-height: 0; }
#app .eb { font-size: 4cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
#app .name { font-size: 10.5cqw; font-weight: 800; font-stretch: 82%; line-height: .98; text-wrap: balance; letter-spacing: -.005em; }
#app .chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 2cqw; font-size: 3.8cqw; font-weight: 700; padding: 1.4cqw 3cqw; border-radius: 99px; background: color-mix(in srgb, currentColor 16%, transparent); }
#app .chip i { display: inline-flex; gap: 1cqw; }
#app .chip i b { width: 2cqw; height: 2cqw; border-radius: 50%; background: currentColor; opacity: .3; }
#app .chip i b.on { opacity: 1; }
#app .clock { font-size: 58cqw; font-weight: 850; font-stretch: 68%; line-height: .82; font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin-left: -1.5cqw; margin-top: 2cqw; }
#app .clock.mm { font-size: 42cqw; }
#app .clock.sm { font-size: 30cqw; }
#app .clock .pad { visibility: hidden; }
#app .final .clock { animation: pulse 1s steps(1) infinite; }
@keyframes pulse { 0% { opacity: 1; } 55% { opacity: .55; } }
#app .next { display: flex; align-items: baseline; gap: 3cqw; border-top: .4cqw solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 3.4cqw; font-size: 4.6cqw; }
#app .nl { font-size: 3.4cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
#app .next .nn { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app .next .nd { font-variant-numeric: tabular-nums; opacity: .8; }
#app .hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22cqw); text-align: center; font-size: 3.4cqw; font-weight: 600; opacity: .65; }
#app .bigicon { width: 22cqw; height: 22cqw; }

#app .upnext { display: flex; flex-direction: column; gap: 2.4cqw; background: color-mix(in srgb, currentColor 9%, transparent); border-radius: 5cqw; padding: 5cqw; }
#app .upnext .name { font-size: 8.5cqw; }
#app .upnext .d { font-size: 4.2cqw; font-weight: 600; opacity: .8; }
/* An exercise's notes: in full when paused, a few lines in the Up next card. */
#app .xnote { margin: 0; font-size: 4cqw; line-height: 1.45; font-weight: 500; opacity: .8; white-space: pre-line; max-width: 34em; }
#app .s-paused .xnote { margin-top: 1cqw; }
/* Long notes scroll inside the paused screen, above the controls; safe keeps the top reachable. */
#app .s-paused .main { overflow-y: auto; justify-content: safe center; }
#app .upnext .xnote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* Paused */
#app .s-paused .clock { opacity: .35; }
#app .pctl { display: flex; flex-direction: column; align-items: center; gap: 7cqw; padding-bottom: 2cqw; }
#app .resume { width: 30cqw; height: 30cqw; border-radius: 50%; border: 0; background: var(--paused-ink); color: var(--paused); display: grid; place-items: center; cursor: pointer; }
#app .resume svg { width: 13cqw; height: 13cqw; margin-left: 1.5cqw; }
#app .prow { display: flex; gap: 4cqw; width: 100%; }
#app .pbtn { flex: 1; border: 0; border-radius: 4cqw; padding: 3.6cqw 0 3cqw; background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-size: 3.6cqw; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; cursor: pointer; }
#app .pbtn svg { width: 6cqw; height: 6cqw; }
#app .pbtn.end { color: #FF9C85; }
#app .resume:focus-visible, #app .pbtn:focus-visible, #app .dbtn:focus-visible, #app .play:focus-visible { outline: .8cqw solid var(--done-hi); outline-offset: 1cqw; }

/* Home, summary, finish */
#app .s-done .main { overflow-y: auto; padding-bottom: 4cqw; -webkit-overflow-scrolling: touch; }
#app .s-done .eb { color: var(--done-hi); opacity: 1; }
#app .s-done .sub { font-size: 3.2cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 1.5cqw; }
#app .bigtime { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4cqw; margin-block: 6cqw 7cqw; font-size: 24cqw; font-weight: 850; font-stretch: 68%; line-height: .85; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#app .bigtime small { font-size: 7cqw; font-weight: 700; font-stretch: 85%; letter-spacing: 0; margin-left: 1.2cqw; opacity: .6; }
#app .stats { display: flex; gap: 6cqw; font-size: 3.6cqw; opacity: .85; }
#app .stats b { display: block; font-size: 7cqw; font-weight: 800; font-stretch: 80%; }
#app .tbar { display: flex; height: 3.4cqw; border-radius: 2cqw; overflow: hidden; gap: .6cqw; flex: none; }
#app .tleg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4cqw 4cqw; font-size: 3.5cqw; }
#app .tleg li { display: flex; align-items: center; gap: 1.4cqw; }
#app .tleg i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; }
#app .tleg em, #app .mus em { font-style: normal; opacity: .6; font-variant-numeric: tabular-nums; }
#app .mus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5cqw; font-size: 3.5cqw; }
#app .mus li { display: grid; grid-template-columns: 22cqw 1fr 9cqw; align-items: center; gap: 2.4cqw; }
#app .mus b { height: 1.6cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
#app .mus s { position: absolute; left: 0; top: 0; bottom: 0; background: var(--done-ink); opacity: .85; border-radius: inherit; }
#app .mus em { text-align: right; }
#app .rate { display: flex; gap: 1.2cqw; flex: none; }
#app .rate button { flex: 1; aspect-ratio: 1; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; font: inherit; font-size: 3.2cqw; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; cursor: pointer; }
#app .rate button.on { background: var(--done-hi); color: var(--done); }
#app .rate button:focus-visible { outline: .6cqw solid var(--done-hi); outline-offset: .6cqw; }
#app .saved { display: flex; align-items: center; gap: 1.8cqw; font-size: 3.4cqw; opacity: .75; margin-top: auto; }
#app .saved svg { width: 4cqw; height: 4cqw; color: var(--done-hi); flex: none; }
#app .drow { display: flex; gap: 3cqw; }
#app .dbtn { flex: 1; border: 0; border-radius: 99px; padding: 4cqw 0; font: inherit; font-size: 4.4cqw; font-weight: 700; cursor: pointer; background: rgba(255, 255, 255, .1); color: inherit; }
#app .dbtn.pri { background: var(--done-hi); color: var(--done); }
#app .dbtn.danger { background: var(--done-danger); color: var(--done); }
#app .dbtn.quiet { color: var(--done-danger); }
#app .saved.ask { opacity: 1; font-weight: 600; }

#app .slist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 3.9cqw; }
#app .slist li, #app .slist .srow { display: flex; align-items: center; gap: 2.6cqw; padding: 1.7cqw 0; border-top: .3cqw solid rgba(255, 255, 255, .1); }
#app .slist li.notes { display: block; padding: 0; }
#app .slist .srow { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#app .slist .srow:focus-visible { outline: .6cqw solid var(--done-hi); outline-offset: .4cqw; }
#app .slist svg.more { width: 3.6cqw; height: 3.6cqw; flex: none; opacity: .5; transition: transform .2s; }
#app .slist [aria-expanded="true"] svg.more { transform: rotate(180deg); opacity: .8; }
#app .snote { margin: 0 0 2.2cqw 5.6cqw; font-size: 3.4cqw; line-height: 1.45; font-weight: 500; opacity: .75; white-space: pre-line; }
#app .slist li > i, #app .slist .srow > i { font-style: normal; font-variant-numeric: tabular-nums; opacity: .5; width: 3cqw; font-size: 3.3cqw; }
#app .slist li span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1.6cqw; font-weight: 600; }
#app .slist small { font-size: 2.9cqw; opacity: .55; font-weight: 500; }
#app .slist svg.eq { width: 4.4cqw; height: 4.4cqw; flex: none; opacity: .8; }
#app .slist b { display: inline-flex; gap: .8cqw; margin-left: auto; }
#app .slist s, #app .sleg s, #app .wt s { display: inline-block; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; }
#app .slist em { font-style: normal; opacity: .65; font-variant-numeric: tabular-nums; width: 9cqw; text-align: right; }
#app .sleg { display: flex; flex-wrap: wrap; gap: 1cqw 3.4cqw; font-size: 3cqw; opacity: .7; }
#app .sleg span { display: inline-flex; align-items: center; gap: 1.2cqw; }
#app .play { flex: none; border: 0; border-radius: 99px; background: var(--done-hi); color: var(--done); font: inherit; font-size: 5cqw; font-weight: 800; padding: 4.4cqw 0; display: flex; align-items: center; justify-content: center; gap: 2.4cqw; cursor: pointer; }
#app .play svg { width: 5.4cqw; height: 5.4cqw; }
#app .backlink { display: inline-flex; align-items: center; gap: 1cqw; font-size: 3.8cqw; font-weight: 600; text-decoration: none; opacity: .7; align-self: flex-start; }
#app .backlink svg { width: 4.6cqw; height: 4.6cqw; }

#app .hrow { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
#app .modes { display: inline-flex; padding: .8cqw; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 3.2cqw; font-weight: 700; }
#app .modes > * { padding: 1.4cqw 2.2cqw; border-radius: 99px; text-decoration: none; color: inherit; opacity: .7; }
#app .modes [aria-current] { background: var(--done-ink); color: var(--done); opacity: 1; }
#app .modes .mode-off { opacity: .3; }
#app .modes a:focus-visible { outline: .6cqw solid var(--done-hi); outline-offset: .4cqw; }
#app .hctl { display: flex; align-items: center; gap: 2cqw; }
#app .tvbtn { display: inline-flex; align-items: center; gap: 1.2cqw; border: 0; border-radius: 99px; padding: 1.4cqw 2.8cqw; background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-size: 3.4cqw; font-weight: 700; cursor: pointer; opacity: .85; }
#app .tvbtn svg { width: 4.4cqw; height: 4.4cqw; }
#app .tvbtn[aria-pressed="true"] { background: var(--done-hi); color: var(--done); opacity: 1; }
#app .tvbtn:focus-visible { outline: .6cqw solid var(--done-hi); outline-offset: .4cqw; }
#app .s-sum .hrow { align-self: stretch; }
#app .hctl form { margin: 0; }
#app .signout { background: none; border: 0; color: inherit; font: inherit; font-size: 3.2cqw; font-weight: 700; opacity: .7; text-decoration: none; cursor: pointer; padding: 1.4cqw .6cqw; }
#app .signout.off { opacity: .3; cursor: default; }
#app .signout:focus-visible { outline: .6cqw solid var(--done-hi); outline-offset: .4cqw; }
#app .wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3cqw; }
#app .wlist a { display: grid; grid-template-columns: 1fr auto; gap: 1cqw 3cqw; padding: 4.4cqw 5cqw; border-radius: 4cqw; background: rgba(255, 255, 255, .07); text-decoration: none; }
#app .wlist a:active { background: rgba(255, 255, 255, .14); }
#app .wn { font-size: 6cqw; font-weight: 800; font-stretch: 82%; }
#app .wm { grid-column: 1; font-size: 3.6cqw; opacity: .7; font-variant-numeric: tabular-nums; }
#app .wm b { font-weight: 700; }
#app .wt { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 1cqw; align-items: center; }
/* Pinned workouts carry a star; the rest wait behind the reveal row. */
#app .wn .pin { width: 4.6cqw; height: 4.6cqw; margin-right: 1.6cqw; vertical-align: -.3cqw; color: var(--done-hi); }
#app .reveal { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 3.4cqw 5cqw; border: 0; border-radius: 4cqw; background: none; color: inherit; font: inherit; font-size: 3.8cqw; font-weight: 700; opacity: .75; cursor: pointer; }
#app .reveal svg { width: 4.4cqw; height: 4.4cqw; transition: transform .2s; }
#app .reveal[aria-expanded="true"] svg { transform: rotate(180deg); }
#app .reveal:focus-visible { outline: .6cqw solid var(--done-hi); outline-offset: .4cqw; }
#app .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app .empty { font-size: 4cqw; opacity: .75; line-height: 1.45; margin: 0; }
#app .status { display: flex; align-items: center; gap: 2cqw; font-size: 3.4cqw; opacity: .7; text-decoration: none; }
#app .status svg { width: 4.4cqw; height: 4.4cqw; flex: none; }
#app .status.ok svg { color: var(--done-hi); }
#app .status.warn { color: var(--done-hi); opacity: 1; }

/* Pull to refresh on the workout list. The indicator waits above the top
 * edge; app.js moves it down with the drag and spins it while syncing. */
#app .s-home > .ptr { position: absolute; top: calc(env(safe-area-inset-top, 0px) - 10cqw); left: 50%; z-index: 2; width: 10cqw; height: 10cqw; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--done-ink) 12%, var(--done)); color: var(--done-ink); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, 0);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; pointer-events: none; }
#app .s-home > .ptr svg { width: 5.4cqw; height: 5.4cqw; transition: color .15s; }
#app .s-home > .ptr.armed svg { color: var(--done-hi); }
#app .s-home > .ptr.spin svg { animation: ptr-spin .8s linear infinite; }
#app .s-home > .main { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Landscape: name on the left, countdown on the right. The list screens
 * (home, summary, finish) keep their phone layout in a centred column. */
@media (orientation: landscape) {
  #app .s-done { width: min(100%, 520px); margin-inline: auto; container-type: inline-size; padding: calc(env(safe-area-inset-top, 0px) + 24px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px); }
  #app .scr:not(.s-done) {
    padding: calc(env(safe-area-inset-top, 0px) + 3cqw) calc(env(safe-area-inset-right, 0px) + 5cqw) calc(env(safe-area-inset-bottom, 0px) + 3cqw) calc(env(safe-area-inset-left, 0px) + 5cqw);
    .top { gap: 1.2cqw; }
    .segs { gap: .6cqw; }
    .seg { height: .75cqw; }
    .rdot { width: .75cqw; height: .75cqw; }
    .meta { font-size: 1.8cqw; }
    .eb { font-size: 1.9cqw; }
    .name { font-size: 5.4cqw; }
    .chip { font-size: 1.8cqw; padding: .7cqw 1.5cqw; gap: 1cqw; }
    .chip i b { width: 1cqw; height: 1cqw; }
    .next { font-size: 2.2cqw; padding-top: 1.6cqw; gap: 1.6cqw; }
    .nl { font-size: 1.6cqw; }
    .hint { font-size: 1.7cqw; bottom: calc(env(safe-area-inset-bottom, 0px) + 9cqw); }
    .bigicon { width: 8cqw; height: 8cqw; }
    .clock { font-size: min(30cqw, 64vh); margin: 0; }
    .clock.mm { font-size: min(22cqw, 48vh); }
    .clock.sm { font-size: min(14cqw, 34vh); }
    .upnext { padding: 2.4cqw; border-radius: 2.4cqw; gap: 1cqw; }
    .upnext .name { font-size: 4.2cqw; }
    .upnext .d { font-size: 2cqw; }
    .xnote { font-size: 1.9cqw; }
    .main { gap: 1.4cqw !important; }
    .pctl { flex-direction: row; justify-content: space-between; gap: 4cqw; padding-bottom: 0; }
    .resume { width: 12cqw; height: 12cqw; flex: none; }
    .resume svg { width: 5cqw; height: 5cqw; }
    .prow { width: auto; flex: 1; gap: 2cqw; }
    .pbtn { font-size: 1.8cqw; padding: 1.8cqw 0 1.4cqw; border-radius: 2cqw; gap: .7cqw; }
    .pbtn svg { width: 3cqw; height: 3cqw; }
  }
  #app .s-work .main, #app .s-ready .main, #app .s-switch .main, #app .s-paused .main { display: grid; grid-template-columns: 1fr auto; align-content: safe center; column-gap: 4cqw; }
  #app .s-work .main > :not(.lclock), #app .s-ready .main > :not(.lclock), #app .s-switch .main > :not(.lclock), #app .s-paused .main > :not(.lclock) { grid-column: 1; justify-self: start; }
  #app .lclock { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  /* Rest and round break: the countdown on the left, what's next on the right. */
  #app .s-rest, #app .s-round {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 5cqw;
    .top { grid-column: 1 / -1; }
    .main { grid-column: 1; min-height: 0; }
    .upnext { grid-column: 2; align-self: center; }
  }
}
/* TV mode (html.tv): a landscape screen read from across the room. Margins
 * leave room for TV overscan; the countdown is sized to the screen height;
 * everything else is about a third bigger than the plain landscape layout. */
#app .tv.idle, #app .tv.idle * { cursor: none !important; }
#app kbd { font: inherit; font-weight: 800; padding: .05em .45em; border-radius: .3em; border: .1em solid currentColor; }
@media (orientation: landscape) {
  #app .tv .s-done { width: min(100%, 74vh); padding: 5.5vh 0; }
  #app .tv .scr:not(.s-done) {
    padding: 5.5vh 5vw;
    .top { gap: 1.4cqw; }
    .segs { gap: .8cqw; }
    .seg { height: 1cqw; }
    .rdot { width: 1cqw; height: 1cqw; }
    .meta { font-size: 2.4cqw; }
    .eb { font-size: 2.5cqw; }
    .name { font-size: 6.6cqw; }
    .chip { font-size: 2.4cqw; padding: .9cqw 2cqw; gap: 1.4cqw; }
    .chip i b { width: 1.3cqw; height: 1.3cqw; }
    .next { font-size: 3.2cqw; padding-top: 1.8cqw; gap: 2cqw; }
    .nl { font-size: 2.1cqw; }
    .hint { font-size: 2cqw; bottom: calc(5.5vh + 8.5cqw); }
    .bigicon { width: 9cqw; height: 9cqw; }
    .clock { font-size: min(40cqw, 76vh); }
    .clock.mm { font-size: min(27cqw, 52vh); }
    .clock.sm { font-size: min(18cqw, 34vh); }
    .upnext { padding: 3cqw; border-radius: 3cqw; gap: 1.2cqw; }
    .upnext .name { font-size: 5.6cqw; }
    .upnext .d { font-size: 2.6cqw; }
    .xnote { font-size: 2.4cqw; }
    .main { gap: 1.8cqw !important; }
    .resume { width: 13cqw; height: 13cqw; }
    .resume svg { width: 5.5cqw; height: 5.5cqw; }
    .pbtn { font-size: 2.3cqw; padding: 2cqw 0 1.6cqw; }
    .pbtn svg { width: 3.4cqw; height: 3.4cqw; }
  }
  /* Summary: the whole workout at a glance, the list beside the total. */
  #app .tv .s-sum {
    width: min(100%, 150vh); display: grid; grid-template-columns: 1fr 1.3fr; grid-template-rows: auto auto 1fr auto; gap: 0 5cqw; align-items: start;
    .main { display: contents; }
    .hrow { grid-column: 1 / -1; margin-bottom: 2cqw; }
    .backlink, .tvbtn { font-size: 1.6cqw; }
    .backlink svg { width: 2cqw; height: 2cqw; }
    .tvbtn svg { width: 2cqw; height: 2cqw; }
    .tvbtn { padding: .6cqw 1.3cqw; gap: .6cqw; }
    .name { grid-column: 1; font-size: 4.6cqw !important; }
    .bigtime { grid-column: 1; font-size: 11cqw; margin-block: 2.5cqw 0; gap: 0 2cqw; }
    .bigtime small { font-size: 3cqw; }
    .slist { grid-column: 2; grid-row: 2 / 4; font-size: 1.85cqw; align-self: center; max-height: 100%; min-height: 0; overflow-y: auto; }
    .slist li, .slist .srow { padding: 1cqw 0; gap: 1.2cqw; border-top-width: .12cqw; }
    .slist li.notes { padding: 0; }
    .slist svg.more { width: 1.6cqw; height: 1.6cqw; }
    .snote { font-size: 1.4cqw; margin: 0 0 1cqw 2.8cqw; }
    .slist.long { display: grid; grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; column-gap: 3cqw; font-size: 1.6cqw; }
    .slist li > i, .slist .srow > i { width: 1.6cqw; font-size: 1.5cqw; }
    .slist small { font-size: 1.3cqw; }
    .slist svg.eq { width: 2cqw; height: 2cqw; }
    .slist s, .sleg s { width: 1.1cqw; height: 1.1cqw; }
    .slist em { width: 4.5cqw; }
    .sleg { grid-column: 2; grid-row: 4; font-size: 1.4cqw; gap: .6cqw 1.6cqw; align-self: end; }
    .play { grid-column: 1; grid-row: 4; font-size: 2.4cqw; padding: 1.8cqw 0; gap: 1.2cqw; }
    .play svg { width: 2.4cqw; height: 2.4cqw; }
  }
  #app .tv .s-rest, #app .tv .s-round {
    .clock { font-size: min(36cqw, 64vh); }
    .clock.mm { font-size: min(24cqw, 48vh); }
  }
}

@media (prefers-reduced-motion: reduce) { #app .final .clock { animation: none; } #app .scr { transition: none; } #app .s-home > .ptr.spin svg { animation-duration: 2.4s; } }
