/* Colours and type from design/prototype.
   Every colour, radius and font size below comes from this block. Add a token here before using a new value. */
:root {
  /* surfaces and text */
  --page: #0B0E12; --bg: #12161C; --card: #1B212A; --line: #2E3744; --edge: #4A5565;
  --text: #F3F1EA; --muted: #AEB7C2; --white: #fff;
  /* brand and states: each colour has one job */
  --accent: #C8F25A; --on-accent: #12161C;
  --done: #5FD08A; --warn: #F2A65A; --bad: #FF7A7A; --bad-bg: #2A1C1F;
  /* kinds of work (session bar, tags, left borders) */
  --cardio: #5AC8F2; --stretch: #B79CFF;
  /* coach chat */
  --coach: #2F4B73; --coach-edge: #4A6A99;
  /* body map: neutral fills */
  --fill-0: #20262F; --fill-1: #2A323D; --fill-2: #343E4B;
  /* body map: muscle heat (warm ramp; to move to a lime ramp) */
  --heat-1: #6B5A2E; --heat-2: #B9822B; --heat-3: #F2A65A; --heat-4: #F0603A; --heat-hover: #6B5A3E;
  /* body map: week targets (to do, then in progress ramp; done uses --done) */
  --wk-todo: #38BDF8; --wk-todo-edge: #E8F7FF; --wk-1: #FFD43B; --wk-2: #FF922B; --wk-3: #F2542D;
  /* exercise heat chips: cool ramp */
  --ex-1: #1F5F6B; --ex-2: #1E7F8F; --ex-3: #2FA3C7; --ex-4: #6FD0F0; --on-ex: #06202A;
  /* shape */
  --r-xs: 4px; --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-pill: 999px;
  /* type */
  --head: 'Space Grotesk', system-ui, sans-serif;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-body: 16px; --t-title: 18px;
  /* depth */
  --scrim: rgba(0, 0, 0, .6); --shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.4 Inter, system-ui, sans-serif; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding: 24px 16px 140px; display: flex; flex-direction: column; gap: 14px; }
h1 { font: 600 30px/1.1 var(--head); margin: 4px 0 0; }
h2 { font: 600 20px var(--head); margin: 8px 0 0; }
h3 { font: 600 17px var(--head); margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
a:not(.btn) { color: var(--accent); }
.small { font-size: var(--t-sm); }
.label { font-size: var(--t-sm); color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.card { background: var(--card); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.scroll-x { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.scroll-x > * { flex: 0 0 82%; scroll-snap-align: start; }
/* Buttons: one system, five levels.
   primary     filled lime, one per screen (Train, Next, Start, Set done)
   secondary   outlined, the default <button> and .btn
   tertiary    lime text, no border (.link), a 44 px tap area
   destructive red text and border (.danger), always behind a confirm
   chip        a pill for choices only (.chip), never for actions */
button, .btn { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--edge); border-radius: var(--r); min-height: 44px; padding: 0 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .1s ease, filter .1s ease, border-color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:hover, .btn:hover { border-color: var(--muted); }
button:active:not(:disabled), .btn:active { transform: scale(.97); filter: brightness(.9); }
button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
button.primary, .btn.lime { background: var(--accent); color: var(--on-accent); border: none; font-weight: 600; min-height: 52px; font-size: var(--t-title); border-radius: var(--r); width: 100%; }
button.primary:hover, .btn.lime:hover { filter: brightness(1.06); }
button.warn { color: var(--warn); border-color: var(--warn); }
button.danger, .btn.danger { color: var(--bad); border-color: var(--bad); }
button.danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: var(--bad); }
button.link, a.link, .link { border: none; background: none; color: var(--accent); text-decoration: none; min-height: 44px; padding: 0 8px; font-weight: 600; cursor: pointer; }
a.link { display: inline-flex; align-items: center; }
button.link:hover, a.link:hover { text-decoration: underline; border: none; }
span.link { min-height: 0; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
button.flex1 { flex: 1; }
.chip { min-height: 38px; border-radius: var(--r-pill); font-size: var(--t-md); padding: 0 14px; }
.chip.warnc[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--edge); border-radius: var(--r-sm); min-height: 44px; padding: 8px 12px; width: 100%; }
textarea { min-height: 70px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-md); color: var(--muted); }
.bar { height: 8px; border-radius: var(--r-xs); background: var(--line); overflow: hidden; flex: 1; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: var(--t-xs); color: var(--muted); }
.week b { display: block; height: 32px; border-radius: var(--r-sm); background: var(--line); margin-top: 4px; }
.week b.on { background: var(--accent); }
.week b.today { outline: 2px solid var(--edge); }
.big { font: 600 44px/1 var(--head); }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; text-align: center; }
.stepper button { min-height: 56px; font-size: 24px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: var(--card); border-radius: var(--r); padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
/* Colour by kind of work. The tag text says the same thing, so colour is never the only cue. */
.item { border-left: 4px solid var(--edge); }
.item.k-warmup { border-left-color: var(--warn); }
.item.k-strength { border-left-color: var(--accent); }
.item.k-cardio { border-left-color: var(--cardio); }
.item.k-stretch { border-left-color: var(--stretch); }
.tag { display: inline-block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: var(--r-pill); border: 1px solid currentColor; margin-right: 4px; vertical-align: 1px; }
.tag.k-warmup { color: var(--warn); }
.tag.k-strength { color: var(--accent); }
.tag.k-cardio { color: var(--cardio); }
.tag.k-stretch { color: var(--stretch); }
.item.done { opacity: .55; }
.item.now { outline: 2px solid var(--accent); }
.pill { font-size: var(--t-xs); padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--edge); color: var(--muted); white-space: nowrap; }
.pill.ok { border-color: var(--accent); color: var(--accent); }
.pill.warn { border-color: var(--warn); color: var(--warn); }
.note { border-left: 3px solid var(--accent); padding: 6px 10px; color: var(--muted); font-size: var(--t-md); }
.error { border-left: 3px solid var(--bad); padding: 8px 10px; background: var(--bad-bg); border-radius: var(--r-sm); font-size: var(--t-md); position: sticky; top: 8px; z-index: 30; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--edge); padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--t-md); z-index: 20; max-width: 90vw; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--bg) 95%, transparent); border-top: 1px solid var(--line); display: flex; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; z-index: 10; }
.nav a { flex: 1; max-width: 140px; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: var(--t-xs); font-weight: 500; padding: 6px 4px; border-radius: var(--r-sm); transition: color .15s ease; -webkit-tap-highlight-color: transparent; }
.nav a:active { transform: scale(.95); }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"] svg { stroke-width: 2.2; }
a.menurow { display: flex; justify-content: space-between; align-items: center; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 600; }
a.menurow + a.menurow { border-top: 1px solid var(--line); }
.sheet-bg { position: fixed; inset: 0; background: var(--scrim); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 10px; max-height: 85vh; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-md); }
td, th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
/* Responsive layout.
   Phone (under 600px): one full-width column, bottom tab bar.
   Tablet (600 to 899px): centred column, bottom tab bar.
   Laptop (900px and up): left side bar, wider content column, sheets open as centred dialogs. */
@media (max-width: 599px) {
  .app { max-width: none; padding: 16px 14px calc(120px + env(safe-area-inset-bottom)); gap: 12px; }
  h1 { font-size: 26px; }
  .scroll-x, .strip, .hstrip, .hscroll { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .nav a { max-width: none; }
  .sheet { padding: 18px 14px calc(24px + env(safe-area-inset-bottom)); max-height: 90vh; }
  .bm-figs { gap: 8px; }
  table { font-size: var(--t-sm); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .app { max-width: 640px; }
}
@media (min-width: 900px) {
  body:has(#nav > a) { padding-left: 220px; }
  .app { max-width: 820px; padding: 40px 32px 64px; gap: 18px; }
  h1 { font-size: 34px; }
  .nav { top: 0; right: auto; width: 220px; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px; padding: 28px 12px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg); }
  .nav a { flex: 0 0 auto; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: var(--t-body); }
  .nav a:hover { color: var(--text); background: var(--card); }
  .nav a[aria-current="page"] { background: var(--card); }
  .toast { bottom: 24px; left: calc(50% + 110px); }
  .stickybtn { bottom: 16px; }
  .coachfab { right: 28px; bottom: 28px; }
  .scroll-x, .strip, .hstrip, .hscroll { margin: 0; padding-left: 0; padding-right: 0; }
  .sheet-bg { align-items: center; }
  .sheet { max-width: 520px; border-radius: var(--r-lg); max-height: 80vh; }
}
@media (min-width: 1400px) { .app { max-width: 900px; } }

/* exercise animation */
.howto { width: 100%; text-align: left; }
.anim { background: var(--bg); border-radius: var(--r); overflow: hidden; min-height: 120px; flex-shrink: 0; }
.sheet > * { flex-shrink: 0; }
.anim-inline { cursor: pointer; min-height: 210px; }
/* No animation yet: the cues in the same spot and size, scrollable. */
.howto-text { width: 100%; height: 180px; overflow-y: auto; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.howto-text p { margin: 6px 0; font-size: var(--t-body); line-height: 1.4; }
.anim-inline svg { max-height: 210px; margin: 0 auto; }
.anim-inline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg); opacity: .55; transition: opacity .2s; border-left: 3px solid transparent; }
.checks li.on { opacity: 1; border-left-color: var(--accent); }

/* catalog */
input[type=search] { width: 100%; box-sizing: border-box; }
details.eq summary { cursor: pointer; list-style: none; }
details.eq summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

/* Body map */
.bodymap { align-items: center; }
.bodymap .label { align-self: flex-start; }
.bm-figs { display: flex; gap: 16px; justify-content: center; text-align: center; }
.bm-fig { width: 124px; height: auto; display: block; }
.bm-m { stroke: var(--card); stroke-width: .7; stroke-linejoin: round; }
.bm-base { fill: var(--fill-1); }
.bm-off { fill: var(--fill-2); }
.bm-p { fill: var(--accent); }
.bm-s { fill: var(--accent); fill-opacity: .4; }
.bm-key { display: inline-block; width: 12px; height: 12px; border-radius: var(--r-xs); vertical-align: -1px; margin-right: 4px; background: var(--accent); }
.bm-key.bm-s { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.bodymap > .small { align-self: flex-start; }

/* Time up front */
.timebig { font: 600 56px/1 var(--head); color: var(--accent); }
.timeunit { font: 600 20px var(--head); color: var(--muted); }
.chip.big { min-height: 44px; font-size: var(--t-body); padding: 0 16px; }
.timebar { display: flex; gap: 3px; height: 14px; }
.timebar i { display: block; border-radius: var(--r-xs); min-width: 4px; background: var(--edge); }
.timebar i.k-warmup { background: var(--warn); } .timebar i.k-strength { background: var(--accent); }
.timebar i.k-cardio { background: var(--cardio); } .timebar i.k-stretch { background: var(--stretch); }
.itemtime { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1.1; }
.itemtime b { font: 600 24px var(--head); }
.itemtime span { font-size: var(--t-xs); color: var(--muted); }
.prog { font-weight: 600; }
.prog.up { color: var(--accent); } .prog.same { color: var(--muted); } .prog.down { color: var(--warn); } .prog.first { color: var(--cardio); }

/* What the coach is considering, while a plan is made */
.think-bg { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--page) 90%, transparent); display: flex; align-items: center; justify-content: center; padding: 16px; }
.think { width: 100%; max-width: 520px; background: var(--card); border-radius: var(--r-lg); padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.blips { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.blips li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); animation: blipin .35s ease both; }
.blips li i { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }
.blips li.stage { color: var(--text); font-weight: 600; }
.blips li.now { color: var(--text); }
.blips li.now i { opacity: 1; animation: blippulse 1.1s ease-in-out infinite; }
.blips li:not(.now) i { background: none; border: 2px solid var(--accent); opacity: .7; width: 10px; height: 10px; }
@keyframes blipin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blippulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .blips li, .blips li.now i { animation: none; } }

/* The choice on the home page */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; text-align: left; min-height: 96px; padding: 14px; border-radius: var(--r); background: var(--card); }
.choice b { font: 600 17px var(--head); }
.choice span { font-size: var(--t-sm); color: var(--muted); line-height: 1.3; }
.choice[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: inherit; border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.choice:disabled { opacity: .5; }

/* The wait: a figure that keeps moving, a bar, a clock */
.think-anim { height: 150px; background: var(--bg); border-radius: var(--r); overflow: hidden; }
.think-anim svg { height: 150px !important; width: 100%; }
.think-anim.in svg { animation: figin .4s ease both; }
@keyframes figin { from { opacity: 0; } to { opacity: 1; } }
.think-bar { height: 4px; background: var(--line); border-radius: var(--r-xs); overflow: hidden; }
.think-bar i { display: block; height: 100%; width: 35%; background: var(--accent); border-radius: var(--r-xs); animation: thinkslide 1.4s ease-in-out infinite; }
@keyframes thinkslide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.dots::after { content: ''; animation: thinkdots 1.4s steps(1, end) infinite; }
@keyframes thinkdots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.blips li.wait { color: var(--muted); font-style: italic; }
.blips { max-height: 30vh; }
.think { max-height: 94vh; }
@media (prefers-reduced-motion: reduce) { .think-bar i, .dots::after, .think-anim.in svg { animation: none; } }

/* Progress through the workout */
.progressbox { display: flex; flex-direction: column; gap: 6px; }
.steps { display: flex; gap: 4px; }
.step { flex: 1; min-height: 28px; padding: 0; border: none; background: none; display: flex; align-items: center; border-radius: var(--r-xs); }
.step::before { content: ''; width: 100%; height: 10px; border-radius: var(--r-xs); background: var(--line); }
.step.done::before { background: var(--accent); }
.step.skip::before { background: var(--warn); opacity: .55; }
.step.cur::before { box-shadow: 0 0 0 2px var(--text); }
.step.cur.todo::before { background: var(--edge); }

/* The main button stays in view above the bottom menu while the form scrolls */
.stickybtn { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 -14px 14px 6px var(--bg); }

/* The strip of exercises: swipe sideways to peek ahead */
.endbtn { min-height: 34px; padding: 0 14px; font-size: var(--t-md); border-radius: var(--r-pill); }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.xcard { flex: 0 0 auto; width: 150px; min-height: 66px; padding: 8px 10px; gap: 1px; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--edge); border-radius: var(--r-sm); scroll-snap-align: center; }
.xcard b { font-size: var(--t-md); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcard.k-warmup { border-left-color: var(--warn); } .xcard.k-strength { border-left-color: var(--accent); }
.xcard.k-cardio { border-left-color: var(--cardio); } .xcard.k-stretch { border-left-color: var(--stretch); }
.xcard.done { opacity: .6; }
.xcard.skip { border-style: dashed; opacity: .6; }
.xcard.cur { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.xcard .small.done { color: var(--accent); font-weight: 600; }

/* Tapping where it hurts, and the muscle heat map */
.bm-pick .bm-figs { gap: 12px; }
.bm-pick .bm-fig { width: 150px; }
.bm-hint { text-align: center; }
.bm-tap { cursor: pointer; transition: fill .12s; }
.bm-tap:hover { fill: var(--heat-hover); }
.bm-sel, .bm-tap.bm-sel:hover { fill: var(--warn); }
.bm-list { margin-top: 8px; }
.bm-list summary { cursor: pointer; text-align: center; padding: 6px 0; }
.bm-list .row { justify-content: center; margin-top: 6px; }
.bm-zone { cursor: pointer; outline: none; }
.bm-zone-hit { fill: transparent; }
.bm-zone-dot { fill: color-mix(in srgb, var(--text) 10%, transparent); stroke: var(--muted); stroke-width: 1.2; transition: all .12s; }
.bm-zone:hover .bm-zone-dot { fill: color-mix(in srgb, var(--warn) 25%, transparent); stroke: var(--warn); }
.bm-zone:focus-visible .bm-zone-dot { stroke: var(--accent); stroke-width: 2.5; }
.bm-zone.on .bm-zone-dot { fill: var(--warn); stroke: var(--white); stroke-width: 1.6; }
.bm-h0 { fill: var(--fill-1); } .bm-h1 { fill: var(--heat-1); } .bm-h2 { fill: var(--heat-2); } .bm-h3 { fill: var(--heat-3); } .bm-h4 { fill: var(--heat-4); }
.bm-pick { stroke: var(--warn); stroke-width: 2; stroke-dasharray: none; }
.bm-pending { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
.bm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.bm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bm-legend i { width: 14px; height: 14px; border-radius: var(--r-xs); display: inline-block; }
.bm-legend i.bm-pending { box-shadow: inset 0 0 0 1px var(--muted); }
.due { color: var(--warn); font-weight: 600; }
.bm-legend i.bm-h0 { background: var(--fill-1); } .bm-legend i.bm-h1 { background: var(--heat-1); } .bm-legend i.bm-h2 { background: var(--heat-2); }
.bm-legend i.bm-h3 { background: var(--heat-3); } .bm-legend i.bm-h4 { background: var(--heat-4); }

/* Brand mark on the sign-in screen */
.brandmark { display: block; width: 64px; height: 64px; border-radius: var(--r); box-shadow: var(--shadow); }

/* The plan chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 320px; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px; }
.chat:empty { min-height: 0; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: var(--r); line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; animation: blipin .25s ease both; }
.bubble.me { align-self: flex-end; background: var(--coach); color: var(--text); border-bottom-right-radius: var(--r-xs); }
.bubble.coach { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: var(--r-xs); }
.bubble .changed { color: var(--accent); font-weight: 600; margin-top: 4px; }
.bubble.typing { display: flex; align-items: center; gap: 10px; }
.dots3 { display: inline-flex; gap: 4px; }
.dots3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dotbounce 1.1s ease-in-out infinite; }
.dots3 i:nth-child(2) { animation-delay: .15s; } .dots3 i:nth-child(3) { animation-delay: .3s; }
@keyframes dotbounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chatbar { display: flex; gap: 8px; align-items: flex-end; }
.chatbar textarea { flex: 1; min-height: 46px; max-height: 130px; resize: none; field-sizing: content; }
.chatbar button.primary { width: auto; min-height: 46px; padding: 0 20px; font-size: var(--t-body); border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) { .dots3 i, .bubble { animation: none; } }

/* Exercise heat: a cool ramp (teal to blue) so it reads apart from the warm muscle heat map. */
.chip.ex-h0 { background: var(--fill-1); }
.chip.ex-h1 { background: var(--ex-1); border-color: var(--ex-1); color: var(--white); }
.chip.ex-h2 { background: var(--ex-2); border-color: var(--ex-2); color: var(--white); }
.chip.ex-h3 { background: var(--ex-3); border-color: var(--ex-3); color: var(--on-ex); }
.chip.ex-h4 { background: var(--ex-4); border-color: var(--ex-4); color: var(--on-ex); }
.chip.ex-h1[aria-pressed="true"], .chip.ex-h2[aria-pressed="true"], .chip.ex-h3[aria-pressed="true"], .chip.ex-h4[aria-pressed="true"], .chip.ex-h0[aria-pressed="true"] { outline: 2px solid var(--warn); outline-offset: 1px; }
.ex-legend { margin-top: 8px; }
.ex-legend i.ex-h0 { background: var(--fill-1); } .ex-legend i.ex-h1 { background: var(--ex-1); } .ex-legend i.ex-h2 { background: var(--ex-2); }
.ex-legend i.ex-h3 { background: var(--ex-3); } .ex-legend i.ex-h4 { background: var(--ex-4); }

.compact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.compact li { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; background: var(--card); border-radius: var(--r-sm); border-left: 4px solid var(--edge); }
.compact li.k-warmup { border-left-color: var(--warn); }
.compact li.k-strength { border-left-color: var(--accent); }
.compact li.k-cardio { border-left-color: var(--cardio); }
.compact li.k-stretch { border-left-color: var(--stretch); }
.compact .n { color: var(--muted); font-size: var(--t-sm); min-width: 18px; }
.compact .nm { flex: 1; font-weight: 600; }
.group > summary { cursor: pointer; padding: 8px 2px; list-style: none; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::before { content: "▾ "; color: var(--muted); }
.group:not([open]) > summary::before { content: "▸ "; }
.tight { margin: 2px 0; }
.note.tight { padding: 4px 10px; font-size: var(--t-sm); }
.custsec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.row > .primary.flex1 { width: auto; }

.statrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.statrow > .timebox { flex: 3 1 170px; justify-content: flex-start; }
.statrow > .bodymap { flex: 2 1 210px; }
.statrow .bm-fig { width: 96px; }
.hstrip, .hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.hstrip::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 auto; width: 140px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--card); border-radius: var(--r-sm); border-left: 4px solid var(--edge); scroll-snap-align: start; }
.hcard b { font-size: var(--t-md); line-height: 1.2; }
.hcard.k-warmup { border-left-color: var(--warn); } .hcard.k-strength { border-left-color: var(--accent); }
.hcard.k-cardio { border-left-color: var(--cardio); } .hcard.k-stretch { border-left-color: var(--stretch); }
.hscroll { align-items: flex-start; }
.hpanel { flex: 0 0 88%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.hint { text-align: center; margin: 0; }
.group { display: flex; flex-direction: column; gap: 8px; }
.sechead { border-top: 2px solid var(--line); margin-top: 10px; padding-top: 16px; }
.sechead h2 { margin: 0; }
.sechead p { margin: 2px 0 0; }
.grouphead { padding: 4px 2px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .06em; font-size: var(--t-sm); color: var(--muted); }
.grouphead b { font-weight: 600; }
.custsec { gap: 14px; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.xcard { width: auto; max-width: 190px; min-height: 36px; padding: 4px 12px; flex-direction: row; align-items: center; gap: 8px; border-radius: var(--r-pill); }
.xcard b { max-width: 150px; font-weight: 600; }
.endbtn { min-height: 30px; padding: 0 12px; }
.progressbox { gap: 4px; }

.setcard { gap: 8px; }
.setpick { min-height: 64px; align-items: flex-end; }
.lastset { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.earlier { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.clockwrap { font: 600 18px var(--head); }
.why { background: var(--card); border-radius: var(--r-sm); padding: 8px 12px; }
.why summary { cursor: pointer; font-weight: 600; font-size: var(--t-md); }
.why p { margin: 6px 0 0; }
.actchips { gap: 8px; }

.setlist { display: flex; flex-direction: column; gap: 4px; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; }
.setrow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 10px; background: var(--bg); border-radius: var(--r-sm); border-left: 4px solid var(--edge); font-size: var(--t-md); }
.setrow .n { color: var(--muted); min-width: 14px; }
.setrow .v { flex: 1; }
.setrow.logged { border-left-color: var(--accent); }
.setrow.now { border-left-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.setrow.todo { opacity: .6; }

.setrow.logged .n { color: var(--accent); font-weight: 700; }
.setrow.logged { padding-top: 6px; padding-bottom: 6px; }
.setrow.now { padding: 10px; }
.nowbody { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.setpick { min-height: 0; align-items: flex-end; }
.setlist { max-height: none; overflow: visible; }

.anim-inline svg { max-height: 150px; }
.anim-inline { height: 150px; min-height: 150px; }
.anim-inline svg { display: block; width: 100%; height: 150px; }
.setcard { padding: 10px 12px; gap: 6px; }
.setlist { gap: 3px; }
.setrow { min-height: 34px; padding: 1px 10px; }
.setrow.logged { padding-top: 2px; padding-bottom: 2px; }
.setrow.now { padding: 6px 8px; }
.setrow .chip { min-height: 30px; padding: 0 9px; font-size: var(--t-sm); }
.setpick select { min-height: 38px; padding: 4px 10px; }
.setpick label.field { gap: 2px; font-size: var(--t-xs); }

.vidrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: -4px; }
.vidrow .chip { justify-content: center; min-height: 36px; font-size: var(--t-md); }
.actgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actgrid .chip { justify-content: center; min-height: 40px; font-size: var(--t-md); padding: 0 6px; white-space: nowrap; }

.vidrow { display: flex; justify-content: center; gap: 4px 22px; font-size: var(--t-md); }
.vidrow a, .vidrow .link { min-height: 32px; display: inline-flex; align-items: center; }
.vidrow a, .vidrow button.link { color: var(--accent); text-decoration: none; padding: 0; background: none; border: none; font: inherit; font-weight: 600; cursor: pointer; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: var(--r); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat b { font: 600 26px var(--head); color: var(--accent); }
.stat span { font-size: var(--t-xs); color: var(--muted); }

.coachfab { position: fixed; right: 14px; bottom: calc(132px + env(safe-area-inset-bottom)); z-index: 12; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--coach); color: var(--text); border: 1px solid var(--coach-edge); font-weight: 600; box-shadow: var(--shadow); }

.animwrap { position: relative; }
.coachchip { position: absolute; top: 8px; right: 8px; z-index: 3; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--coach); color: var(--text); border: 1px solid var(--coach-edge); font-weight: 600; font-size: var(--t-md); box-shadow: var(--shadow); }

/* The week: targets on the body map, the day strip and the plan list */
/* Week map states, chosen to be far apart in hue so they read at a glance: not this week (nearly invisible), to do (cyan),
   in progress (yellow, orange, red-orange as more is done), done (green). */
.bm-w0 { fill: var(--fill-2); stroke: var(--accent); stroke-dasharray: none; }
.bm-w1, .bm-w2, .bm-w3 { fill: var(--wk-1); } .bm-w4 { fill: var(--done); }
.bm-tg1 { stroke-width: 1; } .bm-tg2 { stroke-width: 1.8; } .bm-tg3 { stroke-width: 2.6; }
.bm-w1, .bm-w2, .bm-w3, .bm-w4 { stroke: var(--white); stroke-opacity: .6; stroke-dasharray: none; }
.wkmap .bm-off { fill: var(--fill-0); }
.bm-legend i.bm-w0 { background: var(--fill-2); box-shadow: inset 0 0 0 2px var(--accent); } .bm-legend i.bm-w1 { background: var(--wk-1); } .bm-legend i.bm-w4 { background: var(--done); } .bm-legend i.bm-none { background: var(--fill-0); box-shadow: inset 0 0 0 1px var(--edge); }
.bm-legend i.bm-ramp { width: 70px; background: linear-gradient(90deg, var(--wk-1), var(--wk-2), var(--wk-3)); }
.bar.w1 > i, .bar.w2 > i, .bar.w3 > i { background: var(--wk-1); } .bar.w4 > i { background: var(--done); }
.sess { border: 2px solid var(--line); border-radius: var(--r); padding: 8px 10px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); }
.sess.custom { border-style: dashed; border-color: var(--edge); background: transparent; }
.sess.custom b { color: var(--muted); }
.sesstxt { display: flex; flex-direction: column; min-width: 0; }
button.mini { min-height: 0; padding: 7px 16px; font-size: var(--t-md); border-radius: var(--r-pill); flex: none; }
.wknote summary { cursor: pointer; list-style: none; } .wknote summary::-webkit-details-marker { display: none; }
.wknote p { margin-top: 6px; }
/* The week's body map is a glance, not a poster. */
.wkmap .bm-figs { gap: 6px; }
.wkmap .bm-fig { height: 150px; width: auto; }
.wkmap .small.muted { font-size: var(--t-xs); }
.wkmap .bm-legend { font-size: var(--t-xs); gap: 2px 10px; }
.sess.pick { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), var(--card)); }
.sess.pick b { color: var(--accent); }
/* Next up is the strong one. A finished session is calm: green tick, small badge, no glow. */
.sess.done { border-color: var(--line); background: var(--card); }
.sess.done b { color: var(--muted); } .tick { color: var(--done); }
button.mini.go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; padding: 8px 22px; width: auto; }
.donebadge { background: color-mix(in srgb, var(--done) 16%, transparent); color: var(--done); font: 600 12px Inter, system-ui, sans-serif; border-radius: var(--r-pill); padding: 3px 10px; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* Days of the week: the days you trained are filled lime with a tick, today has a ring. */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.dy { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--muted); }
.dy i { width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: var(--t-md); color: var(--on-accent); }
.dy.on i { background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }
.dy.on span { color: var(--accent); font-weight: 600; }
.dy.today i { outline: 2px solid var(--text); outline-offset: 2px; }
.hit { color: var(--accent); font-weight: 600; }
.card.celebrate { border: 2px solid var(--accent); box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 25%, transparent); }
.winbox { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.winbox b { font: 600 22px var(--head); }
@media (prefers-reduced-motion: reduce) { .donebadge, .winbox { animation: none; } }
.sess b { font: 600 17px var(--head); }
.tgt { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; font-size: var(--t-md); }
.tgt .nm { text-transform: capitalize; }

.btn.lime { text-align: center; }

/* Goals: sample bubbles, roadmap ladder, this week's commitment. */
.gbubbles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; padding: 6px 0 2px; }
.gbub { --c: var(--accent); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; border-radius: var(--r-pill); border: 2px solid var(--c); color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--c) 14%, var(--card)); animation: bubfloat 5s ease-in-out infinite; transition: transform .15s, background .15s; line-height: 1.15; font-weight: 600; }
.gbub small { font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
.gbub:hover, .gbub:focus-visible { transform: scale(1.06); background: color-mix(in srgb, var(--c) 26%, var(--card)); }
.gbub.s-s { width: 104px; height: 104px; font-size: var(--t-sm); padding: 10px; }
.gbub.s-m { width: 128px; height: 128px; font-size: var(--t-md); padding: 12px; }
.gbub.s-l { width: 150px; height: 150px; font-size: var(--t-body); padding: 14px; }
.gbub:nth-child(2n) { animation-delay: -1.7s; } .gbub:nth-child(3n) { animation-delay: -3.1s; }
.gbub.t-lime { --c: var(--accent); } .gbub.t-sky { --c: var(--cardio); } .gbub.t-violet { --c: var(--stretch); } .gbub.t-amber { --c: var(--warn); }
.gbub.t-own { --c: var(--edge); border-style: dashed; background: transparent; }
@keyframes bubfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .gbub { animation: none; transition: none; } }

.grow2 { display: flex; flex-direction: column; gap: 4px; }
.goalcard.draft { border: 2px dashed var(--edge); }
.goalcard summary, details.card summary { cursor: pointer; font-weight: 600; }
.ladder { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; }
.ladder li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.ladder li:last-child { padding-bottom: 0; }
.ladder li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.ladder li.done:not(:last-child)::before { background: var(--accent); }
.ladder .dot { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--edge); display: grid; place-items: center; font: 600 13px var(--head); font-style: normal; color: var(--muted); background: var(--bg); }
.ladder li.active .dot { border-color: var(--accent); color: var(--accent); }
.ladder li.done .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ladder .lstep { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; padding-top: 3px; }
.ladder li.locked .lstep > b { color: var(--muted); font-weight: 500; }
.commit, .thisweek { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.commit ul { margin: 0; padding-left: 18px; }
.gweek { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.gweek:first-of-type { border-top: none; padding-top: 0; }
.gline { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
.goalcard .bar, .gweek .bar, .gline .bar, .thisweek .bar { flex: none; width: 100%; }
a.gline, a.gline:hover { color: var(--text); text-decoration: none; }

/* Form controls: chip rows for short lists, a styled dropdown for long ones, a switch for yes or no. */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg .chip { min-height: 40px; }
.seg-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AEB7C2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 46px !important; height: 28px; min-height: 28px !important; padding: 0; border-radius: var(--r-pill); background: var(--line); border: 1px solid var(--edge); position: relative; cursor: pointer; transition: background-color .15s ease; }
input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .15s ease; }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { transform: translateX(18px); background: var(--on-accent); }

/* Motion: a short fade when the screen changes. Nothing moves for people who ask for less. */
@keyframes screenin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* "backwards", not "both": a finished animation must not keep .app in its own stacking layer, or the nav would draw over sheets. */
.app.enter { animation: screenin .18s ease backwards; }
@keyframes setpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 0%, transparent); } }
button.primary:active:not(:disabled) { animation: setpulse .35s ease-out; }
@media (prefers-reduced-motion: reduce) { .app.enter, button.primary:active { animation: none; } button, .btn, .nav a { transition: none; } button:active:not(:disabled), .btn:active, .nav a:active { transform: none; } }
.brandmark.small { width: 40px; height: 40px; border-radius: var(--r-sm); box-shadow: none; flex: none; }

/* Set rows with a tick each. The circle is 36 px; the invisible padding makes the tap area 48 px. */
.tickbtn { flex: none; position: relative; width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--edge); background: transparent; display: grid; place-items: center; font-size: var(--t-title); font-weight: 700; color: var(--on-accent); }
.tickbtn::before { content: ''; position: absolute; inset: -6px; }
.tickbtn.on { background: var(--accent); border-color: var(--accent); }
.setrow.now .tickbtn { align-self: center; border-color: var(--accent); }
.setrow.todo .v { opacity: .75; }
button.primary:disabled { opacity: .4; }

/* Week: today's workout card, day chart, unfinished list */
.hero { border: 2px solid var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), var(--card)); border-radius: var(--r); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.hero .big { font: 600 30px/1.1 var(--head); }
.hero .btn.lime { width: 100%; margin-top: 4px; min-height: 52px; font-size: var(--t-title); }
.pill.warnpill { border-color: var(--wk-1); color: var(--wk-1); }
.swaplink { align-self: flex-start; padding: 0; min-height: 32px; font-size: var(--t-md); }
.unfcard { border: 1px solid var(--wk-1); }
.sess .mins { font: 600 15px var(--head); color: var(--muted); white-space: nowrap; }
.sess.first { border-color: var(--accent); }
button.sess { font: inherit; color: var(--text); }
.stickyactions { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 6px; background: linear-gradient(to top, var(--bg) 75%, transparent); }
.stickyactions .btn.lime { width: 100%; min-height: 52px; font-size: var(--t-title); }
.daychart .dy i { font-style: normal; color: var(--on-accent); font-weight: 700; background: var(--line); }
.daychart .dy i.done { background: var(--done); }
.daychart .dy i.partial { background: var(--wk-1); }
.daychart .dy i.missed { background: var(--bad); }
.daychart .dy span { color: var(--muted); font-weight: 400; }
.mapkey { display: none; }
.hero.donehero { border-color: var(--done); background: linear-gradient(135deg, color-mix(in srgb, var(--done) 14%, transparent), var(--card)); }
.hero.donehero .tick { color: var(--done); }
.sess.done b { color: var(--muted); }
.sess.live, .sess.partial { border-color: var(--wk-1); }
.sess.today { border-color: var(--accent); }
.sess.later { opacity: .85; }
/* "Muscles to work" picker: lime, not the orange used for sore */
.bm-want .bm-sel, .bm-want .bm-tap.bm-sel:hover { fill: var(--accent); }
.bm-want .bm-zone.on .bm-zone-dot { fill: var(--accent); stroke: var(--white); }
.bm-want .bm-zone:hover .bm-zone-dot { fill: color-mix(in srgb, var(--accent) 25%, transparent); stroke: var(--accent); }
.bm-want .bm-zone { display: none; }
.elapsed { display: flex; align-items: baseline; gap: 6px; }
.elapsed b { font-size: var(--t-title); font-variant-numeric: tabular-nums; }
.elapsed.over b { color: var(--warn); }
.nextcard { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--edge); border-radius: var(--r-sm); }
.nextcard.k-warmup { border-left-color: var(--warn); } .nextcard.k-strength { border-left-color: var(--accent); }
.nextcard.k-cardio { border-left-color: var(--cardio); } .nextcard.k-stretch { border-left-color: var(--stretch); }
.nextcard-none { margin: 0; }
.mini-steps { margin: 6px 0; padding-left: 20px; font-size: var(--t-md); display: flex; flex-direction: column; gap: 6px; }
.goalcard .now { display: flex; flex-direction: column; gap: 4px; }
.goalcard .now b { font: 600 var(--t-title)/1.25 var(--head); }
.goalcard p { margin: 0; font-size: var(--t-md); }
.goalcard summary { font-size: var(--t-md); }
.goalcard details ul, .goalcard .mini-steps { font-size: var(--t-md); line-height: 1.35; }
.goalcard details ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.goalcard .counter { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-md); }
.goalcard .counter .row { font-size: var(--t-md); }
.goalcard .mini-steps .small, .goalcard small { font-size: var(--t-sm); }
