:root {
  color-scheme: light;
  --bg: #f6fbfd;
  --panel: #ffffff;
  --ink: #14262f;
  --muted: #647984;
  --line: #dcebf0;
  --blue: #1d74d8;
  --blue-dark: #0b4d97;
  --sky: #e7f5ff;
  --green: #18a078;
  --green-dark: #08745a;
  --mint: #e7f8f1;
  --red: #d54d45;
  --red-soft: #fff0ef;
  --amber: #f2a529;
  --amber-soft: #fff6e3;
  --shadow: none;
  --soft-shadow: none;
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(220, 235, 240, 0.85);
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.site-nav {
  display: none;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--sky);
  color: var(--blue-dark);
}

.menu-button {
  display: grid;
  gap: 4px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

body.menu-open .site-header .site-nav {
  position: absolute;
  right: 16px;
  left: 16px;
  top: 74px;
  display: grid;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

main {
  min-height: calc(100vh - 260px);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero,
.section,
.caution-card {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-top: 18px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(29, 116, 216, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 16px;
  color: #0c3447;
  font-size: clamp(34px, 10vw, 62px);
  line-height: 1.08;
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.button-row,
.form-actions {
  display: grid;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.secondary-button,
.back-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--blue-dark);
}

.hero-visual {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.pulse-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--sky);
}

.pulse-line {
  height: 78px;
  border-radius: 18px;
  background: #dff4fb;
}

.panel,
.result-panel,
.feature-card,
.ranking-card,
.metric-card,
.trust-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.section,
.caution-card {
  margin-top: 28px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}

.caution-card {
  margin-bottom: 54px;
}

.section-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-header h2,
.page-hero h1 {
  margin-bottom: 0;
}

.section-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid,
.step-grid,
.community-grid,
.metric-grid,
.trust-card-grid,
.ranking-grid {
  display: grid;
  gap: 14px;
}

.feature-card,
.ranking-card,
.panel,
.result-panel {
  padding: 18px;
}

.feature-card {
  color: inherit;
  text-decoration: none;
}

.feature-card.selectable {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.feature-card.selected {
  border-color: rgba(29, 116, 216, 0.45);
  background: var(--sky);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: #0c3447;
  font-size: 22px;
}

.feature-card p,
.ranking-card p,
.panel p,
.result-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 18px;
  background: var(--sky);
  color: var(--blue-dark);
  font-weight: 900;
}

.page-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.back-link {
  width: fit-content;
  min-height: 40px;
  padding-inline: 14px;
}

.progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.progress span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 8px;
  border-radius: 999px;
  background: #dcebf0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.progress span.active {
  background: var(--blue);
  color: #fff;
}

.diagnosis-progress {
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-dark);
  font-weight: 900;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #dcebf0;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.diagnosis-panel {
  display: grid;
  gap: 14px;
}

.diagnosis-panel h2 {
  margin-bottom: 0;
  color: #0c3447;
  font-size: clamp(24px, 7vw, 38px);
  line-height: 1.2;
}

.body-part-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.body-part-card,
.diagnosis-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.body-part-card:disabled,
.diagnosis-option:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.body-part-card.selected,
.diagnosis-option.selected {
  border-color: rgba(29, 116, 216, 0.58);
  background: var(--sky);
  box-shadow: 0 14px 30px rgba(29, 116, 216, 0.12);
}

.part-icon,
.option-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #e9f7f4;
  color: var(--green-dark);
  font-weight: 900;
}

.option-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7eef2;
  color: var(--blue-dark);
}

.diagnosis-option.selected .option-check {
  background: var(--blue);
  color: #fff;
}

.body-part-card strong,
.diagnosis-option strong {
  padding-right: 28px;
  color: #0c3447;
  font-size: 17px;
}

.body-part-card small {
  color: var(--muted);
  font-weight: 900;
}

.diagnosis-option-grid {
  display: grid;
  gap: 10px;
}

.diagnosis-option-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diagnosis-option-grid.compact .diagnosis-option {
  min-height: 68px;
}

.supplement-group {
  display: grid;
  gap: 10px;
}

.supplement-group h3 {
  margin: 8px 0 0;
  color: #0c3447;
}

.limit-message {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: #72501d;
  font-weight: 900;
}

.loading-panel {
  min-height: 260px;
  place-items: center;
  text-align: center;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
}

.muscle-rank-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.muscle-rank-list li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fcfd;
}

.muscle-rank-list li div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muscle-rank-list span {
  color: var(--blue-dark);
  font-weight: 900;
}

.muscle-rank-list b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.reason-grid,
.related-link-grid {
  display: grid;
  gap: 12px;
}

.reason-grid div {
  padding: 14px;
  border-radius: 18px;
  background: #f8fcfd;
}

.reason-grid strong {
  color: #0c3447;
}

.reason-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.metric-card.danger {
  background: var(--red-soft);
}

.question-list,
.choice-grid,
.check-list,
.care-list {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: 1fr;
}

.choice-card,
.chip,
.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.choice-card input,
.chip input,
.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.choice-card:has(input:checked),
.chip:has(input:checked),
.check-option:has(input:checked) {
  border-color: rgba(29, 116, 216, 0.45);
  background: var(--sky);
}

.motion-question {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.motion-question h4 {
  margin-bottom: 0;
  color: #0c3447;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.answer-grid label {
  display: block;
}

.answer-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-grid span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcfd;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.answer-grid input:checked + span {
  border-color: var(--blue);
  background: var(--sky);
  color: var(--blue-dark);
}

label {
  display: grid;
  gap: 8px;
  color: #0c3447;
  font-weight: 900;
}

input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  padding-block: 12px;
  resize: vertical;
}

input[type="range"] {
  width: 100%;
}

.range-field,
.field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.result-hero {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.score-circle {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--score), #e8f1f5 0);
}

.score-circle::before {
  content: "";
  grid-area: 1 / 1;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
}

.score-circle strong,
.score-circle span {
  position: relative;
  grid-area: 1 / 1;
  color: var(--blue-dark);
  font-weight: 900;
}

.score-circle strong {
  font-size: 28px;
  transform: translateY(-7px);
}

.score-circle span {
  font-size: 13px;
  transform: translateY(22px);
}

.score-circle.large-score {
  width: 150px;
  height: 150px;
}

.score-circle.large-score::before {
  width: 108px;
  height: 108px;
}

.score-circle.large-score strong {
  font-size: 34px;
}

.metric-card,
.trust-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.metric-card small,
.trust-card h4 {
  color: var(--muted);
  font-weight: 900;
}

.metric-card strong {
  color: #0c3447;
  font-size: 27px;
}

.trust-card.good {
  background: var(--mint);
}

.trust-card.warning {
  background: var(--amber-soft);
}

.trust-card.danger {
  background: var(--red-soft);
}

.result-list,
.trust-list,
.ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #334a54;
  line-height: 1.6;
}

.share-note {
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(29, 116, 216, 0.28);
  border-radius: 18px;
  background: #f8fcfd;
  color: #334a54;
  font-family: inherit;
  line-height: 1.65;
}

.meter {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #e7eef2;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.bar-fill {
  background: var(--blue);
}

.ranking-list {
  padding-left: 0;
  list-style: none;
}

.ranking-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f8fcfd;
  font-weight: 900;
}

.ranking-list li::before {
  content: counter(list-item) "位";
  color: var(--blue);
}

.split-section,
.two-column {
  display: grid;
  gap: 14px;
}

.step-grid article,
.info-card,
.caution-card,
.mini-community,
.stat-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.step-grid article strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue-dark);
  font-size: 20px;
}

.chip-group,
.care-grid,
.stack-form {
  display: grid;
  gap: 12px;
}

.chip-group {
  margin: 14px 0 18px;
}

.chip.danger {
  background: var(--red-soft);
  color: #71302d;
}

.big-label {
  color: #0c3447;
  font-size: 24px;
  font-weight: 900;
}

.tag-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fcfd;
  font-weight: 900;
}

.tag-list span {
  color: var(--blue-dark);
  white-space: nowrap;
}

.care-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--mint);
  color: #16443a;
  font-weight: 900;
}

.save-strip {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: #0c3447;
  color: #fff;
}

.save-strip p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-card {
  display: grid;
  gap: 14px;
}

.ai-card-head {
  display: grid;
  gap: 14px;
  align-items: center;
}

.ai-card-head p {
  margin-bottom: 0;
}

.ai-result {
  display: grid;
  gap: 14px;
}

.ai-badge {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.ai-mini-grid {
  display: grid;
  gap: 10px;
}

.ai-mini-grid div {
  padding: 12px;
  border-radius: 16px;
  background: #f8fcfd;
}

.ai-mini-grid strong,
.ai-mini-grid span {
  display: block;
}

.ai-mini-grid span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}

.ai-caution,
.ai-error {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  line-height: 1.7;
}

.ai-caution {
  background: var(--amber-soft);
  color: #72501d;
}

.ai-error {
  background: var(--red-soft);
  color: #71302d;
  font-weight: 900;
}

.result-hero.compact {
  padding: 16px;
  box-shadow: none;
}

.stat-strip {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-strip strong {
  display: block;
  color: var(--blue-dark);
  font-size: 28px;
}

.bar-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bar-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bar-row span {
  color: var(--muted);
  font-weight: 900;
}

.bar-row b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
}

.empty-insight {
  color: var(--muted);
  font-weight: 900;
}

.form-hint {
  margin-top: -4px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.faq-list summary {
  cursor: pointer;
  color: #0c3447;
  font-weight: 900;
}

.prose h2 {
  margin-top: 22px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.library-controls {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  padding: 9px 12px;
  font-weight: 900;
}

.category-pill.active {
  border-color: var(--blue);
  background: var(--sky);
}

.library-layout {
  display: grid;
  gap: 16px;
}

.library-category-list h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.library-category-list ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 900;
}

.library-list {
  display: grid;
  gap: 14px;
}

.library-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.library-card > div,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.library-category,
.judgement-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.library-category {
  background: var(--sky);
  color: var(--blue-dark);
}

.judgement-label {
  background: var(--mint);
  color: #145247;
}

.judgement-label.large {
  font-size: 16px;
}

.article-template {
  display: grid;
  gap: 22px;
}

.article-template section {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-template h2 {
  font-size: 20px;
}

.supervision-box {
  border-radius: 18px;
  background: var(--sky);
  padding: 16px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-list div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(340px, calc(100vw - 32px));
  padding: 13px 15px;
  border-radius: 16px;
  background: #0c3447;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .button-row,
  .form-actions {
    grid-template-columns: repeat(2, max-content);
  }

  .feature-grid,
  .step-grid,
  .community-grid,
  .metric-grid,
  .trust-card-grid,
  .ranking-grid,
  .two-column,
  .library-layout,
  .split-section,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress {
    grid-template-columns: repeat(4, 1fr);
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .feature-grid,
  .step-grid,
  .community-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Body Check immersive skin */
.body-experience-shell {
  position: relative;
  overflow: clip;
  margin-inline: calc(var(--pad-x) * -1);
  padding: clamp(1rem, 3vw, 1.6rem) var(--pad-x) clamp(2rem, 5vw, 3rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(111, 207, 242, 0.18), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(60, 186, 146, 0.16), transparent 28%),
    linear-gradient(145deg, #071e25, #0e3434 52%, #071b22);
  color: #eefcf7;
}

.body-experience-shell::before,
.body-experience-shell::after {
  position: absolute;
  border: 1px solid rgba(232, 247, 237, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.body-experience-shell::before {
  width: 280px;
  height: 280px;
  top: 4%;
  right: -80px;
}

.body-experience-shell::after {
  width: 190px;
  height: 190px;
  left: -62px;
  bottom: 16%;
}

.body-experience-shell #bodyCheckRoot,
.body-experience-note {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin-inline: auto;
}

.body-experience-shell .diagnosis-progress {
  color: #dff9ef;
}

.body-experience-shell .progress-meta {
  color: #c7f7df;
}

.body-experience-shell .progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.13);
}

.body-experience-shell .progress-track span {
  background: linear-gradient(90deg, #6ee7a8, #83d8ff);
  box-shadow: 0 0 18px rgba(110, 231, 168, 0.36);
}

.body-experience-shell .progress span {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(238, 252, 247, 0.68);
}

.body-experience-shell .progress span.active {
  background: rgba(110, 231, 168, 0.2);
  color: #e9fff5;
}

.body-experience-shell .diagnosis-panel,
.body-experience-shell .result-panel,
.body-experience-shell .info-card,
.body-experience-shell .metric-card,
.body-experience-shell .save-strip {
  border: 1px solid rgba(238, 252, 247, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.2);
}

.body-experience-shell .diagnosis-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: 26px;
}

.body-experience-shell .body-part-card,
.body-experience-shell .diagnosis-option {
  border-color: rgba(23, 99, 58, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.body-experience-shell .body-part-card:hover,
.body-experience-shell .diagnosis-option:hover,
.body-experience-shell .body-part-card:focus-visible,
.body-experience-shell .diagnosis-option:focus-visible {
  border-color: rgba(60, 186, 146, 0.5);
  transform: translateY(-2px);
}

.body-experience-shell .body-part-card.selected,
.body-experience-shell .diagnosis-option.selected {
  border-color: rgba(60, 186, 146, 0.65);
  background: #ecfbf3;
}

.body-experience-shell .result-hero h2 {
  color: #143d28;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0;
}

.diagnosis-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.diagnosis-related-card {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  border: 1px solid #dcebe1;
  border-radius: 18px;
  background: #f8fcf9;
  padding: 0.95rem;
  color: #143d28;
  text-decoration: none;
}

.diagnosis-related-card span {
  color: #17633a;
  font-size: 0.78rem;
  font-weight: 900;
}

.diagnosis-related-card strong,
.diagnosis-related-card small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.diagnosis-related-card strong {
  color: #143d28;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.diagnosis-related-card small {
  color: #52645a;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.body-experience-note {
  margin-top: 1rem;
  color: rgba(238, 252, 247, 0.72);
  font-size: 0.86rem;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .body-experience-shell {
    margin-inline: -16px;
    border-radius: 0;
  }

  .body-experience-shell .body-part-grid,
  .body-experience-shell .diagnosis-option-grid.compact,
  .diagnosis-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .body-experience-shell .body-part-card,
  .body-experience-shell .diagnosis-option {
    transition: none;
  }
}

/* Health Check immersive shell */
:root {
  --hc-bg-deep: #06171e;
  --hc-bg-mid: #0b2a2d;
  --hc-surface: rgba(255, 255, 255, 0.09);
  --hc-surface-strong: rgba(255, 255, 255, 0.14);
  --hc-glow: #6ee7a8;
  --hc-glow-blue: #83d8ff;
  --hc-line: rgba(238, 252, 247, 0.16);
  --hc-text: #eefcf7;
  --hc-muted: rgba(238, 252, 247, 0.72);
  --hc-text-on-dark: #eefcf7;
  --hc-muted-on-dark: rgba(238, 252, 247, 0.74);
  --hc-text-on-light: #143d28;
  --hc-muted-on-light: #3f5b4c;
  --hc-surface-dark: rgba(255, 255, 255, 0.08);
  --hc-surface-light: rgba(255, 255, 255, 0.94);
  --hc-radius: 24px;
  --hc-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at 18% 4%, rgba(110, 231, 168, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(131, 216, 255, 0.1), transparent 24rem),
    linear-gradient(145deg, var(--hc-bg-deep), var(--hc-bg-mid) 48%, #071b22);
  overflow-x: hidden;
}

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--hc-line);
  background: rgba(6, 23, 30, 0.78);
  color: var(--hc-text);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  background: radial-gradient(circle at 34% 30%, #dfffee, var(--hc-glow) 44%, #16623e 100%);
  color: #06212a;
  box-shadow: 0 0 32px rgba(110, 231, 168, 0.28);
}

.brand small {
  color: var(--hc-muted);
}

.site-nav {
  align-items: center;
}

.site-nav a {
  display: inline-grid;
  gap: 0.1rem;
  min-width: 92px;
  color: rgba(238, 252, 247, 0.82);
  text-align: center;
}

.site-nav a span {
  color: var(--hc-glow);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(110, 231, 168, 0.14);
  color: #fff;
}

.menu-button {
  border-color: var(--hc-line);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  background: var(--hc-text);
}

body.menu-open .site-header .site-nav {
  border-color: var(--hc-line);
  background: rgba(6, 23, 30, 0.94);
  box-shadow: var(--hc-shadow);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hc-line);
  background:
    radial-gradient(circle at 18% 18%, rgba(110, 231, 168, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(6, 23, 30, 0.96), rgba(7, 30, 37, 0.98));
  color: var(--hc-text);
}

.site-footer::before,
.site-footer::after {
  position: absolute;
  width: 18rem;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 252, 247, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-footer::before {
  right: 8%;
  top: -8rem;
}

.site-footer::after {
  left: 6%;
  bottom: -10rem;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer p,
.footer-note {
  color: var(--hc-muted);
}

.footer-clinic {
  margin: 0 0 0.45rem;
  color: var(--hc-glow) !important;
  font-weight: 900;
}

.footer-links a {
  color: var(--hc-text);
  text-underline-offset: 0.22em;
}

.page-hero.compact:not(.journal-page-hero) {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--hc-text);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--hc-shadow);
}

.page-hero.compact:not(.journal-page-hero) h1,
.page-hero.compact:not(.journal-page-hero) p {
  color: inherit;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  .site-nav a {
    min-width: 0;
    text-align: left;
  }
}

/* Final cross-page Health Check UI consolidation */
html,
body {
  min-height: 100%;
  background: var(--hc-bg-deep);
}

html {
  color-scheme: dark;
}

body {
  min-height: 100dvh;
}

#app {
  min-height: calc(100dvh - 76px);
  background:
    radial-gradient(circle at 8% 8%, rgba(110, 231, 168, 0.1), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(131, 216, 255, 0.08), transparent 22rem),
    linear-gradient(180deg, rgba(6, 23, 30, 0.42), rgba(7, 27, 34, 0.92));
}

.page {
  color: var(--hc-text-on-dark);
}

.body-network-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hc-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(110, 231, 168, 0.18), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(131, 216, 255, 0.13), transparent 20rem),
    linear-gradient(135deg, rgba(6, 23, 30, 0.96), rgba(11, 42, 45, 0.96));
  color: var(--hc-text-on-dark);
  padding: clamp(1.35rem, 5vw, 2.6rem);
  box-shadow: var(--hc-shadow);
  isolation: isolate;
}

.body-network-hero .bio-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

.body-network-hero h1 {
  max-width: 780px;
  color: var(--hc-heading-on-dark, #fff);
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.12;
  white-space: pre-line;
}

.body-network-hero p:not(.eyebrow) {
  color: var(--hc-muted-on-dark);
}

.body-network-hero .back-link {
  border-color: rgba(238, 252, 247, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--hc-text-on-dark);
}

.panel,
.result-panel,
.feature-card,
.ranking-card,
.metric-card,
.trust-card,
.faq-list details,
.meta-list div,
.prose,
.empty-state,
.empty-insight {
  color: var(--hc-text-on-light);
}

.panel p,
.result-panel p,
.feature-card p,
.ranking-card p,
.metric-card small,
.meta-list dt,
.faq-list details p,
.prose p,
.empty-state,
.empty-insight {
  color: var(--hc-muted-on-light);
}

.panel h2,
.panel h3,
.result-panel h2,
.result-panel h3,
.feature-card h3,
.ranking-card h3,
.metric-card strong,
.meta-list dd,
.faq-list summary,
.prose h2,
.prose h3 {
  color: var(--hc-text-on-light);
}

.body-experience-shell {
  min-height: clamp(620px, 80dvh, 940px);
  padding-top: clamp(1.25rem, 4vw, 2.3rem);
}

.body-experience-shell::before {
  box-shadow: 0 0 70px rgba(110, 231, 168, 0.12);
}

.body-experience-shell::after {
  box-shadow: 0 0 56px rgba(131, 216, 255, 0.1);
}

.body-experience-shell .diagnosis-progress {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.body-experience-shell .body-trace-steps {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0.55rem;
}

.body-experience-shell .body-trace-steps span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(238, 252, 247, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(238, 252, 247, 0.62);
}

.body-experience-shell .body-trace-steps span em {
  color: rgba(110, 231, 168, 0.78);
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

.body-experience-shell .body-trace-steps span strong {
  color: inherit;
  font-size: 0.88rem;
}

.body-experience-shell .body-trace-steps span.complete {
  border-color: rgba(110, 231, 168, 0.32);
  background: rgba(110, 231, 168, 0.13);
  color: #dfffee;
}

.body-experience-shell .body-trace-steps span.active {
  border-color: rgba(110, 231, 168, 0.62);
  background: rgba(110, 231, 168, 0.2);
  color: #fff;
  box-shadow: 0 0 26px rgba(110, 231, 168, 0.14);
}

.body-experience-shell .diagnosis-panel,
.body-experience-shell .result-panel,
.body-experience-shell .info-card,
.body-experience-shell .metric-card {
  background:
    linear-gradient(145deg, rgba(251, 254, 252, 0.96), rgba(238, 249, 242, 0.94));
  color: var(--hc-text-on-light);
}

.body-experience-shell .diagnosis-panel .eyebrow,
.body-experience-shell .result-panel .eyebrow {
  color: #17633a;
}

.body-experience-shell .diagnosis-panel h2,
.body-experience-shell .diagnosis-panel h3,
.body-experience-shell .result-panel h2,
.body-experience-shell .result-panel h3,
.body-experience-shell .info-card h3 {
  color: var(--hc-heading-on-light, #0b2f2b);
}

.body-experience-shell .diagnosis-panel p,
.body-experience-shell .result-panel p,
.body-experience-shell .info-card p,
.body-experience-shell .metric-card span {
  color: var(--hc-muted-on-light);
}

.body-experience-shell .body-part-card,
.body-experience-shell .diagnosis-option {
  min-height: 76px;
  border-color: rgba(23, 99, 58, 0.18);
  background:
    radial-gradient(circle at 10% 16%, rgba(110, 231, 168, 0.12), transparent 4rem),
    #ffffff;
  color: var(--hc-text-on-light);
}

.body-experience-shell .body-part-card strong,
.body-experience-shell .diagnosis-option strong {
  color: var(--hc-text-on-light);
}

.body-experience-shell .body-part-card small {
  color: var(--hc-muted-on-light);
}

.body-experience-shell .part-icon,
.body-experience-shell .option-check {
  background: rgba(23, 99, 58, 0.1);
  color: #17633a;
}

.body-experience-shell .body-part-card.selected,
.body-experience-shell .diagnosis-option.selected {
  border-color: rgba(23, 99, 58, 0.62);
  background:
    radial-gradient(circle at 10% 16%, rgba(110, 231, 168, 0.22), transparent 4rem),
    #eafbf3;
  box-shadow: 0 16px 36px rgba(23, 99, 58, 0.14), 0 0 0 1px rgba(110, 231, 168, 0.18) inset;
}

.body-experience-shell .diagnosis-option:disabled,
.body-experience-shell .body-part-card:disabled {
  opacity: 0.72;
  color: #5f7068;
}

.body-experience-shell .result-hero {
  background:
    radial-gradient(circle at 16% 24%, rgba(110, 231, 168, 0.16), transparent 12rem),
    linear-gradient(135deg, #f8fcf9, #edf8f1);
}

.body-experience-shell .muscle-rank-list li {
  background: #fff;
  border: 1px solid #dcebe1;
  color: var(--hc-text-on-light);
}

.body-experience-shell .muscle-rank-list li b {
  display: block;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #17633a, #6ee7a8);
  box-shadow: 0 0 14px rgba(110, 231, 168, 0.28);
}

.body-experience-shell .diagnosis-actions {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 1rem auto 0;
}

.body-experience-shell .secondary-button {
  border-color: rgba(238, 252, 247, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--hc-text-on-dark);
}

.body-experience-shell .primary-button {
  background: linear-gradient(135deg, #6ee7a8, #83d8ff);
  color: #06212a;
}

.save-strip {
  background:
    radial-gradient(circle at 12% 18%, rgba(110, 231, 168, 0.14), transparent 12rem),
    linear-gradient(135deg, rgba(6, 23, 30, 0.96), rgba(8, 42, 31, 0.96)) !important;
  color: var(--hc-text-on-dark) !important;
}

.save-strip p {
  color: var(--hc-muted-on-dark) !important;
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 760px) {
  #app {
    min-height: calc(100dvh - 66px);
  }

  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 1rem;
  }

  .body-network-hero {
    border-radius: 24px;
    padding: 1.2rem;
  }

  .body-network-hero h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .body-experience-shell {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .body-experience-shell .body-trace-steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 44%);
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
  }

  .body-experience-shell .body-trace-steps span {
    scroll-snap-align: start;
  }

  .body-experience-shell .diagnosis-option,
  .body-experience-shell .body-part-card,
  .body-experience-shell .primary-button,
  .body-experience-shell .secondary-button {
    min-height: 48px;
  }

  .body-experience-shell .diagnosis-panel {
    padding: 1rem;
  }
}

/* BODY TRACE diagnosis surface refinement */
:root {
  --hc-heading-on-light: #082f2c;
  --hc-text-on-light: #163b37;
  --hc-muted-on-light: #4e625e;
  --hc-subtle-on-light: #667a75;
  --hc-heading-on-dark: #ffffff;
  --hc-text-on-dark: #eff7f4;
  --hc-muted-on-dark: #b6c8c1;
  --hc-node-surface: rgba(236, 245, 241, 0.96);
  --hc-node-surface-strong: rgba(224, 251, 239, 0.98);
  --hc-node-line: rgba(126, 226, 194, 0.34);
  --hc-node-glow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(126, 226, 194, 0.08) inset;
}

.body-experience-shell {
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
  isolation: isolate;
}

.body-experience-shell::before,
.body-experience-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

.body-experience-shell::before {
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  top: 5rem;
  right: -12%;
  border: 1px solid rgba(126, 226, 194, 0.11);
  background: radial-gradient(circle, rgba(110, 231, 168, 0.11), transparent 66%);
}

.body-experience-shell::after {
  width: min(38vw, 420px);
  height: min(38vw, 420px);
  left: -11%;
  bottom: 6rem;
  border: 1px solid rgba(131, 216, 255, 0.1);
  background: radial-gradient(circle, rgba(131, 216, 255, 0.09), transparent 68%);
}

#bodyCheckRoot {
  width: min(100%, 980px);
  margin-inline: auto;
}

.body-experience-shell .diagnosis-progress {
  display: grid;
  gap: 0.85rem;
  padding: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid rgba(238, 252, 247, 0.12);
  border-radius: 22px;
  background: rgba(6, 23, 30, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.body-experience-shell .progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--hc-muted-on-dark);
}

.body-experience-shell .progress-meta span,
.body-experience-shell .progress-meta strong {
  color: var(--hc-text-on-dark);
}

.body-experience-shell .progress-track {
  height: 5px;
  border: 1px solid rgba(126, 226, 194, 0.12);
  background: rgba(238, 252, 247, 0.08);
  box-shadow: 0 0 22px rgba(110, 231, 168, 0.1);
}

.body-experience-shell .progress-track span {
  background: linear-gradient(90deg, #6ee7a8, #83d8ff);
  box-shadow: 0 0 18px rgba(110, 231, 168, 0.45);
}

.body-experience-shell .body-trace-steps span {
  border-radius: 16px;
  border-color: rgba(238, 252, 247, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--hc-muted-on-dark);
}

.body-experience-shell .body-trace-steps span em {
  color: #9bf5c1;
}

.body-experience-shell .body-trace-steps span.complete {
  border-color: rgba(110, 231, 168, 0.38);
  background: rgba(110, 231, 168, 0.15);
  color: #ddfff1;
}

.body-experience-shell .body-trace-steps span.active {
  border-color: rgba(131, 216, 255, 0.68);
  background: linear-gradient(135deg, rgba(110, 231, 168, 0.24), rgba(131, 216, 255, 0.13));
  color: #ffffff;
  box-shadow: 0 0 34px rgba(110, 231, 168, 0.2);
}

.body-experience-shell .diagnosis-panel,
.body-experience-shell .result-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 940px);
  margin-inline: auto;
  border: 1px solid var(--hc-node-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 14% 10%, rgba(110, 231, 168, 0.16), transparent 12rem),
    linear-gradient(145deg, rgba(236, 245, 241, 0.96), rgba(226, 241, 235, 0.93));
  color: var(--hc-text-on-light);
  box-shadow: var(--hc-node-glow);
  animation: bodyTraceEnter 360ms ease both;
}

.body-experience-shell .diagnosis-panel::after,
.body-experience-shell .result-panel::after {
  content: "";
  position: absolute;
  inset: auto 10% 0 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 168, 0.8), transparent);
  pointer-events: none;
}

.diagnosis-step-head {
  display: grid;
  gap: 0.35rem;
  max-width: 780px;
}

.diagnosis-step-head .trace-label {
  width: fit-content;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(23, 99, 58, 0.16);
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.14);
  color: #17633a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.body-experience-shell .diagnosis-step-head .eyebrow,
.body-experience-shell .result-panel .eyebrow {
  margin: 0;
  color: #17633a;
  letter-spacing: 0.13em;
}

.body-experience-shell .diagnosis-step-head h2,
.body-experience-shell .result-hero h2,
.body-experience-shell .info-card h3,
.body-experience-shell .supplement-group h3,
.body-experience-shell .ranking-card h3 {
  color: var(--hc-heading-on-light);
}

.body-experience-shell .diagnosis-step-head p,
.body-experience-shell .result-hero p,
.body-experience-shell .info-card p,
.body-experience-shell .reason-grid li,
.body-experience-shell .metric-card span,
.body-experience-shell .empty-insight,
.body-experience-shell .share-note {
  color: var(--hc-muted-on-light);
}

.body-experience-shell .body-part-grid {
  gap: clamp(0.75rem, 2vw, 1rem);
}

.body-experience-shell .body-part-card,
.body-experience-shell .diagnosis-option {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border: 1px solid rgba(23, 99, 58, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(110, 231, 168, 0.14), transparent 5.5rem),
    linear-gradient(145deg, rgba(248, 252, 249, 0.98), rgba(235, 246, 240, 0.96));
  color: var(--hc-text-on-light);
  box-shadow: 0 10px 24px rgba(8, 47, 44, 0.08);
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.body-experience-shell .body-part-card::after,
.body-experience-shell .diagnosis-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(110, 231, 168, 0.08), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.body-experience-shell .body-part-card:hover,
.body-experience-shell .diagnosis-option:hover,
.body-experience-shell .body-part-card:focus-visible,
.body-experience-shell .diagnosis-option:focus-visible {
  border-color: rgba(23, 99, 58, 0.48);
  box-shadow: 0 16px 36px rgba(8, 47, 44, 0.13), 0 0 0 1px rgba(110, 231, 168, 0.18) inset;
  transform: translateY(-3px);
}

.body-experience-shell .body-part-card:hover::after,
.body-experience-shell .diagnosis-option:hover::after,
.body-experience-shell .body-part-card:focus-visible::after,
.body-experience-shell .diagnosis-option:focus-visible::after {
  opacity: 1;
}

.body-experience-shell .body-part-card.selected,
.body-experience-shell .diagnosis-option.selected {
  border-color: rgba(13, 148, 111, 0.72);
  background:
    radial-gradient(circle at 14% 18%, rgba(110, 231, 168, 0.32), transparent 6rem),
    linear-gradient(145deg, rgba(224, 251, 239, 0.98), rgba(211, 246, 233, 0.95));
  box-shadow: 0 18px 42px rgba(13, 148, 111, 0.18), 0 0 0 1px rgba(110, 231, 168, 0.28) inset;
}

.body-experience-shell .part-icon,
.body-experience-shell .option-check {
  background: rgba(8, 47, 44, 0.08);
  color: #17633a;
  box-shadow: inset 0 0 0 1px rgba(23, 99, 58, 0.08);
}

.body-experience-shell .diagnosis-option.selected .option-check,
.body-experience-shell .body-part-card.selected .part-icon {
  background: #17633a;
  color: #f3fff8;
  box-shadow: 0 0 18px rgba(110, 231, 168, 0.34);
}

.body-experience-shell .node-label {
  color: #2f7660;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.body-experience-shell .body-part-card strong,
.body-experience-shell .diagnosis-option strong {
  color: var(--hc-heading-on-light);
  font-size: clamp(1rem, 2.4vw, 1.14rem);
}

.body-experience-shell .body-part-card small {
  color: var(--hc-muted-on-light);
}

.body-experience-shell .diagnosis-option:disabled,
.body-experience-shell .body-part-card:disabled {
  border-color: rgba(78, 98, 94, 0.16);
  background: rgba(228, 237, 233, 0.82);
  color: var(--hc-subtle-on-light);
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.body-experience-shell .diagnosis-option:disabled strong,
.body-experience-shell .body-part-card:disabled strong,
.body-experience-shell .diagnosis-option:disabled .node-label,
.body-experience-shell .body-part-card:disabled .node-label,
.body-experience-shell .body-part-card:disabled small {
  color: var(--hc-subtle-on-light);
}

.body-experience-shell .result-hero {
  align-items: center;
  border: 1px solid rgba(126, 226, 194, 0.25);
  background:
    radial-gradient(circle at 12% 25%, rgba(110, 231, 168, 0.22), transparent 13rem),
    linear-gradient(135deg, rgba(238, 249, 242, 0.98), rgba(223, 243, 235, 0.95));
  box-shadow: 0 18px 44px rgba(8, 47, 44, 0.12);
}

.body-experience-shell .score-circle {
  background: conic-gradient(#6ee7a8 var(--score), #d9e9e2 0);
  box-shadow: 0 0 36px rgba(110, 231, 168, 0.22);
}

.body-experience-shell .score-circle::before {
  background: #f5fbf8;
}

.body-experience-shell .score-circle strong,
.body-experience-shell .score-circle span {
  color: #0b3b35;
}

.body-experience-shell .metric-grid,
.body-experience-shell .ranking-grid {
  gap: 0.9rem;
}

.body-experience-shell .metric-card,
.body-experience-shell .info-card,
.body-experience-shell .ranking-card,
.body-experience-shell .reason-grid div,
.body-experience-shell .trust-card {
  border: 1px solid rgba(23, 99, 58, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 12%, rgba(110, 231, 168, 0.1), transparent 8rem),
    rgba(246, 251, 248, 0.96);
  color: var(--hc-text-on-light);
  box-shadow: 0 14px 32px rgba(8, 47, 44, 0.08);
}

.body-experience-shell .metric-card small,
.body-experience-shell .ranking-card small,
.body-experience-shell .stat-strip small,
.body-experience-shell .bar-row span,
.body-experience-shell .trust-card h4 {
  color: var(--hc-muted-on-light);
}

.body-experience-shell .metric-card strong,
.body-experience-shell .stat-strip strong,
.body-experience-shell .bar-row strong,
.body-experience-shell .muscle-rank-list strong,
.body-experience-shell .reason-grid strong,
.body-experience-shell .ranking-list li {
  color: var(--hc-heading-on-light);
}

.body-experience-shell .metric-card.danger,
.body-experience-shell .trust-card.warning,
.body-experience-shell .trust-card.danger {
  background: linear-gradient(145deg, rgba(255, 249, 232, 0.96), rgba(253, 238, 220, 0.95));
  border-color: rgba(180, 120, 40, 0.2);
}

.body-experience-shell .stat-strip article {
  border-color: rgba(126, 226, 194, 0.18);
  background:
    linear-gradient(145deg, rgba(6, 23, 30, 0.88), rgba(10, 52, 48, 0.86));
  color: var(--hc-text-on-dark);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.body-experience-shell .stat-strip article small,
.body-experience-shell .stat-strip article span {
  color: var(--hc-muted-on-dark);
}

.body-experience-shell .stat-strip article strong {
  color: #ffffff;
}

.body-experience-shell .bar-row {
  border: 1px solid rgba(23, 99, 58, 0.12);
  border-radius: 16px;
  background: rgba(236, 245, 241, 0.82);
}

.body-experience-shell .bar-row div {
  color: var(--hc-text-on-light);
}

.body-experience-shell .bar-row b,
.body-experience-shell .bar-fill,
.body-experience-shell .meter span,
.body-experience-shell .muscle-rank-list b {
  background: linear-gradient(90deg, #34d399, #83d8ff);
  box-shadow: 0 0 16px rgba(110, 231, 168, 0.28);
}

.body-experience-shell .meter {
  background: rgba(8, 47, 44, 0.09);
}

.body-experience-shell .ranking-list li,
.body-experience-shell .muscle-rank-list li {
  border: 1px solid rgba(23, 99, 58, 0.12);
  background: rgba(246, 251, 248, 0.96);
}

.body-experience-shell .ranking-list li::before,
.body-experience-shell .muscle-rank-list span {
  color: #17633a;
}

.body-experience-shell .share-note {
  border-color: rgba(23, 99, 58, 0.18);
  background: rgba(236, 245, 241, 0.82);
}

.body-experience-shell .ai-caution {
  border: 1px solid rgba(126, 226, 194, 0.22);
  border-radius: 20px;
  background: rgba(6, 23, 30, 0.82);
  color: var(--hc-text-on-dark);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.body-experience-shell .ai-caution p,
.body-experience-shell .ai-caution span {
  color: var(--hc-muted-on-dark);
}

.body-experience-shell .diagnosis-actions .primary-button:disabled {
  border-color: rgba(238, 252, 247, 0.12);
  background: rgba(238, 252, 247, 0.16);
  color: rgba(238, 252, 247, 0.72);
  cursor: not-allowed;
}

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

@media (max-width: 760px) {
  .body-experience-shell {
    width: min(100%, 430px);
    margin-inline: auto;
    padding-inline: 0;
  }

  #bodyCheckRoot {
    width: 100%;
  }

  .body-experience-shell::before {
    width: 320px;
    height: 320px;
    right: -160px;
    top: 7rem;
  }

  .body-experience-shell::after {
    width: 260px;
    height: 260px;
    left: -150px;
    bottom: 7rem;
  }

  .body-experience-shell .diagnosis-progress,
  .body-experience-shell .diagnosis-panel,
  .body-experience-shell .result-panel {
    border-radius: 22px;
  }

  .body-experience-shell .diagnosis-panel,
  .body-experience-shell .result-panel {
    padding: 1rem;
  }

  .body-experience-shell .body-part-grid,
  .body-experience-shell .diagnosis-option-grid,
  .body-experience-shell .diagnosis-option-grid.compact {
    grid-template-columns: 1fr;
  }

  .body-experience-shell .body-part-card,
  .body-experience-shell .diagnosis-option {
    min-height: 72px;
    padding: 0.9rem;
  }

  .body-experience-shell .node-label {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .body-experience-shell .diagnosis-panel,
  .body-experience-shell .result-panel,
  .body-experience-shell .body-part-card,
  .body-experience-shell .diagnosis-option {
    animation: none;
    transition: none;
    transform: none;
  }
}

.body-experience-shell .muscle-rank-list li b {
  background: linear-gradient(90deg, #34d399, #83d8ff);
  box-shadow: 0 0 16px rgba(110, 231, 168, 0.28);
}
