/* Trainer AI mini-app — направление «Спокойный редакторский».
   Тёплая бумага, один терракотовый акцент, волосяные линии вместо карточек,
   крупные табличные числа. Токены: светлая тема по умолчанию, .tg-dark —
   графит (класс ставит app.js по Telegram.WebApp.colorScheme). */

:root {
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f4f1ea;
  --paper: #ebe6da;
  --ink: #1b1a17;
  --ink-2: #3d3a34;
  --muted: #6f6a61;
  --hair: #d9d3c7;
  --track: #ddd7cb;
  --accent: #b5482b;
  --tint: #e3b8a7;
  --btn-bg: #1b1a17;
  --btn-ink: #f4f1ea;
  --good: #3f7a52;
  --danger: #b5482b;
  --mm-paper: #ebe6da;
  --mm-ink: #1b1a17;
  --pad: 20px;
}

.tg-dark {
  --bg: #171613;
  --paper: #26241f;
  --ink: #ece7dc;
  --ink-2: #cdc7ba;
  --muted: #9c968b;
  --hair: #302e29;
  --track: #2e2c27;
  --accent: #d96a4b;
  --tint: #6a3a2a;
  --btn-bg: #ece7dc;
  --btn-ink: #171613;
  --good: #7fbf93;
  --danger: #d96a4b;
  --mm-paper: #26241f;
  --mm-ink: #ece7dc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
button, input, textarea { font-family: inherit; }
button { cursor: pointer; color: inherit; }
svg.ico { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; }

.content { max-width: 560px; margin: 0 auto; padding: 8px var(--pad) calc(84px + env(safe-area-inset-bottom)); }
.content.no-tabs { padding-bottom: 32px; }

/* ---------- Типографика ---------- */

.cap, .section-title, .field-label, .hero-sub, .card-h-sub, .macro-label, .stat-label, .wrow-mon, .cal-wd, .kv-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 14px;
}
.title { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 16px; overflow-wrap: break-word; }
.section-title { margin: 26px 0 8px; }
.hint { color: var(--muted); font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: break-word; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Шапка ---------- */

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 6px; }
.hero-sub { margin-bottom: 4px; }
.hero-title { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: transparent; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.avatar-btn:active { opacity: 0.6; }

/* ---------- Секции (бывшие карточки) ---------- */

.card { background: transparent; border-top: 1px solid var(--hair); padding: 14px 0 16px; margin: 0; }
.card:first-child, .sec-first { border-top: none; }
.card-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; overflow-wrap: break-word; }
.card-h { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card-h-sub { margin-left: 4px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.plan-date { margin-top: 8px; }
.error-card { color: var(--danger); }
.meta-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.meta-date { font-weight: 500; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.cols3 > * + * { border-left: 1px solid var(--hair); padding-left: 14px; }

/* ---------- Калории ---------- */

.kcal-card { padding-top: 12px; }
.kcal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 6px; }
.kcal-big { font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.kcal-side { display: flex; gap: 18px; padding-bottom: 6px; }
.kcal-side-item { text-align: right; }
.kcal-side-val { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.kcal-bar { height: 3px; background: var(--track); margin-top: 12px; }
.kcal-bar-fill { height: 100%; background: var(--accent); transition: width 0.5s ease; }
.kcal-bar-over .kcal-bar-fill { background: var(--danger); }
.kcal-meta { margin-top: 8px; }
.macros { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.macro-val { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.macro-val .unit { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.macro-head { display: flex; flex-direction: column-reverse; gap: 4px; }
.bar { height: 2px; background: var(--track); margin-top: 8px; }
.bar-fill { height: 100%; background: var(--accent); }
.macro-of { margin-top: 5px; }

/* ---------- Активность ---------- */

.stats { margin-top: 10px; }
.stat-ico { display: none; }
.stat-val { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { margin-top: 3px; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; }
.act-head { display: flex; align-items: center; gap: 6px; }
.act-head .ico { width: 14px; height: 14px; color: var(--muted); }
.hw-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.hw-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hw-name { font-weight: 500; }

/* ---------- Тренировка и карта мышц ---------- */

.wgrid { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px 14px; align-items: start; margin-top: 8px; }
.wgrid-text { min-width: 0; }
.ex-line { margin-bottom: 8px; }
.ex-line-name { font-weight: 500; line-height: 1.25; }
.ex-line-sets { font-size: 13px; color: var(--muted); }
.plan-title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 2px 0 8px; }
.plan-reason { margin-bottom: 8px; }
.plan-lead { color: var(--accent); }
.split-badge { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 2px; vertical-align: middle; }

.mm { display: block; margin: 0 auto; width: 160px; }
.mm-compact { width: 160px; }
.mm-svg { width: 160px; height: auto; display: block; color: var(--mm-ink); }
.mm-svg .body { fill: var(--mm-paper); stroke: var(--mm-ink); stroke-width: 2; }
.mm-svg .muscle { fill: var(--mm-paper); stroke: var(--mm-ink); stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.3s ease; }
.mm-svg .muscle[data-state="planned"], .mm-svg .muscle[data-state="today"] { fill: var(--accent); stroke: var(--accent); }
.mm-svg .muscle[data-state="fresh"] { fill: var(--tint); }
.mm-svg .muscle[data-state="ok"], .mm-svg .muscle[data-state="none"] { fill: var(--mm-paper); }
.mm-svg .muscle[data-state="due"], .mm-svg .muscle[data-state="never"] { fill: url(#mmStale); stroke: var(--accent); stroke-width: 2; }
.mm-svg .label { fill: var(--muted); font-size: 22px; font-family: var(--font); letter-spacing: 0.06em; text-transform: uppercase; stroke: none; }
.mm-pat-bg { fill: var(--mm-paper); }
.mm-pat-line { stroke: var(--mm-ink); stroke-width: 1.5; }
.mm-labels { display: flex; justify-content: space-around; margin-top: 4px; }

.mm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 10px 0 12px; }
.mm-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; display: block; flex-shrink: 0; }
.sw rect { fill: var(--mm-paper); stroke: var(--mm-ink); stroke-width: 1; }
.sw[data-state="planned"] rect, .sw[data-state="today"] rect { fill: var(--accent); stroke: var(--accent); }
.sw[data-state="fresh"] rect { fill: var(--tint); stroke: var(--tint); }
.sw[data-state="due"] rect, .sw[data-state="never"] rect { fill: url(#mmStale); stroke: var(--accent); stroke-width: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.chip { font-size: 12px; font-weight: 500; line-height: 1.4; padding: 2px 8px; border-radius: 3px; white-space: nowrap; background: var(--paper); color: var(--ink-2); }
.chip-planned { background: var(--accent); color: var(--btn-ink); }
.tg-dark .chip-planned { color: #171613; }
.chip-kcal { background: var(--paper); color: var(--ink-2); }
.chip-live { background: transparent; color: var(--accent); padding: 0; }

.due-list { display: flex; flex-direction: column; margin-top: 4px; }
.due-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.due-row:first-child { border-top: none; }
.due-name { flex: 1; }
.due-days { color: var(--muted); }

.wlist { display: flex; flex-direction: column; }
.wrow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 0; border: none; border-top: 1px solid var(--hair); background: transparent; color: var(--ink); min-height: 60px; }
.wlist .wrow:first-child { border-top: none; }
.wrow:active { opacity: 0.6; }
.wrow-date { width: 40px; flex-shrink: 0; text-align: left; }
.wrow-day { font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.wrow-mon { margin-top: 2px; }
.wrow-main { flex: 1; min-width: 0; }
.wrow-title { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wrow-chev { color: var(--muted); width: 18px; height: 18px; }
.mm-card { padding-bottom: 6px; }

/* ---------- Вес ---------- */

.weight-row { display: flex; align-items: center; gap: 14px; }
.weight-btn { width: 100%; border: none; background: transparent; padding: 4px 0 0; text-align: left; font: inherit; }
.weight-ico { display: none; }
.weight-main { flex: 1; }
.weight-val { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.weight-val-sm { font-size: 22px; }
.unit { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.weight-delta { font-size: 13px; color: var(--muted); text-align: right; }
.delta-down { color: var(--muted); }
.delta-up { color: var(--muted); }

/* ---------- Питание ---------- */

.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 6px; }
.daynav-btn { width: 44px; height: 44px; border-radius: 8px; border: none; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.daynav-btn:disabled { opacity: 0.3; }
.daynav-label { font-size: 17px; font-weight: 500; }
.meal-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.meals-list .meal-row:first-child { border-top: none; }
.meal-time { width: 44px; flex-shrink: 0; font-size: 13px; color: var(--muted); padding-top: 2px; }
.meal-main { flex: 1; min-width: 0; }
.meal-desc { font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: break-word; }
.meal-kcal { font-weight: 500; white-space: nowrap; font-size: 17px; }
.meal-kcal .unit { margin-left: 3px; }
.tip-card { display: block; }
.tip-ico { display: none; }
.tip-title { font-weight: 500; margin-bottom: 4px; }

/* ---------- Кнопки, поля ---------- */

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border: none; border-radius: 8px; font-weight: 500; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--hair); margin-bottom: 14px; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid currentColor; }
.btn-inline { display: inline-flex; width: auto; min-height: 44px; padding: 10px 16px; flex-shrink: 0; }
.add-btn { margin-bottom: 8px; }
.danger-zone { margin-top: 28px; }
.link-row { margin-top: 20px; }
.back-link { background: none; border: none; color: var(--accent); font: inherit; font-weight: 500; padding: 8px 0 12px; }

.seg { display: inline-flex; gap: 2px; padding: 2px; margin: 0 0 4px; background: var(--paper); border-radius: 8px; }
.seg-btn { border: none; background: none; font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); padding: 5px 10px; border-radius: 6px; }
.seg-btn.active { background: var(--bg); color: var(--ink); }
.self-mark { font-weight: 400; }

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 6px; }
.input { width: 100%; padding: 12px 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 8px; }
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea.input { resize: vertical; min-height: 72px; }

/* ---------- Навигация ---------- */

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); border-top: 1px solid var(--hair); padding: 8px 0 calc(6px + env(safe-area-inset-bottom)); }
.tabbar-btn { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: none; background: none; font-size: 11px; font-weight: 500; color: var(--muted); }
.tabbar-btn .tab-ico { width: 24px; height: 24px; }
.tabbar-btn.active { color: var(--ink); }

.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 0; border: none; border-top: 1px solid var(--hair); background: transparent; font: inherit; color: inherit; text-align: left; }
.row-static { cursor: default; }
.row-main { display: block; flex: 1; min-width: 0; }
.row-name { display: block; font-weight: 500; overflow-wrap: break-word; }
.row-sub { display: block; font-size: 13px; }
.chevron { color: var(--muted); font-size: 24px; line-height: 1; flex-shrink: 0; }
.center-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.big-id { font-size: 22px; font-weight: 500; user-select: all; -webkit-user-select: all; }
.kv { margin-bottom: 10px; }
.kv:last-child { margin-bottom: 0; }
.kv-label { margin-bottom: 2px; }

/* ---------- Markdown ---------- */

.md { font-size: 15px; overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md-h { font-weight: 500; line-height: 1.3; margin: 16px 0 6px; }
.md-h1 { font-size: 17px; }
.md-h2 { font-size: 16px; }
.md-h3, .md-h4 { font-size: 15px; }
.md-h4 { color: var(--muted); }
.md-p { margin: 6px 0; }
.md-list { margin: 6px 0; padding-left: 22px; }
.md-list li { margin: 3px 0; }
.md-hr { border: none; border-top: 1px solid var(--hair); margin: 12px 0; }
.md-check { color: var(--muted); }
.md-check-done { color: var(--accent); font-weight: 500; }
.md-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px calc(-1 * var(--pad)); padding: 0 var(--pad); }
.md-table { border-collapse: collapse; font-size: 13px; line-height: 1.35; }
.md-table th, .md-table td { border: 1px solid var(--hair); padding: 4px 8px; text-align: left; vertical-align: top; white-space: nowrap; }
.md-table th { font-weight: 500; background: var(--paper); }

/* ---------- Свёртываемые карточки в панели дня ---------- */

.report-card { padding: 0; border-top: 1px solid var(--hair); }
.report-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; background: none; border: none; font: inherit; color: inherit; text-align: left; }
.report-head-main { display: block; flex: 1; min-width: 0; }
.report-head .meta-row { margin-bottom: 2px; }
.report-title { display: block; font-weight: 500; overflow-wrap: break-word; }
.report-chevron { flex-shrink: 0; color: var(--muted); font-size: 22px; line-height: 1; transition: transform 0.15s ease; }
.report-card.open .report-chevron { transform: rotate(90deg); }
.report-body { padding: 0 0 12px; }
.report-body[hidden] { display: none; }
.report-body .md { margin-top: 4px; }
.measure-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; }
.measure-weight { font-size: 20px; font-weight: 500; }
.type-badge { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: 8px; color: var(--ink-2); }
.badge-ico { width: 18px; height: 18px; }

/* ---------- Список тренировок (тренер) ---------- */

.w-list { display: flex; flex-direction: column; margin-bottom: 8px; }
.w-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 0; border: none; border-top: 1px solid var(--hair); background: transparent; color: var(--ink); font: inherit; min-height: 56px; }
.w-row:active { opacity: 0.6; }
.w-row-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.w-row-title { font-weight: 500; }
.w-row-sub { font-size: 13px; }
.w-row-open { font-size: 14px; white-space: nowrap; color: var(--accent); }
.edit-hint { margin: -4px 0 10px; font-size: 13px; }

/* ---------- Календарь ---------- */

:root { --dot-workout: var(--ink); --dot-food: var(--accent); --dot-weight: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.cal-title { font-size: 17px; font-weight: 500; }
.cal-nav { width: 40px; height: 40px; border: none; border-radius: 8px; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; padding: 2px 0 8px; }
.cal-day { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; border: none; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; color: inherit; }
.cal-day.cal-today { color: var(--accent); font-weight: 500; }
.cal-day.cal-selected { background: var(--ink); color: var(--bg); }
.cal-dots { display: flex; gap: 3px; height: 5px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; }
.cal-dot-workout { background: var(--dot-workout); }
.cal-dot-health { background: transparent; box-shadow: inset 0 0 0 1.2px var(--muted); }
.cal-dot-food { background: var(--dot-food); }
.cal-dot-weight { background: var(--dot-weight); }
.cal-dot-other { background: var(--hair); }
.cal-day.cal-selected .cal-dot { box-shadow: 0 0 0 1px var(--bg); }
.cal-day.cal-selected .cal-dot-workout { background: var(--bg); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 2px 0; font-size: 12px; }
.cal-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.cal-panel { margin-top: 4px; }
.w-body { margin-top: 10px; }
.w-body .md-table td { white-space: normal; min-width: 90px; }
.w-note { margin-top: 8px; }

/* ---------- Живая тренировка (редактор) ---------- */

.workout-btn-holder { margin-bottom: 8px; }
.workout-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.workout-since { font-weight: 400; font-size: 14px; }
.save-ind { flex-shrink: 0; font-size: 12px; white-space: nowrap; }
.save-ind-err { color: var(--danger); }
.ex-card { padding: 14px 0; }
.ex-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ex-name { flex: 1; min-width: 0; }
.set-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.set-idx { width: 18px; flex-shrink: 0; text-align: right; font-size: 13px; }
.set-in { flex: 1; min-width: 0; padding: 9px 4px; text-align: center; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; }
.set-in::placeholder { color: var(--muted); opacity: 0.8; }
.set-in:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.set-in-bad, .set-in-bad:focus { border-color: var(--danger); outline-color: var(--danger); color: var(--danger); }
.mini-btn { border: none; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; padding: 6px 8px; }
.mini-danger { color: var(--danger); font-size: 18px; line-height: 1; padding: 4px 10px; flex-shrink: 0; }
.add-set-btn { padding-left: 24px; }
.workout-note { margin-top: 4px; }
.workout-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- График ---------- */

.chart { display: block; width: 100%; height: auto; margin-top: 8px; }
.chart-line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--accent); }
.chart-grid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart-strong { fill: var(--ink); font-size: 11px; font-weight: 500; }

/* ---------- Тост ---------- */

.toast { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-ink); font-size: 14px; text-align: center; }
.toast[hidden] { display: none; }
.toast-error { background: var(--danger); color: #fff; }

/* ---------- Тренировки с часов ---------- */

.wrow-static { cursor: default; }
.chip-watch { background: transparent; color: var(--muted); padding: 0; font-weight: 400; }
.wrow-watch { margin-top: 2px; }
.cardio-last { margin-top: 10px; }
.cardio-due { margin-top: 8px; font-size: 14px; }
.today-watch { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.today-watch-row { font-size: 15px; font-weight: 500; margin-top: 4px; }

.sleep-line { margin-top: 10px; }

/* ---------- Комплекс упражнений ---------- */

.split-chips { display: inline-flex; gap: 4px; }
.split-chip { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--hair); background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; }
.split-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.complex { display: flex; flex-direction: column; margin: 6px 0 4px; }
.complex-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); }
.complex-row:first-child { border-top: none; }
.complex-main { min-width: 0; flex: 1; }
.complex-name { font-weight: 500; line-height: 1.25; }
.complex-scheme { text-align: right; white-space: nowrap; font-size: 14px; padding-top: 1px; }
.complex-finisher { margin: 4px 0 12px; }
