@font-face { font-family: Archivo; src: url('./fonts/archivo-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Archivo; src: url('./fonts/archivo-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
/* App colors, radii, spacing, and system-font typography from src/constants.
   Buttons follow components/ui/Button.tsx. */
:root {
  --background: #0b0a09;
  --surface: #11100f;
  --card: #151311;
  --elevated: #1b1714;
  --border: #26201b;
  --accent: #ff5722;
  --text: #f6efe8;
  --muted: #b7a79a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
header, main, footer { width: min(100% - 40px, 580px); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.4px; }
.brand img { border-radius: 10px; }
.header-label { color: var(--muted); font-size: 12px; }
.intro { margin: 32px 0 24px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.6px; }
.intro p { margin: 8px 0 0; color: var(--muted); }
.card { border: 1px solid var(--border); border-radius: 20px; background: var(--card); padding: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.profile { display: grid; grid-template-columns: 1.3fr 1.2fr .7fr; gap: 12px; padding-bottom: 24px; }
label { color: var(--muted); font-size: 12px; }
input, select { min-width: 0; width: 100%; height: 48px; padding: 10px 12px; background: var(--surface); border: 1px solid #473b32; border-radius: 10px; color: var(--text); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.profile input, .profile select { display: block; margin-top: 8px; }
input::placeholder { color: #8b7c70; }
.lift-head, .lift-row { display: grid; grid-template-columns: 1.5fr 1fr .65fr; gap: 12px; align-items: center; }
.lift-head { border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 4px; font-size: 12px; color: var(--muted); }
.lift-row { padding-top: 12px; }
.lift-name { color: var(--text); font-size: 15px; font-weight: 500; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 16px 0; }
.primary, .secondary { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.primary { background: var(--accent); color: var(--background); border: 0; width: 100%; }
.secondary { background: var(--elevated); color: var(--text); border: 1px solid #473b32; }
.primary:hover, .secondary:hover { opacity: .88; }
.primary:disabled { background: var(--elevated); color: var(--muted); cursor: wait; }
.text-button { padding: 8px 0 8px 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 11px; }
#load-status { margin-bottom: 0; }
#error { color: #f3a091; font-size: 13px; }
.result { margin-top: 20px; scroll-margin-top: 20px; }
.score-hero { text-align: center; padding: 12px 0 8px; break-inside: avoid; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.score { font-size: clamp(96px, 22vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -4px; font-variant-numeric: tabular-nums; margin: 12px 0; }
.result-note { margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.profile-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.profile-heading h3 { font-size: 15px; font-weight: 600; margin: 0; }
.profile-heading > span { color: var(--muted); font-size: 12px; }
.body-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.body-controls > span { color: var(--muted); font-size: 12px; }
.view-toggle { display: flex; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.view-toggle button { min-height: 36px; min-width: 60px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--elevated); color: var(--text); }
.body-map { display: flex; justify-content: center; margin: 16px 0; }
.body-figure { position: relative; height: 340px; aspect-ratio: 587 / 1137; }
.body-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.muscle-hit { position: absolute; border: 0; padding: 0; border-radius: 8px; background: transparent; cursor: pointer; touch-action: manipulation; }
.muscle-hit:hover { background: #ffffff18; }
.muscle-hit:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; background: #ffffff18; }
.muscle-insight { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.muscle-insight h4 { margin: 0; font-size: 17px; }
.muscle-insight p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.muscle-insight strong { font-size: 36px; letter-spacing: -1px; }
.muscle-result { width: 100%; text-align: left; color: var(--text); background: transparent; border: 0; cursor: pointer; font: inherit; }
.muscle-result[aria-pressed="true"], .muscle-result:hover { background: #ffffff06; }
#lift-details .result-head { margin-top: 16px; }
.muscle-result strong { color: var(--text); }
.result-head, .lift-result { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.result-head { padding-bottom: 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.lift-result { padding: 12px 0; border-bottom: 1px solid var(--border); }
.lift-result strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.lift-result small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
details { margin: 16px 0 24px; font-size: 12px; color: var(--muted); }
summary { cursor: pointer; width: fit-content; }
details p { margin: 12px 0 0; }
.result-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
.install-note { margin: 8px 0 0; }
#share-status:empty { display: none; }
.share-card-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-card-panel label { display: block; margin-bottom: 8px; }
#share-canvas { display: block; width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 16px; }
footer { display: flex; justify-content: space-between; margin-top: 24px; padding-bottom: 28px; font-size: 12px; color: var(--muted); }
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.score:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 430px) {
  header, main, footer { width: calc(100% - 32px); }
  .card { padding: 16px; }
  h1 { max-width: 290px; }
  .profile { gap: 8px; }
  .lift-head, .lift-row { gap: 8px; grid-template-columns: 1.4fr 1fr .65fr; }
  input, select { padding-inline: 8px; }
  .form-footer { align-items: baseline; }
  .form-footer > span { max-width: 155px; }
}

.intro .intro-note { font-size: 12px; margin-top: 12px; }
.profile { padding-bottom: 0; }
.profile-note { margin: 12px 0 20px; }
.score-interpretation { margin: 16px auto 8px; max-width: 380px; font-size: 16px; }
.score-hero .text-button { min-height: 44px; padding-inline: 12px; }
.score-hero { padding-bottom: 24px; }
.view-toggle button { min-height: 44px; }
summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
summary::before { content: '+'; }
details[open] > summary::before { content: '−'; }
.share-card-panel h3, .repolve-discovery h3 { margin: 0 0 12px; font-size: 18px; }
#share-caption { width: 100%; resize: vertical; min-height: 110px; padding: 12px; margin-bottom: 12px; background: var(--surface); color: var(--text); border: 1px solid #473b32; border-radius: 10px; font: inherit; font-size: 16px; }
#share-caption:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.repolve-discovery { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 24px; }
.repolve-discovery p { color: var(--muted); font-size: 13px; }
.repolve-discovery .secondary { font-size: 14px; }
input[aria-invalid="true"] { border-color: #f3a091; }
@media (max-width: 360px) {
  header, main, footer { width: calc(100% - 24px); }
  .card { padding: 14px; }
  .profile { grid-template-columns: 1.2fr 1fr .75fr; gap: 6px; }
  .lift-name { font-size: 13px; }
  .body-controls { gap: 6px; }
  .view-toggle button { min-width: 48px; }
  .form-footer { flex-wrap: wrap; gap: 0; }
}

.additional-card { margin-top: 20px; scroll-margin-top: 20px; }
.exercise-picker { display: flex; gap: 8px; margin: 8px 0 16px; }
.exercise-picker select { flex: 1; }
.exercise-picker button { flex-shrink: 0; min-height: 48px; padding: 8px 12px; }
.additional-lift { border-top: 1px solid var(--border); padding: 16px 0; }
.additional-lift h3 { margin: 0; font-size: 15px; }
.additional-lift .hint { margin: 4px 0 12px; }
.additional-fields { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px; }
.additional-fields .text-button { min-height: 48px; }
.additional-fields label input { display: block; margin-top: 6px; }
#additional-error { color: #f3a091; }

.add-lifts-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; min-height: 44px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--accent); font: inherit; font-size: 13px; font-weight: 650; text-align: left; cursor: pointer; }
.add-lifts-toggle::before { content: '+'; font-size: 22px; line-height: 1; font-weight: 400; }
.add-lifts-toggle[aria-expanded='true']::before { content: '↳'; }
.additional-card { margin: 16px 0 0; padding: 16px 0 0; border-bottom: 1px solid var(--border); }
.additional-card h2 { font-size: 18px; letter-spacing: -.035em; font-weight: 700; }
.additional-card > .hint { margin: 8px 0 16px; }


input::placeholder { color: #76695f; font-weight: 400; opacity: 1; }
input:placeholder-shown { border-color: #352d26; background: #100f0d; }
input:focus { border-color: var(--accent); background: #1b1511; }
.muscle-insight strong.unmeasured { max-width: 85px; color: var(--muted); font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0; text-align: right; }

.evidence-note { text-align: left; border-left: 2px solid var(--accent); padding: 12px 14px; margin: 20px 0; background: var(--surface); border-radius: 0 10px 10px 0; }
.evidence-note strong { font-size: 14px; }
.evidence-note p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 6px 0 0; }

.score.score-pending { font-family: inherit; font-size: 30px; letter-spacing: -.04em; line-height: 1.15; margin: 24px 0; }

.score-benchmarks { text-align: left; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--border); }
.score-benchmarks h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.035em; }
#benchmark-position { font-size: 14px; margin: 8px 0 16px; }

.benchmark-track { position: relative; height: 66px; margin: 26px 0 12px; border-top: 2px solid #51483f; }
.benchmark-marker { position: absolute; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--background); }
.benchmark-scale { list-style: none; margin: 0; padding: 0; }
.benchmark-scale li { position: absolute; top: 8px; transform: translateX(-50%); text-align: center; }
.benchmark-scale li:last-child { transform: translateX(-100%); text-align: right; }
.benchmark-scale strong { display: block; font-size: 16px; font-weight: 600; }
.benchmark-scale span { color: var(--muted); font-size: 10px; }
.benchmark-scale .current-benchmark strong { color: var(--accent); }
.score-benchmarks .hint { margin-bottom: 0; }

/* One working surface: clear rows, quiet dividers, no nested cards. */
header, main, footer { width: min(100% - 40px, 620px); }
header { padding-block: 20px; }
.brand { font-size: 12px; letter-spacing: 0; }
.intro { margin: 32px 0; }
h1 { font-family: inherit; font-size: clamp(36px, 7vw, 50px); line-height: 1.06; letter-spacing: -.055em; font-weight: 750; max-width: none; }
.intro p { margin-top: 14px; max-width: 400px; }
.intro .intro-note { font-size: 12px; margin-top: 6px; }
.card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.profile-note { margin-bottom: 24px; }
.lift-head { padding-top: 12px; }
.lift-row { padding-block: 10px; border-bottom: 1px solid var(--border); }
.lift-name { font-weight: 600; }
input, select, #share-caption { border-radius: 5px; }
input { font-weight: 550; }
.primary, .secondary { border-radius: 6px; }
.add-lifts-toggle { color: var(--muted); margin-top: 4px; border-bottom: 0; }
.add-lifts-toggle:hover { color: var(--text); }
.result { border-top: 1px solid #51483f; padding-top: 28px; margin-top: 36px; }
.score-hero { text-align: left; padding: 0 0 28px; }
.score-hero h2 { color: var(--muted); font-size: 13px; font-weight: 500; }
.score { font-family: inherit; font-size: clamp(96px, 22vw, 128px); line-height: 1; font-weight: 700; letter-spacing: -.065em; color: var(--text); margin: 8px 0 12px; }
.score-interpretation { margin: 8px 0 20px; max-width: none; font-size: 15px; }
.score-benchmarks { border-top: 0; padding-top: 0; margin-top: 20px; }
.score-benchmarks h3 { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.evidence-note { border: 0; background: none; border-radius: 0; padding: 0; margin: 20px 0 8px; }
.evidence-note strong { font-size: 13px; font-weight: 600; }
.evidence-note p { font-size: 12px; margin-top: 4px; }
.result-note { font-size: 12px; margin-bottom: 20px; }
.profile-heading h3 { font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.muscle-insight { border-radius: 0; border-inline: 0; background: none; padding: 14px 0; }
.view-toggle { border-radius: 6px; padding: 2px; }
.view-toggle button { border-radius: 3px; }
.repolve-discovery { border-top: 1px solid var(--border); padding-top: 24px; }
.repolve-discovery .secondary { display: inline-flex; background: none; border: 0; padding-left: 0; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 360px) { header, main, footer { width: calc(100% - 32px); } .benchmark-scale span { font-size: 9px; } }

.form-footer { justify-content: flex-end; }

body { font-family: Archivo, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; }
h1, .score, .profile-heading h3, .share-card-panel h3 { font-family: Archivo, sans-serif; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(42px, 8vw, 58px); line-height: 1.02; }
.score { font-size: clamp(96px, 24vw, 128px); line-height: .95; margin: 8px 0 0; }
.score-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 16px; padding-bottom: 24px; }
.score-hero h2 { grid-column: 1 / -1; }
.score-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.score-actions .secondary { min-height: 44px; padding: 8px 12px; background: none; font-size: 13px; font-weight: 600; }
.score-actions .text-button { padding: 6px 0; min-height: 36px; color: var(--muted); }
.profile-heading { padding-top: 16px; border-top: 1px solid var(--border); }
.profile-heading h3 { font-size: 26px; }
.body-controls { margin-top: 12px; }
.body-map { margin: 10px 0; }
.body-figure { height: 310px; }
.score-interpretation { margin: 8px 0; font-size: 14px; color: var(--muted); }
.muscle-insight { margin-bottom: 16px; }
.evidence-note { margin: 16px 0; }
.evidence-note strong { font-weight: 600; }
.score-benchmarks { border-top: 1px solid #51483f; padding-top: 20px; margin-top: 28px; }
.benchmark-scale strong, .muscle-insight strong, .lift-result strong { font-family: Archivo, sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
.benchmark-scale strong { font-size: 20px; }
.benchmark-scale span { font-size: 11px; }
.lift-result strong { font-size: 28px; }
.muscle-insight strong { font-size: 40px; }
input, select, button, textarea { font-family: inherit; }
.primary, .secondary, .lift-name, .brand { font-weight: 600; }
.score.score-pending { grid-column: 1 / -1; font-size: 32px; }
.score-pending + .score-actions { align-items: flex-start; }
@media (max-width: 360px) { .benchmark-scale span { font-size: 10px; } .score-hero { column-gap: 10px; } }

:root { --muted: #b7a79a; --border: #30251e; --surface: #15110e; }
.intro { border-left: 3px solid #ff5722; padding-left: 18px; }
h1 { color: #f6efe8; }
.intro > p { color: #c5b5a8; }
.profile { padding: 16px; background: #20140f; border-top: 1px solid #513022; border-bottom: 1px solid #513022; }
.profile-note { margin: 8px 0 24px; }
.lift-name { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.movement-demo { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; border-radius: 4px; background: #e9e8e1; }
.lift-head, .lift-row { grid-template-columns: 1.8fr 1fr .65fr; }
#toggle-demos { display: block; margin-left: auto; min-height: 36px; color: #ff5722; }
.body-map { background: #21140e; border-block: 1px solid #513022; padding: 18px 0; }
.profile-heading h3, .muscle-insight h4 { color: #ff784b; }
.muscle-result[aria-pressed='true'] { background: #2b190f; padding-inline: 10px; border-left: 2px solid #ff5722; }
.score-benchmarks { border-color: #513022; }
.score-benchmarks h3 { color: #ff784b; }
.score { color: #f6efe8; }
@media (max-width: 430px) { .movement-demo { width: 40px; height: 44px; flex-basis: 40px; } .lift-name { gap: 6px; font-size: 14px; } .profile { padding: 12px; } }
@media (max-width: 360px) { .movement-demo { width: 32px; height: 40px; flex-basis: 32px; } .lift-head, .lift-row { gap: 6px; } .lift-name { font-size: 13px; } .profile { padding: 10px; } }
h1 { font-size: clamp(36px, 7vw, 48px); letter-spacing: -.035em; }
.score { letter-spacing: -.055em; }

/* The map and measured scores form one continuous profile. */
.intro { margin-block: 26px; }
.profile-note { margin-bottom: 14px; }
.lifts > .hint { margin: 12px 0; }
.lift-row { padding-block: 8px; }
.movement-tile { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: 0 0 60px; background: #f0eee9; border: 1px solid #ded7cd; border-radius: 5px; overflow: hidden; }
.movement-demo { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 0; background: white; mix-blend-mode: multiply; }
.input-help { margin: 4px 0 14px; }
.input-help summary { min-height: 36px; }
.input-help p { margin: 0 0 12px; max-width: 440px; }
.strength-profile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; margin-top: 14px; border-block: 1px solid #513022; background: #17110d; }
.profile-visual { min-width: 0; padding: 16px; background: #21140e; }
.profile-scores { min-width: 0; padding: 16px 20px; }
.profile-visual .body-controls { margin-top: 0; flex-wrap: wrap; gap: 6px; }
.profile-visual .body-controls > span { font-size: 11px; }
.profile-visual .body-map { background: none; border: 0; padding: 0; margin: 14px 0; }
.profile-visual .body-figure { height: 300px; }
.profile-visual .muscle-insight { margin: 0; padding: 12px 0 0; border-bottom: 0; border-top: 1px solid #513022; align-items: flex-start; }
.profile-visual .muscle-insight strong { font-size: 32px; }
.profile-visual .muscle-insight h4 { font-size: 15px; }
.profile-visual .muscle-insight p { font-size: 11px; }
.profile-scores .score-interpretation { font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
.profile-scores .lift-result { padding-block: 14px; }
.profile-scores .muscle-result > span { font-size: 14px; }
.profile-scores .lift-result small { font-size: 11px; }
.evidence-note { margin: 18px 0 24px; }
#measured-count { color: var(--text); font-size: 12px; margin: 5px 0; }
@media (max-width: 540px) {
  .strength-profile { grid-template-columns: 1fr; }
  .profile-visual, .profile-scores { padding: 16px; }
  .profile-visual { border-bottom: 1px solid #513022; }
  .profile-visual .body-controls { flex-wrap: nowrap; }
  .profile-visual .body-figure { height: 290px; }
  .profile-scores .score-interpretation { margin-bottom: 12px; }
  .movement-tile { width: 46px; height: 50px; flex-basis: 46px; }
  .movement-demo { width: 44px; height: 44px; flex-basis: 44px; }
  .lift-name { font-size: 13px; }
}
@media (max-width: 360px) {
  .movement-tile { width: 38px; height: 46px; flex-basis: 38px; }
  .movement-demo { width: 36px; height: 40px; flex-basis: 36px; }
  .lift-name { font-size: 12px; }
}

@font-face { font-family: 'Archivo Black'; src: url('./fonts/archivo-black.woff2'); font-style: normal; font-weight: 400; font-display: swap; }
h1, .score:not(.score-pending) { font-family: 'Archivo Black', Archivo, sans-serif; font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(34px, 6.5vw, 46px); line-height: 1.05; }

.intro { border-left: 0; padding-left: 0; margin-block: 28px; }
h1 { margin: 0; }
.headline-kicker { display: block; margin-bottom: 10px; font-family: Archivo, sans-serif; font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.headline-main { display: block; font-size: clamp(48px, 10vw, 72px); line-height: .98; letter-spacing: -.055em; }
.headline-question { color: var(--accent); }
.intro > p { margin-top: 16px; max-width: 380px; }
@media (min-width: 600px) { .headline-main br { display: none; }  .headline-main { font-size: 64px; } }

/* Phone-first flow: no surrounding panels or framed sections. */
.profile { padding: 0; background: none; border: 0; }
.profile-note { margin: 8px 0 18px; }
input, select, input:placeholder-shown { background: transparent; border: 0; border-bottom: 1px solid #655044; border-radius: 0; padding-inline: 2px; }
input:focus, select:focus { background: transparent; border-bottom-color: var(--accent); }
input:focus-visible, select:focus-visible { outline: 0; box-shadow: 0 2px 0 var(--accent); }
input[aria-invalid='true'] { border-bottom-color: #f3a091; }
.lift-head { border-top: 0; padding-top: 0; }
.lift-row { border-bottom: 0; padding-block: 10px; }
.lift-row input { text-align: right; padding-right: 6px; }
.lift-head > span:not(:first-child) { text-align: right; padding-right: 6px; }
.movement-tile { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.movement-demo { background: white; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.intro { margin: 22px 0 28px; }
.headline-kicker { margin-bottom: 8px; }
.headline-main { font-size: clamp(44px, 10vw, 64px); }
.lifts > .hint { margin: 8px 0 14px; }
#toggle-demos { margin-top: 0; min-height: 30px; padding-block: 4px; font-size: 11px; }
.add-lifts-toggle { margin-top: 0; }
.input-help { margin: 0 0 12px; }
.result { border-top-color: var(--border); padding-top: 24px; }
.profile-heading { border-top: 0; padding-top: 0; }
.profile-heading h3 { color: var(--text); font-size: 22px; }
.strength-profile { background: none; border: 0; margin-top: 12px; gap: 24px; }
.profile-visual, .profile-scores { background: none; padding: 0; border: 0; }
.profile-visual .body-map { background: none; border: 0; margin: 16px 0 8px; }
.profile-visual .muscle-insight { border-top: 0; padding-top: 0; }
.profile-visual .body-controls { justify-content: space-between; }
.view-toggle { background: none; border: 0; padding: 0; gap: 16px; }
.view-toggle button { border-radius: 0; padding: 6px 0; min-width: 0; border-bottom: 2px solid transparent; }
.view-toggle button[aria-pressed='true'] { background: none; border-bottom-color: var(--accent); }
.profile-scores .result-head { border-bottom: 0; }
.profile-scores .muscle-result { padding: 12px 0; background: none; border-left: 0; }
.profile-scores .muscle-result[aria-pressed='true'] { border-left: 0; background: none; }
.profile-scores .muscle-result[aria-pressed='true'] > span,
.profile-scores .muscle-result[aria-pressed='true'] strong { color: var(--accent); }
.score-actions .secondary { border: 0; border-radius: 0; border-bottom: 1px solid var(--accent); padding-inline: 0; }
.score-actions { align-items: flex-end; }
.score-benchmarks { margin-top: 24px; padding-top: 20px; border-top-color: var(--border); }
@media (max-width: 540px) {
  header, main, footer { width: calc(100% - 40px); }
  .strength-profile { gap: 20px; }
  .profile-visual .body-figure { height: 300px; }
  .profile-visual .muscle-insight { align-items: center; }
  .profile-scores .score-interpretation { margin-bottom: 12px; }
  .movement-tile { width: 44px; height: 48px; flex-basis: 44px; }
  .movement-demo { width: 44px; height: 44px; flex-basis: 44px; }
}
@media (max-width: 360px) {
  header, main, footer { width: calc(100% - 32px); }
  .movement-tile { width: 36px; flex-basis: 36px; }
  .movement-demo { width: 36px; flex-basis: 36px; }
  .headline-main { font-size: 44px; }
}

h1 { font-family: Archivo, sans-serif; font-size: clamp(30px, 5vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; max-width: 480px; }

h1 { text-wrap: balance; }

h1 { font-size: clamp(38px, 9vw, 56px); line-height: 1.08; letter-spacing: -.045em; max-width: 560px; }
.headline-accent { color: var(--accent); }

.calculator-reading { margin-top:48px; padding-top:24px; border-top:1px solid var(--border,#39302a); }
.calculator-reading h2 { font-size:22px; }
.calculator-reading p { color:#bbb3a9; line-height:1.7; font-size:15px; }
.calculator-reading nav { font-size:14px; line-height:2; }
.calculator-reading a { color:#ff8b55; text-underline-offset:4px; }
