/* BodyPlanner PWA: оформление повторяет приложение (графит + бирюзовый неон). */
:root {
  --bg: #071116; --surface: #111e24; --raised: #192a32; --border: #2a3d46;
  --text: #f5f7f8; --muted: #a6b4bb; --accent: #20e0d0; --accent-2: #58f0e3; --on-accent: #061416;
  --danger: #ff6b6b; --warn: #ffb74d; --ok: #4cd9a0; --cyan: #00c8eb;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --tab-h: 62px; --radius: 20px; --radius-s: 14px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f3f7f8; --surface: #ffffff; --raised: #e8f0f2; --border: #d5e1e5;
  --text: #14262e; --muted: #4d636d; --accent: #006a61; --accent-2: #00897b; --on-accent: #ffffff;
  --shadow: 0 6px 20px rgba(20, 38, 46, .10); color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme='auto'] {
    --bg: #f3f7f8; --surface: #ffffff; --raised: #e8f0f2; --border: #d5e1e5;
    --text: #14262e; --muted: #4d636d; --accent: #006a61; --accent-2: #00897b; --on-accent: #ffffff;
    --shadow: 0 6px 20px rgba(20, 38, 46, .10); color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); overscroll-behavior-y: none;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; touch-action: manipulation;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.center { text-align: center; } .grow { flex: 1; min-width: 0; } .hidden { display: none !important; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .gap-s { gap: 6px; } .wrap { flex-wrap: wrap; }
.between { justify-content: space-between; } .col { display: flex; flex-direction: column; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 24px; } .mb { margin-bottom: 16px; }

/* ---- каркас */
#app { min-height: 100vh; min-height: 100dvh; }
.screen { padding: calc(var(--safe-t) + 12px) calc(var(--safe-r) + 16px) calc(var(--safe-b) + 24px) calc(var(--safe-l) + 16px); max-width: 720px; margin: 0 auto; }
.screen.has-tabs { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.topbar { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; min-height: 44px; }
.topbar h1 { flex: 1; font-size: 24px; }
.topbar .icon-btn { margin-left: -8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text); }
.icon-btn:active { background: var(--raised); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  padding: 6px calc(var(--safe-r) + 6px) var(--safe-b) calc(var(--safe-l) + 6px); background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border);
}
.tab { flex: 1; max-width: 120px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; border-radius: 14px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--accent); }

/* ---- карточки и кнопки */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .card + .row, .row + .card { margin-top: 14px; }
.card.flat { box-shadow: none; }
.card.accent { background: var(--raised); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card.warn { border-color: color-mix(in srgb, var(--warn) 60%, var(--border)); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.btn { min-height: 50px; padding: 0 20px; border-radius: 16px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; text-align: center; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:active { filter: brightness(.9); }
.btn.ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn.ghost:active { background: var(--raised); }
.btn.danger { background: var(--danger); color: #1a0505; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--accent); font-weight: 600; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 17px; border: 1.5px solid var(--border); font-size: 14px; color: var(--text); background: transparent; }
.chip.on { background: var(--raised); background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }
:root[data-theme='light'] .chip.on { color: var(--accent); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--raised); color: var(--muted); }
.badge.accent { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }

/* ---- формы */
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, select.input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-size: 17px; outline: none; -webkit-appearance: none; appearance: none; }
.input:focus { border-color: var(--accent); }
.input.error { border-color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; } .hint.error { color: var(--danger); }
.seg { display: flex; background: var(--raised); border-radius: 14px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 42px; border-radius: 11px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--raised); border: 1.5px solid var(--border); flex-shrink: 0; transition: .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch.on { background: var(--accent); border-color: var(--accent); } .switch.on::after { left: 23px; background: var(--on-accent); }
.list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; min-height: 56px; }
.list-item + .list-item { border-top: 1px solid var(--border); }
.list-item:active { background: var(--raised); }
.list-item .ico { width: 36px; height: 36px; border-radius: 12px; background: var(--raised); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* ---- плитки с картинкой */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 120px; background: var(--raised); border: 2px solid transparent; text-align: left; color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.82)); }
.tile .t { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-weight: 700; line-height: 1.2; }
.tile .t small { display: block; font-weight: 400; font-size: 12px; opacity: .85; margin-top: 2px; }
.tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tile .check { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 13px; background: var(--accent); color: var(--on-accent); display: none; align-items: center; justify-content: center; font-weight: 800; }
.tile.on .check { display: flex; }
.tile.wide { grid-column: 1 / -1; min-height: 150px; }
.tiles.small { grid-template-columns: repeat(3, 1fr); gap: 10px; } .tiles.small .tile { min-height: 96px; } .tiles.small .t { font-size: 13px; }
.hero { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 190px; background: var(--raised); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.78)); }
.hero .t { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.hero .t h2 { color: #fff; }

/* ---- прогресс и кольца */
.progress { height: 10px; border-radius: 5px; background: var(--raised); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s; }
.ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: var(--raised); } .ring .val { stroke: var(--accent); transition: stroke-dashoffset .8s; }
.ring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px 8px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--accent); } .stat span { font-size: 12px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week .d { text-align: center; padding: 8px 0; border-radius: 12px; font-size: 12px; color: var(--muted); border: 1.5px solid transparent; }
.week .d b { display: block; font-size: 16px; color: var(--text); margin-top: 2px; }
.week .d.train { background: var(--raised); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.week .d.today { border-color: var(--accent); } .week .d.done b { color: var(--ok); } .week .d.missed b { color: var(--danger); }

/* ---- тренировка */
.ex-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #dfe9f5; aspect-ratio: 4 / 3; }
.ex-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s; }
.ex-img img.b { opacity: 0; } .ex-img.swap img.a { opacity: 0; } .ex-img.swap img.b { opacity: 1; }
.ex-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); background: var(--raised); aspect-ratio: 4 / 3; border-radius: var(--radius); font-size: 14px; }
.setrow { display: grid; grid-template-columns: 34px 1fr 1fr 52px; gap: 8px; align-items: center; padding: 8px 0; }
.setrow .n { font-weight: 700; color: var(--muted); text-align: center; }
.setrow.active { background: var(--raised); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 14px; margin: 0 -8px; padding: 8px; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.stepper button { width: 38px; height: 46px; font-size: 22px; color: var(--accent); flex-shrink: 0; }
.stepper button:active { background: var(--raised); }
.stepper input { width: 100%; min-width: 0; text-align: center; border: 0; background: transparent; font-size: 17px; font-weight: 700; outline: none; padding: 0; }
.stepper small { display: block; text-align: center; font-size: 10px; color: var(--muted); }
.check-btn { width: 52px; height: 46px; border-radius: 14px; border: 1.5px solid var(--border); font-size: 22px; color: var(--muted); }
.check-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rest { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); z-index: 30; background: var(--raised); border: 1.5px solid var(--accent); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); max-width: 696px; margin: 0 auto; }
.rest .time { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-2); line-height: 1; }
:root[data-theme='light'] .rest .time { color: var(--accent); }

/* ---- шторка, уведомление */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; z-index: 50; }
.sheet-backdrop.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--surface); border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .22s ease-out; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; border: 1px solid var(--border); border-bottom: 0; }
.sheet.show { transform: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 4px 20px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 20px calc(var(--safe-b) + 20px); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); background: var(--raised); color: var(--text); border: 1px solid var(--border); padding: 12px 18px; border-radius: 16px; z-index: 80; opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; font-size: 15px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.install { margin-bottom: 14px; }
.badge-img { width: 64px; height: 64px; object-fit: contain; }
.ach { text-align: center; } .ach.locked img { filter: grayscale(1) opacity(.35); } .ach b { display: block; font-size: 12px; margin-top: 4px; line-height: 1.2; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .c { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; border: 1.5px solid transparent; position: relative; }
.cal .c.full { background: color-mix(in srgb, var(--ok) 30%, transparent); } .cal .c.part { background: color-mix(in srgb, var(--warn) 30%, transparent); }
.cal .c.missed { background: color-mix(in srgb, var(--danger) 25%, transparent); } .cal .c.planned { border-color: var(--accent); }
.cal .c.extra { background: color-mix(in srgb, var(--cyan) 28%, transparent); } .cal .c.today { font-weight: 800; outline: 2px solid var(--accent); }
.cal .h { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.food-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.food-row img, .food-row .ph { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--raised); }
.macro { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.macro b { color: var(--text); }
.search { position: relative; } .search .input { padding-left: 42px; } .search::before { content: '⌕'; position: absolute; left: 14px; top: 11px; font-size: 22px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .photo-grid img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; width: 100%; background: var(--raised); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (display-mode: standalone) { .install { display: none; } }

.legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; border: 1.5px solid transparent; }
.legend i.full { background: color-mix(in srgb, var(--ok) 30%, transparent); } .legend i.part { background: color-mix(in srgb, var(--warn) 30%, transparent); }
.legend i.missed { background: color-mix(in srgb, var(--danger) 25%, transparent); } .legend i.planned { border-color: var(--accent); }
.legend i.extra { background: color-mix(in srgb, var(--cyan) 28%, transparent); }

/* BP PWA 1.0.7 — локальное выравнивание каталога/подходов без изменения темы. */
.bp107-set-progress { height: 5px; border-radius: 999px; overflow: hidden; background: var(--raised); }
.bp107-set-progress > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.bp107-set-count { font-variant-numeric: tabular-nums; }
.bp107-action { display: inline-flex; align-items: center; gap: 6px; }
.bp107-action > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* BP PWA warmup: a compact, readable pre-workout stage */
.bp-warmup-card { margin-top: 12px; }
.bp-warmup-clock { margin: 20px auto 12px; font-size: clamp(48px, 14vw, 76px); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: -2px; }
.bp-warmup-list { margin: 20px 0 0; padding-left: 22px; line-height: 1.7; }
.bp-warmup-list li { margin-bottom: 8px; }

/* BodyPlanner: Android-style interactive general warmup */
.bpaw-summary { align-items: center; justify-content: space-between; }
.bpaw-summary h3 { margin: 0 0 3px; }
.bpaw-percent { color: var(--accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.bpaw-list { display: grid; gap: 12px; margin-top: 18px; }
.bpaw-item { border: 1px solid var(--border); background: var(--raised); border-radius: 18px; padding: 14px; }
.bpaw-item.is-active { border: 2px solid var(--accent); }
.bpaw-item.is-done { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.bpaw-item-heading { display: flex; align-items: center; gap: 12px; }
.bpaw-item-heading p { margin: 3px 0 0; }
.bpaw-item-heading input { width: 21px; height: 21px; accent-color: var(--accent); flex-shrink: 0; }
.bpaw-glyph { font-size: 30px; color: var(--accent); flex-shrink: 0; }
.bpaw-timed { display:flex; flex-direction:column; align-items:center; gap:8px; padding-top:15px; }
.bpaw-timer { font-size: 38px; font-weight: 800; color: var(--accent); font-variant-numeric:tabular-nums; }
.bpaw-actions { display:grid; gap:10px; margin-top:18px; }
.bpaw-actions button { width:100%; }
.bpaw-actions button:disabled { opacity:.45; cursor:not-allowed; }

/* BodyPlanner iPhone warm-up: photo cards match native Android hierarchy. */
.bpaw-item-heading { display: grid; grid-template-columns: 68px 24px minmax(0,1fr); gap: 12px; align-items: center; min-width: 0; }
.bpaw-photo { display:block; width:68px; height:76px; object-fit:cover; border-radius:12px; background:#152c32; }
.bpaw-copy { min-width:0; overflow-wrap:break-word; line-height:1.3; }
.bpaw-copy b { font-size: 1rem; }
.bpaw-item-heading input { margin:0; }
.bpaw-item { overflow:hidden; }
@media(max-width:360px){.bpaw-item-heading{ grid-template-columns: 56px 22px minmax(0,1fr);gap:9px;}.bpaw-photo{width:56px;height:65px;}.bpaw-item{padding:11px;}}

/* BodyPlanner PWA: thumbnails in exercise catalog and all selection lists. */
.bp-ex-thumb { width: 76px; height: 64px; border-radius: 12px; background: #e9eff4;
  flex: 0 0 76px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border); }
.bp-ex-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bp-ex-thumb-empty { background: var(--raised); color: var(--muted); text-align: center;
  padding: 5px; font-size: 11px; line-height: 1.25; }
.bp-ex-thumb-empty img { display: none; }
.bp-timed-set { align-items: center; }
.bp-timed-n { width: 28px; text-align: center; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.bp-add-set { min-height: 42px; }
@media (max-width: 385px) {
  .bp-ex-thumb { width: 62px; height: 62px; flex-basis: 62px; }
  .bp-ex-thumb-empty { font-size: 10px; }
}

/* BodyPlanner: каталог — избранное и удобный визуальный выбор (PWA only). */
.bp-discovery-row{display:flex;align-items:stretch;gap:8px;min-width:0}
.bp-discovery-row>.list-item{min-width:0;flex:1}
.bp-fav-button{min-width:44px;min-height:44px;align-self:stretch;border:1px solid var(--border,#33434e);border-radius:14px;background:var(--card,#14242d);color:var(--muted,#9daeb8);font-size:24px;cursor:pointer}
.bp-fav-button.on{color:var(--accent,#20d4c8)}
.bp-fav-button:focus-visible{outline:3px solid var(--accent,#20d4c8);outline-offset:2px}

/* BodyPlanner PWA 1.1.0 RC1 — раздельные профиль/настройки и сообщества. */
.bp-profile-settings-button { font-size: 22px; width: 44px; height: 44px; }
.bp-community-actions { display: grid; gap: 10px; }
.bp-community-link { display: block; text-align: center; padding: 14px 16px; border-radius: 16px;
  font-weight: 750; font-size: 16px; text-decoration: none; border: 1px solid var(--border); }
.bp-community-main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.bp-community-secondary { background: var(--raised); color: var(--text); border-color: var(--border); }
.bp-community-link:focus-visible, .bp-profile-settings-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* BodyPlanner PWA 1.1.0 RC5: muscle workload figures and uncluttered progression */
.bp-muscle-card { overflow:hidden; }
.bp-muscle-periods { display:grid; grid-template-columns:repeat(4,minmax(0,1fr));gap:5px; }
.bp-muscle-tab { border:1px solid var(--border); background:var(--raised);color:var(--muted);
  padding:10px 2px;border-radius:10px;font-size:11px;font-weight:650;min-height:40px; }
.bp-muscle-tab[aria-pressed='true'] { background:var(--accent);color:var(--on-accent);border-color:var(--accent); }
.bp-muscle-totals { display:grid; grid-template-columns:1fr 1fr;gap:8px; }
.bp-muscle-totals>div { background:var(--raised);border-radius:12px;padding:10px;text-align:center; }
.bp-muscle-totals b { display:block;font-size:21px;color:var(--text); }
.bp-muscle-totals span { font-size:11px;color:var(--muted); }
.bp-muscle-figures { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px; }
.bp-muscle-figure { min-width:0; overflow:hidden;border-radius:15px;background:#101518;padding:8px 5px; }
.bp-muscle-caption {font-size:11px;font-weight:700;color:#adc4cc;text-align:center;letter-spacing:.07em;margin-bottom:5px;}
.bp-muscle-art {position:relative;aspect-ratio:5/9;width:100%;max-width:210px;margin:auto;overflow:hidden;}
.bp-muscle-art img {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.bp-muscle-art img.bp-muscle-mask {mix-blend-mode:screen;}
.bp-muscle-groups { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px; }
.bp-muscle-group {display:flex;justify-content:space-between;align-items:center;gap:6px;text-align:left;
  min-width:0;padding:9px 10px;border-radius:10px;border:1px solid var(--border);background:var(--raised);
  color:var(--text);font-size:12px;}
.bp-muscle-group b {color:var(--accent);font-variant-numeric:tabular-nums;}
.bp-muscle-group.selected {border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--raised));}

.bp-muscle-hit {position:absolute;inset:0;width:100%;height:100%;z-index:2;touch-action:manipulation;}
.bp-muscle-hit path {cursor:pointer;pointer-events:all;}

/* BodyPlanner 1.1.3 — фирменная точка входа в существующий сканер. */
.scan-entry {
  border-color: var(--accent);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
}
.scan-entry-title { font-size: 17px; font-weight: 800; line-height: 1.2; }
.scan-entry-hint { margin-top: 7px; line-height: 1.45; }
.scan-entry-button { margin-top: 14px; width: 100%; }
.scan-entry-button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* BodyPlanner 1.1.3 — optional Yandex Music sheet in existing brand palette. */
.bp-music-playlist { display:flex; align-items:center; gap:12px; min-height:64px; padding:12px 14px; margin:0 0 10px; border:1px solid var(--border); border-radius:var(--radius-s); background:var(--surface); color:var(--text); text-decoration:none; }
.bp-music-playlist:focus-visible { outline:3px solid var(--accent-2); outline-offset:2px; }
.bp-music-playlist:active { border-color:var(--accent); background:var(--raised); }
.bp-music-playlist .bp-music-category { display:block; color:var(--muted); font-size:12px; margin-bottom:3px; }
.bp-music-playlist b { display:block; font-size:15px; }
