:root {
  --bg: #0e0f11; --card: #17191d; --card2: #1e2126; --line: #272a30; --text: #f2f3f5; --muted: #8b9099;
  --accent: #c6f24e; --on-accent: #12150a; --danger: #ff5f5f; --gold: #ffc857; --ok: #5fd38d;
  --r: 16px; --tab: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.35 Inter, system-ui, sans-serif; overscroll-behavior: none; }
body { padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 16px); font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.screen { padding: 18px 16px 8px; max-width: 560px; margin: 0 auto; }
.top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.top h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.top .sub { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 14px; font-weight: 700; background: var(--card2); border: 1px solid var(--line); width: 100%; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-size: 17px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 40px; font-size: 14px; border-radius: 12px; width: auto; }
.btn:active { transform: scale(.985); opacity: .9; }

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0 4px; }
.wd { text-align: center; font-size: 12px; color: var(--muted); }
.wd i { display: block; width: 100%; aspect-ratio: 1; max-width: 38px; margin: 5px auto 0; border-radius: 50%; border: 2px solid var(--line); }
.wd.on i { background: var(--accent); border-color: var(--accent); }
.wd.today i { border-color: var(--text); } .wd.on.today i { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.meter { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 10px; }
.meter b { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* lists */
.tpl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tpl:first-of-type { border-top: 0; }
.tpl b { font-weight: 600; } .tpl .go { min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.tpl .go.next { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dots-btn { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat > div { background: var(--card2); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 20px; font-weight: 800; } .stat span { font-size: 12px; color: var(--muted); }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.c-line { stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--accent); opacity: .1; } .c-dot { fill: var(--accent); stroke: var(--card); stroke-width: 3; }
.c-bar { fill: #3a3f47; } .c-bar.hl { fill: var(--accent); }
.c-ax { fill: var(--muted); font-size: 10.5px; } .c-val { fill: var(--text); font-size: 11px; font-weight: 600; }
.heat rect { fill: var(--card2); } .heat .h1 { fill: #6c8a24; } .heat .h2 { fill: var(--accent); } .heat .now { stroke: var(--text); stroke-width: 2; }
.empty-chart { color: var(--muted); font-size: 14px; padding: 18px 4px; text-align: center; }
.mrow { display: grid; grid-template-columns: 74px 1fr 30px; gap: 10px; align-items: center; margin: 7px 0; font-size: 14px; }
.mrow i { display: block; height: 10px; border-radius: 5px; background: var(--card2); overflow: hidden; } .mrow i b { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.mrow span:last-child { text-align: right; color: var(--muted); }
.pr-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pr-row:first-of-type { border-top: 0; } .pr-row b { color: var(--gold); font-weight: 700; white-space: nowrap; }

/* badges */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--card2); font-size: 12px; line-height: 1.25; }
.badge svg { width: 34px; height: 34px; display: block; margin: 0 auto 6px; }
.badge.off { opacity: .4; filter: grayscale(1); }
.badge b { display: block; font-weight: 600; font-size: 12.5px; }

/* history */
.hist { padding: 0; overflow: hidden; }
.hist > button { display: flex; width: 100%; text-align: left; padding: 14px; gap: 12px; align-items: center; }
.hist .date { width: 46px; text-align: center; flex: none; } .hist .date b { display: block; font-size: 22px; font-weight: 800; line-height: 1; } .hist .date span { font-size: 12px; color: var(--muted); }
.hist .pr { color: var(--gold); font-weight: 700; font-size: 12px; }
.hist .det { padding: 0 14px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.hist .det p { margin-top: 10px; } .hist .det .sets { color: var(--muted); }

/* tab bar */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(14,15,17,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 20; }
#tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
#tabs button.on { color: var(--accent); } #tabs svg { width: 24px; height: 24px; }

/* workout overlay */
#wk { position: fixed; inset: 0; background: var(--bg); z-index: 40; overflow-y: auto; padding-bottom: 150px; }
.wk-top { position: sticky; top: 0; z-index: 3; background: rgba(14,15,17,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) 12px 10px; display: flex; align-items: center; gap: 10px; }
.wk-top .t { flex: 1; min-width: 0; } .wk-top .t b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wk-top .t span { font-size: 13px; color: var(--muted); }
.wk-top .fin { background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 0 16px; min-height: 40px; border-radius: 12px; }
.wk-top .min { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); font-size: 18px; }
.ex { margin: 12px 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.ex-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ex-h b { font-size: 17px; font-weight: 700; } .ex-h small { color: var(--muted); font-size: 12px; display: block; }
.prev { font-size: 13px; color: var(--muted); margin: 8px 0 2px; } .hint { font-size: 13px; font-weight: 600; color: var(--accent); margin: 2px 0 4px; }
.sh { display: grid; grid-template-columns: 22px 1fr 1fr 48px; gap: 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 4px; text-align: center; }
.set { display: grid; grid-template-columns: 22px 1fr 1fr 48px; gap: 8px; align-items: center; margin: 6px 0; }
.set .n { text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.num { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; background: var(--card2); border-radius: 12px; height: 48px; }
.num button { height: 48px; font-size: 20px; color: var(--muted); } .num button:active { color: var(--text); }
.num input { width: 100%; min-width: 0; height: 48px; background: none; border: 0; text-align: center; font-size: 18px; font-weight: 700; outline: none; padding: 0; }
.chk { width: 48px; height: 48px; border-radius: 12px; background: var(--card2); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; }
.chk svg { width: 24px; height: 24px; }
.set.done .chk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.set.done .num { opacity: .6; }
.add-set { width: 100%; min-height: 42px; margin-top: 6px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; border: 1px dashed var(--line); }
.add-ex { margin: 12px; width: calc(100% - 24px); }
#rest { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; z-index: 45; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#rest .time { font-size: 28px; font-weight: 800; min-width: 74px; } #rest .bar { position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; } #rest .bar b { display: block; height: 100%; background: var(--accent); }
#rest.over .time { color: var(--accent); }
#rest button { min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* summary */
.sum { padding: 28px 16px calc(24px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.sum h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.sum .pr-card { border-color: #5a4a1f; background: #1d1a12; }
.sum .nb { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-weight: 600; } .sum .nb svg { width: 34px; height: 34px; flex: none; }

/* sheet & toast */
#sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; }
#sheet .box { width: 100%; max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; border: 1px solid var(--line); border-bottom: 0; }
#sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 14px; }
#sheet h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.field { display: block; margin-bottom: 12px; } .field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select { width: 100%; height: 50px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); padding: 0 14px; font-size: 17px; outline: none; }
.field input:focus { border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 13px 2px; border-top: 1px solid var(--line); }
.pick small { color: var(--muted); }
.step { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.step .ctl { display: flex; align-items: center; gap: 4px; } .step .ctl button { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); font-size: 20px; } .step .ctl b { min-width: 64px; text-align: center; font-weight: 700; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab) + 24px + env(safe-area-inset-bottom)); z-index: 90; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; text-align: center; font-size: 14px; }
.offline { background: #3a2a10; color: var(--gold); font-size: 13px; text-align: center; padding: 6px; position: sticky; top: 0; z-index: 4; }
.denied { padding: 60px 24px; text-align: center; } .denied h1 { font-size: 24px; margin-bottom: 8px; }
.skeleton { height: 120px; border-radius: var(--r); background: var(--card); margin-bottom: 12px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { transition: none !important; } }

/* exercise guide & catalog */
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #e9ebee; flex: none; display: block; }
.thumb.ph { background: var(--card2); }
.ex-t { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; flex: 1; }
.ex-t span { min-width: 0; } .ex-t b { font-size: 17px; font-weight: 700; display: block; } .ex-t small { color: var(--muted); font-size: 12px; display: block; }
.pick { gap: 12px; } .pick .grow { min-width: 0; }
.sect { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 2px; }
.gif { display: flex; justify-content: center; margin-bottom: 12px; } .gif img { width: 240px; height: 240px; border-radius: 16px; background: #e9ebee; max-width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .tags span { padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.tags .sec { background: var(--card2); color: var(--text); font-weight: 500; } .tags .eq { background: none; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.steps { padding-left: 20px; margin: 0; } .steps li { margin: 0 0 9px; line-height: 1.4; font-size: 15px; }
.note { background: var(--card2); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 8px; } .note b { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.attr { text-align: center; color: var(--muted); font-size: 11px; margin-top: 14px; }

/* cover (home hero) */
.hero { position: relative; min-height: 470px; background-size: cover; background-position: center 30%; display: flex; flex-direction: column; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 16px 20px; max-width: 560px; margin: 0 auto; }
.hero-top { display: flex; justify-content: space-between; align-items: center; } .hero-date { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.hero-body .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hero-body h1 { font-size: 40px; line-height: 1.03; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.hero-body p { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 18px; }
.hero-btn { min-height: 60px; font-size: 18px; border-radius: 18px; } .hero-link { display: block; width: 100%; text-align: center; padding: 14px 0 0; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; color: var(--text); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .avatar svg { width: 22px; height: 22px; } .avatar.big { width: 56px; height: 56px; font-size: 22px; }
.top { align-items: center; } .top .sub { display: block; margin-top: 2px; }

/* profile overlay */
#pf { position: fixed; inset: 0; background: var(--bg); z-index: 50; overflow-y: auto; padding-bottom: 40px; }
.pf-top { position: sticky; top: 0; z-index: 3; background: rgba(14,15,17,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) 12px 10px; display: flex; align-items: center; justify-content: space-between; }
.pf-top .min { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); font-size: 24px; line-height: 1; } .pf-top b { font-size: 17px; }
.pf-head { display: flex; align-items: center; gap: 14px; }
.meas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .meas > div { background: var(--card2); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.meas span { grid-column: 1 / 3; font-size: 12px; color: var(--muted); } .meas b { font-size: 20px; font-weight: 800; } .meas i { font-style: normal; font-size: 12px; font-weight: 600; }

/* coach chat */
.coach { position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
body.kb .coach { bottom: 0; } body.kb #tabs { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.42; }
.bub p { margin: 0 0 8px; } .bub p:last-child, .bub ul:last-child { margin-bottom: 0; } .bub ul { margin: 0 0 8px; padding-left: 18px; } .bub li { margin-bottom: 4px; } .bub b { font-weight: 700; }
.bub.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; font-weight: 500; }
.bub.err { align-self: center; background: #3a1f1f; color: #ffb4b4; font-size: 14px; }
.typing { display: flex; gap: 5px; padding: 14px 16px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px; scrollbar-width: none; } .quick::-webkit-scrollbar { display: none; } .quick:empty { display: none; }
.cinput { display: flex; gap: 8px; padding: 8px 16px 12px; }
.cinput input { flex: 1; min-width: 0; height: 48px; border-radius: 24px; background: var(--card2); border: 1px solid var(--line); padding: 0 18px; font-size: 16px; outline: none; } .cinput input:focus { border-color: var(--accent); }
.send { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex: none; } .send svg { width: 22px; height: 22px; }

/* post-workout feedback */
.feel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .feel button { min-height: 52px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 0 2px; }
.feel button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-bottom: 0; } .chip[data-act=hard].on { background: var(--gold); color: #1d1500; border-color: var(--gold); }

/* programs */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.seg button { min-height: 42px; border-radius: 10px; font-weight: 600; color: var(--muted); } .seg button.on { background: var(--card2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.pname { font-size: 19px; font-weight: 700; } .next-tag { margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: 3px 8px; border-radius: 999px; vertical-align: 2px; }
.thumbs { display: flex; gap: 6px; margin-top: 12px; overflow: hidden; } .thumbs .thumb { width: 40px; height: 40px; border-radius: 8px; }
#pe { position: fixed; inset: 0; background: var(--bg); z-index: 52; overflow-y: auto; padding-bottom: 40px; }
.ptitle { font-size: 17px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ptitle b { font-weight: 700; } 
.pitem { padding: 10px 12px; } .mv { display: flex; gap: 6px; } .mv button { width: 40px; height: 40px; border-radius: 10px; background: var(--card2); font-size: 18px; } .mv button:disabled { opacity: .25; }
.prop { align-self: flex-start; max-width: 92%; margin-top: -4px; background: #1b2111; border: 1px solid #3d4a1c; border-radius: 16px; padding: 12px 14px; }
.prop-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; } .prop ul { margin: 0 0 10px; padding-left: 18px; font-size: 15px; } .prop li { margin-bottom: 4px; }
.prop-s { font-size: 14px; font-weight: 600; color: var(--muted); } .prop-s.applied { color: var(--ok); }

/* body figures */
.bmap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bmap figure { margin: 0; text-align: center; } .bmap figcaption { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bfig { width: 100%; height: auto; max-height: 340px; display: block; }
.zone.hot { animation: ignite .7s ease-out both, pulse 3.4s ease-in-out 1s infinite; animation-delay: var(--d), calc(var(--d) + 1s); }
@keyframes ignite { from { opacity: 0; } to { opacity: 1; } } @keyframes pulse { 50% { opacity: .72; } }
.lgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .lg { padding: 5px 11px; border-radius: 999px; background: var(--card2); font-size: 13px; color: var(--muted); } .lg.hi { background: #3a1716; color: #ff8a82; font-weight: 600; }
.pfig { width: 100%; height: auto; max-height: 380px; display: block; } .mline { stroke: var(--accent); stroke-width: .8; stroke-dasharray: 3 3; opacity: .55; } .mtxt { fill: var(--accent); font-size: 9px; font-weight: 700; }
.breath { transform-origin: 100px 200px; animation: breathe 4.5s ease-in-out infinite; } @keyframes breathe { 50% { transform: scale(1.006, 1.004); } }
@media (prefers-reduced-motion: reduce) { .zone.hot, .breath { animation: none; } }
.bodycard { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; } .bodycard .kv { display: grid; gap: 10px; } .kv b { font-size: 22px; font-weight: 800; display: block; line-height: 1.1; } .kv span { font-size: 12px; color: var(--muted); }

.tpl-main { text-align: left; min-width: 0; } .tpl-main b { font-weight: 600; display: block; }

/* workout v2: focus card + compact rows */
.wk-top { position: sticky; } .wk-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--line); } .wk-bar b { display: block; height: 100%; background: var(--accent); transition: width .35s ease; }
.ex.focus { border-color: #4a5a1e; scroll-margin-top: 76px; }
.exr { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 8px 12px 0; padding: 10px 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.exr .grow { min-width: 0; } .exr b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .exr small { color: var(--muted); font-size: 13px; } .exr .chev { color: var(--muted); font-size: 20px; }
.exr.ok { opacity: .62; } .exr.ok .thumb { display: none; }
.okm { width: 48px; height: 48px; border-radius: 10px; background: #1f2b14; color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; } .okm svg { width: 24px; height: 24px; }
.go-set { margin-top: 10px; min-height: 56px; font-size: 17px; }
.ex.alldone { display: grid; gap: 4px; text-align: center; border-color: #4a5a1e; }
.cancel-wk { display: block; margin: 4px auto 0; padding: 12px; color: var(--muted); font-size: 14px; }
#rest { flex-wrap: wrap; row-gap: 4px; } #rest .nx { flex-basis: 100%; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 4px; } #rest .nx:empty { display: none; }

/* start v2 */
.hero-mus { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: -4px 0 14px; padding: 10px 12px; border-radius: 16px; background: rgba(23,25,29,.72); border: 1px solid rgba(255,255,255,.08); }
.bmini { display: flex; gap: 2px; flex: none; } .bmini svg { width: 40px; height: 104px; display: block; }
.hm-l { display: flex; flex-wrap: wrap; gap: 4px 10px; align-content: center; } .hm-l .small { width: 100%; } .hm-l b { font-weight: 600; font-size: 15px; color: var(--muted); } .hm-l b.r { color: #ff7b72; }
.wk-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots7 { display: flex; gap: 6px; } .dots7 span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); } .dots7 i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.dots7 .on i { background: var(--accent); border-color: var(--accent); } .dots7 .today i { border-color: var(--text); } .dots7 .on.today i { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.tipc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; } .tipc > svg { width: 28px; height: 28px; color: var(--accent); flex: none; } .tipc .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tipc .tt { font-size: 15px; line-height: 1.35; } .tipc .chev { color: var(--muted); font-size: 22px; }

/* onboarding */
#ob { position: fixed; inset: 0; z-index: 55; background: var(--bg); overflow-y: auto; }
.ob { min-height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; } .ob-dots { display: flex; gap: 6px; } .ob-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); } .ob-dots i.on { background: var(--accent); }
.ob-body { flex: 1; padding-top: 28px; } .ob-body h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; } .ob-body > p { margin-bottom: 20px; }
.opt { display: block; width: 100%; text-align: left; padding: 16px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.opt.on { border-color: var(--accent); background: #1b2111; color: var(--accent); } .opt-row { display: flex; gap: 8px; } .opt-row .opt { text-align: center; margin: 0; }
.ob-foot { display: flex; gap: 8px; padding-top: 16px; flex-wrap: wrap; } .ob-foot .btn.primary { flex: 1; } .ob-foot .btn[data-off] { opacity: .45; }
.err { color: var(--danger); font-size: 14px; min-height: 18px; }
/* empty states + week compare */
.card.empty { text-align: center; padding: 28px 18px; } .card.empty b { display: block; font-size: 19px; margin: 10px 0 6px; } .card.empty ul { text-align: left; margin: 10px auto 18px; max-width: 280px; padding-left: 20px; color: var(--muted); font-size: 15px; } .card.empty p { margin-bottom: 14px; }
.empty-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: #1b2111; color: var(--accent); display: flex; align-items: center; justify-content: center; } .empty-ic svg { width: 28px; height: 28px; }
.stat.cmp i { display: block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--muted); } .stat.cmp i.up { color: var(--ok); } .stat.cmp i.dn { color: var(--gold); }
