.app-product-showcase { padding-block: clamp(2.5rem, 7vw, 5rem); }
.app-topic-list h2 { margin-block: 0 1.5rem; }
.app-demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 402px); align-items: center; gap: clamp(2rem, 7vw, 7rem); max-width: 1080px; margin-inline: auto; }
.app-demo-intro h2 { margin-block: 0 1.1rem; }
.app-demo-intro p { max-width: 36ch; }
.app-demo-intro .app-demo-note { font-size: .875rem; color: var(--muted, #435d54); }
.app-demo-intro .button { margin-top: .9rem; }
.app-demo-intro [hidden], .app-demo-device [hidden], .app-survey-intro [hidden] { display: none !important; }
.app-hero .app-demo-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(2rem, 6vw, 6rem);
}
.app-hero-copy p { max-width: 46ch; margin-block: 1.25rem 0; color: var(--muted, #435d54); }
.app-hero-copy p + p { margin-block-start: .75rem; font-size: .875rem; }
.app-hero-demo { min-width: 0; width: min(100%, 330px); margin: 0 auto; }
.app-hero-demo figcaption {
  margin: 1.1rem 0 0;
  color: var(--muted, #435d54);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}
.app-survey-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.75rem, 6vw, 5rem); }
.app-survey-copy p { max-width: 45ch; margin-block: 1rem 1.5rem; }
.app-survey-topics { margin: 0; }
.app-survey-topics > div { padding: 1rem 0; border-top: 1px solid var(--rule, #b7c7bc); }
.app-survey-topics dt { font-weight: 700; }
.app-survey-topics dd { margin: .25rem 0 0; color: var(--muted, #435d54); }
@media (max-width: 760px) {
  .app-hero .app-demo-layout, .app-survey-intro { grid-template-columns: minmax(0, 1fr); }
  .app-hero-demo { width: min(calc(100% - 12px), 330px); }
}
.app-demo-device {
  /* Leanology iOS AppTheme.Palette. Device settings may override the site appearance. */
  --ld-bg: #f8f9f6;
  --ld-paper: #e4eae2;
  --ld-card: #eef1eb;
  --ld-text: #193c35;
  --ld-muted: #58665c;
  --ld-border: #dce3da;
  --ld-accent: #24745e;
  --ld-on-accent: #f6f7ee;
  --ld-accent-soft: #dae7dc;
  --ld-forest: #142e26;
  --ld-poster-end: #224c40;
  --ld-inverse: #f6f7ee;
  --ld-inverse-muted: #d7e5db;
  --ld-hero-accent: #d3e8a4;
  --ld-library: #142e26;
  --ld-on-library: #f6f7ee;
  --ld-metric-paper: #eef1eb;
  --ld-metric-ink: #193c35;
  --ld-destructive: #b03931;
  --ld-light-art: block;
  --ld-dark-art: none;
  display: flex;
  flex-direction: column;
  /* iPhone 18 Pro display points (1206 × 2622 pixels at 3×).
     Round the display itself so the bezel does not change its aspect ratio. */
  width: min(100%, 402px);
  aspect-ratio: 402 / 874;
  container-type: inline-size;
  align-self: start;
  min-width: 0;
  position: relative;
  color: var(--ld-text);
  background: var(--ld-bg);
  border: 0;
  border-radius: 13.93% / 6.41%;
  box-shadow: 0 0 0 4px #17221d, 0 0 0 6px #64706a, 0 22px 58px #142e2529;
  overflow: hidden;
  isolation: isolate;
  color-scheme: light;
  font: 16px/1.35 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
/* System appearance follows the surrounding site until changed in demo Settings. */
.app-demo-device[data-appearance="dark"],
:root[data-theme="dark"] .app-demo-device:not([data-appearance="light"]) {
  --ld-bg: #121111;
  --ld-paper: #2c2826;
  --ld-card: #221f1e;
  --ld-text: #fff4e9;
  --ld-muted: #d1c6bd;
  --ld-border: #49423f;
  --ld-accent: #ff5843;
  --ld-on-accent: #131110;
  --ld-accent-soft: #392722;
  --ld-forest: #181514;
  --ld-poster-end: #382523;
  --ld-inverse: #fff4e9;
  --ld-inverse-muted: #ddd1ca;
  --ld-hero-accent: #ff947f;
  --ld-library: #ff5843;
  --ld-on-library: #131110;
  --ld-metric-paper: #fff4e9;
  --ld-metric-ink: #131110;
  --ld-destructive: #ffb4a8;
  --ld-light-art: none;
  --ld-dark-art: block;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .app-demo-device:not([data-appearance="light"]) {
    --ld-bg: #121111;
    --ld-paper: #2c2826;
    --ld-card: #221f1e;
    --ld-text: #fff4e9;
    --ld-muted: #d1c6bd;
    --ld-border: #49423f;
    --ld-accent: #ff5843;
    --ld-on-accent: #131110;
    --ld-accent-soft: #392722;
    --ld-forest: #181514;
    --ld-poster-end: #382523;
    --ld-inverse: #fff4e9;
    --ld-inverse-muted: #ddd1ca;
    --ld-hero-accent: #ff947f;
    --ld-library: #ff5843;
    --ld-on-library: #131110;
    --ld-metric-paper: #fff4e9;
    --ld-metric-ink: #131110;
    --ld-destructive: #ffb4a8;
    --ld-light-art: none;
    --ld-dark-art: block;
    color-scheme: dark;
  }
}
.app-demo-placeholder { padding: 1.25rem; }
.app-demo-device :where(h3,p,fieldset,legend) { margin: 0; }
.app-demo-device :where(button,input,select,textarea) { color: inherit; font: inherit; }
.app-demo-device :where(button) { border: 0; background: none; cursor: pointer; }
.app-demo-device :where(button,input,select,textarea):focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }
.app-demo-device :where(h3) { color: inherit; font: 650 22px/1.16 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -.025em; overflow-wrap: anywhere; }
.app-demo-device :where(small) { display: block; color: var(--ld-muted); font-size: .8rem; }
.ld-status { height: 15.42cqw; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 9.2cqw; position: relative; font-size: 4.12cqw; font-weight: 650; }
.ld-island { position: absolute; inset-inline-start: 50%; top: 3.5cqw; width: 24cqw; height: 8.45cqw; border-radius: 8cqw; background: #000; transform: translateX(-50%); }
.ld-island-active { display: grid; place-items: center; color: #f6f7ee; padding: 0; }
.ld-island-active svg { width: 5cqw; height: 5cqw; }
.ld-status-icons { display: flex; align-items: center; gap: 1cqw; }
.ld-status-icons svg { width: 8.5cqw; height: 4cqw; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.ld-battery { width: 5.1cqw; height: 2.6cqw; border: 1px solid var(--ld-text); border-radius: 3px; position: relative; }
.ld-battery::before { content: ""; position: absolute; inset: 1px 2px 1px 1px; border-radius: 1px; background: var(--ld-text); }
.ld-battery::after { content: ""; position: absolute; width: 2px; height: 4px; top: 2px; right: -3px; background: var(--ld-text); }
.ld-header { position: relative; display: flex; align-items: center; gap: 6px; min-height: 13.4cqw; flex: none; padding: 0 4.4cqw 1.2cqw; }
.app-demo-device .ld-header h3 { margin: 0; font-size: 7.96cqw; line-height: 1.14; }
.app-demo-device .ld-subheader h3 { font-size: 4.2cqw; font-weight: 640; }
.ld-sheet-header { border-bottom: 1px solid var(--ld-border); margin-bottom: 1cqw; }
.app-demo-device .ld-sheet-header h3 { position: absolute; inset-inline: 16cqw; text-align: center; }
.ld-header h3:focus { outline: none; }
.ld-header-actions { display: flex; margin-inline-start: auto; }
.ld-icon { display: inline-grid; place-items: center; flex: 0 0 10cqw; width: 10cqw; height: 10cqw; border-radius: 50%; }
.ld-icon svg { width: 5.5cqw; height: 5.5cqw; }
.ld-sheet-header .ld-icon { background: var(--ld-card); }
.ld-icon:hover, .ld-tabs button:hover { background: var(--ld-card); }
.ld-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior-y: contain; padding: 1.7cqw 4.5cqw 4cqw; scrollbar-width: none; }
.ld-content > * + *, .ld-list > * + * { margin-top: 12px; }
.ld-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: color-mix(in srgb, var(--ld-paper) 94%, transparent); border: 1px solid var(--ld-border); border-radius: 10cqw; margin: 1cqw 3cqw 0; padding: .7cqw; box-shadow: 0 4px 16px #15272112; }
.ld-tabs button { display: grid; justify-items: center; align-content: center; gap: .6cqw; border-radius: 8cqw; min-height: 13cqw; min-width: 0; padding: 3px 2px; font-size: 2.8cqw; line-height: 1.15; }
.ld-tabs button[aria-current] { background: var(--ld-accent-soft); font-weight: 650; }
.ld-tabs svg { width: 5.4cqw; height: 5.4cqw; }
.ld-home-indicator { flex: 0 0 5cqw; display: grid; align-items: end; justify-items: center; padding-bottom: 1.45cqw; }
.ld-home-indicator::after { content: ""; width: 34cqw; height: 1.15cqw; border-radius: 2cqw; background: var(--ld-text); }
.ld-calendar-title, .ld-actions, .ld-setting, .ld-post-head, .ld-nutrition { display: flex; gap: 10px; align-items: center; }
.ld-calendar-title, .ld-setting, .ld-nutrition { justify-content: space-between; }
.ld-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ld-calendar button { position: relative; display: grid; gap: 3px; justify-items: center; padding: 7px 1px 11px; min-height: 51px; border-radius: 16px; background: var(--ld-card); font-size: .74rem; }
.ld-calendar button[aria-pressed="true"] { background: var(--ld-accent); color: var(--ld-on-accent); }
.ld-card { padding: 15px; border-radius: 24px; background: var(--ld-card); min-width: 0; }
.ld-card > * + * { margin-top: 7px; }
.ld-label, .ld-muted, .ld-empty { color: var(--ld-muted); }
.ld-label, .ld-muted { font-size: .85rem; }
.ld-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 8px 13px; border-radius: 24px; text-align: center; font-weight: 625; }
.ld-primary { background: var(--ld-accent); color: var(--ld-on-accent); }
.ld-primary:hover { filter: brightness(.93); }
.ld-secondary, .ld-small { background: var(--ld-accent-soft); }
.ld-small, .ld-actions .ld-primary { width: auto; min-height: 33px; font-size: .78rem; }
.ld-card progress, .ld-content > progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 4px; color: var(--ld-accent); accent-color: var(--ld-accent); }
.ld-row, .ld-exercise { display: flex; width: 100%; align-items: center; gap: 9px; min-height: 46px; border-radius: 12px; text-align: start; }
.ld-row { padding: 6px 2px; }
.ld-row + .ld-row { border-top: 1px solid var(--ld-border); border-radius: 0; }
.ld-row svg:first-child { flex: 0 0 20px; }
.ld-row svg:last-child, .ld-exercise svg:last-child { width: 16px; margin-inline-start: auto; flex-shrink: 0; }
.ld-title-row { font-weight: 650; min-height: 31px; }
.ld-exercise { justify-content: space-between; border: 1px solid var(--ld-border); background: var(--ld-card); padding: 9px 11px; min-width: 0; }
.ld-exercise:hover, .ld-row:hover { background: var(--ld-accent-soft); }
.ld-exercise > span { min-width: 0; overflow-wrap: anywhere; }
.ld-segment { display: flex; gap: 3px; padding: 3px; border-radius: 23px; background: var(--ld-card); }
.ld-segment button { flex: 1; min-height: 43px; padding: 3px 4px; border-radius: 22px; font-size: .83rem; }
.ld-segment button[aria-pressed="true"] { background: var(--ld-accent); color: var(--ld-on-accent); font-weight: 650; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ld-chips button { border-radius: 16px; padding: 6px 8px; font-size: .75rem; min-height: 32px; background: var(--ld-card); }
.ld-chips button[aria-pressed="true"] { background: var(--ld-accent-soft); font-weight: 700; }
.ld-field { display: grid; gap: 5px; min-width: 0; }
.ld-field > span { font-size: .86rem; font-weight: 625; }
.ld-field :is(input,textarea,select), .ld-search { display: block; width: 100%; min-width: 0; min-height: 41px; padding: 8px 10px; border: 1px solid var(--ld-border); border-radius: 12px; background: var(--ld-paper); font-size: 16px; }
.ld-field textarea { resize: vertical; }
.ld-form { display: grid; gap: 12px; }
.ld-choice { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.ld-choice input { width: 17px; height: 17px; accent-color: var(--ld-accent); }
.ld-error { color: var(--ld-destructive); }
.ld-cover, .ld-plan-card img { display: block; width: 100%; height: 30cqw; object-fit: cover; }
.ld-cover { border-radius: 13px; }
.ld-plan-card { display: block; overflow: hidden; width: 100%; padding: 0; text-align: start; border-radius: 24px; background: var(--ld-card); }
.ld-plan-card > span { display: block; padding: 10px 12px; overflow-wrap: anywhere; }
.ld-plan-card:hover { background: var(--ld-accent-soft); }
.ld-two, .ld-stat-grid { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ld-stat-grid .ld-card { padding: 10px 8px; }
.ld-stat-grid strong, .ld-two .ld-card strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.ld-nutrition strong { display: block; font-size: 1.62rem; }
.ld-ring { display: grid; place-items: center; flex: 0 0 18cqw; height: 18cqw; position: relative; font-size: .85rem; font-weight: 700; }
.ld-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ld-ring circle { fill: none; stroke: var(--ld-border); stroke-width: 6px; }
.ld-ring circle + circle { stroke: var(--ld-accent); stroke-linecap: round; }
.ld-avatar, .ld-success { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--ld-accent-soft); font-weight: 700; }
.ld-workout-attachment { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ld-border); border-radius: 9px; padding: 7px; }
.ld-post-copy { overflow-wrap: anywhere; white-space: pre-wrap; }
.ld-switch { flex: 0 0 43px; height: 28px; border-radius: 16px; background: var(--ld-border); padding: 3px; }
.ld-switch span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.ld-switch[aria-checked="true"] { background: var(--ld-accent); }
.ld-switch[aria-checked="true"] span { transform: translateX(15px); }
.ld-timer { font-size: 3rem; font-variant-numeric: tabular-nums; text-align: center; }
.ld-private-photo { width: 100%; max-height: 320px; object-fit: contain; }
.app-topic-list { padding-block: clamp(2rem, 6vw, 4.5rem); }
.app-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.app-topic-grid article { border-top: 1px solid var(--rule, #b7c7bc); padding-top: 1rem; }
.app-topic-grid h3 { margin-block: 0 .55rem; }
.app-topic-grid p { margin-block: 0 1rem; }
.app-topic-page .page-intro p { max-width: 46rem; }
.app-topic-page .prose-page { padding-block: clamp(2rem, 6vw, 4rem); }
.app-topic-page .prose-page h2 { margin-top: 1.5em; }
.ld-calendar-nav { display: flex; align-items: center; gap: 2px; }
.ld-calendar-nav .ld-icon { width: 8cqw; flex-basis: 8cqw; height: 9cqw; }
.ld-calendar-nav .ld-icon svg { width: 3.9cqw; height: 3.9cqw; }
.ld-calendar button[data-marked]::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; bottom: 5px; }
.ld-programme { margin-top: 25px; }
.ld-programme > * + * { margin-top: 8px; }
.ld-programme-head { display: flex; align-items: center; gap: 10px; }
.ld-programme-head .ld-row { width: auto; gap: 5px; font-size: 1.08rem; }
.ld-week-picker { margin-inline-start: auto; }
.ld-week-picker select, .ld-filter-list select { max-width: 100%; font-size: .77rem; border: 0; border-radius: 24px; padding: 6px 8px; min-height: 35px; background: var(--ld-card); }
.ld-session-row { background: var(--ld-bg); border-color: var(--ld-border); }
.ld-session-row:first-of-type { border-color: var(--ld-accent); }
.ld-session-row > svg:first-child { background: var(--ld-accent-soft); color: var(--ld-accent); width: 26px; height: 26px; border-radius: 50%; padding: 4px; flex: 0 0 26px; }
.ld-session-row > span { margin-right: auto; }
.ld-session-intro { display: grid; gap: 5px; }
.ld-session-intro h3 { font-size: 6.2cqw; }
.ld-stat-grid { gap: 8px; }
.ld-card > .ld-stat-grid { margin-top: 13px; }
.ld-card .ld-stat-grid .ld-card { background: var(--ld-accent-soft); border-radius: 15px; }
.ld-stat-grid .ld-card progress { margin-top: 5px; }
.ld-macro-label { display: flex !important; justify-content: space-between; gap: 2px; flex-wrap: wrap; }
.ld-ingredient { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) auto; align-items: end; gap: 5px; }
.ld-ingredient + .ld-ingredient { margin-top: 9px; }
.ld-ingredient .ld-field > span { font-size: .71rem; }
.ld-ingredient .ld-icon { background: var(--ld-card); }
.ld-meal-row { padding: 12px; }
.ld-active-plan { display: inline-flex; gap: 3px; align-items: center; color: var(--ld-accent); font-size: .75rem; font-weight: 650; }
.ld-active-plan + strong { display: block; }
.ld-active-plan svg { width: 15px; height: 15px; }
.ld-avatar-sand { background: #ecdcc5; color: #3b3125; }
.ld-avatar-rose { background: #eddcde; color: #472f38; }
.ld-profile-more { margin-inline-start: auto; }
.ld-post-head + .ld-button { margin-top: 12px; }
.ld-profile-progress { margin-block: 18px; }
.ld-profile-progress > * + * { margin-top: 6px; }
.ld-weight-graph { display: block; width: 100%; height: auto; }
.ld-weight-graph path { stroke: var(--ld-border); fill: none; }
.ld-weight-graph polyline { stroke: var(--ld-accent); stroke-width: 2.5; fill: none; }
.ld-weight-graph circle { fill: var(--ld-accent); }
.ld-report-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; text-align: center; }
.ld-report-days > div { display: grid; justify-items: center; gap: 3px; }
.ld-report-days b { width: 23px; height: 23px; border-radius: 50%; color: var(--ld-accent); border: 1px solid currentColor; }
.ld-report-days small { font-size: .67rem; }
.ld-trends > div { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 5px; margin-top: 9px; font-size: .75rem; }
.ld-detail-list { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px; }
.ld-detail-list dd { margin: 0; }
@media (max-width: 760px) {
  .app-demo-layout, .app-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .app-demo-device { margin-inline: auto; }
}
@media (max-width: 420px) {
  .app-demo-device { width: min(100%, 402px); }
  .ld-content { padding-inline: 3.8cqw; }
  .ld-calendar { gap: 3px; }
  .ld-stat-grid { gap: 4px; }
  .ld-stat-grid .ld-card { padding: 9px 6px; }
}
.ld-settings-heading { margin-top: 18px; padding-inline: 5px; }
.ld-help-link { color: var(--ld-text); text-decoration: none; }
.ld-help-link svg { margin-inline-start: auto; }
.ld-settings-heading + .ld-card { margin-top: 5px; }
.ld-sticky-actions { flex: none; padding: 8px 4.5cqw; background: var(--ld-bg); }
.app-demo-device { scroll-margin-top: 14px; }
.ld-subpage-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ld-subpage-row > .ld-section-title { margin: 0; }
.ld-subpage-row > .ld-small, .ld-form > .ld-small { width: auto; justify-self: start; }
.ld-elapsed { display: block; margin-block: 4px 6px; font-size: 1.5rem; line-height: 1.2; }
.ld-card hr { width: 100%; border: 0; border-top: 1px solid var(--ld-border); }
.ld-effort-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ld-effort-grid .ld-button { min-height: 55px; border-radius: 14px; }
.ld-review-effort { display: grid; gap: 6px; }
.ld-review-effort button { display: flex; align-items: center; justify-content: space-between; }
.ld-finish-footer .ld-small { color: var(--ld-text); margin-top: 5px; }
.ld-button:disabled { opacity: .42; cursor: default; }
.ld-creation-card { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; text-align: start; background: var(--ld-card); border: 1px solid var(--ld-border); border-radius: 20px; padding: 15px; }
.ld-creation-card > :is(strong,small) { grid-column: 1 / -1; }
.ld-choice-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--ld-accent); background: var(--ld-accent-soft); }
.ld-exercise-choice { display: grid; grid-template-columns: 1fr 60px; gap: 8px; align-items: end; }
.ld-exercise-choice + .ld-exercise-choice { padding-top: 7px; border-top: 1px solid var(--ld-border); }
.ld-exercise-choice input:disabled { opacity: .45; }
.ld-notice-segment .ld-segment { gap: 1px; }
.ld-notice-segment button { min-width: 0; font-size: min(.76rem, 3.55cqw); overflow-wrap: anywhere; }
.ld-nutrition-bars { display: block; width: 100%; height: 36cqw; margin-top: 9px; border-bottom: 1px solid var(--ld-border); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--ld-border) calc(25% - 1px), var(--ld-border) 25%); }
.ld-nutrition-bars rect { fill: var(--ld-accent); }
.ld-gear .ld-radio { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--ld-accent); border-radius: 50%; margin-inline-start: auto; }
.ld-gear[aria-pressed=true] .ld-radio { background: var(--ld-accent); color: var(--ld-on-accent); }
.ld-gear .ld-radio svg { width: 12px; height: 12px; }
.ld-instructions { background: var(--ld-card); border-radius: 12px; padding: 10px; }
.ld-instructions summary { cursor: pointer; color: var(--ld-accent); }
.app-demo-device[data-presentation=sheet] > .ld-status,
.app-demo-device[data-presentation=sheet] .ld-underlay > .ld-status { background: color-mix(in srgb, var(--ld-bg) 78%, #000); }
.ld-sheet-header { border-bottom: 0; margin-bottom: 0; }
.app-demo-device[data-presentation=sheet] .ld-status::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 6cqw; background: var(--ld-bg); border-radius: 6cqw 6cqw 0 0; pointer-events: none; }
.app-demo-device[data-presentation=sheet] .ld-status > :is(span,button) { z-index: 1; }
.ld-underlay { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.ld-dim { position: absolute; inset: 0; background: #0004; }
.ld-overlay { display: flex; flex-direction: column; position: absolute; inset: auto 2% 1%; border-radius: 7cqw; background: var(--ld-bg); border: 1px solid var(--ld-border); box-shadow: 0 12px 34px #0004; overflow: hidden; max-height: 64%; }
.ld-overlay-session-effort { min-height: 51%; }
.ld-overlay-session-effort::before { content: ""; display: block; width: 15%; height: 4px; background: var(--ld-border); border-radius: 4px; margin: 5px auto 0; }
.ld-overlay-meal-portions { inset: auto 9% 16%; }
.ld-modal-content { min-height: 0; padding: 4cqw; overflow-y: auto; }
.ld-modal-content .ld-card { padding: 0; background: transparent; }
.ld-effort-grid .ld-secondary { background: var(--ld-card); }
.ld-effort-grid .ld-button { min-height: 16.5cqw; font-size: 1.1rem; }
.ld-portion-options > button + button { margin-top: 4px; }
.app-demo-device[data-screen=review] .ld-subheader h3 { position: absolute; inset-inline: 16cqw; text-align: center; pointer-events: none; }
.ld-workout-toolbar { min-height: 37px; }
.ld-auto-log, .ld-workout-clock { display: flex; align-items: center; gap: 7px; }
.ld-auto-log { padding: 0; min-height: 44px; color: var(--ld-muted); font-size: .8rem; white-space: nowrap; }
.ld-auto-log .ld-switch { flex: 0 0 39px; height: 23px; }
.ld-auto-log .ld-switch span { width: 17px; height: 17px; }
.ld-auto-log[aria-checked=true] .ld-switch { background: var(--ld-accent); }
.ld-auto-log[aria-checked=true] .ld-switch span { transform: translateX(16px); }
.ld-workout-clock b { color: var(--ld-accent); font-size: 1.28rem; font-variant-numeric: tabular-nums; }
.ld-workout-clock small { border-radius: 20px; padding: 2px 7px; background: var(--ld-accent-soft); }
.ld-workout-clock .ld-icon { width: 38px; height: 38px; flex-basis: 38px; }
.ld-workout-clock .ld-icon svg { width: 16px; height: 16px; }
.ld-timer-adjust .ld-button { min-height: 40px; border-radius: 12px; font-size: .88rem; }
.ld-workout-media { margin-inline: 0; margin-bottom: 0; }
.ld-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ld-bg); }
.ld-video-frame video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ld-video-play { position: absolute; inset: 0; display: grid; place-items: center; color: white; }
.ld-video-play svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: #000a; }
.ld-video-play svg:nth-child(2), .ld-video-play[data-playing=true] svg:first-child { display: none; }
.ld-video-play[data-playing=true] svg:nth-child(2) { display: block; opacity: 0; }
.ld-video-play:focus-visible { outline-offset: -3px; }
.ld-video-play[data-playing=true]:is(:hover,:focus-visible) svg:nth-child(2) { opacity: 1; }
.ld-workout-media figcaption, .ld-video-unavailable { color: var(--ld-muted); font-size: .73rem; margin-top: 5px; }
.ld-workout-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 24px; background: var(--ld-card); font-size: .81rem; white-space: nowrap; }
.ld-workout-chip svg { width: 16px; height: 16px; }
.ld-exercise-actions { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.ld-set-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 3px; text-align: center; font-size: .78rem; }
.ld-set-table :is(td,th) { padding: 4px 2px; overflow-wrap: anywhere; font-weight: 500; }
.ld-set-table thead th { color: var(--ld-muted); font-size: .7rem; }
.ld-set-table th:first-child, .ld-set-table th:last-child { width: 12%; }
.ld-current-set { background: var(--ld-accent-soft); }
.ld-set-table td svg { width: 15px; height: 15px; }
.ld-set-table input, .ld-hold-entry input { width: 100%; min-height: 35px; text-align: center; padding: 2px; background: var(--ld-paper); border: 1px solid var(--ld-border); border-radius: 9px; font-size: 16px; }
.ld-hold-entry { display: flex; align-items: center; gap: 7px; }
.ld-hold-entry input { width: 90px; }
.ld-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.ld-setup-header { display: grid; gap: 7px; flex: none; padding: 0 4.5cqw 10px; }
.ld-setup-header h3 { font-size: 1.13rem; }
.ld-setup-header progress { width: 100%; height: 6px; accent-color: var(--ld-accent); }
.ld-setup-navigation .ld-icon { width: 35px; height: 35px; flex-basis: 35px; }
.ld-survey-form { gap: 10px; }
.app-demo-device .ld-survey-question { font-size: 1.48rem; line-height: 1.14; margin-block: 4px; }
.ld-survey-option { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: start; min-height: 49px; width: 100%; padding: 9px 13px; border: 1px solid var(--ld-border); border-radius: 12px; background: var(--ld-card); }
.ld-survey-option[aria-pressed=true] { border-color: var(--ld-accent); background: var(--ld-accent-soft); }
.ld-survey-circle { border: 0; border-radius: 17px; }
.ld-survey-circle .ld-radio { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; }
.ld-survey-circle[aria-pressed=true] .ld-radio { background: var(--ld-accent); color: var(--ld-on-accent); }
.ld-survey-circle .ld-radio svg { width: 12px; height: 12px; }
.ld-survey-health { padding: 9px 12px; background: var(--ld-card); border-radius: 14px; }
.ld-survey-avatar { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.app-demo-device[data-screen=setup] .ld-segment button { min-height: 33px; }
.app-demo-device[data-screen=setup] .ld-segment button[aria-pressed=true] { background: var(--ld-paper); color: var(--ld-text); }
.app-demo-device[data-screen=workout] .ld-content > * + * { margin-top: 8px; }

.ld-workout-mini {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin: 0 4cqw 0;
  padding: 1cqw 3cqw;
  border-radius: 5cqw;
  background: var(--ld-card);
  box-shadow: inset 0 0 0 1px var(--ld-border);
  touch-action: pan-x;
}
.ld-mini-open {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2.5cqw;
  min-width: 0;
  min-height: 12cqw;
  padding: 0;
  text-align: start;
}
.ld-mini-preview {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 14cqw;
  width: 14cqw;
  height: 11cqw;
  overflow: hidden;
  border-radius: 2.5cqw;
  background: color-mix(in srgb, var(--ld-card) 75%, var(--ld-border));
  color: var(--ld-muted);
}
.ld-mini-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ld-mini-preview svg { width: 5.5cqw; height: 5.5cqw; }
.ld-mini-text { display: grid; gap: .5cqw; flex: 1; min-width: 0; }
.ld-mini-text b, .ld-mini-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-mini-text b { font-size: max(11px, 3.73cqw); font-weight: 600; line-height: 1.2; }
.ld-mini-text small { font-size: max(10px, 3cqw); line-height: 1.2; }
.ld-mini-clock { flex: none; font-size: max(12px, 4.23cqw); font-weight: 600; font-variant-numeric: tabular-nums; }
.ld-workout-mini > .ld-icon { flex: 0 0 12cqw; width: 12cqw; height: 12cqw; }
.ld-workout-mini > .ld-icon svg { width: 4.5cqw; height: 4.5cqw; }
.ld-mini-hide:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ld-mini-hide:focus { position: absolute; right: 8px; bottom: calc(100% + 5px); padding: 7px 11px; background: var(--ld-card); border-radius: 12px; }

/* Poster mastheads, workout panels and paper metrics follow the native tabs. */
.app-demo-device { font-family: Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.ld-status-masthead, .ld-masthead { background: var(--ld-accent); color: var(--ld-on-accent); }
.ld-masthead { min-height: 12.3cqw; padding-bottom: 1.8cqw; }
.ld-masthead::after { position: absolute; inset: auto 0 0 auto; width: 19cqw; height: 1cqw; content: ''; background: var(--ld-bg); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.app-demo-device .ld-masthead h3 { font: 700 9.15cqw/1.02 Manrope, system-ui, sans-serif; text-transform: uppercase; }
.ld-masthead .ld-icon:hover { background: color-mix(in srgb, var(--ld-on-accent) 12%, transparent); }
.ld-masthead .ld-icon:focus-visible, .ld-status-masthead .ld-island:focus-visible { outline-color: var(--ld-on-accent); }
.ld-content { padding: 3.8cqw 4cqw; }
.ld-card, .ld-exercise, .ld-search, .ld-field :is(input,textarea,select), .ld-creation-card { border-radius: 6px; }
.ld-card { padding: 12px; border: 1px solid var(--ld-border); }
.ld-calendar button { min-height: 43px; padding-block: 4px 9px; border-radius: 6px; }
.ld-calendar button b { font-size: .85rem; }
.ld-train-hero { margin-inline: -4cqw; background: var(--ld-card); }
.ld-train-poster { position: relative; isolation: isolate; min-height: 52cqw; overflow: hidden; background: var(--ld-forest); color: var(--ld-inverse); }
.ld-poster-image { position: absolute; inset: 0 0 0 auto; width: 90%; z-index: -1; pointer-events: none; mask-image: linear-gradient(to right, transparent 0%, #000 65%); }
.ld-poster-image img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ld-poster-image .ld-art-light { display: var(--ld-light-art); }
.ld-poster-image .ld-art-dark { display: var(--ld-dark-art); }
.ld-train-poster-copy { display: grid; align-content: center; justify-items: start; min-height: 52cqw; gap: 10px; padding: 16px; position: relative; }
.ld-train-poster-copy::before { position: absolute; content: ''; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ld-forest) 75%, transparent) 15%, transparent 88%); z-index: -1; }
.ld-train-poster-copy h3 { max-width: 75%; font: 750 clamp(1.26rem, 8.7cqw, 2.4rem)/1.03 Manrope, system-ui, sans-serif; letter-spacing: -.05em; text-transform: uppercase; rotate: -3deg; }
.ld-train-poster-copy p { max-width: 75%; color: var(--ld-inverse-muted); font-size: .76rem; }
.ld-poster-caption { align-self: start; padding: 3px 6px; font-size: .68rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; color: var(--ld-forest); background: var(--ld-hero-accent); rotate: -3deg; }
.ld-train-actions, .ld-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.ld-train-actions { padding: 6px 4cqw; gap: 4px; }
.ld-train-actions .ld-button, .ld-quick-actions .ld-button { min-height: 44px; padding: 4px 6px; gap: 4px; font-size: .78rem; border-radius: 6px; }
.ld-train-actions .ld-button svg { width: 14px; height: 14px; flex: 0 0 14px; }
.ld-programme, .ld-activity-card { border: 1px solid var(--ld-border); border-radius: 6px; background: var(--ld-card); padding: 7px 9px; }
.ld-programme { margin-top: 13px; }
.ld-programme-head .ld-title-row { flex: 1 1 0; min-width: 0; min-height: 44px; text-align: start; gap: 7px; padding: 0; }
.ld-programme-head .ld-title-row > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.ld-programme-head .ld-title-row small { font-size: .67rem; }
.ld-programme-head .ld-week-picker { flex: 0 0 auto; max-width: 40%; }
@container (max-width: 285px) {
  .ld-programme-head { gap: 5px; }
  .ld-programme-head .ld-title-row { font-size: .88rem; }
  .ld-programme-head .ld-title-row > svg { display: none; }
}
.ld-leading-icon { display: grid; place-items: center; flex: 0 0 31px; height: 31px; background: var(--ld-paper); color: var(--ld-accent); border-radius: 5px; }
.ld-leading-icon svg { width: 18px; margin: auto !important; }
.ld-programme progress { width: 100%; height: 4px; accent-color: var(--ld-accent); }
.ld-session-list .ld-session-row { background: transparent; border: 0; border-top: 1px solid var(--ld-border); border-radius: 0; }
.ld-session-list .ld-session-row:hover { background: var(--ld-accent-soft); }
.ld-activity-action { padding-inline: 0; }
.ld-activity-action > span:nth-child(2) { flex: 1; min-width: 0; }
.ld-activity-card:has(> h3) { padding-block-start: 12px; }
.ld-cal-poster { margin-inline: -4cqw; padding: 12px 4cqw 0; border-top: 4px solid var(--ld-accent); background: var(--ld-forest); color: var(--ld-inverse); }
.ld-cal-poster small { color: var(--ld-inverse-muted); }
.ld-cal-energy { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; text-transform: uppercase; }
.ld-cal-energy strong { font-size: clamp(1.7rem, 14.1cqw, 3.75rem); line-height: 1.05; letter-spacing: -.06em; }
.ld-cal-energy b { font-size: .9rem; }
.ld-cal-band { height: 7px; margin-block: 8px; background: color-mix(in srgb, var(--ld-inverse) 18%, transparent); }
.ld-cal-band svg { display: block; width: 100%; height: 100%; background: var(--ld-forest); }
.ld-macro-0 { --ld-macro-color: var(--ld-hero-accent); }
.ld-macro-1 { --ld-macro-color: var(--ld-inverse); }
.ld-macro-2 { --ld-macro-color: color-mix(in srgb, var(--ld-accent), var(--ld-inverse-muted) 55%); }
.ld-cal-band rect { fill: var(--ld-macro-color); }
.ld-cal-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding-bottom: 9px; }
.ld-cal-macro small { font-size: .68rem; }
.ld-cal-macro small::before { display: inline-block; width: 5px; height: 5px; margin-inline-end: 3px; background: var(--ld-macro-color); content: ''; vertical-align: 2px; }
.ld-cal-macro b { font-size: .72rem; }
.ld-cal-poster .ld-row { border-top: 1px solid color-mix(in srgb, var(--ld-inverse) 30%, transparent); border-radius: 0; color: var(--ld-inverse); font-size: .77rem; }
.ld-cal-poster .ld-row:hover { background: color-mix(in srgb, var(--ld-inverse) 10%, transparent); }
.app-demo-device:is([data-screen="hub"], [data-screen="library"]) .ld-content > .ld-segment:first-child { padding: 0; border-bottom: 1px solid var(--ld-border); border-radius: 0; background: none; }
.app-demo-device:is([data-screen="hub"], [data-screen="library"]) .ld-content > .ld-segment:first-child button { position: relative; min-height: 44px; border-radius: 0; color: var(--ld-muted); }
.app-demo-device:is([data-screen="hub"], [data-screen="library"]) .ld-content > .ld-segment:first-child button[aria-pressed="true"] { background: transparent; color: var(--ld-text); }
.app-demo-device:is([data-screen="hub"], [data-screen="library"]) .ld-content > .ld-segment:first-child button[aria-pressed="true"]::after { position: absolute; inset: auto 15% 0; height: 4px; content: ''; background: var(--ld-accent); }
.ld-hub-links .ld-button { background: var(--ld-card); }
.ld-hub-compose .ld-button { border-radius: 4px; justify-content: flex-start; }
.ld-hub-compose > small { margin-block-start: 6px; }
.ld-feed-item { display: grid; gap: 8px; padding-block: 7px 11px; border-bottom: 1px solid var(--ld-border); }
.ld-feed-item .ld-post-copy { font-size: .86rem; }
.ld-post-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--ld-card);
}
.ld-feed-item .ld-workout-attachment { border: 1px solid var(--ld-border); border-radius: 6px; background: var(--ld-card); }
.ld-plan-card { display: flex; align-items: center; gap: 7px; border-radius: 6px; border: 1px solid var(--ld-border); padding: 7px; }
.ld-plan-card > img { width: 47px; height: 47px; border-radius: 4px; flex: 0 0 47px; object-fit: cover; }
.ld-plan-card > span { flex: 1; padding: 4px 0; }
.ld-plan-card > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-inline-start: auto; }
.ld-plan-featured { display: flex; align-items: end; min-height: 49cqw; padding: 12px; position: relative; isolation: isolate; background: var(--ld-library); color: var(--ld-on-library); }
.ld-plan-featured:hover { background: var(--ld-library); }
.ld-plan-featured > img { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 65%; height: 100%; object-position: center 34%; mask-image: linear-gradient(to right, transparent, #000 95%); }
.ld-plan-featured > span { max-width: 75%; }
.ld-plan-featured small { color: inherit; font-size: .68rem; }
.ld-plan-featured strong { display: block; margin-block: 3px; font: 750 clamp(1rem, 6.5cqw, 1.75rem)/1.02 Manrope, system-ui, sans-serif; text-transform: uppercase; }
.ld-profile-card { position: relative; isolation: isolate; }
.ld-profile-identity { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.ld-profile-identity .ld-button { width: auto; font-size: .72rem; min-height: 36px; padding: 4px 7px; border-radius: 6px; }
.ld-profile-summary { padding-inline-end: 54px; font-size: .78rem; }
.ld-rank-art { position: absolute; inset: 45px 10px auto auto; width: 47px; height: 65px; object-fit: contain; z-index: -1; opacity: .75; }
.ld-profile-progress .ld-card { background: var(--ld-metric-paper); color: var(--ld-metric-ink); }
.ld-profile-progress .ld-card small { color: var(--ld-metric-ink); font-size: .7rem; }
.ld-tabs button[aria-current] svg { color: var(--ld-accent); }
@media (max-width: 760px) {
  .app-demo-layout > .app-demo-device { width: min(calc(100% - 12px), 402px); justify-self: center; }
}

.app-store-badge{display:inline-flex;flex:0 0 auto;flex-direction:column;align-items:center;width:160px;max-width:100%;border-radius:12px;vertical-align:middle;text-decoration:none}
.app-store-badge img{display:block;width:100%;height:auto}
.app-store-preview small{margin-top:5px;font-size:11px;font-weight:600;line-height:1.4}
a.app-store-badge:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(prefers-reduced-motion:no-preference){a.app-store-badge{transition:transform .15s}a.app-store-badge:hover{transform:translateY(-2px)}}
