/* set-timer.css — the OPTIONAL timer of a timed set (owner-approved proposal "A timer for timed sets", 22 Oct 2026;
   src/client/views/parts/set-timer.ts). The phone: ▶ Start timer under the rows, the running panel there. The website (900 px
   and wider, its own layout): a Timer column in the row and the ring as a card at the top of the right column. Lawha / KGYM
   tokens only, so light, dark and both accounts' palettes follow; start / end only (right-to-left ready). Loaded before
   look.css. */

/* the Timer column exists on the website only */
.set-table .timer-cell{display:none}

/* ── before Start (phone) ── */
.st-offer{display:grid;gap:6px;margin-top:4px}
.st-start{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:8px;row-gap:2px;width:100%;min-height:48px;margin:0}
.st-aim{font-weight:400;font-size:13px;color:var(--lawha-ink)}
.st-or{margin:0;text-align:center;font-size:13px;color:var(--lawha-muted)}

/* ── the running panel (phone: under the rows; website: the right column's card) ── */
.st-panel{display:grid;gap:12px;min-width:0;margin-top:6px;padding:14px;border-radius:var(--r-card,20px);background:var(--kgym-sunk,var(--lawha-paper));color:var(--lawha-ink)}
.st-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.st-title{margin:0;font-size:14px;line-height:1.35}
.st-skip,.st-again,.st-again-cell{min-height:44px;margin:0}
.st-sides{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0}
.st-side{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:4px 12px;border-radius:999px;background:var(--kgym-raised,var(--lawha-surface));color:var(--lawha-muted);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.st-side.is-now{background:var(--lawha-ink);color:var(--lawha-surface)}
.st-side.is-done{background:color-mix(in srgb,var(--lawha-accent) 16%,var(--kgym-raised,var(--lawha-surface)));color:var(--lawha-ink)}

.st-face{position:relative;justify-self:center;width:184px;height:184px}
.st-ring{display:block;width:184px;height:184px;overflow:visible}
.st-ring-track{fill:none;stroke:var(--kgym-raised,var(--lawha-surface));stroke-width:12}
.st-ring-band{fill:none;stroke:color-mix(in srgb,var(--lawha-accent) 22%,transparent);stroke-width:12}
.st-face:is(.is-in-range,.is-top,.is-over) .st-ring-band{stroke:color-mix(in srgb,var(--lawha-accent) 40%,transparent)}
.st-face.is-switch .st-ring-band{display:none}
.st-ring-fill{fill:none;stroke:var(--lawha-accent);stroke-width:12;stroke-linecap:round;transition:stroke-dasharray .9s linear}
.st-face.is-over .st-ring-fill{stroke:var(--kgym-low-bar,var(--lawha-accent))}
.st-face.is-paused .st-ring-fill{opacity:.55}
.st-ring-mark{stroke:var(--lawha-ink);stroke-width:2.5;stroke-linecap:round}
.st-ring-label{fill:var(--lawha-muted);font:600 12px var(--lawha-font,system-ui)}
.st-in{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.st-time{font:600 44px/1 var(--lawha-font,system-ui);font-variant-numeric:tabular-nums;color:var(--lawha-ink)}
.st-words{margin-top:4px;font-size:13px;font-weight:600;color:var(--lawha-muted)}
.st-face.is-over .st-words,.st-face.is-top .st-words{color:var(--lawha-ink)}

.st-actions{display:flex;flex-wrap:wrap;gap:8px}
.st-actions .btn{flex:1 1 auto;min-width:0;min-height:48px;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding-inline:8px}
.st-stop-mark{flex:none;width:10px;height:10px;border-radius:2px;background:currentColor}
.st-tone{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:13px;line-height:1.4;color:var(--lawha-muted)}
.st-tone .ui-glyph,.st-off .ui-glyph{flex:none;margin-top:2px}
.st-off{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 12px;border-radius:var(--r-input,14px);background:color-mix(in srgb,var(--kgym-warn) 30%,var(--kgym-raised,var(--lawha-surface)));color:var(--lawha-ink);font-size:13px;line-height:1.4}

/* ── after Stop ── */
.st-panel.is-stopped{gap:8px}
.st-result{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;padding:12px;border-radius:var(--r-input,14px);background:var(--kgym-insight,var(--lawha-sage));color:var(--lawha-ink)}
.st-result p{margin:0;font-size:14px;line-height:1.45}
.st-result .ui-glyph{margin-top:2px;color:var(--lawha-accent)}
.st-after{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.st-after .st-or{text-align:end}

/* the row's own "Timing…" (website) */
.st-timing{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--lawha-ink);white-space:nowrap}
.st-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--lawha-accent)}
.st-start-cell{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:40px;margin:0;padding-inline:8px}

/* the right column's "Rest timer · after ✓" (website) */
.st-rest-next{display:grid;gap:2px;margin:0;padding:12px 16px;border:1.5px dashed var(--kgym-edge,var(--lawha-line));border-radius:var(--r-card,20px);font-size:13px;color:var(--lawha-muted)}
.st-rest-next b{font-weight:600;color:var(--lawha-ink)}

@media (min-width:900px){
  .set-table.has-timer .set-head,.set-table.has-timer .set-row{grid-template-columns:24px minmax(0,1fr) minmax(60px,74px) minmax(50px,56px) minmax(96px,120px) 44px}
  .set-table.has-timer.no-weight .set-head,.set-table.has-timer.no-weight .set-row{grid-template-columns:24px minmax(0,1fr) minmax(50px,56px) minmax(96px,120px) 44px}
  .set-table.has-timer .timer-cell{display:block;min-width:0}
  .today-side .st-panel.st-web{margin:0;padding:var(--kgym-pad,16px);border:var(--lawha-rule);background:var(--lawha-surface)}
  .today-side .st-face,.today-side .st-ring{width:200px;height:200px}
  .today-side .st-time{font-size:48px}
}
