/* Стили экранов: «Сегодня», тренировка, календарь, план, прогресс, ИИ. */

.boot {
  margin-top: 30vh;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}
.grid2 .btn {
  min-width: 0;
  padding: 0 var(--s3);
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.grid3 .btn {
  padding: 0 var(--s2);
  font-size: 14px;
  gap: 6px;
  min-width: 0;
}
svg.i.sm {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2px;
}
svg.i.rot {
  transform: rotate(90deg);
}
.code-block {
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  background: var(--hair);
  padding: 10px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ─── «Сегодня» ─── */
.hero {
  display: grid;
  gap: var(--s3);
}
.hero h1 {
  text-shadow: 0 0 40px var(--glow);
}
.done-hero h1 {
  font-size: 24px;
}
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  counter-reset: pl;
}
.plan-list li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s1) 0 var(--s1) 34px;
  border-bottom: 1px solid var(--hair);
  position: relative;
  counter-increment: pl;
}
.plan-list li:last-child {
  border-bottom: 0;
}
.plan-list li::before {
  content: counter(pl);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--mut);
  border: 1px solid var(--hair-2);
}
.plan-list li.ss-first::after,
.plan-list li.ss-second::after {
  content: '';
  position: absolute;
  left: 11px;
  width: 2px;
  background: var(--accent);
  opacity: 0.5;
}
.plan-list li.ss-first::after {
  top: calc(50% + 12px);
  bottom: 0;
}
.plan-list li.ss-second::after {
  top: 0;
  bottom: calc(50% + 12px);
}
.pl-name {
  font-weight: 500;
  line-height: 1.3;
  font-size: var(--fs-md);
}
.pl-w {
  text-align: right;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pl-w.new {
  color: var(--mut-2);
  font-weight: 400;
  font-size: 13px;
}
.checkin-q {
  display: grid;
  gap: 6px;
}

.quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quick .btn {
  padding: 0 var(--s2);
  min-width: 0;
}
.pl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}
.pl-btn:active {
  opacity: 0.6;
}
.list-ic.done-ic {
  background: var(--ink);
  color: var(--on-ink);
}

/* ─── тренировка ─── */
.session-head {
  display: grid;
  gap: var(--s2);
}
.session-title {
  font-size: var(--fs-xl);
}
.progress-line {
  height: 6px;
  border-radius: 6px;
  background: var(--hair);
  overflow: hidden;
}
.progress-line > div {
  height: 100%;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.6s var(--ease);
}
/* карточка 28 / отступ 12 → вложенные блоки 16 */
.ex-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3);
}
.ex-card.skipped {
  opacity: 0.6;
}
.ex-card.collapsed {
  padding: var(--s1) var(--s2);
  scroll-margin-top: 12px;
}
.ex-head {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: calc(-1 * var(--s1)) calc(-1 * var(--s1)) 0 0;
}
.ex-title {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: var(--s1) 0 0 var(--s1);
  border: 0;
  background: none;
  text-align: left;
}
.ex-title h3 {
  font-size: var(--fs-base);
  line-height: 1.3;
}
.ex-sub {
  font-size: var(--fs-sm);
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.ex-last {
  display: block;
  width: 100%;
  min-height: 0;
  margin: calc(-1 * var(--s1)) 0 0;
  padding: 0 var(--s1);
  border: 0;
  background: none;
  text-align: left;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.ex-done-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 56px;
  border: 0;
  background: none;
  padding: var(--s1) var(--s2);
  text-align: left;
}
.ex-done-name {
  display: block;
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.3;
}
.ex-done-sets {
  display: block;
  font-size: var(--fs-sm);
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}

/* вес упражнения: одна строка на всю ширину */
.stepper.load {
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  border-radius: var(--r-md);
}
.stepper.load button,
.stepper.load .val {
  height: 48px;
}
.stepper.load button {
  border-radius: var(--r-md);
}
.stepper .delta {
  margin-left: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  vertical-align: 0.35em;
}
.delta.up {
  color: var(--ok);
}
.delta.down {
  color: var(--mut);
}

/* подходы: чипы с повторами, как «20 · 19 · 19 · 17» */
.set-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.set-chip {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  height: 52px;
  padding: 0;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--hair-2);
  background: transparent;
  color: var(--mut);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), border-color 0.25s var(--ease);
}
.set-chip:active {
  transform: scale(0.94);
}
.set-chip.done {
  border: 1.5px solid transparent;
  background: var(--main-bg);
  color: var(--main-ink);
  box-shadow: 0 4px 14px var(--shade), 0 0 16px var(--glow);
}
.set-chip.sel {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.set-chip small {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.75;
}
.set-chip.add {
  border-style: solid;
  border-color: var(--hair);
  color: var(--ink-2);
  background: var(--field);
}
.set-chip.add .i {
  width: 20px;
  height: 20px;
}

/* правка выбранного подхода */
.set-editor {
  display: grid;
  gap: var(--s2);
  padding: var(--s2);
  border-radius: var(--r-md);
  background: var(--field);
  border: 1px solid var(--hair);
}
.se-head {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--s1);
  font-size: var(--fs-xs);
  color: var(--mut);
}
.se-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.se-row .stepper {
  flex: 1 1 auto;
  min-width: 0;
}
.se-w {
  flex: none;
  min-height: 48px;
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stepper.sm {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}
.stepper.sm button,
.stepper.sm .val {
  height: 48px;
}

/* итог: рекорды */
.records {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.records h3 {
  margin-bottom: var(--s1);
}
.rec-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 52px;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--hair);
}
.rec-row:last-child {
  border-bottom: 0;
}
.rec-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.rec-val {
  display: grid;
  justify-items: end;
  flex: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rec-val b {
  font-weight: 600;
  color: var(--ok);
}
.rec-val small {
  font-size: var(--fs-xs);
  color: var(--mut);
}

/* лист ⓘ: «ключ — значение», история */
.kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s2) var(--s4);
  margin: 0;
  font-size: var(--fs-md);
}
.kv dt {
  color: var(--mut);
}
.kv dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.hist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hist-row {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--hair);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.hist-row:last-child {
  border-bottom: 0;
}
.hist-date {
  flex: none;
  width: 92px;
  color: var(--mut);
  white-space: nowrap;
}
.hist-name {
  flex: 0 1 45%;
  min-width: 0;
  color: var(--mut);
}
.hist-sets {
  flex: 1 1 auto;
  min-width: 0;
}
.hist-goal {
  flex: none;
  color: var(--mut-2);
  font-size: var(--fs-xs);
}
.wt-dot.sm {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: none;
}
.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: var(--s1);
  font-size: var(--fs-md);
}

/* ─── полоска цикла ─── */
.cycle-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--s1);
}
.cycle-strip .wk {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 56px;
  padding: var(--s2) 2px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.cycle-strip .wk.past {
  opacity: 0.5;
}
.cycle-strip .wk.cur {
  border: 2px solid var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}
.cycle-strip .wk.cur::after {
  content: 'сейчас';
  position: absolute;
  bottom: -9px;
  font-size: 10px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--c);
  color: #fff;
}
.wk-n {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}
.wk-t {
  font-size: 10.5px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cycle-strip.compact .wk {
  min-height: 40px;
  padding: 4px 2px;
}
.cycle-strip.compact .wk-n {
  font-size: 13px;
}
.cycle-strip.compact .wk.cur::after {
  display: none;
}

/* ─── календарь ─── */
.cal-title {
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 450;
  min-height: 44px;
  padding: 0 10px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
}
.cal-wd {
  text-align: center;
  font-size: 11px;
  color: var(--mut);
  font-weight: 600;
  padding: 4px 0;
}
.cal-day {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-height: 52px;
  padding: 7px 0 10px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
}
.cal-day:active {
  background: var(--glass-press);
}
.cal-day.other {
  opacity: 0.38;
}
.cal-day.today {
  border-color: color-mix(in srgb, var(--ink) 70%, transparent);
  background: var(--glass-strong);
}
.cal-day.st-done,
.cal-day.st-partial {
  background: var(--field);
}
.cd-n {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* тип недели — короткая чёрточка под днём */
.cd-wt {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 12px;
  height: 3px;
  margin-left: -6px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0.9;
}
.cd-note {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mut-2);
}
.mk {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}
.mk .i {
  width: 9px;
  height: 9px;
  stroke-width: 3;
}
/* буква в кружке: центрируем по высоте заглавной, а не по строке (иначе буква выше центра) */
.mk-t {
  display: block;
  line-height: 1;
}
@supports (text-box: trim-both cap alphabetic) {
  .mk-t {
    text-box: trim-both cap alphabetic;
  }
}
@supports not (text-box: trim-both cap alphabetic) {
  .mk-t {
    transform: translateY(0.1em);
  }
}
.mk-done {
  background: var(--ink);
  color: var(--on-ink);
}
.mk-partial {
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}
.mk-active {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px var(--accent-soft);
  }
}
.mk-missed {
  border: 1.5px dashed var(--mut-2);
}
.mk-sick {
  border: 1.5px solid var(--mut-2);
  color: var(--mut);
}
.mk-planned {
  border: 1.5px solid var(--hair-2);
  color: var(--ink-2);
  background: var(--glass);
}
.mk-paused {
  color: var(--mut);
}
.mk.sm {
  width: 14px;
  height: 14px;
  font-size: 8px;
  vertical-align: -2px;
  margin-right: 6px;
}
.mk.sm .i {
  width: 7px;
  height: 7px;
}
.cal-legend {
  margin-top: 12px;
}

/* ─── прогресс ─── */
.rbars {
  display: grid;
  gap: 10px;
}
.rbar-track {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: var(--hair);
  margin-top: 4px;
  overflow: hidden;
}
.rbar-target {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.rbar-fill {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.rbar-fill.low {
  background: var(--mut-2);
}
.ex-chips {
  max-height: 140px;
  overflow-y: auto;
}
.latest .lv {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--field);
}
.latest .lv b {
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* ─── опасная зона ─── */
.danger-zone {
  border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent);
}
.list-row.danger .list-ic,
.list-row.danger .grow > div:first-child {
  color: var(--bad);
}

/* ─── мастер первого запуска ─── */
.wrap.onboard-wrap {
  padding-bottom: calc(var(--s4) + var(--safe-b));
}
.onboard {
  display: grid;
  gap: var(--s4);
  align-content: start;
}
.ob-page {
  align-content: start;
  gap: var(--s4);
}
.ob-title {
  display: grid;
  gap: var(--s1);
}
.ob-title h1 {
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.05;
}
.ob-title p {
  margin: 0;
  font-size: var(--fs-md);
}
/* шапка шага: назад · сегменты прогресса · пропустить */
.ob-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--tap);
  margin: 0 calc(-1 * var(--s2));
}
.ob-progress {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 4px;
}
.ob-progress i {
  flex: 1 1 0;
  height: 4px;
  border-radius: var(--pill);
  background: var(--hair-2);
  transition: background 0.4s var(--ease);
}
.ob-progress i.on {
  background: var(--accent);
}
.ob-skip,
.ob-skip-space {
  flex: none;
  min-width: 96px;
  min-height: var(--tap);
  padding: 0 var(--s2);
  border: 0;
  background: none;
  color: var(--mut);
  font: 500 15px/1 var(--font-text);
  text-align: right;
}
.ob-skip:hover {
  color: var(--ink);
}
/* главная кнопка снизу на мягкой подложке */
.ob-spacer {
  height: calc(88px + var(--safe-b));
}
.ob-bar:not(.wl-actions) {
  position: fixed;
  z-index: 29;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s6) var(--page-pad) calc(var(--s3) + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 58%, transparent);
  pointer-events: none;
}
.ob-bar-in {
  max-width: 560px;
  margin: 0 auto;
  pointer-events: auto;
}
.ob-bar-in .btn {
  box-shadow: var(--main-shadow);
}
/* успех */
.ob-done {
  display: grid;
  gap: var(--s4);
  justify-items: start;
  padding-top: var(--s2);
}
.ob-done-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
  animation: ob-pop 0.6s var(--ease) both;
}
.ob-done-mark .i {
  width: 34px;
  height: 34px;
  stroke-width: 2.6;
}
@keyframes ob-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
/* выбор программы */
.ob-choice {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: var(--tap);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.ob-choice .grow {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ob-choice.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ob-choice .i {
  color: var(--accent);
}

/* приветствие */
.wl {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: var(--s4);
  min-height: calc(100vh - var(--s3) - var(--s4) - var(--safe-t) - var(--safe-b));
  min-height: calc(100dvh - var(--s3) - var(--s4) - var(--safe-t) - var(--safe-b));
}
.wl-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wl-brand img {
  border-radius: 11px;
  box-shadow: 0 4px 14px var(--shade);
}
.wl-visual {
  position: relative;
  align-self: center;
  width: calc(100% + var(--s2));
  height: 100%;
  min-height: 220px;
  max-height: 380px;
  margin: 0 calc(-1 * var(--s1));
}
.wl-card {
  position: absolute;
  display: grid;
  gap: 6px;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  transform: rotate(var(--r));
  animation: wl-float 7s ease-in-out infinite;
}
.wl-card b {
  font-size: var(--fs-md);
}
.wl-eyebrow {
  font-size: 12px;
  color: var(--mut);
}
.wl-a {
  top: 2%;
  left: 2%;
  width: 58%;
}
.wl-b {
  top: 30%;
  right: 0;
  width: 66%;
  z-index: 2;
  animation-delay: -2.4s;
  box-shadow: 0 18px 40px var(--shade-2), 0 0 0 1px var(--edge);
}
.wl-c {
  bottom: 0;
  left: 8%;
  width: 52%;
  color: var(--accent);
  animation-delay: -4.6s;
}
.wl-c b {
  color: var(--ink);
}
.wl-w {
  font: 700 26px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.wl-w small {
  font: 500 13px var(--font-text);
  color: var(--mut);
  letter-spacing: 0;
}
.wl-chips {
  display: flex;
  gap: 6px;
}
.wl-chips i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--main-bg);
  color: var(--main-ink);
  font: 600 14px var(--font-text);
  font-style: normal;
}
.wl-chips i.add {
  background: transparent;
  color: var(--mut);
  border: 1px solid var(--hair-2);
}
.wl-dots {
  display: flex;
  gap: 5px;
}
.wl-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--hair-2);
}
.wl-dots i.on {
  background: var(--accent);
  border-color: var(--accent);
}
@keyframes wl-float {
  50% {
    transform: translateY(-7px) rotate(var(--r));
  }
}
.wl-copy {
  display: grid;
  gap: var(--s2);
}
.wl-copy h1 {
  font-size: clamp(34px, 10.5vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.wl-copy p {
  margin: 0;
  font-size: var(--fs-md);
}
.wl-actions {
  display: grid;
  gap: var(--s3);
}
.g-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 var(--s4);
  border: 1px solid #747775;
  border-radius: var(--pill);
  background: #fff;
  color: #1f1f1f;
  font: 500 16px/20px var(--font-text);
  box-shadow: 0 8px 24px var(--shade);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.g-btn:active {
  transform: scale(0.985);
}
.g-btn:disabled {
  opacity: 0.7;
}
.g-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.g-logo {
  flex: none;
}
.wl-link {
  min-height: var(--tap);
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 15px/1 var(--font-text);
  text-decoration: none;
}
.wl-legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mut);
  text-align: center;
}
.wl-legal a {
  color: inherit;
  text-decoration: underline;
}
.wl-who {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.wl-who .grow {
  display: grid;
  min-width: 0;
}
.wl-ava {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main-bg);
  color: var(--main-ink);
  font: 700 17px var(--font-display);
}
@media (prefers-reduced-motion: reduce) {
  .wl-card,
  .ob-done-mark {
    animation: none;
  }
}
@media (max-height: 700px) {
  .wl-visual {
    min-height: 170px;
  }
}

/* ─── ИИ: анкета ─── */
.brief-form,
.brief-blocks,
.brief-block {
  min-width: 0;
}
.brief-blocks {
  display: grid;
  border-top: 1px solid var(--hair);
}
.brief-block {
  border-bottom: 1px solid var(--hair);
}
.brief-block > summary {
  gap: var(--s2);
}
.brief-block > summary .sum {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
  color: var(--mut);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brief-body {
  padding: var(--s1) 0 var(--s4);
}
.brief-form .stepper-label,
.brief-body .stepper-label {
  margin-left: var(--s1);
}
.stepper-label.row {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

/* ─── ИИ: diff ─── */
.diff {
  border: 2px solid var(--accent);
}
.diff-weeks {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.diff-session {
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  display: grid;
  gap: 6px;
}
.diff-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14.5px;
}
.diff-row.changed {
  background: var(--accent-soft);
}
.diff-row.added {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}
.diff-row.removed {
  background: var(--bad-soft);
}
.diff-row s {
  text-decoration-thickness: 1px;
}

@media (min-width: 400px) {
  :root {
    --page-pad: 16px;
  }
}

/* тренировки недели: точки вместо «сделано 1 из 3» */
.wk-dots {
  display: inline-flex;
  gap: 5px;
}
.wk-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--mut-2);
}
.wk-dots i.on {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 60%, transparent);
}

/* итог тренировки */
.records {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.records .spread {
  font-size: var(--fs-sm);
}
.records .ellipsis {
  flex: 1 1 auto;
  min-width: 0;
}
.ok-t {
  color: var(--ok);
  font-weight: 600;
  white-space: nowrap;
}
/* карточки внутри листа: лист 32 − отступ 20 ≈ 12–16 */
.sheet .card {
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
}
