/* DN Training */
:root {
	--bg: #F3F1EC;
	--card: #FFFFFF;
	--card2: #ECE9E2;
	--ink: #121410;
	--mute: #6B6F66;
	--line: rgba(18, 20, 16, .09);
	--acc: #C6F432;
	--acc-ink: #3D5C00;
	--on-acc: #10140A;
	--fig: #1A1D17;
	--ghost: #A9ADA3;
	--eq: #C9C6BD;
	--eq-fill: #E7E4DC;
	--arrow: #6E9A00;
	--shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -18px rgba(30, 30, 20, .35);
	--r: 22px;
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
	--num: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", system-ui, sans-serif;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0B0C0A;
		--card: #151714;
		--card2: #1E211D;
		--ink: #EEF1E8;
		--mute: #8C9287;
		--line: rgba(255, 255, 255, .08);
		--acc-ink: #C6F432;
		--fig: #EEF1E8;
		--ghost: #5B6158;
		--eq: #3F443D;
		--eq-fill: #242823;
		--arrow: #C6F432;
		--shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.8);
	}
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 60vh; background: radial-gradient(60% 60% at 70% 20%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); pointer-events: none; z-index: 0; opacity: .55; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
.dnt { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom)); }
.dnt-boot { height: 60vh; }
.muted { color: var(--mute); }

/* bar */
.bar { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand span { font-weight: 600; color: var(--mute); font-size: 15px; letter-spacing: 0; }
.sync { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mute); }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 3px color-mix(in srgb, #3BB273 20%, transparent); }
.sync.is-saving i { background: #E2B93B; animation: pulse 1s infinite; box-shadow: 0 0 0 3px color-mix(in srgb, #E2B93B 20%, transparent); }
.sync.is-offline i { background: #E5484D; box-shadow: 0 0 0 3px color-mix(in srgb, #E5484D 20%, transparent); }
@keyframes pulse { 50% { opacity: .35; } }
.icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 0; }
.icon svg { width: 18px; height: 18px; fill: currentColor; }

/* day switcher */
.days { display: flex; gap: 6px; padding: 5px; background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); border-radius: 20px; position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 20; margin-bottom: 14px; }
.wk { flex: 0 0 30px; border: 0; background: none; color: var(--mute); font-size: 22px; border-radius: 12px; }
.dsw { flex: 1 1 0; min-width: 0; border: 0; background: none; border-radius: 15px; padding: 8px 2px 7px; display: grid; justify-items: center; gap: 1px; position: relative; transition: background .2s, transform .15s; }
.dsw:active { transform: scale(.96); }
.dsw-d { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dsw-n { font: 700 19px/1.1 var(--num); font-variant-numeric: tabular-nums; }
.dsw-c { font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dsw.is-today .dsw-n::after { content: ""; position: absolute; top: 6px; right: calc(50% - 18px); width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px var(--card); }
.dsw.is-sel { background: var(--ink); color: var(--bg); }
.dsw.is-sel .dsw-d, .dsw.is-sel .dsw-c { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.dsw.is-done::before { content: ""; position: absolute; left: 30%; right: 30%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--acc); }
.dsw.is-part::before { content: ""; position: absolute; left: 40%; right: 40%; bottom: 3px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--acc) 55%, var(--mute)); }

/* layout */
.grid { display: grid; gap: 14px; }
@media (min-width: 960px) {
	.grid { grid-template-columns: 360px 1fr; align-items: start; }
	.hero { position: sticky; top: 92px; }
}

/* hero bento */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.tile-main { grid-column: 1 / -1; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 26%, var(--card)) 0%, var(--card) 55%); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 650; }
.hero h1 { font: 800 clamp(40px, 11vw, 56px)/.95 var(--font); letter-spacing: -.045em; margin: 8px 0 8px; }
.hero-t { margin: 0 0 4px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.hero-f { margin: 0 0 12px; color: var(--mute); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--card2); color: var(--ink); font-weight: 560; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip-acc { background: var(--acc); color: var(--on-acc); }
.chip-ghost { background: none; border: 1px solid var(--line); color: var(--mute); }
.tile-ring { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; grid-row: span 2; align-content: center; }
.tile-ring .ring { width: 100%; max-width: 92px; height: auto; }
.ring { transform: rotate(-90deg); }
.ring .trk, .timer-ring .trk { fill: none; stroke: var(--card2); stroke-width: 7; }
.ring .val, .timer-ring .val { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.2,.8,.2,1); }
.ring-l b { display: block; font: 800 30px/1 var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ring-l small { font-size: 16px; color: var(--mute); font-weight: 600; }
.ring-l span, .sub { font-size: 12px; color: var(--mute); }
.ring-s { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
.big { display: block; font: 800 26px/1.1 var(--num); letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.big small { font-size: 14px; color: var(--mute); }
.bw { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 6px; }
.bw input { width: 100%; min-width: 0; border: 0; background: none; font: 800 26px/1.1 var(--num); letter-spacing: -.03em; padding: 0; outline: none; }
.bw input::placeholder { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.bw span { color: var(--mute); font-size: 14px; }
.goal { height: 6px; border-radius: 6px; background: var(--card2); overflow: hidden; margin-bottom: 6px; }
.goal i { display: block; height: 100%; background: var(--acc); border-radius: 6px; }
.tile-rules { grid-column: 1 / -1; }
.tile-rules summary { list-style: none; cursor: pointer; display: grid; gap: 2px; position: relative; }
.tile-rules summary::-webkit-details-marker { display: none; }
.tile-rules summary::after { content: "+"; position: absolute; right: 0; top: 4px; font-size: 20px; color: var(--mute); transition: transform .2s; }
.tile-rules[open] summary::after { transform: rotate(45deg); }
.tile-rules p { margin: 10px 0 0; font-size: 14px; }

/* exercise cards */
.list { display: grid; gap: 12px; }
.ex { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); transition: border-color .25s, background .25s; }
.ex.is-done { border-color: color-mix(in srgb, var(--acc) 70%, transparent); background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 8%, var(--card)), var(--card)); }
.ex-top { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; position: relative; }
.ex-top .ex-check { position: absolute; right: 0; top: 0; }
.ex-head { padding-right: 44px; padding-top: 2px; }
@media (min-width: 640px) { .ex-top { grid-template-columns: 220px 1fr; } }
.ex-meta { margin-top: 10px; }
.ex-fig { border: 0; padding: 0; border-radius: 16px; background: var(--card2); overflow: hidden; aspect-ratio: 4 / 3; display: block; width: 100%; position: relative; }
.ex-fig::after { content: "⤢"; position: absolute; right: 6px; bottom: 4px; font-size: 13px; color: var(--mute); }
.ex-head { min-width: 0; }
.ex h3 { word-break: normal; hyphens: auto; }
.ex-no { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--num); color: var(--mute); margin-bottom: 4px; }
.ex-no span { font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--card2); font-variant-numeric: tabular-nums; }
.ex h3 { margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
.en { margin: 2px 0 8px; color: var(--mute); font-size: 12.5px; }
.up { margin-top: 8px; font-size: 12.5px; font-weight: 650; color: var(--acc-ink); background: color-mix(in srgb, var(--acc) 18%, transparent); padding: 6px 9px; border-radius: 10px; }
.prev { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.prev b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-check, .tick { border: 1.5px solid var(--line); background: var(--card2); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; transition: background .2s, border-color .2s, transform .15s; }
.ex-check svg, .tick svg { width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.ex-check[aria-pressed="true"], .tick[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); }
.ex-check[aria-pressed="true"] svg, .tick[aria-pressed="true"] svg { stroke: var(--on-acc); opacity: 1; }
.tick:active, .ex-check:active { transform: scale(.9); }
.cues { margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.cues summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--mute); list-style: none; display: flex; align-items: center; gap: 6px; }
.cues summary::-webkit-details-marker { display: none; }
.cues summary::before { content: "›"; display: inline-block; transition: transform .2s; font-size: 16px; }
.cues[open] summary::before { transform: rotate(90deg); }
.cues p { margin: 8px 0 0; font-size: 14px; }

/* sets */
.sets { max-width: 640px; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.set { display: grid; grid-template-columns: 26px 1fr 1fr 40px; gap: 8px; align-items: center; padding: 6px; border-radius: 16px; background: color-mix(in srgb, var(--card2) 60%, transparent); transition: background .2s; }
.set.is-done { background: color-mix(in srgb, var(--acc) 16%, var(--card)); }
.set.is-warm { background: none; border: 1px dashed var(--line); }
.set.is-warm.is-done { background: color-mix(in srgb, var(--acc) 10%, var(--card)); border-color: color-mix(in srgb, var(--acc) 35%, transparent); }
.set.is-opt .set-n::after { content: "доп"; display: block; font-size: 8px; color: var(--mute); letter-spacing: .04em; }
.set-n { font: 700 14px/1 var(--num); text-align: center; color: var(--mute); }
.set.is-done .set-n { color: var(--acc-ink); }
.stp { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; height: 40px; position: relative; min-width: 0; }
.stp button { border: 0; background: none; height: 100%; font-size: 18px; color: var(--mute); border-radius: 10px; }
.stp button:active { background: var(--card2); }
.stp input { width: 100%; min-width: 0; border: 0; background: none; text-align: center; font: 700 17px/1 var(--num); font-variant-numeric: tabular-nums; padding: 0 0 9px; outline: none; }
.stp input::placeholder { color: color-mix(in srgb, var(--ink) 30%, transparent); font-weight: 600; font-size: 14px; }
.stp em { position: absolute; left: 32px; right: 32px; bottom: 3px; text-align: center; font-style: normal; font-size: 9px; color: var(--mute); pointer-events: none; text-transform: uppercase; letter-spacing: .05em; }
.set-tools { display: flex; gap: 14px; justify-content: flex-end; padding-top: 6px; }
.link { border: 0; background: none; color: var(--mute); font-size: 13px; padding: 4px 0; }
.cardio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cardio label { display: grid; gap: 4px; font-size: 11px; color: var(--mute); }
.cardio input { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; height: 42px; text-align: center; font: 700 17px var(--num); min-width: 0; width: 100%; outline: none; }

/* superset */
.ss { border-radius: calc(var(--r) + 6px); padding: 6px; background: color-mix(in srgb, var(--acc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); display: grid; gap: 6px; }
.ss-h { display: flex; gap: 10px; align-items: center; padding: 6px 8px 2px; }
.ss-h b { display: block; font-size: 14px; }
.ss-h span { font-size: 12px; color: var(--mute); }
.ss-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); font: 800 13px var(--num); }

/* finish */
.finish { margin-top: 14px; }
.btn { display: block; width: 100%; border: 1px solid var(--line); background: var(--card); padding: 14px 18px; border-radius: 16px; font-weight: 700; margin-top: 10px; text-align: center; }
.btn-acc { background: var(--ink); color: var(--bg); border-color: var(--ink); font-size: 16px; }
.btn[disabled] { opacity: .4; }
.btn-ghost { background: none; color: var(--mute); }
.finish.is-fin { display: flex; align-items: center; gap: 12px; background: var(--acc); color: var(--on-acc); padding: 16px 18px; border-radius: var(--r); }
.finish.is-fin b { display: block; font-size: 16px; }
.finish.is-fin span { font-size: 13px; }
.finish.is-fin .link { margin-left: auto; color: var(--on-acc); font-weight: 650; }
.rest .btn { margin-top: 16px; }

/* timer */
.timer { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px -12px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.2,.9,.2,1.1); z-index: 50; width: min(420px, calc(100% - 32px)); }
.timer:not(.is-on) { visibility: hidden; }
.timer.is-on { transform: translate(-50%, 0); }
.timer.is-over { background: var(--acc); color: var(--on-acc); animation: bump .6s ease 2; }
@keyframes bump { 50% { transform: translate(-50%, -6px); } }
.timer-ring { width: 46px; height: 46px; transform: rotate(-90deg); flex: 0 0 auto; }
.timer-ring .trk { stroke: color-mix(in srgb, var(--bg) 18%, transparent); stroke-width: 5; }
.timer-ring .val { stroke-width: 5; }
.timer.is-over .timer-ring .val { stroke: var(--on-acc); }
.timer-txt { flex: 1; min-width: 0; }
.timer-txt b { display: block; font: 800 22px/1 var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer-txt span { font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.timer button { border: 0; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 14%, transparent); color: inherit; font-weight: 700; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(5, 6, 4, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@media (min-width: 640px) { .modal { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--card); width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); position: relative; animation: rise .3s cubic-bezier(.2,.9,.2,1); }
@media (min-width: 640px) { .sheet { border-radius: 28px; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.sheet h3 { margin: 14px 0 2px; font-size: 20px; letter-spacing: -.02em; }
.sheet p { font-size: 15px; }
.sheet-fig { background: var(--card2); border-radius: 20px; overflow: hidden; }
.close { position: absolute; right: 14px; top: 14px; z-index: 2; }
/* 1.15.2: the close button stays visible while a long sheet scrolls, and the sheet never runs under the iPhone status bar. */
.sheet { max-height: min(92vh, calc(100dvh - env(safe-area-inset-top) - 12px)); overscroll-behavior: contain; }
.sheet > .close { position: sticky; top: 0; float: right; margin: -4px -4px 0 10px; background: var(--card2); box-shadow: 0 4px 14px -4px rgba(0,0,0,.45); z-index: 5; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mute); margin-top: 10px; }
.legend i { display: inline-block; width: 18px; height: 6px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lg-g { background: var(--ghost); } .lg-f { background: var(--fig); } .lg-a { background: var(--arrow); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--mute); margin: 10px 0; }
.field input { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; height: 44px; padding: 0 12px; }

.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 70; animation: rise .25s; transition: opacity .4s; max-width: calc(100% - 32px); }
.toast.out { opacity: 0; }

/* schematics (inline SVG) */
.dnt-scheme { display: block; width: 100%; height: auto; }
.dnt-photo { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sheet-fig .dnt-photo { height: auto; }
.ex-fig:has(.dnt-photo), .pk-fig:has(.dnt-photo), .sheet-fig:has(.dnt-photo) { background: #fff; }
@media (prefers-color-scheme: dark) { .dnt-photo { filter: brightness(.9); } }
.dnt-anim { position: relative; display: block; width: 100%; height: 100%; background: #fff; }
.dnt-anim + .dnt-photo { display: none; }
.dnt-anim-b { position: absolute; inset: 0; animation: dnt-xfade 3.6s ease-in-out infinite; }
.sheet-fig .dnt-anim .dnt-photo { height: auto; }
.sheet-fig .dnt-anim-b { height: 100%; }
@keyframes dnt-xfade { 0%, 25% { opacity: 0; } 42%, 75% { opacity: 1; } 92%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dnt-anim { display: none; } .dnt-anim + .dnt-photo { display: block; } }
.dnt-scheme .e { stroke: var(--eq); }
.dnt-scheme rect.e, .dnt-scheme circle.e { fill: var(--eq-fill); stroke: var(--eq); stroke-width: 2; }
.dnt-scheme .e.ghostpad { fill: none; stroke-dasharray: 3 3; opacity: .7; }
.dnt-scheme .e.floor { stroke: var(--line); }
.dnt-scheme .g { stroke: var(--ghost); }
.dnt-scheme .ghost { opacity: .55; }
.dnt-scheme .g.head, .dnt-scheme .g.body { fill: var(--ghost); }
.dnt-scheme .g.head { stroke: none; }
.dnt-scheme .f { stroke: var(--fig); }
.dnt-scheme .f.head, .dnt-scheme .f.body { fill: var(--fig); }
.dnt-scheme .f.head { stroke: none; }
.dnt-scheme .far { opacity: .55; }
.dnt-scheme .h { stroke: var(--card2); fill: none; }
.dnt-scheme .c { stroke: var(--mute); stroke-dasharray: 2 3; }
.dnt-scheme .a { stroke: var(--arrow); }
.dnt-scheme .ah { fill: var(--arrow); stroke: none; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--mute); font-size: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== view switch & stats ===== */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--card2); border-radius: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--mute); transition: background .2s, color .2s; }
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-view { margin-bottom: 12px; max-width: 420px; }
.seg-s { padding: 3px; border-radius: 11px; }
.seg-s button { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.link-stat { font-size: 12.5px; font-weight: 650; color: var(--acc-ink); padding: 0; margin-top: -4px; }

.stats { display: grid; gap: 12px; }
.pchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pchips::-webkit-scrollbar { display: none; }
.pchip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); }
.pchip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pchip-exp { margin-left: auto; background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis-3 { grid-template-columns: repeat(3, 1fr); } }
.kpis-3 { margin: 14px 0; }
.kpi .big { font-size: 28px; }
.sgrid { display: grid; gap: 12px; }
@media (min-width: 900px) { .sgrid { grid-template-columns: 1fr 1fr; } }
.t-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.t-h b { font-size: 16px; letter-spacing: -.01em; }
.t-h > span { font-size: 12px; color: var(--mute); }
.note { font-size: 12px; color: var(--mute); margin: 8px 0 0; }
.empty { color: var(--mute); font-size: 14px; padding: 18px 4px; text-align: center; }
.tile.empty { padding: 28px 18px; }

.radar { width: 100%; max-width: 420px; display: block; margin: 0 auto; overflow: visible; }
.rd-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-area { fill: url(#rdg); stroke: var(--acc); stroke-width: 2.2; stroke-linejoin: round; }
.rd-dot { fill: var(--acc); stroke: var(--card); stroke-width: 2; }
.rd-l { fill: var(--ink); font: 650 13px var(--font); }
.rd-v { fill: var(--acc-ink); font: 750 14px var(--num); }

.mbars { display: grid; gap: 9px; }
.mb { display: grid; grid-template-columns: minmax(0, 1.1fr) 1.4fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.mb-n { min-width: 0; line-height: 1.15; }
.mb-n em { display: block; font-style: normal; font-size: 10.5px; color: var(--mute); }
.mb-t { position: relative; height: 10px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.mb-z { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--acc) 18%, transparent); border-left: 1px dashed color-mix(in srgb, var(--acc-ink) 50%, transparent); border-right: 1px dashed color-mix(in srgb, var(--acc-ink) 50%, transparent); }
.mb-f { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 4px; background: var(--ink); opacity: .8; }
.mb.is-ok .mb-f { background: var(--acc); opacity: 1; }
.mb.is-hi .mb-f { background: #E2B93B; opacity: 1; }
.mb b { font: 700 13px var(--num); text-align: right; font-variant-numeric: tabular-nums; }

.vbars { display: flex; align-items: flex-end; height: 160px; gap: 0; padding-top: 18px; }
.vb { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 3px; min-width: 0; position: relative; }
.vb i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: height .5s; }
.vb.is-hi i { background: var(--acc); }
.vb-v { font: 650 10px var(--num); color: var(--mute); margin-bottom: 4px; white-space: nowrap; }
.vb-l { font-size: 10px; color: var(--mute); margin-top: 6px; white-space: nowrap; }

.ln { width: 100%; height: 130px; display: block; }
.ln-line { fill: none; stroke: var(--acc); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ln-area { fill: color-mix(in srgb, var(--acc) 16%, transparent); stroke: none; }
.ln-dot { fill: var(--acc); stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ln-target { stroke: var(--mute); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ln-tl { fill: var(--mute); font: 600 10px var(--font); }
.ln-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-top: 4px; }

.dstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ds { background: var(--card2); border-radius: 16px; padding: 12px; }
.ds-c { font-size: 12px; color: var(--mute); font-weight: 650; }
.ds b { display: block; font: 800 22px/1.2 var(--num); margin: 4px 0 2px; letter-spacing: -.02em; }
.ds b small { font-size: 12px; color: var(--mute); }
.ds span { font-size: 11.5px; color: var(--mute); }

.exs { display: grid; }
.exr { display: grid; grid-template-columns: 1fr 80px 84px; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 11px 2px; border-top: 1px solid var(--line); }
.exr:first-child { border-top: 0; }
.exr.is-empty { opacity: .5; }
.exr-n { min-width: 0; font-weight: 650; font-size: 14px; line-height: 1.25; }
.exr-n em, .pr-n em { display: block; font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--mute); }
.exr-v { text-align: right; line-height: 1.2; }
.exr-v b { display: block; font: 750 15px var(--num); font-variant-numeric: tabular-nums; }
.exr-v em { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 650; }
.exr-v em.up { color: #3BB273; }
.exr-v em.dn { color: #E5484D; }
.spark { width: 80px; height: 28px; }
.spark path { fill: none; stroke: var(--acc-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.prs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pr { display: flex; align-items: center; gap: 10px; border: 0; text-align: left; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 14%, var(--card2)); }
.pr-i { font-size: 18px; }
.pr-n { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.pr b { font: 750 14px var(--num); white-space: nowrap; color: var(--acc-ink); }

.sheet-wide { width: min(720px, 100%); }
.xs-top { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding-right: 40px; }
.xs-top .ex-fig::after { content: none; }
.xs-top h3 { margin-top: 0; }
.hist { display: grid; }
.hr { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hr span { color: var(--mute); white-space: nowrap; }
.hr b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sheet .t-h { margin-top: 16px; }

.exp { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card2); border-radius: 18px; padding: 14px; margin-top: 10px; transition: transform .15s; }
.exp:active { transform: scale(.98); }
.exp-i { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--card); font: 800 13px var(--num); color: var(--acc-ink); }
.exp:first-of-type .exp-i { background: var(--acc); color: var(--on-acc); font-size: 20px; }
.exp b { display: block; font-size: 15px; }
.exp em { display: block; font-style: normal; font-size: 12.5px; color: var(--mute); margin-top: 2px; }

/* ===== v1.2: editing, picker, timer, celebration ===== */
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill { border: 1px solid var(--line); background: var(--card2); color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.pill.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill:active { transform: scale(.97); }
.eta { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.eta b { font: 800 18px/1.1 var(--num); letter-spacing: -.01em; }
.eta span { font-size: 12px; color: var(--mute); }
.ex-menu { position: absolute; right: 0; top: 48px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: none; font-size: 20px; line-height: 1; color: var(--mute); padding: 0 0 6px; }
.ex-links { display: flex; gap: 14px; flex-wrap: wrap; }
.warn { margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: #8A5A00; background: color-mix(in srgb, #E2B93B 22%, transparent); padding: 7px 10px; border-radius: 10px; }
.warn .link { color: inherit; font-weight: 750; font-size: 12.5px; padding: 0; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .warn { color: #F2CF63; } }
.chip-warn { background: color-mix(in srgb, #E2B93B 25%, transparent); color: #8A5A00; }
.set-n { border: 0; background: none; padding: 0; height: 40px; border-radius: 10px; position: relative; }
.set-n.has-note::before { content: ""; position: absolute; top: 6px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--arrow); }
.set-note { grid-column: 1 / -1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; height: 36px; padding: 0 10px; font-size: 13.5px; color: var(--ink); width: 100%; min-width: 0; }
.ex-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; max-width: 640px; }
.ex-note span { font-size: 12px; font-weight: 650; color: var(--mute); padding-top: 9px; flex: 0 0 auto; }
.ex-note textarea { flex: 1; min-width: 0; border: 1px dashed var(--line); background: none; border-radius: 10px; padding: 7px 10px; font: 13.5px/1.35 var(--font); color: var(--ink); resize: none; min-height: 34px; overflow: hidden; }
.ex-note textarea:focus { border-style: solid; background: var(--card2); outline: none; }
.add-ex { border: 1.5px dashed var(--line); background: none; border-radius: var(--r); padding: 16px; font-weight: 700; color: var(--mute); font-size: 15px; }
.planbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--acc) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); }
.planbar span { flex: 1 1 100%; font-size: 13px; color: var(--ink); }
.re-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.ex-mini { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; }
.ex-mini .ex-fig { aspect-ratio: 4 / 3; border-radius: 10px; }
.ex-mini .ex-fig::after { content: none; }
.ex-mini b { font-size: 14px; display: block; }
.ex-mini .en { margin: 0; display: block; }
.mini-stp { display: flex; align-items: center; gap: 4px; }
.mini-stp button { border: 1px solid var(--line); background: var(--card2); color: var(--ink); min-width: 40px; height: 36px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.mini-stp button[disabled] { opacity: .3; }
.mini-stp b { min-width: 56px; text-align: center; font: 700 15px/1 var(--num); font-variant-numeric: tabular-nums; }

/* sheet menu */
.menu { display: grid; gap: 6px; margin-top: 14px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card2); border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.mi > i { font-style: normal; font-size: 18px; width: 24px; text-align: center; flex: 0 0 auto; }
.mi > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mi b { font-size: 15px; }
.mi em { font-style: normal; font-size: 12.5px; color: var(--mute); }
.mi-row { flex-wrap: wrap; }
.mi-row .link { margin-left: 36px; }
.mi-danger b { color: #C2410C; }
.sheet .mi.mi-row { margin: 10px 0; }

/* picker */
.pk-q { width: 100%; margin: 12px 0 8px; border: 1px solid var(--line); background: var(--card2); border-radius: 14px; height: 46px; padding: 0 14px; font-size: 16px; color: var(--ink); }
.pk-g { margin-bottom: 4px; }
.pk-sec { margin: 14px 2px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.pick-list { display: grid; gap: 6px; }
.pk { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 6px 12px 6px 6px; color: var(--ink); }
.pk:active { background: var(--card2); }
.pk.is-na { opacity: .55; }
.pk-fig { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--card2); }
.pk-n { display: grid; gap: 1px; font-weight: 700; font-size: 14.5px; line-height: 1.25; min-width: 0; }
.pk-n em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--mute); }
.pk-n small { font-size: 11.5px; font-weight: 500; color: var(--acc-ink); }

/* params form */
.form { margin-top: 6px; }
.frow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.frow .field { margin: 6px 0; }
.field input, .field textarea { color: var(--ink); font-size: 16px; width: 100%; min-width: 0; }
.field textarea { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 10px 12px; font-family: var(--font); resize: vertical; }
.flabel { margin: 14px 0 6px; font-size: 13px; color: var(--mute); }
.tgs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tg { border: 1px solid var(--line); background: none; color: var(--mute); padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tg[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.seg-sm { margin: 10px 0; max-width: 360px; }

/* chooser & programmes */
.chooser { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.ch { text-align: left; border: 1px solid var(--line); background: var(--card2); border-radius: 14px; padding: 10px 12px; color: var(--ink); display: grid; gap: 2px; }
.ch b { font-size: 15px; }
.ch span { font-size: 12px; color: var(--mute); }
.progs { display: grid; gap: 6px; margin-top: 8px; }
.prog { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.prog > div { flex: 1; min-width: 0; display: grid; }
.prog span { font-size: 12px; color: var(--mute); }
.prog.is-on { border-color: color-mix(in srgb, var(--acc) 70%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent); }

/* celebration */
.cele { text-align: center; padding-top: 8px; }
.cele h3 { font-size: 24px; }
.cele .kpis { text-align: left; }
.cele-badge { width: 84px; height: 84px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--acc) 90%, #fff), var(--acc)); box-shadow: 0 0 0 10px color-mix(in srgb, var(--acc) 22%, transparent), 0 18px 40px -12px color-mix(in srgb, var(--acc) 80%, transparent); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }

.m-still .modal, .m-still .sheet { animation: none; }
.sheet > h3:first-of-type { padding-right: 44px; }
.cele .kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cele .kpi { padding: 12px; }
.cele .kpi .big { font-size: 22px; }
.mi-row > span { flex: 1 1 150px; }
.mi-row .mini-stp { margin-left: auto; }

/* 1.3: account section */
a.pill { text-decoration: none; display: inline-block; }
.note a { color: inherit; }

/* Settings: grouped menu with pages (1.5) */
.set-h { font-size: 26px; letter-spacing: -.03em; margin: 4px 44px 12px 0; }
.set-back { border: 0; background: none; color: var(--acc-ink); font-weight: 650; font-size: 15px; padding: 6px 0; margin: -2px 0 2px; }
.sgroup { margin: 0 0 18px; }
.sgroup > .eyebrow { margin: 0 0 6px 4px; }
.sgroup .srow + .srow { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.sgroup .srow:not(:last-child) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--card2); border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.srow > i { font-style: normal; font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--card); border-radius: 9px; flex: 0 0 auto; }
.srow > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.srow b { font-size: 15.5px; font-weight: 600; }
.srow em { font-style: normal; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow > s { text-decoration: none; color: var(--ghost); font-size: 22px; line-height: 1; }
.srow:active { opacity: .7; }
.sw-list { display: grid; gap: 8px; margin: 12px 0; }
.sw-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: var(--card2); border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.sw-row > span { flex: 1; display: grid; gap: 3px; }
.sw-row b { font-size: 15.5px; font-weight: 600; }
.sw-row em { font-style: normal; font-size: 12.5px; color: var(--mute); line-height: 1.35; }
.sw { width: 50px; height: 30px; border-radius: 99px; background: var(--eq); position: relative; flex: 0 0 auto; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.sw-row[aria-pressed="true"] .sw { background: var(--acc); }
.sw-row[aria-pressed="true"] .sw::after { transform: translateX(20px); }

/* Readiness, RIR, plates (1.5) */
.ready { margin: 14px 0 0; display: grid; gap: 8px; }
.ready > span { font-size: 14px; font-weight: 600; }
.ready > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ready.is-set { display: block; }
.ready.is-set .chip { border: 0; cursor: pointer; }
.ready.is-set p { margin: 6px 0 0; font-size: 13px; color: var(--mute); line-height: 1.4; }
.set-n sup { font-size: 9px; font-weight: 700; color: var(--acc-ink); margin-left: 1px; vertical-align: super; }
.rir-ask { grid-column: 1 / -1; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; margin-top: 6px; background: var(--card2); border-radius: 14px; font-size: 13px; color: var(--mute); animation: rise .2s ease; }
.rir-ask > div { display: flex; gap: 6px; margin-left: auto; }
.rir-ask button { min-width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-family: var(--num); }
.rir-ask button:active { background: var(--acc); color: var(--on-acc); }
.rir-ask .rir-x { min-width: 30px; border: 0; background: none; color: var(--ghost); font-weight: 400; }
.plates { grid-column: 1 / -1; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--mute); }
.plates > span { margin-right: 4px; }
.plates .pl { font-style: normal; display: inline-grid; place-items: center; min-width: 26px; height: var(--h); padding: 0 5px; border-radius: 5px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; font-family: var(--num); }
.plates em { font-style: normal; margin-left: 6px; color: #C2410C; }
.up-hold { color: var(--mute); }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Stats 1.6: body map, workout log, consistency */
.bodymap { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.cal .lv0 { background: var(--eq-fill); }
.cal .lv1 { background: color-mix(in srgb, var(--acc) 30%, var(--eq-fill)); }
.cal .lv2 { background: color-mix(in srgb, var(--acc) 58%, var(--eq-fill)); }
.cal .lv3 { background: var(--acc); }
.bodymap, .bm-leg { --bm-bg: var(--card); }
.wc-m .bodymap { --bm-bg: var(--card2); }
.bodymap .bm-sil { fill: color-mix(in srgb, var(--ink) 4%, var(--bm-bg)); }
.bodymap .bm-out { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, var(--bm-bg)); stroke-width: 1.1; stroke-linejoin: round; }
.bodymap .mz { fill: color-mix(in srgb, var(--ink) 8%, var(--bm-bg)); stroke: color-mix(in srgb, var(--ink) 38%, var(--bm-bg)); stroke-width: .8; stroke-linejoin: round; transition: fill .2s; }
.bodymap .bm-ln { fill: none; stroke: color-mix(in srgb, var(--ink) 38%, var(--bm-bg)); stroke-width: .8; stroke-linecap: round; }
.bodymap .lv1 { fill: color-mix(in srgb, var(--ink) 22%, var(--bm-bg)); }
.bodymap .lv2 { fill: color-mix(in srgb, var(--ink) 42%, var(--bm-bg)); }
.bodymap .lv3 { fill: color-mix(in srgb, var(--ink) 64%, var(--bm-bg)); }
.bodymap .lv4 { fill: color-mix(in srgb, var(--ink) 86%, var(--bm-bg)); }
.bm-leg .lv0 { background: color-mix(in srgb, var(--ink) 8%, var(--bm-bg)); }
.bm-leg .lv1 { background: color-mix(in srgb, var(--ink) 22%, var(--bm-bg)); }
.bm-leg .lv2 { background: color-mix(in srgb, var(--ink) 42%, var(--bm-bg)); }
.bm-leg .lv3 { background: color-mix(in srgb, var(--ink) 64%, var(--bm-bg)); }
.bm-leg .lv4 { background: color-mix(in srgb, var(--ink) 86%, var(--bm-bg)); }
.cal .lv4 { background: var(--acc); }
.bm-l { font-size: 13px; fill: var(--mute); text-anchor: middle; letter-spacing: .06em; text-transform: uppercase; }
.bm-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--mute); margin-top: 8px; }
.bm-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 1px solid var(--eq); }
.t-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px -2px; }
.t-sec b { font-size: 20px; letter-spacing: -.02em; }
.t-sec span { font-size: 12px; color: var(--mute); }
.wcards { display: grid; gap: 12px; }
@media (min-width: 900px) { .wcards { grid-template-columns: 1fr 1fr; } }
.wcard { display: grid; gap: 14px; }
.wc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wc-h h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.wc-h h3 span { display: block; font-size: 13.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; margin-top: 2px; }
.wc-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wc-k > div { padding: 10px 10px 10px 0; display: grid; gap: 2px; }
.wc-k > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.wc-k span { font-size: 12px; color: var(--mute); }
.wc-k b { font: 700 17px var(--num); white-space: nowrap; }
.wcard .prs { grid-template-columns: 1fr; }
.wcard .pr-n em { display: block; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--mute); }
.wc-m { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; background: var(--card2); border-radius: 18px; padding: 14px; }
.wc-m .eyebrow { margin: 0 0 6px; }
.wc-mc .chips + .eyebrow { margin-top: 14px; }
.wc-mc .chip { background: var(--card); }
.cal { display: grid; grid-template-columns: 20px repeat(12, 1fr); grid-template-rows: repeat(7, auto); gap: 4px; }
.cal .cl { aspect-ratio: 1; border-radius: 4px; display: block; }
.cal .cl.fut { opacity: .3; }
.cal .cl.now { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.cal-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.cal-k > div { display: grid; gap: 2px; }
.cal .cl-d { grid-column: 1; font-size: 10px; font-weight: 600; color: var(--mute); align-self: center; }

@media (max-width: 560px) {
	.wc-m { grid-template-columns: 1fr; }
	.wc-mc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
	.wc-mc .eyebrow { margin: 0; width: 100%; }
	.wc-mc .chips + .eyebrow { margin-top: 6px; }
	.wc-m .bodymap { max-width: 300px; }
}

/* schematics 1.7: shaped body parts + motion */
.dnt-scheme .part { stroke-width: 1.4; stroke-linejoin: round; }
.dnt-scheme .f.part { fill: var(--fig); stroke: var(--card2); }
.dnt-scheme .g.part { fill: var(--ghost); stroke: none; }
.dnt-scheme .f.far { opacity: .62; }

/* 1.9: start button, forecast, cable handle, swap for a busy machine */
.btn-go { margin-top: 14px; }
.eta:empty { display: none; }
.handle { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--mute); }
.handle select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 28px 6px 12px; font: inherit; font-weight: 600;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.pk-why { margin: 0 0 8px; font-size: 13px; }
/* 1.9.1: the rest timer bar doesn't cover the last sets */
.dnt:has(.timer.is-on) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* 1.11: gyms */
.gyms { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.gym { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: inherit; }
.gym b { font-size: 14px; }
.gym span { font-size: 12px; color: var(--mute); }
.gym.is-on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.gym-add { border-style: dashed; }
.gym-tools { align-items: center; }
.tg-eq { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.2; }
.tg-eq small { font-size: 10px; font-weight: 500; opacity: .7; }

/* 1.12 — record set: trophy on the weight (or reps for bodyweight) that beats the all-time best */
.stp.stp-pr { border-color: color-mix(in srgb, #d4a24c 70%, transparent); background: color-mix(in srgb, #d4a24c 16%, var(--card)); }
.stp.stp-pr input { color: color-mix(in srgb, #b07d22 85%, var(--ink)); }
.stp .pr-mark { position: absolute; top: 50%; left: 34px; transform: translateY(-62%); font-size: 13px; line-height: 1; pointer-events: none; }
.stp.stp-pr input { padding-left: 14px; }
a.srow { text-decoration: none; box-sizing: border-box; }
