/*
 * Sneaky Cardio planner (cardio/; docs/SNEAKY-CARDIO.md). Prefix .scd-, scoped to body.sh-cardio.
 * Builds on the Sneaky Line base (brand/assets/sl-base.css: tokens, type, buttons, masthead, ink focus ring).
 * Motion only under prefers-reduced-motion: no-preference, and only once cardio.js arms it (.scd-armed).
 */

body.sh-cardio .scd {
	--scd-vl: #cde8f4; --scd-light: #8ed5c4; --scd-moderate: #3fb39d; --scd-tempo: #4ea6ec; --scd-vigorous: #2a6fc4; --scd-near_max: #ec6a98;
	--scd-card: #fff; --scd-radius: 22px; --scd-line: var(--sl-line-soft); --scd-pillar: var(--sl-train); --scd-pillar-ink: var(--sl-train-ink); --scd-wash: var(--sl-train-wash);
	overflow-x: clip;
}
body.sh-cardio .scd .scd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body.sh-cardio .scd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.sh-cardio .scd-i { width: 24px; height: 24px; flex: none; }
body.sh-cardio .scd-quiet { color: var(--sl-muted); font-weight: 500; }
body.sh-cardio .scd-help { font-size: 14.5px; line-height: 1.5; color: var(--sl-muted); margin: 0; }
body.sh-cardio .scd-note-sm { font-size: 14px; line-height: 1.5; color: var(--sl-muted); margin: 0; }

/* ---------- masthead ---------- */
body.sh-cardio .scd-mast .sl-eyebrow .sl-i { color: var(--scd-pillar); }
body.sh-cardio .scd-mast-facts { margin-top: 4px; }
body.sh-cardio .scd-stage svg { display: block; width: 100%; height: auto; max-width: 620px; margin-inline: auto; overflow: visible; }
body.sh-cardio .scd-route { fill: none; stroke: url(#sl-grad) #4ea6ec; stroke-width: 6; stroke-linecap: round; }
body.sh-cardio .scd-route-shadow { fill: none; stroke: rgba(43, 143, 214, .12); stroke-width: 22; stroke-linecap: round; }
body.sh-cardio .scd-pulse { fill: none; stroke: var(--scd-near_max); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
body.sh-cardio .scd-stop-node circle { fill: #fff; stroke: var(--sl-line); stroke-width: 1.5; filter: drop-shadow(0 10px 14px rgba(18, 44, 58, .12)); }
body.sh-cardio .scd-stop-node use { color: var(--scd-pillar-ink); }
@media (max-width: 1023px) { body.sh-cardio .scd-stage { max-width: 520px; width: 100%; margin-top: -8px; } }
@media (max-width: 599px) { body.sh-cardio .scd-stage { display: none; } }

body.sh-cardio .scd-preview { margin: 20px 0 0; padding: 12px 16px; border: 1.5px dashed var(--sl-line); border-radius: 14px; font-size: 15px; color: var(--sl-copy); background: #fff; }

/* ---------- layout ---------- */
body.sh-cardio .scd-band { padding-top: clamp(24px, 4vw, 48px); }
body.sh-cardio .scd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 1100px) { body.sh-cardio .scd-layout { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); } }
body.sh-cardio .scd-col { min-width: 0; }
/* Wide screens: a result shorter than the form (a check-in panel, a short session) stays beside the choice being made. */
@media (min-width: 1100px) { body.sh-cardio .scd-col--result { position: sticky; top: 84px; } }
body.sh-cardio .scd-h3 { font: 800 clamp(1.3rem, 1.05rem + .8vw, 1.7rem)/1.15 var(--sl-display); letter-spacing: -.02em; color: var(--sl-ink); margin: 0 0 14px; }
body.sh-cardio .scd-form-h { scroll-margin-top: 90px; }

/* ---------- form ---------- */
body.sh-cardio .scd-form { display: grid; gap: 26px; }
body.sh-cardio .scd-field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
body.sh-cardio .scd-legend, body.sh-cardio .scd-more > summary { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 2px; font: 700 17px/1.3 var(--sl-text); color: var(--sl-ink); }
body.sh-cardio .scd-step { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--scd-wash); color: var(--scd-pillar-ink); font: 800 13px/1 var(--sl-text); }
body.sh-cardio .scd-grid { display: grid; gap: 10px; }
body.sh-cardio .scd-grid--activities, body.sh-cardio .scd-grid--goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) and (max-width: 1099px) { body.sh-cardio .scd-grid--activities { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.sh-cardio .scd-grid--goals { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.sh-cardio .scd-grid--exp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

body.sh-cardio .scd-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
body.sh-cardio .scd-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.sh-cardio .scd-choice-body { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--sl-line); border-radius: 16px; background: #fff; color: var(--sl-ink); transition: border-color .15s, background-color .15s, box-shadow .15s; }
body.sh-cardio .scd-choice-text { display: grid; gap: 2px; min-width: 0; }
body.sh-cardio .scd-choice-label { font: 700 15.5px/1.3 var(--sl-text); overflow-wrap: anywhere; }
body.sh-cardio .scd-choice-note { font-size: 13.5px; line-height: 1.4; color: var(--sl-muted); }
body.sh-cardio .scd-choice:hover .scd-choice-body { border-color: var(--scd-pillar); }
body.sh-cardio .scd-choice input:checked + .scd-choice-body { border-color: var(--scd-pillar); background: var(--scd-wash); box-shadow: inset 0 0 0 1px var(--scd-pillar); }
body.sh-cardio .scd-choice input:focus-visible + .scd-choice-body { outline: 2px solid var(--sl-ink); outline-offset: 3px; box-shadow: 0 0 0 5px #fff, inset 0 0 0 1px var(--scd-pillar); }
body.sh-cardio .scd-choice.is-off { cursor: not-allowed; }
body.sh-cardio .scd-choice.is-off input { cursor: not-allowed; }
body.sh-cardio .scd-choice.is-off .scd-choice-body { border-style: dashed; background: #f7fafc; color: var(--sl-muted); }

body.sh-cardio .scd-choice--tile .scd-choice-body { flex-direction: column; gap: 8px; padding: 14px; }
body.sh-cardio .scd-choice-icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--scd-wash); color: var(--scd-pillar-ink); box-sizing: border-box; }
body.sh-cardio .scd-choice--tile input:checked + .scd-choice-body .scd-choice-icon { background: var(--scd-pillar); color: #fff; }

body.sh-cardio .scd-seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 4px; border: 1.5px solid var(--sl-line); border-radius: 999px; background: #fff; }
body.sh-cardio .scd-choice--seg .scd-choice-body { justify-content: center; align-items: center; min-height: 44px; padding: 6px 0; border: 0; border-radius: 999px; background: transparent; }
body.sh-cardio .scd-choice--seg .scd-choice-label { font: 800 16px/1 var(--sl-display); font-variant-numeric: tabular-nums; }
body.sh-cardio .scd-choice--seg input:checked + .scd-choice-body { background: var(--sl-ink); color: #fff; box-shadow: none; }

body.sh-cardio .scd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.sh-cardio .scd-choice--chip .scd-choice-body { align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; }
body.sh-cardio .scd-choice--chip .scd-choice-label { font-size: 15px; white-space: nowrap; }
body.sh-cardio .scd-choice--auto input:checked + .scd-choice-body { background: var(--sl-teal); border-color: var(--sl-teal); color: #fff; box-shadow: none; }
body.sh-cardio .scd-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; color: var(--sl-muted); }
body.sh-cardio .scd-why:empty { display: none; }
body.sh-cardio .scd-why strong { color: var(--sl-copy); font-weight: 700; }

body.sh-cardio .scd-choice--check .scd-choice-body { align-items: flex-start; padding: 12px 14px 12px 46px; position: relative; }
body.sh-cardio .scd-choice--check .scd-choice-body::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border: 1.5px solid var(--sl-muted); border-radius: 6px; background: #fff; }
body.sh-cardio .scd-choice--check input:checked + .scd-choice-body::before { background: var(--scd-pillar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--scd-pillar); }
body.sh-cardio .scd-choice--check .scd-choice-label { font-weight: 600; font-size: 15px; }
body.sh-cardio .scd-checks { display: grid; gap: 8px; }
body.sh-cardio .scd-help--hint { color: var(--sl-copy); padding: 10px 12px; border-radius: 12px; background: var(--sl-sky-soft); }

body.sh-cardio .scd-more { border: 1.5px solid var(--sl-line); border-radius: var(--scd-radius); background: #fff; }
body.sh-cardio .scd-more > summary { list-style: none; cursor: pointer; min-height: 56px; padding: 0 18px; margin: 0; }
body.sh-cardio .scd-more > summary::-webkit-details-marker { display: none; }
body.sh-cardio .scd-more > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--sl-copy); border-bottom: 2px solid var(--sl-copy); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
body.sh-cardio .scd-more[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
body.sh-cardio .scd-more-body { display: grid; gap: 16px; padding: 0 18px 18px; }
body.sh-cardio .scd-saved { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--sl-sky-soft); }
body.sh-cardio .scd-saved-title { margin: 0; font: 800 12px/1.2 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--sl-copy); }
body.sh-cardio .scd-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.sh-cardio .scd-input { display: grid; gap: 6px; align-content: start; min-width: 0; }
body.sh-cardio .scd-input label { font: 700 15px/1.3 var(--sl-text); color: var(--sl-ink); }
body.sh-cardio .scd-input input, body.sh-cardio .scd-input select { width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--sl-line); border-radius: 12px; background: #fff; color: var(--sl-ink); font: 600 16px/1.2 var(--sl-text); box-sizing: border-box; }
body.sh-cardio .scd-input input:hover, body.sh-cardio .scd-input select:hover { border-color: var(--scd-pillar); }
body.sh-cardio .scd-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; }
body.sh-cardio .scd-input-help { font-size: 13px; line-height: 1.4; color: var(--sl-muted); }
@media (max-width: 380px) { body.sh-cardio .scd-inputs { grid-template-columns: minmax(0, 1fr); } }

body.sh-cardio .scd-submit { display: grid; gap: 10px; justify-items: start; }
/* Phones and tablets: the session sits below the form, so the action stays in reach while the form is on screen.
   The bar is at most 62px tall, which keeps it clear of the floating "Ask a Helper" launcher above it. */
@media (max-width: 1099px) {
	body.sh-cardio .scd-submit { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(-1 * var(--sl-gutter)); padding: 4px var(--sl-gutter) 6px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 34%); }
	body.sh-cardio .scd-submit .scd-build { width: 100%; }
	body.sh-cardio .scd-submit [data-scd-status] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
body.sh-cardio .scd-build .scd-i { width: 22px; height: 22px; }
body.sh-cardio .scd-form.is-pending .scd-build { opacity: .75; }

/* ---------- result ---------- */
body.sh-cardio .scd-result { display: grid; gap: 22px; min-width: 0; scroll-margin-top: 90px; }
body.sh-cardio .scd-result:focus { outline: none; }
body.sh-cardio .scd-result.is-pending { opacity: .6; transition: opacity .2s; }
body.sh-cardio .scd-sheet { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--scd-line); border-radius: 28px; background: var(--scd-card); box-shadow: var(--sl-shadow-lift); min-width: 0; }
body.sh-cardio .scd-sheet-head { display: grid; gap: 8px; }
body.sh-cardio .scd-sheet-head .sl-eyebrow .scd-i { width: 20px; height: 20px; color: var(--scd-pillar); }
body.sh-cardio .scd-title { font-size: clamp(1.75rem, 1.15rem + 2vw, 2.6rem); margin: 0; }
body.sh-cardio .scd-sub { margin: 0; font-weight: 700; color: var(--scd-pillar-ink); font-size: 15px; }
body.sh-cardio .scd-summary { margin: 0; font-size: 17px; line-height: 1.55; color: var(--sl-copy); max-width: 62ch; }
body.sh-cardio .scd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { body.sh-cardio .scd-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.sh-cardio .scd-facts li { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 16px; background: #f5f9fc; min-width: 0; }
body.sh-cardio .scd-facts span { font: 700 12px/1.3 var(--sl-text); letter-spacing: .08em; text-transform: uppercase; color: var(--sl-muted); }
body.sh-cardio .scd-facts strong { font: 800 18px/1.25 var(--sl-display); color: var(--sl-ink); overflow-wrap: anywhere; }
body.sh-cardio .scd-facts .scd-quiet { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }

body.sh-cardio .scd-timeline { margin: 0; display: grid; gap: 8px; }
body.sh-cardio .scd-timeline svg { display: block; width: 100%; height: 112px; }
body.sh-cardio .scd-base { stroke: var(--sl-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
body.sh-cardio .scd-bar { transform-box: fill-box; transform-origin: 50% 100%; }
body.sh-cardio .scd-phasebar { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.3; color: var(--sl-copy); font-weight: 700; }
body.sh-cardio .scd-phasebar li { flex: 1 1 0; min-width: 0; display: grid; padding-top: 6px; border-top: 3px solid var(--sl-line); }
body.sh-cardio .scd-phasebar li > span:first-child { overflow-wrap: normal; hyphens: manual; } /* "Cool-down" may break at its hyphen in a narrow slot */
body.sh-cardio .scd-phasebar li > span + span { white-space: nowrap; }
body.sh-cardio .scd-phasebar li:nth-child(2) { border-top-color: var(--scd-pillar); }

body.sh-cardio .scd-d--very_light { fill: var(--scd-vl); background: var(--scd-vl); }
body.sh-cardio .scd-d--light { fill: var(--scd-light); background: var(--scd-light); }
body.sh-cardio .scd-d--moderate { fill: var(--scd-moderate); background: var(--scd-moderate); }
body.sh-cardio .scd-d--tempo { fill: var(--scd-tempo); background: var(--scd-tempo); }
body.sh-cardio .scd-d--vigorous { fill: var(--scd-vigorous); background: var(--scd-vigorous); }
body.sh-cardio .scd-d--near_max { fill: var(--scd-near_max); background: var(--scd-near_max); }

body.sh-cardio .scd-setup { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--scd-wash); }
body.sh-cardio .scd-setup-title { margin: 0; font: 800 12px/1.3 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--scd-pillar-ink); }
body.sh-cardio .scd-setup ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
body.sh-cardio .scd-setup li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.45; color: var(--sl-ink); }
body.sh-cardio .scd-setup .sl-i { width: 18px; height: 18px; margin-top: 2px; color: var(--sl-teal); }
body.sh-cardio .scd-sheet-actions { gap: 10px; }
body.sh-cardio .scd-sheet-actions .sl-btn[disabled] { opacity: .5; cursor: not-allowed; }
body.sh-cardio .scd-version { font-size: 14px; margin-left: auto; }

body.sh-cardio .scd-flags { display: grid; gap: 10px; }
body.sh-cardio .scd-flag { margin: 0; padding: 12px 16px; border-left: 4px solid var(--sl-sky); border-radius: 0 14px 14px 0; background: var(--sl-sky-soft); color: var(--sl-ink); font-size: 15.5px; line-height: 1.5; }
body.sh-cardio .scd-flag--caution { border-left-color: var(--sl-learn); background: var(--sl-learn-wash); }

body.sh-cardio .scd-section { display: grid; gap: 10px; min-width: 0; }
body.sh-cardio .scd-section .scd-h3 { margin: 0; }
body.sh-cardio .scd-steps { display: grid; gap: 18px; }
body.sh-cardio .scd-phase { display: grid; gap: 8px; }
body.sh-cardio .scd-phase-title { margin: 0; font: 800 13px/1.3 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--sl-copy); }
body.sh-cardio .scd-phase-title .scd-quiet { letter-spacing: 0; text-transform: none; font-weight: 600; }
body.sh-cardio .scd-blocks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.sh-cardio .scd-block { display: grid; grid-template-columns: 84px 6px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--scd-line); border-radius: 16px; background: #fff; }
@media (max-width: 479px) { body.sh-cardio .scd-block { grid-template-columns: 6px minmax(0, 1fr); } body.sh-cardio .scd-block > .scd-time { grid-column: 1 / -1; } }
body.sh-cardio .scd-time { font: 700 14px/1.4 var(--sl-text); font-variant-numeric: tabular-nums; color: var(--sl-copy); }
body.sh-cardio .scd-bar-key { border-radius: 4px; min-height: 100%; }
body.sh-cardio .scd-block-body { display: grid; gap: 4px; min-width: 0; }
body.sh-cardio .scd-block-title { margin: 0; font: 800 17px/1.3 var(--sl-display); color: var(--sl-ink); }
body.sh-cardio .scd-block-meta { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--sl-copy); font-weight: 600; }
body.sh-cardio .scd-cue { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sl-copy); }
body.sh-cardio .scd-block--set { background: linear-gradient(180deg, #fff, #f7fbfe); }
body.sh-cardio .scd-reps summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--scd-pillar-ink); min-height: 32px; display: inline-flex; align-items: center; }
body.sh-cardio .scd-reps ol { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; color: var(--sl-copy); }
body.sh-cardio .scd-reps .scd-time { display: inline-block; min-width: 52px; }

body.sh-cardio .scd-table-wrap { overflow-x: auto; border: 1px solid var(--scd-line); border-radius: 16px; background: #fff; }
body.sh-cardio .scd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; color: var(--sl-copy); }
body.sh-cardio .scd-table th, body.sh-cardio .scd-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--scd-line); }
body.sh-cardio .scd-table tr:last-child > * { border-bottom: 0; }
body.sh-cardio .scd-table thead th { font: 700 12px/1.3 var(--sl-text); letter-spacing: .08em; text-transform: uppercase; color: var(--sl-muted); background: #f7fafc; }
body.sh-cardio .scd-table tbody th { color: var(--sl-ink); white-space: nowrap; }
body.sh-cardio .scd-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.sh-cardio .scd-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.sh-cardio .scd-table--sm { font-size: 14px; margin-top: 8px; border: 1px solid var(--scd-line); border-radius: 12px; overflow: hidden; }
body.sh-cardio .scd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
@media (max-width: 599px) {
	body.sh-cardio .scd-table:not(.scd-table--sm) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	body.sh-cardio .scd-table:not(.scd-table--sm) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; border-bottom: 1px solid var(--scd-line); }
	body.sh-cardio .scd-table:not(.scd-table--sm) tr:last-child { border-bottom: 0; }
	body.sh-cardio .scd-table:not(.scd-table--sm) :is(th, td) { padding: 2px 0; border: 0; }
	body.sh-cardio .scd-table:not(.scd-table--sm) td:nth-child(3) { grid-column: 1 / -1; order: 3; }
	body.sh-cardio .scd-table:not(.scd-table--sm) td:nth-child(2)::before { content: "Effort "; color: var(--sl-muted); }
	body.sh-cardio .scd-table:not(.scd-table--sm) td:nth-child(4) { grid-column: 1 / -1; order: 4; font-weight: 700; color: var(--sl-ink); }
}

body.sh-cardio .scd-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { body.sh-cardio .scd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.sh-cardio .scd-card { display: grid; gap: 10px; align-content: start; padding: 20px; border: 1px solid var(--scd-line); border-radius: var(--scd-radius); background: #fff; min-width: 0; }
body.sh-cardio .scd-card > p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--sl-copy); }
body.sh-cardio .scd-card-title { margin: 0; font: 800 12.5px/1.3 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--scd-pillar-ink); }
body.sh-cardio .scd-big { font: 800 clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem)/1.05 var(--sl-display) !important; letter-spacing: -.02em; color: var(--sl-ink) !important; font-variant-numeric: tabular-nums; }
body.sh-cardio .scd-big span { font-size: .55em; color: var(--sl-copy); }
body.sh-cardio .scd-big--quiet { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem) !important; }
body.sh-cardio .scd-kv { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
body.sh-cardio .scd-kv li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--sl-copy); }
body.sh-cardio .scd-kv li > span:first-child { min-width: 92px; color: var(--sl-muted); }
body.sh-cardio .scd-kv strong { color: var(--sl-ink); font-weight: 800; }
body.sh-cardio .scd-dots { display: inline-flex; gap: 5px; align-items: center; }
body.sh-cardio .scd-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--sl-line-soft); border: 1px solid var(--sl-line); }
body.sh-cardio .scd-dots span.is-on { background: var(--scd-pillar); border-color: var(--scd-pillar); }
body.sh-cardio .scd-subhead { margin: 4px 0 0 !important; font-weight: 700; color: var(--sl-ink) !important; font-size: 15px !important; }
body.sh-cardio .scd-list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 5px; font-size: 15px; line-height: 1.5; color: var(--sl-copy); }
body.sh-cardio .scd-list--stop li::marker { color: var(--sl-plum); }
body.sh-cardio .scd-card--safety { background: linear-gradient(180deg, #fff, var(--sl-rose-soft)); border-color: var(--sl-rose-line); }
body.sh-cardio .scd-card--safety .scd-card-title { color: var(--sl-plum); }
body.sh-cardio .scd-formula { margin: 8px 0 0; font: 700 14.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--sl-ink); }

body.sh-cardio .scd-details { border-top: 1px solid var(--scd-line); padding-top: 8px; }
body.sh-cardio .scd-card .scd-details { border-top: 0; padding-top: 0; }
body.sh-cardio .scd-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--scd-pillar-ink); font-size: 15px; }
body.sh-cardio .scd-basis .scd-list { margin: 4px 0 10px; }
body.sh-cardio .scd-contract pre { max-height: 420px; overflow: auto; margin: 8px 0 0; padding: 14px; border-radius: 14px; background: var(--sl-night); color: #dbe9f1; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }

body.sh-cardio .scd-stop { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: linear-gradient(180deg, #fff, var(--sl-rose-soft)); border: 1px solid var(--sl-rose-line); }
body.sh-cardio .scd-stop .sl-eyebrow { color: var(--sl-plum); }
body.sh-cardio .scd-stop .sl-eyebrow .scd-i { width: 20px; height: 20px; }
body.sh-cardio .scd-stop p { margin: 0; }
body.sh-cardio .scd-stop--soft { background: #fff; border-color: var(--sl-line); }

/* ---------- motion (armed by cardio.js; never on information) ---------- */
@media (prefers-reduced-motion: no-preference) {
	body.sh-cardio .scd-armed .scd-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: scd-draw 1.6s var(--sl-ease) .2s forwards; }
	body.sh-cardio .scd-armed .scd-pulse { stroke-dasharray: 1; stroke-dashoffset: 1; animation: scd-draw 1.2s var(--sl-ease) 1.1s forwards; }
	body.sh-cardio .scd-armed .scd-stop-node { opacity: 0; animation: scd-pop .5s var(--sl-spring) forwards; animation-delay: calc(.35s + var(--k) * .18s); }
	body.sh-cardio .scd-armed .scd-bar { animation: scd-grow .55s var(--sl-ease) both; animation-delay: calc(var(--k) * 18ms); }
	body.sh-cardio .scd-choice-body { transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s; }
	body.sh-cardio .scd-choice:not(.is-off):hover .scd-choice-body { transform: translateY(-1px); }
}
@keyframes scd-draw { to { stroke-dashoffset: 0; } }
@keyframes scd-pop { from { opacity: 0; } to { opacity: 1; } } /* opacity only: the nodes are positioned by their transform attribute */
@keyframes scd-grow { from { transform: scaleY(.04); } to { transform: scaleY(1); } }

@media print {
	body.sh-cardio :is(.scd-mast, .scd-col--form, .scd-sheet-actions, .scd-contract, .scd-preview) { display: none !important; }
	body.sh-cardio .scd-layout { display: block; }
	body.sh-cardio .scd-reps[open] summary, body.sh-cardio .scd-details summary { display: none; }
}

/* ---------- Connected Experience (14 Oct 2026): save → review → schedule, and where the session goes next ---------- */
body.sh-cardio .scd-save-go { scroll-margin-top: 90px; }
body.sh-cardio .scd-store { scroll-margin-top: 72px; margin-top: clamp(24px, 4vw, 48px); }
body.sh-cardio .scd-store-in { display: grid; gap: 22px; }
body.sh-cardio .scd-store-head { display: grid; gap: 10px; }
body.sh-cardio .scd-path { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: none; position: relative; }
body.sh-cardio .scd-path li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--sl-copy); }
body.sh-cardio .scd-path strong { color: var(--sl-ink); }
body.sh-cardio .scd-path-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sl-train-ink); font: 800 18px/1 var(--sl-display); box-shadow: 0 0 0 2px var(--sl-train), 0 10px 20px -14px rgba(11, 58, 70, .6); }
@media (min-width: 900px) {
	body.sh-cardio .scd-path { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	body.sh-cardio .scd-path::before { content: ""; position: absolute; top: 21px; left: 22px; right: calc(33.3% - 22px); height: 3px; border-radius: 3px; background: var(--sl-grad); }
	body.sh-cardio .scd-path li { grid-template-columns: minmax(0, 1fr); }
	body.sh-cardio .scd-path-n { position: relative; z-index: 1; }
}
body.sh-cardio .scd-store-card { display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--sl-line-soft); border-radius: var(--scd-radius); background: #fff; box-shadow: var(--sl-shadow-card); }
body.sh-cardio .scd-store-note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--sl-copy); max-width: 72ch; }
body.sh-cardio .scd-consent { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 12px 14px; border: 1.5px solid var(--sl-line); border-radius: 14px; background: #fbfdfe; font: 650 15px/1.45 var(--sl-text); color: var(--sl-ink); cursor: pointer; }
body.sh-cardio .scd-consent:has(input:checked) { border-color: var(--sl-train); background: var(--sl-train-wash); }
body.sh-cardio .scd-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--sl-train-ink); }
body.sh-cardio .scd-store-status:empty { display: none; }
body.sh-cardio .scd-store-status { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sl-sky-soft); font: 650 15px/1.45 var(--sl-text); color: var(--sl-ink); }
body.sh-cardio .scd-store-list-h { margin: 6px 0 0; }
body.sh-cardio .scd-store-list { display: grid; gap: 12px; }
body.sh-cardio .scd-saved { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--sl-line-soft); border-left: 4px solid var(--sl-train); border-radius: 18px; background: #fff; }
body.sh-cardio .scd-saved--draft { border-left-color: var(--sl-learn); }
body.sh-cardio .scd-saved--withdrawn { border-left-color: var(--sl-line); background: #fafcfd; }
body.sh-cardio .scd-saved-body { display: grid; gap: 4px; min-width: 0; }
body.sh-cardio .scd-saved-state { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--sl-train-wash); font: 750 12.5px/1.2 var(--sl-text); letter-spacing: .02em; color: var(--sl-train-ink); }
body.sh-cardio .scd-saved--draft .scd-saved-state { background: var(--sl-learn-wash); color: var(--sl-learn-ink); }
body.sh-cardio .scd-saved--withdrawn .scd-saved-state { background: #eef3f6; color: var(--sl-muted); }
body.sh-cardio .scd-saved-name { margin: 0; font: 700 17px/1.3 var(--sl-display); color: var(--sl-ink); overflow-wrap: anywhere; }
body.sh-cardio .scd-saved-note { margin: 0; font-size: 14px; color: var(--sl-plum); }
body.sh-cardio .scd-saved-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
body.sh-cardio .scd-store-empty, body.sh-cardio .scd-store-hint { margin: 0; font-size: 15px; color: var(--sl-muted); }
body.sh-cardio .scd-store-review:not(:empty) { display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--scd-radius); background: #fff; border: 1px solid var(--sl-line-soft); box-shadow: var(--sl-shadow-lift); }
body.sh-cardio .scd-store-review .scd-h3 { margin: 0; }
body.sh-cardio .scd-review-step { margin: 0; font: 750 13px/1.3 var(--sl-text); letter-spacing: .08em; text-transform: uppercase; color: var(--sl-train-ink); }
body.sh-cardio .scd-review-sheet .scd-sheet { box-shadow: none; }
body.sh-cardio .scd-review-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
body.sh-cardio .scd-label-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
body.sh-cardio .scd-label-row input { flex: 1 1 240px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--sl-line); border-radius: 12px; font: 400 16px/1.2 var(--sl-text); color: var(--sl-ink); }
@media (max-width: 599px) {
	body.sh-cardio .scd-saved { grid-template-columns: minmax(0, 1fr); }
	body.sh-cardio .scd-saved-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
	body.sh-cardio .scd-saved { animation: scd-saved-in .4s var(--sl-ease) both; }
	body.sh-cardio .scd-store-review:not(:empty) { animation: scd-saved-in .45s var(--sl-ease) both; }
	@keyframes scd-saved-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
body.sh-cardio [data-scd-store][aria-busy="true"] :is(.sl-btn, button) { opacity: .62; cursor: progress; }

/* ---------- Simpler planner (17 Oct 2026): fewer words, both columns start on one line, and the session visibly follows the choices ---------- */
/* .scd-is-live is set by cardio.js only when in-place updates work; .scd-updating while a change is on its way; .scd-updated briefly after. */
body.sh-cardio .scd-layout { --scd-gap: clamp(28px, 4vw, 48px); gap: var(--scd-gap); }
body.sh-cardio .scd-grid--activities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.sh-cardio .scd-choice--pick .scd-choice-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.sh-cardio .scd-pick-note { margin: -2px 0 0; font-size: 14px; line-height: 1.45; color: var(--sl-muted); }
body.sh-cardio .scd-pick-note:empty { display: none; }

body.sh-cardio .scd-live-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sl-teal); box-shadow: 0 0 0 3px rgba(63, 179, 157, .2); }
body.sh-cardio .scd-live-hint { display: flex; align-items: center; gap: 9px; }
body.sh-cardio .scd-live-hint .scd-live-dot, body.sh-cardio .scd-live-hint-on { display: none; }
body.sh-cardio .scd-is-live .scd-live-hint .scd-live-dot { display: inline-block; }
body.sh-cardio .scd-is-live .scd-live-hint-on { display: inline; }
body.sh-cardio .scd-is-live .scd-live-hint-off { display: none; }

body.sh-cardio .scd-sheet-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
body.sh-cardio .scd-sheet-top .sl-eyebrow { margin: 0; }
body.sh-cardio .scd-live { display: none; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--scd-wash); color: var(--scd-pillar-ink); font: 800 12px/1 var(--sl-text); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
body.sh-cardio .scd-is-live .scd-live { display: inline-flex; }
body.sh-cardio .scd-live-s--busy, body.sh-cardio .scd-live-s--done,
body.sh-cardio .scd-updating .scd-live-s--idle, body.sh-cardio .scd-updated .scd-live-s--idle { display: none; }
body.sh-cardio .scd-updating .scd-live-s--busy, body.sh-cardio .scd-updated .scd-live-s--done { display: inline; }
body.sh-cardio .scd-updating .scd-live .scd-live-dot { background: var(--scd-pillar); }

/* The link between the columns (wide screens): choices on the left feed the session on the right. */
body.sh-cardio .scd-link { display: none; }
@media (min-width: 1100px) {
	body.sh-cardio .scd-is-live .scd-link { display: grid; place-items: center; position: absolute; z-index: 2; top: 18px; left: calc(var(--scd-gap) / -2 - 20px); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--scd-pillar-ink); box-shadow: 0 0 0 1px var(--scd-line), 0 10px 20px -12px rgba(12, 34, 54, .5); transition: background-color .2s, color .2s; }
	body.sh-cardio .scd-link svg { width: 20px; height: 20px; }
	body.sh-cardio .scd-updating .scd-link { background: var(--scd-pillar); color: #fff; }
}

/* The button names the session it leads to, so the result is in view even while the form fills the screen. */
body.sh-cardio .scd-build-txt { display: grid; gap: 2px; min-width: 0; text-align: left; }
body.sh-cardio .scd-build-sub { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 600; line-height: 1.15; opacity: .88; }
body.sh-cardio .scd-build-sub:empty { display: none; }

body.sh-cardio .scd-more-detail .scd-cards { padding: 6px 0 14px; }

@media (prefers-reduced-motion: no-preference) {
	body.sh-cardio .scd-armed.scd-updating .scd-live-dot { animation: scd-blink .7s ease-in-out infinite alternate; }
	body.sh-cardio .scd-armed.scd-updating .scd-link svg { animation: scd-nudge .5s ease-in-out infinite alternate; }
	body.sh-cardio .scd-armed.scd-updated :is(.scd-sheet, .scd-stop) { animation: scd-landed 1s var(--sl-ease); }
	body.sh-cardio .scd-armed.scd-updated .scd-result > :not(.scd-sheet, .scd-stop, script) { animation: scd-fresh .5s var(--sl-ease) both; }
	body.sh-cardio .scd-armed.scd-updated .scd-build-sub { animation: scd-fresh .5s var(--sl-ease) both; }
}
@keyframes scd-blink { from { opacity: 1; } to { opacity: .25; } }
@keyframes scd-nudge { from { transform: translateX(-2px); } to { transform: translateX(3px); } }
@keyframes scd-landed { from { box-shadow: 0 0 0 4px rgba(43, 143, 214, .45), 0 30px 60px -40px rgba(12, 34, 54, .5); } }
@keyframes scd-fresh { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
