/* Vitalet: warm paper, ink and an electric accent. All assets stay local. */
:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #252925; background: #f7f8f2; font-synthesis: none;
  --ink: #252925; --muted: #62685e; --line: #dcdfd4; --paper: #f7f8f2;
  --lime: #d4f369; --green: #465d29; --soft: #eef0e7; --radius: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0 auto; max-width: 1360px; padding: 0 40px; line-height: 1.6; }
::selection { color: var(--ink); background: var(--lime); }
a { color: inherit; text-underline-offset: .25em; }
button, input, select { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: white; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
button:hover, .button:hover { background: #40483a; box-shadow: 0 4px 0 #25292512; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: wait; box-shadow: none; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
:focus-visible { outline: 3px solid #637f1e; outline-offset: 4px; }
.icon { display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px 20px; background: white; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; gap: 12px; min-height: 106px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.85rem; font-weight: 750; text-decoration: none; letter-spacing: -.08em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--lime); color: var(--ink); border-radius: 50%; font-size: 1.6rem; font-style: italic; line-height: 1; letter-spacing: -.12em; padding-right: 5px; padding-bottom: 4px; }
.environment-label { font-size: .58rem; letter-spacing: .07em; color: #735218; background: #f3eacb; padding: 2px 6px; border-radius: 4px; }
.language { display: flex; order: 3; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.language button { background: transparent; color: var(--muted); border: 0; min-height: 34px; padding: 5px 10px; font-size: .72rem; box-shadow: none; }
.language button[aria-pressed="true"] { background: var(--ink); color: white; }
.main-nav { margin-left: auto; margin-right: auto; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #ffffffb3; }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; text-decoration: none; border-radius: 999px; color: var(--muted); font-size: .94rem; font-weight: 600; transition: background .2s, color .2s; }
.main-nav a .icon { width: 17px; height: 17px; }
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.main-nav a[aria-current="page"] { background: var(--lime); color: var(--ink); }
main { margin: 44px 0 80px; min-height: 62vh; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 650; letter-spacing: -.055em; margin: 0 0 16px; }
h2 { font-size: 1.45rem; letter-spacing: -.035em; font-weight: 650; }
h3 { font-size: 1.22rem; letter-spacing: -.025em; font-weight: 650; }
p { max-width: 74ch; }
.muted, .helptext { color: var(--muted); font-size: .95rem; }
.eyebrow { display: flex; gap: 9px; align-items: center; font-size: .85rem; letter-spacing: .025em; font-weight: 650; margin: 0 0 23px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 32px; margin-bottom: 48px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.hero-copy { padding: 8px 0; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.1vw, 4.4rem); letter-spacing: -.065em; line-height: 1.08; margin-bottom: 30px; }
.hero h1 span { color: #60723e; }
.hero-description { font-size: 1.1rem; line-height: 1.85; max-width: 44ch; color: var(--muted); }
.hero .actions { margin: 32px 0 22px; gap: 24px; }
.hero .button { background: var(--lime); color: var(--ink); border-color: var(--lime); min-height: 54px; }
.hero .button:hover { background: #c4e553; }
.hero-footnote { color: var(--muted); font-size: .95rem; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; min-height: 48px; }
.text-link:hover { text-decoration: underline; }
.movement-studio { border: 1px solid var(--line); background: #eef0e6; border-radius: 24px; padding: 24px 24px 15px; min-width: 0; overflow: hidden; }
.studio-topline { font-size: 1.1rem; line-height: 1.4; font-weight: 600; margin: 0 0 8px; }
.motion-art { position: relative; margin: 0 auto; max-width: 380px; }
.motion-art > svg { display: block; width: 100%; height: auto; }
.orbit { fill: none; stroke: #ccd2be; stroke-width: 1; }
.orbit-outer { stroke-dasharray: 3 6; }
.orbit-axis { stroke: #dce0d3; fill: none; }
.motion-ribbon { transform-origin: 240px 200px; transform: rotate(-9deg); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.motion-ribbon path { fill: none; stroke-width: 67; stroke-linecap: round; stroke-linejoin: round; }
.ribbon-shadow { stroke: #c8cfb3; transform: translate(7px, 7px); }
.ribbon-back { stroke: #303c27; }
.ribbon-front { stroke: var(--lime); }
.motion-ribbon .ribbon-edge { stroke: #ebffb2; stroke-width: 3; opacity: .7; }
.orbit-point { fill: #879d56; }
.art-spark { stroke: #687650; stroke-width: 2; transform-origin: 113px 275px; transition: transform .8s; }
.art-label { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: #fffffff2; border: 1px solid #dce1d2; border-radius: 999px; font-size: .82rem; box-shadow: 0 8px 24px #333c2710; transition: transform .8s; }
.art-label .icon { width: 16px; height: 16px; }
.art-label-top { top: 13%; left: 0; transform: rotate(-6deg); }
.art-label-bottom { bottom: 13%; right: 0; transform: rotate(5deg); }
.movement-studio[data-active-step="1"] .motion-ribbon { transform: rotate(10deg) scale(.94); }
.movement-studio[data-active-step="2"] .motion-ribbon { transform: rotate(-19deg) scale(1.04); }
.movement-studio[data-active-step="1"] .art-spark { transform: rotate(90deg); }
.movement-studio[data-active-step="2"] .art-label-bottom { transform: rotate(-5deg) translateY(-10px); }
.studio-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-top: 1px solid #d4dac8; padding-top: 12px; }
.studio-controls button { padding: 7px 5px; gap: 6px; min-height: 48px; border: 0; color: #4f5944; background: transparent; font-size: .65rem; font-weight: 500; box-shadow: none; }
.studio-controls button span { font-size: .94rem; font-weight: 600; }
.studio-controls button[aria-pressed="true"] { color: white; background: var(--ink); }
.studio-description { font-size: .95rem; color: #505945; min-height: 110px; display: flex; align-items: center; padding: 0 5px; }
.studio-description p { margin: 12px 0 5px; }
.how-section { border-top: 1px solid var(--line); padding-top: 35px; }
.section-heading { max-width: 720px; }
.section-heading .eyebrow { margin-bottom: 10px; color: var(--muted); }
.section-heading h2 { margin-top: 0; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.page-heading .section-intro { margin: 12px 0 0; max-width: 66ch; }
.page-heading > .button { flex-shrink: 0; }
.selection-timestamp { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.page-heading > div { min-width: 0; }
.page-heading .eyebrow { margin-bottom: 12px; color: var(--muted); }
.page-heading h1 { margin-bottom: 10px; }
.page-heading p:last-child { margin-bottom: 0; }
.page-emblem { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid #d8dfc6; border-radius: 50%; background: #edf2df; flex-shrink: 0; }
.page-emblem .icon { width: 30px; height: 30px; }
.notice { background: #f6f0da; border-left: 3px solid #b99745; padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .86rem; }
[role="alert"], #network-error { padding: 16px; border: 1px solid #be7464; background: #fff3ee; border-radius: 12px; margin: 16px 0; }
[role="status"] { padding: 10px 14px; border-radius: 10px; background: #eaf2d9; }
#errors:empty { display: none; }
#draft-notice { padding: 12px 16px; background: #edf2df; border-radius: 10px; font-size: .86rem; }
.request-progress { position: fixed; z-index: 45; top: 16px; left: 50%; transform: translateX(-50%); color: var(--ink); background: var(--lime); padding: 9px 22px; border-radius: 999px; box-shadow: 0 5px 30px #25292522; font-size: .85rem; }
.account-panel, .recommendation-settings { max-width: 800px; margin: auto; }
.account-email { overflow-wrap: anywhere; color: var(--muted); }
.account-form, .catalog-filters { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.account-form { box-shadow: 0 6px 24px #25292503; }
.form-field { min-width: 0; margin: 0 0 22px; }
.form-field > label, .form-field > legend { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.form-field input:not([type="checkbox"]):not([type="hidden"]), .form-field select, .choice-search input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; color: var(--ink); background: #fcfcf9; border: 1px solid #cdd2c3; border-radius: 10px; transition: border-color .2s, background .2s; }
.form-field input:hover, .form-field select:hover { border-color: #8d9a76; }
.form-field input:focus, .form-field select:focus { background: white; }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: #526b2a; flex-shrink: 0; }
.form-field:has(> input[type="checkbox"]) { display: flex; flex-direction: row-reverse; justify-content: start; align-items: center; gap: 12px; padding: 14px; background: var(--paper); border-radius: 12px; }
.form-field:has(> input[type="checkbox"]) > label { margin: 0; }
fieldset { min-width: 0; padding: 0; border: 0; }
.choice-field > div { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; scrollbar-width: thin; }
.choice-field label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; overflow-wrap: anywhere; }
.choice-search { display: block; font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.choice-search input { display: block; margin-top: 4px; }
.choice-empty { color: var(--muted); }
.choice-widget { border: 1px solid #cdd2c3; border-radius: 10px; padding: 10px 12px; background: #fcfcf9; }
.choice-widget[open] { background: white; }
.choice-widget summary { cursor: pointer; min-height: 28px; font-size: 1rem; overflow-wrap: anywhere; }
.choice-widget .choice-list { max-height: 210px; overflow: auto; margin-top: 12px; scrollbar-width: thin; }
.choice-list label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; font-size: 1rem; overflow-wrap: anywhere; border-radius: 6px; }
.choice-list label:hover { background: var(--paper); }
.choice-list label:has(:checked) { background: #edf4dc; }
.errorlist { color: #a03025; padding-left: 20px; font-size: .88rem; }
.helptext ul { padding-left: 20px; }
.statistics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); background: white; border-radius: 16px; padding: 12px 24px; gap: 0 16px; }
.statistics dt, .statistics dd { padding: 14px 0; border-bottom: 1px solid var(--soft); }
.statistics dt { color: var(--muted); font-size: .88rem; }
.statistics dd { margin: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.statistics dt:last-of-type, .statistics dd:last-child { border-bottom: 0; }
#profile-activity { margin: 44px 0; }
.rated-list { list-style: none; padding: 0; }
.rated-list > li { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.account-security { border: 1px solid var(--line); padding: 24px; border-radius: 18px; background: #eef1e6; margin: 28px 0; }
.account-security-heading h2 { margin: 0 0 8px; font-size: 1.25rem; }
.account-security .account-email { margin: 0 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-actions .button, .account-actions button { min-height: 48px; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.account-actions .button { background: white; border-color: #c9d2ba; }
.account-actions .button:hover { background: #e1edca; }
.account-actions form { margin-left: auto; }
.account-actions .sign-out { color: #733e34; border-color: #d7c4bb; background: #fffaf7; }
.account-actions .sign-out:hover { background: #f4e4dc; }
.account-actions .icon { width: 20px; height: 20px; }
.auth-options { display: flex; gap: 24px; margin-top: 24px; }
.auth-options a { padding: 8px 0; }
.auth-options [aria-current="page"] { font-weight: 700; border-bottom: 2px solid #778f3f; text-decoration: none; }
.catalog-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: start; }
.catalog-filters .form-field { margin: 0; }
.catalog-filters [data-field="q"] { grid-column: 1 / -1; }
.catalog-filters [data-field="q"] input { min-height: 54px; font-size: 1rem; background: var(--paper); }
.catalog-filters > button, .catalog-filters > a { align-self: end; }
.catalog-filters > a { min-height: 44px; padding: 10px 0; font-size: .84rem; color: var(--muted); }
.results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0 20px; }
.results-toolbar > p { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: .92rem; margin: 0; }
.result-count { background: #e8edda; padding: 3px 10px; border-radius: 999px; font-size: .73rem; font-variant-numeric: tabular-nums; }
.view-switch { display: flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--line); padding: 3px; border-radius: 12px; }
.view-switch button { min-height: 44px; padding: 8px 12px; font-size: .875rem; gap: 7px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; box-shadow: none; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.exercise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exercise-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px 16px; scroll-margin-top: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.exercise-card:hover { border-color: #b3c38e; box-shadow: 0 10px 25px #303d2010; transform: translateY(-3px); }
.exercise-card h2 { font-size: 1.16rem; line-height: 1.4; letter-spacing: -.018em; margin: 16px 0 10px; overflow-wrap: anywhere; }
.card-link { text-decoration: none; }
.card-link:hover h2 { color: var(--green); }
.card-media { position: relative; border-radius: 12px; background: #f6f7f2; margin: 0 -4px; padding: 10px 0; overflow: hidden; }
.exercise-card img { display: block; width: 180px; height: 180px; max-width: 100%; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply; }
.card-open { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: white; border: 1px solid var(--line); transition: background .2s, transform .2s; }
.card-open .icon { width: 15px; height: 15px; }
.card-link:hover .card-open { background: var(--lime); transform: rotate(8deg); }
.exercise-card > p { font-size: .9rem; overflow-wrap: anywhere; margin: 4px 0; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.exercise-card > p .icon { width: 15px; height: 15px; margin-top: 3px; color: #7c8967; }
.exercise-card .rating-panel { margin-top: auto; padding-top: 16px; }
.reasons { font-size: .9rem; margin: 14px 0 8px; padding: 11px 12px; border-radius: 10px; background: #f0f4e8; }
.reasons summary { cursor: pointer; font-weight: 600; }
.reasons ul { margin: 10px 0 0; padding-left: 16px; }
.rating-panel { font-size: .9rem; }
.rating-panel form { border-top: 1px solid var(--soft); padding-top: 12px; }
.rating-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-panel .rating-choice { flex: 1 1 auto; min-height: 46px; padding: 10px 12px; gap: 7px; font-size: .9rem; line-height: 1.35; border: 1px solid #d4dacc; border-radius: 12px; background: #f7f9f2; color: #4a5540; box-shadow: none; }
.rating-choice .icon { width: 19px; height: 19px; }
.rating-panel .rating-choice:hover { background: #eaf1dd; border-color: #a9bb8a; }
.rating-panel .rating-choice[aria-pressed="true"] { background: #e0efbd; border-color: #65853b; color: #314b16; box-shadow: inset 0 0 0 1px #65853b; font-weight: 700; }
.rating-panel .rating-choice[value="dislike"][aria-pressed="true"] { background: #f5e6df; border-color: #ac796a; color: #7b4437; box-shadow: inset 0 0 0 1px #ac796a; }
.rating-panel .rating-clear { display: flex; width: fit-content; min-height: 44px; margin-top: 4px; padding: 6px 2px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: .85rem; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; box-shadow: none; }
.rating-panel .rating-clear:hover { color: var(--ink); }
.rating-retry { margin-top: 10px; font-size: .9rem; border-radius: 12px; }
.rating-panel > a { display: inline-block; margin-top: 8px; text-underline-offset: 3px; color: #627244; }
.rating-panel [role="status"], .rating-panel [role="alert"] { padding: 8px; }
.feedback-page { max-width: 540px; margin-inline: auto; }
.feedback-page > .text-link { margin-top: 24px; }
.exercise-grid[data-layout="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exercise-grid[data-layout="list"] .exercise-card { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-items: start; }
.exercise-grid[data-layout="list"] .card-link { grid-row: span 5; }
.exercise-grid[data-layout="list"] .rating-panel { align-self: end; width: 100%; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 24px; border: 1px dashed #c7cfb7; border-radius: 20px; }
.empty-state > .icon { width: 36px; height: 36px; color: #879669; margin-bottom: 12px; }
.empty-state p { margin: 10px auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 36px 0; font-size: .86rem; }
.pagination a { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: white; }
.pagination a:hover { border-color: #849667; background: #eff4e2; }
.pagination > span { font-variant-numeric: tabular-nums; color: var(--muted); }
.exercise-detail { margin: 24px auto; background: white; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); overflow-wrap: anywhere; }
.exercise-detail img { display: block; max-width: 100%; height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.detail-visual { background: #f4f6ed; border-radius: 20px; padding: 20px; position: sticky; top: 24px; }
.detail-copy > p:first-child { margin-top: 0; color: var(--muted); }
.exercise-detail ol { list-style: none; counter-reset: instruction; padding: 0; }
.exercise-detail ol li { counter-increment: instruction; position: relative; padding: 0 0 22px 42px; font-size: .92rem; }
.exercise-detail ol li::before { content: counter(instruction, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: .72rem; color: #75814f; padding-top: 3px; }
.exercise-detail .rating-panel { max-width: 420px; margin-top: 24px; }
.detail-facts { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
.detail-facts h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; }
.detail-facts p { margin: 0; font-size: .85rem; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; text-decoration: none; }
.back-link .icon { transform: rotate(180deg); }
.selection-settings { border: 1px solid var(--line); border-radius: 16px; background: white; margin: 22px 0; }
.selection-settings > summary { cursor: pointer; padding: 18px 24px; font-weight: 600; font-size: .88rem; }
.selection-settings .account-form { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: none; }
.site-footer { display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-brand { display: inline-flex; gap: 25px; color: var(--ink); font-size: 1.25rem; letter-spacing: -.06em; font-weight: 700; text-decoration: none; }
.footer-brand span { color: #7c8e51; font-weight: 400; }
.site-footer p { max-width: 50ch; margin: 0; }
@media (min-width: 1000px) {
  .account-form[data-preserve="profile"] { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .account-form[data-preserve="profile"] > .choice-field, .account-form[data-preserve="profile"] > .errorlist { grid-column: 1 / -1; }
  .account-form[data-preserve="profile"] > button { justify-self: start; }
}
@media (max-width: 1150px) {
  body { padding: 0 32px; }
  .main-nav { padding-inline: 0; }
  .main-nav a { padding: 10px; font-size: .9rem; }
  .hero { gap: 4%; }
  .hero .actions { gap: 15px; }
  .hero .button { font-size: .86rem; padding-inline: 18px; }
  .exercise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding-top: 18px; gap: 10px; }
  .language { margin-left: auto; order: 0; }
  .main-nav { flex-basis: 100%; justify-content: center; padding: 5px; margin-bottom: 14px; }
  .main-nav a { font-size: .94rem; padding-inline: 16px; }
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters [data-field="category"] { grid-column: 1 / -1; }
  .hero { gap: 28px; }
  .hero h1 { font-size: 3.1rem; }
  .hero-description { font-size: .92rem; }
  .hero-copy { padding: 10px 0; }
  .movement-studio { padding: 18px 15px 12px; }
  .studio-controls button { flex-direction: column; gap: 0; font-size: .57rem; }
  .studio-controls button span { font-size: .875rem; }
  .studio-description { min-height: 140px; font-size: .94rem; }
  .exercise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exercise-grid[data-layout="list"] { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
  .detail-visual { padding: 12px; }
}
@media (max-width: 650px) {
  body { padding: 0 20px; }
  .site-header { min-height: 78px; padding-block: 12px; flex-wrap: wrap; }
  .brand { font-size: 1.6rem; }
  .brand-mark { width: 31px; height: 31px; font-size: 1.4rem; }
  .environment-label { font-size: .5rem; padding-inline: 4px; }
  .main-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 9px 8px max(10px, env(safe-area-inset-bottom)); gap: 3px; border-top: 1px solid #d7dcce; background: #fbfcf6f5; backdrop-filter: blur(16px); }
  .main-nav { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; margin-bottom: 0; }
  .account-security { padding: 20px 18px; }
  .account-actions { flex-direction: column; }
  .account-actions form { margin-left: 0; }
  .account-actions .button, .account-actions button { width: 100%; justify-content: flex-start; }
  .main-nav a { flex-direction: column; gap: 5px; text-align: center; justify-content: center; font-size: .78rem; padding: 7px 2px; line-height: 1.25; min-height: 72px; border-radius: 12px; }
  .main-nav a .icon { width: 19px; height: 19px; }
  main { margin: 28px 0 48px; }
  .hero { grid-template-columns: 1fr; padding: 22px 18px 0; margin-bottom: 32px; gap: 24px; overflow: hidden; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { font-size: .85rem; margin-bottom: 23px; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 3.6rem); margin-bottom: 20px; }
  .hero-description { font-size: 1.05rem; line-height: 1.8; max-width: 40ch; }
  .hero .actions { margin: 24px 0 16px; gap: 12px 22px; }
  .hero .button { font-size: 1rem; min-height: 52px; }
  .hero .text-link { font-size: 1rem; }
  .hero-footnote { font-size: .94rem; }
  .hero .movement-studio { padding: 20px 16px 12px; margin-inline: -18px; width: calc(100% + 36px); max-width: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .motion-art { max-width: 370px; margin: -8px auto; }
  .studio-controls button { flex-direction: row; gap: 6px; font-size: .6rem; }
  .studio-controls button span { font-size: .875rem; }
  .studio-description { min-height: 128px; font-size: .95rem; }
  .art-label { font-size: .8rem; padding: 7px 10px; }
  .how-section { padding-top: 28px; }
  .section-heading { padding-right: 0; }
  .section-heading .eyebrow { font-size: .61rem; }
  .page-heading { gap: 14px; padding: 22px 18px; margin-bottom: 20px; flex-wrap: wrap; }
  .page-heading .eyebrow { font-size: .85rem; }
  .page-heading h1 { font-size: 2.05rem; }
  .page-emblem { display: none; }
  .page-heading .button { font-size: .82rem; }
  .catalog-filters, .account-form { padding: 18px; border-radius: 16px; }
  .catalog-filters { gap: 16px 12px; }
  .catalog-filters [data-field="muscle"], .catalog-filters [data-field="equipment"] { grid-column: 1 / -1; }
  .form-field > label, .form-field > legend { font-size: 1rem; }
  .form-field input:not([type="checkbox"]):not([type="hidden"]), .form-field select, .choice-search input { font-size: 1rem; }
  .catalog-filters > button { padding-inline: 12px; font-size: .85rem; }
  .catalog-filters > a { font-size: .75rem; text-align: right; }
  .exercise-grid { grid-template-columns: 1fr; gap: 18px; }
  .exercise-card { padding: 12px 18px 18px; }
  .exercise-card h2 { font-size: 1.12rem; }
  .card-media { padding: 16px 0; }
  .exercise-card > p { font-size: .95rem; }
  .exercise-card .rating-panel { padding-top: 16px; }
  .exercise-grid[data-layout="list"] .exercise-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px; }
  .exercise-grid[data-layout="list"] .card-media { padding: 6px 0; }
  .exercise-grid[data-layout="list"] img { height: 120px; width: 120px; }
  .exercise-grid[data-layout="list"] h2 { font-size: 1rem; }
  .exercise-grid[data-layout="list"] .card-link { grid-row: span 4; }
  .exercise-grid[data-layout="list"] .rating-panel { grid-column: 1 / -1; padding-top: 0; }
  .exercise-grid[data-layout="list"] .reasons { font-size: .875rem; padding: 8px; margin: 0; }
  .exercise-grid[data-layout="list"] .card-open { right: 3px; bottom: 3px; }
  .statistics { padding: 8px 14px; gap: 0 12px; }
  .statistics dt, .statistics dd { font-size: .95rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .detail-visual { position: static; }
  .exercise-detail { padding: 20px; }
  .exercise-detail h1 { font-size: 1.9rem; }
  .exercise-detail ol li { font-size: .86rem; }
  .site-footer { align-items: start; gap: 16px; padding-bottom: calc(136px + env(safe-area-inset-bottom)); font-size: .95rem; }
  .footer-brand { gap: 12px; font-size: 1.1rem; }
  .pagination { gap: 14px; }
  .pagination a { padding-inline: 16px; }
  html { scroll-padding-bottom: 140px; }
}

/* Guidance appears beside the action it explains; details work without JavaScript. */
.guide-link { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; font-size: .95rem; margin-top: 2px; }
.section-intro { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 12px 0 24px; max-width: 65ch; }
.start-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 28px; }
.start-path { background: white; border: 1px solid var(--line); border-radius: 18px; }
.start-path summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 24px; cursor: pointer; font-size: 1.15rem; font-weight: 600; }
.start-path summary::-webkit-details-marker { display: none; }
.start-path summary > .icon { width: 26px; height: 26px; color: var(--green); }
.start-path small { display: block; font-size: .95rem; color: var(--muted); font-weight: 400; line-height: 1.6; margin-top: 6px; }
.disclosure-mark { margin-left: auto; font-size: 1.7rem; font-weight: 400; }
.start-path[open] .disclosure-mark { transform: rotate(45deg); }
.start-path[open] { border-color: #b9c999; }
.path-content { padding: 0 24px 24px; }
.guide-steps { list-style: none; counter-reset: guide; padding: 0; margin: 0 0 14px; }
.guide-steps li { counter-increment: guide; padding: 8px 0 16px 38px; position: relative; }
.guide-steps li::before { content: counter(guide); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 25px; height: 25px; background: #edf2df; border-radius: 50%; font-size: .875rem; }
.home-help { margin-top: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.home-help h2 { margin-top: 0; }
.help-questions details { border-bottom: 1px solid var(--line); padding: 4px 0 18px; margin-bottom: 16px; }
.help-questions summary, .inline-help summary { cursor: pointer; font-size: 1rem; font-weight: 600; min-height: 44px; padding: 8px 0; }
.help-questions p, .inline-help p { color: var(--muted); font-size: 1rem; margin: 8px 0 16px; }
.inline-help { margin: 14px 0; padding: 0 4px; }
.search-examples { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.search-examples a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--line); background: white; border-radius: 12px; text-decoration: none; }
.search-examples a:hover { border-color: #7c9258; }
.search-examples span { color: var(--muted); font-size: .9rem; }
.profile-next { margin: 20px 0 32px; font-size: 1rem; }
.profile-next a { margin-left: 10px; }
.password-control { position: relative; }
.form-field .password-control input { padding-right: 130px !important; }
.password-toggle { position: absolute; right: 5px; top: 5px; min-height: 38px; max-width: 126px; border: 0; border-radius: 7px; padding: 4px 8px; background: #edf2df; color: var(--ink); font-size: .75rem; }
.password-toggle:hover { background: var(--lime); box-shadow: none; }
.site-footer > a:last-child { margin-left: auto; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; }
  .movement-studio { max-width: 620px; width: 100%; }
  .studio-controls button { flex-direction: row; }
  .studio-description { min-height: 100px; }
  .home-help { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 650px) {
  .start-paths { grid-template-columns: 1fr; gap: 16px; }
  .start-path summary { padding: 20px 16px; gap: 12px; font-size: 1.05rem; }
  .path-content { padding: 0 16px 20px; }
  .studio-description { min-height: 128px; }
  .profile-next a { margin-left: 0; }
  .view-switch button { padding-inline: 8px; gap: 4px; }
  .view-switch .icon { width: 16px; height: 16px; }
  .site-footer > a:last-child { flex-basis: 100%; margin-left: 0; }
  .catalog-filters [data-field="difficulty"], .catalog-filters [data-field="sort"] { grid-column: 1 / -1; }
  .catalog-filters > a { font-size: .9rem; }
  .catalog-filters > button { font-size: 1rem; }
}

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