/*
 * The animated app demos that play inside the phone frames (assets/js/demo.js).
 * Inside .dm the colours are the apps' own look (blue toolbar, pale blue ground, white cards, pink ticks,
 * orange and blue muscles). Only the step caption (.dm__cap) uses the site's palette.
 * The static screenshot or drawn screen stays underneath (.demo__fb) and is what shows without JavaScript
 * or when the visitor asks the browser for reduced motion.
 */

.demo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #d2ebfc;
}
.demo__fb {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.demo.is-live .demo__fb { visibility: hidden; }

.dm {
  --dm-b: #3283bc;
  --dm-bg: #d2ebfc;
  --dm-ink: #1c2430;
  --dm-mut: #6b7a88;
  --dm-pk: #ff4081;
  --dm-or: #f4511e;
  --dm-bl: #1e73e8;
  --dm-dlg: #1e5bc6;
  --dm-ok: #2e9d57;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: var(--dm-bg);
  color: var(--dm-ink);
  font: 400 12px/1.55 var(--font-en, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  text-align: start;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
.dm[lang="fa"] {
  font-family: var(--font-fa, "Vazir", Tahoma, sans-serif);
  line-height: 1.7;
}
.dm *,
.dm *::before,
.dm *::after { box-sizing: border-box; }
.dm b { font-weight: 700; }
.dm img { display: block; max-width: none; }

.dm__i {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}
.dm[dir="ltr"] .dm__back { transform: scaleX(-1); }

/* ------------------------------------------------------------------ screens */

.dm__scr {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: var(--dm-bg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm__scr.is-in { opacity: 1; transform: none; }
.dm__scr.is-out { opacity: 0; transform: translateY(-8px); }

.dm__sb {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  height: 26px;
  padding: 3px 18px 0;
  background: var(--dm-b);
  color: #fff;
  font: 600 10.5px/1 var(--font-en, system-ui, sans-serif);
}
.dm__sb svg { width: 44px; height: 11px; }

.dm__tb {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  background: var(--dm-b);
  color: #fff;
}
.dm__tt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.dm__ta { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.dm__ta .dm__i { width: 22px; height: 22px; }

.dm__tabs {
  flex: none;
  display: flex;
  background: var(--dm-b);
  color: #fff;
}
.dm__tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0 7px;
  font-size: 10.5px;
  opacity: 0.58;
  transition: opacity 0.25s ease;
}
.dm__tab .dm__i { width: 22px; height: 22px; }
.dm__tab::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.dm__tab.is-on { opacity: 1; font-weight: 700; }
.dm__tab.is-on::after { transform: scaleX(1); }

.dm__bd {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 10px 10px 54px;
  overflow: hidden;
}
.dm__hint {
  margin: 0 2px 8px;
  color: #3d5a73;
  font-size: 9.5px;
  line-height: 1.7;
}

.dm__card {
  position: relative;
  padding: 11px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 50, 80, 0.07);
}
.dm__card + .dm__card { margin-top: 8px; }
.dm__ct { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.dm__sm { color: var(--dm-mut); font-size: 10px; }

/* things that arrive one by one */
.dm__pop {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm__pop.is-on { opacity: 1; transform: none; }

.dm__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--dm-b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease;
}
.dm__btn--soft { background: #e7f1f8; color: #2a6a96; }
.dm__btn--sm { height: 28px; padding: 0 12px; font-size: 11px; }
.dm__btn.is-press { transform: scale(0.96); }

.dm__field {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 10px;
  background: #f1f1f1;
  color: #202a33;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}
.dm__field:empty::before,
.dm__field.is-ph::before { content: attr(data-ph); color: #9aa3ab; }
.dm__field.is-typing::after {
  content: "";
  width: 1.5px;
  height: 14px;
  margin-inline-start: 1px;
  background: var(--dm-b);
  animation: dm-blink 0.7s steps(1) infinite;
}
.dm__lab { display: block; margin: 8px 2px 3px; color: #3d5a73; font-size: 10px; }

@keyframes dm-blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------ finger, caption, sample tag */

.dm__tap {
  position: absolute;
  top: -19px;
  left: -19px;
  z-index: 60;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(25, 38, 56, 0.3);
  box-shadow: 0 3px 10px rgba(10, 20, 30, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1), opacity 0.25s ease;
}
.dm__tap.is-vis { opacity: 1; }
.dm__tap i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: scale(0.3);
  opacity: 0;
}
.dm__tap.is-down i { animation: dm-ripple 0.45s ease-out; }
@keyframes dm-ripple {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.dm__cap {
  position: absolute;
  right: 12px;
  bottom: 20px;
  left: 12px;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 18, 14, 0.88);
  color: #f4f1e8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dm__cap.is-on { opacity: 1; transform: none; }
.dm__capt { flex: 1; }
.dm__dots { display: flex; gap: 3px; flex: none; }
.dm__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 241, 232, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}
.dm__dots i.is-on { background: #c9a24d; }
.dm__dots i.is-now { background: #c9a24d; transform: scale(1.35); }

.dm__nav {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 54;
  width: 84px;
  height: 4px;
  margin-left: -42px;
  border-radius: 4px;
  background: rgba(28, 36, 48, 0.28);
}

.dm__tag {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 52;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(7, 18, 14, 0.55);
  color: #f4f1e8;
  font-size: 8.5px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ------------------------------------------------------------------ dialogs */

.dm__dim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  background: rgba(10, 22, 34, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dm__dim.is-on { opacity: 1; }
.dm__dlg {
  position: absolute;
  top: 50%;
  right: 14px;
  left: 14px;
  z-index: 31;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-46%) scale(0.94);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm__dlg.is-on { opacity: 1; transform: translateY(-50%); }
.dm__dh {
  padding: 12px 14px 11px;
  background: var(--dm-dlg);
  color: #fff;
  text-align: center;
}
.dm__dh b { display: block; font-size: 13px; }
.dm__dh small { display: block; margin-top: 2px; font-size: 9px; opacity: 0.85; }
.dm__db { padding: 10px 14px 4px; }
.dm__da {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  padding: 8px 18px 12px;
  font-size: 11px;
}
.dm__da span { color: #3b7bb0; transition: transform 0.15s ease; }
.dm__da .is-pk { color: var(--dm-pk); }
.dm__da .is-press { transform: scale(0.9); }

.dm__ck {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 25px;
  font-size: 11px;
}
.dm__box {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid #7a838b;
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dm__box svg {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 15px;
  height: 15px;
  color: #fff;
  stroke-width: 3.2;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm__ck.is-on .dm__box { border-color: var(--dm-pk); background: var(--dm-pk); }
.dm__ck.is-on .dm__box svg { opacity: 1; transform: none; }

.dm__sets { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 2px; }
.dm__sets > div { flex: 1; text-align: center; font-size: 9.5px; color: #3d5a73; }
.dm__num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 3px;
  border: 1px solid #d3d9de;
  border-radius: 8px;
  color: #1c2430;
  font-size: 16px;
  font-weight: 700;
}
.dm__num.is-bump { animation: dm-bump 0.3s ease; }
@keyframes dm-bump { 40% { transform: scale(1.12); background: #e7f1f8; } }
.dm__x { flex: none !important; width: 12px; color: #7a838b !important; font-size: 12px !important; }

/* ------------------------------------------------------------------ program lists */

.dm__empty {
  position: absolute;
  top: 38%;
  right: 24px;
  left: 24px;
  transform: translateY(-50%);
  text-align: center;
}
.dm__empty .dm__bub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #b9dbf0;
  color: #2f6f9c;
}
.dm__empty .dm__bub .dm__i { width: 30px; height: 30px; }
.dm__empty b { display: block; font-size: 12.5px; }
.dm__empty p { margin: 4px 0 0; color: #4d6a82; font-size: 10px; line-height: 1.8; }

.dm__prog { display: flex; align-items: center; gap: 8px; }
.dm__prog > b { flex: 1; font-size: 13px; }
.dm__prog .dm__i { color: #7a838b; width: 18px; height: 18px; }
.dm__wd { display: flex; gap: 4px; margin-top: 6px; }
.dm__wd span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 8px;
  background: #ececec;
  color: #6b7a88;
  font-size: 10.5px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.dm__wd span.is-on { background: #3573a8; color: #fff; }
.dm__wd span.is-press { transform: scale(0.88); }

.dm__ex {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 50, 80, 0.07);
}
.dm__ex + .dm__ex { margin-top: 7px; }
.dm__ex > div { flex: 1; min-width: 0; }
.dm__ex b { display: block; font-size: 11.5px; line-height: 1.5; }
.dm__ex small { display: block; color: #2f78ad; font-size: 9.5px; line-height: 1.4; }
.dm__ex .dm__meta { margin-top: 2px; color: #4d6a82; font-size: 10px; }
.dm__th {
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef3f8;
}
.dm__th img { width: 46px; height: 46px; }
.dm__rad {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #8c959d;
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dm__rad svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  color: #fff;
  stroke-width: 3.4;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm__ex.is-on .dm__rad { border-color: #2f6fb0; background: #2f6fb0; }
.dm__ex.is-on .dm__rad svg { opacity: 1; transform: none; }
.dm__badge {
  flex: none;
  padding: 1px 8px;
  border-radius: 99px;
  background: #e3effa;
  color: #2a6a96;
  font-size: 10px;
  font-weight: 700;
}
.dm__list { position: relative; transition: transform 0.7s ease; }
.dm__bar {
  position: absolute;
  right: 10px;
  bottom: 70px;
  left: 10px;
  z-index: 5;
}

/* ------------------------------------------------------------------ exercise */

.dm__panes { position: relative; flex: 1; min-height: 0; }
.dm__pane {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 10px 54px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s ease;
}
.dm__pane.is-on { opacity: 1; transform: none; }
.dm__pane .dm__card { height: 100%; }

.dm__frames {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.dm__frames img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dm__frames img.is-on { opacity: 1; }
.dm__name { margin-top: 10px; text-align: center; }
.dm__name b { display: block; font-size: 13px; }
.dm__name span { display: block; color: #2f78ad; font-size: 10.5px; direction: ltr; }
.dm__loop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px auto 0;
  padding: 2px 10px;
  border-radius: 99px;
  background: #e3effa;
  color: #2a6a96;
  font-size: 9.5px;
}
.dm__loop i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dm-or);
  animation: dm-pulse 1.1s ease-in-out infinite;
}
@keyframes dm-pulse { 50% { opacity: 0.25; } }

.dm__figs {
  position: relative;
  display: flex;
  direction: ltr;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.dm__fig { position: relative; width: 112px; height: 215px; }
.dm__fig img { position: absolute; top: 0; left: 0; width: 112px; height: 215px; }
.dm__fig img.ov { opacity: 0; transition: opacity 0.7s ease; }
.dm__fig img.ov.is-on { opacity: 1; }
.dm__fig img.ov.is-glow { animation: dm-glow 1.4s ease-in-out infinite; }
@keyframes dm-glow { 50% { opacity: 0.62; } }
.dm__legend {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  color: #55616c;
  font-size: 10.5px;
}
.dm__legend span { display: inline-flex; align-items: center; gap: 5px; }
.dm__legend i { width: 11px; height: 11px; border-radius: 50%; }
.dm__txt { margin: 6px 0 0; font-size: 10.8px; line-height: 2; color: #232d38; }
.dm__txt p { margin: 0 0 6px; }

/* ------------------------------------------------------------------ challenge and chart */

.dm__chal { display: flex; align-items: center; gap: 10px; }
.dm__chal .dm__bub {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dcebf6;
  color: #2f6f9c;
}
.dm__chal > div { flex: 1; min-width: 0; }
.dm__chal b { display: block; font-size: 12.5px; }
.dm__chal small { display: block; color: var(--dm-mut); font-size: 9.5px; line-height: 1.5; }
.dm__pb { height: 5px; margin: 9px 0 3px; overflow: hidden; border-radius: 5px; background: #e6edf2; }
.dm__pb i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 5px;
  background: #2f78ad;
  transition: width 0.6s ease;
}
.dm__day {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.3s ease;
}
.dm__day + .dm__day { margin-top: 6px; }
.dm__day > div { flex: 1; min-width: 0; }
.dm__day b { display: block; font-size: 12px; }
.dm__day small { display: block; color: #8aa0b2; font-size: 9.5px; }
.dm__day .dm__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2f6fb0;
  color: #fff;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm__day .dm__tick svg { width: 15px; height: 15px; stroke-width: 3.2; }
.dm__day.is-done .dm__tick { opacity: 1; transform: none; }
.dm__day.is-now { background: #b9dbf0; }
.dm__day.is-done { background: #fff; }
.dm__day.is-done small { color: #6b7a88; }
.dm__go { flex: none; }
.dm__day:not(.is-now) .dm__go { display: none; }

.dm__big { font-size: 15px; font-weight: 800; }
.dm__sum { display: flex; text-align: center; }
.dm__sum > div { flex: 1; }
.dm__sum > div + div { border-inline-start: 1px solid #e3e9ee; }
.dm__sum b { display: block; color: var(--dm-or); font-size: 15px; line-height: 1.4; direction: ltr; }
.dm__sum small { display: block; color: var(--dm-mut); font-size: 9px; }

.dm__chart { margin-top: 8px; padding-bottom: 6px; }
.dm__chart svg { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.dm__chart .ln {
  fill: none;
  stroke: var(--dm-or);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1.7s ease;
}
.dm__chart .ar { fill: rgba(244, 81, 30, 0.17); clip-path: inset(0 100% 0 0); transition: clip-path 1.7s ease; }
.dm__chart .ar.is-on { clip-path: inset(0 0 0 0); }
.dm__chart .pt {
  fill: #fff;
  stroke: var(--dm-or);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dm__chart .pt.is-on { opacity: 1; }
.dm__chart .gl { stroke: #e8edf1; stroke-width: 1; }
.dm__chart text { fill: #7a8791; font: 8px var(--font-en, sans-serif); }
.dm__chart .lb { fill: #1c2430; font-weight: 700; font-size: 9.5px; opacity: 0; transition: opacity 0.3s ease; }
.dm__chart .lb.is-on { opacity: 1; }
.dm__legt { display: flex; align-items: center; gap: 5px; color: #55616c; font-size: 9.5px; }
.dm__legt i { width: 8px; height: 8px; border-radius: 50%; background: var(--dm-or); }

.dm__pill {
  padding: 1px 10px;
  border-radius: 99px;
  background: #fde6dd;
  color: var(--dm-or);
  font-size: 10px;
  font-weight: 700;
  direction: ltr;
}
.dm__hist { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #edf1f4; font-size: 10px; color: #55616c; }
.dm__hist i { width: 7px; height: 7px; border-radius: 50%; background: var(--dm-or); }
.dm__hist span { flex: 1; direction: ltr; text-align: start; }

/* the measure rows of the growth list */
.dm__meas {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 5px 10px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 50, 80, 0.07);
  transition: transform 0.15s ease;
}
.dm__meas + .dm__meas { margin-top: 6px; }
.dm__meas::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 4px;
  background: var(--c);
}
.dm__meas .dm__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: var(--c);
}
.dm__meas .dm__ic .dm__i { width: 18px; height: 18px; }
.dm__meas > div { flex: 1; min-width: 0; }
.dm__meas b { display: block; font-size: 11.5px; line-height: 1.4; }
.dm__meas .dm__v { color: #2f78ad; font-size: 13px; font-weight: 800; line-height: 1.3; }
.dm__meas .dm__v small { color: var(--dm-mut); font-size: 9px; font-weight: 400; }
.dm__meas .dm__tr { flex: none; color: var(--c); }
.dm__meas .dm__tr .dm__i { width: 18px; height: 18px; }
.dm__meas.is-press { transform: scale(0.97); }

/* ------------------------------------------------------------------ drawer and bmi */

.dm__drw {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  z-index: 32;
  width: 78%;
  background: #eefcff;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.35);
  transform: translateX(var(--dx, -105%));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm[dir="rtl"] .dm__drw { --dx: 105%; }
.dm__drw.is-on { transform: none; }
.dm__dwh { height: 98px; padding: 34px 16px 0; background: var(--dm-b); color: #fff; font-size: 14px; font-weight: 700; }
.dm__dwi {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 16px;
  font-size: 11px;
  color: #222c36;
  transition: background 0.2s ease;
}
.dm__dwi .dm__i { width: 18px; height: 18px; color: #66737d; }
.dm__dwi.is-press { background: #cfe6f2; }

.dm__seg { display: flex; margin: 6px 0 4px; padding: 3px; border-radius: 12px; background: #eaf0f5; }
.dm__seg span {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #55616c;
  font-size: 11px;
  transition: background 0.25s ease, color 0.25s ease;
}
.dm__seg span.is-on { background: #3573a8; color: #fff; font-weight: 700; }
.dm__trio { display: flex; gap: 6px; margin-top: 4px; }
.dm__trio > div { flex: 1; text-align: center; font-size: 9.5px; color: #3d5a73; }
.dm__trio .dm__num { height: 38px; margin: 3px 0; font-size: 15px; }
.dm__trio .dm__num.is-ph { color: #c0c6cb; }

.dm__bmi { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm__bmi > div:first-child { text-align: center; }
.dm__bmi .dm__val { color: #ff8f00; font-size: 30px; font-weight: 800; line-height: 1.1; direction: ltr; }
.dm__bmi small { display: block; color: #6b7a88; font-size: 9px; }
.dm__bmi .dm__st { flex: 1; text-align: start; }
.dm__bmi .dm__st b { display: block; font-size: 12px; }
.dm__chip {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 10px;
  border-radius: 99px;
  background: #ff8f00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.dm__scale { position: relative; display: flex; gap: 0; height: 7px; margin: 14px 0 4px; border-radius: 7px; overflow: visible; direction: ltr; }
.dm__scale i { height: 100%; }
.dm__scale i:nth-child(1) { flex: 18.5; background: #42a5f5; border-radius: 7px 0 0 7px; }
.dm__scale i:nth-child(2) { flex: 6.5; background: #43a047; }
.dm__scale i:nth-child(3) { flex: 5; background: #fb8c00; }
.dm__scale i:nth-child(4) { flex: 10; background: #e53935; border-radius: 0 7px 7px 0; }
.dm__scale em {
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 15px;
  margin-left: -4.5px;
  border: 1.5px solid #6b7a88;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: left 1.3s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.dm__ticks { display: flex; direction: ltr; color: #8a96a0; font-size: 8px; }
.dm__ticks span { text-align: center; }
.dm__ticks span:nth-child(1) { flex: 18.5; }
.dm__ticks span:nth-child(2) { flex: 6.5; }
.dm__ticks span:nth-child(3) { flex: 5; color: #fb8c00; font-weight: 700; }
.dm__ticks span:nth-child(4) { flex: 10; }
.dm__kv { display: flex; align-items: center; gap: 8px; min-height: 28px; border-top: 1px solid #edf1f4; font-size: 10.5px; }
.dm__kv:first-of-type { margin-top: 8px; }
.dm__kv span { flex: 1; }
.dm__kv b {
  flex: none;
  padding: 1px 9px;
  border-radius: 8px;
  background: #e8f0f7;
  color: #2a6a96;
  font-size: 10.5px;
  direction: ltr;
}
.dm__note { margin: 6px 0 0; color: #8a96a0; font-size: 8.5px; line-height: 1.7; }

/* ------------------------------------------------------------------ coach app */

.dm__av {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dcebf6;
  color: #2f6f9c;
  font-size: 14px;
  font-weight: 700;
}
.dm__av--grey { background: #e6e6e6; color: #666; }
.dm__av--pic { overflow: hidden; background: #dcebf6; }
.dm__av--pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm__ath {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 50, 80, 0.07);
  transition: transform 0.15s ease, background 0.3s ease;
}
.dm__ath + .dm__ath { margin-top: 6px; }
.dm__ath > div { flex: 1; min-width: 0; }
.dm__ath b { display: block; font-size: 11.5px; line-height: 1.45; }
.dm__ath small { display: block; color: var(--dm-mut); font-size: 9.5px; line-height: 1.4; }
.dm__ath.is-press { transform: scale(0.97); background: #eaf4fb; }
.dm__st2 {
  flex: none;
  padding: 1px 9px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.dm__st2--ok { background: #dff3e5; color: #1f7a3d; }
.dm__st2--warn { background: #fff0cf; color: #946200; }
.dm__st2--bad { background: #fde1df; color: #b3261e; }
.dm__st2--new { background: #e3effa; color: #2a6a96; }
.dm__row2 { display: flex; gap: 8px; margin-top: 8px; }
.dm__row2 > * { flex: 1; }
.dm__sec { display: flex; align-items: center; justify-content: space-between; margin: 10px 2px 6px; font-size: 11.5px; font-weight: 700; }

.dm__sess .dm__field--name { margin-bottom: 0; font-weight: 700; }
.dm__sess + .dm__sess { margin-top: 8px; }
.dm__sess .dm__ex { margin-top: 6px; min-height: 52px; padding: 6px 8px; background: #f6fafd; box-shadow: none; }
.dm__sess .dm__th, .dm__sess .dm__th img { width: 38px; height: 38px; }
.dm__sess .dm__ex + .dm__ex { margin-top: 5px; }
.dm__foot { position: absolute; right: 10px; bottom: 70px; left: 10px; z-index: 6; display: flex; gap: 8px; }
.dm__foot > * { flex: 1; }
.dm__sent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px 40px;
  background: rgba(210, 235, 252, 0.93);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.dm__sent.is-on { opacity: 1; }
.dm__sent .dm__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--dm-ok);
  color: #fff;
  transform: scale(0.4);
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dm__sent.is-on .dm__ok { transform: none; }
.dm__sent .dm__ok svg { width: 38px; height: 38px; stroke-width: 3; }
.dm__sent b { font-size: 14px; }
.dm__sent p { margin: 0; color: #3d5a73; font-size: 10.5px; }

/* with "reduce motion" on, nothing autoplays: the visitor starts the demo with this button */
.demo__play {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 18, 14, 0.9);
  color: #f4f1e8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.demo__play svg { width: 14px; height: 14px; flex: none; fill: #c9a24d; }
.demo__play:hover { background: #0f6b52; }
.demo__play:focus-visible { outline: 2px solid #c9a24d; outline-offset: 2px; }
