/* v249: MonkFit — Олимп 2.0 (Живой Протокол, Спорт, Кожа, Анализы Helix, Whoop OAuth 2.0).
   Строго mobile-only (~430px), обсидиан + золото + FreeSerif Bold, Safe Area, без «ё» и эмодзи. */

@font-face {
  font-family: "Olymp Serif";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/static/fonts/freeserif-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Olymp Serif";
  font-style: italic;
  font-weight: 500 800;
  font-display: swap;
  src: url("/static/fonts/freeserif-BoldItalic.woff2") format("woff2");
}

:root {
  --ft-bg: #0B0B14;
  --ft-bg-outer: #06060C;
  --ft-elev: #12111D;
  --ft-card: #141320;
  --ft-card2: #1B1A2A;
  --ft-sheet: #12111C;
  --ft-nav: rgba(18, 17, 29, 0.9);
  --ft-line: rgba(240, 230, 210, 0.09);
  --ft-line-gold: rgba(230, 194, 122, 0.28);
  --ft-t1: #F6F1E7;
  --ft-t2: #BDB8C9;
  --ft-t3: #858096;
  --ft-gold: #E6C27A;
  --ft-gold2: #B8862F;
  --ft-gold-soft: rgba(230, 194, 122, 0.13);
  --ft-gold-btn: linear-gradient(180deg, #F1D394 0%, #D9AE5C 100%);
  --ft-ink: #241A07;
  --ft-mint: #8FD9BE;
  --ft-mint-soft: rgba(143, 217, 190, 0.14);
  --ft-amber: #F2B65A;
  --ft-amber-soft: rgba(242, 182, 90, 0.14);
  --ft-coral: #FF8A65;
  --ft-coral-soft: rgba(255, 138, 101, 0.14);
  --ft-lilac: #B8B0E8;
  --ft-lilac-soft: rgba(184, 176, 232, 0.14);
  --ft-fd: "Olymp Serif", Georgia, serif;
  --ft-fu: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  --ft-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ft-sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ft-st: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px));
  --ft-sb: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bot, 0px));
}

/* ===== Изолированная mobile-only оболочка MonkFit ===== */
html[data-fit="1"],
html[data-fit="1"] body {
  background: var(--ft-bg-outer) !important;
  color: var(--ft-t1) !important;
  font-family: var(--ft-fu) !important;
  overflow-x: hidden;
  touch-action: manipulation;
}
html[data-fit="1"] body::before { background: none !important; }
html[data-fit="1"] .m3-side,
html[data-fit="1"] .m3-mbar,
html[data-fit="1"] .m3-tabs,
html[data-fit="1"] #helpfab,
html[data-fit="1"] .helpfab,
html[data-fit="1"] #aifab,
html[data-fit="1"] .aifab { display: none !important; }
html[data-fit="1"] .m3-main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Toast поверх всех шторок */
html[data-fit="1"] #toast,
html[data-fit="1"] .toast {
  z-index: 300 !important;
  background: #1D1C2D !important;
  border: 1px solid var(--ft-line-gold) !important;
  color: var(--ft-t1) !important;
  border-radius: 14px !important;
  padding: 11px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
}

/* Плашка установки PWA в стиле Олимп 2.0 (над нижней навигацией, не перекрывает шапку и сегменты) */
html[data-fit="1"] #ibar {
  top: auto !important;
  bottom: calc(88px + var(--ft-sb)) !important;
  z-index: 240 !important;
  width: min(406px, calc(100vw - 24px)) !important;
  padding: 8px 10px !important;
  gap: 8px !important;
  background: rgba(20, 19, 32, 0.96) !important;
  border: 1px solid var(--ft-line-gold) !important;
  color: var(--ft-t1) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
}
html[data-fit="1"] #ibar .ibar-t b { color: var(--ft-t1) !important; font-size: 12.5px !important; line-height: 1.2 !important; }
html[data-fit="1"] #ibar .ibar-t span { color: var(--ft-t2) !important; font-size: 11px !important; line-height: 1.2 !important; }
html[data-fit="1"] #ibar .ibar-go {
  background: var(--ft-gold-btn) !important;
  color: var(--ft-ink) !important;
  font-weight: 700 !important;
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}
html[data-fit="1"].ft-modal-open #ibar { opacity: 0; pointer-events: none; }

/* Жесткий приоритет FreeSerif Bold («Олимп») поверх глобальных правил m3.css / app.css */
html[data-fit="1"] .ft-serif,
html[data-fit="1"] .ft-brand-title,
html[data-fit="1"] .ft-hero-title,
html[data-fit="1"] .ft-sec-head h2,
html[data-fit="1"] .ft-prop-title,
html[data-fit="1"] .ft-next-wo h3,
html[data-fit="1"] .ft-sh-head h3,
html[data-fit="1"] .ft-login-title,
html[data-fit="1"] .ft-m-val {
  font-family: var(--ft-fd) !important;
  font-weight: 700 !important;
}

/* Системные шторки (#sheet-root — Вселенная Monk и др.) в стиле Олимп 2.0 */
html[data-fit="1"] #sheet-root .sheet {
  max-width: 430px !important;
  margin: 0 auto !important;
  background: var(--ft-sheet) !important;
  color: var(--ft-t1) !important;
  border-top: 1px solid var(--ft-line-gold) !important;
  border-radius: 26px 26px 0 0 !important;
}

/* ===== Главная мобильная колонка (~430px) ===== */
.ft-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(600px 360px at 50% 0%, rgba(230, 194, 122, 0.08), transparent 70%),
    var(--ft-bg-outer);
}
.ft-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background:
    radial-gradient(360px 240px at 85% -40px, rgba(230, 194, 122, 0.11), transparent 70%),
    radial-gradient(300px 220px at 10% 80px, rgba(184, 176, 232, 0.07), transparent 72%),
    var(--ft-bg);
  position: relative;
  padding-bottom: calc(96px + var(--ft-sb));
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}
@media (max-width: 430px) {
  .ft-shell { border: none; }
}
.ft-shell * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== Top Bar ===== */
.ft-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(12px + var(--ft-st)) 16px 12px;
  background: rgba(11, 11, 20, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--ft-line);
}
.ft-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ft-brand-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(230, 194, 122, 0.25);
  flex-shrink: 0;
}
.ft-brand-title {
  font-family: var(--ft-fd);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ft-t1);
  line-height: 1;
}
.ft-ver-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ft-gold-soft);
  border: 1px solid var(--ft-line-gold);
  color: var(--ft-gold);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ft-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ft-whoop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  color: var(--ft-t1);
  font-family: var(--ft-fu);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ft-whoop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ft-mint);
  box-shadow: 0 0 8px rgba(143, 217, 190, 0.65);
}
.ft-whoop-pill.yellow .ft-whoop-dot { background: var(--ft-amber); box-shadow: 0 0 8px rgba(242, 182, 90, 0.65); }
.ft-whoop-pill.red .ft-whoop-dot { background: var(--ft-coral); box-shadow: 0 0 8px rgba(255, 138, 101, 0.65); }
.ft-whoop-pill.off .ft-whoop-dot { background: var(--ft-t3); box-shadow: none; }

.ft-ico-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card);
  color: var(--ft-t2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ft-ico-btn:active { transform: scale(0.93); }

/* ===== Экраны и типографика ===== */
.ft-body {
  padding: 14px 16px 20px;
  animation: ftFadeUp 0.2s var(--ft-ease);
}
@keyframes ftFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ft-serif {
  font-family: var(--ft-fd);
  font-weight: 700;
  color: var(--ft-t1);
  margin: 0;
  line-height: 1.15;
}
.ft-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ft-t3);
}
.ft-eyebrow-gold { color: var(--ft-gold); }
.ft-num { font-variant-numeric: tabular-nums; }

.ft-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
}
.ft-sec-head h2 {
  font-family: var(--ft-fd);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ft-t1);
}
.ft-sec-meta {
  font-size: 12px;
  color: var(--ft-t3);
  font-variant-numeric: tabular-nums;
}

/* ===== Карточки ===== */
.ft-card {
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
}
.ft-card-gold {
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(230, 194, 122, 0.14), transparent 72%),
    var(--ft-card);
  border: 1px solid var(--ft-line-gold);
}
.ft-card-alert {
  background: linear-gradient(135deg, rgba(255, 138, 101, 0.13), rgba(20, 19, 32, 0.94));
  border: 1px solid rgba(255, 138, 101, 0.34);
}
.ft-card-amber {
  background: linear-gradient(135deg, rgba(242, 182, 90, 0.12), rgba(20, 19, 32, 0.94));
  border: 1px solid rgba(242, 182, 90, 0.32);
}

.ft-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.ft-b-gold { background: var(--ft-gold-soft); color: var(--ft-gold); border: 1px solid rgba(230, 194, 122, 0.25); }
.ft-b-mint { background: var(--ft-mint-soft); color: var(--ft-mint); }
.ft-b-amber { background: var(--ft-amber-soft); color: var(--ft-amber); }
.ft-b-coral { background: var(--ft-coral-soft); color: var(--ft-coral); }
.ft-b-lilac { background: var(--ft-lilac-soft); color: var(--ft-lilac); }
.ft-b-muted { background: rgba(255, 255, 255, 0.06); color: var(--ft-t2); }

.ft-prop-title {
  font-family: var(--ft-fd);
  font-size: 19px;
  margin: 0 0 4px;
  color: var(--ft-t1);
}
.ft-prop-desc {
  font-size: 12.5px;
  color: var(--ft-t2);
  margin: 0 0 12px;
  line-height: 1.45;
}

/* ===== Кнопки (>=44px тач-зоны) ===== */
.ft-btn-row { display: flex; gap: 8px; }
.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-family: var(--ft-fu);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s var(--ft-ease), opacity 0.18s;
}
.ft-btn:active { transform: scale(0.97); }
.ft-btn:disabled { opacity: 0.55; cursor: default; }
.ft-btn-gold {
  background: var(--ft-gold-btn);
  color: var(--ft-ink) !important;
  box-shadow: 0 6px 18px rgba(217, 174, 92, 0.22);
}
.ft-btn-ghost {
  background: var(--ft-card2);
  border-color: var(--ft-line);
  color: var(--ft-t1) !important;
}
.ft-btn-danger {
  background: rgba(255, 138, 101, 0.1);
  border-color: rgba(255, 138, 101, 0.3);
  color: var(--ft-coral) !important;
}
.ft-btn-sm { min-height: 40px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.ft-btn-full { width: 100%; }

/* ===== Экран Сегодня: Кольцо ритма + 6 тапов ===== */
.ft-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
}
.ft-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.ft-ring-wrap svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ft-ring-bg { fill: none; stroke: rgba(240, 230, 210, 0.09); stroke-width: 6; }
.ft-ring-fg {
  fill: none;
  stroke: var(--ft-gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s var(--ft-ease);
}
.ft-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ft-ring-val { font-size: 17px; font-weight: 700; color: var(--ft-t1); font-variant-numeric: tabular-nums; line-height: 1; }
.ft-ring-sub { font-size: 10px; color: var(--ft-t3); margin-top: 2px; }

.ft-hero-info { flex: 1; min-width: 0; }
.ft-hero-date { font-size: 11.5px; color: var(--ft-t3); margin-bottom: 2px; }
.ft-hero-title { font-family: var(--ft-fd); font-size: 23px; margin: 0 0 8px; line-height: 1.1; color: var(--ft-t1); }
.ft-kpi-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  font-family: var(--ft-fu);
  font-size: 11.5px;
  color: var(--ft-t2);
  font-variant-numeric: tabular-nums;
}
.ft-kpi-chip b { color: var(--ft-t1); font-weight: 600; }
.ft-kpi-chip.sync { border-color: rgba(143, 217, 190, 0.25); color: var(--ft-mint); cursor: pointer; }
.ft-kpi-chip.sync b { color: var(--ft-mint); }

.ft-tap-list { display: flex; flex-direction: column; gap: 8px; }
.ft-tap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.14s var(--ft-ease);
}
.ft-tap-row:active { transform: scale(0.985); }
.ft-tap-row.done {
  border-color: rgba(230, 194, 122, 0.28);
  background: linear-gradient(90deg, rgba(230, 194, 122, 0.06), var(--ft-card) 55%);
}
.ft-tap-ck {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 230, 210, 0.24);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.2s var(--ft-ease);
}
.ft-tap-row.done .ft-tap-ck {
  background: var(--ft-gold-btn);
  border-color: transparent;
  color: var(--ft-ink);
}
.ft-tap-body { flex: 1; min-width: 0; }
.ft-tap-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ft-t1);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ft-tap-sub { font-size: 12px; color: var(--ft-t3); margin-top: 2px; }
.ft-tap-right { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }

.ft-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  padding: 2px;
}
.ft-stepper button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ft-gold);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.ft-stepper span {
  min-width: 46px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ft-t1);
}

.ft-pill-pair { display: flex; gap: 6px; }
.ft-pill-mini {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card2);
  color: var(--ft-t2);
  font-family: var(--ft-fu);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.ft-pill-mini.on {
  background: var(--ft-gold-soft);
  border-color: var(--ft-line-gold);
  color: var(--ft-gold);
}

.ft-next-wo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ft-next-wo h3 { font-family: var(--ft-fd); font-size: 20px; margin: 2px 0 3px; color: var(--ft-t1); }
.ft-next-wo p { font-size: 12px; color: var(--ft-t2); margin: 0; }

/* ===== Спорт: Ротация + Таймер отдыха + Подходы ===== */
.ft-rot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.ft-rot-item {
  padding: 9px 4px;
  border-radius: 14px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  text-align: center;
  cursor: pointer;
}
.ft-rot-code { font-size: 12px; font-weight: 700; color: var(--ft-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-rot-tag { font-size: 10px; color: var(--ft-t3); margin-top: 2px; }
.ft-rot-item.active { background: var(--ft-gold-soft); border-color: var(--ft-line-gold); }
.ft-rot-item.active .ft-rot-code { color: var(--ft-gold); }
.ft-rot-item.active .ft-rot-tag { color: var(--ft-t1); }
.ft-rot-item.done-rot { border-color: rgba(143, 217, 190, 0.28); }
.ft-rot-item.done-rot .ft-rot-tag { color: var(--ft-mint); }

.ft-timer {
  background:
    radial-gradient(220px 100px at 0% 50%, rgba(230, 194, 122, 0.12), transparent 70%),
    var(--ft-card2);
  border: 1px solid var(--ft-line-gold);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.ft-timer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ft-timer-clock { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ft-gold); line-height: 1; }
.ft-presets { display: flex; gap: 5px; }
.ft-preset {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card);
  color: var(--ft-t2);
  font-family: var(--ft-fu);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.ft-preset.active { background: var(--ft-gold-btn); color: var(--ft-ink); border-color: transparent; }
.ft-timer-track { height: 4px; border-radius: 999px; background: rgba(240, 230, 210, 0.1); overflow: hidden; margin-bottom: 8px; }
.ft-timer-fill { height: 100%; background: var(--ft-gold-btn); border-radius: 999px; transition: width 0.35s linear; }
.ft-timer-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--ft-t3); }
.ft-timer-ctrls { display: flex; gap: 6px; }
.ft-tctrl {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card);
  color: var(--ft-t1);
  font-family: var(--ft-fu);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.ft-ex-card {
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 10px;
}
.ft-ex-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ft-ex-name { font-size: 14.5px; font-weight: 600; color: var(--ft-t1); line-height: 1.3; }
.ft-ex-meta { font-size: 12px; color: var(--ft-t3); margin-top: 2px; }
.ft-ex-hint {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(230, 194, 122, 0.08);
  border-left: 2px solid var(--ft-gold);
  font-size: 11.5px;
  color: var(--ft-t2);
}
.ft-sets { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ft-set-hdr,
.ft-set-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 44px;
  gap: 8px;
  align-items: center;
}
.ft-set-hdr {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ft-t3);
  padding: 0 2px;
}
.ft-set-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ft-card2);
  color: var(--ft-t2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ft-set-row.done .ft-set-num { background: var(--ft-mint-soft); color: var(--ft-mint); }

.ft-num-inp {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card2);
  color: var(--ft-t1);
  font-family: var(--ft-fu);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
}
.ft-num-inp:focus { border-color: var(--ft-gold); }
.ft-set-row.done .ft-num-inp {
  border-color: rgba(143, 217, 190, 0.24);
  background: rgba(143, 217, 190, 0.06);
}
.ft-set-ok {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card2);
  color: var(--ft-t3);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ft-set-row.done .ft-set-ok {
  background: var(--ft-mint);
  border-color: transparent;
  color: #0B1B15;
}
.ft-add-set {
  margin-top: 8px;
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px dashed rgba(240, 230, 210, 0.16);
  background: transparent;
  color: var(--ft-t3);
  font-family: var(--ft-fu);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ft-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 15px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  margin-bottom: 12px;
}
.ft-switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ft-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F6F1E7;
  transition: transform 0.2s var(--ft-ease);
}
.ft-switch.on { background: var(--ft-gold); }
.ft-switch.on::after { transform: translateX(18px); background: var(--ft-ink); }

/* ===== Протокол: Стоп-лист + Макро + Стек ===== */
.ft-stop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ft-stop-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 138, 101, 0.12);
  border: 1px solid rgba(255, 138, 101, 0.28);
  color: #FFB49B;
  font-size: 12px;
  font-weight: 500;
}
.ft-macro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ft-macro-box {
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  padding: 11px;
}
.ft-m-label { font-size: 11px; color: var(--ft-t3); }
.ft-m-val { font-family: var(--ft-fd); font-size: 21px; color: var(--ft-t1); margin: 2px 0; }
.ft-m-sub { font-size: 11.5px; color: var(--ft-t2); font-variant-numeric: tabular-nums; }

.ft-supp-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ft-line);
}
.ft-supp-item:last-child { border-bottom: none; padding-bottom: 2px; }
.ft-supp-name { font-size: 14px; font-weight: 600; color: var(--ft-t1); }
.ft-supp-brand { font-size: 12px; color: var(--ft-t2); margin-top: 2px; }
.ft-supp-rule { font-size: 11.5px; color: var(--ft-t3); margin-top: 3px; }

/* ===== Здоровье: Сегменты + Skin Cycling + Helix + Whoop ===== */
.ft-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  margin-bottom: 14px;
}
.ft-seg-btn {
  min-height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ft-t3);
  font-family: var(--ft-fu);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ft-seg-btn.active {
  background: var(--ft-card2);
  color: var(--ft-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ft-cycle-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 10px 0 4px;
}
.ft-cday {
  padding: 7px 2px;
  border-radius: 11px;
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  text-align: center;
}
.ft-cday.today { border-color: var(--ft-gold); box-shadow: 0 0 0 1px rgba(230, 194, 122, 0.25); }
.ft-cday-w { font-size: 10px; color: var(--ft-t3); }
.ft-cday-dot { width: 8px; height: 8px; border-radius: 50%; margin: 5px auto; }
.ft-cd-effezel { background: var(--ft-lilac); }
.ft-cd-retinal { background: var(--ft-amber); }
.ft-cd-recovery { background: var(--ft-mint); }
.ft-cday-t { font-size: 9.5px; color: var(--ft-t2); font-weight: 600; }

.ft-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ft-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ft-t2); }
.ft-step-idx {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  color: var(--ft-gold);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ft-marker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ft-marker {
  background: var(--ft-card);
  border: 1px solid rgba(242, 182, 90, 0.26);
  border-radius: 16px;
  padding: 10px;
}
.ft-mk-name { font-size: 11px; color: var(--ft-t3); }
.ft-mk-val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ft-amber); margin: 3px 0 2px; }
.ft-mk-note { font-size: 10.5px; color: var(--ft-t2); line-height: 1.25; }

.ft-ck-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ft-line);
  cursor: pointer;
}
.ft-ck-row:last-child { border-bottom: none; padding-bottom: 2px; }
.ft-ck-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(240, 230, 210, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: transparent;
}
.ft-ck-row.checked .ft-ck-box { background: var(--ft-mint); border-color: transparent; color: #091A14; }
.ft-ck-row.checked .ft-ck-title { text-decoration: line-through; color: var(--ft-t3); }
.ft-ck-title { font-size: 13.5px; font-weight: 600; color: var(--ft-t1); }
.ft-ck-code { font-size: 11.5px; color: var(--ft-gold); font-variant-numeric: tabular-nums; margin-top: 2px; }

.ft-whoop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0 12px; }
.ft-wstat {
  background: var(--ft-card2);
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  padding: 11px;
}
.ft-ws-l { font-size: 11px; color: var(--ft-t3); }
.ft-ws-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; color: var(--ft-t1); }
.ft-ws-s { font-size: 11px; color: var(--ft-t2); }

.ft-bars7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 76px;
  margin-top: 10px;
}
.ft-bcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ft-bfill { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--ft-mint); min-height: 8px; }
.ft-bfill.y { background: var(--ft-amber); }
.ft-bfill.r { background: var(--ft-coral); }
.ft-bcol span { font-size: 10px; color: var(--ft-t3); }

/* ===== Нижняя навигация + Золотая FAB + ===== */
.ft-bnav {
  position: fixed;
  bottom: calc(12px + var(--ft-sb));
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(100%, 430px) - 24px);
  height: 66px;
  border-radius: 26px;
  background: var(--ft-nav);
  border: 1px solid var(--ft-line);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  display: grid;
  grid-template-columns: 1fr 1fr 62px 1fr 1fr;
  align-items: center;
  padding: 0 4px;
  z-index: 60;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.ft-nitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border: none;
  background: transparent;
  color: var(--ft-t3);
  font-family: var(--ft-fu);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.ft-nitem.active { color: var(--ft-gold); }
.ft-nitem svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }

.ft-fab-cell { display: grid; place-items: center; }
.ft-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--ft-gold-btn);
  color: var(--ft-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(230, 194, 122, 0.34), 0 0 0 4px rgba(18, 17, 29, 0.92);
  transform: translateY(-8px);
  cursor: pointer;
}
.ft-fab:active { transform: translateY(-8px) scale(0.92); }
.ft-fab svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ===== Шторки MonkFit ===== */
.ft-sh-bg {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 140;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ft-sh {
  width: 100%;
  max-width: 430px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--ft-sheet);
  border-top: 1px solid var(--ft-line-gold);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(24px + var(--ft-sb));
  animation: ftSheetIn 0.24s var(--ft-sheet-ease);
}
@keyframes ftSheetIn {
  from { transform: translateY(42px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ft-sh-handle { width: 38px; height: 4px; border-radius: 999px; background: rgba(240, 230, 210, 0.2); margin: 0 auto 12px; }
.ft-sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ft-sh-head h3 { font-family: var(--ft-fd); font-size: 22px; margin: 0; color: var(--ft-t1); }
.ft-sh-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ft-line);
  background: var(--ft-card2);
  color: var(--ft-t2);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ft-diff-row {
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  margin-bottom: 8px;
}
.ft-diff-cat { font-size: 11px; color: var(--ft-gold); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.ft-diff-old { font-size: 12.5px; color: var(--ft-t3); text-decoration: line-through; margin-top: 3px; }
.ft-diff-new { font-size: 13.5px; color: var(--ft-mint); font-weight: 600; margin-top: 2px; }

.ft-qa {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 15px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  color: var(--ft-t1);
  text-align: left;
  font-family: var(--ft-fu);
  margin-bottom: 8px;
  cursor: pointer;
}
.ft-qa-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ft-gold-soft);
  color: var(--ft-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ft-qa-t { font-size: 14px; font-weight: 600; }
.ft-qa-s { font-size: 12px; color: var(--ft-t3); margin-top: 1px; }

.ft-inp,
.ft-ta {
  width: 100%;
  border-radius: 13px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card2);
  color: var(--ft-t1);
  font-family: var(--ft-fu);
  font-size: 16px;
  padding: 11px 13px;
  outline: none;
  margin-bottom: 10px;
}
.ft-inp:focus,
.ft-ta:focus { border-color: var(--ft-gold); }
.ft-ta { min-height: 112px; resize: vertical; }
.ft-field-lbl { display: block; font-size: 12px; color: var(--ft-t2); margin: 0 0 5px; font-weight: 600; }
.ft-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ===== Экран входа MonkFit ===== */
.ft-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--ft-st)) 18px calc(32px + var(--ft-sb));
  background:
    radial-gradient(460px 320px at 50% 0%, rgba(230, 194, 122, 0.14), transparent 72%),
    var(--ft-bg);
}
.ft-login-wrap { width: 100%; max-width: 390px; text-align: center; }
.ft-login-ico {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--ft-line-gold);
}
.ft-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ft-gold-soft);
  border: 1px solid var(--ft-line-gold);
  color: var(--ft-gold);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}
.ft-login-title {
  font-family: var(--ft-fd);
  font-size: 38px;
  margin: 0 0 6px;
  color: var(--ft-t1);
  line-height: 1.05;
}
.ft-login-title i { color: var(--ft-gold); font-style: italic; }
.ft-login-sub { font-size: 13.5px; color: var(--ft-t2); margin: 0 0 20px; line-height: 1.45; }
.ft-login-card {
  background: var(--ft-card);
  border: 1px solid var(--ft-line-gold);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
}
.ft-login-div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 11.5px;
  color: var(--ft-t3);
}
.ft-login-div::before,
.ft-login-div::after { content: ""; flex: 1; height: 1px; background: var(--ft-line); }
.ft-login-code-row { display: flex; gap: 8px; }
.ft-login-err { color: var(--ft-coral); font-size: 12.5px; font-weight: 600; margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .ft-body, .ft-sh, .ft-ring-fg, .ft-timer-fill { animation: none !important; transition: none !important; }
}
