/* iOS-style app shell: tab bar + push navigation, inset grouped lists, full-screen guided workout.
   System fonts only (SF on iPhone), so nothing loads from outside servers. */
:root {
  --bg: #f2f2f7;
  --cell: #ffffff;
  --cell2: #e9e9ee;
  --label: #000000;
  --label2: rgba(60, 60, 67, .6);
  --label3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .22);
  --fill: rgba(120, 120, 128, .14);
  --tint: #007aff;
  --on-tint: #ffffff;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --bar: rgba(249, 249, 249, .92);
  --d1: #007aff; --d2: #ff9500; --d3: #34c759; --d4: #af52de;
  --fig-ink: #1c1c1e; --fig-far: #a1a1a8; --fig-prop: #8e8e93; --fig-prop-fill: #d1d1d6; --fig-mat: #9fd3c7; --fig-db: #ff9500; --fig-band: #34c759;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --cell: #1c1c1e; --cell2: #2c2c2e; --label: #ffffff; --label2: rgba(235, 235, 245, .6); --label3: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .6); --fill: rgba(120, 120, 128, .28); --tint: #0a84ff; --on-tint: #ffffff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a;
    --bar: rgba(22, 22, 23, .9); --d1: #0a84ff; --d2: #ff9f0a; --d3: #30d158; --d4: #bf5af2;
    --fig-ink: #f2f2f7; --fig-far: #6e6e73; --fig-prop: #8e8e93; --fig-prop-fill: #3a3a3c; --fig-mat: #2f6f63; --fig-db: #ff9f0a; --fig-band: #30d158; color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 17px; line-height: 1.35; overflow: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, label:focus-within { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 6px; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
#view { position: relative; flex: 1; overflow: hidden; }
.page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.page.anim-push { animation: pushIn .34s cubic-bezier(.2, .8, .2, 1); }
.page.anim-pop { animation: popIn .3s cubic-bezier(.2, .8, .2, 1); }
.page.anim-fade { animation: fadeIn .2s ease; }
@keyframes pushIn { from { transform: translateX(100%); box-shadow: -8px 0 24px rgba(0, 0, 0, .12); } to { transform: none; } }
@keyframes popIn { from { transform: translateX(-28%); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.navbar { flex: none; padding-top: env(safe-area-inset-top, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--sep); z-index: 2; }
.navbar.root { border-bottom-color: transparent; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.navrow { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.navtitle { font-weight: 600; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.navback { justify-self: start; display: flex; align-items: center; gap: 2px; color: var(--tint); font-size: 17px; padding: 8px 8px 8px 0; min-width: 0; }
.navback svg { width: 13px; height: 21px; flex: none; }
.navback span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.navaction { justify-self: end; color: var(--tint); padding: 8px; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding-bottom: 32px; }
.content { max-width: 680px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.largetitle { font-size: 34px; font-weight: 700; letter-spacing: .01em; line-height: 1.15; margin: 4px 0 2px; }
.subtitle { color: var(--label2); font-size: 15px; margin: 0 0 18px; }

/* tab bar */
#tabbar { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }
.tabbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 4px; color: #999; font-size: 10px; font-weight: 500; }
.tabbtn svg { width: 26px; height: 26px; }
.tabbtn[aria-selected="true"] { color: var(--tint); }

/* ---------- grouped lists ---------- */
.ghead { font-size: 13px; text-transform: uppercase; color: var(--label2); padding: 0 16px 7px; letter-spacing: .02em; margin-top: 22px; }
.ghead:first-child { margin-top: 0; }
.group { background: var(--cell); border-radius: 12px; overflow: hidden; }
.gfoot { font-size: 13px; color: var(--label2); padding: 7px 16px 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; width: 100%; text-align: left; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: .5px solid var(--sep); }
.row.has-icon + .row.has-icon::before { left: 60px; }
button.row:active, label.row:active { background: var(--cell2); }
.row .main { flex: 1; min-width: 0; }
.row .t1 { font-size: 17px; }
.row .t2 { font-size: 13px; color: var(--label2); margin-top: 1px; }
.row .val { color: var(--label2); font-size: 17px; white-space: nowrap; }
.row .chev { width: 8px; height: 14px; color: var(--label3); flex: none; }
.row.tint .t1 { color: var(--tint); }
.row.danger .t1 { color: var(--red); }
.row.danger.armed { background: var(--red); }
.row.danger.armed .t1 { color: #fff; }
.icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; background: var(--dc, var(--tint)); }
.c-d1 { --dc: var(--d1); } .c-d2 { --dc: var(--d2); } .c-d3 { --dc: var(--d3); } .c-d4 { --dc: var(--d4); }
.tag { font-family: var(--mono); font-size: 12px; color: var(--label2); background: var(--fill); border-radius: 5px; padding: 2px 6px; flex: none; }

/* iOS switch */
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--fill); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { padding: 6px 4px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--cell); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: #636366; } }
.segrow { padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.segrow .t1 { font-size: 15px; }

/* cards */
.hero { background: var(--cell); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--dc); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dc, var(--label2)); }
.hero h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; }
.hero .meta { color: var(--label2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 14px; background: var(--fill); color: var(--label); }
.chip.main { background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--tint); font-weight: 600; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 14px; background: var(--tint); color: var(--on-tint); font-size: 17px; font-weight: 600; }
.btn-primary:active { opacity: .8; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary.green { background: var(--green); }
.btn-secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border-radius: 14px; background: var(--fill); color: var(--tint); font-size: 17px; font-weight: 600; }
.banner { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--green) 16%, var(--cell)); border-radius: 14px; padding: 12px 14px; width: 100%; text-align: left; margin-bottom: 16px; }
.banner .main { flex: 1; }
.banner b { display: block; }
.banner span { font-size: 13px; color: var(--label2); }
.pill { background: var(--green); color: #fff; font-weight: 600; font-size: 15px; border-radius: 16px; padding: 6px 14px; }
.note { font-size: 15px; color: var(--label2); background: var(--cell); border-radius: 12px; padding: 12px 16px; }
.empty { text-align: center; color: var(--label2); padding: 60px 20px; }
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--label3); }
.empty b { display: block; color: var(--label); font-size: 20px; margin-bottom: 6px; }

/* figure */
.figbox { background: var(--cell); border-radius: 16px; padding: 8px 8px 4px; }
.figbox .fig { aspect-ratio: 200 / 160; max-width: 100%; }
.fg { width: 100%; height: 100%; }
.fg-floor { stroke: var(--fig-prop-fill); stroke-width: 1.2; }
.fg-limb { stroke: var(--fig-ink); stroke-width: 5.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fg-far { stroke: var(--fig-far); }
.fg-torso { stroke: var(--fig-ink); stroke-width: 7.5; fill: none; stroke-linecap: round; }
.fg-head { fill: var(--fig-ink); }
.fg-prop { stroke: var(--fig-prop); stroke-width: 2; fill: none; stroke-linecap: round; }
.fg-thick { stroke-width: 4.5; }
.fg-prop-fill { fill: var(--fig-prop-fill); }
.fg-mat { fill: var(--fig-mat); }
.fg-db { fill: var(--fig-db); }
.fg-band { stroke: var(--fig-band); stroke-width: 2.5; }
.fg-frame { fill: var(--fig-prop-fill); stroke: var(--fig-prop); stroke-width: 1.2; }
.fg-plate { stroke: var(--fig-prop); stroke-width: 1.2; }
.fg-knob { fill: #f5c400; stroke: #b08d00; stroke-width: .8; }
.fg-lever { stroke: var(--fig-prop); stroke-width: 4.5; stroke-linecap: round; }
.fg-cable { stroke: var(--fig-prop); stroke-width: 1.2; stroke-dasharray: 3 2; }
.vidlink { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tint); font-size: 15px; font-weight: 500; padding: 10px 0 6px; text-decoration: none; }
.vidlink svg { width: 18px; height: 18px; }

.howlist { margin: 0; padding: 12px 16px 12px 36px; display: flex; flex-direction: column; gap: 8px; }
.textblock { padding: 12px 16px; font-size: 15px; }
.textblock p { margin: 0 0 10px; } .textblock p:last-child { margin: 0; }
.tipblock { padding: 12px 16px; font-size: 15px; border-left: 4px solid var(--orange); }
.textblock ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: .5px solid var(--sep); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; color: var(--label2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- guided session ---------- */
#session { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; animation: slideUp .38s cubic-bezier(.2, .8, .2, 1); }
#session.closing { animation: slideDown .3s ease-in forwards; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slideDown { to { transform: translateY(100%); } }
.s-top { flex: none; padding-top: env(safe-area-inset-top, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.s-toprow { height: 48px; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.s-x { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; justify-self: start; margin-left: 6px; }
.s-x svg { width: 12px; height: 12px; color: var(--label2); }
.s-mid { text-align: center; line-height: 1.2; }
.s-mid b { font-size: 15px; display: block; }
.s-mid span { font-size: 13px; color: var(--label2); }
.s-count { justify-self: end; margin-right: 8px; font-size: 13px; color: var(--label2); white-space: nowrap; }
.s-prog { height: 4px; background: var(--fill); margin: 0 16px; border-radius: 2px; overflow: hidden; }
.s-prog div { height: 100%; width: 0; background: var(--dc, var(--tint)); border-radius: 2px; transition: width .3s; }
.s-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.s-inner { max-width: 560px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.s-inner.anim-fwd { animation: stepFwd .28s cubic-bezier(.2, .8, .2, 1); }
.s-inner.anim-back { animation: stepBack .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes stepFwd { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stepBack { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.s-title { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0; }
.s-target { font-size: 22px; font-weight: 600; font-family: var(--rounded); }
.s-target small { font-size: 15px; color: var(--label2); font-weight: 400; font-family: var(--font); }
.s-hint { font-size: 15px; color: var(--label2); }
.s-hint.good { color: var(--green); font-weight: 500; }
.s-upnext { font-size: 15px; color: var(--label2); display: flex; gap: 6px; align-items: baseline; }
.s-upnext b { color: var(--label); font-weight: 600; }
.s-foot { flex: none; display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: .5px solid var(--sep); }
.s-nav { width: 56px; height: 50px; border-radius: 14px; background: var(--fill); display: grid; place-items: center; color: var(--label); }
.s-nav svg { width: 12px; height: 20px; }
.s-nav:disabled { opacity: .3; }

.introlist { display: flex; flex-direction: column; }

/* steppers */
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { background: var(--cell); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.stepper .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--label2); font-weight: 600; }
.stepper .ctl { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; width: 100%; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); font-size: 22px; font-weight: 500; color: var(--tint); display: grid; place-items: center; }
.stepper input { width: 100%; min-width: 0; text-align: center; border: 0; background: transparent; color: var(--label); font-family: var(--rounded); font-size: 26px; font-weight: 600; padding: 0; font-variant-numeric: tabular-nums; }
.stepper input::placeholder { color: var(--label3); }

/* timer ring */
.timer { display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--cell); border-radius: 18px; padding: 16px; }
.ring { position: relative; width: 220px; max-width: 70vw; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--fill); }
.ring .bar { stroke: var(--green); transition: stroke .2s; }
.ring.prep .bar { stroke: var(--orange); }
.ring.rest .bar { stroke: var(--tint); }
.ring.easy .bar { stroke: var(--tint); }
.ring .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .phase { font-size: 15px; font-weight: 600; color: var(--label2); text-transform: uppercase; letter-spacing: .05em; }
.ring .digits { font-family: var(--rounded); font-size: 56px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
.ring .sub { font-size: 13px; color: var(--label2); }
.tctl { display: flex; gap: 14px; align-items: center; justify-content: center; }
.tbtn { width: 56px; height: 56px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--label); }
.tbtn.big { width: 72px; height: 72px; background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.tbtn.big svg { width: 28px; height: 28px; }
.timer.done .digits { color: var(--green); }

details.how { background: var(--cell); border-radius: 14px; }
details.how summary { list-style: none; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--tint); cursor: pointer; }
details.how summary::-webkit-details-marker { display: none; }
details.how[open] summary { border-bottom: .5px solid var(--sep); }

.summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--cell); border-radius: 14px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-family: var(--rounded); font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--label2); }
.donemark { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 12px auto 0; }
.donemark svg { width: 40px; height: 40px; }

/* action sheet + toast */
#sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.sheet { width: 100%; max-width: 520px; padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; animation: slideUp .28s cubic-bezier(.2, .8, .2, 1); }
.sheet .grp { background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; }
.sheet .msg { padding: 14px 16px; text-align: center; font-size: 13px; color: var(--label2); border-bottom: .5px solid var(--sep); }
.sheet .msg b { display: block; font-size: 13px; color: var(--label2); font-weight: 600; margin-bottom: 2px; }
.sheet button { display: block; width: 100%; padding: 17px; font-size: 20px; color: var(--tint); text-align: center; }
.sheet .grp button + button { border-top: .5px solid var(--sep); }
.sheet button.destructive { color: var(--red); }
.sheet button.cancel { font-weight: 600; background: var(--cell); border-radius: 14px; }
#toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 12px); transform: translateX(-50%); z-index: 60; background: var(--label); color: var(--bg); padding: 10px 18px; border-radius: 20px; font-size: 15px; font-weight: 500; animation: fadeIn .2s; max-width: 90vw; text-align: center; }

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

/* step-by-step demo player */
.player { display: flex; flex-direction: column; gap: 8px; }
.pl-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cell2); }
.pl-img, .pl-fig { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.pl-cap.pl-in { animation: plIn .2s ease; }
@keyframes plIn { from { opacity: 0; } to { opacity: 1; } }
.pl-fig { padding: 6%; }
.pl-alt { opacity: 0; }
.pl-on1 .pl-alt { opacity: 1; }
.pl-badge { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .6); padding: 4px 9px; border-radius: 10px; }
.pl-progress { display: flex; gap: 4px; }
.pl-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.pl-seg i { display: block; height: 100%; width: 0; background: var(--tint); }
.pl-cap { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.35; min-height: 3.2em; padding: 2px 4px; }
.pl-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: #fff; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
.pl-ctl { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.pl-btn { height: 40px; border-radius: 10px; background: var(--fill); color: var(--tint); font-size: 22px; font-weight: 600; }
.pl-play { font-size: 15px; }
.pl-note { font-size: 13px; color: var(--label2); padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .pl-img, .pl-fig { transition: none; } }

/* avoid these mistakes */
.avoid { background: color-mix(in srgb, var(--red) 9%, var(--cell)); border: 1px solid color-mix(in srgb, var(--red) 28%, transparent); border-radius: 14px; padding: 12px 14px; }
.avoid-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); font-size: 15px; margin-bottom: 6px; }
.avoid-h svg { width: 12px; height: 12px; }
.avoid ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; }
.content .avoid { margin-top: 16px; }

.vidrow { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* your own gym photo/video */
.mine { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mine-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.mine-media { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: #000; }
.mine-row { display: flex; gap: 8px; }
.mine-btn { flex: 1; padding: 8px; border-radius: 10px; background: var(--fill); color: var(--tint); font-size: 15px; font-weight: 600; }
.mine-btn.danger { color: var(--red); }
.mine-add { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--tint) 50%, transparent); color: var(--tint); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
