/* ===== Design tokens ===== */
:root {
  --bg: #0b0d10; --surface: #14171c; --surface-2: #1b1f26; --surface-3: #232833;
  --line: #2a3038; --line-strong: #3a414d;
  --text: #FFFFFF; --text-2: #b4bcc8; --muted: #8590a0;
  --accent: #34E0D8; --accent-2: #7BEFE8; --accent-ink: #04201F; --accent-soft: rgba(52,224,216,.14);
  --good: #34d399; --warn: #fbbf24;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.625rem; --fs-2xl: 2rem;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 400 var(--fs-md)/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1;
  background: radial-gradient(120% 60% at 100% 0%, rgba(52,224,216,.10), transparent 60%), var(--bg); min-height: 100vh; }
.wrap { max-width: 560px; margin: 0 auto; padding: calc(var(--s5) + env(safe-area-inset-top)) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom)); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.1; }
h2 { font-size: var(--fs-lg); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
.eyebrow { margin: 0 0 var(--s1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); margin: var(--s2) 0 0; }
.small { font-size: var(--fs-sm); }
.label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ===== Views ===== */
.view { display: none; }
.view.active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Hero & stats ===== */
.hero { margin-bottom: var(--s5); }
.race { margin: var(--s2) 0 0; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.race b { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-bottom: var(--s4); }
.stat { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); min-height: 72px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; font: inherit; }
.stat .value { font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; overflow-wrap: anywhere; }
.tappable { cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.tappable:active { transform: scale(.97); }

/* ===== Cards ===== */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s5) var(--s4); box-shadow: var(--shadow); margin-bottom: var(--s4); animation: fadeUp .4s var(--ease) both; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.chip { display: inline-flex; align-items: center; padding: var(--s1) var(--s3); border-radius: 999px; background: var(--accent-soft); color: var(--accent-2);
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.chip:empty { display: none; }
.banner { margin-top: var(--s3); padding: var(--s3); border-radius: var(--r-md); background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: var(--warn); font-size: var(--fs-sm); }
.note { margin: var(--s3) 0 0; padding: var(--s3); border-left: 3px solid var(--accent); background: var(--surface-3); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); font-size: var(--fs-sm); }
.note:empty { display: none; }

/* ===== Exercise list ===== */
.exercises { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.exercises li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); min-height: 56px; background: var(--surface-3); border-radius: var(--r-md); animation: fadeUp .35s var(--ease) both; }
.ex-idx { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.ex-name { flex: 1; min-height: 44px; background: none; border: 0; padding: 0; color: var(--text); font: 600 var(--fs-md)/1.3 var(--font); text-align: left; cursor: pointer; }
.ex-name::after { content: " ▶"; color: var(--accent); font-size: .7em; vertical-align: middle; }
.ex-meta { color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }

/* ===== Buttons ===== */
.btn { appearance: none; border: 0; border-radius: var(--r-md); min-height: 52px; padding: 0 var(--s4); font: 700 var(--fs-md) var(--font); color: var(--text); cursor: pointer;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(52,224,216,.35); }
.btn.ghost { background: var(--surface-3); border: 1px solid var(--line-strong); }
.btn.full { width: 100%; }
.actions { display: flex; gap: var(--s2); margin-top: var(--s4); }
.actions .primary { flex: 1.6; } .actions .ghost { flex: 1; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.25rem; cursor: pointer; transition: transform .12s var(--ease); }
.icon-btn:active { transform: scale(.92); }
.status { margin: var(--s3) 0 0; min-height: 1.2em; font-size: var(--fs-sm); color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Up next ===== */
.upnext { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.upnext button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 60px; padding: var(--s3);
  background: var(--surface-3); border: 1px solid transparent; border-radius: var(--r-md); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .12s var(--ease); }
.upnext button:active { transform: scale(.98); border-color: var(--line-strong); }
.upnext .day { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.upnext .ttl { font-weight: 600; }
.upnext .cnt { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }

/* ===== Log view ===== */
.log-top { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.log-title { flex: 1; min-width: 0; }
.log-title h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elapsed { padding: var(--s2) var(--s3); border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-sm); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .4s var(--ease); }
.ex-block { margin-top: var(--s4); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .3s; animation: fadeUp .35s var(--ease) both; }
.ex-block.done { border-color: rgba(52,211,153,.45); }
.ex-block-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.ex-block-head h4 { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.target { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; margin-top: 2px; }
.demo-link { flex: none; min-height: 36px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font: 600 var(--fs-xs) var(--font); cursor: pointer; }
.set-head, .set-row { display: grid; grid-template-columns: 28px 1fr 1fr 48px 28px; gap: var(--s2); align-items: center; }
.set-head { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 0 0 var(--s1); }
.set-row { margin: var(--s2) 0; transition: opacity .2s; }
.set-row .n { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); text-align: center; }
.set-row input { width: 100%; min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 var(--fs-md) var(--font); text-align: center; transition: border-color .2s; }
.set-row input:focus { outline: none; border-color: var(--accent); }
.check { width: 48px; height: 48px; border-radius: var(--r-sm); border: 2px solid var(--line-strong); background: transparent; color: transparent; font-size: 1.2rem; font-weight: 800; cursor: pointer; transition: all .2s var(--ease); }
.set-row.done .check { background: var(--good); border-color: var(--good); color: #052e1f; transform: scale(1.04); }
.set-row.done input { color: var(--good); border-color: rgba(52,211,153,.35); }
.rm { width: 28px; height: 44px; background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; }
.add-set { margin-top: var(--s1); min-height: 40px; background: none; border: 0; color: var(--accent); font: 600 var(--fs-sm) var(--font); cursor: pointer; }
.field { display: block; margin: var(--s5) 0 var(--s4); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.field textarea { display: block; width: 100%; margin-top: var(--s2); padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 400 var(--fs-md)/1.4 var(--font); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--accent); }

/* ===== Rest timer sheet ===== */
.timer-sheet { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 0 var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); animation: slideUp .35s var(--ease); }
.timer-sheet[hidden] { display: none; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.timer-inner { max-width: 520px; margin: 0 auto; padding: var(--s5) var(--s4) var(--s4); text-align: center; background: rgba(20,23,28,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
.ring-wrap { position: relative; width: 200px; height: 200px; margin: var(--s2) auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; transition: stroke .3s; filter: drop-shadow(0 0 8px rgba(52,224,216,.5)); }
.timer-sheet.done .ring-fg { stroke: var(--good); filter: drop-shadow(0 0 8px rgba(52,211,153,.6)); }
.timer-sheet.paused .ring-time { opacity: .5; }
.ring-time { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; letter-spacing: -.03em; transition: opacity .2s; }
.timer-row { display: flex; gap: var(--s2); margin: var(--s3) 0; }
.chip-btn { flex: 1; min-height: 48px; background: var(--surface-3); border: 1px solid var(--line); font-size: var(--fs-sm); }
.presets .chip-btn { min-height: 40px; color: var(--text-2); font-weight: 600; }

/* ===== Modals ===== */
dialog.sheet { width: min(94vw, 520px); max-height: 88vh; overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--surface); color: var(--text); padding: var(--s4); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
dialog.sheet[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(4,5,7,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.demo-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(80% 80% at 50% 40%, var(--surface-3), var(--bg)); border: 1px solid var(--line); }
.demo-stage canvas, .demo-stage video { display: block; width: 100%; aspect-ratio: 200/145; object-fit: contain; }
.cues { list-style: none; padding: 0; margin: var(--s4) 0 var(--s2); display: grid; gap: var(--s2); }
.cues li { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.cues li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); margin: var(--s2) 0 var(--s4); }
.scale button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-3); color: var(--text); font: 800 var(--fs-lg) var(--font); cursor: pointer; transition: all .15s var(--ease); }
.scale button small { font-size: .6rem; font-weight: 600; color: var(--muted); }
.scale button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.scale button.on small { color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0; }
.chips button { min-height: 40px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--line); background: var(--surface-3); color: var(--text-2); font: 600 var(--fs-sm) var(--font); cursor: pointer; transition: all .15s var(--ease); }
.chips button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Component set: gym buttons ===== */
.btn.primary { position: relative; overflow: hidden; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  background: linear-gradient(135deg, #9AF6F0 0%, var(--accent) 45%, #1FC7BF 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 8px 24px rgba(52,224,216,.40), 0 0 32px rgba(52,224,216,.25); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 50%); pointer-events: none; }
.btn.primary:active { transform: scale(.95) translateY(1px); box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset, 0 3px 10px rgba(52,224,216,.35); }
.btn.bevel, .chip-btn { border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; font-size: var(--fs-sm);
  background: linear-gradient(180deg, #2b313c, #1c2129); border: 1px solid #3d4552; border-bottom-width: 4px; border-bottom-color: #0d0f13;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn.bevel:active, .chip-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.actions .bevel { flex: 1; }
.icon-btn { background: linear-gradient(180deg, #2b313c, #1a1e25); border: 1px solid #3d4552; box-shadow: 0 2px 0 #0d0f13; }
.help-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -4px 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-2); font: 800 var(--fs-md) var(--font);
  box-shadow: 0 0 12px rgba(52,224,216,.25); transition: transform .12s var(--ease), background .2s; }
.help-btn:active { transform: scale(.88); background: var(--accent); color: var(--accent-ink); }
.help-btn:hover, .btn.primary:hover { filter: brightness(.95) saturate(1.1); }
.ex-name::after { content: none; }
.ex-block-head .help-btn { margin: 0; }

/* white highlights / clean edges */
.card { border-color: rgba(255,255,255,.08); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 8px 24px rgba(0,0,0,.35); }
.card::before { content:none; }
.session { border-top: 2px solid var(--accent); }
.btn.primary { color: var(--accent-ink); }
.upnext button:hover, .upnext button:active { border-color: var(--accent); }
.chips button.on { color: #FFFFFF; }

.set-row { grid-template-areas: none; }
.set-row .pace { grid-column: 2 / 4; margin-top: -4px; font-size: var(--fs-xs); color: var(--accent); font-weight: 700; text-align: center; }
.set-row .pace:empty { display: none; }

/* ===== v3: last time, suggestions, RPE, summary, history, plates, week ===== */
.lasttime { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-2); font-weight: 500; }
.suggest { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--accent); font-weight: 700; }
.head-tools { display: flex; gap: var(--s2); flex: none; }
.plates-btn { font-size: .95rem; }
.row-extra { grid-column: 2 / 5; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-top: -2px; }
.row-extra .pace { grid-column: auto; margin: 0; text-align: left; }
.rpe-l { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.rpe-l input { width: 56px; min-height: 32px; padding: 0 6px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 var(--fs-sm) var(--font); text-align: center; }
.rpe-l input:focus { outline: none; border-color: var(--accent); }
.scale.ten { grid-template-columns: repeat(5, 1fr); }
.scale.ten button { min-height: 52px; font-size: var(--fs-md); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s2) 0 var(--s4); }
.summary-grid > div { display: flex; flex-direction: column; gap: 2px; padding: var(--s3); background: var(--surface-3); border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.06); }
.summary-grid b { font-size: var(--fs-lg); }
.pr-burst { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-lg); border: 1px solid var(--accent); background: radial-gradient(120% 120% at 0% 0%, rgba(52,224,216,.22), rgba(52,224,216,.04)); box-shadow: 0 0 24px rgba(52,224,216,.25); animation: pop .5s var(--ease); }
.pr-burst ul { margin: var(--s1) 0 0; padding-left: 18px; font-weight: 600; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; animation: fall var(--d) linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(var(--r)); opacity: .2; } }
.chart-wrap { margin: var(--s2) 0 var(--s3); padding: var(--s2); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.chart-wrap canvas { display: block; width: 100%; }
#demo-history { margin-top: var(--s2); }
.big-input { display: block; width: 100%; margin-top: var(--s2); min-height: 52px; padding: 0 var(--s3); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 700 var(--fs-lg) var(--font); }
.big-input:focus { outline: none; border-color: var(--accent); }
.plates { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s2); }
.plate { display: grid; place-items: center; min-width: 44px; height: 64px; padding: 0 6px; border-radius: 6px; font-weight: 800; font-size: var(--fs-sm); color: #04201F; background: var(--accent); box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.plate.p25 { height: 84px; } .plate.p20 { height: 78px; background: #7BEFE8; } .plate.p15 { height: 70px; background: #fff; }
.plate.p10 { height: 60px; background: #c9d3dc; } .plate.p5, .plate.p2_5, .plate.p1_25 { height: 44px; background: #8a96a3; color: #fff; min-width: 36px; }
.week-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 48px; padding: 0; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.week-headline { display: block; font-weight: 700; font-size: var(--fs-md); }
.chev { font-size: 1.5rem; color: var(--accent); transition: transform .25s var(--ease); }
#week-card.open .chev { transform: rotate(90deg); }
.week-body { margin-top: var(--s3); animation: fadeUp .3s var(--ease); }

/* ===== Compact docked rest timer ===== */
body.timer-on { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
body.timer-on.timer-big { padding-bottom: calc(480px + env(safe-area-inset-bottom)); }
.timer-sheet .timer-inner { display: none; position: relative; }
.timer-sheet.expanded .timer-inner { display: block; }
.timer-sheet.expanded .timer-bar { display: none; }
.timer-bar { max-width: 520px; margin: 0 auto; height: 68px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 12px; cursor: pointer;
  background: rgba(20,23,28,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 -6px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(52,224,216,.12) inset; }
.mini-ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.mini-ring .ring-bg, .mini-ring .ring-fg { stroke-width: 5; }
.mini-ring .ring-fg { stroke-dasharray: 113.1; }
.timer-sheet.done .mini-ring .ring-fg { stroke: var(--good); }
.bar-text { flex: 1; min-width: 0; }
.bar-time { font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.timer-sheet.paused .bar-time { opacity: .5; }
.bar-next { font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-skip { flex: none; min-height: 44px; padding: 0 18px; background: var(--accent); color: #062a29; font-weight: 700; border-radius: 12px; border: 0; }
.timer-collapse { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--text-2); font-size: 1.6rem; padding: 4px 10px; cursor: pointer; }
