:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, .78);
  --text: #14171f;
  --muted: #747b8a;
  --line: rgba(20, 23, 31, .08);
  --blue: #007aff;
  --mint: #1dc7a8;
  --rose: #ff4f7b;
  --gold: #f5aa28;
  --bg-top: #fbfcff;
  --bg-mid: #f5f7fb;
  --bg-bottom: #eef2f8;
  --glow-a: rgba(0, 122, 255, .18);
  --glow-b: rgba(29, 199, 168, .18);
  --button-shadow: rgba(0, 122, 255, .32);
  --shadow: 0 20px 50px rgba(31, 45, 71, .13);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.male-theme {
  --blue: #007aff;
  --mint: #1dc7a8;
  --rose: #ff4f7b;
  --bg-top: #fbfcff;
  --bg-mid: #f4f8ff;
  --bg-bottom: #eaf3ff;
  --glow-a: rgba(0, 122, 255, .2);
  --glow-b: rgba(29, 199, 168, .18);
  --button-shadow: rgba(0, 122, 255, .32);
}

body.female-theme {
  --blue: #ff4f9a;
  --mint: #ff8fbd;
  --rose: #ff5c7a;
  --gold: #ffb65c;
  --bg-top: #fffafd;
  --bg-mid: #fff0f7;
  --bg-bottom: #ffe4ef;
  --glow-a: rgba(255, 79, 154, .24);
  --glow-b: rgba(255, 143, 189, .22);
  --button-shadow: rgba(255, 79, 154, .34);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, var(--glow-a), transparent 24rem),
    radial-gradient(circle at 88% 4%, var(--glow-b), transparent 22rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  color: var(--text);
  transition: background .35s ease, color .25s ease;
}

button, input { font: inherit; }
button { border: 0; cursor: pointer; }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, var(--glow-a), transparent 22rem),
    radial-gradient(circle at 84% 8%, var(--glow-b), transparent 20rem),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.lock-screen.show {
  display: grid;
}

.lock-card {
  width: min(390px, 100%);
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .72);
}

.lock-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.lock-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.lock-card label,
.lock-card span,
.lock-card small {
  display: block;
}

.lock-card label {
  margin: 18px 0 14px;
}

.lock-card span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.lock-card input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  background: rgba(20, 23, 31, .07);
  color: var(--text);
  outline: none;
}

.lock-card input:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.lock-card small {
  min-height: 18px;
  margin-top: 10px;
  color: var(--rose);
  font-weight: 800;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(94px + env(safe-area-inset-bottom));
  position: relative;
}

.screen {
  display: none;
  animation: rise .42s cubic-bezier(.2, .9, .2, 1);
}

.screen.active { display: block; }

.topbar, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 28px; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: 0; }

.icon-button, .pill-button {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(31, 45, 71, .08);
  backdrop-filter: blur(18px);
}

.icon-button { width: 42px; font-size: 20px; }
.pill-button { padding: 0 16px; font-weight: 700; }

.hero-card {
  height: 276px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: slowZoom 9s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 20, .05), rgba(7, 12, 20, .72));
}

.hero-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: white;
}

.hero-content p { margin-bottom: 6px; opacity: .82; font-weight: 700; }
.hero-content h2 { max-width: 320px; margin-bottom: 16px; }

.primary-action {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  font-weight: 800;
  box-shadow: 0 12px 26px var(--button-shadow);
}

.rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.rings article, .quick-card, .workout-card, .video-panel, .compare-card,
.calorie-card, .meal-list article, .analysis-card, .upload-card, .metrics article,
.profile-card, .tutorial-section, .video-card, .video-sheet, .pilates-feature,
.pilates-player, .pilates-plan article, .body-settings, .part-picker, .part-card {
  background: var(--card);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 14px 34px rgba(31, 45, 71, .08);
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 24px;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card strong {
  font-size: 17px;
}

.profile-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-link {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.gender-toggle {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 23, 31, .06);
}

.gender-toggle button {
  min-width: 54px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.gender-toggle button.active {
  background: #14171f;
  color: white;
  box-shadow: 0 8px 20px rgba(20, 23, 31, .16);
}

.body-settings {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 24px;
  border-color: color-mix(in srgb, var(--blue) 36%, rgba(255, 255, 255, .68));
  box-shadow: 0 16px 38px color-mix(in srgb, var(--button-shadow) 36%, transparent);
}

.body-settings.flash {
  animation: focusPulse 1.1s ease;
}

.section-mini-head.compact {
  margin-bottom: 12px;
}

.pill-button.small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.input-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.input-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.input-grid input,
.input-grid select {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  padding: 0 12px;
  background: rgba(20, 23, 31, .06);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(20, 23, 31, .04);
}

.input-grid input:focus,
.input-grid select:focus {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.rings article {
  min-height: 132px;
  border-radius: 22px;
  padding: 14px 10px;
  text-align: center;
}

.rings p { margin: 10px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }

.ring {
  width: 74px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--rose) calc(var(--value) * 1%), #e8edf5 0);
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #fff;
}

.ring span { position: relative; z-index: 1; font-size: 15px; font-weight: 900; }
.ring.teal { background: conic-gradient(var(--mint) calc(var(--value) * 1%), #e8edf5 0); }
.ring.gold { background: conic-gradient(var(--gold) calc(var(--value) * 1%), #e8edf5 0); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-card {
  min-height: 136px;
  border-radius: 24px;
  padding: 16px;
  text-align: left;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease;
}

.quick-card:active, .tab:active, .primary-action:active, .pill-button:active,
.gender-toggle button:active, .body-tabs button:active, .video-card:active,
.pilates-feature:active {
  transform: scale(.97);
}

.quick-icon {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  font-size: 20px;
}

.quick-card strong, .quick-card small { display: block; }
.quick-card small { margin-top: 5px; color: var(--muted); font-weight: 600; }

.workout-stack, .meal-list { display: grid; gap: 12px; }

.workout-card {
  border-radius: 22px;
  padding: 16px;
}

.workout-card div, .meal-list article, .calorie-top, .macro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workout-card span, .meal-list span { display: block; color: var(--muted); margin-top: 4px; font-size: 14px; }
progress { width: 100%; height: 8px; margin-top: 14px; border: 0; border-radius: 999px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8edf5; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--mint)); border-radius: 999px; }

.video-panel {
  margin-top: 16px;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
}

.video-thumb {
  min-height: 104px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 24px;
  background: linear-gradient(135deg, #232936, #4a5367 52%, #e9aa45);
}

.video-panel p:last-child { color: var(--muted); margin-bottom: 0; line-height: 1.45; }

.pilates-feature {
  width: 100%;
  min-height: 104px;
  margin-top: 16px;
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  text-align: left;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pilates-feature strong,
.pilates-feature small {
  display: block;
}

.pilates-feature strong {
  font-size: 18px;
}

.pilates-feature small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.pilates-player {
  min-height: 300px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 82%, #14171f), color-mix(in srgb, var(--mint) 78%, #14171f)),
    url("assets/fitness-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.player-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .35), transparent 10rem),
    linear-gradient(180deg, rgba(20, 23, 31, .08), rgba(20, 23, 31, .55));
}

.player-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px;
  text-align: center;
}

.large-play {
  width: 76px;
  aspect-ratio: 1;
  margin: 0 auto 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .24);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36);
  font-size: 30px;
}

.player-content p {
  margin-bottom: 8px;
  font-weight: 800;
  opacity: .86;
}

.player-content h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.pilates-plan {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.pilates-plan article {
  min-height: 116px;
  border-radius: 22px;
  padding: 16px;
}

.pilates-plan strong,
.pilates-plan span {
  display: block;
}

.pilates-plan strong {
  font-size: 16px;
}

.pilates-plan span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.pilates-list {
  display: grid;
  gap: 10px;
}

.tutorial-section {
  margin-top: 16px;
  border-radius: 28px;
  padding: 16px;
}

.section-mini-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-mini-head h3 {
  margin-bottom: 0;
}

.section-mini-head > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, .1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.body-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.body-tabs::-webkit-scrollbar {
  display: none;
}

.body-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(20, 23, 31, .06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.body-tabs button.active {
  background: #14171f;
  color: white;
}

.video-grid {
  display: grid;
  gap: 10px;
}

.video-card {
  width: 100%;
  min-height: 82px;
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  text-align: left;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease;
}

.play-badge {
  grid-row: 1 / 3;
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 10px 22px rgba(0, 122, 255, .2);
}

.video-card strong {
  align-self: end;
  font-size: 16px;
}

.video-card small {
  align-self: start;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.part-picker {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 22px;
}

.part-picker.show {
  display: grid;
}

.part-picker button {
  min-height: 38px;
  border-radius: 999px;
  background: rgba(20, 23, 31, .06);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.compare-card { border-radius: 28px; padding: 14px; }
.compare-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.compare-title-row h3 {
  margin-bottom: 0;
}

.compare-stage {
  height: 376px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #eaf0f8;
}

.body-shot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.body-shot span { font-size: 15px; opacity: .85; }
.before { background: linear-gradient(145deg, #7d889c, #c7d0de); }
.after {
  background: linear-gradient(145deg, #0f806d, #47d0b4);
  clip-path: inset(0 0 0 54%);
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  width: 3px;
  background: white;
  box-shadow: 0 0 0 1px rgba(20, 23, 31, .12);
}

.compare-card input { width: 100%; margin-top: 14px; accent-color: var(--blue); }
.part-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.part-card {
  width: 100%;
  min-height: 76px;
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  color: var(--text);
}

.part-card strong,
.part-card span,
.part-card small {
  display: block;
}

.part-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.part-card small {
  align-self: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 14%, white);
  color: var(--blue);
  font-weight: 900;
}

.part-card.active {
  box-shadow: inset 0 0 0 2px var(--blue), 0 14px 34px rgba(31, 45, 71, .08);
}

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.metrics article { border-radius: 20px; padding: 16px 10px; text-align: center; }
.metrics span { font-size: 20px; font-weight: 900; }
.metrics p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }

.calorie-card { border-radius: 26px; padding: 18px; }
.calorie-top p { margin-bottom: 4px; color: var(--muted); font-weight: 700; }
.calorie-top strong { font-size: 24px; }
.calorie-bar {
  height: 14px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}
.calorie-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  transition: width .35s ease;
}
.macro-row { color: var(--muted); font-size: 12px; font-weight: 800; flex-wrap: wrap; }

.meal-list { margin-top: 14px; }
.meal-list article {
  border-radius: 20px;
  padding: 15px;
}
.meal-list b { white-space: nowrap; color: var(--blue); }

.upload-card {
  min-height: 286px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.upload-card input { display: none; }
#previewPane { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; padding: 22px; }
#previewPane img { width: 100%; height: 286px; object-fit: cover; display: block; }
.upload-icon {
  width: 70px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--blue));
  font-size: 32px;
}
.upload-card p { color: var(--muted); margin-bottom: 0; }

.analysis-card {
  margin-top: 14px;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.analysis-card.show { opacity: 1; transform: translateY(0); }
.analysis-card p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.score-orb {
  flex: 0 0 68px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: conic-gradient(var(--mint) 86%, rgba(20, 23, 31, .12) 0);
  font-size: 24px;
  font-weight: 900;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(398px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 18px 44px rgba(31, 45, 71, .16);
  backdrop-filter: blur(24px);
}

.tab {
  min-height: 54px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tab span { display: block; font-size: 20px; margin-bottom: 2px; }
.tab.active { background: #14171f; color: white; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(20, 23, 31, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.video-sheet {
  width: min(430px, 100%);
  margin: 0 auto;
  border-radius: 30px;
  padding: 16px;
  position: relative;
  transform: translateY(24px) scale(.98);
  transition: transform .28s cubic-bezier(.2, .9, .2, 1);
}

.sheet-backdrop.show .video-sheet {
  transform: translateY(0) scale(1);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}

.sheet-player {
  height: 190px;
  margin-bottom: 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  background:
    linear-gradient(135deg, rgba(0, 122, 255, .82), rgba(29, 199, 168, .75)),
    url("assets/fitness-hero.png") center / cover;
  box-shadow: inset 0 -60px 90px rgba(20, 23, 31, .28);
}

.cue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.cue-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(20, 23, 31, .06);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.primary-action.full {
  width: 100%;
}

.ghost-action {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(20, 23, 31, .06);
  color: var(--muted);
  font-weight: 900;
}

.settings-sheet h3 {
  margin-bottom: 14px;
}

.settings-gender {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20, 23, 31, .06);
}

.settings-gender button {
  min-height: 42px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.settings-gender button.active {
  background: #14171f;
  color: white;
  box-shadow: 0 8px 20px rgba(20, 23, 31, .16);
}

.sheet-inputs {
  margin-bottom: 16px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes focusPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.025); }
}

@media (max-width: 360px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  .rings { gap: 8px; }
  .ring { width: 64px; }
  .video-panel { grid-template-columns: 88px 1fr; }
  .macro-row { font-size: 11px; }
  .profile-card { align-items: stretch; flex-direction: column; }
  .gender-toggle { width: 100%; }
  .gender-toggle button { min-width: 0; }
}
