/*!
 * 온도(ONDO) W2 신규 화면 스타일 — 결제/풀리포트/궁합/캡처 맛보기
 * W1 design-system.css의 토큰·컴포넌트를 그대로 재사용하고, 여기서는 W2에서만 필요한
 * 신규 조각(착지 박스·밸런스 게이지·주간 히트맵·액션 태그·상품 선택 카드)만 추가한다.
 * (design-system.css / app.css는 수정하지 않음 — 증분 원칙)
 */

/* 그린 착지 박스 — 풀리포트 전 섹션 필수 종결 요소 (디자인 시스템 §6) */
.ondo-land {
  margin-top: 16px; padding: 11px 14px; background: var(--land-green-bg); border-radius: 10px;
  font-size: 12.5px; color: var(--land-green); font-weight: 600; line-height: 1.6;
}

/* 판정 카드 */
/* .ondo-hero가 가운데 정렬이므로 판정 블록만 왼쪽으로 되돌린다(헤드라인·신호와 축을 맞춤) */
.ondo-verdict-tag {
  display: block; width: fit-content; margin: 18px auto 0 0;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: var(--coral-text); background: var(--land-green-bg); background: #FFF1EA;
  border-radius: 999px; padding: 5px 10px;
}
.ondo-verdict-signals { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
/* 숫자 한 줄(row) + 그 숫자가 무슨 뜻인지 한 줄(n).
   숫자만 있으면 무료 티저와 구분이 안 된다 — 유료는 '해석까지'가 경계선이다. */
.ondo-verdict-signal {
  display: flex; flex-direction: column; gap: 5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; font-size: 12.5px;
  text-align: left;
}
.ondo-verdict-signal .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ondo-verdict-signal .k { color: var(--ink-3); }
.ondo-verdict-signal .v { font-weight: 800; color: var(--ink); white-space: nowrap; }
.ondo-verdict-signal .n { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.ondo-verdict-aligned {
  margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--ink-3);
  background: #FBFAF8; border-radius: 999px; padding: 7px 12px;
}
.ondo-paid-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #fff;
  background: var(--ink); border-radius: 999px; padding: 5px 11px; font-weight: 700;
}

/* 판정 카드 — 안심·재현성 배지 (일본 벤치마크: 상대 미통지 + 계산된 숫자 훅) */
.ondo-verdict-trust { display: flex; gap: 8px; margin-top: 12px; }
.ondo-verdict-trust span {
  flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--land-green);
  background: var(--land-green-bg); border-radius: 12px; padding: 9px 8px; line-height: 1.4;
}

/* 온도 추이 그래프 (변화 = 프리미엄 훅) */
.ondo-trend {
  margin-bottom: 18px; padding: 12px 12px 8px; background: #FBFAF8;
  border: 1px solid var(--line); border-radius: 14px;
}
.ondo-trend-head { font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; }
.ondo-trend-head b { color: var(--coral-text); }
.ondo-trend svg { display: block; overflow: visible; }
.ondo-trend-foot { font-size: 11px; color: var(--ink-3); margin-top: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.ondo-trend-foot b { color: var(--ink-2); font-weight: 800; }
/* 범례 — 실선(이동평균)과 점선(전/후반 평균)이 서로 다른 계산이라는 걸 명시(문장·그림 불일치 방지) */
.ondo-trend-foot .lg { display: block; margin-top: 3px; font-size: 10px; color: #9A958C; font-weight: 500; }

/* 섹션 카드 여백 폴리싱(가독성) */
.ondo-section .ondo-card { padding: 16px; }
.ondo-section .ondo-sec-title { margin-bottom: 3px; }

/* 시그널 카드(스탯 + 해석 + 착지) */
.ondo-sig-card .stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ondo-sig-card .stat .v { font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: var(--coral-text); }
.ondo-sig-card .stat .k { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ondo-sig-card p, .ondo-moment p { font-size: 13px; line-height: 1.82; color: var(--ink-2); margin: 0 0 12px; }
.ondo-sig-card p:last-of-type, .ondo-moment p:last-of-type { margin-bottom: 0; }

/* ⑩ 밸런스 게이지 */
.ondo-gauge { margin-top: 4px; margin-bottom: 18px; }
.ondo-gauge .bar {
  position: relative; height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, #FFD9D2 0%, #F1EEE9 50%, #FFD9D2 100%);
}
.ondo-gauge .mid { position: absolute; left: 50%; top: -3px; width: 2px; height: 18px; background: #C9CDD8; }
.ondo-gauge .dot {
  position: absolute; top: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(232, 80, 63, .4);
}
.ondo-gauge .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 8px; }

/* ⑨ 주간 리듬 히트맵 */
/* ⚠️ 열 개수는 WEEKDAYS_KO(7일: 월~일) + 행 라벨 1열 = 8열. repeat(6)이면 매 행이 한 칸씩
   밀려 계단 모양으로 깨진다(2026-07-26 발견·수정). 요일 배열을 바꾸면 이 숫자도 같이 바꿀 것. */
.ondo-hm { display: grid; grid-template-columns: 26px repeat(7, 1fr); gap: 4px; margin-top: 6px; margin-bottom: 18px; }
.ondo-hm .h { font-size: 10px; color: var(--ink-3); text-align: center; align-self: center; }
.ondo-hm .rowl { font-size: 10px; color: var(--ink-3); align-self: center; }
.ondo-hm .c { height: 24px; border-radius: 6px; background: #F1EEE9; }

/* 하기/참기 액션 태그 */
.ondo-act { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ondo-act:last-child { border-bottom: none; }
.ondo-act .tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; padding: 5px 9px; border-radius: 8px; margin-top: 1px; }
.ondo-act .tag.do { background: var(--land-green-bg); color: var(--land-green); }
.ondo-act .tag.dont { background: #FDF3F2; color: var(--coral-text); }
.ondo-act .body { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ondo-act .body .t { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.ondo-act .body .d { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.55; }

/* 온도를 올린 결정적 한마디 — 풀쿼트 강조 박스(섹션 히어로) */
.ondo-km-quote {
  position: relative; margin: 2px 0 16px; padding: 16px 16px 16px 20px;
  background: linear-gradient(180deg, #FFF3EF 0%, #FFF8F5 100%);
  border-left: 3px solid var(--coral); border-radius: 12px;
}
.ondo-km-quote .mark {
  position: absolute; left: 9px; top: 2px; font-size: 26px; color: var(--coral);
  opacity: .35; font-weight: 800; line-height: 1;
}
.ondo-km-quote .q {
  font-size: 15px; font-weight: 800; color: var(--coral-text); line-height: 1.55; letter-spacing: -.2px;
}
.ondo-km-quote .meta { margin-top: 7px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* 궁합 CTA — 가격 뒤 부가문구를 아랫줄로(가독성) */
.ondo-g-btn small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; opacity: .8; }

/* 카카오 채널 CRM 유도 */
.ondo-kakao-cta {
  margin: 22px 18px 0; background: #FFF8D6; border: 1px solid #FCEBA0; border-radius: 18px;
  padding: 16px 16px; text-align: center;
}
.ondo-kakao-cta p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.55; }
.ondo-kakao-btn {
  display: inline-block; background: #FEE500; color: #191919; font-size: 13.5px; font-weight: 800;
  padding: 11px 18px; border-radius: 12px; text-decoration: none;
}

/* ---------- 결제(상품 선택) 화면 ---------- */
.ondo-plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ondo-plan {
  border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface);
  cursor: pointer; text-align: left; width: 100%;
}
.ondo-plan.selected { border-color: var(--coral); background: #FFF6F0; }
.ondo-plan .row { display: flex; justify-content: space-between; align-items: center; }
.ondo-plan .name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ondo-plan .price { font-size: 15px; font-weight: 800; color: var(--coral-text); }
.ondo-plan .desc { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.ondo-plan .badge {
  display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--cta-bg); border-radius: 999px; padding: 2px 8px;
}
.ondo-paymethods { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ondo-paymethod {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; width: 100%; text-align: left;
}
.ondo-paymethod:hover { border-color: var(--coral); }
.ondo-refund-note { margin-top: 14px; font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.6; }

/* 토스페이먼츠 목(mock) 결제창 */
.ondo-mockpay-backdrop {
  position: fixed; inset: 0; background: rgba(30, 34, 48, .6); display: flex; align-items: center;
  justify-content: center; z-index: 200; padding: 20px;
}
.ondo-mockpay {
  background: var(--surface); border-radius: 20px; padding: 24px 22px; width: 100%; max-width: 360px; text-align: center;
}
.ondo-mockpay h4 { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.ondo-mockpay p { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }
.ondo-mockpay .amt { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }

/* ---------- 궁합 생년월일 입력 폼 ---------- */
.ondo-birth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.ondo-birth-person { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ondo-birth-person .label { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.ondo-birth-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.ondo-birth-row input {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px;
  background: var(--bg); text-align: center;
}
.ondo-birth-time-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.ondo-birth-time-row input { width: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.ondo-birth-unknown { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 궁합 리포트(나이트 테마) ---------- */
.ondo-gunghap-report {
  margin: 18px 18px 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 100% at 80% 0%, #4A4390 0%, var(--night-2) 35%, var(--night) 100%);
  color: #EFEAF8; padding: 24px 20px;
}
.ondo-gunghap-report .g-score { font-size: 40px; font-weight: 800; text-align: center; color: #fff; }
.ondo-gunghap-report .g-score span { font-size: 18px; color: var(--gold); }
.ondo-gunghap-report .g-cap { text-align: center; font-size: 11.5px; color: #AFA8D6; margin-top: 4px; }
.ondo-gunghap-report .g-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ondo-gunghap-report .g-note {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  padding: 10px 13px; font-size: 12.5px; color: #EFEAF8;
}
.ondo-gunghap-report .g-note b { color: var(--gold); }
.ondo-gunghap-report .g-body { font-size: 13px; color: var(--night-text); line-height: 1.7; margin-top: 16px; }
.ondo-g-land {
  margin-top: 14px; padding: 12px 14px; background: rgba(217, 179, 106, .14); border: 1px solid rgba(217, 179, 106, .3);
  border-radius: 12px; font-size: 12.5px; color: var(--gold); font-weight: 600; line-height: 1.6;
}

/* ---------- 궁합 리포트 v1 (g1-) ----------
 * 2026-07-26. 위 .ondo-gunghap-report 블록은 구버전(폴백)이며 v1은 g1- 네임스페이스를 쓴다.
 * ⚠️ word-break:keep-all은 design-system.css의 body에 이미 있다 — 여기서 재선언 금지.
 * ⚠️ .g1-elem의 repeat(5)는 gunghap.js ELEM_ORDER.length(5)와,
 *    .g1-pill4 .row의 repeat(4)는 pillarBlock의 vals.length(4)와 커플링돼 있다.
 *    한쪽만 바꾸면 에러 없이 대각선으로 줄바꿈된다.
 */
.g1-hero {
  margin: 16px 18px 0; border-radius: 22px; overflow: hidden; padding: 26px 20px 22px; color: #EFEAF8;
  background: radial-gradient(120% 100% at 78% 0%, #4A4390 0%, var(--night-2) 36%, var(--night) 100%);
  text-align: center;
}
.g1-hero .eyebrow { font-size: 10.5px; letter-spacing: 2.2px; color: var(--gold); font-weight: 800; }
.g1-hero .label { font-size: 31px; font-weight: 800; letter-spacing: -1.1px; margin-top: 12px; color: #fff; line-height: 1.25; }
.g1-hero .sub { font-size: 12.5px; color: #AFA8D6; margin-top: 9px; line-height: 1.6; }
.g1-hero .rare {
  display: inline-block; margin-top: 14px; background: rgba(217, 179, 106, .16);
  border: 1px solid rgba(217, 179, 106, .42); color: var(--gold); font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 7px 14px;
}
.g1-hero .scoreline {
  margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
}
.g1-hero .scoreline .n { font-size: 29px; font-weight: 800; color: #fff; }
.g1-hero .scoreline .u { font-size: 13px; color: var(--gold); font-weight: 700; }
.g1-hero .scoreline .t { font-size: 11.5px; color: #9A92C4; margin-left: 4px; }

.g1-sec { margin: 22px 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; }
.g1-sec .num { font-size: 10.5px; letter-spacing: 1.8px; font-weight: 800; color: var(--coral-text); }
.g1-sec h2 { font-size: 17.5px; line-height: 1.42; font-weight: 800; margin: 9px 0 0; letter-spacing: -.5px; }
.g1-sec p { font-size: 13.5px; line-height: 1.78; color: var(--ink-2); margin: 12px 0 0; }
.g1-sec p b { color: var(--ink); font-weight: 700; }
.g1-sec p.g1-note { font-size: 11.5px; line-height: 1.65; color: var(--ink-3); margin-top: 10px; }

.g1-land {
  margin-top: 15px; padding: 13px 14px; background: var(--land-green-bg); border: 1px solid #CFE9DC;
  border-radius: 13px; font-size: 13px; line-height: 1.65; color: var(--land-green); font-weight: 700;
}

.g1-cmp { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.g1-cmp .hd, .g1-cmp .rw { display: grid; grid-template-columns: 52px 1fr 1fr; }
.g1-cmp .hd { background: #F1EEE9; font-size: 10.5px; font-weight: 800; color: var(--ink-3); letter-spacing: -.2px; }
.g1-cmp .hd > div { padding: 9px 8px; text-align: center; }
.g1-cmp .rw { border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; }
.g1-cmp .rw > div { padding: 11px 8px; display: flex; align-items: center; }
.g1-cmp .ax { font-weight: 800; color: var(--ink); justify-content: center; font-size: 12px; background: #FAF8F6; }
.g1-cmp .sj { color: var(--ink-3); border-left: 1px solid var(--line); }
.g1-cmp .dt { color: var(--ink); font-weight: 700; border-left: 1px solid var(--line); }
.g1-cmp .dt em { font-style: normal; color: var(--coral-text); }

.g1-matchbar { margin-top: 11px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); }
.g1-matchbar .pips { display: flex; gap: 4px; flex: 0 0 auto; }
.g1-matchbar .pip { width: 22px; height: 6px; border-radius: 3px; background: #E3DFD8; }
.g1-matchbar .pip.on { background: var(--coral); }
.g1-matchbar b { color: var(--ink); font-weight: 800; }

.g1-calc { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FBFAF8; }
.g1-calc .r {
  display: grid; grid-template-columns: 1fr 46px; gap: 6px; padding: 11px 13px;
  border-top: 1px solid var(--line); font-size: 12.5px; align-items: center;
}
.g1-calc .r:first-child { border-top: none; }
.g1-calc .r .k { color: var(--ink-2); line-height: 1.45; }
.g1-calc .r .k small { display: block; color: var(--ink-3); font-size: 10.5px; margin-top: 3px; }
.g1-calc .r .v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.g1-calc .r .v.p { color: var(--land-green); }
.g1-calc .r .v.m { color: var(--coral-text); }
.g1-calc .r.base { background: #F3F0EC; }
.g1-calc .r.base .k { font-weight: 700; color: var(--ink); }
.g1-calc .r.tot { background: var(--night); color: #fff; }
.g1-calc .r.tot .k { color: #fff; font-weight: 800; }
.g1-calc .r.tot .v { color: var(--gold); font-size: 16px; }

.g1-pill4 { margin-top: 14px; }
.g1-pill4 .who { font-size: 11.5px; font-weight: 800; color: var(--ink-3); margin: 12px 0 6px; }
.g1-pill4 .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.g1-pill4 .col { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: center; padding: 8px 2px 9px; }
.g1-pill4 .col .t { font-size: 9.5px; color: var(--ink-3); font-weight: 700; }
.g1-pill4 .col .g { font-size: 19px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px; }
.g1-pill4 .col.hl { border-color: var(--night-2); background: #F4F2FB; }
.g1-pill4 .col.hl .g { color: var(--night-2); }

.g1-elem { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.g1-elem .e { text-align: center; }
.g1-elem .e .bar { height: 34px; display: flex; align-items: flex-end; justify-content: center; }
.g1-elem .e .bar i { display: block; width: 15px; border-radius: 4px 4px 0 0; background: var(--night-2); }
.g1-elem .e .bar i.z { background: #E3DFD8; height: 3px !important; }
.g1-elem .e .nm { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; font-weight: 700; }
.g1-elem .e .ct { font-size: 10px; color: var(--ink-3); }

/* ── 딥리포트 사전알림 카드 (2026-08-18) — 수요 검증용, 결제 없음 ──
 * 위치: 액션 섹션 착지 박스 바로 아래 · .g1-repro 위 (gunghap.js가 이 순서로 조립).
 * 색: 궁합 다크 팔레트(night) + 골드 보더/버튼. ⛔ 코럴 CTA 금지 —
 *     실결제 버튼과 색·어휘가 겹치면 "결제되는 줄" 알고 누른다. 골드 = 아직 안 열린 레이어.
 * 밝은 리포트 지면 위에 다크 블록 하나만 얹혀 시선을 잡는다(공유 카드 .g1-card와 같은 계열). */
.g1-deep {
  margin: 18px 18px 0; padding: 20px 18px 18px; border-radius: 20px;
  border: 1.5px solid var(--gold); color: #EFEAF8;
  background: radial-gradient(120% 100% at 82% 0%, #4A4390 0%, var(--night-2) 40%, var(--night) 100%);
}
.g1-deep .tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold);
  border: 1px solid rgba(217, 179, 106, .55); border-radius: 999px; padding: 4px 9px;
}
.g1-deep .ttl { font-size: 20px; font-weight: 800; letter-spacing: -.8px; line-height: 1.35; margin-top: 12px; color: #fff; }
.g1-deep .li { list-style: none; margin: 13px 0 0; padding: 0; }
.g1-deep .li li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.75; color: #C9C3E4; }
.g1-deep .li li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.g1-deep .li b { color: #fff; font-weight: 700; }
.g1-deep .ln {
  margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px; line-height: 1.65; color: #AFA8D6;
}
.g1-deep .pr { margin-top: 13px; }
.g1-deep .pr b { display: block; font-size: 19px; font-weight: 800; color: var(--gold); letter-spacing: -.3px; }
.g1-deep .pr span { display: block; margin-top: 3px; font-size: 11.5px; color: #9A92C4; }
.g1-deep .btn {
  display: block; margin-top: 14px; padding: 13px; border-radius: 13px; text-align: center;
  background: var(--gold); color: #241F45; font-size: 14px; font-weight: 800; letter-spacing: -.2px; text-decoration: none;
}
/* 사전 예약 버튼 아래 안심 한 줄(2026-08-18) — "지금은 결제되지 않아요"가 승격된 CTA의 오해를 막는다 */
.g1-deep .rs { margin-top: 8px; font-size: 11px; line-height: 1.5; color: #9A92C4; text-align: center; }

/* 10회 재계산 리마인더(2026-08-18) — 카드 바로 아래, 골드 소문구 + 인라인 버튼 */
.g1-recalc {
  margin: 10px 18px 0; padding: 11px 14px; border-radius: 12px;
  background: rgba(217, 179, 106, .10); border: 1px solid rgba(217, 179, 106, .35);
  font-size: 12px; line-height: 1.65; color: var(--gold);
}
.g1-recalc b { color: var(--gold); font-weight: 800; }
.g1-recalc button {
  display: inline-block; margin-left: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gold);
  background: transparent; color: var(--gold); font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer;
  white-space: nowrap;
}

.g1-repro {
  margin: 18px 18px 0; border: 1px dashed #C9C3B8; border-radius: 14px; padding: 13px 15px; background: #FBFAF8;
}
.g1-repro .t { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.g1-repro .d { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-top: 5px; }

.g1-sharewrap { margin: 22px 18px 0; }
.g1-sharewrap .cap { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-bottom: 10px; font-weight: 700; }
.g1-card {
  width: 100%; max-width: 360px; aspect-ratio: 360 / 450; margin: 0 auto; color: #EFEAF8;
  padding: 30px 26px 24px; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 75% 0%, #4A4390 0%, #3A356E 38%, #232048 100%);
}
.g1-card .cl { font-size: 15px; font-weight: 800; }
.g1-card .cl .deg { color: var(--gold); }
.g1-card .lb { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2; margin-top: auto; color: #fff; }
.g1-card .rr { margin-top: 14px; font-size: 14px; color: var(--gold); font-weight: 800; }
.g1-card .sc { margin-top: 8px; font-size: 12.5px; color: #AFA8D6; line-height: 1.6; }
.g1-card .ft { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 11px; color: #9A92C4; }

/* ---------- 캡처 맛보기(트랙 1) ---------- */
.ondo-capture-cta { text-align: center; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.ondo-capture-cta button {
  background: none; border: none; color: var(--coral-text); font-weight: 700; font-size: 12.5px;
  cursor: pointer; text-decoration: underline; padding: 4px;
}

/* ── 리포트 저장(PDF) — window.print() 경로(2026-07-27) ──
   화면 전용/인터랙티브 요소는 지면에서 제외하고, 차트·게이지 색이 인쇄에서 날아가지 않게 고정 */
@media print {
  .ondo-save-row, .ondo-kakao-cta, .ondo-gunghap, .ondo-cta-btn, .g1-deep { display: none !important; }
  body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== 재열람 보관함 카드 (2026-08-09 VOC) ===== */
.ondo-rekey-card{margin:14px 18px 4px; padding:16px 16px 14px; border-radius:16px;
  background:linear-gradient(160deg,#FFF9F2,#FFF3EE); border:1.5px solid #F3CDB9;}
.ondo-rekey-card .rk-title{font-size:14px; font-weight:800; color:#2A2E3A; letter-spacing:-.3px;}
.ondo-rekey-card .rk-sub{font-size:12px; color:#6B7080; line-height:1.55; margin-top:5px;}
.ondo-rekey-card .rk-copy{display:block; width:100%; margin-top:10px; padding:12px; border:0; border-radius:12px;
  background:#FF6B5A; color:#fff; font-size:13.5px; font-weight:800; letter-spacing:-.2px; cursor:pointer;}
.ondo-rekey-card .rk-copy.ok{background:#2FA36B;}
.ondo-rekey-card .rk-note{font-size:11px; color:#8B90A0; margin-top:7px; text-align:center;}
@media print{ .ondo-rekey-card{display:none;} }

/* ══ 네 기둥 리포트(2026-08-18 정식 오픈 · 8/18e 인포그래픽 리디자인) ══
 * 계산 레이어는 g1-sec(라이트 카드) 안 → 라이트 팔레트. 오행 색은 표시용 정적 룩업(계산 아님).
 * 오행 5색: 목 초록 / 화 코럴 / 토 황토 / 금 청회 / 수 남색 — 모두 흰 배경 위 4.5:1 이상. */
:root { --el-wood: #2E7D4F; --el-fire: #C94A3A; --el-earth: #A67C1F; --el-metal: #5E6577; --el-water: #2F5DA8; }
.e-wood { color: var(--el-wood); } .e-fire { color: var(--el-fire); } .e-earth { color: var(--el-earth); } .e-metal { color: var(--el-metal); } .e-water { color: var(--el-water); }

.dp-head h1 { display: flex; align-items: baseline; gap: 8px; }
.dp-head h1 .x { color: var(--gold); font-weight: 400; }
.dp-head p { font-size: 11px; letter-spacing: 1.6px; color: var(--ink-3); font-weight: 800; }

/* 히어로 — one_line + 3지표 + 기둥 스트립 */
.dp-hero .label { font-size: 27px; letter-spacing: -.9px; }
.dp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.dp-stats > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 6px 10px; }
.dp-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-stats b small { font-size: 12px; margin-left: 2px; color: var(--gold); }
.dp-stats b.p { color: #9FE0BE; } .dp-stats b.m { color: #FFB1A3; }
.dp-stats span { display: block; margin-top: 6px; font-size: 11px; color: #AFA8D6; }
.dp-strip { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.dp-strip span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #AFA8D6; font-weight: 700; }
.dp-strip span i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #5A5490; }
.dp-strip span.p i { background: #5BC48E; } .dp-strip span.m i { background: #FF8A78; } .dp-strip span.dim i { background: transparent; border: 1.5px dashed #5A5490; }
.dp-strip span.hl { color: var(--gold); } .dp-strip span.hl i { box-shadow: 0 0 0 3px rgba(217,179,106,.35); }
.dp-hero .rare { margin-top: 14px; }

/* 계산 ① 기둥 대조 카드 */
.dp-pcwrap { margin-top: 14px; }
.dp-pcnames { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--ink-3); padding: 0 4px 6px; }
.dp-pcnames span:first-child::before, .dp-pcnames span:last-child::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; vertical-align: 1px; }
.dp-pcnames span:first-child::before { background: var(--night-2); } .dp-pcnames span:last-child::after { background: var(--gold); }
.dp-pcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dp-pc { border: 1px solid #E5E0F2; border-radius: 14px; background: #FCFBFE; padding: 9px 4px 10px; text-align: center; }
.dp-pc.hl { border-color: var(--gold); background: linear-gradient(180deg, #FFFBF1, #FFF6E1); box-shadow: 0 0 0 2px rgba(217,179,106,.18); }
.dp-pc.dim { opacity: .55; }
.dp-pc .lb { font-size: 11.5px; font-weight: 800; color: var(--ink); }
.dp-pc.hl .lb { color: #9A6B12; }
.dp-pc .lb small { display: block; font-size: 9.5px; color: var(--ink-3); font-weight: 700; margin-top: 1px; }
.dp-pc .gz { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 8px; }
.dp-pc .gz span { font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: 1px; font-family: "Noto Serif KR", "Nanum Myeongjo", serif; }
.dp-pc .gz.dim span { color: #C8C3D6; font-size: 16px; }
.dp-pc .chips { display: flex; justify-content: center; gap: 4px; margin: 8px 0; padding: 6px 0; border-top: 1px dashed #E5E0F2; border-bottom: 1px dashed #E5E0F2; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; font-style: normal; }
.chip.p { background: #E3F5EC; color: var(--land-green); } .chip.m { background: #FDE6E1; color: var(--coral-text); }
.chip.n { background: #ECEAF6; color: var(--night-2); } .chip.z { background: #F1EEE9; color: #A9A39A; }
.dp-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.dp-legend span { display: inline-flex; align-items: center; gap: 4px; }
.dp-legend.el i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.dp-legend.el { margin-top: 6px; }
.dp-rel { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid #EFEBF7; border-radius: 12px; overflow: hidden; }
.dp-rel li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 8px 10px; font-size: 12px; border-top: 1px solid #EFEBF7; color: var(--ink-2); }
.dp-rel li:first-child { border-top: 0; }
.dp-rel li.hl { background: rgba(217,179,106,.12); }
.dp-rel .lb { flex: 0 0 34px; font-weight: 800; color: var(--ink); }
.dp-rel b { font-weight: 700; } .dp-rel b.p { color: var(--land-green); } .dp-rel b.m { color: var(--coral-text); } .dp-rel b.n { color: var(--night-2); }
.dp-rel .z { color: var(--ink-3); } .dp-rel .sep { color: #C8C3D6; }

/* 계산 ② 오행 흐름 막대 */
.dp-elwrap { margin-top: 14px; }
.dp-elkey { display: flex; gap: 14px; justify-content: flex-end; font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.dp-elkey i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.dp-elkey i.me { background: var(--night-2); } .dp-elkey i.you { background: var(--gold); }
.dp-els { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.dp-el { text-align: center; border-radius: 12px; padding: 8px 2px 8px; border: 1px solid transparent; }
.dp-el.on { background: #FCFBFE; border-color: #E5E0F2; }
.dp-el .bars { height: 48px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.dp-el .bars i { display: block; width: 14px; border-radius: 4px 4px 0 0; background: currentColor; opacity: .95; }
.dp-el .bars i.me { filter: none; } .dp-el .bars i.you { opacity: .5; }
.dp-el .bars i.z { background: #E3DFD8; color: #E3DFD8; opacity: 1; height: 3px !important; }
.dp-el .nm { font-size: 12px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.dp-el .nm span { font-size: 10px; color: var(--ink-3); margin-left: 2px; font-weight: 700; }
.dp-el .ct { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dp-el em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 5px; border-radius: 999px; }
.dp-el em.fill { background: #E3F5EC; color: var(--land-green); } .dp-el em.both { background: #ECEAF6; color: var(--night-2); } .dp-el em.void { background: #F1EEE9; color: #8B857C; }
.dp-flow { list-style: none; margin: 12px 0 0; padding: 0; }
.dp-flow li { position: relative; padding: 8px 0 8px 16px; font-size: 13px; line-height: 1.7; color: var(--ink-2); border-top: 1px dashed #E5E0F2; }
.dp-flow li:first-child { border-top: 0; }
.dp-flow li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.dp-flow b { color: var(--ink); }

/* 해석 레이어 — 6장 */
.dp-secwrap { margin-top: 26px; }
.dp-seclead { margin: 0 18px; padding: 0 2px; }
.dp-seclead .num { font-size: 10.5px; letter-spacing: 1.8px; font-weight: 800; color: var(--gold); }
.dp-seclead h2 { font-size: 19px; font-weight: 800; letter-spacing: -.6px; margin: 6px 0 0; line-height: 1.35; }
.dp-sec { margin: 14px 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 22px; }
.dp-sechd { display: flex; align-items: center; gap: 10px; }
.dp-sechd .no { font-size: 22px; font-weight: 800; color: var(--gold); letter-spacing: -.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-sechd .kk { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: 1.6px; font-weight: 800; color: var(--ink-3); }
.dp-sechd .kk i { font-style: normal; font-size: 12px; color: var(--night-2); }
.dp-sec h2 { font-size: 18px; line-height: 1.4; font-weight: 800; margin: 10px 0 0; letter-spacing: -.5px; }
.dp-sec p { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin: 12px 0 0; word-break: keep-all; }
.dp-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: dpst; }
.dp-steps li { position: relative; counter-increment: dpst; padding: 10px 0 10px 36px; font-size: 14px; line-height: 1.8; color: var(--ink-2); border-top: 1px dashed var(--line); word-break: keep-all; }
.dp-steps li:first-child { border-top: 0; padding-top: 2px; }
.dp-steps li::before { content: counter(dpst); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: var(--gold); font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.dp-steps li:first-child::before { top: 2px; }
.dp-sec.close { background: linear-gradient(180deg, #FFFBF1, #FFF5DE); border-color: #EBD9AE; }
.dp-sec.close h2 { color: #7A5410; }
.dp-actions .dp-backlink { display: block; margin: 12px auto 0; background: none; border: 0; font: inherit; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.g1-repro.dp-card { margin-top: 22px; }

/* 인쇄 — 브라우저 머리글·바닥글(토큰 URL 노출) 제거 + 카드 단위 페이지 분할 */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .ondo-app { max-width: none !important; padding: 10mm 9mm 6mm !important; min-height: 0 !important; }
  .ondo-foot { margin-top: 10px !important; padding-bottom: 0 !important; }
  .ondo-top, .ondo-actions, .ondo-cs-header, .ondo-cs-float, .dp-actions, .g1-sharewrap .cap, .g1-recalc { display: none !important; }
  /* 8/19b: 큰 계산 카드는 안에서 끊기게 두고(1쪽 하단 공백 방지), 표·막대·섹션 같은 단위만 쪼개지지 않게 */
  .g1-hero, .g1-sec:not(.dp-card), .dp-sec, .g1-card, .dp-pcwrap, .dp-rel, .dp-elwrap, .dp-flow, .g1-repro { break-inside: avoid; page-break-inside: avoid; }
  .dp-sec { break-inside: auto; page-break-inside: auto; }
  .dp-sec h2, .dp-sechd { break-after: avoid; page-break-after: avoid; }
  .dp-sec p, .dp-steps li { orphans: 3; widows: 3; }
  .dp-secwrap { break-before: auto; }
  .ondo-foot { break-inside: avoid; }
}
