/* Flora CEO: Workout tab + its session page and sheets (.wk-*, which live outside the view).
   Tokens and primitives come from base.css. Dark only. Green is the one action color, and anything
   filled with it carries --on-green. Hairlines, thin rings, tabular numbers, tiny tracked caps. */

/* tiny caps, the app's labels */
.wk-k { font: 600 10.5px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
/* the one faint glow: a checked thing */
.wk-chip-ck, .wk-dot-ck { box-shadow: var(--glow); }

/* =========================================================
   Tab
   ========================================================= */
/* ---------- today's workout: the black card, the one hero moment ---------- */
.wk-hero { margin-top: 14px; padding: 16px 22px 22px; }
.wk-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.wk-kicker { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.wk-kicker .ic { width: 14px; height: 14px; stroke-width: 2.6; color: var(--green); }
.wk-live { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.wk-hero-tool {
  width: 44px; height: 44px; margin: -2px -12px -2px 0; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); transition: background-color .2s, transform .16s var(--ease);
}
.wk-hero-tool .ic { width: 20px; height: 20px; stroke-width: 1.6; }
.wk-hero-tool:active { background: var(--fill); transform: scale(.92); }
.wk-hero-name { margin-top: 2px; font: 400 46px/1.02 var(--font-display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.wk-hero-focus { margin-top: 4px; font: italic 400 23px/1.18 var(--font-display); color: var(--ink-2); text-wrap: balance; }
.wk-hero-meta { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk-hero-actions { display: flex; margin-top: 20px; }
.wk-hero-actions .btn { flex: 1; min-width: 0; }
.wk-btn-slab { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.wk-btn-slab:active { background: var(--fill); }
.wk-btn-slab .ic:last-child:not(:first-child) { margin-right: -4px; }
.wk-hero-link { display: block; width: 100%; min-height: 44px; margin: 4px 0 -12px; font: 500 13.5px/1 var(--font-ui); color: var(--ink-2); }
.wk-hero-link:active { color: var(--ink); }
.wk-hero-prog { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.wk-hero-prog .bar { flex: 1; height: 2px; }
.wk-hero-prog .bar > i { background: var(--green); }
.wk-hero-prog .num { font: 500 13px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.wk-hero-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-hero-stats > div { min-width: 0; padding: 2px 6px; text-align: center; }
.wk-hero-stats > div + div { border-left: 1px solid var(--line); }
.wk-hero-stats b { display: block; font: 400 30px/1.05 var(--font-display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-hero-stats span { display: block; margin-top: 6px; font: 600 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* ---------- Sunday: the calm card ---------- */
.wk-restcard { margin-top: 14px; padding: 20px 22px 22px; }
.wk-rest-title { margin-top: 8px; font: 400 48px/1.02 var(--font-display); letter-spacing: -.012em; }
.wk-rest-sub { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.wk-next { width: 100%; margin-top: 18px; padding: 14px 12px 14px 16px; border-radius: var(--r-md); display: flex; align-items: center; gap: 12px; text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, transform .16s var(--ease); }
.wk-next:active { background: var(--fill); transform: scale(.985); }
.wk-next > .ic { color: var(--ink-3); }
.wk-next-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk-next-t { margin-top: 7px; font: 400 27px/1.08 var(--font-display); }
.wk-next-s { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- this week ---------- */
.wk-weekcard { padding: 14px 12px 0; overflow: hidden; }
.wk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wk-chip {
  position: relative; min-width: 0; height: 84px; padding: 12px 0 11px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: transform .18s var(--ease);
}
button.wk-chip:active { transform: scale(.94); }
.wk-chip-l { font: 600 9.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.wk-chip-n { height: 24px; display: grid; place-items: center; }
.wk-chip-n b { font: 400 25px/1 var(--font-display); color: inherit; font-variant-numeric: tabular-nums; }
.wk-chip-ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--on-green); }
.wk-chip-ck .ic { width: 12px; height: 12px; stroke-width: 3; }
.wk-chip-t { max-width: 100%; padding: 0 1px; font: 500 10px/1.1 var(--font-ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.wk-chip.rest { box-shadow: none; }
.wk-chip.rest .wk-chip-n b, .wk-chip.rest .wk-chip-t { color: var(--ink-3); }
.wk-chip.past .wk-chip-n b { color: var(--ink-2); }
.wk-chip.past .wk-chip-t { color: var(--ink-3); }
.wk-chip.today { box-shadow: inset 0 0 0 1px var(--green); }
.wk-chip.today .wk-chip-l, .wk-chip.today .wk-chip-t { color: var(--green); }
.wk-chip.today .wk-chip-n b { color: var(--ink); }
.wk-chip.live::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.wk-bonus { display: flex; align-items: center; gap: 12px; margin: 14px -12px 0; padding: 13px 18px 14px; border-top: 1px solid var(--line); }
.wk-segs { display: grid; grid-template-columns: repeat(6, 11px); gap: 3px; flex: none; }
.wk-segs i { height: 2px; border-radius: 99px; background: var(--line-2); }
.wk-segs i.on { background: var(--green); }
.wk-bonus-t { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); text-wrap: pretty; }
.wk-bonus-t b { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.wk-bonus.got .wk-bonus-t { color: var(--ink); }

/* ---------- program + history rows ---------- */
.wk-prog .row, .wk-hist .row { width: 100%; text-align: left; transition: background-color .2s; }
button.wk-prow:active, .wk-hist button.row:active, .wk-dv-row:active, .wk-ed-swap:active, .wk-drow:active { background: var(--fill); }
.wk-prow { min-height: 70px; padding: 11px 14px 11px 18px; }
.wk-prow-d { flex: none; width: 34px; font: 600 10.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wk-prow.is-today .wk-prow-d { color: var(--green); }
.wk-prow-t { display: block; overflow-wrap: anywhere; font: 400 24px/1.1 var(--font-display); color: var(--ink); text-wrap: balance; }
.wk-prow .row-sub, .wk-hrow .row-sub { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; font-variant-numeric: tabular-nums; }
.wk-prow.is-rest .wk-prow-t { color: var(--ink-2); }
.wk-prow .row-end { gap: 8px; }
.wk-prow .row-end > .ic, .wk-hrow .row-end > .ic { width: 17px; height: 17px; color: var(--ink-3); }
.wk-dot-ck { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--on-green); }
.wk-dot-ck .ic { width: 12px; height: 12px; stroke-width: 3; }
.wk-hrow { min-height: 72px; padding: 11px 14px; }
.wk-date { flex: none; width: 46px; height: 50px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.wk-date span { font: 600 9.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.wk-date b { font: 400 24px/.9 var(--font-display); font-variant-numeric: tabular-nums; }
.wk-empty { padding: 24px 18px; }

/* =========================================================
   Session page (full-screen sheet)
   ========================================================= */
.wk-aura { position: absolute; }
.wk-aura i:nth-child(n) { animation: none; will-change: auto; }
.wk-session .sheet-body { position: relative; z-index: 1; padding: 0 var(--page-x) calc(var(--safe-b) + 112px); scroll-padding-top: 16px; scroll-padding-bottom: 120px; }
.wk-shead { position: relative; z-index: 2; flex: none; padding: calc(var(--safe-t) + 6px) 12px 0; }
.wk-shead-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; min-height: 56px; }
.wk-close { width: 44px; height: 44px; }
.wk-close .ic { width: 20px; height: 20px; }
.wk-shead-mid { min-width: 0; text-align: center; }
.wk-shead-time { font: 400 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wk-shead-prog { margin-top: 4px; font: 500 12px/1.2 var(--font-ui); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-finish { justify-self: end; height: 44px; padding: 0 18px; font-size: 15px; }
.wk-shead-bar { height: 2px; margin: 8px -12px 0; background: var(--line); }
.wk-shead-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--green); box-shadow: var(--glow); transition: width .6s var(--ease); }

.wk-intro { padding: 18px 4px 2px; }
.wk-intro-t { margin-top: 8px; font: 400 48px/1.02 var(--font-display); letter-spacing: -.012em; text-wrap: balance; }
.wk-intro-f { margin-top: 4px; font: italic 400 23px/1.18 var(--font-display); color: var(--green); text-wrap: balance; }
.wk-intro-m { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the cardio on both ends: one row, a check, the calories */
.card.wk-cardio {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 16px 10px 16px 18px; text-align: left;
  transition: background-color .25s, border-color .25s, box-shadow .25s, transform .16s var(--ease);
}
.card.wk-cardio:active { transform: scale(.99); }
.card.wk-cardio.on { background: color-mix(in srgb, var(--green) 7%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.wk-cardio-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk-cardio-v { margin-top: 8px; font-size: 14px; line-height: 1; color: var(--ink-2); }
.wk-cardio-v b { margin-right: 2px; font: 400 40px/.9 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-cardio-s { margin-top: 7px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }

/* recovery: three checks */
.wk-rc-list { margin-top: 2px; }
.card.wk-rc { margin-top: 12px; padding: 0; overflow: hidden; }
.wk-rc.on { background: color-mix(in srgb, var(--green) 7%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.wk-rc-head { width: 100%; min-height: 80px; display: flex; align-items: center; gap: 10px; padding: 15px 10px 15px 18px; text-align: left; }
.wk-rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk-rc-t { font: 400 27px/1.08 var(--font-display); }
.wk-rc-s { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.wk-cd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.wk-rc.on .wk-cd { display: none; }
.wk-cd-time { font: 400 56px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wk-cd.running .wk-cd-time { color: var(--green); }
.wk-cd-btns { display: flex; gap: 8px; flex: none; }
.wk-cd-btn { height: 44px; padding: 0 18px; font-size: 14.5px; }
.wk-cd-btn svg { width: 15px; height: 15px; }

/* exercise card */
.card.wk-ex { margin-top: 12px; padding: 16px 16px 8px; transition: border-color .3s, box-shadow .3s; }
.wk-ex-head { display: flex; align-items: flex-start; gap: 12px; }
.wk-badge { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; margin-top: 1px; }
.wk-badge .ring { position: absolute; inset: 0; }
.wk-badge b { position: relative; font: 400 19px/1 var(--font-display); color: var(--ink); }
.wk-badge b { transition: opacity .2s; }
.wk-badge-ck { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); opacity: 0; transition: opacity .25s var(--ease); }
.wk-badge-ck .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.wk-ex.complete .wk-badge b { opacity: 0; }
.wk-ex.complete .wk-badge-ck { opacity: 1; }
.card.wk-ex.complete { border-color: color-mix(in srgb, var(--green) 38%, transparent); }
.wk-ex-main { flex: 1; min-width: 0; padding-top: 1px; }
.wk-ex-name { display: inline-block; max-width: 100%; text-align: left; font: 600 17px/1.24 var(--font-ui); letter-spacing: -.012em; color: var(--ink); overflow-wrap: anywhere; }
.wk-nw { white-space: nowrap; }
.wk-ex-name .ic { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; color: var(--ink-3); stroke-width: 2.4; }
.wk-ex-name:active { opacity: .6; }
.wk-ex-mus { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.wk-tool { width: 44px; height: 44px; margin: -6px -8px 0 0; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background-color .2s, color .2s; }
.wk-tool .ic { width: 20px; height: 20px; stroke-width: 1.6; }
.wk-tool:active, .wk-tool[aria-expanded="true"] { color: var(--green); }

.wk-cue { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.wk-cue > div { min-height: 0; overflow: hidden; }
.wk-ex.cue-open .wk-cue { grid-template-rows: 1fr; }
.wk-cue-in { margin-top: 12px; padding: 13px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.wk-cue-in p { font-size: 14.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.wk-alt { margin-top: 8px; color: var(--ink-2); font-size: 13.5px !important; }
.wk-cue-in .wk-alt { color: var(--ink-2); }
.wk-cue-edit { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 2px 0 -10px; font: 600 13.5px/1 var(--font-ui); color: var(--green); }
.wk-cue-edit .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.wk-cue-edit:active { opacity: .6; }

.wk-rx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin-top: 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk-rx b { font-weight: 600; color: var(--ink); }
.wk-rx i { font-style: normal; color: var(--ink-3); }

/* coach panel: last time + the add-weight nudge */
.wk-coach { margin-top: 12px; padding: 12px 12px 12px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 9px; }
.wk-last { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.wk-last-v { grid-column: 1 / -1; font: 500 16px/1.25 var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-last-d { font-size: 12px; color: var(--ink-3); }
.wk-coach-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.wk-try {
  position: relative; height: 36px; padding: 0 15px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 14px/1 var(--font-ui); color: var(--on-green); background: var(--green); font-variant-numeric: tabular-nums; transition: transform .16s var(--ease), background-color .2s, color .2s;
}
.wk-try .ic { width: 16px; height: 16px; }
.wk-try::after { content: ""; position: absolute; inset: -4px 0; }
.wk-try:active { transform: scale(.95); }
.wk-try.applied { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.wk-coach-t { font-size: 13px; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.wk-coach-goal { color: var(--ink); font-weight: 500; }

/* set grid */
.wk-grid { margin-top: 12px; }
.wk-grid-h, .wk-set { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 46px; gap: 8px; align-items: center; }
.wk-grid-h { padding: 0 4px 7px; font: 600 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wk-grid-h > span { text-align: center; white-space: nowrap; }
.wk-grid-h .ic { width: 13px; height: 13px; margin: 0 auto; stroke-width: 2.4; }
.wk-set { padding: 4px; border-radius: 16px; transition: background-color .3s var(--ease); }
.wk-set + .wk-set { margin-top: 2px; }
.wk-set-n { text-align: center; font: 500 15px/1 var(--font-ui); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .3s; }
.wk-in {
  width: 100%; min-width: 0; height: 46px; padding: 0 6px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; color: var(--ink); caret-color: var(--green);
  text-align: center; font: 500 18px/1 var(--font-ui); font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none; outline: none;
  transition: background-color .25s, border-color .2s;
}
.wk-in::placeholder { color: var(--ink-3); opacity: 1; font-weight: 400; }
.wk-in:focus { border-color: var(--green); }
.wk-in.shake { animation: wk-shake .42s var(--ease); border-color: var(--coral); }
.wk-in.flash { animation: wk-flash .7s var(--ease); }
.wk-check { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.wk-check .check { width: 30px; height: 30px; }
.wk-check:active .check { transform: scale(.9); }
.wk-check .check .ic, .wk-d-list .check .ic { stroke-width: 2.8; }
.wk-set.done { background: color-mix(in srgb, var(--green) 7%, transparent); }
.wk-set.done .wk-set-n { color: var(--green); }
.wk-set.done .wk-in:not(:focus) { border-color: transparent; }
.wk-set.just .check { animation: wk-pop .42s var(--spring); }

.wk-set-actions { display: flex; justify-content: space-between; margin: 4px -6px 0; }
.wk-mini { height: 44px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font: 500 13.5px/1 var(--font-ui); color: var(--green); transition: background-color .2s; }
.wk-mini .ic { width: 16px; height: 16px; stroke-width: 2; }
.wk-mini.quiet { color: var(--ink-3); }
.wk-mini:active { background: var(--fill); }
.wk-mini[disabled] { opacity: .4; pointer-events: none; }

.wk-s-end { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.wk-commit { height: 56px; font-size: 17px; }
.wk-danger { height: 48px; background: transparent; color: var(--coral-deep); font-size: 15px; font-weight: 500; }
.wk-danger .ic { width: 17px; height: 17px; }
.wk-danger:active { background: var(--fill); }
.wk-quiet { height: 48px; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.wk-quiet:active { background: var(--fill); }

/* rest timer pill: opaque, it overlaps the page */
.wk-rest {
  position: absolute; z-index: 6; left: 50%; bottom: calc(var(--safe-b) + 16px);
  width: max-content; max-width: calc(100% - 20px);
  transform: translate(-50%, calc(100% + 48px)); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .25s var(--ease);
}
.wk-rest.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.wk-rest-run { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px; background: var(--solid); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.wk-rest.up .wk-rest-run, .wk-rest:not(.up) .wk-rest-up { display: none; }
.wk-rest-ring { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--green); }
.wk-rest-ring .ring { position: absolute; inset: 0; }
.wk-rest-ring .ring-fill { transition: stroke-dashoffset .3s linear, stroke-opacity .2s; }
.wk-rest-ring .ic { width: 17px; height: 17px; stroke-width: 1.6; }
.wk-rest-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 62px; padding: 0 4px 0 3px; }
.wk-rest-time { margin-top: 3px; font: 400 29px/1 var(--font-display); font-variant-numeric: tabular-nums; transition: color .3s; }
.wk-rest.low .wk-rest-time { color: var(--green); }
.wk-rest-btn { height: 44px; min-width: 48px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 500 14.5px/1 var(--font-ui); font-variant-numeric: tabular-nums; transition: transform .15s var(--ease), background-color .2s; }
.wk-rest-btn:active { transform: scale(.93); background: var(--fill); }
.wk-rest-btn.skip { padding: 0 16px; box-shadow: none; background: var(--fill-2); font-weight: 600; }
.wk-rest-up { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px 0 20px; border-radius: 999px; background: var(--green); color: var(--on-green); font: 600 16px/1 var(--font-ui); white-space: nowrap; box-shadow: var(--shadow-2); }
.wk-rest-up .ic { width: 19px; height: 19px; }

/* =========================================================
   Sheets
   ========================================================= */
.wk-sheet .sheet-body { padding-bottom: 30px; }
.wk-sheet .sheet-title { overflow-wrap: anywhere; }
.wk-sheet .row-title, .wk-sheet .row-sub { display: block; overflow-wrap: anywhere; }
.wk-sheet .row-sub { line-height: 1.35; font-variant-numeric: tabular-nums; text-wrap: balance; }
.wk-sheet .row-end > .ic { width: 17px; height: 17px; color: var(--ink-3); }

/* the day's view */
.wk-edit-toggle { min-width: 44px; justify-content: center; font-size: 15px; }
.wk-day .sheet-title { text-wrap: balance; }
.wk-dv-focus { margin-top: -2px; font: italic 400 23px/1.18 var(--font-display); color: var(--green); text-wrap: balance; }
.wk-dv-facts { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-wrap: balance; font-variant-numeric: tabular-nums; }
.wk-dv-list { margin-top: 14px; }
.wk-dv-row { width: 100%; text-align: left; min-height: 62px; padding: 10px 16px 10px 12px; transition: background-color .2s; }
div.wk-dv-row:active { background: none; }
.wk-dv-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 400 18px/1 var(--font-display); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.wk-dv-n .ic { width: 15px; height: 15px; stroke-width: 1.6; color: var(--green); }
.wk-dv-rx { flex: none; font: 500 15px/1.1 var(--font-ui); text-align: right; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-dv-rx small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.wk-dv-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 4px 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.wk-dv-note .ic { width: 15px; height: 15px; margin-top: 1.5px; stroke-width: 1.6; color: var(--green); }

/* edit mode */
.wk-edrow { min-height: 62px; padding: 0 6px 0 0; gap: 0; }
.wk-edrow-main { flex: 1; min-width: 0; min-height: 62px; padding: 10px 8px 10px 16px; text-align: left; overflow-wrap: anywhere; }
.wk-edrow-main:active { opacity: .6; }
.wk-move { width: 42px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); }
.wk-move .ic { width: 18px; height: 18px; stroke-width: 1.6; }
.wk-move:active { background: var(--fill); }
.wk-move[disabled] { color: var(--line-2); pointer-events: none; }
.wk-edadd { width: 100%; min-height: 54px; justify-content: center; gap: 8px; font: 600 14.5px/1 var(--font-ui); color: var(--green); }
.wk-edadd .ic { width: 17px; height: 17px; }
.wk-edadd:active { background: var(--fill); }
.wk-day .wk-quiet { width: 100%; margin-top: 10px; }

/* the exercise editor */
.wk-ed-first { margin-top: 2px; }
.wk-ed-hint { margin: 8px 4px 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.wk-step-row { min-height: 58px; padding: 7px 10px 7px 16px; }
.wk-step { display: inline-flex; align-items: center; flex: none; }
.wk-step-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .15s var(--ease), background-color .2s; }
.wk-step-btn .ic { width: 17px; height: 17px; stroke-width: 1.8; }
.wk-step-btn:active { transform: scale(.92); background: var(--fill); }
.wk-step b { width: 42px; text-align: center; font: 400 28px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.wk-step-row .switch { margin-right: 6px; }
.wk-ed-swaps { margin-bottom: 8px; }
.wk-ed-swap { width: 100%; text-align: left; min-height: 60px; padding: 10px 14px 10px 16px; transition: background-color .2s; }
.wk-editor .wk-danger { width: 100%; margin-top: 6px; }

/* summary */
.wk-sum { text-align: center; padding: 8px 0 0; }
.wk-sum-mark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: var(--green); box-shadow: inset 0 0 0 1px var(--green), var(--glow); }
.wk-sum-mark .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.wk-sum-t { margin: 0; }
.wk-sum-s { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); text-wrap: balance; }
.wk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.wk-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-tile { min-width: 0; padding: 14px 4px 12px; border-radius: var(--r-md); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.wk-tile b { display: block; font: 400 30px/1.05 var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-tile span { display: block; margin-top: 6px; font: 600 10px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.wk-sum-cardio { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.wk-sum-cardio .pill .ic { width: 12px; height: 12px; stroke-width: 3; }
.wk-pts { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 10px 20px 11px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--gold-line); }
.wk-pts-row { display: flex; align-items: baseline; justify-content: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--gold); }
.wk-pts-row b { font: 400 30px/1.05 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.wk-sum-note { max-width: 310px; margin: 16px auto 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.wk-bests { margin-top: 22px; text-align: left; }
.wk-bests-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.wk-best { padding: 12px 16px 12px 12px; }
.wk-best-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.wk-best-ic .ic { width: 17px; height: 17px; stroke-width: 1.6; }
.wk-best-v { flex: none; font: 500 15px/1 var(--font-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-bests-none { margin: 0 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.wk-bests-none + .wk-bests-none, .wk-bests .card + .wk-bests-none { margin-top: 10px; }
.wk-sum-next { margin-top: 18px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.wk-sum-next b { color: var(--ink); font-weight: 500; }
.wk-summary .sheet-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 6px; }
.wk-undo-link { color: var(--ink-2); font-size: 14px; font-weight: 500; }

/* exercise history */
.wk-xs-sub { margin-top: -2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; font-variant-numeric: tabular-nums; }
.card.wk-chart { margin-top: 14px; padding: 16px 16px 12px; }
.wk-chart-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wk-chart-v { flex: none; font: 400 52px/.95 var(--font-display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-chart-v small { margin-left: 4px; font: 500 14px/1 var(--font-ui); color: var(--ink-2); }
.wk-chart-d { min-width: 0; padding-bottom: 4px; text-align: right; font-size: 13px; line-height: 1.35; color: var(--ink-2); text-wrap: balance; font-variant-numeric: tabular-nums; }
.wk-chart-d .up { display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-weight: 600; }
.wk-chart-d .up .ic { width: 13px; height: 13px; }
.wk-spark { position: relative; height: 96px; margin-top: 14px; touch-action: pan-y; cursor: crosshair; border-radius: 8px; }
.wk-spark svg { width: 100%; height: 100%; overflow: visible; }
.wk-spark-base { stroke: var(--line); stroke-width: 1; }
.wk-spark-area { fill: color-mix(in srgb, var(--green) 9%, transparent); }
.wk-spark-line { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wk-spark-x { stroke: var(--ink-3); stroke-width: 1; transition: opacity .15s; }
.wk-spark-dot { fill: var(--green); stroke: var(--solid); stroke-width: 2; }
.wk-spark-ax { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.wk-xsheet .wk-tiles { margin-top: 10px; }
.wk-xs-h { margin: 24px 4px 10px; }
.wk-xrow { min-height: 60px; }
.wk-xrow .row-sub { font-size: 14px; color: var(--ink); margin-top: 3px; }
.wk-xrow-e { flex: none; text-align: right; font: 500 16px/1 var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-xrow-e small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.wk-xempty { margin-top: 14px; }
.wk-xs-form { margin-top: 26px; }
.wk-xs-form .section-title { margin: 0 4px 8px; }
.wk-xs-form p { margin: 0 4px; font-size: 15px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.wk-xs-form .wk-alt { margin-top: 8px; color: var(--ink-2); }
.wk-video { width: 100%; margin-top: 16px; text-decoration: none; }
.wk-video .ic:last-child { width: 14px; height: 14px; opacity: .6; }

/* session detail + all history */
.wk-d-when { margin-top: -2px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.wk-d-list { margin-top: 14px; }
.wk-drow { width: 100%; text-align: left; min-height: 60px; transition: background-color .2s; }
.wk-drow .row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-drow .row-sub { margin-top: 3px; color: var(--ink); font-size: 14px; }
.wk-pr { height: 19px; padding: 0 7px; font-size: 10px; letter-spacing: .08em; }
.wk-d-undo { margin-top: 14px; }
.wk-detail .wk-danger { width: 100%; margin-top: 8px; }
.wk-all-h { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 4px 10px; font: 400 27px/1.1 var(--font-display); }
.wk-all-h:first-child { margin-top: 2px; }
.wk-all-h span { font: 500 12.5px/1 var(--font-ui); color: var(--ink-3); }

/* how it works */
.wk-note { display: flex; gap: 14px; padding: 16px 0; }
.wk-note:first-child { padding-top: 6px; }
.wk-note + .wk-note { border-top: 1px solid var(--line); }
.wk-note-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--green); box-shadow: inset 0 0 0 1px var(--line-2); }
.wk-note-ic .ic { width: 17px; height: 17px; stroke-width: 1.6; }
.wk-note-main { flex: 1; min-width: 0; }
.wk-note h3 { font: 600 15.5px/1.25 var(--font-ui); }
.wk-note p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.wk-eg { margin-top: 12px; padding: 12px 14px 5px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.wk-eg .wk-k { padding-bottom: 5px; }
.wk-eg-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 9px 0; font-size: 13px; color: var(--ink-2); }
.wk-eg-row + .wk-eg-row { border-top: 1px solid var(--line); }
.wk-eg-row .num { font: 500 13.5px/1 var(--font-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-eg-row > span:last-child { white-space: nowrap; }
.wk-eg-row.on > span:last-child { color: var(--green); font-weight: 600; }

/* =========================================================
   Motion: one spring on a set check. The rest is quiet.
   ========================================================= */
@keyframes wk-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes wk-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes wk-flash { 0% { border-color: var(--green); } 100% { border-color: var(--line); } }

@media (max-width: 360px) {
  .wk-hero { padding: 14px 18px 18px; }
  .wk-hero-name, .wk-intro-t, .wk-rest-title { font-size: 42px; }
  .wk-hero-focus, .wk-intro-f { font-size: 21px; }
  .wk-hero-stats b { font-size: 26px; }
  .wk-hero-stats > div { padding: 2px 4px; }
  .wk-weekcard { padding: 12px 8px 0; }
  .wk-week { gap: 3px; }
  .wk-chip-l { letter-spacing: .08em; font-size: 9px; }
  .wk-chip-t { font-size: 9px; }
  .wk-bonus { margin: 12px -8px 0; padding: 12px 14px 13px; gap: 10px; }
  .wk-segs { grid-template-columns: repeat(6, 8px); }
  .wk-prow { padding-left: 16px; gap: 10px; }
  .wk-prow-d { width: 30px; letter-spacing: .1em; }
  .wk-prow-t { font-size: 23px; }
  .wk-day .sheet-title { font-size: 28px; }
  .card.wk-ex { padding: 14px 12px 6px; }
  .wk-ex-name { font-size: 16px; }
  .wk-grid-h, .wk-set { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 6px; }
  .wk-check { width: 44px; height: 44px; }
  .wk-shead-row { grid-template-columns: 84px minmax(0, 1fr) 84px; }
  .wk-rest-txt { min-width: 56px; }
  .wk-rest-btn { min-width: 44px; padding: 0 8px; }
  .wk-rest-btn.skip { padding: 0 12px; }
  .wk-tile b { font-size: 26px; }
  .wk-eg { padding-left: 12px; padding-right: 12px; }
  .wk-eg-row { grid-template-columns: 48px minmax(0, 1fr) auto; font-size: 12.5px; }
  .wk-eg-row .num { font-size: 13px; }
}
