* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --text: #1c1c1e;
  --text-sub: #4a4a4a;
  --muted: #4b5563;
  --accent: #6b8f71;
  --accent-light: #eef4ef;
  --accent-dark: #3a5a3e;
  --warm: #f7f4ef;
  --warm-deep: #f0ebe3;
  --gold: #7a5f27;
  --gold-light: #faf5eb;
  --warn: #d4845a;
  --border: #e8e4de;
  --wood: #6b9e6b;
  --fire: #d4715a;
  --earth: #c4a76c;
  --metal: #9a9a9a;
  --water: #5a8aaa;
  /* Phase 2 BB1·BB2: 명조 + 한지 + 도장 + viral-card 다크 신규 토큰 */
  --ink-serif: #2a3528;
  --paper-tex: #f4eee2;
  --seal-red: #a8362f;
  --ink-dark: #0e1410;
  --gold-bright: #c4a76c;
  --shadow-hero: 0 8px 32px rgba(58,90,62,0.10);
  --serif: 'Nanum Myeongjo', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --radius: 14px;
  --shadow: 0 1px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);

  /* v75 디자인 토큰 — 카드 지오메트리·타이포·간격을 한 곳에서 관리.
     기존 클래스는 그대로 두고 속성값만 토큰 참조로 치환. */
  --radius-lg: 16px;            /* 섹션 레벨 (rx-section, rx-credibility-anchor, rx-review) */
  --radius-md: 14px;            /* 블록·accordion (paywall-card, accordion, dash-card) */
  --radius-sm: 10px;            /* 내부 소블록 (rest-block, closing-thanks/nearby) */
  --pad-lg: 1.1rem 1.2rem 1.2rem;
  --pad-md: 1rem 1.1rem 1.1rem;
  --pad-sm: 0.8rem 0.9rem;
  --card-gap: 1rem;             /* 카드 간 수직 간격 */
  --block-gap: 0.8rem;          /* 내부 블록 간 간격 */
  --surface: #ffffff;           /* 기본 카드 배경 */
  --surface-soft: var(--warm);  /* 내부 블록(강조 약함) */
  --surface-warn: #fff7ed;      /* 경고 톤 */
  --ink-warn: #b45309;

  /* 타이포 스케일 */
  --fs-title: 1.35rem;          /* dash-body-title, 마무리 section title */
  --fs-h3: 1.05rem;             /* 섹션 제목 */
  --fs-h4: 0.95rem;             /* 블록 소제목 */
  --fs-body: 1rem;              /* 본문 (Phase 1 QW3: 0.88→1rem, 한국어 16px) */
  --fs-meta: 0.88rem;           /* 보조 정보 */
  --fs-small: 0.82rem;          /* 캡션·면책 */
  --lh-body: 1.65;
}

body {
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === Phase 2 BB6: 랜딩 hero 재설계 ===
   - 트러스트 배지 + 명조 카피 + 단일 CTA + 3 신뢰 시그널
   - 베이지 베이스 위에 깊은 녹 톤(--accent-dark)을 강조점으로만 사용
   - Apple Wallet 처방전 메타포 — Rx 워터마크 oversized */
/* viewport 세로 중앙 정렬 — 콘텐츠가 화면 중앙 stack, scrollcue는 하단 고정.
   100dvh로 iOS Safari 주소창 변동에 안정적. */
.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1.4rem 4rem;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.hero-trust {
  font-size: 0.78rem;
  letter-spacing: 1.6px;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.6rem;
  text-transform: uppercase;
}
.hero-title {
  /* v90: 명조 제거 → Pretendard 굵은 검정 (한국 사주 앱 표준 톤) */
  font-size: 2.1rem;        /* 33.6px */
  font-weight: 800;
  line-height: 1.3;
  margin: 0 auto 1.4rem;
  max-width: 18ch;
  color: var(--text);
  letter-spacing: -0.7px;
  word-break: keep-all;
}
.hero-lede {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  max-width: 30ch;
  margin: 0 auto 2.2rem;
}
.hero-lede-key {
  display: inline-block;
  font-size: 1.2rem;        /* 19.2px — lede 본문보다 한 단계 위 */
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.4px;
  line-height: 1.4;
}
.hero-lede-tail {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-sub);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  padding: 0.9rem 1.4rem;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 22px rgba(58,90,62,0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(58,90,62,0.26);
}
.hero-cta:active { transform: translateY(0); }
.hero-trustlist {
  list-style: none;
  padding: 0;
  margin: 1.8rem auto 0;
  max-width: 280px;
  display: grid;
  gap: 0.55rem;
  text-align: left;
}
.hero-trustlist li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.94rem;       /* 15px */
  color: var(--text-sub);
  line-height: 1.55;
}
.hero-trustlist li::before {
  content: '⊙';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
/* hero-scrollcue 제거됨 — 사용자 피드백 반영 */
/* 데스크탑: hero 크기 키움 */
@media (min-width: 720px) {
  .landing-hero { padding: 5rem 1.5rem 4.5rem; }
  .hero-trust { font-size: 0.82rem; margin-bottom: 1.8rem; }
  .hero-title { font-size: 2.7rem; max-width: 18ch; margin-bottom: 1.6rem; }
  .hero-lede { max-width: 32ch; margin-bottom: 2.6rem; gap: 0.7rem; }
  .hero-lede-key { font-size: 1.4rem; }
  .hero-lede-tail { font-size: 1.05rem; }
  .hero-cta { max-width: 360px; font-size: 1.1rem; min-height: 60px; }
  .hero-trustlist { margin-top: 2.2rem; max-width: 320px; }
  .hero-trustlist li { font-size: 1rem; }
}
/* 결과 진입 시 hero 숨김 (집중도 유지) */
.landing-hero.hidden { display: none; }
/* 기존 .subtitle / .header-msg는 남겨도 무해하지만 미사용 — 삭제 */

/* === 메인 === */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === 입력 카드 (화면 전환 구성에서 단독 화면) === */
/* hero와 같은 베이지 톤 위에 한 장 카드. 좌우 여백·상단 여백 충분히 */
.input-card {
  background: var(--card);
  border-radius: 18px;
  padding: 2rem 1.5rem 1.7rem;
  margin: 1.6rem auto;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.05);
}
.input-head {
  margin-bottom: 1.4rem;
}
.input-title {
  /* v90: 명조 제거 → Pretendard 굵은 검정 */
  font-size: 1.55rem;         /* 24.8px */
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--text);
  /* h2 기본 underline·inline-block 오버라이드 */
  border-bottom: 0;
  display: block;
  padding-bottom: 0;
  letter-spacing: -0.5px;
}
.input-sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-sub);
  margin: 0;
}
.field-group {
  margin-bottom: 1.2rem;
}
.field-group:last-of-type {
  margin-bottom: 1.4rem;
}
.field-group-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 0.55rem;
  letter-spacing: -0.1px;
}
.field-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: nowrap;
}
.field-row-3 .field { flex: 1 1 0; min-width: 0; }
.field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.field-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
/* 데스크탑 — 카드 약간 넓고 라벨 약간 큼 */
@media (min-width: 720px) {
  .input-card { padding: 2.4rem 2rem 2rem; margin: 2.4rem auto 2rem; max-width: 520px; }
  .input-title { font-size: 1.75rem; }
  .input-sub { font-size: 0.96rem; }
  .field-label { font-size: 0.86rem; }
}
.palja-card, .factors-card, .prescription-card, .plan-card, .json-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

h2 {
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  display: inline-block;
}
h3 { font-size: 1rem; color: var(--accent-dark); margin-bottom: 0.5rem; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
/* Phase 1 QW2: 인라인 에러 — alert 대체 */
.form-error {
  margin: 0.6rem 0 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #fff4ed;
  border: 1px solid #f0c8a4;
  border-left: 3px solid var(--warn, #d4845a);
  border-radius: 8px;
  font-size: 0.92rem;
  color: #7a3e1a;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
input.input-error, select.input-error {
  border-color: var(--warn, #d4845a) !important;
  background: #fffaf6;
}

.row { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.row label { flex: 1; display: flex; flex-direction: column; font-size: 0.82rem; color: var(--text-sub); min-width: 80px; }
input, select {
  margin-top: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: all 0.2s;
}
input:focus, select:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px var(--accent-light); }

button {
  background: var(--accent-dark);
  color: white;
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  width: 100%;
  letter-spacing: 0.3px;
}
button:hover { background: #2a4a2d; box-shadow: var(--shadow-md); }
button:active { transform: scale(0.98); }

.hidden { display: none; }

/* 화면 전환 구성 — landing-hero / input-card / result 3단계.
   .stage-hidden은 초기 입력폼·결과 영역에 적용해 hero가 단독으로 첫 화면을 차지하게 한다. */
.stage-hidden { display: none !important; }
.landing-hero, .input-card {
  opacity: 1;
  transition: opacity 0.28s ease;
}
.landing-hero.fade-out, .input-card.fade-out { opacity: 0; }

/* acc-evidence-hint 제거됨 (2026-05-08 사용자 피드백) — F-코드 사용자 노출 금지. data-evidence attribute는 추적용으로 유지. */

/* Phase 2 BB3: term-chip — T2/T3 사주용어를 본문에서 분리, 평이번역(T1)을 본문에 두고 사주용어는 chip으로
   tap/click 시 추가 정보(T3) 토글. 본문 직접 노출(격국·충·십이운성 등) 절대 금지. */
.term-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem 0.22rem;
  margin: 0 0.1rem;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(122,95,39,0.18);
  cursor: pointer;
  vertical-align: baseline;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.term-chip:hover { background: rgba(196,167,108,0.22); color: var(--accent-dark); }
.term-chip::after {
  content: 'ⓘ';
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 0.15rem;
}
.term-chip[data-tier="t2"] { background: var(--accent-light); color: var(--accent-dark); border-color: rgba(107,143,113,0.28); }
.term-detail {
  display: none;
  margin: 0.5rem 0 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-sub);
}
.term-detail.show { display: block; }
.term-detail .term-detail-label {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.term-detail strong { color: var(--accent-dark); }

/* Phase 2 BB2: 명조 유틸 — hero·퍼소나·종목명·자문진 인용 4곳에만 (본문 사용 금지) */
.serif {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink-serif);
}

/* result-hero — Zoe daily score IA + Aēsop 미니멀 + 설화수 차분한 동양 톤 (2026-05-08 v87)
   - 한지 텍스처·radial 그라디언트·골드 쉐도우 제거 → 흰 종이 같은 깨끗한 카드
   - eyebrow는 uppercase + letter-spacing으로 절제, 색은 짙은 녹/회색 톤
   - 명조 line-height·letter-spacing 한국어에 맞춰 충분히
   - divider·테두리·shadow 모두 옅게 — 강조점은 명조 헤드라인 1곳만 */
.result-hero {
  position: relative;
  max-width: 720px;
  margin: 0.6rem auto 1.4rem;
  padding: 1.8rem 1.5rem 1.5rem;
  background: #fdfbf7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 24px rgba(0,0,0,0.04);
  overflow: hidden;
  isolation: isolate;
}
/* 진단 라벨 — Zoe식 작은 eyebrow */
.result-hero-label {
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.result-hero-persona {
  font-size: 1.5rem;            /* 24px */
  line-height: 1.45;
  color: var(--ink-serif);
  margin: 0 0 1.2rem;
  max-width: 28ch;
  letter-spacing: -0.4px;
  word-break: keep-all;
}
.result-hero-persona br + * { display: inline; }
/* 사주아이식 카테고리 6개 그리드 (v89) — 한국 사주 앱 표준 카드 패턴
   2열×3행 모바일, 데스크탑 3열×2행. 각 카드: 이모지 + 라벨 + 값 (굵은 검정 Pretendard, 명조 X) */
.rx-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 1.2rem 0 1.2rem;
}
.rx-deck-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-height: 92px;
  transition: border-color 0.15s ease;
}
.rx-deck-tile:hover { border-color: var(--accent); }
.rx-deck-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.rx-deck-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.1rem;
}
.rx-deck-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-serif);
  line-height: 1.35;
  letter-spacing: -0.3px;
  word-break: keep-all;
}
@media (min-width: 480px) {
  .rx-deck { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 720px) {
  .rx-deck { gap: 0.7rem; }
  .rx-deck-tile { padding: 1rem 1rem 1.1rem; min-height: 104px; }
  .rx-deck-value { font-size: 1.08rem; }
}

/* result-hero-divider/eyebrow/sport/meta 제거됨 (v89 카테고리 그리드로 대체) */
.result-hero-why {
  margin-top: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.result-hero-why summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.2rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.result-hero-why summary::-webkit-details-marker { display: none; }
.result-hero-why .why-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
}
.result-hero-why[open] .why-arrow { transform: rotate(180deg); }
.why-list {
  list-style: none;
  padding: 0.5rem 0 0.2rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.why-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  background: #faf8f5;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 0;
}
.why-list li strong {
  color: var(--accent-dark);
  font-weight: 700;
  margin-right: 0.15rem;
}
@media (min-width: 720px) {
  .result-hero { padding: 2.2rem 2rem 1.8rem; margin: 1rem auto 1.8rem; }
  .result-hero-persona { font-size: 1.7rem; }
}

/* Phase 1 QW10: 모바일 sticky bottom CTA — 결과 페이지 진입 후 손 닿는 위치에 액션 */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 90;
}
.sticky-cta.hidden { display: none; }
.sticky-cta-btn {
  flex: 1;
  width: auto;
  min-height: 48px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0;
}
.sticky-cta-primary { background: var(--accent-dark); color: #fff; flex: 2; }
.sticky-cta-primary:hover { background: #2a4a2d; }
.sticky-cta-ghost { background: #fff; color: var(--accent-dark); border-color: var(--accent-dark); }
.sticky-cta-ghost:hover { background: var(--accent-light); }
/* 데스크탑에서는 숨김 — 본문 하단 share-bottom으로 충분 */
@media (min-width: 720px) {
  .sticky-cta { display: none !important; }
}
/* sticky CTA 가시 시 결과 본문 하단 여백 */
.result-shown { padding-bottom: 80px; }

/* Phase 1 QW9: viral-card 스택 제거 (현재 라이브에서 미사용 — Phase 3에서 og:image 동적 생성과 함께 다크 톤으로 재작성 예정) */
.share-buttons { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.share-btn {
  background: rgba(245,240,230,0.95); color: var(--accent-dark); border: none;
  padding: 0.6rem 1.2rem; min-height: 44px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.share-btn:hover { background: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.share-btn:active { transform: translateY(0); }
.share-btn.share-img { background: transparent; color: var(--gold); border: 1px solid rgba(196,167,108,0.3); box-shadow: none; }
.share-btn.share-img:hover { background: rgba(196,167,108,0.1); }

/* Phase 1 QW9: prescription-doc 제거 (래퍼 미사용 — rx-section/rx-header만 활성). Rx 워터마크는 Phase 2 hero 카드에서 SVG로 재구현 */
.rx-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}
.rx-header .rx-title { font-size: 1.3rem; color: var(--accent-dark); font-weight: 700; }
.rx-header .rx-meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
/* v75 cleanup: rx-greeting / intro-card / closing-card·label·quotes·message 제거됨 (sec_greeting·구 closing 제거) */
.closing-disclaimer { font-size: var(--fs-small); color: var(--muted); margin-top: 0.5rem; }
.rx-summary {
  background: var(--warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0 1.2rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.rx-section { margin: 1.5rem 0; }
.rx-section h3 {
  font-size: 1.05rem; color: var(--accent-dark); font-weight: 700;
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
}
.rx-section p { font-size: 0.93rem; color: var(--text); margin-bottom: 0.6rem; line-height: 1.75; }
.rx-section .highlight { background: linear-gradient(180deg, transparent 55%, var(--gold-light) 55%); font-weight: 600; padding: 0 3px; }
.rx-signature { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1.5rem; text-align: right; font-size: 0.82rem; color: var(--muted); }
.rx-signature .coach-name { display: block; font-size: 0.95rem; color: var(--accent-dark); font-weight: 600; margin-top: 0.2rem; }

/* === 프로필 카드 === */
/* v75 cleanup: profile-card 계열 제거 (IA v67에서 프로필 카드 삭제됨) */

/* === 아코디언 (legacy — 일부 다른 영역에서 여전히 사용. rx-sports는 .rx-card로 이동) === */
.accordion-group { margin: 1.5rem 0; }
.accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.accordion:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.accordion summary {
  padding: 0.85rem 1rem;
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  cursor: pointer; background: transparent;
  list-style: none; display: flex; align-items: center; gap: 0.5rem;
}
.accordion summary::before { content: '▸'; transition: transform 0.2s; font-size: 0.7rem; color: var(--accent); }
.accordion[open] summary::before { transform: rotate(90deg); }
.accordion[open] summary { background: var(--gold-light); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .rx-section { padding: 0.5rem 1rem 1rem; margin: 0; }

/* === rx-save-share — 처방전 저장·공유 강조 카드 (v92)
   매핑 가이드 #5: 자문진 격하 + PDF 다운로드/공유 강조. 한국 사주 앱(사주아이) 표준 패턴 */
.rx-save-share {
  max-width: 720px;
  margin: 1.6rem auto 1.2rem;
  padding: 1.4rem 1.2rem;
  background: var(--accent-light);
  border: 1px solid rgba(107,143,113,0.22);
  border-radius: 16px;
}
.save-share-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.save-share-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.save-share-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.save-share-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.45;
}
.save-primary-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: 0 6px 18px rgba(58,90,62,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  margin-bottom: 0.55rem;
}
.save-primary-btn:hover {
  background: #2a4a2d;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(58,90,62,0.24);
}
.save-primary-btn:active { transform: translateY(0); }
.save-share-secondary {
  display: flex;
  gap: 0.5rem;
}
.save-secondary-btn {
  flex: 1;
  width: auto;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: -0.1px;
}
.save-secondary-btn:hover { background: var(--warm); border-color: rgba(107,143,113,0.4); }
@media (min-width: 720px) {
  .rx-save-share { padding: 1.8rem 1.6rem; margin: 2rem auto 1.4rem; }
  .save-share-title { font-size: 1.12rem; }
  .save-primary-btn { min-height: 56px; font-size: 1.05rem; }
}

/* === rx-card stack — 한국 사주 앱 표준 (v91)
   accordion 5개를 항상 펼침 카드로 전환. 헤더 이모지 + 굵은 검정 제목. summary는 닫기·펼치기 가능. */
.rx-deck-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.4rem 0 1.2rem;
}
.rx-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.15s ease;
}
.rx-card:hover { border-color: rgba(107,143,113,0.35); }
.rx-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.05rem;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
}
.rx-card-head::-webkit-details-marker { display: none; }
.rx-card-head::after {
  content: '▾';
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  transition: transform 0.2s ease;
}
.rx-card[open] .rx-card-head::after { transform: rotate(180deg); }
.rx-card[open] .rx-card-head {
  border-bottom-color: var(--border);
  background: #fafaf7;
}
.rx-card-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rx-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.rx-card-body {
  padding: 0.85rem 1.05rem 1rem;
}
/* rx-card 안 .rx-section 패딩 충돌 정리 */
.rx-card-body > .rx-section { padding: 0; margin: 0; }
.rx-card-body > .rx-section + .rx-section { margin-top: 0.6rem; }
@media (min-width: 720px) {
  .rx-card-head { padding: 1.1rem 1.3rem; }
  .rx-card-title { font-size: 1.08rem; }
  .rx-card-body { padding: 1rem 1.3rem 1.2rem; }
}

/* 섹션 내 핵심 한 줄 카드 */
.section-key {
  background: var(--gold-light);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.5;
}
.section-detail {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.section-detail p { margin-bottom: 0.5rem; }

/* 요일 카드 */
.week-cards {
  display: flex;
  gap: 0.3rem;
  margin: 0.8rem 0;
  justify-content: center;
}
.day-card {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.2rem;
  border-radius: 8px;
  min-width: 0;
}
.day-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.day-type {
  display: block;
  font-size: 0.65rem;
}
.day-card.exercise {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.day-card.exercise .day-label { color: var(--accent-dark); }
.day-card.rest {
  background: var(--warm-deep);
  color: var(--muted);
}
.day-card.recovery {
  background: var(--gold-light);
  color: var(--gold);
}

/* 섹션 간 연결 문장 */
.flow-bridge {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.8rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid var(--border);
}

/* === 로딩 === */
.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245,243,238,0.97);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.loading-inner { text-align: center; padding: 2rem; }
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-size: 0.9rem; color: var(--accent-dark); font-weight: 500; }

/* === 스포츠 목록 === */
.rx-sport-list { list-style: none; padding: 0; margin: 0.8rem 0; }
.rx-sport-list li {
  background: var(--warm); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1rem; margin-bottom: 0.5rem;
}
.rx-sport-list li .rank { display: block; font-size: 0.95rem; color: var(--accent-dark); font-weight: 700; margin-bottom: 0.2rem; }
.rx-sport-list li .reason { font-size: 0.85rem; color: var(--text-sub); line-height: 1.55; margin: 0; }

/* === 팁·경고·비유 === */
.rx-tip { background: var(--accent-light); border-left: 3px solid var(--accent); padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; margin: 0.6rem 0; color: var(--accent-dark); }
.rx-warn { background: #fef3e8; border-left: 3px solid var(--warn); padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; margin: 0.6rem 0; color: #7a4a1a; }
.metaphor { background: var(--warm); border-left: 3px solid var(--earth); padding: 0.6rem 1rem; border-radius: 0 8px 8px 0; font-style: italic; color: #5a4e3a; margin: 0.6rem 0; font-size: 0.88rem; }
.term { font-weight: 600; }
.term em { font-weight: 400; font-style: normal; color: var(--muted); font-size: 0.86em; }
.sinsal-block { background: #f6f4fa; border: 1px solid #e4e0ee; border-radius: 10px; padding: 0.8rem 1rem; margin: 0.8rem 0; }
.sinsal-block p { margin: 0.4rem 0; font-size: 0.88rem; }

/* === 플랜 테이블 === */
.rx-plan-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.5rem; }
.rx-plan-table th, .rx-plan-table td { padding: 0.55rem 0.5rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.rx-plan-table thead tr { border-bottom: 2px solid var(--accent); }
.rx-plan-table th { background: var(--accent-light); color: var(--accent-dark); font-size: 0.78rem; font-weight: 600; }
.rx-plan-table .rest-row { background: var(--warm); }
.rx-plan-table .rest-row td { color: var(--muted); }
.rest-label { font-weight: 500; color: var(--accent-dark); }
.plan-note { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.intensity-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.intensity-badge.high { background: #fde8e8; color: var(--fire); }
.intensity-badge.mid { background: #fff5e8; color: var(--warn); }
.intensity-badge.low { background: var(--accent-light); color: var(--accent-dark); }

/* === 공유 하단 === */
.share-bottom { text-align: center; margin: 1.2rem 0; padding: 1.2rem; background: var(--warm); border-radius: var(--radius); }
.share-bottom p { font-size: 0.88rem; color: var(--text-sub); margin-bottom: 0.6rem; }
.share-bottom .share-buttons { margin-top: 0; }
.share-bottom .share-btn { background: var(--accent); color: white; }
.share-bottom .share-btn:hover { background: var(--accent-dark); }
.share-bottom .share-btn.share-img { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }

/* === 기술 뷰 토글 === */
.view-toggle { text-align: center; margin: 0.8rem 0 1.5rem; }
.view-toggle button { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 0.7rem 1.2rem; min-height: 44px; font-size: 0.85rem; width: auto; }
.view-toggle button:hover { background: var(--warm); color: var(--text); }

/* === 기술 뷰 내부 === */
.palja-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.palja-cell { text-align: center; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--warm); }
.palja-cell .label { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.3rem; }
.palja-cell .gan { font-size: 1.6rem; font-weight: 700; }
.palja-cell .ji { font-size: 1.2rem; color: var(--text-sub); }
.notes { margin-top: 0.6rem; color: var(--warn); font-size: 0.82rem; font-style: italic; }
.factors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.factor-tile { border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem; background: var(--warm); font-size: 0.82rem; }
.factor-tile .fid { font-size: 0.65rem; color: var(--accent); font-weight: 700; }
.factor-tile .fname { font-weight: 600; margin: 0.15rem 0; }
.factor-tile .fval { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.prescription-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.8rem; }
.prescription-section { background: var(--warm); border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem; }
.prescription-section ul { list-style: none; padding: 0; }
.prescription-section li { padding: 0.25rem 0; font-size: 0.82rem; border-bottom: 1px dashed rgba(0,0,0,0.06); }
.prescription-section li:last-child { border-bottom: none; }
.prescription-section .key { color: var(--muted); font-size: 0.72rem; }
.prescription-section .val { font-weight: 500; }
.conflicts { background: #fef3e8; border-color: #f0d9b0; }
.conflicts li { color: var(--warn); }
#json-log { background: #1a1a1a; color: #d8d8c8; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.72rem; font-family: 'Menlo', monospace; max-height: 300px; }
.json-card details summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); padding: 0.4rem 0; font-size: 0.88rem; }

/* === 결제 벽 === */
/* === 처방전 준비 카드 (결제 없음) === */
.ready-card {
  text-align: center;
  padding: 1.5rem 1.2rem;
  margin: 1rem 0;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.ready-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}
.ready-items {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.ready-items li {
  font-size: 0.85rem;
  color: var(--text-sub);
  padding: 0.2rem 0;
  line-height: 1.5;
}

.paywall {
  position: relative;
  margin: 0.5rem 0 1.5rem;
}
.paywall-fade {
  position: relative;
  padding: 1rem 1rem 3rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.7;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}
.paywall-teaser {
  margin: 0;
}
.paywall-content {
  text-align: center;
  padding: 1.5rem 1.5rem 2rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.paywall-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.paywall-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.paywall-btn {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(58,90,62,0.3);
  transition: all 0.2s;
  width: auto;
  letter-spacing: 0.5px;
}
.paywall-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,90,62,0.4);
}
.paywall-items {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.paywall-items li {
  font-size: 0.85rem;
  color: var(--text-sub);
  padding: 0.25rem 0;
  line-height: 1.5;
}
.paywall-methods {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.paywall-anchor {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.3rem;
  font-weight: 500;
}
.paid-content.hidden { display: none; }
/* v75 cleanup: profile-locked-section / profile-lock-info / lock-checklist / profile-bridge 제거 */

/* === 토스트 === */
.toast { position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%); background: var(--accent-dark); color: white; padding: 0.65rem 1.4rem; border-radius: 10px; font-size: 0.85rem; z-index: 9999; transition: bottom 0.3s; box-shadow: var(--shadow-lg); }
.toast.show { bottom: 2rem; }

/* === 오행 컬러 === */
.elem-wood { color: var(--wood); }
.elem-fire { color: var(--fire); }
.elem-earth { color: var(--earth); }
.elem-metal { color: var(--metal); }
.elem-water { color: var(--water); }

/* === 푸터 === */
footer { text-align: center; padding: 2rem 1rem; color: var(--text-sub); font-size: 0.88rem; border-top: 1px solid var(--border); margin-top: 2rem; line-height: 1.6; background: var(--warm); }
footer .footer-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; }

/* === 모바일 === */
@media (max-width: 600px) {
  body { word-break: keep-all; overflow-wrap: break-word; }
  header { padding: 2rem 1rem 1.5rem; }
  header h1 { font-size: 1.4rem; }
  .header-msg { font-size: 0.82rem; }
  main { padding: 0 0.6rem; max-width: 100%; }

  .input-card { padding: 1.2rem; margin-top: -1rem; }
  .row { gap: 0.5rem; }
  .row label { font-size: 0.85rem; min-width: 0; }
  /* Phase 1 QW4·QW5: input 16px (iOS 자동 줌 방지) + 44px 터치 타겟 */
  input, select { padding: 0.75rem 0.8rem; font-size: 1rem; min-height: 44px; }

  /* QW5: share-btn 44px 보장 */
  .share-btn { font-size: 0.85rem; padding: 0.7rem 1rem; min-height: 44px; }

  .rx-header .rx-title { font-size: 1.1rem; }
  .rx-section h3 { font-size: 1rem; }
  /* QW3: 본문 16px / 모바일 가독성 */
  .rx-section p { font-size: 0.95rem; line-height: 1.7; }
  .rx-summary { padding: 0.7rem 0.9rem; font-size: 0.84rem; }
  .rx-sport-list li { padding: 0.7rem 0.8rem; }
  .rx-tip, .rx-warn { font-size: 0.82rem; padding: 0.5rem 0.7rem; }
  .rx-warn ul li { font-size: 0.8rem; }

  /* v75 cleanup: profile-card 모바일 오버라이드 제거됨 */

  .accordion summary { font-size: 0.85rem; padding: 0.75rem 0.8rem; }
  .accordion .rx-section { padding: 0.3rem 0.8rem 0.8rem; }

  .rx-plan-table { font-size: 0.76rem; }
  .rx-plan-table th, .rx-plan-table td { padding: 0.35rem 0.2rem; }

  .palja-grid { grid-template-columns: repeat(2, 1fr); }
  .factors-grid { grid-template-columns: 1fr; }
  .prescription-grid { grid-template-columns: 1fr; }

  .share-bottom { padding: 0.8rem; }
  .rx-signature { font-size: 0.72rem; }
  footer { padding: 1.5rem 0.8rem; }
}

@media print {
  body { background: white; }
  header, footer, .input-card, .view-toggle, #tech-view, .share-buttons, .share-bottom { display: none; }
}

/* ==========================================================================
   추천 운동 섹션 — Hero + 대안 + 체력 슬라이더
   ========================================================================== */
.rx-intro {
  color: var(--text-sub);
  margin-bottom: 1rem;
}

/* 1순위 Hero 카드 */
.rx-hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--warm) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
  box-shadow: var(--shadow-md);
}
.rx-hero-eyebrow {
  font-size: 0.8rem;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.rx-hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.8rem 0;
  line-height: 1.2;
}
.rx-hero-why {
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.rx-hero-ideal {
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.rx-hero-ideal strong {
  color: var(--accent-dark);
  font-weight: 600;
}
.rx-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
  margin-top: 1rem;
}
.rx-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.rx-meta-k {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.rx-meta-v {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}
@media (max-width: 560px) {
  .rx-hero { padding: 1.3rem 1.1rem; }
  .rx-hero-title { font-size: 1.5rem; }
  .rx-hero-meta { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* 2·3순위 대안 카드 */
.rx-alts-wrap {
  margin: 1.2rem 0;
}
.rx-alts-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.rx-alts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.rx-alt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 0.9rem;
}
.rx-alt-rank {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.rx-alt-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.rx-alt-reason {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.rx-alt-value {
  font-size: 0.78rem;
  color: var(--accent-dark);
  line-height: 1.4;
}
@media (max-width: 560px) {
  .rx-alts-grid { grid-template-columns: 1fr; }
}

.rx-aside {
  color: var(--text-sub);
  font-size: 0.88rem;
  margin: 0.8rem 0;
  line-height: 1.6;
}

/* 체력 슬라이더 브리지 + 패널 */
.rx-fitness-bridge {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--border);
}
.rx-bridge-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.rx-bridge-sub {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rx-fitness-panel {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  margin-top: 0.6rem;
}
.rx-fit-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.rx-fit-eyebrow {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.rx-fit-tier-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.rx-fit-tier-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}
.rx-fit-tier-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}
.rx-fit-rationale {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.rx-fit-slider-wrap {
  margin: 1rem 0 1.4rem;
}
.rx-fit-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.rx-fit-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 3px solid var(--card);
}
.rx-fit-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dark);
  cursor: pointer;
  border: 3px solid var(--card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.rx-fit-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.66rem;
  color: var(--muted);
  padding: 0 2px;
}

/* 체력 카드 (모바일 우선: 1열 세로) */
.rx-fit-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rx-fit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s;
}
.rx-fit-card:hover {
  border-color: var(--accent);
}
.rx-fit-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.rx-fit-card-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.rx-fit-card-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.rx-fit-card-tag {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--warm-deep);
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
}
.rx-fit-card-focus {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 0.35rem;
}
.rx-fit-card-value {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.rx-fit-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .rx-fit-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
}

/* "다른 코치면?" 펼치기 */
.rx-coach-alts {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(107, 143, 113, 0.25);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.rx-coach-alts summary {
  padding: 0.75rem 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-weight: 500;
  user-select: none;
  transition: background 0.15s;
}
.rx-coach-alts summary::-webkit-details-marker { display: none; }
.rx-coach-alts summary:hover { background: rgba(107, 143, 113, 0.06); }
.rx-coach-alts-hint {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.rx-coach-alts-hint::after {
  content: '▸';
  transition: transform 0.2s;
  display: inline-block;
}
.rx-coach-alts[open] .rx-coach-alts-hint::after {
  transform: rotate(90deg);
}
.rx-coach-alts-body {
  padding: 0 0.95rem 0.95rem;
  border-top: 1px solid rgba(107, 143, 113, 0.15);
}
.rx-coach-alts-intro {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0.85rem 0 0.8rem;
}
.rx-coach-alts-intro strong {
  color: var(--accent-dark);
  font-weight: 600;
}
.rx-coach-alt {
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.55rem;
}
.rx-coach-alt:last-child { margin-bottom: 0; }
.rx-coach-alt-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.rx-coach-alt-body {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* === reconciler R-6: 도화·화개 동시 시 사용자 선택 토글 === */
.rx-user-choice {
  margin: 1rem 0 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--accent-light, #f2efe7);
  border-left: 3px solid var(--accent, #6b8f71);
  border-radius: 0 10px 10px 0;
}
.rx-user-choice h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--text, #2b2b2b);
}
.rx-user-choice p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: var(--text-sub, #555);
  line-height: 1.55;
}
.rx-user-choice .lean-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.rx-user-choice .lean-toggle button {
  flex: 1 1 48%;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark, #3a5a3e);
  background: #fff;
  border: 1px solid var(--accent, #6b8f71);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.rx-user-choice .lean-toggle button:hover {
  background: var(--accent, #6b8f71);
  color: #fff;
  transform: translateY(-1px);
}
.rx-user-choice[data-lean="dohwa"] .lean-toggle button:nth-child(1),
.rx-user-choice[data-lean="hwagae"] .lean-toggle button:nth-child(2) {
  background: var(--accent-dark, #3a5a3e);
  color: #fff;
  border-color: var(--accent-dark, #3a5a3e);
}
@media (max-width: 480px) {
  .rx-user-choice .lean-toggle { flex-direction: column; }
  .rx-user-choice .lean-toggle button { flex: 1 1 auto; }
}


/* ============================================================
   Step 2: 대시보드 (experience-designer §2·§3)
   === 강도 색 팔레트 ================================ */
:root {
  --int-0: #f1f5f9;
  --int-1: #e0f2fe;
  --int-2: #bae6fd;
  --int-3: #7dd3fc;
  --int-4: #38bdf8;
  --int-5: #0369a1;
  --int-text-light: #0c4a6e;
  --int-text-dark:  #ffffff;
  --today-ring: #38bdf8;
}

/* === 대시보드 헤더 === */
.dash-header {
  max-width: 720px;
  margin: 0.5rem auto 1.1rem;
  text-align: center;
  padding: 0 1rem;
}
.dash-day {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--gold, #c4a76c);
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.dash-greeting {
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--text, #2b2b2b);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
  word-break: keep-all;
}

/* dash-body-key chip row 제거됨(2026-05-08 사용자 피드백) — 정보는 result-hero "사주 근거 보기" 토글 안 평이번역+small T2 chip(.why-tag)로 통합. */

/* T2 사주용어 작은 chip — '사주 근거 보기' 펼침 안에서 평이번역 옆에 살짝 붙는 형태 */
.why-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.08rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gold);
  background: var(--gold-light);
  border-radius: 999px;
  border: 1px solid rgba(122,95,39,0.18);
  vertical-align: middle;
}

/* Phase 1 QW7: dashboard-bottom 복구용 섹션 타이틀 */
.dash-bottom-title {
  max-width: 720px;
  margin: 1.6rem auto 0.7rem;
  padding: 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  border-bottom: 0;
  display: block;
  letter-spacing: -0.2px;
}

/* === 대시보드 카드 공통 (v75 토큰화) === */
.dash-card {
  max-width: 720px;
  margin: 0 auto var(--card-gap);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--pad-lg);
  box-shadow: var(--shadow);
}
.dash-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #2b2b2b);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* === 카드 A: 오늘의 운동 === */
.dash-today {
  background: linear-gradient(135deg, var(--accent-light, #f2efe7) 0%, var(--warm, #faf6ec) 100%);
  border: 1px solid var(--accent, #6b8f71);
}
.today-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.today-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  font-size: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.today-title { flex: 1 1 auto; min-width: 0; }
.today-sport {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #2b2b2b);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  word-break: keep-all;
}
.today-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-sub, #555);
}
.intensity-dots {
  letter-spacing: 1.5px;
  color: var(--int-4, #38bdf8);
  font-size: 0.8rem;
}
.today-plan {
  margin: 0.7rem 0 0.6rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border, #e4dfd3);
  padding: 0.7rem 0.9rem;
}
.today-plan summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark, #3a5a3e);
  list-style: none;
}
.today-plan summary::-webkit-details-marker { display: none; }
.today-plan summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s;
}
.today-plan[open] summary::before { transform: rotate(90deg); }
.today-plan-body { margin-top: 0.7rem; }
.today-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.today-cta .btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--accent-dark, #3a5a3e) 0%, var(--accent, #6b8f71) 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(58,90,62,0.2);
  transition: transform 0.15s;
}
.today-cta .btn-primary:hover { transform: translateY(-1px); }
.today-cta .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  color: var(--accent-dark, #3a5a3e);
  border: 1px solid var(--accent, #6b8f71);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.today-cta .btn-ghost:hover {
  background: var(--accent-light, #f2efe7);
  transform: translateY(-1px);
}
.today-cta .btn-video::after { content: ' ↗'; font-size: 0.8em; opacity: 0.7; }

.alt-row .alt-video {
  margin-left: auto;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.alt-row .alt-video:hover { background: var(--accent-light, #f2efe7); }

.exec-move-head .exec-move-video {
  margin-left: auto;
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--accent-dark, #3a5a3e);
  background: var(--accent-light, #f2efe7);
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
.exec-move-head .exec-move-video:hover {
  border-color: var(--accent, #6b8f71);
}
.today-alt {
  background: #fff;
  border: 1px solid var(--border, #e4dfd3);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.today-alt summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-sub, #555);
  list-style: none;
}
.today-alt summary::-webkit-details-marker { display: none; }
.today-alt summary::before { content: '▸ '; }
.today-alt[open] summary::before { content: '▾ '; }
.today-alt-body { padding-top: 0.5rem; }
.alt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.87rem;
}
.alt-rank {
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  background: var(--accent-light, #f2efe7);
  color: var(--accent-dark, #3a5a3e);
  border-radius: 6px;
  font-weight: 600;
}
.alt-name { font-weight: 600; color: var(--text, #2b2b2b); }
.alt-note {
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  margin: 0.4rem 0 0;
  line-height: 1.55;
}
.dash-today-rest, .dash-today-recovery {
  background: var(--warm, #faf6ec);
}
.today-rest-msg, .today-recovery-msg {
  font-size: 0.88rem;
  color: var(--text-sub, #555);
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

/* === 8항 실행 플랜 === */
.exec-plan { font-size: 0.88rem; }
.exec-overview {
  font-size: 0.88rem;
  color: var(--text-sub, #555);
  line-height: 1.6;
  margin: 0 0 0.8rem;
  padding: 0.5rem 0.7rem;
  background: var(--warm, #faf6ec);
  border-radius: 8px;
  border-left: 3px solid var(--accent, #6b8f71);
}
.exec-moves { list-style: none; padding: 0; margin: 0; }
.exec-move {
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border, #e4dfd3);
}
.exec-move:last-child { border-bottom: 0; }
.exec-move-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.exec-move-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-dark, #3a5a3e);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}
.exec-move-name { font-weight: 600; color: var(--text, #2b2b2b); }
.exec-move-set {
  font-size: 0.78rem;
  color: var(--accent-dark, #3a5a3e);
  background: var(--accent-light, #f2efe7);
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
}
.exec-move-form, .exec-move-caution {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-sub, #555);
  padding-left: 28px;
}
.exec-move-caution { color: #b45309; }
.exec-footnote {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  line-height: 1.55;
}

/* === 카드 B: 체질 요약 === */
.dash-body-key {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-dark, #3a5a3e);
  margin: 0 0 0.3rem;
}
.dash-body-quote {
  font-size: 0.9rem;
  color: var(--text, #2b2b2b);
  font-style: italic;
  margin: 0 0 0.9rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--gold, #c4a76c);
  line-height: 1.55;
}
.dash-body-evidence, .dash-body-full {
  margin-top: 0.6rem;
  background: var(--warm, #faf6ec);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.dash-body-evidence summary, .dash-body-full summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark, #3a5a3e);
  list-style: none;
}
.dash-body-evidence summary::-webkit-details-marker,
.dash-body-full summary::-webkit-details-marker { display: none; }
.dash-body-evidence summary::before,
.dash-body-full summary::before { content: '▸ '; }
.dash-body-evidence[open] summary::before,
.dash-body-full[open] summary::before { content: '▾ '; }
/* v73: summary 없이 div로 렌더되는 팔자 읽기 래퍼 */
.dash-body-open {
  padding: 0.5rem 0.1rem 0.2rem;
}
.dash-body-open > #saju-deep-reading { padding-top: 0.2rem; }
.cred-pending {
  font-size: 0.83rem;
  color: var(--muted, #4b5563);
  line-height: 1.55;
  padding: 0.5rem;
  background: #fff;
  border-radius: 6px;
  margin: 0.5rem 0 0;
}
/* Step 4: 근거 펼쳐보기 콘텐츠 */
.cred-summary {
  font-size: 0.85rem;
  color: var(--text, #2b2b2b);
  line-height: 1.6;
  margin: 0.3rem 0 0.6rem;
}
.cred-badges { list-style: none; padding: 0; margin: 0 0 0.7rem; }
.cred-badges li {
  font-size: 0.8rem;
  padding: 0.35rem 0;
  color: var(--text-sub, #555);
  line-height: 1.55;
  border-bottom: 1px dashed var(--border, #e4dfd3);
}
.cred-badges li:last-child { border-bottom: 0; }
.cred-badges li .cred-strong,
.cred-badges li .cred-mid,
.cred-badges li .cred-weak { margin-right: 0.45rem; }
.cred-full-link { margin: 0.5rem 0 0; font-size: 0.82rem; }
.cred-jump {
  color: var(--accent-dark, #3a5a3e);
  font-weight: 600;
  text-decoration: none;
}
.cred-jump:hover { text-decoration: underline; }

/* === 카드 C: 이번 주 === */
.dash-week-sub {
  font-size: 0.83rem;
  color: var(--text-sub, #555);
  margin: 0 0 0.7rem;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.4rem;
}
.week-cell {
  background: var(--int-0);
  border-radius: 10px;
  padding: 0.5rem 0.2rem 0.4rem;
  text-align: center;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  color: var(--int-text-light);
  transition: transform 0.15s;
}
.week-cell.today { outline: 2px solid var(--today-ring); outline-offset: -2px; }
.week-cell .wc-day { font-size: 0.72rem; color: var(--muted, #4b5563); font-weight: 700; }
.week-cell .wc-icon { font-size: 18px; line-height: 1; }
.week-cell .wc-time { font-size: 0.66rem; opacity: 0.85; word-break: keep-all; }
.week-cell[data-int="1"] { background: var(--int-1); }
.week-cell[data-int="2"] { background: var(--int-2); }
/* int-3는 배경이 밝은 파랑이라 어두운 글자, int-4/5는 짙은 파랑이라 흰 글자 */
.week-cell[data-int="3"] { background: var(--int-3); color: var(--int-text-light); }
.week-cell[data-int="3"] .wc-day,
.week-cell[data-int="3"] .wc-time { color: var(--int-text-light); opacity: 1; }
.week-cell[data-int="4"] { background: var(--int-4); color: var(--int-text-dark); }
.week-cell[data-int="5"] { background: var(--int-5); color: var(--int-text-dark); }
.week-cell[data-int="4"] .wc-day,
.week-cell[data-int="5"] .wc-day { color: rgba(255,255,255,0.92); }
.week-cell[data-rest="true"] { background: var(--int-0); color: var(--muted); }
.week-cell[data-rest="true"] .wc-time { color: var(--muted); }

.dash-week-month { margin-top: 0.6rem; background: var(--warm, #faf6ec); border-radius: 10px; padding: 0.6rem 0.9rem; }
.dash-week-month summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--accent-dark, #3a5a3e); list-style: none; }
.dash-week-month summary::-webkit-details-marker { display: none; }
.dash-week-month summary::before { content: '▸ '; }
.dash-week-month[open] summary::before { content: '▾ '; }

.month-grid { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 4px; }
.month-week { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 3px; align-items: center; }
.month-week-label { font-size: 0.72rem; color: var(--muted, #4b5563); font-weight: 600; }
.month-cell {
  height: 24px;
  border-radius: 5px;
  background: var(--int-0);
}
.month-cell[data-int="1"] { background: var(--int-1); }
.month-cell[data-int="2"] { background: var(--int-2); }
.month-cell[data-int="3"] { background: var(--int-3); }
.month-cell[data-int="4"] { background: var(--int-4); }
.month-cell[data-int="5"] { background: var(--int-5); }
.month-cell.rotation { outline: 2px dashed var(--gold, #c4a76c); outline-offset: -2px; }
.month-note {
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

/* === 모바일 대응 === */
@media (max-width: 600px) {
  .dash-card { padding: 1rem 0.85rem; margin-left: 0.5rem; margin-right: 0.5rem; }
  .dash-greeting { font-size: 1.2rem; }
  .today-sport { font-size: 1.15rem; }
  .today-icon { width: 42px; height: 42px; font-size: 24px; }
  .week-cell { min-height: 66px; padding: 0.4rem 0.15rem 0.3rem; }
  .week-cell .wc-day { font-size: 0.68rem; }
  .week-cell .wc-icon { font-size: 16px; }
  .week-cell .wc-time { font-size: 0.6rem; }
  .month-week { grid-template-columns: 28px repeat(7, 1fr); }
  .month-cell { height: 20px; }
  .exec-move-form, .exec-move-caution { padding-left: 0; }
}

/* ============================================================
   Step 4: Credibility 앵커 섹션 (결과 페이지 하단)
   ============================================================ */
/* v92 매핑 가이드 #5: credibility-anchor 격하 — 큰 자문진 카드 → 더 미니멀한 details 1줄 */
.rx-credibility-anchor {
  max-width: 720px;
  margin: 1.2rem auto;
  padding: 0.9rem 1.1rem;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  scroll-margin-top: 20px;
}
.rx-credibility-anchor h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text, #2b2b2b);
}
.cred-anchor-intro {
  font-size: 0.88rem;
  color: var(--text-sub, #555);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.cred-anchor-intro strong { color: var(--accent-dark, #3a5a3e); }
.cred-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.cred-steps > li {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--border, #e4dfd3);
}
.cred-steps > li:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-dark, #3a5a3e);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text, #2b2b2b);
  margin-bottom: 0.25rem;
}
.step-detail {
  font-size: 0.82rem;
  color: var(--text-sub, #555);
  line-height: 1.55;
  word-break: keep-all;
}
.step-detail code {
  background: var(--warm, #faf6ec);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.step-note {
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  margin: 0.4rem 0 0;
  line-height: 1.55;
}
.cred-elem-dist {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}
.cred-elem-dist li {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.82rem;
}
.cred-elem-dist .elem-name { font-weight: 600; color: var(--accent-dark, #3a5a3e); }
.cred-elem-dist .elem-bar {
  display: block;
  height: 8px;
  background: var(--warm, #faf6ec);
  border-radius: 4px;
  overflow: hidden;
}
.cred-elem-dist .elem-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #6b8f71), var(--accent-dark, #3a5a3e));
  border-radius: 4px;
}
.cred-elem-dist .elem-pct {
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  text-align: right;
  white-space: nowrap;
}
.cred-formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: var(--warm, #faf6ec);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin: 0.4rem 0 0.5rem;
  white-space: pre-wrap;
  color: var(--text, #2b2b2b);
  line-height: 1.6;
}
.cred-mapping-table {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  background: var(--warm, #faf6ec);
  border-radius: 10px;
}
.cred-mapping-table summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-dark, #3a5a3e);
  list-style: none;
  /* QW5: 44px 터치 타겟 */
  min-height: 44px;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
}
.cred-mapping-table summary::-webkit-details-marker { display: none; }
.cred-mapping-table summary::before { content: '▸ '; }
.cred-mapping-table[open] summary::before { content: '▾ '; }
/* v75 cleanup: cred-advisor-card / advisor-title / advisor-body 제거 (자문진 카드 삭제됨) */
.cred-limits {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: var(--text-sub, #555);
  line-height: 1.6;
  border-top: 1px dashed var(--border, #e4dfd3);
  padding-top: 0.9rem;
  word-break: keep-all;
}
.cred-limits strong { color: #b45309; }

/* ============================================================
   Step 4: 리뷰 수집 폼
   ============================================================ */
.rx-review {
  max-width: 720px;
  margin: 1.2rem auto var(--card-gap);
  padding: var(--pad-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.review-hero h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--text, #2b2b2b);
}
.review-transparency {
  font-size: 0.82rem;
  color: var(--text-sub, #555);
  line-height: 1.55;
  margin: 0 0 0.9rem;
}
.review-transparency strong { color: var(--accent-dark, #3a5a3e); }
.review-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0.8rem;
}
.review-form legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #2b2b2b);
  padding: 0;
  margin-bottom: 0.5rem;
}
.review-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}
.review-scale label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  /* QW5: 44px 터치 타겟 + 가독성 */
  min-height: 44px;
  padding: 0.3rem 0.5rem;
  font-size: 0.92rem;
  color: var(--text-sub, #555);
  cursor: pointer;
}
.review-scale label input { min-height: auto; transform: scale(1.15); }
.review-scale input[type="radio"] {
  accent-color: var(--accent, #6b8f71);
}
.review-text, .review-email {
  display: block;
  margin: 0.7rem 0;
}
.review-text > span, .review-email > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #2b2b2b);
  margin-bottom: 0.3rem;
}
.review-text textarea,
.review-email input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border, #e4dfd3);
  border-radius: 8px;
  font-size: 0.87rem;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}
.review-email small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted, #4b5563);
  margin-top: 0.3rem;
}
.review-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent-dark, #3a5a3e);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.4rem;
}
.review-submit:hover { background: var(--accent, #6b8f71); }
.review-privacy {
  font-size: 0.76rem;
  color: var(--muted, #4b5563);
  margin: 0.6rem 0 0;
  line-height: 1.55;
}
.review-done {
  padding: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark, #3a5a3e);
  background: var(--accent-light, #f2efe7);
  border-radius: 10px;
  margin: 0;
}

@media (max-width: 600px) {
  .rx-credibility-anchor, .rx-review { margin-left: 0.5rem; margin-right: 0.5rem; padding-left: 1rem; padding-right: 1rem; }
  .cred-elem-dist li { grid-template-columns: 52px 1fr 68px; font-size: 0.78rem; }
}

/* ============================================================
   IA v68: "기본 사주 → 운동 해석 → 운동 실행 → 꼬리" 4구역
   ============================================================ */
#dashboard-top, #dashboard-bottom, #rx-sports, #rx-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
#rx-sports { margin-top: 0.6rem; }
#dashboard-bottom { margin-top: 0.4rem; }
#rx-doc { margin-top: 1.2rem; }

/* credibility 앵커 · 리뷰 수집 — 공통 접힘 스타일 */
.cred-anchor-fold > summary,
.review-fold > summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #2b2b2b);
  padding: 0.4rem 0.2rem;
}
.cred-anchor-fold > summary::-webkit-details-marker,
.review-fold > summary::-webkit-details-marker { display: none; }
.cred-anchor-fold > summary::before,
.review-fold > summary::before { content: '▸ '; color: var(--accent-dark, #3a5a3e); }
.cred-anchor-fold[open] > summary::before,
.review-fold[open] > summary::before { content: '▾ '; }
.cred-anchor-title, .review-title { vertical-align: middle; }
.cred-anchor-fold > summary:hover,
.review-fold > summary:hover { color: var(--accent-dark, #3a5a3e); }
/* 접힘 열렸을 때 내부 여백 */
.cred-anchor-fold[open] { padding-top: 0.4rem; }
.review-fold[open] { padding-top: 0.4rem; }

/* 결제 유도 카드 (rx-sports 맨 앞) */
.paywall-card {
  max-width: 720px;
  margin: 0.2rem auto var(--card-gap);
  padding: var(--pad-md);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--surface) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.paywall-card .paywall-eyebrow {
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  margin: 0 0 0.6rem;
  letter-spacing: 0.2px;
}
.paywall-card .paywall-methods {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted, #4b5563);
}
.paywall-card .paywall-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text, #2b2b2b);
  margin: 0 0 0.7rem;
  letter-spacing: -0.3px;
}
.paywall-card .paywall-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.7rem;
  display: grid;
  gap: 0.4rem;
}
.paywall-card .paywall-list li {
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.55);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text, #2b2b2b);
  line-height: 1.4;
}
.paywall-card .paywall-extras {
  margin: 0.4rem 0 0.9rem;
  font-size: 0.82rem;
  color: var(--muted, #4b5563);
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-top: 1px dashed var(--gold);
  padding-top: 0.7rem;
}
.paywall-card .paywall-vision {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--muted, #4b5563);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* ============================================================
   운동 궁합 카드 (9:16, 1080×1920) — 인스타 스토리·카톡 공유용
   off-screen 캡처 전용. saveShareCard가 잠시 visible로 만들고 html2canvas로 캡처.
============================================================ */
.share-card-printable {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1080px;
  height: 1920px;
  background: linear-gradient(135deg, #fffdf8 0%, #faf6ec 100%);
  font-family: 'Pretendard', -apple-system, sans-serif;
  color: #2b2b2b;
  padding: 80px 60px;
  box-sizing: border-box;
  pointer-events: none;
}
.share-card-printable .sc-frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 70px 60px;
  background: #fff;
  border-radius: 40px;
  border: 3px solid #d4a93c;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  box-sizing: border-box;
}
.share-card-printable .sc-header { text-align: center; }
.share-card-printable .sc-eyebrow {
  font-size: 36px;
  color: #d4a93c;
  letter-spacing: 3px;
  margin: 0 0 24px;
  font-weight: 700;
}
.share-card-printable .sc-title {
  font-size: 64px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -1px;
}
.share-card-printable .sc-main {
  text-align: center;
  padding: 40px 0;
}
.share-card-printable .sc-sport-emoji {
  font-size: 220px;
  margin: 0 0 20px;
  line-height: 1;
}
.share-card-printable .sc-sport-name {
  font-size: 108px;
  font-weight: 800;
  margin: 0 0 30px;
  font-family: 'Nanum Myeongjo', serif;
  letter-spacing: -1px;
}
.share-card-printable .sc-persona {
  font-size: 42px;
  color: #6b6b6b;
  margin: 0;
  line-height: 1.4;
}
.share-card-printable .sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 30px 0;
}
.share-card-printable .sc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: #faf6ec;
  border-radius: 24px;
  text-align: center;
}
.share-card-printable .sc-item-wide {
  grid-column: 1 / -1;
}
.share-card-printable .sc-ico {
  font-size: 56px;
  margin-bottom: 12px;
}
.share-card-printable .sc-label {
  font-size: 28px;
  color: #8a8a8a;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.share-card-printable .sc-val {
  font-size: 36px;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.3;
}
.share-card-printable .sc-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 2px dashed #d4a93c;
}
.share-card-printable .sc-brand {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #2b2b2b;
}
.share-card-printable .sc-url {
  font-size: 32px;
  color: #d4a93c;
  margin: 0;
  letter-spacing: 1px;
  font-weight: 600;
}

/* 저장 버튼 보조 스타일 */
.save-primary-alt {
  background: transparent;
  color: var(--text, #2b2b2b);
  border: 1.5px solid var(--gold, #d4a93c);
  margin-top: 0.5rem;
}

/* 휴식과 운동 빈도 accordion 내부 (이번주 캘린더 + 과훈련 경고) */
.rest-freq-summary {
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.8rem;
  background: var(--warm, #faf6ec);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text, #2b2b2b);
  line-height: 1.55;
}
.rest-freq-summary strong { color: var(--accent-dark, #3a5a3e); }
/* rx-continuity 내부 week-grid는 dash-card 없이도 정상 표시 */
#rx-sports .accordion .week-grid { margin: 0.4rem 0 0.6rem; }
#rx-sports .accordion .dash-week-month {
  margin: 0.6rem 0 0.8rem;
  background: var(--warm, #faf6ec);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}
#rx-sports .accordion .rx-overtraining {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #fff7ed;
  border-left: 3px solid #b45309;
  border-radius: 0 10px 10px 0;
}
#rx-sports .accordion .rx-overtraining .section-key {
  color: #b45309;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* v74: 휴식과 운동 빈도 하위 블록 (v75 토큰화, v79 시각 완화) */
/* 카드형 배경·여백 제거 → 얇은 상단 구분선으로 대체해 흐름감 강화 */
#rx-sports .accordion .rest-block {
  margin-top: 1.1rem;
  padding: 0.9rem 0 0;
  background: transparent;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
}
#rx-sports .accordion .rest-block:first-of-type {
  border-top: 0;
  padding-top: 0.4rem;
}
#rx-sports .accordion .rest-block h4 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.2px;
}
#rx-sports .accordion .rest-block ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}
#rx-sports .accordion .rest-block li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  padding: 0.25rem 0;
  word-break: keep-all;
}
#rx-sports .accordion .rest-block li strong { color: var(--accent-dark, #3a5a3e); }
#rx-sports .accordion .rest-block p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-sub, #555);
  margin: 0 0 0.4rem;
  word-break: keep-all;
}
#rx-sports .accordion .rest-active-list {
  padding: 0.4rem 0;
  font-size: var(--fs-body);
  text-align: center;
}
#rx-sports .accordion .rest-active-list strong { color: var(--accent-dark, #3a5a3e); }
#rx-sports .accordion .rest-note {
  font-size: 0.76rem;
  color: var(--muted, #4b5563);
  margin: 0.35rem 0 0;
}
/* 과훈련 경고 — 내부 details로 한번 더 접음 */
#rx-sports .accordion .rest-overtraining-fold {
  margin-top: var(--block-gap);
  padding: var(--pad-sm);
  background: var(--surface-warn);
  border-left: 3px solid var(--ink-warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
#rx-sports .accordion .rest-overtraining-fold > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
}
#rx-sports .accordion .rest-overtraining-fold > summary::-webkit-details-marker { display: none; }
#rx-sports .accordion .rest-overtraining-fold > summary::before { content: '▸ '; }
#rx-sports .accordion .rest-overtraining-fold[open] > summary::before { content: '▾ '; }
#rx-sports .accordion .rest-overtraining-fold .rx-overtraining {
  margin-top: 0.6rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#rx-sports .accordion .rest-overtraining-fold .rx-overtraining .section-key {
  display: none; /* 상위 summary가 대체 */
}

/* v74: closing-today — 카드 A 삽입 시 기존 상자 스타일 제거 */
.closing-today {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0.4rem 0 1rem;
}
.closing-today .dash-today {
  margin: 0;
}

/* ============================================================
   Closing — 고생 많았어요 + 오늘 바로 시작 + 근처 시설 찾기 (v71)
   ============================================================ */
.rx-closing-final {
  background: linear-gradient(135deg, var(--accent-light, #f2efe7) 0%, var(--warm, #faf6ec) 100%);
  border: 1px solid var(--accent, #6b8f71);
}
.closing-thanks {
  text-align: center;
  padding: 0.5rem 0.3rem 1rem;
  border-bottom: 1px dashed var(--accent, #6b8f71);
  margin-bottom: 1rem;
}
.closing-thanks p:first-child {
  font-size: 0.9rem;
  color: var(--muted, #4b5563);
  margin: 0 0 0.5rem;
}
.closing-thanks p:last-child {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text, #2b2b2b);
  margin: 0;
  word-break: keep-all;
}
.closing-thanks strong { color: var(--accent-dark, #3a5a3e); }
.closing-today, .closing-nearby {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--pad-md);
  margin-bottom: var(--block-gap);
  border: 1px solid var(--border);
}
.closing-today-label, .closing-nearby-label {
  margin: 0 0 0.4rem;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.3px;
}
.closing-today p:not(.closing-today-label) {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--text, #2b2b2b);
  line-height: 1.55;
  word-break: keep-all;
}
.closing-nearby p:not(.closing-nearby-label) {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--text-sub, #555);
  line-height: 1.55;
  word-break: keep-all;
}
.closing-cta-primary {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: var(--accent-dark, #3a5a3e);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.15s;
  margin-top: 0.8rem;
}

/* v75 cleanup: closing-hero 계열 제거 (v74에서 카드 A가 마무리로 이동하며 closing-hero는 대체됨) */
.closing-cta-primary:hover { transform: translateY(-1px); background: var(--accent, #6b8f71); }
.closing-nearby-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.closing-map-btn {
  display: block;
  padding: 0.7rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.15s;
}
.closing-map-btn:hover { transform: translateY(-1px); }
.closing-naver {
  background: #03c75a;
  color: #fff;
}
.closing-kakao {
  background: #fee500;
  color: #191600;
}
.closing-disclaimer {
  margin: 0.8rem 0 0;
  padding: 0.6rem 0.2rem 0;
  border-top: 1px dashed var(--border, #e4dfd3);
  font-size: 0.78rem;
  color: var(--muted, #4b5563);
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
}
#rx-doc .rx-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--pad-lg);
  margin-bottom: var(--card-gap);
  box-shadow: var(--shadow);
}
#rx-doc .accordion-group {
  max-width: 720px;
  margin: 0 0 var(--card-gap);
}
#rx-doc .accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
}
#rx-doc .accordion > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--text);
  list-style: none;
  padding: 0.2rem 0;
}
#rx-doc .accordion > summary::-webkit-details-marker { display: none; }
#rx-doc .accordion > summary::before { content: '▸ '; color: var(--accent-dark, #3a5a3e); }
#rx-doc .accordion[open] > summary::before { content: '▾ '; }
#rx-doc .accordion .rx-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.6rem 0 0;
  margin-bottom: 0;
}
.rx-overtraining .section-key {
  color: #b45309;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* 카드 B의 "사주 자세히 읽기" details 내부 본문 */
#saju-deep-reading { padding: 0.5rem 0.2rem 0; }
#saju-deep-reading .rx-header { margin-bottom: 0.8rem; }
#saju-deep-reading .rx-section { background: transparent; border: 0; box-shadow: none; padding: 0; margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  #rx-doc { padding: 0 0.4rem; margin-top: 0.8rem; }
  #rx-doc .rx-section, #rx-doc .accordion { padding: 0.8rem 0.9rem; }
}

/* ============================================================
   === 2차 개선 하네스 (2026-04-24) v79 ===
   visual-hierarchy-designer 스펙 (_workspace_refinement/02_visual_spec §4)
   append-only. 기존 규칙 수정 없음.
   ============================================================ */

/* --- 4-0. 신규 토큰 3개 --- */
:root {
  --chip-bg: rgba(107, 143, 113, 0.10);
  --chip-bg-active: rgba(107, 143, 113, 0.20);
  --tooltip-ink: #2a2a2a;
}

/* --- 4-1. 히어로 강화 (항목 3b) --- */
.rx-hero {
  padding: 1.5rem 1.2rem 1.8rem;
  box-shadow: var(--shadow-lg);
}
.rx-hero-title {
  font-size: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 720px) {
  .rx-hero { padding: 2rem 1.5rem; }
  .rx-hero-title { font-size: 2rem; }
}

/* --- 4-2. .rx-alt-card 축소 (항목 3b) --- */
.rx-alt-card {
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border);
}
.rx-alt-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.rx-alt-reason {
  font-size: 0.78rem;
  color: var(--muted);
}
.rx-alt-value { font-size: 0.75rem; }
@media (min-width: 720px) {
  .rx-alt-card { padding: 0.85rem 1rem; }
  .rx-alt-name { font-size: 1rem; }
  .rx-alt-reason { font-size: 0.82rem; }
}

/* --- 4-3. 3타일 (.rx-where-when-tiles / .rx-tile) (항목 2a) --- */
.rx-where-when-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--block-gap);
  margin: var(--card-gap) 0 1.4rem;
  min-width: 0;
}
@media (min-width: 720px) {
  .rx-where-when-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

.rx-tile {
  position: relative;
  padding: 0.9rem 1rem;
  padding-right: 3rem;
  min-height: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 0;
}

.rx-tile-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.rx-tile-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}
.rx-tile-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
  min-width: 0;
  word-break: keep-all;
}
.rx-tile-summary {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
}

.rx-tile-info-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rx-tile-info-btn:hover,
.rx-tile-info-btn:focus-visible {
  background: var(--warm-deep);
  color: var(--accent-dark);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.rx-tile-expand {
  margin-top: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: var(--warm);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-sub);
}
.rx-tile-expand[hidden] { display: none; }
.rx-tile-expand p + p { margin-top: 0.4rem; }

.rx-tile-aside-yangin {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.8rem;
  background: var(--warm);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-sub);
  word-break: keep-all;
}

@media (min-width: 720px) {
  .rx-tile-title { font-size: 1.05rem; }
  .rx-tile-summary { font-size: 0.9rem; }
  .rx-tile-expand { font-size: 0.85rem; }
}

/* --- 4-4. term-chip + term-tooltip --- */
.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  position: relative;
  padding: 0.15em 0.5em;
  font-size: 0.85em;
  font-weight: 500;
  background: var(--chip-bg);
  color: var(--accent-dark);
  border-radius: 6px;
  cursor: help;
  user-select: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.term-chip::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 10px;
}
.term-chip-icon {
  font-size: 0.8em;
  opacity: 0.7;
  line-height: 1;
}
.term-chip:focus-visible,
.term-chip[aria-expanded="true"] {
  background: var(--chip-bg-active);
  outline: 2px solid var(--today-ring);
  outline-offset: 2px;
}

.term-tooltip {
  position: absolute;
  z-index: 50;
  max-width: 16rem;
  padding: 0.6rem 0.8rem;
  background: var(--tooltip-ink);
  color: #f5f5f5;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.term-tooltip[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.term-tooltip[hidden] { display: none; }

/* --- 4-5. 카드 A 시간대 배지 (항목 2b) --- */
.dash-today-time-block {
  margin: 0.5rem 0 0.7rem;
}
.dash-today-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 28px;
  padding: 0.3rem 0.75rem;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}
.dash-today-time-icon {
  font-size: 0.9em;
  line-height: 1;
}
.dash-today-time-why {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  word-break: keep-all;
}
@media (min-width: 720px) {
  .dash-today-time-why { font-size: 0.85rem; }
}

/* 카드 B 일간 헤드라인 (한자 제거 후 풀이 한 문장만 — 명조 톤) */
.dash-stem-head {
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 0;
}
.dash-body-stem-headline {
  /* v90: 명조 제거 — 한국 사주 앱 표준은 Pretendard 굵은 검정 */
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--text);
  word-break: keep-all;
  letter-spacing: -0.3px;
}
.dash-stem-sub {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}
@media (min-width: 720px) {
  .dash-body-stem-headline { font-size: 1.5rem; }
  .dash-body-stem-headline .stem-char { font-size: 1.9rem; }
  .dash-body-stem-headline .stem-elem { font-size: 0.9rem; }
  .dash-stem-sub { font-size: 0.9rem; }
}

/* --- 4-7. 체력 슬라이더 접힘 (.rx-fit-collapsed) (항목 3a) --- */
.rx-fit-collapsed {
  margin: 1.2rem 0 0;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.rx-fit-collapsed-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-dark);
  list-style: none;
  user-select: none;
}
.rx-fit-collapsed-summary::-webkit-details-marker { display: none; }
.rx-fit-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: keep-all;
}
.rx-fit-summary-chevron {
  flex: 0 0 auto;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  color: var(--muted);
}
.rx-fit-collapsed[open] .rx-fit-summary-chevron {
  transform: rotate(180deg);
}
.rx-fit-collapsed-body {
  padding: 0.2rem 1rem 1.1rem;
}
.rx-fit-collapsed-body .rx-fitness-panel {
  margin-top: 0.4rem;
}
@media (min-width: 720px) {
  .rx-fit-collapsed-summary { font-size: 0.95rem; }
}

/* --- 4-7b. hour-unknown 체크박스 (항목 1) --- */
/* 시간 모름 박스 — 가장 헷갈리는 부분이라 배경/테두리로 구분 강조 */
.hour-unknown-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.7rem;
  padding: 0.7rem 0.85rem;
  margin-top: 0.7rem;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}
.hour-unknown-box input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent-dark);
  align-self: start;
  margin-top: 0.1rem;
}
.hour-unknown-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  align-self: center;
}
.hour-unknown-hint {
  grid-column: 2;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}
/* 체크 시 배경 약간 진해짐 */
.hour-unknown-box:has(input:checked) {
  background: var(--accent-light);
  border-color: rgba(107,143,113,0.35);
}

/* 제출 버튼 — hero CTA와 같은 톤·사이즈 */
.form-submit {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.2rem;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 22px rgba(58,90,62,0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.form-submit:hover {
  background: #2a4a2d;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(58,90,62,0.26);
}
.form-submit:active { transform: translateY(0); }

/* --- 4-8. 모션 절제 (prefers-reduced-motion) --- */
@media (prefers-reduced-motion: reduce) {
  .rx-tile-info-btn,
  .term-chip,
  .term-tooltip,
  .rx-fit-summary-chevron {
    transition: none;
  }
}

/* --- 4-9. 포커스 가시성 일반 가드 --- */
.rx-tile-info-btn:focus-visible,
.term-chip:focus-visible,
.rx-fit-collapsed-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- 4-10. 저작권 고지 (결과 페이지 푸터) --- */
.closing-copyright {
  margin: 1rem 0 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted, #4b5563);
  letter-spacing: 0.2px;
  opacity: 0.75;
}
