/* 평리재 — 고객용 사이트. 디자인 원본: design/Saju Premium Service.dc.html (데스크톱), Saju Premium Mobile.dc.html (≤860px) */
:root {
  color-scheme: light; /* 라이트 전용 디자인 — OS 다크모드가 네이티브 select 팝업을 강제 다크테마해 글자가 배경에 덮이는 버그 방지 */
  --ink: #252D2B; --ink-2: #334155; --ink-3: #475569; --muted: #64748B; --muted-2: #94A3B8;
  --accent: #956348; --accent-soft: #D9A98C; --accent-pale: #E0BFA6;
  --line: #E3E8EC; --line-soft: #F1F5F8; --bg-alt: #EDF2F5; --bg-soft: #F7F9FA; --disabled: #CBD5E1;
  --paper: #FBFAF7; --paper-line: #E7E2D8; --paper-ink: #8A7B5F; --paper-rule: #C9BFAE; --paper-text: #5C6660;
  --el-wood: #5E7A63; --el-fire: #956348; --el-earth: #8A7B5F; --el-metal: #7E8A87; --el-water: #4A5A61;
  --serif: 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Noto Sans KR', sans-serif;
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 10px 28px rgba(15,23,42,.06);
  --shadow-paper: 0 1px 2px rgba(15,23,42,.05), 0 8px 22px rgba(15,23,42,.06);
}
html, body { margin: 0; padding: 0; background: #FFFFFF; overflow-x: clip; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; word-break: keep-all; }
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
/* 이동 요소는 실제 <a href>(중클릭·새 탭 가능). 버튼과 같은 모양을 유지 */
a[data-act], a[data-act]:hover { text-decoration: none; }
a.btn, a.tab-btn { display: inline-flex; align-items: center; justify-content: center; }
a.back, a.nav-btn, a.btn-link, a.btn-ghost { display: inline-block; }
a.btn-ghost { text-decoration: underline; }
a.brand { display: flex; }
a.brand:hover { color: var(--ink); }
p { text-wrap: pretty; }
.serif { font-family: var(--serif); }
.hide { display: none !important; }

@keyframes sjfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sjrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sjspin { to { transform: rotate(360deg); } }
@keyframes sjbreathe { 0%, 100% { opacity: .10; transform: scale(1); } 50% { opacity: .20; transform: scale(1.06); } }
@keyframes sjpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.fade { animation: sjfade .35s ease both; }
/* 2026-10-22 버그: render() 는 상태가 바뀔 때마다 #app 을 통째로 새 DOM으로 바꾼다(부팅 중 여러 번 · 방문자별 할인 타이머 RPC가
   늦게 도착하면 첫 화면이 이미 자리잡은 뒤에도 한 번 더). 그때마다 .fade·.hero-m 내부 요소들의 입장 애니메이션이 "새 노드"에서
   처음부터 다시 재생돼 히어로/화면 전체가 깜박이는 것처럼 보였다(모바일·PC 공통 — fade는 모든 화면 최상위 래퍼에 쓰인다).
   app.js 가 최초 1회 입장 애니메이션이 끝난 뒤 <html> 에 app-ready 를 붙인다(#app 은 교체돼도 html 은 안 바뀌므로 안전하게 기억됨) —
   그 뒤의 재렌더에서는 애니메이션을 꺼서(기본값 opacity:1·transform:none 이 "both"의 끝 상태와 같아 끊김 없이 바로 보인다) 재생을 막는다. */
html.app-ready .fade,
html.app-ready .hero-m .badge,
html.app-ready .hero-m h1,
html.app-ready .hero-m .hero-m-h1,
html.app-ready .hero-m .four,
html.app-ready .hero-m p,
html.app-ready .hero-glyphs,
html.app-ready .hero-detail,
html.app-ready .hero-m-rel { animation: none; }

/* ---------- 공통 레이아웃 ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 28px 20px 80px; }
.narrow-860 { max-width: 860px; margin: 0 auto; padding: 44px 20px 80px; }
.narrow-760 { max-width: 760px; margin: 0 auto; padding: 44px 20px 80px; }
.narrow-600 { max-width: 600px; margin: 0 auto; padding: 60px 20px 80px; }
.narrow-580 { max-width: 580px; margin: 0 auto; padding: 80px 20px; }
.narrow-560 { max-width: 560px; margin: 0 auto; padding: 70px 20px; }
.narrow-520 { max-width: 520px; margin: 0 auto; padding: 60px 20px 80px; }
.section { background: #FFFFFF; border-top: 1px solid var(--line); }
.section > .wrap { padding-top: 80px; padding-bottom: 80px; }
.section.compact > .wrap { padding-top: 64px; padding-bottom: 64px; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #FFFFFF; border-top: none; }
.h1 { font-size: clamp(32px, 4.6vw, 44px); line-height: 1.32; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
.h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.35; }
.lead { color: var(--ink-3); font-size: 16px; margin: 0 0 40px; max-width: 640px; line-height: 1.75; }
.eyebrow { font-size: 13.5px; color: var(--accent); margin-bottom: 12px; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; }
.card-pad { padding: 26px 24px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.grid { display: grid; gap: 16px; }
.grid-auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.grid-auto-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-auto-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-auto-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.list-lines { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list-lines > div { background: #FFFFFF; }
.bullet { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.bullet > span:first-child { color: var(--accent); flex: none; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.kv > span:first-child { color: var(--muted); flex: none; }
.kv > span:last-child { text-align: right; }
.kv.strong > span:last-child { font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.back { background: none; border: none; color: var(--ink-3); font-size: 14.5px; padding: 6px 0; }
.back:hover { color: var(--ink); }
.note-accent { background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.src { font-size: 12px; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.src .tag { font-family: var(--serif); color: var(--accent); font-size: 12.5px; }
.src .key { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 11.5px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #161C1B; border-color: #161C1B; color: #FFFFFF; }
.btn-primary:disabled { background: var(--disabled); border-color: var(--disabled); color: #FFFFFF; }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #E8EDF0; border-color: #E8EDF0; color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: #FFFFFF; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #FFFFFF; color: #FFFFFF; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-xl { height: 56px; font-size: 16.5px; }
/* 궁합·재회 랜딩 버튼(docs/compat_reunion_prd.md §3 "0. 랜딩 — 진입 버튼") — .btn/.btn-lg 가 이미 높이52·보더#E3E8EC(var(--line))·radius8·hover시 accent 를 준다. */
.btn-rel { font-size: 15.5px; gap: 10px; }
.btn-rel .han { font-family: var(--serif); color: var(--accent); font-size: 17px; font-style: normal; }
.btn-md { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: none; border: none; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; height: auto; font-weight: 400; }
.btn-ghost:hover { color: var(--accent); }
.btn-link { background: none; border: none; padding: 0; color: var(--accent); font-size: 13.5px; height: auto; font-weight: 400; }

/* 선택형 버튼 (seg / chip / option) */
.seg { display: flex; gap: 8px; }
.opt { flex: 1; height: 46px; border-radius: 8px; font-size: 14.5px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); transition: background .15s, border-color .15s; }
.opt.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.chip { height: 46px; padding: 0 18px; border-radius: 8px; font-size: 14.5px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); }
.chip.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.opt-row { text-align: left; min-height: 50px; padding: 14px 16px; border-radius: 8px; font-size: 15px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.opt-row.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.opt-row .mark { font-size: 12px; color: var(--muted); white-space: nowrap; }
.opt-row.on .mark { color: var(--accent-soft); }
.example-btn { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-3); font-size: 13.5px; text-align: left; }
.example-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 폼 ---------- */
.label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.label .hint { font-weight: 400; color: var(--muted); }
.input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; font-size: 15.5px; color: var(--ink); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(149,99,72,.12); }
.input:disabled { background: var(--line-soft); }
textarea.input { height: auto; padding: 16px; line-height: 1.7; resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-3); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.input-err { border-color: #D9A396; }
/* 이메일 + 약관 동의(필수 1 + 선택 1) — 무료/궁합/재회 1단계 공용(design_handoff_email_consent). 2026-10-09 */
.mk-wrap { border-top: 1px solid var(--line); padding-top: 26px; margin: -10px 0 34px; }
.mk-err { font-size: 12.5px; color: #B4442F; margin: 0; line-height: 1.6; }
.mk-err-accent { color: var(--accent); }
.mk-box { margin-top: 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s; }
.mk-box.all-on { border-color: #D9C3B4; }
.mk-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; }
.mk-all { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }
.mk-chk { flex: none; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1.5px solid var(--disabled); background: #FFFFFF; color: #FFFFFF; font-weight: 700; transition: background .15s, border-color .15s; }
.mk-chk.on { border-color: var(--accent); background: var(--accent); }
.mk-chk22 { width: 22px; height: 22px; font-size: 13px; }
.mk-chk18 { width: 18px; height: 18px; border-radius: 5px; font-size: 11px; }
.mk-all-t { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.mk-all-d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.mk-toggle { width: 36px; height: 36px; flex: none; border: none; background: none; border-radius: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; cursor: pointer; }
.mk-toggle:hover { background: #F1F4F6; }
.mk-toggle.open { transform: rotate(180deg); }
.mk-panel { border-top: 1px solid #EEF1F3; background: #FAFBFC; padding: 6px 16px 12px; }
.mk-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.mk-item-row { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }
.mk-tag { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.mk-tag b { font-weight: 600; margin-right: 2px; }
.mk-tag b.mk-req { color: var(--accent); }
.mk-tag b.mk-opt { color: var(--muted); }
.mk-view { flex: none; background: none; border: none; padding: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.mk-desc { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 0 0 8px; }
.mk-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 4px 0 0; }
/* 결제 동의 안내(체크박스 없이 자동 동의 · 2026-09-25) · 사업자 정보 한 줄 · 접수 폼 */
.consent-note { color: var(--muted); }
.consent-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.biz-line { font-size: 12.5px; line-height: 1.9; color: var(--muted); word-break: keep-all; }
.footer-biz { border-top: 1px solid var(--line); }
.footer-biz div { max-width: 1160px; margin: 0 auto; padding: 14px 20px; font-size: 12px; color: var(--muted); line-height: 1.8; word-break: keep-all; }
.support-form { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; }
.support-form .label { margin-top: 18px; }
.support-form .label:first-of-type { margin-top: 0; }
.support-form .req-mark { font-size: 12px; font-weight: 600; color: var(--accent); }
.support-done { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.support-done .t { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.support-done p { font-size: 14px; line-height: 1.85; color: var(--ink-3); margin: 0 0 8px; }
.qbox { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.qbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.qbox-head .lbl { font-size: 13px; font-weight: 700; color: var(--accent); }
.qbox-head button { background: none; border: none; font-size: 13px; color: var(--muted); padding: 2px 4px; }
.qbox-head button:disabled { color: var(--disabled); }
.qbox textarea { width: 100%; padding: 0; border: none; background: transparent; font-size: 15.5px; line-height: 1.75; color: var(--ink); resize: vertical; }
.qbox textarea:focus { outline: none; }
.add-field { width: 100%; height: 46px; border: 1px dashed var(--disabled); background: #FFFFFF; border-radius: 8px; font-size: 14px; color: var(--ink-3); }
.add-field:hover { border-color: var(--accent); }
.add-field:disabled { color: var(--muted-2); }
.steps-bar { display: flex; gap: 6px; margin-bottom: 34px; }
.steps-bar > div { height: 3px; flex: 1; border-radius: 2px; background: var(--line); }
.steps-bar > div.on { background: var(--ink); }

/* ---------- 헤더 ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1160px; margin: 0 auto; height: 72px; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; background: none; border: none; padding: 0; color: var(--ink); }
.logo { width: 32px; height: 32px; flex: none; background: url('assets/logo-96.png') center / contain no-repeat; }
.logo.sm { width: 22px; height: 22px; }
.logo.md { width: 26px; height: 26px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; min-width: 0; }
.nav-btn { background: none; border: none; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-3); white-space: nowrap; }
.nav-btn:hover { background: var(--bg-alt); color: var(--ink); }
/* 좁은 데스크톱(861~1180px): 들어가지 않는 메뉴는 통째로 다음 줄로 넘겨 숨기고(겹침 방지), 전체 메뉴는 햄버거로 연다 */
.nav { flex-wrap: wrap; height: 38px; overflow: hidden; align-items: center; align-content: flex-start; }
.hdr-actions { display: flex; gap: 8px; flex: none; margin-left: auto; align-items: center; }
/* 랜딩 외 화면 공통 내비: ← 뒤로 · 브랜드 · 홈 (데스크톱·모바일 같은 헤더) */
.nav-back { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px 0 8px; margin-left: -8px; border: none; background: none; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); flex: none; white-space: nowrap; transition: background .15s, color .15s; }
.nav-back:hover { background: var(--bg-alt); color: var(--ink); }
.nav-back .arr { font-size: 16px; line-height: 1; }
.hdr-sub .nav { margin-left: 4px; }
.hdr-sub .brand { min-width: 0; }
.btn-home { padding: 0 14px; }
/* 입금 대기: 나중에 입금하기 안내 */
/* 입금 안내 "계좌번호 복사" (copy_account 추적 · docs/traffic_findings.md §9) */
.acct-copy { display: flex; justify-content: flex-end; margin-top: 12px; }
.later-box { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.later-box .t { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.later-box p { font-size: 13.5px; line-height: 1.85; color: var(--ink-3); margin: 0 0 14px; }
.later-box p b { color: var(--ink); font-weight: 700; }
.later-box .row { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #FFFFFF; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); }
.mmenu { border-top: 1px solid var(--line); background: #FFFFFF; padding: 8px 20px 16px; }
.mmenu button, .mmenu a { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line-soft); padding: 15px 2px; font-size: 15px; color: var(--ink); }
@media (min-width: 861px) and (max-width: 1180px) { .menu-btn { display: flex; } }

/* ---------- 랜딩 (데스크톱) ---------- */
.hero { max-width: 1160px; margin: 0 auto; padding: 80px 20px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 7px 14px 7px 8px; margin-bottom: 26px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.hero-lead { font-size: 17.5px; line-height: 1.8; color: var(--ink-3); margin: 0 0 30px; max-width: 440px; }
.hero-lead strong { color: var(--ink); font-weight: 700; }
.bridge { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; max-width: 480px; }
.bridge > div { flex: 1 1 210px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #FFFFFF; }
.bridge .han { font-family: var(--serif); font-size: 16px; color: var(--accent); }
.bridge .t { font-size: 13.5px; font-weight: 700; }
.bridge .d { font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.trust > div { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.trust > div::before { content: '·'; color: var(--accent); }
.hero-panel { flex: 1 1 400px; min-width: 0; }
.hero-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; box-shadow: var(--shadow-card); }
.hero-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-size: 14px; font-weight: 700; }
.glyph { width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(149,99,72,.12); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--accent); }
.schools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.schools > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; text-align: center; }
.schools .hanja { font-family: var(--serif); font-size: 17px; color: var(--accent); line-height: 1.3; margin-bottom: 8px; }
.schools .t { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.schools .axis { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.conn-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 22px; }
.conn-3 > div { display: flex; justify-content: center; }
.conn-3 > div > div { width: 1px; height: 100%; background: var(--line); }
.conn-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 1px; }
.conn-bar > div { border-top: 1px solid var(--line); }
.conn-bar > div:first-child { margin-left: 50%; }
.conn-bar > div:last-child { margin-right: 50%; }
.conn-1 { height: 18px; display: flex; justify-content: center; }
.conn-1 > div { width: 1px; background: var(--line); }
.principles-box { border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; }
.principles-box .cap { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.principles-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.principles-4 > div { text-align: center; padding: 10px 4px; background: var(--bg-soft); border-radius: 8px; }
.principles-4 .han { font-family: var(--serif); font-size: 18px; color: var(--accent); margin-bottom: 6px; }
.principles-4 .t { font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.conclusion { background: var(--ink); border-radius: 10px; padding: 20px 18px; color: #FFFFFF; }
.conclusion .cap { font-size: 12.5px; color: #CBD5E1; margin-bottom: 8px; }
.conclusion .t { font-size: 15.5px; font-weight: 700; line-height: 1.55; margin-bottom: 10px; }
.conclusion .d { font-size: 12.5px; line-height: 1.7; color: #CBD5E1; }
.hero-note { font-size: 12.5px; color: var(--muted); margin: 12px 2px 0; }

.principle-card { border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.principle-card .glyph { width: 44px; height: 44px; flex: none; border-radius: 8px; background: var(--bg-alt); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; }
.principle-card .order { font-size: 13px; color: var(--muted); }
.principle-card .q { font-size: 17.5px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.principle-card .sub { font-size: 13.5px; color: var(--accent); }
.principle-card p { font-size: 14.5px; line-height: 1.8; color: var(--ink-3); margin: 0; }
.principle-card .ask { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

.found-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.found-img { aspect-ratio: 16 / 10; background-color: var(--line); background-size: cover; background-position: center; }
.found-body { padding: 24px; }
.found-body .lbl { font-family: var(--serif); font-size: 13.5px; color: var(--accent); margin-bottom: 10px; }
.found-body .t { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.found-body .hanja { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.found-body p { font-size: 14.5px; line-height: 1.8; color: var(--ink-3); margin: 0 0 14px; }
.found-body .role { font-size: 13.5px; color: var(--ink-2); background: var(--bg-soft); border-radius: 8px; padding: 12px 14px; line-height: 1.7; }
.matrix-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.matrix-card .t { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.matrix-card p { font-size: 14.5px; line-height: 1.8; color: var(--ink-3); margin: 0 0 22px; }
.matrix-row { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.matrix-row .p { flex: 0 0 92px; font-size: 14.5px; font-weight: 700; }
.matrix-row .s { flex: 1 1 220px; min-width: 0; font-size: 14px; color: var(--accent); }
.matrix-row .r { flex: 1 1 200px; min-width: 0; font-size: 14px; color: var(--ink-3); }
.matrix-card .foot { font-size: 13.5px; line-height: 1.85; color: var(--ink-3); margin: 20px 0 0; }

.concern { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.concern > div { flex: 1 1 380px; min-width: 0; }
.concern-flow { margin-bottom: 26px; }
.concern-flow > div { padding: 16px 18px; display: flex; gap: 14px; align-items: baseline; }
.concern-flow .n { font-size: 13px; color: var(--accent); flex: none; }
.concern-flow .l { font-size: 14.5px; }
.concern-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; box-shadow: var(--shadow-card); }
.concern-card .cap { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.concern-ex { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.concern-ex .lbl { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.concern-ex .q { font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.concern-ex .a { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.concern-ex .a span { color: var(--accent); }

.master-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.master-img { aspect-ratio: 4 / 3; background-color: var(--bg-alt); background-size: cover; background-repeat: no-repeat; background-position: center; }
.master-body { padding: 22px; }
.master-body .name { font-size: 17px; font-weight: 700; }
.master-body .role { font-size: 13px; color: var(--muted); margin-left: 8px; }
.master-body p { font-size: 14px; line-height: 1.8; color: var(--ink-3); margin: 10px 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12.5px; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }

.deliverables { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.deliverables > div { background: #FFFFFF; padding: 20px; }
.deliverables .glyph { font-family: var(--serif); font-size: 17px; color: var(--accent); margin-right: 9px; }
.deliverables .t { font-size: 15px; font-weight: 700; }
.deliverables .d { font-size: 13.5px; line-height: 1.65; color: var(--ink-3); margin-top: 7px; }
/* "무엇을 받게 되나요?" 표지+목차+이메일 카드 미리보기 탭(종합사주·궁합·재회 · 2026-10-09) — 아래 유명인 카드 섹션(탭 없음)과는 다른
   필(pill) 모양(라운드 999px·고정 38px 높이·내용만큼 너비)이라 .seg/.opt 를 재사용하지 않고 전용 클래스를 둔다. 탭 전환은 즉시 교체(애니메이션 없음). */
.pv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pv-tab { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; cursor: pointer; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); transition: background .15s, border-color .15s, color .15s; }
.pv-tab .han { font-family: var(--serif); font-size: 14px; }
.pv-tab.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.pv-tab:hover:not(.on) { border-color: var(--accent); color: var(--accent); }
.receive { display: flex; flex-wrap: wrap; gap: 16px; }
.receive-cover { flex: 1 1 320px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-wrap: wrap; gap: 20px; }
.paper { flex: 0 1 210px; min-width: 170px; aspect-ratio: 1 / 1.414; border: 1px solid var(--paper-line); border-radius: 6px; background: var(--paper); padding: 20px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-paper); font-family: var(--serif); }
.paper .head { font-size: 11.5px; letter-spacing: .14em; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--paper-line); }
.paper .mid { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.paper .kind { font-size: 17px; letter-spacing: .3em; color: var(--accent); margin-bottom: 14px; }
.paper .title { font-weight: 700; font-size: 21px; line-height: 1.4; color: var(--ink); }
.paper .rule { width: 28px; height: 1px; background: var(--paper-rule); margin: 14px 0; }
.paper .sub { font-size: 11.5px; line-height: 1.8; color: var(--paper-text); }
.paper .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--paper-line); font-size: 10.5px; line-height: 1.8; color: var(--paper-ink); }
.stamp { width: 44px; height: 92px; flex: none; background: url('assets/stamp.png') center / contain no-repeat; }
.toc-preview { flex: 1 1 180px; min-width: 0; }
.toc-preview .cap { font-size: 12.5px; color: var(--accent); margin-bottom: 12px; }
.toc-preview .row { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink); margin-bottom: 9px; }
.toc-preview .row span:first-child { color: var(--accent); flex: none; }
.receive-mail { flex: 1 1 300px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.receive-mail .cap { font-size: 12.5px; color: var(--accent); margin-bottom: 12px; }
.mail { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mail-head { padding: 13px 15px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mail-head .from { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.mail-head .subj { font-size: 13.5px; font-weight: 700; }
.mail-body { padding: 16px 15px; }
.mail-card { background: var(--paper); border: 1px solid var(--paper-line); border-radius: 8px; padding: 18px 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-family: var(--serif); }
.mail-card .t { font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--ink); }
.mail-card .d { font-size: 11.5px; color: var(--paper-ink); margin-top: 8px; }
.mail-card .logo { width: 48px; height: 48px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; }
.cta-row .t { font-size: 15.5px; color: var(--ink-3); }

.how-card { border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; background: #FFFFFF; }
.how-card .n { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; margin-bottom: 16px; }
.how-card .t { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.how-card .d { font-size: 14.5px; line-height: 1.75; color: var(--ink-3); }
.final-cta > .wrap { padding: 76px 20px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.final-cta h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.final-cta p { font-size: 16px; line-height: 1.8; color: #CBD5E1; margin: 0; }
.footer { background: #FFFFFF; border-top: 1px solid var(--line); }
.footer-in { max-width: 1160px; margin: 0 auto; padding: 48px 20px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { flex: 1 1 300px; min-width: 0; }
.footer-brand p { font-size: 13.5px; line-height: 1.9; color: var(--ink-3); margin: 0; max-width: 420px; }
.footer-links { flex: 0 1 auto; display: flex; flex-direction: column; gap: 10px; }
.footer-links button, .footer-links a { display: block; background: none; border: none; padding: 0; text-align: left; font-size: 13.5px; color: var(--ink-3); }
.footer-links button:hover, .footer-links a:hover { color: var(--accent); }
.footer-note { border-top: 1px solid var(--line); }
.footer-note div { max-width: 1160px; margin: 0 auto; padding: 18px 20px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* 모바일 전용 요소: 데스크톱(≥861px)에서 숨김 · 모바일에서는 각 요소의 고유 display 사용 */
@media (min-width: 861px) { .m-only { display: none !important; } }
.m-br { display: none; }
.h1-sm { font-size: clamp(28px, 4vw, 38px); }
.t30 { font-size: 30px; } .t28 { font-size: 28px; } .t27 { font-size: 27px; } .t26 { font-size: 26px; }
.hero-m { position: relative; background: var(--ink); color: #FFFFFF; padding: 34px 20px 74px; overflow: hidden; }
.hero-m .orb-ring { position: absolute; top: -70px; right: -80px; width: 250px; height: 250px; border-radius: 50%; border: 1px solid rgba(149,99,72,.45); border-top-color: rgba(224,191,166,.9); animation: sjspin 22s linear infinite; }
.hero-m .orb { position: absolute; top: -20px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(149,99,72,.5); animation: sjbreathe 5.5s ease-in-out infinite; }
.hero-m .vert { position: absolute; right: 16px; top: 112px; font-family: var(--serif); font-size: 56px; line-height: 1.05; color: rgba(255,255,255,.07); writing-mode: vertical-rl; }
.hero-m .in { position: relative; }
.hero-m .badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 13px 6px 7px; margin-bottom: 26px; animation: sjrise .55s ease both; font-size: 12.5px; color: #CBD5E1; }
.hero-m .badge i { width: 22px; height: 22px; border-radius: 50%; background: rgba(149,99,72,.3); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: normal; font-size: 11px; color: var(--accent-pale); }
.hero-m h1, .hero-m .hero-m-h1 { display: block; font-size: 33px; line-height: 1.36; font-weight: 800; letter-spacing: -.025em; margin: 0 0 18px; animation: sjrise .6s ease .08s both; }
.hero-m .four { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; animation: sjrise .6s ease .16s both; }
.hero-m .four i { width: 26px; height: 1px; background: var(--accent); }
.hero-m .four span { font-family: var(--serif); font-size: 13px; letter-spacing: .22em; color: var(--accent-pale); }
.hero-m p { font-size: 15.5px; line-height: 1.85; color: #CBD5E1; margin: 0 0 26px; animation: sjrise .6s ease .24s both; }
.hero-m p strong { color: #FFFFFF; }
.hero-glyphs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; animation: sjrise .6s ease .32s both; }
.hero-glyphs button { border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 4px; text-align: center; background: rgba(255,255,255,.04); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.hero-glyphs button:active { transform: scale(.95); }
.hero-glyphs button.on { border-color: rgba(224,191,166,.75); background: rgba(149,99,72,.26); }
.hero-glyphs .han { font-family: var(--serif); font-size: 21px; color: var(--accent-pale); line-height: 1.2; }
.hero-glyphs button.on .han { color: #F3DCC8; }
.hero-glyphs .l { font-size: 10.5px; color: #9AA39C; margin-top: 6px; }
.hero-detail { margin-top: 12px; min-height: 44px; border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; animation: sjrise .6s ease .4s both; }
.hero-detail .t { font-size: 12px; color: var(--accent-pale); margin-bottom: 4px; }
.hero-detail .d { font-size: 12.5px; line-height: 1.65; color: #9AA39C; }
/* 모바일 히어로의 궁합·재회 버튼(docs/compat_reunion_prd.md — 데스크톱 .cta-pair 와 같은 액션/data-cta 를 재사용, 좁은 화면에서 2단 배치만 다름) */
.hero-m-rel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; animation: sjrise .6s ease .46s both; }
.hero-m-rel .btn { width: 100%; padding: 0 8px; }
.m-bridge-wrap { padding: 0 16px; margin-top: -52px; position: relative; z-index: 2; }
.m-bridge { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; box-shadow: 0 8px 28px rgba(15,23,42,.10); }
.m-bridge .row { display: flex; gap: 12px; margin-bottom: 14px; }
.m-bridge .row:last-of-type { margin-bottom: 0; }
.m-bridge .han { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; color: var(--accent); }
.m-bridge .t { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.m-bridge .d { font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.m-bridge .trust { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; gap: 6px 14px; }
.m-bridge .trust > div { font-size: 12.5px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head .k { font-family: var(--serif); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.sec-head i { flex: 1; height: 1px; background: var(--line); }
.sec-head .n { font-size: 11.5px; color: var(--muted); }
.m-school { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.m-school .hanja { font-family: var(--serif); font-size: 15px; color: var(--accent); flex: none; }
.m-school .t { font-size: 14.5px; font-weight: 700; }
.m-school .axis { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.m-steps { position: relative; padding-left: 34px; }
.m-steps .line { position: absolute; left: 11px; top: 10px; bottom: 14px; width: 1px; background: var(--line); }
.m-steps .step { position: relative; margin-bottom: 22px; }
.m-steps .step .n { position: absolute; left: -34px; top: 0; width: 23px; height: 23px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-steps .step .t { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.45; }
.m-steps .step .d { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.m-final { position: relative; background: var(--ink); color: #FFFFFF; padding: 44px 20px 48px; overflow: hidden; }
.m-final .orb-ring { position: absolute; bottom: -90px; left: -70px; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(149,99,72,.4); border-bottom-color: rgba(224,191,166,.8); animation: sjspin 26s linear infinite; }
.m-final .in { position: relative; }
.m-final .stamp { width: 38px; height: 78px; margin-bottom: 22px; }
.m-final h2 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; line-height: 1.4; }
.m-final p { font-size: 14.5px; line-height: 1.8; color: #CBD5E1; margin: 0 0 20px; }

/* ---------- 결과 / 리포트 공통 ---------- */
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pillar { flex: 1 1 110px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: center; background: #FFFFFF; }
.pillar .lbl { font-size: 12px; color: var(--muted); padding: 9px; border-bottom: 1px solid var(--line); background: #FFFFFF; }
.pillar .body { padding: 16px 8px; }
.pillar .han { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1.25; }
.pillar .ko { font-size: 11.5px; color: var(--muted); }
.pillar .ko.gap { margin-bottom: 10px; }
.pillar.unknown .han { color: var(--disabled); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-3); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.meta-row b { color: var(--ink); font-weight: 600; }
.ohang { display: flex; flex-direction: column; gap: 12px; }
.ohang > div { display: flex; align-items: center; gap: 12px; }
.ohang .n { width: 42px; font-size: 14px; }
.ohang .bar { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ohang .bar > div { height: 100%; border-radius: 4px; transition: width .6s ease; }
.ohang .c { width: 30px; text-align: right; font-size: 13px; color: var(--ink-3); }
.dm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.dm-head .han { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.dm-head .t { font-size: 16px; font-weight: 700; }
.body-text { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); margin: 0 0 18px; }
.two-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.soft-box { background: var(--bg-soft); border-radius: 8px; padding: 18px; }
.soft-box .cap { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.soft-box .cap.alt { color: var(--ink-3); }
.soft-box .d { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.locked { border: 1px dashed var(--disabled); border-radius: 10px; padding: 22px; background: #FFFFFF; }
.locked .cap { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.locked .t { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.locked .d { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.premium { background: var(--ink); border-radius: 12px; padding: 34px 28px; color: #FFFFFF; }
.premium .t { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.premium .d { font-size: 14.5px; line-height: 1.85; color: #CBD5E1; margin-bottom: 24px; }
.premium .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.premium .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.premium .btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-big { font-size: 36px; font-weight: 800; letter-spacing: -.025em; }
.progress-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 32px; }
.pstep { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 8px; }
.pstep.active { background: var(--bg-soft); }
.pstep .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; border: 1px solid var(--line); background: transparent; color: var(--accent); }
.pstep.active .dot { border-color: var(--accent); animation: sjpulse 1.2s ease-in-out infinite; }
.pstep.done .dot { border-color: var(--el-wood); background: var(--el-wood); color: #FFFFFF; }
.pstep .l { flex: 1; font-size: 14.5px; color: var(--muted); }
.pstep.active .l, .pstep.done .l { color: var(--ink); }
.pstep .s { font-size: 12.5px; color: var(--muted); }
.pay-opt { flex: 1; min-height: 54px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; text-align: left; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); }
.pay-opt .note { font-size: 12px; font-weight: 400; margin-top: 4px; color: var(--muted); }
.pay-opt.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.pay-opt.on .note { color: #CBD5E1; }
/* 결제 수단 카드 (2026-09-25) — 무통장 입금(선택·할인 배지) + 네이버페이(회색조 비활성) · 폭이 좁으면 한 칸씩 접힌다 */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; margin-bottom: 16px; } /* 126px = 390px 뷰포트(실측 가용폭 283px)에서도 두 카드가 가로로 나란히 들어가는 값 */
.pay-card { text-align: left; padding: 14px 15px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); min-height: 78px; }
.pay-card .pm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pay-card .pm-note { font-size: 12px; color: var(--muted); }
.pay-card .pm-price { font-size: 14px; font-weight: 700; margin-top: 8px; }
.pay-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-card.off { opacity: .55; filter: grayscale(1); cursor: not-allowed; }
.pay-card.off .pm-head { color: var(--ink-2); }
.discount-badge { display: inline-flex; align-items: center; background: rgba(149,99,72,.12); color: var(--accent); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.soon-badge { display: inline-flex; align-items: center; background: var(--line-soft); color: var(--muted); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.price-strike { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 400; font-size: 12.5px; margin-right: 4px; }
.price-now { color: var(--ink); }
/* JA 総額表示(2026-11-05): 판매가 옆 （税込） — 작고 옅게 · 줄바꿈 없이 */
.tax-in { font-size: max(11px, .5em); font-weight: 500; letter-spacing: 0; opacity: .72; white-space: nowrap; margin-left: 1px; vertical-align: baseline; }
/* KO 할인 사유 배지(2026-11-19 · app.js koPromoH · payment_settings.ko_promo_label/ko_promo_until) */
.ko-promo { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; border: 1px solid rgba(149,99,72,.35); color: var(--accent); background: rgba(149,99,72,.07); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
.ko-promo b { font-weight: 700; }
.ko-promo-until { opacity: .8; }
.ko-promo-until::before { content: '·'; margin-right: 5px; }
.price > .ko-promo { display: flex; width: fit-content; margin: 0 0 6px; }
.premium .ko-promo { color: #f3e3d6; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.pm-head .ko-promo { margin-left: 6px; }
.deposit-discount { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.bank-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.plan-btn { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 20px 22px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); width: 100%; }
.plan-btn .t { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.plan-btn .d { font-size: 13.5px; color: var(--ink-3); }
.plan-btn .p { font-size: 19px; font-weight: 800; white-space: nowrap; letter-spacing: -.02em; }
.plan-btn.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.plan-btn.on .d { color: #CBD5E1; }
.tab-btn { height: 44px; padding: 0 16px; border-radius: 8px; font-size: 14px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); }
.tab-btn.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }

/* 리포트 */
.report-hero { background: var(--ink); color: #FFFFFF; }
.report-hero .wrap { padding: 64px 20px 56px; }
.report-hero .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 15px; font-weight: 700; }
.report-hero .logo { width: 30px; height: 30px; background-color: #FFFFFF; border-radius: 4px; background-size: 80%; }
.report-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; line-height: 1.3; }
.report-hero .sub { font-size: 16.5px; color: #CBD5E1; margin: 0 0 30px; }
.report-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13.5px; color: var(--muted-2); }
.report-body { max-width: 1160px; margin: 0 auto; padding: 44px 20px 80px; display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.toc { flex: 1 1 220px; min-width: 0; position: sticky; top: 130px; }
.toc .cap { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.toc a { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); padding: 9px 10px; border-radius: 6px; display: flex; gap: 10px; text-decoration: none; }
.toc a:hover { background: var(--bg-alt); color: var(--ink); }
.toc a span:first-child { color: var(--accent); }
.toc-toggle { display: none; }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.report-main { flex: 3 1 460px; min-width: 0; }
.chapter { margin-bottom: 56px; scroll-margin-top: 128px; } /* 고정 헤더(약 110px) 아래로 장 제목이 오도록 */
.chapter-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chapter-label span:first-child { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.chapter-label i { flex: 1; height: 1px; background: var(--line); }
.chapter h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; line-height: 1.4; }
.chapter p { font-size: 16px; line-height: 1.95; color: var(--ink-2); margin: 0 0 18px; }
.block { margin-bottom: 26px; }
.block h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.block h3 .han { font-family: var(--serif); color: var(--accent); font-weight: 400; }
.block-empty { font-size: 14px; color: var(--muted); border: 1px dashed var(--disabled); border-radius: 8px; padding: 14px 16px; }
.timeline { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 24px; overflow-x: auto; }
.timeline .cap { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.timeline .row { display: flex; gap: 10px; min-width: 500px; }
.timeline .col { flex: 1; text-align: center; border-top: 2px solid var(--line); padding-top: 12px; }
.timeline .col.on { border-top-color: var(--accent); }
.timeline .age { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.timeline .han { font-family: var(--serif); font-size: 20px; color: var(--ink-3); }
.timeline .col.on .han { color: var(--accent); }
.timeline .ko { font-size: 11px; color: var(--muted); margin-top: 6px; }
.year-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.year-card .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.year-card .y { font-size: 15.5px; font-weight: 700; }
.year-card .han { font-family: var(--serif); font-size: 16px; color: var(--accent); }
.year-card .note { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.qcard { background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 18px 20px; }
.qcard .lbl { font-size: 12.5px; color: var(--accent); margin-bottom: 8px; }
.qcard .t { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.gods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.gods > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 6px; text-align: center; }
.gods .n { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.gods .c { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.gods > div.on { border-color: var(--accent); }
.gods > div.on .c { color: var(--accent); }
/* 무료 결과 템플릿 v2 (supabase/free_templates.sql · web/free_rules.js · admin #/free-templates): 십성 5칸 · 핵심 해석 · 간결 CTA · 리포트 뼈대 · 유명인 예시 카드 */
.gods-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.gods-wrap .gods { margin-bottom: 12px; }
.gods-note { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.gods.sm { margin-bottom: 0; } .gods.sm > div { padding: 8px 4px; } .gods.sm .c { font-size: 17px; }
.insight-card { border-left: 3px solid var(--accent); }
.insight-text { margin-bottom: 12px; }
.insight-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.cta-compact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.cta-compact .t { flex: 1 1 320px; min-width: 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); font-weight: 600; }
.cta-compact .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-compact .price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.skel-lead { font-size: 14px; color: var(--ink-3); line-height: 1.75; margin-bottom: 18px; }
.sk-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sk-row { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.sk-head { display: flex; align-items: center; gap: 12px; }
.sk-head .num { font-family: var(--serif); color: var(--accent); font-size: 13px; width: 24px; flex: none; }
.sk-head .title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.sk-head .lock, .sk-years .lock { font-size: 11.5px; color: var(--muted); border: 1px dashed var(--disabled); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.sk-body { margin: 12px 0 4px 36px; min-width: 0; }
.timeline.sk { margin-bottom: 0; padding: 16px; }
.sk-years { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sk-years th, .sk-years td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.sk-years th { font-size: 12px; color: var(--muted); font-weight: 600; }
.sk-years .han { font-family: var(--serif); color: var(--accent); font-size: 15px; } .sk-years .ko { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.sk-q { display: flex; flex-direction: column; gap: 8px; }
.skel-foot { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.celeb-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.celeb-card .cap { font-size: 12px; color: var(--accent); font-weight: 700; }
.celeb-card .t { font-size: 16px; font-weight: 700; line-height: 1.5; }
.celeb-card .d { font-size: 14px; color: var(--ink-3); line-height: 1.75; }
.celeb-card .btn { margin-top: 6px; }
.celeb-card .celeb-grid { width: 100%; margin-top: 6px; }
.celeb-sec { margin: 26px 0 30px; }
.celeb-sec .cap { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.celeb-sec .small { margin: 10px 0 0; }
/* 가상 인물 예시(궁합·재회)는 보통 1건뿐 — 유명인 3카드 그리드를 그대로 쓰되 1건일 땐 폭을 줄이고 중앙 정렬해 혼자 덩그러니 보이지 않게 한다 */
.celeb-grid.single { max-width: 360px; margin: 0 auto; justify-content: center; }
.sk-brief { font-size: 13.5px; color: var(--ink-3); background: var(--bg-soft); border-radius: 8px; padding: 10px 14px; }
/* 유명인 카드 — 카드 전체가 링크(hover 떠오름 · 테두리 강조 · 화살표 이동) + 리포트 첫 화면 미니 미리보기(.mini · 원국 4기둥) + 버튼(.go = btn-primary 소형). 랜딩(.celeb-sec)·무료 결과 v2(.celeb-card)·상품 소개 공용 */
.celeb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.celeb-item { display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .18s, transform .18s; min-width: 0; cursor: pointer; }
.celeb-item:hover, .celeb-item:focus-visible { border-color: var(--accent); box-shadow: 0 12px 28px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05); transform: translateY(-3px); color: var(--ink); outline: none; }
.celeb-item .cap { font-size: 11.5px; color: var(--muted); }
.celeb-item .n { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.celeb-item .b { font-size: 13px; color: var(--ink-3); }
.celeb-item .mini { display: block; margin: 10px 0 6px; padding: 10px 10px 9px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 8px; }
.celeb-item .mini-cap { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .02em; margin-bottom: 7px; }
.celeb-item .mini .pl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.celeb-item .mini .pl > span { display: flex; flex-direction: column; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; padding: 5px 2px 6px; min-width: 0; }
.celeb-item .mini .pl em { font-style: normal; font-size: 9.5px; color: var(--muted); margin-bottom: 2px; }
.celeb-item .mini .pl b { font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.2; color: var(--accent); letter-spacing: .08em; }
.celeb-item .mini .meta { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.celeb-item .go { margin-top: auto; align-self: flex-start; }
.celeb-item .go .arr { display: inline-block; transition: transform .18s; }
.celeb-item:hover .go .arr { transform: translateX(4px); }
.celeb-item:hover .go.btn-primary { background: #161C1B; border-color: #161C1B; }
/* EN·JA K-pop 아티스트 완성 리포트 카드(2026-11-05) — 사진(Commons CC BY · 4:3) + 출처 줄 · 리포트 상단 사진 */
.celeb-item .celeb-ph { display: block; margin: -16px -18px 10px; border-radius: 12px 12px 0 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.celeb-item .celeb-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.os-credit { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.os-credit a, .os-celeb-fig figcaption a { color: inherit; }
.os-celeb-fig { margin: 0 0 12px; max-width: 360px; }
.os-celeb-fig img { display: block; width: 100%; height: auto; border-radius: 10px; }
.os-celeb-fig figcaption { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; gap: 6px; }
/* 고민 잠금 카드 (v2.1 questions_locked) — 고객 고민 문장 + 잠긴 답변 미리보기(blur 플레이스홀더) + 자물쇠 + 상품 항목 태그 */
.ql-lead { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-bottom: 18px; }
.ql-list { display: flex; flex-direction: column; gap: 12px; }
.ql-item { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.ql-q { padding: 16px 18px 12px; }
.ql-q .lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.ql-q .t { display: block; font-size: 16px; line-height: 1.75; color: var(--ink); font-weight: 600; }
.ql-preview { position: relative; background: var(--bg-soft); border-top: 1px dashed var(--line); padding: 14px 18px 14px; }
.ql-blur { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--muted); filter: blur(3px); user-select: none; pointer-events: none; max-height: 5.6em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.ql-lock { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ql-lock .ico { flex: none; color: var(--accent); }
.ql-empty .ql-q .t { color: var(--ink-3); font-weight: 500; }
.ql-empty-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 18px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-3); }
.ql-add { font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ql-add:hover { color: var(--ink); }
.ql-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ql-tags .cap { font-size: 12px; color: var(--muted); margin-right: 4px; }
.ql-tags .tag { font-size: 12.5px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
@media (max-width: 860px) { .sk-body { margin-left: 0; } .cta-compact { padding: 16px; } .sk-years th:last-child, .sk-years td:last-child { display: none; }
  /* 모바일: 유명인 카드는 가로 스크롤 + 스냅(페이지 가로 스크롤은 생기지 않음 · 컨테이너 안에서만) */
  .celeb-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 10px; padding: 2px 2px 10px; scrollbar-width: thin; }
  .celeb-item { flex: 0 0 min(280px, 84%); scroll-snap-align: start; }
  .celeb-item:hover { transform: none; }
  .ql-q { padding: 14px 14px 10px; } .ql-q .t { font-size: 15px; } .ql-preview { padding: 12px 14px; } .ql-blur { font-size: 14px; } .ql-empty-note { padding: 10px 14px; } }
.report-actions { border-top: 1px solid var(--line); padding-top: 32px; }
.report-actions .row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.report-actions .row .btn { flex: 1 1 180px; height: 52px; font-size: 14.5px; font-weight: 400; }
.report-actions .row .btn-primary { font-weight: 600; }
.added { margin-bottom: 48px; background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 26px 24px; }
.added .cap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.added .cap span { font-weight: 400; color: var(--muted); font-size: 12px; }
.added .q { font-size: 16px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; }

/* 하단 고정 CTA (모바일) · 토스트 */
.bottombar { display: none; }
.toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #FFFFFF; font-size: 13.5px; padding: 12px 18px; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.2); animation: sjfade .25s ease both; max-width: calc(100vw - 32px); text-align: center; }
.toast.err { background: #8B2E2E; }
.loading-wrap { max-width: 580px; margin: 0 auto; padding: 80px 20px; }
.err-box { border: 1px solid #F1C7C7; background: #FFF7F7; border-radius: 10px; padding: 16px 18px; font-size: 14px; color: #8B2E2E; line-height: 1.7; margin-bottom: 16px; }

/* =========================================================
   모바일 (≤860px) — design/Saju Premium Mobile.dc.html
   ========================================================= */
@media (max-width: 860px) {
  body { padding-bottom: 88px; }
  .d-only { display: none !important; }
  .m-br { display: inline; }
  .h1, .h1-sm { font-size: 25px; line-height: 1.4; margin-bottom: 8px; }
  .t30, .t28, .t27 { font-size: 24px; } .t26 { font-size: 21px; }
  .landing { display: flex; flex-direction: column; }
  .section-alt, .m-soft { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
  .m-white { background: #FFFFFF; border-bottom: none; }
  .hdr-in { height: 56px; padding: 0 16px; gap: 10px; }
  .logo { width: 26px; height: 26px; }
  .brand-name { font-size: 16.5px; }
  .nav { display: none; }
  .hdr-actions .btn { display: none; }
  .hdr-actions .btn-home { display: inline-flex; height: 40px; padding: 0 12px; font-size: 13.5px; }
  .hdr-sub .brand-name { font-size: 16px; }
  .nav-back { height: 40px; padding: 0 10px 0 6px; margin-left: -6px; font-size: 14px; }
  .menu-btn { display: flex; width: 40px; height: 40px; }
  .menu-btn span { width: 15px; }
  .mmenu { padding: 4px 16px 12px; }
  .wrap, .narrow, .narrow-860, .narrow-760, .narrow-600, .narrow-580, .narrow-560, .narrow-520 { padding-left: 16px; padding-right: 16px; }
  .narrow, .narrow-860, .narrow-760 { padding-top: 20px; padding-bottom: 32px; }
  .narrow-600, .narrow-520, .narrow-580, .narrow-560 { padding-top: 32px; padding-bottom: 32px; }
  .section > .wrap, .section.compact > .wrap { padding-top: 32px; padding-bottom: 32px; }
  .h1 { font-size: 25px; line-height: 1.4; margin-bottom: 8px; }
  .h2 { font-size: 23px; letter-spacing: -.025em; margin-bottom: 8px; }
  .lead { font-size: 14.5px; margin-bottom: 20px; }
  .card-pad { padding: 18px 16px; }
  .card-title { font-size: 15px; margin-bottom: 14px; }
  .btn-lg, .btn-xl { height: 52px; font-size: 15.5px; }
  .grid { gap: 12px; }
  .label { font-size: 13.5px; }
  .input { height: 52px; font-size: 16px; padding: 0 15px; }
  .opt { height: 48px; }
  .chip { width: 100%; height: auto; min-height: 50px; padding: 14px 16px; text-align: left; font-size: 15px; }
  .chips { flex-direction: column; gap: 8px !important; }
  .steps-bar { gap: 5px; margin-bottom: 26px; }
  .hero, .principle-card.d-only { display: none; }
  .principle-card { position: relative; padding: 18px 16px; gap: 10px; overflow: hidden; }
  .principle-card::after { content: attr(data-glyph); position: absolute; right: 10px; bottom: -14px; font-family: var(--serif); font-size: 82px; line-height: 1; color: var(--line-soft); pointer-events: none; }
  .principle-card > * { position: relative; }
  .principle-card .glyph { width: 34px; height: 34px; font-size: 18px; background: var(--bg-soft); }
  .principle-card .order { font-size: 12.5px; color: var(--accent); }
  .principle-card .q { font-size: 16px; }
  .principle-card .sub { display: none; }
  .principle-card p { font-size: 13.5px; line-height: 1.75; }
  .principle-card .ask { padding-top: 11px; font-size: 13px; color: var(--ink); }
  .found-img { aspect-ratio: auto; height: 160px; display: flex; align-items: flex-end; }
  .found-img .lbl { width: 100%; padding: 12px 14px; background: linear-gradient(to top, rgba(37,45,43,.82), rgba(37,45,43,0)); font-family: var(--serif); font-size: 12px; letter-spacing: .12em; color: var(--accent-pale); }
  .found-body { padding: 16px; }
  .found-body .lbl { display: none; }
  .found-body .t { font-size: 16px; display: inline; }
  .found-body .hanja { display: inline; font-family: var(--serif); font-size: 12.5px; margin-left: 8px; }
  .found-body p { font-size: 13.5px; margin: 8px 0 10px; }
  .found-body .role { background: none; padding: 0; font-size: 12.5px; color: var(--accent); }
  .matrix-card, .concern-flow, .hero-note { display: none; }
  .master-body { padding: 16px; }
  .master-body .name { font-size: 15.5px; }
  .master-body .role { font-size: 12.5px; }
  .master-body p { font-size: 13.5px; margin-bottom: 0; }
  .master-body .tags { display: none; }
  .deliverables { grid-template-columns: 1fr; margin-bottom: 20px; }
  .deliverables > div { padding: 16px; }
  .deliverables .t { font-size: 14.5px; }
  .deliverables .d { font-size: 13px; }
  .receive-cover { padding: 0; border: none; display: block; }
  .paper { flex: none; width: 100%; min-width: 0; padding: 22px 20px; border-radius: 8px; }
  .paper .kind { font-size: 19px; margin-bottom: 16px; }
  .paper .title { font-size: 22px; }
  .paper .sub { font-size: 12px; }
  .paper .foot { font-size: 11px; }
  .stamp { width: 40px; height: 84px; }
  .toc-preview { display: none; }
  .receive-mail { padding: 0; border: none; margin-top: 20px; }
  .receive-mail .cap { display: none; }
  .mail-card .t { font-size: 17px; }
  .mail-card .logo { width: 44px; height: 44px; }
  .mail-body .btn { height: 50px !important; margin-top: 4px; } /* 모바일에도 '내 리포트 샘플 열기' 표시 (인라인 46px 덮어씀) */
  .cta-row { display: none; }
  .how-card { display: none; }
  .final-cta { display: none; }
  .footer-in { padding: 26px 16px 32px; gap: 16px; }
  .footer-brand p { font-size: 12.5px; line-height: 1.85; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .footer-links button, .footer-links a { font-size: 12.5px; text-decoration: underline; }
  .footer-note { display: none; }
  .footer-biz div { padding: 12px 16px 16px; font-size: 11.5px; }
  .pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pillar .lbl { font-size: 11.5px; padding: 7px; background: var(--bg-soft); }
  .pillar .body { padding: 12px 6px; }
  .pillar .han { font-size: 26px; }
  .pillar .ko { font-size: 11px; }
  .pillar .ko.gap { margin-bottom: 8px; }
  .ohang { gap: 10px; }
  .ohang .n { width: 34px; font-size: 13.5px; }
  .ohang .c { width: 22px; font-size: 12.5px; }
  .dm-head .han { font-size: 20px; }
  .dm-head .t { font-size: 15px; }
  .body-text { font-size: 15px; line-height: 1.85; margin-bottom: 14px; }
  .two-box { grid-template-columns: 1fr; gap: 8px; }
  .soft-box { padding: 14px; }
  .soft-box .cap { font-size: 12.5px; }
  .soft-box .d { font-size: 13.5px; }
  .locked { padding: 16px; }
  .locked .t { font-size: 14.5px; }
  .locked .d { font-size: 13px; }
  .premium { padding: 22px 18px; }
  .premium .t { font-size: 18px; }
  .premium .d { font-size: 13.5px; margin-bottom: 16px; }
  .premium .price { font-size: 26px; }
  .premium .row .btn { display: none; } /* 주 CTA 는 하단 고정 바가 대신한다 */
  .premium .btns { width: 100%; }
  .premium .row .btn-outline-light { display: inline-flex; width: 100%; height: 48px; font-size: 15px; }
  .price-big { font-size: 30px; }
  .progress-box { padding: 6px; margin-bottom: 20px; }
  .pstep { gap: 12px; padding: 14px; }
  .pstep .dot { width: 20px; height: 20px; font-size: 10.5px; }
  .pstep .l { font-size: 14px; }
  .pstep .s { font-size: 12px; }
  .pay-opts { flex-direction: column; }
  .pay-opt { min-height: 58px; }
  .plan-btn { padding: 16px; }
  .plan-btn .t { font-size: 15px; }
  .plan-btn .d { font-size: 12.5px; }
  .plan-btn .p { font-size: 17px; }
  .tabs { flex-direction: column; }
  .tab-btn { min-height: 46px; height: auto; padding: 12px 14px; text-align: left; }
  .report-hero .wrap { padding: 30px 16px; }
  .report-hero h1 { font-size: 27px; margin-bottom: 10px; }
  .report-hero .sub { display: none; }
  .report-hero .meta { flex-direction: column; gap: 4px; font-size: 13.5px; color: #9AA39C; line-height: 1.8; }
  .report-body { padding: 20px 16px 32px; display: block; }
  .toc { position: static; margin-bottom: 16px; }
  .toc .cap { display: none; }
  .toc-toggle { display: flex; width: 100%; height: 48px; border: 1px solid var(--line); background: #FFFFFF; border-radius: 8px; font-size: 14px; color: var(--ink); align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 12px; }
  .toc-toggle span:last-child { color: var(--accent); }
  .toc-list { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
  .toc-list.open { display: flex; }
  .toc a { padding: 11px 10px; }
  .chapter { margin-bottom: 40px; scroll-margin-top: 70px; }
  .chapter-label i { display: none; }
  .chapter h2 { font-size: 21px; margin-bottom: 16px; }
  .chapter p { font-size: 15.5px; margin-bottom: 16px; }
  .timeline { padding: 16px; border-radius: 10px; }
  .timeline .cap { display: none; }
  .timeline .row { flex-direction: column; gap: 1px; min-width: 0; }
  .timeline .col { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: none; border-bottom: 1px solid var(--line-soft); text-align: left; }
  .timeline .age { width: 44px; margin: 0; font-size: 12.5px; }
  .timeline .han { font-size: 18px; }
  .timeline .ko { margin: 0 0 0 auto; font-size: 12.5px; }
  .gods { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .gods .c { font-size: 17px; }
  .report-actions { padding-top: 22px; }
  .report-actions .row { flex-direction: column; gap: 8px; margin-bottom: 18px; }
  .report-actions .row .btn { flex: 0 0 auto; height: 50px; } /* 세로 스택에서 flex-basis 180px 가 높이로 적용되던 문제 → 보통 버튼 */
  .report-actions .row .btn-primary { display: none; }
  .added { padding: 18px 16px; margin-bottom: 28px; }
  .qcard { padding: 14px 16px; }
  .qcard .t { font-size: 15px; }
  .year-card { padding: 14px 16px; }
  .year-card .y { font-size: 14.5px; }
  .year-card .han { font-size: 15px; }
  .year-card .note { font-size: 13px; }
  .bottombar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
  .bottombar > div { width: 100%; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 12px 16px 16px; pointer-events: auto; backdrop-filter: blur(6px); }
  .bottombar .btn { width: 100%; height: 54px; font-size: 16px; }
  .bottombar > div.pair { display: flex; gap: 8px; }
  .bottombar > div.pair .btn { width: auto; flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottombar > div.pair .btn-ai { flex: 0 0 auto; gap: 6px; }
  .inline-cta { display: none !important; }
  .m-hide { display: none !important; }
}
@media (max-width: 400px) {
  .gods { grid-template-columns: repeat(3, 1fr); }
  .hdr-sub .hdr-in { gap: 6px; }
  .hdr-sub .hdr-actions { gap: 6px; }
  .hdr-sub .brand-name { font-size: 15px; }
  .nav-back { padding: 0 8px 0 4px; margin-left: -4px; }
  .nav-back .txt { display: none; }
  .later-box .row .btn { flex: 1 1 auto; }
  /* .pv-tabs(랜딩 "무엇을 받게 되나요?" 미리보기 탭)은 "종합사주" 라벨+한자가 길어 390px 폭에서 좁은 패딩 없이는 3탭이 한 줄에 안 들어간다 — 패딩만 줄이고 높이·라운드·색은 그대로 유지. */
  .pv-tab { padding: 0 11px; gap: 5px; }
}

/* ---------- AI 무료 분석 (데스크톱 앱 전용 — window.pyeongrijae 가 있을 때만 렌더) ---------- */
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ai { background: #FFFFFF; border-color: var(--accent-pale); color: var(--accent); }
.btn-ai:hover { background: #FBF6F2; border-color: var(--accent); color: var(--accent); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(149,99,72,.14); animation: sjpulse 1.6s ease-in-out infinite; }
.ai-dot-remote { background: #3E6B8F; box-shadow: 0 0 0 4px rgba(62,107,143,.14); }
.ai-wait { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.ai-wait .spinner { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: sjspin .9s linear infinite; margin-top: 2px; }
.ai-wait .t { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.ai-wait .d { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }
.ai-answer { margin-bottom: 8px; }
.ai-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ai-meta { font-size: 12.5px; color: var(--muted); }
.ai-actions { display: flex; gap: 8px; margin-left: auto; }
.ai-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
.ai-body { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.ai-body p { margin: 0 0 12px; }
.ai-body h3, .ai-body h4, .ai-body h5 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.ai-body h3 { font-size: 17.5px; font-family: var(--serif); }
.ai-body h3:first-child, .ai-body h4:first-child { margin-top: 0; }
.ai-body ul, .ai-body ol { margin: 0 0 14px; padding-left: 22px; }
.ai-body li { margin: 4px 0; }
.ai-body hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.ai-body code { font-size: 13px; background: var(--bg-alt); border-radius: 4px; padding: 1px 5px; }
.ai-body b { color: var(--ink); }

/* ---------- AI 결과 리포트형 화면 (/ai · /ai/view) — 유료 리포트(.report-hero · .toc · .chapter · .pillars · .meta-row · .block · .src · .timeline · .report-actions)의 클래스를 그대로 쓴다.
   여기에는 AI 결과에만 나오는 요소(히어로 우측 상단 배지 · 장면 박스 · 핵심 인용 · 출처 번호 · 마크다운 목록/표)만 .ai-report 아래로 한정해 둔다 → 유료 리포트 렌더는 영향 없음 ---------- */
.ai-report .report-hero .wrap { position: relative; }
.hero-corner { position: absolute; top: 22px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 46%; text-align: right; }
.rp-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; color: #E2E8F0; background: rgba(255,255,255,.06); white-space: nowrap; }
.rp-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-pale); flex: none; }
.rp-stat { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.rp-stat b { color: #E2E8F0; font-weight: 600; }
.ai-intro { margin-bottom: 36px; }
.ai-report .chapter .block.scene { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.ai-report .chapter .block.scene h3 { font-size: 15.5px; color: var(--ink-3); }
.ai-report .chapter .block.scene p:last-child { margin-bottom: 0; }
.ai-report .chapter .block > p:last-child { margin-bottom: 0; }
.ai-report .chapter blockquote { margin: 0 0 26px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: #FFFFFF; border-radius: 0 10px 10px 0; }
.ai-report .chapter blockquote .cap { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.ai-report .chapter blockquote p { margin: 0 0 8px; color: var(--ink-2); }
.ai-report .chapter blockquote p:last-child { margin-bottom: 0; }
.ai-report .chapter .cite { font-size: 12px; color: var(--muted-2); }
.ai-report .chapter b { color: var(--ink); }
.ai-report .chapter h4, .ai-report .chapter h5 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.ai-report .chapter ul, .ai-report .chapter ol { font-size: 16px; line-height: 1.95; color: var(--ink-2); margin: 0 0 18px; padding-left: 22px; }
.ai-report .chapter li { margin: 5px 0; }
.ai-report .chapter hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ai-report .chapter code { font-size: 13.5px; background: var(--bg-alt); border-radius: 4px; padding: 1px 5px; }
.ai-report .daeun-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.ai-report .daeun-notes .bullet b { color: var(--ink); font-weight: 600; }
.md-table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.md-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--bg-alt); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.md-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
.md-table tr:last-child td { border-bottom: 0; }
.md-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.md-table .cite { font-size: 11.5px; color: var(--muted-2); }
.ai-body .md-table-wrap { margin-bottom: 14px; }
.ai-body .md-table { font-size: 13px; }
.ai-body .md-table th, .ai-body .md-table td { padding: 8px 10px; }
.ai-body blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--accent); color: var(--ink-3); }
@media (max-width: 860px) {
  .hero-corner { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: none; text-align: left; margin-bottom: 16px; }
  .ai-report .chapter .block.scene { padding: 16px 16px; }
  .ai-report .chapter blockquote { padding: 14px 16px; margin-bottom: 22px; }
  .ai-report .chapter ul, .ai-report .chapter ol { font-size: 15.5px; margin-bottom: 16px; }
  .md-table { font-size: 13px; }
  .md-table th, .md-table td { padding: 8px 10px; }
}

/* =========================================================
   커스텀 생년월일 달력 · 출생 시각 선택기 (입력 1단계 · web/app.js DP/SIJIN)
   브라우저 기본 type="date"/"time" UI(파란 선택·시스템 폰트) 대신 사이트 톤으로 직접 그린다.
   ========================================================= */
.dp-trigger { display: flex; align-items: center; gap: 10px; text-align: left; }
.dp-trigger .dp-val { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dp-trigger .dp-cap { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-trigger .dp-ico { flex: none; margin-left: auto; display: inline-flex; color: var(--accent); }
.dp-trigger:hover { border-color: var(--accent-pale); }
.dp-trigger:focus-visible, .dp-trigger[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(149,99,72,.12); }

.dp-root { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.dp-root.hide { display: none; }
.dp-back { position: absolute; inset: 0; background: rgba(37,45,43,.34); pointer-events: auto; animation: sjfade .2s ease both; }
.dp-pop { position: absolute; width: 324px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); padding: 12px 12px 6px; pointer-events: auto; animation: sjfade .18s ease both; }
.dp-grab { display: none; }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dp-nav { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: var(--ink-3); font-size: 17px; line-height: 1; }
.dp-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.dp-nav:disabled { color: var(--disabled); }
.dp-nav:focus-visible, .dp-select:focus-visible, .dp-link:focus-visible, .tp-select:focus-visible, .tp-chip:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(149,99,72,.16); }
.dp-sel { flex: 1 1 auto; display: flex; justify-content: center; gap: 6px; }
.dp-select, .tp-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background-color: #FFFFFF; background-repeat: no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dp-select { height: 34px; padding: 0 26px 0 10px; font-size: 14px; font-weight: 600; background-position: right 9px center; background-size: 10px 6px; }
.dp-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.dp-dow span { text-align: center; font-size: 11.5px; color: var(--muted); padding: 5px 0; }
.dp-dow .sun { color: #B0574F; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day { height: 38px; border: 1px solid transparent; border-radius: 999px; background: none; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; padding: 0; }
.dp-day.sun { color: #B0574F; }
.dp-day.out { opacity: .38; }
.dp-day:hover:not(:disabled):not(.on) { background: #F7F5F1; }
.dp-day.today { border-color: var(--accent-pale); }
.dp-day.on, .dp-day.on:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-weight: 700; }
.dp-day:disabled { color: var(--disabled); cursor: default; }
.dp-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dp-foot { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; border-top: 1px solid var(--line-soft); padding-top: 4px; }
.dp-link { background: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 8px; font-size: 12.5px; color: var(--accent); }
.dp-link:hover { background: #F7F5F1; }

.tp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tp-select { height: 50px; min-width: 92px; padding: 0 32px 0 14px; font-size: 15.5px; background-position: right 12px center; background-size: 11px 7px; }
.tp-select option { background-color: #FFFFFF; color: var(--ink); } /* 일부 모바일 브라우저는 option 자체 스타일을 반영 — color-scheme 보강 */
.tp-sep { color: var(--muted-2); font-size: 15px; }
.tp-hint { margin-left: 6px; font-size: 13px; color: var(--accent); white-space: nowrap; }
.tp-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }  /* 12지지 → 6칸 2줄 */
.tp-chip { height: 38px; padding: 0 4px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: var(--ink-3); font-family: var(--serif); font-size: 14px; }
.tp-chip .ko { font-family: var(--sans); font-size: 11px; margin-left: 3px; opacity: .7; }
.tp-chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.tp-chip.on { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.tp.off .tp-select, .tp.off .tp-chip { background-color: var(--line-soft); color: var(--muted-2); }
.tp.off .tp-hint { display: none; }

@media (max-width: 860px) {
  /* 모바일은 팝오버 대신 하단 시트 — 폭 100%, 터치 타깃 44px 이상 */
  .dp-pop.sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; border-left: none; border-right: none; border-bottom: none; animation: sjrise .22s ease both; }
  .dp-pop.sheet .dp-grab { display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
  .dp-pop.sheet .dp-head { margin-bottom: 10px; }
  .dp-pop.sheet .dp-nav { width: 44px; height: 44px; font-size: 19px; }
  .dp-pop.sheet .dp-select { height: 44px; font-size: 15px; padding-right: 28px; }
  .dp-pop.sheet .dp-dow span { font-size: 12px; }
  .dp-pop.sheet .dp-day { height: 46px; font-size: 15.5px; }
  .dp-pop.sheet .dp-link { padding: 12px 10px; font-size: 13.5px; }
  .dp-trigger .dp-cap { font-size: 12.5px; }
  .tp-select { flex: 1 1 0; min-width: 0; }
  .tp-hint { width: 100%; margin: 4px 0 0; }
  .tp-chip { height: 46px; }
}
@media (max-width: 400px) { .dp-trigger .dp-cap { display: none; } }

/* 결제 화면 "신청 정보 확인" 카드 (web/app.js orderInfoCard · docs/payments_findings.md §15)
   고민은 토글 없이 항상 펼친 편집칸(.info-concern), 이름·주제 요약만 .info-edit-btn 으로 접었다 편다. */
.info-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.info-head-t { min-width: 0; }
.info-title { font-size: 15px; font-weight: 700; }
.info-lead { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); word-break: keep-all; }
.info-edit-btn { flex: none; height: 38px; border-color: var(--accent); color: var(--accent); background: #FFFFFF; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.info-edit-btn:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.info-edit-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(149,99,72,.22); }
.info-edit-btn.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.info-edit-btn.on:hover { background: #161C1B; border-color: #161C1B; color: #FFFFFF; }
.info-edit-btn .ico { width: 15px; height: 15px; flex: none; }
.info-sum { display: flex; flex-direction: column; gap: 10px; }
.info-birth-note { margin: 4px 0 0; }
.info-concern { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.info-concern-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.info-qbox { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.qbox-head .lbl { margin-right: auto; }
.qcount { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.info-edit .label { margin-bottom: 8px; }
.info-edit select.input { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.ck-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 10px; }
@media (max-width: 860px) {
  .info-edit-btn { height: 44px; padding: 0 16px; font-size: 14px; }  /* 모바일 터치 타깃 44px */
  .info-concern .qbox-head button { min-height: 44px; display: inline-flex; align-items: center; padding: 2px 8px; }
  .info-concern .add-field { height: 48px; }
}

/* ==========================================================================
   오늘의 명식 슬라이드 · 고객 후기 (2026-09-23 · docs/samples_reviews_findings.md)
   .slide-wrap = 가로 스크롤 + 스냅 공용 껍데기. 데스크톱은 좌우 화살표(.slide-arr), 모바일은 스와이프(화살표 숨김).
   페이지 가로 스크롤은 생기지 않는다 — 스크롤은 .slide-track 안에서만 일어난다.
   스냅은 proximity 다: mandatory 면 마지막 카드를 끝까지 붙일 수 없는 폭(남은 여백 < 한 화면)에서 Chromium 이 프로그램 스크롤을 첫 카드로 되돌려
   화살표가 아무 일도 못 한다(2026-09-23 실측: scrollLeft=222 로 직접 써도 2 로 되돌아옴). proximity 면 화살표는 카드 경계로, 손가락 스와이프는 그대로 스냅된다.
   ========================================================================== */
.slide-wrap { position: relative; margin: 0 -2px; }
.slide-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 2px 2px 12px; scrollbar-width: thin; scroll-behavior: smooth; }
.slide-track::-webkit-scrollbar { height: 6px; }
.slide-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.slide-track:focus-visible { outline: 2px solid var(--accent-pale); outline-offset: 2px; border-radius: 12px; }
.slide-arr { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(15,23,42,.10); transition: border-color .15s, color .15s, box-shadow .15s; }
.slide-arr:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 16px rgba(15,23,42,.14); }
.slide-wrap.no-arrows .slide-arr { display: none; }
.slide-arr.prev { left: -14px; }
.slide-arr.next { right: -14px; }

/* 오늘의 명식 섹션 — 유명인 카드 섹션 바로 뒤에 올 때 위 경계선으로 시각적으로 끊는다 */
.daily-sec { margin: 30px 0 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.daily-sec .cap { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.daily-sec > .d { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.daily-sec.in-free { margin: 24px 0 16px; }
.daily-item { flex: 0 0 min(208px, 80%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px 13px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .18s, transform .18s; min-width: 0; cursor: pointer; }
.daily-item:hover, .daily-item:focus-visible { border-color: var(--accent); box-shadow: 0 12px 28px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05); transform: translateY(-3px); color: var(--ink); outline: none; }
.daily-item .cap { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.daily-item .pl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 2px 0 4px; }
.daily-item .pl > span { display: flex; flex-direction: column; align-items: center; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 6px; padding: 4px 1px 5px; min-width: 0; }
.daily-item .pl em { font-style: normal; font-size: 9px; color: var(--muted); margin-bottom: 1px; }
.daily-item .pl b { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1.2; color: var(--accent); letter-spacing: .06em; }
.daily-item .pl b.un { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0; line-height: 1.6; }
.daily-item .b { font-size: 12px; color: var(--ink-3); }
.daily-item .key { font-size: 12.5px; line-height: 1.62; color: var(--ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; min-height: 6.4em; }
.daily-item .go { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.daily-item .go .arr { display: inline-block; transition: transform .18s; }
.daily-item:hover .go .arr { transform: translateX(4px); }
.daily-item .go .foot { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); }

/* 고객 후기 — 승인된 것이 1건 이상일 때만 그려진다(app.js reviewSec). 별점 평균은 5건 이상일 때만. */
.review-sec { margin: 30px 0 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.review-sec .cap { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.review-sec > .d { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.review-sec .avg { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--ink-3); }
.review-sec .avg b { font-size: 17px; color: var(--ink); }
.stars { color: var(--accent); letter-spacing: .06em; font-size: 14px; }
.stars .off { color: var(--line); }
.review-item { flex: 0 0 min(280px, 82%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 14px; min-width: 0; }
/* 후기 카드 상단 원국 4기둥 — "오늘의 명식" 카드(.daily-item .pl)와 같은 조판 */
.review-item .pl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 0 0 2px; }
.review-item .pl > span { display: flex; flex-direction: column; align-items: center; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 6px; padding: 4px 1px 5px; min-width: 0; }
.review-item .pl em { font-style: normal; font-size: 9px; color: var(--muted); margin-bottom: 1px; }
.review-item .pl b { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 1.2; color: var(--accent); letter-spacing: .06em; }
.review-item .pl b.un { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0; line-height: 1.5; }
.review-item .meta { font-size: 12px; color: var(--ink-3); }
.review-item .t { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink); }
.review-item .who { margin-top: auto; font-size: 12px; color: var(--muted); }
.review-item .rev-sample { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; align-self: flex-start; }
.review-item .rev-sample:hover { text-decoration: underline; }
.review-item .reward { font-size: 11px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; align-self: flex-start; }

/* 리포트 하단 후기 폼 (/report/<주문번호>#review) */
.review-form { margin-top: 30px; border-left: 3px solid var(--accent); }
.star-pick { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; }
.star-pick .star { width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--line); padding: 0; transition: color .12s, transform .12s; }
.star-pick .star:hover { transform: scale(1.12); }
.star-pick .star.on { color: var(--accent); }
.star-pick .lbl { margin-left: 10px; font-size: 13px; color: var(--muted); }
.review-form .rev-row { display: flex; justify-content: flex-end; margin: 4px 0 14px; }
.review-form .rev-chk { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; cursor: pointer; }
.review-form .rev-chk input { margin-top: 3px; flex: none; }
.review-form .btn { width: 100%; }
.report-hero h1 .sm { font-size: .56em; font-weight: 500; color: var(--accent-pale); letter-spacing: 0; }

@media (max-width: 860px) {
  .slide-arr { display: none; }
  .slide-wrap { margin: 0 -2px; }
  .daily-item:hover, .review-item:hover { transform: none; }
  .daily-sec, .review-sec { margin: 24px 0; padding-top: 20px; }
}

/* ---------- 할인 카운트다운 (supabase/offer_windows.sql · 방문자별 타이머) — 꺼져 있거나(offer_enabled=false) 이 방문자의 타이머가 지났으면 아무것도 그려지지 않는다 ---------- */
/* 1. 플로팅 바(데스크톱·반응형 · .d-only 로 ≤860px 에서는 자동으로 숨는다 — 그 폭에선 아래 2번 "하단 CTA 위 띠"가 대신한다) */
.offer-float {
  position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; z-index: 60;
  padding: 12px 12px 12px 18px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; background: #252D2B; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.28);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.offer-float.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
/* 2026-10-22: 제목·시간을 중앙정렬(텍스트 박스 폭은 그대로 flex:1 1 auto — CTA·닫기 버튼 레이아웃은 건드리지 않는다).
   모바일 띠(.offer-strip-inner)는 이 selector를 그대로 상속해, CTA 버튼이 숨겨진 뒤 생긴 우측 여백 안에서도 텍스트가 가운데로 모인다. */
.offer-float-txt { flex: 1 1 auto; min-width: 0; text-align: center; }
.offer-float-title { font-size: 13px; font-weight: 700; color: #E8B48F; margin-bottom: 4px; }
.offer-float-time { font-size: 15px; font-weight: 700; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.offer-float-time .offer-ticker { font-variant-numeric: tabular-nums; }
.offer-float-suffix { font-size: 13px; font-weight: 400; color: #CBD5E1; }
.offer-float.offer-u3h .offer-ticker { color: #E8B48F; }
.offer-float-cta { flex: none; height: 44px; padding: 0 16px; border-radius: 8px; background: #FFFFFF; color: #252D2B; font-size: 14.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: none; }
.offer-float-x { flex: none; width: 32px; height: 44px; background: transparent; border: none; color: #94A3B8; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }

/* 1-M. 모바일: 기존 하단 고정 CTA 바로 위 띠 — bottomBar() 가 .bottombar 안에 직접 그린다(따로 fixed 를 걸지 않고 같은 패널 안에서 위로 쌓인다) */
.offer-bottombar-wrap { display: flex; flex-direction: column; }
.offer-bottombar-wrap .pair { display: flex; gap: 8px; }
.offer-bottombar-wrap .pair .btn { width: auto; flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-strip-outer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s, margin-bottom .35s; }
.offer-strip-outer.show { grid-template-rows: 1fr; margin-bottom: 10px; }
/* 2026-10-22 버그: .offer-strip-inner 에 패딩(9px 위아래)이 직접 있으면 grid-template-rows:0fr 여도 패딩만큼(18px)은 절대 0으로
   줄어들지 않는다(패딩은 min-content 에 포함되는 고유 치수라 overflow:hidden·min-height:0 로도 못 없앤다) — 설정 로드 뒤 띠가 DOM에
   막 꽂혀 아직 .show 가 붙기 전(3초 노출 지연 동안) 18px 짜리 내용 잘린 조각이 버튼 위에 떠 보이는 게 "모바일에서 처음 몇초간 깨져보임" 원인.
   패딩 없는 .offer-strip-clip 을 실제 grid item(0fr 대상)으로 두고, 패딩·배경은 그 안의 .offer-strip-inner 로 옮겨 진짜 0px 로 접히게 한다. */
.offer-strip-clip { overflow: hidden; min-height: 0; }
/* 2026-10-22: CTA 버튼이 숨겨지면서(.offer-strip-outer .offer-float-cta{display:none}) 우측 패딩만 좁던 비대칭 여백(6px)이
   텍스트를 왼쪽으로 쏠리게 했다 — 좌우 패딩을 맞춰 텍스트(중앙정렬) + 닫기 버튼 균형을 잡는다. */
.offer-strip-inner { display: flex; align-items: center; gap: 10px; background: #252D2B; border-radius: 8px; padding: 9px 12px; }
.offer-strip-outer .offer-float-title { font-size: 12.5px; margin-bottom: 2px; }
.offer-strip-outer .offer-float-time { font-size: 14px; }
/* 2026-10-22 버그: 모바일 띠(offerStripMobile)가 offerFloatBody()를 그대로 재사용해 CTA 버튼까지 찍혀,
   바로 아래 bottomBar() 의 기존 CTA("무료로 내 사주 알아보기 →")와 겹쳐 보였다(design_handoff §1-M: 띠는
   제목+시간+닫기만 — 액션은 아래 기존 버튼이 맡는다). 데스크톱 카드(.offer-float .offer-float-cta)는
   그대로 둬야 해서 .offer-strip-outer 로 스코프를 좁혀 띠 안의 CTA만 숨긴다. */
.offer-strip-outer .offer-float-cta { display: none; }
/* 2026-10-22 사장님 요청: 모바일 띠에서 닫기(×) 버튼 제거 — 띠 자체가 닫히는 게 아니라 기존 하단 CTA 바와
   함께 자연스럽게 사라지는 흐름이라 개별 닫기는 불필요했다. CTA·X 버튼이 모두 사라지면 .offer-float-txt가
   유일한 flex item 이 되어 flex:1 1 auto 로 띠 전체 폭을 채우고, 그 안에서 text-align:center(1114행)가
   제목·시간을 가운데로 모은다 — 실측 결과 justify-content 보정은 불필요했다(데스크톱 .offer-float 의
   닫기 버튼은 그대로 유지 — 아래 selector는 .offer-strip-outer 로 스코프를 좁혀 띠에만 적용된다).*/
.offer-strip-outer .offer-float-x { display: none; }
.offer-strip-outer.offer-u3h .offer-ticker { color: #E8B48F; }

/* 2. 큰 타이머 블록 — 무료 결과 유료 카드(어두운 배경) · 상품 소개·결제·궁합·재회 신청(밝은 배경) */
.offer-big { border-radius: 10px; padding: 12px 14px; margin: 14px 0 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.offer-big.offer-dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.offer-big.offer-light { background: #FBF6F1; border: 1px solid #EAD9CB; }
/* 2026-10-22: 제목·부제·보조문구 텍스트를 중앙정렬. 데스크톱(가로 배치 · 폭이 내용에 맞춰 줄어듦)에서는 시각적으로 거의 변화가 없고,
   모바일(flex-direction:column · align-items:stretch 로 전체 폭을 차지)에서 텍스트가 가운데로 모여 더 균형 있게 보인다. */
.offer-big-head { min-width: 0; text-align: center; }
.offer-big-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.offer-big.offer-dark .offer-big-title { color: #FFFFFF; }
.offer-big.offer-light .offer-big-title { color: #7A4E35; }
.offer-big-sub { font-size: 12.5px; margin-top: 2px; }
.offer-big.offer-dark .offer-big-sub { color: #CBD5E1; }
.offer-big.offer-light .offer-big-sub { color: #8A6A55; }
.offer-recap { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.offer-recap .price-strike { margin-right: 0; }
.offer-rate { font-weight: 800; font-size: 12.5px; }
.offer-big.offer-dark .offer-rate { color: #E8B48F; }
.offer-big.offer-light .offer-rate { color: #B4442F; }
/* 2026-10-22: 일·시·분·초 칸도 중앙정렬 — 모바일(전체 폭 차지)에서 칸들이 왼쪽에 쏠리지 않고 가운데로 모인다. */
.offer-boxes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.offer-box { width: 36px; height: 38px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.offer-box .n { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer-box .u { font-size: 12px; }
.offer-big.offer-dark .offer-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #FFFFFF; }
.offer-big.offer-light .offer-box { background: #FFFFFF; border: 1px solid #EAD9CB; color: var(--ink); }
.offer-big.offer-dark.offer-u3h .offer-box .n { color: #E8B48F; }
.offer-big.offer-light.offer-u3h .offer-box .n { color: #B4442F; }
/* KO 마감 단계(2026-11-20): 7일 넘게 남으면 숫자 칸 대신 날짜 줄 "1월 10일(일) 23:59 종료" — 1초 눈금이 hidden 을 바꿔 단계 전환 */
.offer-big-end { font-size: 16px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.offer-big.offer-dark .offer-big-end { color: #FFFFFF; }
.offer-big.offer-light .offer-big-end { color: var(--ink); }
.offer-boxes[hidden], .offer-big-end[hidden], .offer-big-sub[hidden], .offer-ko-left[hidden] { display: none; }
/* KO 플로팅 바·띠 2줄(2026-11-20 오너): 1줄 사유 + 마감/남은 시간 · 2줄 "~~55,000원~~ → 19,900원 (64% 할인)" — 각 줄 한 줄 고정(넘치면 app.js koFloatFit 이 " 할인" 숨김) */
.offer-ko-line1, .offer-ko-price { white-space: nowrap; overflow: hidden; }
.offer-ko-line1 { font-variant-numeric: tabular-nums; }
.offer-ko-p[hidden], .offer-ko-rw[hidden] { display: none; }
.offer-ko-list { font-size: 13px; font-weight: 400; color: #94A3B8; text-decoration: line-through; }
.offer-ko-arrow { font-size: 13px; font-weight: 400; color: #CBD5E1; }
.offer-ko-now { font-weight: 800; color: #FFFFFF; }
.offer-ko-rate { font-size: 13px; font-weight: 700; color: #E8B48F; }
@media (max-width: 860px) {
  .offer-big { padding: 12px; margin: 12px 0 16px; flex-direction: column; align-items: stretch; }
  .offer-box { width: 32px; height: 34px; }
  .offer-box .n { font-size: 17px; }
}

/* ---------- KO | EN 언어 토글 (docs/en_prd.md §4.1 · Phase 2) — 운영자 브라우저/출시 후에만 렌더되므로 일반 KO 화면에는 영향 없음 ---------- */
.lang-tg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; padding: 2px; flex: none; }
.lang-tg button, .lang-tg a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; background: transparent; height: 30px; min-width: 34px; padding: 0 9px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); cursor: pointer; }
.lang-tg button.on, .lang-tg a.on { background: var(--ink, #1F2937); color: #FFFFFF; }
@media (max-width: 860px) { .lang-tg button, .lang-tg a { height: 28px; min-width: 30px; padding: 0 7px; } }
/* EN(body[lang=en]) 전용 — 영문 라벨이 길어 시진 칩은 한자 위·동물명 아래로 쌓는다 */
body[lang=en] .tp-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; line-height: 1.15; padding: 0 2px; }
body[lang=en] .tp-chip .ko { margin-left: 0; font-size: 10px; }
/* 일본어판(/ja/ · 2026-11-03): Pretendard·Nanum Myeongjo 에 가나가 없어 Noto Sans JP · Noto Serif JP(index.html 이 /ja 에서만 불러옴) → 시스템 일본어 글꼴 순.
   일본어는 띄어쓰기가 없어 word-break: keep-all 이면 줄이 안 바뀐다 → normal + 금칙 처리(line-break: strict). */
html[lang="ja"] { --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', YuGothic, Meiryo, system-ui, sans-serif; --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, serif; }
html[lang="ja"] body { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
/* JA 모바일(2026-11-04): 제목·FAQ 질문·버튼·굵은 한 줄은 문절 단위로 줄바꿈(auto-phrase · Chrome 119+, 미지원 브라우저는 위 normal 그대로) + 줄 길이 균형 — "ので/しょう？" · "ます/か？" · "サ/ブスクリプション" 같은 끊김 방지. 본문 단락은 글자 단위 그대로(양끝 들쭉날쭉 방지). KO·EN 무변경 */
html[lang="ja"] :is(h1, h2, h3, h4, [role="heading"], summary, .btn, button) { word-break: auto-phrase; text-wrap: balance; }
html[lang="ja"] :is(b, strong, [style*="font-weight:700"], [style*="font-weight: 700"]) { word-break: auto-phrase; } /* 상품 카드 가격 줄(app.js 인라인 굵은 div) 포함 */
body[lang=ja] .tp-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; line-height: 1.15; padding: 0 2px; }
body[lang=ja] .tp-chip .ko { margin-left: 0; font-size: 10px; }
/* EN 12지지 칩 = 표시 전용(span · 시각+출생 도시 태양시 보정 결과만 켬 · 클릭/포커스 없음) */
.tp-chips-ro .tp-chip { cursor: default; user-select: none; }
.tp-chips-ro .tp-chip:hover:not(.on) { border-color: var(--line); color: var(--ink-3); }
.tp.off .tp-chips-ro .tp-chip { opacity: .55; }
/* 도시 고르기 전 잠정 시진(시계 시각 기준) — 점선 테두리 · 옅은 강조, 도시가 정해지면 .tent 가 빠지고 보정 결과로 꽉 찬 칩 */
.tp-chips-ro.tent .tp-chip.on { background: rgba(149,99,72,.10); color: var(--accent); border-color: var(--accent); border-style: dashed; }
.tp-tent-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.tp-tent-note[hidden] { display: none; }
.mk-en { align-items: flex-start; font-size: 14px; line-height: 1.6; }
.mk-en input { margin-top: 3px; flex: 0 0 auto; }
.mk-en a { color: var(--accent); text-decoration: underline; }

/* ---------- EN 출생 도시 자동완성 + 시간대 보정 미리보기 (docs/en_prd.md §6 · Phase 3) — EN 입력 화면에서만 그려진다 ---------- */
.geo { position: relative; }
.geo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px; list-style: none; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-card); max-height: 320px; overflow-y: auto; }
.geo-list.hide { display: none; }
.geo-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.geo-opt.on, .geo-opt:hover { background: var(--bg-soft); }
.geo-n { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.geo-r { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.geo-tz { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.geo-empty { padding: 10px; font-size: 13px; color: var(--muted); }
.geo-busy::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: geo-spin .8s linear infinite; }
@keyframes geo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .geo-busy::before { animation: none; } }
.geo-retry { margin-left: 8px; padding: 4px 10px; font: inherit; font-size: 12.5px; border: 1px solid var(--line, #ccc); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.tz-box { margin-top: 10px; }
.tz-prev { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.tz-prev-tz { color: var(--muted); font-weight: 400; }
.tz-prev-line { color: var(--accent); }
.tz-prev-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.tz-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tz-note p { margin: 0 0 8px; }
.tz-warn { color: #8A4B2F; }
.tz-fold { display: flex; gap: 8px; flex-wrap: wrap; }
.tz-fold .opt { flex: 1 1 140px; height: auto; min-height: 50px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; }
.tz-fold .opt span { font-size: 11.5px; font-weight: 400; opacity: .8; }
.geo-attr { margin: 8px 0 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.geo-attr a { color: var(--muted); text-decoration: underline; }

/* ---------- 감사 A (2026-10-24) — 접근성·EN 레이아웃 ---------- */
/* #27 본문으로 건너뛰기(포커스될 때만 보인다) · <main> 포커스 테두리 없음 */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* #30 긴 이름이 제목 상자를 넘지 않게(이름이 들어가는 제목만) */
.h1-name, html[lang="en"] .report-hero h1, html[lang="ja"] .report-hero h1 { overflow-wrap: anywhere; }
/* #49 EN: 선택(소식 메일) 동의 줄은 상자 밖에 따로 · 기본 해제 */
/* #29 EN 입력 1단계 빠진 칸 안내 */
.step1-miss div { margin-top: 2px; }
.form-changed .btn { margin-top: 8px; }
/* #52 EN 모바일: 헤더 "Home" 버튼 숨김(브랜드가 홈 링크 · ← 뒤로 와 겹침) */
@media (max-width: 860px) { html[lang="en"] .hdr-actions .btn-home, html[lang="ja"] .hdr-actions .btn-home { display: none; } }
/* #46 EN·JA: 상담 선생님 사진은 한글을 영문/한자·일본어로 바꾼 m-*_en.jpg / m-*_ja.jpg 를 KO 처럼 전체 구도로(확대 크롭 없음) */
/* ---------- EN K-pop 아이돌 명식(/en/celeb · /en/celeb/<slug>) — 사진 없이 원국 한자 카드 + 일간 오행 모티프 ---------- */
.narrow-960 { max-width: 960px; margin: 0 auto; padding: 44px 20px 80px; }
.idol-card { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .18s, transform .18s; min-width: 0; cursor: pointer; }
.idol-card:hover, .idol-card:focus-visible { border-color: var(--accent); box-shadow: 0 12px 28px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05); transform: translateY(-3px); color: var(--ink); outline: none; }
.idol-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.idol-card .grp { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.idol-card .n { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.idol-card .dm { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.idol-card .go { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: auto; }
.idol-motif { --elc: var(--accent); position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--elc); background: radial-gradient(circle at 50% 40%, #FFFFFF 0 55%, var(--paper) 100%); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); }
.idol-motif b { font-weight: 400; font-size: 22px; color: var(--elc); line-height: 1; }
.idol-motif i { position: absolute; right: -5px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--elc); color: #FFFFFF; font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.idol-motif.big { width: 88px; height: 88px; border-width: 3px; }
.idol-motif.big b { font-size: 44px; }
.idol-motif.big i { width: 32px; height: 32px; font-size: 16px; right: -4px; bottom: -2px; }
.idol-pl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 8px; }
.idol-pl .ip { display: flex; flex-direction: column; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; padding: 5px 2px 6px; min-width: 0; }
.idol-pl .ip em { font-style: normal; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.idol-pl .ip b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.25; color: var(--accent); }
.idol-pl .ip.un b { color: var(--muted-2); }
.idol-pl.big { gap: 8px; padding: 10px; }
.idol-pl.big .ip { padding: 10px 4px; }
.idol-pl.big .ip em { font-size: 12px; margin-bottom: 4px; }
.idol-pl.big .ip b { font-size: 28px; }
.idol-slide .slide-track > .idol-card { flex: 0 0 236px; scroll-snap-align: start; }
.idol-sec-foot { margin: 16px 0 14px; }
.idol-disc { background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.7; color: var(--ink-3); margin: 0 0 22px; }
.idol-disc b { font-weight: 700; color: var(--ink-2); }
.idol-disc.small { font-size: 12.5px; margin: 6px 0 0; }
.idol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 30px; }
.idol-hero { display: flex; align-items: center; gap: 22px; margin: 4px 0 22px; }
.idol-hero .grp { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.idol-hero h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 4px 0 6px; }
.idol-hero .sub { font-size: 15px; color: var(--ink-3); margin: 0 0 6px; }
.idol-hero .meta { font-size: 13px; color: var(--muted); }
.idol-chart { margin-bottom: 22px; }
.idol-chart .cap { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.idol-chart .dm { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.idol-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 30px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; }
.idol-toc a { display: inline-flex; gap: 6px; font-size: 13.5px; color: var(--ink-3); text-decoration: none; }
.idol-toc a span:first-child { color: var(--accent); font-weight: 700; }
.idol-toc a:hover { color: var(--accent); }
.idol-page .chapter { margin-bottom: 40px; }
.idol-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 12px; padding: 20px 22px; margin: 26px 0 8px; }
.idol-cta .t { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.idol-cta .d { font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) {
  .narrow-960 { padding: 20px 16px 32px; }
  .idol-hero { gap: 14px; align-items: flex-start; }
  .idol-motif.big { width: 64px; height: 64px; } .idol-motif.big b { font-size: 32px; } .idol-motif.big i { width: 26px; height: 26px; font-size: 13px; }
  .idol-pl.big .ip b { font-size: 22px; }
  .idol-grid { grid-template-columns: 1fr; }
  .idol-cta .btn { width: 100%; }
  .idol-slide .slide-track > .idol-card { flex-basis: 78%; }
}
.idol-chart .ohang .n { width: 74px; white-space: nowrap; }
.idol-page > .back, .idol-index > .back { margin-right: 12px; }

/* 예시값 확인 모달(2026-10-31 · app.js defGate) — 생년월일이 예시값 1991-04-17 09:30 그대로일 때 */
.dw-root { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dw-back { position: absolute; inset: 0; background: rgba(37,45,43,.5); animation: sjfade .2s ease both; }
.dw-pop { position: relative; width: 100%; max-width: 400px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); padding: 26px 22px 20px; animation: sjfade .18s ease both; }
.dw-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.dw-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); background: #F8EFE9; border: 1px solid var(--accent-pale); border-radius: 999px; padding: 2px 10px; }
.dw-title { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 10px; line-height: 1.4; }
.dw-body { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 8px; word-break: keep-all; }
.dw-note { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; word-break: keep-all; }
.dw-btns { display: flex; flex-direction: column; gap: 8px; }
.dw-btns .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .dw-back, .dw-pop { animation: none; } }
/* ---------- EN YouTube Shorts 방문자 랜딩(/en/youtube · 2026-11-02) — 모바일 우선 ---------- */
.yt-land { max-width: 560px; margin: 0 auto; padding: 22px 16px 48px; }
.yt-pill { margin-bottom: 14px; color: var(--accent); font-weight: 700; }
.yt-h1 { font-size: clamp(27px, 7.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; margin: 0 0 12px; }
.yt-lead { font-size: 15.5px; color: var(--ink-3); line-height: 1.7; margin: 0 0 18px; }
.yt-ex { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.yt-ex-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.yt-ex-top { display: flex; align-items: center; gap: 16px; }
.yt-ex-k { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.yt-ex-n { font-size: 21px; font-weight: 800; margin-top: 2px; }
.yt-ex-img { font-size: 14px; color: var(--ink-3); font-family: var(--serif); }
.yt-ex-d { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 12px 0 8px; }
.yt-ex-more { font-size: 13px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.yt-cta { height: 56px; font-size: 17px; font-weight: 800; }
.yt-facts, .yt-paid { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.yt-facts li, .yt-paid li { font-size: 14px; line-height: 1.6; color: var(--ink-3); padding-left: 22px; position: relative; }
.yt-facts li::before { content: '✓'; position: absolute; left: 0; color: var(--el-wood); font-weight: 800; }
.yt-paid li::before { content: '·'; position: absolute; left: 6px; color: var(--accent); font-weight: 800; }
.yt-facts b, .yt-paid b { color: var(--ink-2); }
.yt-below { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.yt-below p { font-size: 14.5px; line-height: 1.7; color: var(--ink-3); margin: 0 0 12px; }
.yt-h2 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.yt-h2:first-child { margin-top: 0; }
.yt-paid { margin: 0 0 12px; }
.yt-link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.yt-below .yt-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
@media (min-width: 861px) { .yt-land { padding-top: 44px; } }
/* /en/youtube 10초 아이돌 궁합(2026-11-02 · P0-3) — 모바일 우선(390px) */
.yt-calc { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 16px; margin: 0 0 28px; }
.yt-calc .yt-h1 { font-size: clamp(24px, 6.6vw, 34px); }
.yt-calc .yt-lead { margin-bottom: 14px; }
.yt-step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin: 14px 0 8px; }
.yt-step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: 12px; }
.yt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.yt-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; min-width: 64px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; line-height: 1.15; }
.yt-chip small { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.yt-chip.on { border-color: var(--accent); background: #FFF7F1; box-shadow: 0 0 0 2px var(--accent-pale) inset; }
.yt-chip.on small { color: var(--accent); }
.yt-more { height: 46px; margin-bottom: 4px; font-size: 15px; }
.yt-more.on { border-color: var(--accent); }
.yt-calc .dp-trigger { margin-bottom: 10px !important; }
.yt-check { height: 54px; font-size: 16.5px; font-weight: 800; }
.yt-err { color: #B42318; font-size: 13.5px; margin-top: 8px; }
.yt-calc-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.yt-res { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; scroll-margin-top: 72px; }
.yt-res-me { display: flex; gap: 14px; align-items: flex-start; }
.yt-res-han { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--paper); border: 1px solid var(--paper-line); font-family: var(--serif); font-size: 30px; color: var(--accent); }
.yt-res-k { font-size: 12px; font-weight: 700; color: var(--accent); line-height: 1.4; }
.yt-res-n { font-size: 19px; font-weight: 800; margin-top: 2px; }
.yt-res-n span { font-size: 14px; font-weight: 600; color: var(--muted); }
.yt-res-d { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.yt-res-vs { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.yt-res-rel { background: var(--bg-soft); border-radius: 12px; padding: 14px; }
.yt-res-rel-h { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.yt-res-rel p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0; }
.yt-res-rel .yt-res-bonus { margin-top: 8px; font-size: 13.5px; color: var(--accent); }
.yt-res-honest { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 14px; }
.yt-res-act .btn { height: 54px; font-size: 16px; font-weight: 800; }
.yt-res-act .yt-res-compat { margin-top: 12px; }
.yt-res-sub { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; line-height: 1.5; }
.yt-res-more { margin: 14px 0 0; text-align: center; }
.yt-h1-2 { font-size: clamp(22px, 6vw, 28px) !important; }
.dm-gloss { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
/* JA よくあるご質問(app.js faqSec · ja_content.js faq) */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 2px; font-size: 15.5px; font-weight: 700; line-height: 1.6; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 20px; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 2px 18px; font-size: 14.5px; line-height: 1.9; color: var(--ink-2, #475569); }
.faq-a a { color: var(--accent); }
.faq-prod { margin: 0 0 32px; }

/* ---------- JA SEO 페이지(2026-11-04 · web/ja_pages.js · /ja/meishiki · /ja/nikkan · /ja/saju · /ja/yougo · /ja/oshi-aisho · /ja/celeb/g/*) ---------- */
.jap-page { overflow-wrap: anywhere; }
.jap-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.jap-crumb a { color: var(--muted); }
.jap-h1 { margin-bottom: 12px; }
.jap-lead { font-size: 15.5px; line-height: 1.9; max-width: none; margin-bottom: 22px; }
.jap-form { margin: 8px 0 14px; }
.jap-form .h2 { font-size: 20px; }
.jap-form .inline-cta { display: flex !important; }
.jap-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.jap-points li { font-size: 13.5px; line-height: 1.7; padding: 12px 14px; border: 1px solid var(--paper-line); border-radius: 8px; background: var(--paper); color: var(--paper-text); }
.jap-points b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.jap-prose { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); }
.jap-prose h2 { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 40px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); }
.jap-prose h3 { font-size: 17px; margin: 26px 0 8px; color: var(--ink); }
.jap-prose h3 small { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.jap-prose p { margin: 0 0 14px; }
.jap-prose ul, .jap-prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.jap-prose li { margin-bottom: 6px; }
.jap-prose a, .jap-sec a, .jap-more-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.jap-tbl { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.jap-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.jap-tbl th, .jap-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.jap-tbl thead th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.jap-tbl tr:last-child td, .jap-tbl tr:last-child th { border-bottom: 0; }
.jap-mtbl td, .jap-mtbl th { white-space: nowrap; }
.jap-sec { margin: 34px 0; }
.jap-sec h2 { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 0 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.jap-sec h3 { font-size: 16px; margin: 20px 0 10px; }
.jap-stem { --elc: var(--accent); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--elc); font-family: var(--serif); font-size: 18px; color: var(--ink) !important; text-decoration: none !important; }
.jap-stem.big { width: 64px; height: 64px; font-size: 32px; }
.jap-facts { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper); margin-bottom: 18px; }
.jap-facts-han { --elc: var(--accent); flex: none; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--elc); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 40px; background: #FFFFFF; }
.jap-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 18px; flex: 1; min-width: 0; width: 100%; }
.jap-facts dt { font-size: 12px; color: var(--muted); }
.jap-facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.jap-photo { margin: 0 0 22px; }
.jap-photo img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--bg-soft); }
.jap-photo figcaption { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.jap-photo figcaption a { color: var(--muted); }
.jap-idols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.jap-idol { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: var(--ink) !important; text-decoration: none !important; min-width: 0; }
a.jap-idol:hover { border-color: var(--accent); }
.jap-idol-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jap-idol .grp { display: block; font-size: 11.5px; color: var(--muted); }
.jap-idol .n { display: block; font-weight: 700; font-size: 15.5px; }
.jap-idol-dm { --elc: var(--accent); flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--elc); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 17px; }
.jap-idol-pl { font-size: 13px; }
.jap-idol-b { font-size: 12px; color: var(--muted); }
.jap-pairs { padding-left: 1.2em; line-height: 1.9; }
.jap-mlinks { padding-left: 1.2em; line-height: 1.9; font-size: 14px; }
.jap-more-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin: 10px 0 0; }
.jap-ohang { max-width: 520px; }
.jap-cta { margin: 34px 0 20px; }
.jap-pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 18px 0; font-size: 14px; }
.jap-pn a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.jap-rel { margin: 30px 0 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.jap-rel-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.jap-rel-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.jap-rel-a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: var(--ink) !important; text-decoration: none !important; min-width: 0; }
.jap-rel-a:hover { border-color: var(--accent); }
.jap-rel-a b { font-size: 14.5px; }
.jap-rel-a span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.jap-rel-groups { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13.5px; }
.jap-rel-groups a { color: var(--accent); }
.jap-rel-groups span { color: var(--muted); }
.jap-yidx { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 24px; }
.jap-yidx a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #FFFFFF; }
.jap-term { scroll-margin-top: 80px; padding: 2px 0 6px; }
.jap-term-more { font-size: 13.5px; }
.jap-loading { display: flex; justify-content: center; padding: 40px 0; }
.jap-oshi { margin: 6px 0 14px; }
/* P2(2026-11-04): /ja/aisho 早見表 · /ja/tsuhensei 早見表 · /ja/shibi 命盤 */
.jap-stem.sm { width: 26px; height: 26px; font-size: 14px; }
.jap-amtx table, .jap-tstx table { font-size: 13px; text-align: center; }
.jap-amtx th, .jap-amtx td, .jap-tstx th, .jap-tstx td { padding: 6px 4px; text-align: center; white-space: nowrap; }
.jap-amtx tbody th a, .jap-tstx tbody th a { font-family: var(--serif); font-size: 16px; text-decoration: none; }
.jap-amtx tbody th small, .jap-tstx tbody th small { display: block; font-family: var(--sans, inherit); font-size: 10.5px; color: var(--muted); }
.jap-am { font-family: var(--serif); font-weight: 700; }
.jap-am-kg { background: #F6E7DA; color: var(--accent); }
.jap-am-feed, .jap-am-fed { background: #EEF4EA; }
.jap-am-twin, .jap-am-same { background: var(--bg-soft); }
.jap-kg td { background: #FBF3EC; }
.jap-ts a { text-decoration: none !important; }
.jap-facts-tsu { font-size: 26px; }
.jap-zw-out { margin-top: 10px; }
.jap-zw-dl { margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; }
.jap-zw-dl dt { font-size: 12px; color: var(--muted); }
.jap-zw-dl dd { margin: 0; font-size: 15px; }
.jap-zw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 0 12px; }
.jap-zw-c { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #FFFFFF; font-size: 12px; }
.jap-zw-c .br { font-family: var(--serif); color: var(--muted); }
.jap-zw-c b { font-size: 12.5px; line-height: 1.35; }
.jap-zw-c .st { font-size: 11px; color: var(--accent); font-weight: 700; }
.jap-zw-c.is-ming { border-color: var(--accent); border-width: 2px; }
.jap-zw-c.is-zw { background: #FBF3EC; }
.jap-zw-mid { grid-column: 2 / 4; grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; color: var(--muted); }
.jap-zw-mid b { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.jap-oshi-res { margin-bottom: 26px; }
.jap-oshi-vs { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: center; margin-bottom: 14px; }
.jap-oshi-vs small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.jap-oshi-vs .x { font-size: 22px; color: var(--muted); }
.jap-oshi-h { font-size: 18px; margin: 12px 0 6px; }
.jap-oshi-bonus { padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--paper-line); font-size: 14px; }
.jap-oshi-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.jap-oshi-act .btn { white-space: normal; height: auto; min-height: 46px; text-align: center; }
.jap-extra { margin-top: 34px; }
.jap-x-h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.jap-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.jap-group { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; color: var(--ink) !important; text-decoration: none !important; min-width: 0; }
.jap-group img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 4px; }
.jap-group b { font-size: 15px; }
.jap-group span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.jap-learn .jap-rel-g { margin-top: 6px; }
@media (max-width: 760px) {
  .jap-prose { font-size: 15px; }
  .jap-prose h2, .jap-sec h2, .jap-x-h2 { font-size: 19px; }
  .jap-facts { flex-direction: column; align-items: flex-start; }
  .jap-tbl th, .jap-tbl td { padding: 8px 9px; font-size: 13px; }
  .jap-oshi-vs { gap: 14px; }
}

/* EN·JA 메인 플로팅 바 — 히어로가 KO 보다 길어 첫 화면 아래쪽 CTA 버튼과 겹치지 않게 오른쪽(히어로 패널 아래)으로 붙인다(KO 는 이 클래스를 쓰지 않음) */
@media (min-width: 1100px) { .offer-float.offer-float-os { left: auto; right: max(12px, calc((100vw - 1160px) / 2 + 20px)); margin: 0; width: 520px; } }
/* JA 궁합 1인당 금액 줄(원가 취소선 대신 · 표시 전용) — 판매가 옆 （税込）(.tax-in)처럼 작고 차분하게 */
.compat-pp { font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin: -2px 0 8px; }
.pm-price + .compat-pp { margin: 4px 0 0; }
/* EN·JA 아이돌 궁합 퍼널(2026-11-07 · app.js IC · /compat/1|2?idol=<id>) — 모바일 우선 */
.ic-wrap .steps-bar { grid-template-columns: repeat(2, 1fr); }
.ic-idol { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 14px; }
.ic-han { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--paper); border: 1px solid var(--paper-line); font-family: var(--serif); font-size: 28px; color: var(--accent); }
.ic-grp { font-size: 12px; font-weight: 700; color: var(--accent); }
.ic-n { font-size: 19px; font-weight: 800; margin-top: 1px; }
.ic-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ic-lead { font-size: 15px !important; line-height: 1.75; margin-bottom: 26px; }
.ic-teaser { padding: 20px 18px; margin-bottom: 12px; text-align: center; }
.ic-vs { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 12px 0 6px; }
.ic-x { font-size: 20px; color: var(--muted); }
.ic-vs-l { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.ic-type { font-size: 22px; font-weight: 800; margin: 12px 0 8px; }
.ic-p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin: 0; text-align: left; }
.ic-bonus { margin-top: 8px; font-size: 14px; color: var(--accent); }
.ic-facts { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; display: grid; gap: 8px; }
.ic-facts li { background: var(--bg-soft); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; line-height: 1.6; font-weight: 600; }
.ic-lock { padding: 18px; margin-bottom: 12px; }
.ic-cap { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.ic-lock ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.ic-lock li { display: flex; gap: 10px; align-items: flex-start; }
.ic-lock li b { display: block; font-size: 14.5px; line-height: 1.5; }
.ic-lk { flex: 0 0 auto; width: 14px; height: 11px; margin-top: 6px; border-radius: 3px; background: var(--accent); position: relative; }
.ic-lk::before { content: ''; position: absolute; left: 3px; top: -6px; width: 8px; height: 7px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.ic-blur { display: block; height: 9px; width: 86%; margin-top: 6px; border-radius: 5px; background: linear-gradient(90deg, var(--line), var(--paper-line), var(--line)); filter: blur(1.5px); opacity: .8; }
.ic-buy { padding: 18px; margin-bottom: 16px; text-align: center; }
.ic-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ic-buy .btn, .ic-wrap > .btn { height: 56px; font-size: 16px; font-weight: 800; }
.hero-m-rel .ic-home { margin-top: 0; }
/* 아이돌 궁합 v2(2026-11-19 · docs/prd_idol_compat_funnel.md): 특성 · 바꾸기 · 점수 · 잠긴 장 미리보기 · 공유 */
.ic-idol-full { display: block; }
.ic-idol-top { display: flex; gap: 14px; align-items: center; }
.ic-traits { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ic-tk { font-size: 12.5px; font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.ic-traits p { margin: 6px 0 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.ic-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-kw span { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.ic-more-l { display: inline-block; margin-top: 12px; font-size: 14px; }
.ic-switch { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ic-switch > summary { cursor: pointer; padding: 12px 16px; font-size: 14.5px; font-weight: 800; color: var(--accent); list-style: none; }
.ic-switch > summary::-webkit-details-marker { display: none; }
.ic-switch > summary::after { content: ' \25BE'; }
.ic-switch[open] > summary::after { content: ' \25B4'; }
.ic-search { display: block; margin: 0 14px 10px; width: calc(100% - 28px); box-sizing: border-box; }
.ic-picks { max-height: 320px; overflow-y: auto; padding: 0 14px 12px; }
.ic-pg { margin-top: 8px; }
.ic-pg-h { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.ic-pg-b { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-pick { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ic-pick.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.ic-pick[hidden], .ic-pg[hidden] { display: none; }
.ic-none { padding: 0 14px 12px; }
.ic-gosub { text-align: center; margin: 10px 0 0; color: var(--muted); }
.ic-score { --p: 70; width: 168px; height: 168px; margin: 14px auto 10px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--paper-line) 0); }
.ic-score > div { width: 134px; height: 134px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ic-pct { font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.ic-score span { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.ic-share { margin-top: 14px; }
.ic-ch { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.ic-cap + .ic-ch { border-top: 0; padding-top: 2px; }
.ic-ch-h { display: flex; gap: 10px; align-items: flex-start; }
.ic-ch-h b { font-size: 15px; line-height: 1.5; }
.ic-ch-p { margin: 6px 0 0 24px; font-size: 14px; line-height: 1.65; color: var(--ink-2); filter: blur(4px); user-select: none; -webkit-user-select: none; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.ic-ch-q { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0 10px; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 700; }
.ic-next { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 24px; }
.ic-next .btn { width: 100%; }

/* KO 결제 화면 첫 화면(2026-11-21 · web/app.js koCkSummary · koInfoLine · ckSkel · 모바일 2초 이탈)
   제목 바로 아래 상품 요약(이름 · 한 줄 가치 · 정가 취소선 → 지금 금액 · 할인 사유 배지) · 신청 정보 한 줄 · 설정 도착 전 숫자 없는 자리표시 */
.ck-back { display: inline-block; margin-bottom: 14px; }
.ck-sum { border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; padding: 16px 18px; margin-bottom: 12px; }
.ck-sum-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ck-sum-val { margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--ink-3); word-break: keep-all; }
.ck-sum-price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 15px; color: var(--ink-3); min-height: 26px; }
.ck-sum-price .price-strike { font-size: 14px; }
.ck-sum-now { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ck-sum-off { font-weight: 700; color: var(--accent); }
.ck-sum-promo { margin-top: 8px; }
.ck-info-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; margin-bottom: 12px; }
.ck-info-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-info-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ck-info-v { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-concern .info-concern { border-top: 0; margin-top: 0; padding-top: 0; }
.ck-skel { display: inline-block; height: 1.15em; max-width: 100%; border-radius: 6px; vertical-align: middle; background: linear-gradient(90deg, var(--line-soft) 25%, var(--line) 50%, var(--line-soft) 75%); background-size: 200% 100%; animation: ckSkel 1.2s linear infinite; }
.ck-skel-box { display: flex; flex-direction: column; gap: 10px; }
.ck-skel-box .ck-skel { height: 64px; border-radius: 12px; }
@keyframes ckSkel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ck-skel { animation: none; } }
@media (max-width: 860px) {
  .ck-h1 { font-size: 22px; }
  .ck-sum { padding: 14px 16px; }
  .ck-info-line .info-edit-btn { height: 40px; padding: 0 14px; }
}
