@font-face {
  font-family: "Dongjian Display Black";
  src: url("../fonts/dongjian-display-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Moment Script";
  src:
    url("../fonts/open-moment-script.woff") format("woff"),
    url("../fonts/snell-roundhand-regular.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7faf9;
  --panel: #ffffff;
  --panel-soft: #f1f6f3;
  --text: #101a18;
  --muted: #74817d;
  --line: #e0e9e5;
  --line-strong: #c5d4ce;
  --accent: #159a63;
  --accent-strong: #067244;
  --accent-soft: #dff4eb;
  --graphite: #293330;
  --warning: #9a5b13;
  --shadow: 0 18px 46px rgba(21, 45, 36, 0.11);
  --shadow-soft: 0 8px 24px rgba(21, 45, 36, 0.08);
  --radius: 10px;
  --body-base: #e2e9e5;
  --body-stroke: #aab6b0;
  --body-primary: #c94e35;
  --body-secondary: rgba(214, 96, 72, 0.35);
  --app-max-width: 390px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101614;
    --panel: #18211e;
    --panel-soft: #202b27;
    --text: #edf5f2;
    --muted: #9dafaa;
    --line: #2c3935;
    --line-strong: #42534d;
    --accent: #35c987;
    --accent-strong: #75e4ad;
    --accent-soft: #173c2d;
    --graphite: #d9e5e0;
    --warning: #f0bd67;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
    --body-base: #2a3632;
    --body-stroke: #53645f;
    --body-primary: #ec7058;
    --body-secondary: rgba(236, 112, 88, 0.38);
  }
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(21, 154, 99, 0.08), transparent 34%),
    var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, ui-sans-serif, system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
}

.phone-app {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 14px 18px;
}

.app-header {
  display: grid;
  justify-items: center;
  margin-bottom: 14px;
  padding: 18px 4px 14px;
  text-align: center;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0;
  color: var(--graphite);
  font-family: "Dongjian Display Black", "Songti SC", "STSong", serif;
  font-size: clamp(44px, 12vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 400;
  font-synthesis: none;
}

.brand-title .accent {
  color: var(--accent);
}

.brand-script {
  margin: 4px 0 0;
  color: #474c4a;
  font-family: "Open Moment Script", "Snell Roundhand", "Apple Chancery", "Baskerville", "Didot", "Bodoni 72", serif;
  font-size: clamp(28px, 7.4vw, 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand-script em {
  color: var(--accent-strong);
  font-style: italic;
  font-weight: 400;
}

.brand-slogan {
  margin: 10px 0 0;
  color: #7b8883;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.brand-divider {
  width: 96px;
  height: 2px;
  margin-top: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(21, 154, 99, 0.62) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent, #dfe8e3 18%, #dfe8e3 82%, transparent);
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.status-banner {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--panel-soft);
  font-size: 14px;
  font-weight: 650;
}

.status-banner.is-success {
  border-color: #82d7b2;
  background: var(--accent-soft);
}

.status-banner.is-warn {
  border-color: #d9bd8f;
  color: var(--warning);
  background: rgba(154, 91, 19, 0.1);
}

.control-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 9px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 46px;
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  color: var(--accent-strong);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.language-toggle::before {
  content: attr(data-label);
}

.language-toggle {
  color: transparent;
}

.language-toggle::before {
  color: var(--accent-strong);
}

.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-clear {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

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

.filter-pill {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px 0 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.filter-pill-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: #7b8581;
}

.filter-pill-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.filter-pill-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 6px;
}

.filter-pill-label {
  color: #5a6662;
  font-size: 14px;
  font-weight: 850;
}

.filter-pill-value {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.filter-pill-value:empty {
  display: none;
}

.filter-pill-caret {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.8px solid #8a9791;
  border-bottom: 1.8px solid #8a9791;
  transform: rotate(45deg) translateY(-1px);
  flex: 0 0 auto;
}

.filter-pill select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  text-align-last: center;
}

.filter-pill select option {
  text-align: center;
}

.filter-pill:focus-within {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.view-panel[hidden] {
  display: none;
}

body[data-view="info"] .app-header {
  display: none;
}

.results-panel,
.packs-panel,
.about-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.results-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 920;
}

.results-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.result-list {
  display: grid;
  gap: 8px;
}

.exercise-card-shell {
  position: relative;
  width: 100%;
}

.exercise-card {
  content-visibility: auto;
  contain-intrinsic-size: 128px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px 52px 9px 9px;
  color: inherit;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  text-align: left;
  box-shadow: 0 10px 24px rgba(20, 32, 29, 0.05);
}

.exercise-card:active {
  transform: translateY(1px);
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(224, 233, 229, 0.9);
  border-radius: 999px;
  color: #b8c2bd;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(20, 32, 29, 0.08);
}

.favorite-button:active {
  transform: scale(0.97);
}

.favorite-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.favorite-button.is-active {
  color: #de5a62;
}

.favorite-button.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.thumb {
  display: grid;
  width: 122px;
  height: 108px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(237, 246, 241, 0.72)),
    var(--panel-soft);
}

.thumb.has-gif {
  background: #ffffff;
}

.card-gif {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
}

.thumb.is-fallback .card-gif {
  display: none;
}

.thumb.is-fallback .thumb-fallback {
  display: grid;
}

.card-copy {
  min-width: 0;
}

.card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 2px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
}

.card-copy small {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(21, 154, 99, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-more {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel);
  font-size: 15px;
  font-weight: 800;
}

.scroll-sentinel {
  height: 1px;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.empty-state strong {
  color: var(--text);
}

.empty-state p {
  margin: 6px 0 0;
}

.empty-state.rich {
  gap: 6px;
}

.empty-state-button {
  justify-self: center;
  margin-top: 10px;
}

.body-map {
  display: block;
  overflow: visible;
  height: auto;
}

.body-map-thumb {
  width: 84px;
  max-height: 84px;
}

.body-map-detail {
  width: min(100%, 260px);
  max-height: 420px;
  margin: 0 auto;
}

.body-outline {
  fill: none;
  stroke: var(--body-stroke);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.body-region {
  stroke: var(--body-stroke);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.body-region.is-base {
  fill: var(--body-base);
}

.body-region.is-secondary {
  fill: var(--body-secondary);
  stroke: rgba(166, 59, 41, 0.62);
}

.body-region.is-primary {
  fill: var(--body-primary);
  stroke: #95311e;
}

.detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(16, 26, 24, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.detail-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-sheet[hidden] {
  display: none;
}

.detail-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.detail-sheet.is-open .detail-shell {
  transform: translateX(0);
}

.detail-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: calc(58px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.detail-topbar strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-button {
  border: 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 15px;
  font-weight: 880;
}

.detail-scroll {
  overflow-y: auto;
  padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
}

.detail-hero,
.detail-demo-card,
.detail-section,
.notice,
.anatomy-card,
.pack-card,
.about-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.detail-hero {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.detail-demo-card {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.detail-demo-block {
  display: grid;
  gap: 10px;
}

.detail-demo-block h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.detail-demo-card .gif-stage {
  width: min(100%, 220px);
  margin: 0 auto;
}

.detail-demo-card .gif-stage img {
  max-height: 180px;
}

.detail-demo-card .media-empty {
  min-height: 130px;
}

.detail-demo-card .media-actions {
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.detail-demo-card .action-button,
.detail-demo-card .ghost-button,
.detail-demo-card .cached-pill {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.anatomy-card {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 12px;
  box-shadow: none;
}

.anatomy-section {
  margin-top: 12px;
}

.anatomy-single {
  width: 100%;
}

.anatomy-view {
  display: grid;
  min-width: 0;
  gap: 8px;
  justify-items: center;
}

.anatomy-view h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.anatomy-single .body-map-detail {
  width: min(100%, 170px);
  max-height: 300px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--panel-soft);
}

.view-switch {
  width: min(100%, 260px);
}

.segment-button {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.segment-button.is-active {
  color: #ffffff;
  background: var(--accent);
}

.legend-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.primary {
  background: var(--body-primary);
}

.dot.secondary {
  background: var(--body-secondary);
}

.detail-title-block h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 920;
}

.detail-title-block p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.meta-row,
.media-actions,
.pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 820;
}

.meta-chip.subtle {
  color: var(--muted);
  background: var(--panel-soft);
}

.detail-status-row {
  margin-top: 8px;
}

.detail-section {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

.detail-section h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.muscle-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.muscle-tile {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding-right: 8px;
}

.muscle-tile:last-child {
  border-right: 0;
}

.muscle-tile small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.muscle-tile strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instructions {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.instructions li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.instructions li::before {
  content: counter(step);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.media-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

.media-empty p {
  max-width: 32em;
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.5;
}

.media-empty.compact {
  min-height: auto;
  margin-top: 10px;
  padding: 12px;
}

.gif-stage {
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel-soft);
}

.gif-stage img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.media-actions {
  justify-content: center;
  margin-top: 12px;
}

.media-actions-inline {
  justify-content: flex-start;
}

.action-button,
.ghost-button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 850;
}

.action-button {
  border: 0;
  color: #ffffff;
  background: var(--accent);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
}

.ghost-button[disabled] {
  opacity: 0.45;
}

.cached-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
}

.notice {
  margin: 12px 0 0;
  border-left: 4px solid var(--warning);
  padding: 10px 12px;
  color: var(--warning);
  background: color-mix(in srgb, var(--panel) 82%, #fff1dc);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: none;
}

.packs-panel {
  margin-top: 4px;
}

.install-tip {
  margin-bottom: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
  line-height: 1.5;
}

.pack-list,
.about-stack {
  display: grid;
  gap: 10px;
}

.pack-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.pack-card.is-focused {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow-soft);
}

.pack-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pack-metrics div {
  min-width: 0;
  border-radius: 12px;
  padding: 9px 10px;
  background: var(--panel-soft);
}

.pack-metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.pack-metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 840;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pack-heading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.pack-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pack-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 820;
}

.pack-status.is-downloaded {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.pack-status.is-downloading {
  color: var(--warning);
  background: rgba(154, 91, 19, 0.12);
}

.pack-status.is-update,
.pack-status.is-idle {
  color: var(--muted);
  background: var(--panel-soft);
}

.pack-progress {
  overflow: hidden;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--panel-soft);
}

.pack-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #049865 0%, #5ac998 100%);
}

.pack-event {
  display: inline-flex;
  align-items: center;
  justify-self: flex-start;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
}

.pack-event.is-downloaded {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.pack-event.is-deleted {
  color: var(--warning);
  background: rgba(154, 91, 19, 0.12);
}

.pack-confirm {
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--warning) 28%, var(--line));
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--panel) 86%, #fff2dd);
}

.pack-confirm p {
  margin: 0;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.danger-button {
  background: #b94d1b;
}

.danger-button:disabled,
.action-button:disabled {
  opacity: 0.52;
}

.about-block {
  padding: 15px;
}

.about-block h2,
.about-block h3 {
  margin: 0 0 8px;
}

.about-block h2 {
  font-size: 24px;
}

.about-block h3 {
  font-size: 17px;
}

.about-block p,
.about-steps {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.about-steps {
  padding-left: 20px;
}

.info-page {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  padding: 4px 8px 18px;
}

.info-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 16px 4px 14px 8px;
  align-content: start;
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 44%, transparent);
  overflow: hidden;
}

.info-hero::before {
  content: "";
  position: absolute;
  inset: -18px -14px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-soft) 76%, transparent) 0, transparent 68%);
  pointer-events: none;
}

.info-headline-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  flex-wrap: nowrap;
  transform: translateX(8px);
}

.info-symbol-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}

.info-symbol {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  filter: drop-shadow(0 16px 26px rgba(21, 45, 36, 0.16));
}

.info-title-group {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  min-width: 0;
  transform: translateY(4px);
}

.info-brand-name {
  margin: 0;
  color: var(--accent);
  font-family: "Dongjian Display Black", "Songti SC", "STSong", serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-synthesis: none;
}

.info-lead {
  position: relative;
  max-width: 22em;
  margin: 0;
  padding-left: 0;
  text-align: center;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  font-size: 16px;
  line-height: 1.88;
}

.info-copy-shift {
  transform: translateX(12px);
}

.info-copy-shift span {
  display: block;
}

.info-copy-shift .info-inline-rule {
  position: relative;
  display: block;
  width: 100%;
  height: 18px;
  margin: 8px 0 2px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

.info-source {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 14px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

.info-source::before {
  content: none;
}

.info-source p,
.info-closing {
  margin: 0;
  max-width: 22em;
  padding-left: 0;
  text-align: center;
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  font-size: 16px;
  line-height: 1.88;
}

.info-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 14px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 48%, transparent);
  border-radius: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 30%, transparent), transparent);
  box-shadow: none;
}

.info-closing {
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.info-meta {
  display: grid;
  gap: 10px;
  width: min(100%, 100%);
  padding: 12px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.info-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
}

.info-meta-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.info-meta-row strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 820;
}

.info-version,
.info-signature {
  font-family: "Open Moment Script", "Snell Roundhand", "Apple Chancery", "Baskerville", "Didot", "Bodoni 72", serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.info-signature {
  text-transform: lowercase;
}

.info-meta-row .info-version,
.info-meta-row .info-signature {
  color: var(--accent-strong);
}

.info-script-word {
  font-family: "Open Moment Script", "Snell Roundhand", "Apple Chancery", "Baskerville", "Didot", "Bodoni 72", serif;
  font-style: italic;
  color: var(--accent-strong);
  font-size: 1.18em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.info-inline-icon {
  display: inline-block;
  width: 27px;
  height: 27px;
  margin: 0 2px;
  border-radius: 7px;
  vertical-align: -7px;
  filter: drop-shadow(0 4px 8px rgba(21, 45, 36, 0.12));
}

.info-inline-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--accent-strong);
  font-weight: 820;
  white-space: nowrap;
}

.info-inline-brand .info-inline-icon {
  margin: 0;
}

@media (max-width: 360px) {
  .info-headline-row {
    gap: 12px;
  }

  .info-symbol-wrap {
    width: 98px;
    height: 98px;
  }

  .info-brand-name {
    font-size: 44px;
  }

  .info-title-group {
    transform: translateY(2px);
  }

  .info-lead,
  .info-source p,
  .info-closing {
    font-size: 15px;
  }

  .info-inline-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    vertical-align: -6px;
  }

  .info-copy-shift {
    transform: translateX(6px);
  }

  .info-footer {
    padding-top: 16px;
  }
}

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

.data-grid-title {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 13px;
  font-weight: 860;
}

.data-grid div {
  min-width: 0;
  border-radius: 12px;
  padding: 10px;
  background: var(--panel-soft);
}

.data-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.data-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  max-width: var(--app-max-width);
  height: calc(78px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 235, 231, 0.8);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

.nav-item span {
  white-space: nowrap;
}

.nav-item.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (min-width: 460px) {
  .detail-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }
}

@media (max-width: 390px) {
  .app-header {
    padding: 12px 4px 12px;
  }

  .brand-slogan {
    font-size: 14px;
  }

  .language-toggle {
    width: 72px;
  }

  .detail-demo-card {
    grid-template-columns: minmax(130px, 145px) minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .detail-demo-card .gif-stage {
    width: min(100%, 145px);
  }

  .detail-demo-card .gif-stage img {
    max-height: 150px;
  }

  .detail-title-block h2 {
    font-size: 22px;
  }

  .detail-title-block p {
    margin-bottom: 8px;
  }

  .meta-chip {
    padding: 5px 8px;
  }

  .anatomy-single .body-map-detail {
    width: min(100%, 145px);
    max-height: 260px;
  }

  .exercise-card {
    grid-template-columns: 106px minmax(0, 1fr);
    min-height: 118px;
  }

  .thumb {
    width: 106px;
    height: 98px;
  }

  .pack-metrics {
    grid-template-columns: 1fr;
  }
}
