/* GYMOO — workout experience: animated stick-figure demos, program view and live session player. */

/* ---------------------------------------------------------------- stick figure ("ادمک") */
.fig {
  --fig-ink: var(--text);
  --fig-hi: var(--lime);
  --fig-prop: var(--text-3);
  position: relative; width: var(--fs, 120px); aspect-ratio: 1; flex: none;
  border-radius: 18px; overflow: hidden; isolation: isolate; clip-path: inset(0 round var(--fig-r, 18px));
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(124, 92, 255, .22), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
:root[data-theme="light"] .fig { --fig-hi: #6A47FF; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .fig { --fig-hi: #6A47FF; } }
.fig::after { /* subtle floor grid */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 11px, var(--border) 11px 12px);
  mask: linear-gradient(transparent, #000); -webkit-mask: linear-gradient(transparent, #000);
}
.fig svg { width: 100%; height: 100%; overflow: visible; }
.fig .f-floor { stroke: var(--border-strong); stroke-width: 1.2; stroke-linecap: round; }
/* Jimo as the demo athlete: a cut-out puppet built from body-part pictures (see figure.js). Far limbs are
   shaded, the working muscles glow lime and a soft shadow grounds him; equipment wears the brand colours. */
/* no CSS filters on the animated parts: they would be re-rendered every frame on phones */
.fig .jm-far { opacity: .58; }
.fig .jm-shadow { fill: url(#jrShadow); }
.fig .f-ghost * { fill: none; stroke: var(--fig-hi); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .12; }
.fig .f-ghost .g-torso { stroke-width: 10; }
.fig .f-ghost circle { fill: var(--fig-hi); stroke: none; opacity: .1; }
.fig .fp, .fig .fp-thick { fill: none; stroke: var(--fig-prop); stroke-width: 1.6; stroke-linecap: round; }
.fig .fp-thick { stroke-width: 3.2; }
.fig .fp-solid { fill: var(--surface-3); stroke: var(--fig-prop); stroke-width: 1.2; }
.fig .fp-plate { fill: #161A15; stroke: #C6FF3D; stroke-width: 1.2; }
.fig .fp-hub { fill: #C6FF3D; }
.fig .fp-db { fill: #1B2019; stroke: rgba(198, 255, 61, .75); stroke-width: .6; }
.fig .fp-db-bar, .fig .fp-bar { stroke: #AEB6C6; stroke-width: 2; stroke-linecap: round; fill: none; }
.fig .fp-bar { stroke-width: 2.4; }
.fig .fp-ball { fill: #C6FF3D; opacity: .9; }
/* gym machines: frames, pads, rollers and the moving machine arm */
.fig .fp-frame { fill: none; stroke: #7C8598; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fig .fp-pad { fill: none; stroke: #3A4733; stroke-width: 4.6; stroke-linecap: round; }
.fig .fp-roller { fill: #232A21; stroke: #C6FF3D; stroke-width: .7; }
.fig .jm-lever .lv-bar { fill: none; stroke: #2E372B; stroke-width: 2.6; stroke-linecap: round; }
.fig .jm-lever .lv-pin { fill: #C6FF3D; }
.fig .jm-lever .lv-grip { fill: #1B2019; stroke: #C6FF3D; stroke-width: .5; }
:root[data-theme="light"] .fig .fp-pad { stroke: #2B3328; }
.fig .f-cable { stroke: #8E97A8; stroke-width: .8; stroke-linecap: round; }
.fig .f-cable.f-band { stroke: var(--violet-2); stroke-width: 1.8; stroke-dasharray: none; opacity: .8; }
.fig .fig-tag { position: absolute; top: 6px; inset-inline-start: 8px; font-size: 10px; font-weight: 700; color: var(--text-3); }
.fig.lg { border-radius: 24px; --fig-r: 24px; }
.fig.flat { background: transparent; border: 0; }
.fig.flat::after { display: none; }


/* ---------------------------------------------------------------- shared bits */
.wk-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.wk-eyebrow svg { width: 15px; height: 15px; color: var(--lime-text); }
@keyframes wk-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wk-sheen { 0% { transform: translateX(-120%) skewX(-18deg); } 60%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes wk-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }

/* one gradient per kind of session; reused by calendar tiles, the day hero and the legend */
.k-upper { --k1: #9479FF; --k2: #5B3FE0; }
.k-lower { --k1: #34C77B; --k2: #12884D; }
.k-full  { --k1: #2EC4B6; --k2: #157F8C; }
.k-push  { --k1: #FF9F43; --k2: #E5562B; }
.k-pull  { --k1: #4CB4FF; --k2: #2B63E0; }
.k-legs  { --k1: #A3D93B; --k2: #4E9A1D; }
.k-done  { --k1: #2FD47A; --k2: #13985A; }
.k-rest  { --k1: #4A4F9C; --k2: #23264F; }

/* ---------------------------------------------------------------- program header */
.wk-head { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 14px; animation: wk-up .35s var(--ease) both; }
.wk-head h2 { margin: 2px 0 8px; font-size: clamp(20px, 5vw, 26px); font-weight: 900; line-height: 1.4; }
.wk-progress { display: flex; align-items: center; gap: 10px; }
.wk-progress .bar { flex: 1; max-width: 220px; height: 7px; }
.wk-progress small { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }

/* ---------------------------------------------------------------- weekly calendar */
.week-cal {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86px, 1fr); gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 6px 2px 12px; max-width: 100%;
}
.week-cal::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .week-cal { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
.cal-day {
  position: relative; min-width: 0; height: 128px; padding: 10px 6px 8px; border: 0; border-radius: 22px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; scroll-snap-align: center;
  color: #fff; background: linear-gradient(160deg, var(--k1), var(--k2));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--k2) 30%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s, opacity .25s;
  animation: wk-pop .45s var(--ease) both; animation-delay: calc(var(--d, 0) * 45ms);
}
.cal-day .cd-name { font-size: 11.5px; font-weight: 700; opacity: .9; }
.cal-day .cd-num { font-size: 24px; font-weight: 900; line-height: 1.15; }
.cal-day .cd-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); margin: 2px 0; }
.cal-day .cd-ic svg { width: 16px; height: 16px; }
.cal-day .cd-lbl { font-size: 11px; font-weight: 800; line-height: 1.35; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-day.k-rest { color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.cal-day.k-rest .cd-ic { background: var(--violet-soft); color: var(--violet-2); }
.cal-day.k-moved { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.cal-day.k-moved .cd-ic { background: var(--surface-2); }
.cal-day.k-done .cd-ic { background: #fff; color: #13985A; }
.cal-day.k-done .cd-ic svg { stroke-width: 3.2; }
.cal-day.past:not(.k-done) { opacity: .6; }
.cal-day.today::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 22px; height: 4px; margin-left: -11px; border-radius: 3px; background: var(--lime); }
.cal-day.sel { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--violet), 0 14px 28px rgba(0, 0, 0, .25); opacity: 1; z-index: 1; }
.cal-day:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--lime); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 2px 16px; font-size: 12px; color: var(--text-2); }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(160deg, var(--k1), var(--k2)); }
.cal-legend .k-rest i { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* ---------------------------------------------------------------- selected day */
.day-panel { display: grid; gap: 12px; }
.dp-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 26px; padding: 20px 18px 16px;
  background: linear-gradient(155deg, var(--k1), var(--k2)); animation: wk-up .35s var(--ease) both;
}
.dp-hero::after { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; inset-inline-end: -70px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.dp-hero.k-rest::before { content: "✦"; position: absolute; z-index: -1; inset-inline-end: 34px; top: 22px; font-size: 18px; opacity: .5; text-shadow: -40px 30px 0 rgba(255, 255, 255, .5), 30px 60px 0 rgba(255, 255, 255, .35); }
.dp-when { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.dp-hero h3 { margin: 10px 0 6px; font-size: clamp(22px, 6vw, 28px); font-weight: 900; color: #fff; line-height: 1.4; }
.dp-hero p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); font-size: 14.5px; line-height: 1.9; }
.dp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.dp-pills span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; }
.dp-pills svg { width: 15px; height: 15px; }
.dp-hero .btn.primary { box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.dp-ghost { --b-bg: rgba(255, 255, 255, .16); --b-bd: rgba(255, 255, 255, .25); --b-fg: #fff; }
.dp-quick { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .92) !important; }
.dp-quick svg { width: 15px; height: 15px; }
.dp-next { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); font-size: 13.5px; }
.dp-next svg { width: 17px; height: 17px; flex: none; }
.rest-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rest-tips > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 18px; min-width: 0; background: var(--surface); border: 1px solid var(--border); animation: wk-up .4s var(--ease) both; }
.rest-tips span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-2); margin-bottom: 4px; }
.rest-tips span svg { width: 18px; height: 18px; }
.rest-tips b { font-size: 13.5px; line-height: 1.5; }
.rest-tips small { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

.dp-phase { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.dp-phase summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; }
.dp-phase summary::-webkit-details-marker { display: none; }
.dp-phase summary > svg:first-child { width: 18px; height: 18px; color: var(--warning); }
.dp-phase summary small { font-weight: 400; color: var(--text-3); margin-inline-start: 6px; }
.dp-phase .chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .25s var(--ease); }
.dp-phase[open] .chev { transform: rotate(180deg); }
.dp-phase ol { margin: 0; padding: 0 16px 12px 16px; padding-inline-start: 34px; color: var(--text-2); font-size: 14px; line-height: 1.9; }

.ex-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-step { display: flex; align-items: center; gap: 10px; padding: 8px; padding-inline-end: 4px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); animation: wk-up .4s var(--ease) both; animation-delay: calc(var(--d, 0) * 50ms); }
.es-fig { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; }
.es-fig .fig { --fs: 64px; background: var(--surface-2); border-radius: 16px; --fig-r: 16px; }
.es-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: inherit; text-align: start; cursor: pointer; font: inherit; }
.es-main b { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.es-rx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--text-3); }
.es-rx em { font-style: normal; font-weight: 800; font-size: 13px; padding: 2px 9px; border-radius: 9px; background: var(--lime-soft); color: var(--lime-text); }

.wk-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.wk-links a, .wk-links button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none !important; }
.wk-links svg { width: 20px; height: 20px; color: var(--violet-2); }
.about-plan h4 { margin: 14px 0 8px; font-size: 15px; }
.about-list { margin: 10px 0; padding-inline-start: 20px; color: var(--text-2); line-height: 1.9; font-size: 14px; }
.about-list.warn { color: var(--warning); }
.cov-list { display: grid; gap: 8px; }
.cov-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font-size: 13px; }
.cov-row small { color: var(--text-3); text-align: end; }
.alt .fig { --fs: 52px; background: var(--surface-2); border-radius: 12px; --fig-r: 12px; flex: none; }

/* ---------------------------------------------------------------- demo sheet & exercise page */
.demo-stage { position: relative; display: grid; place-items: center; padding: 6px 0 2px; }
.demo-fig { --fs: min(260px, 72vw) !important; }
.demo-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.demo-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-inline-end: 4px; }
.lg-hi { background: var(--lime); }
:root[data-theme="light"] .lg-hi { background: #6A47FF; }
.lg-ghost { background: var(--lime); opacity: .3; }
.demo-rx { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.demo-sheet .tips { border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.tips b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tips svg { width: 17px; height: 17px; }
.tips ol, .tips ul { margin: 0; padding-inline-start: 20px; color: var(--text-2); line-height: 1.9; font-size: 14px; }
.ok-tips { background: var(--success-soft); }
.ok-tips b { color: var(--success); }
.bad-tips { background: var(--danger-soft); }
.bad-tips b { color: var(--danger); }
.ex-media.demo-stage { background: radial-gradient(90% 80% at 50% 100%, rgba(124, 92, 255, .16), transparent), var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 14px; }
.lib-fig { background: none !important; padding: 0 !important; display: grid; place-items: center; width: auto !important; height: auto !important; align-self: center; }
.lib-fig .fig { border-radius: 14px; --fig-r: 14px; }

/* ---------------------------------------------------------------- live session player */
.session-view .ex-card { scroll-margin-top: 84px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease), opacity .3s; }
.session-view .ex-card.current { border-color: rgba(124, 92, 255, .7); box-shadow: 0 10px 34px rgba(124, 92, 255, .18), inset 0 0 0 1px rgba(124, 92, 255, .25); }
.session-view .ex-card.complete:not(.current) { opacity: .78; }
.session-view .ex-card.just-done { animation: card-done .8s var(--ease); }
@keyframes card-done { 0% { transform: scale(1); } 30% { transform: scale(1.015); box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 25%, transparent); } 100% { transform: scale(1); } }
.ex-head { align-items: center !important; gap: 10px !important; }
.ex-demo { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; flex: none; }
.ex-demo .fig { --fs: 84px; }
.ex-demo .ex-idx { position: absolute; top: -6px; inset-inline-start: -6px; margin: 0 !important; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.ex-card.current .ex-demo .fig { border-color: var(--violet); }
.ex-title h3 { margin: 0 0 3px; font-size: 16px; }
.ex-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--text-3); }
.ex-sub span { display: inline-flex; align-items: center; gap: 3px; }
.ex-sub svg { width: 13px; height: 13px; }
.ex-dots { display: flex; gap: 4px; margin-top: 7px; }
.ex-dots i { width: 18px; height: 5px; border-radius: 3px; background: var(--surface-3); transition: background .3s; }
.ex-dots i.on { background: var(--success); }
.ex-card.current .ex-dots i:not(.on):first-of-type, .ex-card.current .ex-dots i.on + i:not(.on) { background: var(--violet); animation: dot-pulse 1.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .45; } }
.ex-head-acts { display: flex; flex-direction: column; gap: 2px; align-self: flex-start; }
.set-row.pop .set-check { position: relative; }
.set-row.pop .set-check::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--success); animation: ring-out .55s ease-out forwards; }
@keyframes ring-out { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.35); } }
.rest-fig:empty { display: none; }
.rest-fig .fig { --fs: 64px; --fig-ink: var(--text); }
.rest { border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .35); }
@media (max-width: 520px) {
  .rest { flex-wrap: wrap; row-gap: 10px; }
  .rest-acts { width: 100%; max-width: none !important; flex-wrap: nowrap !important; }
  .rest-acts .btn { flex: 1; }
  .rest-acts .btn.violet { flex: 2; }
  .rest-time { font-size: 28px !important; }
}
/* effort / pain row under each exercise */
.ex-card > .row { font-size: 13px; color: var(--text-2); padding: 6px 10px !important; }
.ex-card > .row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ex-card select[data-effort] { font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; }
.ex-card input[data-pain] { width: 17px; height: 17px; accent-color: var(--danger); }
/* ---------------------------------------------------------------- workout summary */
.summary .sum-hero { position: relative; }
.summary .sum-hero::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 255, 61, .3), transparent); animation: sum-glow 2.4s ease-in-out infinite; }
@keyframes sum-glow { 50% { transform: scale(1.12); opacity: .7; } }
.summary h2 { font-size: clamp(24px, 6vw, 32px); font-weight: 900; animation: wk-up .5s var(--ease) both .1s; }
.summary .sum-stats .kpi { animation: wk-up .45s var(--ease) both; }
.summary .sum-stats .kpi:nth-child(2) { animation-delay: .08s; }
.summary .sum-stats .kpi:nth-child(3) { animation-delay: .16s; }
.sum-reel { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; text-align: center; }
.sum-reel::-webkit-scrollbar { display: none; }
.sum-ex { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); animation: wk-up .45s var(--ease) both; animation-delay: calc(var(--d) * 70ms + .25s); }
.sum-ex b { font-size: 11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.sum-ex small { font-size: 11px; font-weight: 800; color: var(--success); }
.sum-ex.skip { opacity: .5; }
.sum-ex.skip small { color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  .wk-hero::after, .wk-cta .btn.primary::after, .wk-hero-fig, .summary .sum-hero::before { animation: none; }
}

/* ---------------------------------------------------------------- liquid glass v2 (program page)
   Glass header with a weekly ring, springy calendar, a hero where Jimo already performs the first move,
   and a numbered timeline of exercises that cascades in. */
.workout-view .wk-head {
  align-items: center; padding: 16px 16px 14px; border-radius: 28px; position: relative; overflow: hidden; isolation: isolate;
  background: var(--gl-bg); border: 1px solid var(--gl-bd); box-shadow: var(--gl-rim), var(--gl-depth);
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
}
.workout-view .wk-head::before { content: ""; position: absolute; z-index: -1; inset: -60% -10% auto auto; width: 70%; height: 220%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .35), transparent), radial-gradient(closest-side at 30% 70%, rgba(198, 255, 61, .14), transparent); filter: blur(10px); animation: pr-aura 12s ease-in-out infinite alternate; }
.workout-view .wk-head h2 { margin-bottom: 0; }
.workout-view .wk-progress { display: none; }
.wk-ring { position: relative; width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.wk-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.wk-ring circle { fill: none; stroke: var(--gl-row); stroke-width: 5; }
.wk-ring circle.on { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: calc(var(--p) * 100) 100; animation: wk-ring 1.2s .2s var(--ios) both; filter: drop-shadow(0 0 6px rgba(198, 255, 61, .5)); }
@keyframes wk-ring { from { stroke-dasharray: 0 100; } }
.wk-ring b { display: grid; justify-items: center; gap: 2px; font-size: 18px; font-weight: 900; line-height: 1; }
.wk-ring.zero circle.on { opacity: 0; }
.wk-ring small { font-size: 10px; color: var(--text-3); font-weight: 700; }
.wk-menu { flex: none; border-radius: 50% !important; background: var(--gl-row) !important; }

.workout-view .week-cal { padding-top: 12px; }
.workout-view .cal-day { border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 22px -12px color-mix(in srgb, var(--k2) 80%, transparent); transition: transform .5s var(--spring), box-shadow .3s, opacity .3s; }
.workout-view .cal-day::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 45%); }
.workout-view .cal-day.k-rest, .workout-view .cal-day.k-moved { background: var(--gl-bg); box-shadow: inset 0 0 0 1px var(--gl-bd), var(--gl-rim); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); }
.workout-view .cal-day:active { transform: scale(.94); }
.workout-view .cal-day.sel { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--lime), 0 18px 30px -10px rgba(0, 0, 0, .6); }
.workout-view .cal-day.sel .cd-ic { animation: isl-pop .55s var(--spring) both; }

.workout-view .dp-hero { border-radius: 30px; padding: 20px 18px 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 24px 40px -22px color-mix(in srgb, var(--k2) 90%, #000); animation: dp-in .55s var(--ios) both; }
@keyframes dp-in { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(4px); } }
.workout-view .dp-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, .25), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(0, 0, 0, .25), transparent 70%); }
.workout-view .dp-hero::after { animation: dp-orb 9s ease-in-out infinite alternate; }
@keyframes dp-orb { to { transform: translate(-30px, 26px) scale(1.15); } }
.dp-star { position: absolute; top: 16px; inset-inline-end: 14px; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, .85); font: inherit; animation: isl-pop .7s .15s var(--spring) both; }
.dp-star .fig { --fs: 104px; border-radius: 24px; --fig-r: 24px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 24px -12px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dp-star .fig::after { display: none; }
.dp-star small { font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: rgba(0, 0, 0, .22); }
.workout-view .dp-hero:has(.dp-star) h3, .workout-view .dp-hero:has(.dp-star) .dp-pills { padding-inline-end: 118px; }
.workout-view .dp-hero:has(.dp-star) .dp-pills { min-height: 52px; align-content: flex-start; }
.dp-go { position: relative; overflow: hidden; gap: 10px; border-radius: 18px !important; }
.dp-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(120%); animation: pr-sheen 3.6s 1s ease-in-out infinite; }
.dp-play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-ink); color: var(--lime); position: relative; }
.dp-play::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--lime-ink); opacity: .5; animation: dp-pulse 1.8s ease-out infinite; }
@keyframes dp-pulse { to { transform: scale(1.6); opacity: 0; } }
.dp-play svg { width: 14px; height: 14px; }

.workout-view .dp-phase { border-radius: 22px; background: var(--gl-bg); border-color: var(--gl-bd); box-shadow: var(--gl-rim); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); }
.workout-view .ex-steps { position: relative; gap: 10px; }
.workout-view .ex-steps::before { content: ""; position: absolute; top: 30px; bottom: 30px; inset-inline-start: 13px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--lime), var(--violet) 60%, transparent); opacity: .5; transform-origin: top; animation: es-line 1s .2s var(--ios) both; }
@keyframes es-line { from { transform: scaleY(0); } }
.workout-view .ex-step { position: relative; padding: 8px; padding-inline-start: 38px; border-radius: 24px; background: var(--gl-bg); border-color: var(--gl-bd); box-shadow: var(--gl-rim), var(--gl-depth); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); animation: es-in .55s var(--ios) both; animation-delay: calc(var(--d, 0) * 60ms + .1s); transition: transform .35s var(--spring); }
.workout-view .ex-step:active { transform: scale(.98); }
@keyframes es-in { from { opacity: 0; transform: translateX(-18px) scale(.97); } }
.es-n { position: absolute; inset-inline-start: 2px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--lime-ink); background: var(--lime); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(198, 255, 61, .45); animation: isl-pop .5s var(--spring) both; animation-delay: calc(var(--d, 0) * 60ms + .3s); }
.workout-view .es-fig .fig { --fs: 68px; border-radius: 18px; --fig-r: 18px; }
.workout-view .es-rx em { border-radius: 99px; }
.workout-view .wk-links a, .workout-view .wk-links button { border-radius: 22px; background: var(--gl-bg); border-color: var(--gl-bd); box-shadow: var(--gl-rim); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); transition: transform .3s var(--spring); }
.workout-view .wk-links a:active, .workout-view .wk-links button:active { transform: scale(.95); }
.workout-view .wk-links svg { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--violet-soft); }
.workout-view .rest-tips > div { border-radius: 22px; background: var(--gl-bg); border-color: var(--gl-bd); box-shadow: var(--gl-rim); }
@media (prefers-reduced-motion: reduce) {
  .workout-view .wk-head::before, .workout-view .dp-hero::after, .dp-go::after, .dp-play::before { animation: none !important; }
}