/* 마음결 — 모바일 우선 스타일
   기준: 기획서 색상값 + GPT 시안 5장(시작·입력·결과·진행자 안내·선물 성구).
   색은 :root 토큰만 바꾸면 전체에 반영됩니다. */

/* 마루부리(네이버 배포, SIL OFL 1.1) — 배포처 CSS는 굵기마다 이름이 달라 한 이름(Maruburi Web)으로 묶어 등록 */
@font-face { font-family: 'Maruburi Web'; font-weight: 400; font-display: swap; src: url(../assets/fonts/MaruBuri-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Maruburi Web'; font-weight: 600; font-display: swap; src: url(../assets/fonts/MaruBuri-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Maruburi Web'; font-weight: 700; font-display: swap; src: url(../assets/fonts/MaruBuri-Bold.woff2) format('woff2'); }

:root {
  --bg: #F7F4EE;
  --card: #FFFEFB;
  --text: #302E2B;
  --green: #496456;
  --gold: #B49867;
  --line: #E6DED2;

  --muted: #67625A;
  --green-deep: #3B5246;
  --green-soft: #E9EEE8;
  --green-tint: #DCE6DD;
  --beige: #EFE9DF;          /* 태그·질문 상자 바탕 */
  --gold-soft: #F4EEE2;
  --gold-text: #7E6639;      /* 금색 글자(대비 확보용) */
  --field-line: #D6CCBC;
  --danger: #9C4235;
  --danger-soft: #F8ECE9;

  --serif: 'Maruburi Web', 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(48, 46, 43, .04), 0 8px 24px rgba(48, 46, 43, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: left;
  overflow-x: hidden;
}
@media (min-width: 400px) { :root { --gutter: 24px; } body { font-size: 18px; } }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.42; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.22em; }

/* ── 레이아웃 ── */
.wrap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 600px; }
.screen { position: relative; padding: 0 0 64px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }

/* ── 머리글 ── */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(247, 244, 238, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 4px var(--gutter); display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.logo-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; min-height: 48px; cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--text); }
.logo-leaf { width: 36px; height: 36px; color: var(--green); }
.menu-btn { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 6px; border-radius: 10px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu { position: absolute; right: 0; left: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(48, 46, 43, .1); }
.menu ul { list-style: none; margin: 0 auto; padding: 8px var(--gutter) 16px; max-width: 1180px; }
.menu button { width: 100%; text-align: left; min-height: 52px; padding: 10px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 1rem; }
.menu li:last-child button { border-bottom: 0; }
.menu .danger { color: var(--danger); }
@media (min-width: 768px) { .menu { left: auto; width: 300px; border: 1px solid var(--line); border-radius: 0 0 0 var(--radius); } }

/* 잎 장식 — [GPT 이미지 교체 위치] assets/images/leaf-branch.png (투명 PNG, 약 600×480) */
.leaf-deco { position: absolute; top: 0; right: 0; width: 150px; height: 140px; pointer-events: none; z-index: 0; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 140'%3E%3Cg fill='none' stroke='%23A39065' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M150 8C118 18 92 34 70 62S40 112 30 134'/%3E%3Cpath d='M112 22c-2 12 2 22 10 30M88 42c-6 10-6 22 0 32M70 64c-8 6-12 16-10 28M98 30c10-8 22-10 34-6'/%3E%3C/g%3E%3Cg fill='%2394A88F' fill-opacity='.62'%3E%3Cpath d='M122 52c-14-4-20-16-14-30 12 6 18 16 14 30z'/%3E%3Cpath d='M88 74c-12-8-14-22-4-34 10 10 12 22 4 34z'/%3E%3Cpath d='M60 92c-10-10-8-24 4-32 6 12 4 24-4 32z'/%3E%3Cpath d='M132 24c-12 6-26 4-34 6 10-12 24-14 34-6z'/%3E%3Cpath d='M44 116c-4-12 2-24 14-28 2 12-4 22-14 28z'/%3E%3C/g%3E%3Cg fill='%23B8C6B2' fill-opacity='.7'%3E%3Cpath d='M104 40c12-10 26-8 34 0-12 8-24 8-34 0z'/%3E%3Cpath d='M78 58c14-6 26 0 30 10-14 4-24 0-30-10z'/%3E%3Cpath d='M52 84c14-2 24 6 26 16-14 0-22-6-26-16z'/%3E%3C/g%3E%3C/svg%3E") no-repeat top right / contain; }
@media (min-width: 768px) { .leaf-deco { width: 220px; height: 200px; } }
.screen > .wrap, .screen > #result-root { position: relative; z-index: 1; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 24px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; line-height: 1.35; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(73, 100, 86, .18); }
.btn-primary:hover { background: var(--green-deep); }
.btn-line { background: var(--card); color: var(--green-deep); border-color: var(--green); }
.btn-line:hover { background: var(--green-soft); }
.btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; color: var(--green-deep); min-height: 48px; padding: 8px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); font-size: 1rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-line { background: var(--card); color: var(--danger); border-color: #D9B3AC; }
.btn-block { width: 100%; }
.btn-sm { min-height: 48px; padding: 8px 16px; font-size: .95rem; }
.chev { font-size: 1.4em; line-height: 1; margin-top: -2px; }
.btn-stack { display: grid; gap: 10px; }

/* ── 시작 화면 (시안 1) ── */
.start { padding-top: 28px; }
.eyebrow { color: var(--gold-text); font-size: .95rem; font-weight: 500; }
.eyebrow::after, .title-rule::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin-top: 14px; }
.hero-title { font-size: 2.15rem; line-height: 1.42; margin-top: 26px; }
.hero-desc { color: #4A4641; margin-top: 18px; font-size: 1rem; }
@media (min-width: 400px) { .hero-title { font-size: 2.4rem; } }

.img-slot { position: relative; border-radius: var(--radius); overflow: hidden; }
.img-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slot { margin: 26px calc(var(--gutter) * -1) 28px; aspect-ratio: 6 / 5; max-height: 380px; border-radius: 0; background:
  radial-gradient(ellipse 70% 40% at 30% 100%, #E8DCC7 0%, transparent 70%),
  linear-gradient(170deg, #F7F1E6 0%, #F2EADC 55%, #EADFCB 100%); }
@media (min-width: 600px) { .hero-slot { margin-left: 0; margin-right: 0; border-radius: var(--radius); } }
.slot-shape { position: absolute; }
.slot-shape.s1 { left: 8%; right: 30%; bottom: 14%; height: 18%; background: #FFFDF8; border-radius: 4px 4px 10px 10px; transform: skewX(-8deg); box-shadow: 0 10px 20px rgba(120, 100, 70, .12); }
.slot-shape.s2 { left: 12%; bottom: 34%; width: 26%; height: 9%; background: #7C9479; border-radius: 3px; transform: skewX(-8deg); opacity: .85; }
.slot-shape.s3 { right: 12%; bottom: 30%; width: 14%; height: 34%; border-radius: 40% 40% 12px 12px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(230,240,232,.8)); border: 1px solid #DCE3D8; }
body.show-slots .img-slot::after { content: '이미지 교체 위치 · ' attr(data-slot); position: absolute; left: 10px; top: 8px; font-size: .7rem; color: var(--gold-text); background: rgba(255, 254, 251, .9); padding: 2px 8px; border-radius: 6px; }

.rule-note { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin-top: 18px; text-align: center; }
.rule-note::before, .rule-note::after { content: ''; flex: 1 1 0; height: 1px; background: #CFC5B5; min-width: 16px; }

.notice { margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: .95rem; }
.notice-title { font-family: var(--serif); font-weight: 700; color: var(--green-deep); margin-bottom: 6px; }
.dot-list { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); }
.dot-list li + li { margin-top: 4px; }

/* ── 입력 화면 (시안 2·3) ── */
#screen-input .wrap { padding-top: 22px; }
.step-count { font-family: var(--serif); color: var(--gold-text); font-size: 1.15rem; font-weight: 700; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 360px; margin-top: 10px; }
.progress span { height: 7px; border-radius: 999px; background: #E4DCCF; transition: background .25s; }
.progress span.on { background: var(--green); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { font-size: 1.85rem; margin-top: 26px; max-width: 80%; }
.step-sub { color: #4A4641; margin-top: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.step[data-step="3"] .step-title { margin-bottom: 24px; }

.field { margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.label { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.label.sm { font-size: 1rem; margin-bottom: 8px; }
.opt { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .85rem; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.info { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: #57524B; margin-top: 12px; }
.info::before { content: 'i'; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-text); font: 700 12px/17px var(--serif); text-align: center; }
.err { font-size: .92rem; color: var(--danger); margin-top: 8px; font-weight: 600; }
.err:empty { display: none; }
.warn { font-size: .9rem; color: #6B5428; background: var(--gold-soft); border: 1px solid #E5D6B8; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.counter { text-align: right; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.foot-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 8px; }

input[type="text"], input[type="search"], select, textarea {
  width: 100%; min-height: 56px; padding: 12px 16px;
  background: #FFFEFB; border: 1px solid var(--field-line); border-radius: 10px;
  font-size: 1rem; line-height: 1.5;
}
select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #FFFEFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23302E2B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
textarea { min-height: 190px; resize: vertical; line-height: 1.7; padding: 16px 18px; border-radius: var(--radius-sm); }
input::placeholder, textarea::placeholder { color: #A39C91; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(73, 100, 86, .16); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; background-color: var(--danger-soft) !important; }

.date-row { display: flex; gap: 8px; }
.date-part { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.date-part.y { flex: 1.35 1 0; }
.date-part select { padding-left: 12px; padding-right: 30px; background-position: right 8px center; font-size: 1.02rem; }
.date-part span { flex: none; color: var(--text); font-size: .95rem; }
.place-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }

/* 붙은 세그먼트 버튼 (시안: 양력/음력, 시간 3택) */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--field-line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-item { position: relative; cursor: pointer; }
.seg-item + .seg-item { border-left: 1px solid var(--field-line); }
.seg-item input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-item span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px 6px; text-align: center; line-height: 1.3; font-size: .98rem; transition: background .15s, color .15s; }
.seg-item input:checked + span { background: var(--green); color: #fff; font-weight: 600; }
.seg-item input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.sub-field { margin-top: 12px; }
.sub-panel { margin-top: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.scope-note { margin-top: 14px; font-size: .92rem; background: var(--green-soft); color: var(--green-deep); border-radius: var(--radius-sm); padding: 12px 14px; }

.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--green); flex: none; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px; font-size: .95rem; border-radius: 999px; background: var(--beige); color: #4A4641; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--green); color: #fff; font-weight: 600; }

details.examples { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; }
details.examples summary { min-height: 48px; padding: 12px 16px; cursor: pointer; color: var(--green-deep); font-weight: 600; }
details.examples ul { padding: 0 16px 14px 34px; margin: 0; color: var(--muted); }

.step-nav { display: grid; gap: 4px; margin-top: 4px; }

/* ── 결과 화면 (시안 2·3·4·5) ── */
.result-layout { display: block; padding-top: 22px; }
.result-main { min-width: 0; }

.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pill-sample { background: var(--gold); color: #fff; }
.pill-line { border: 1px solid var(--gold); color: var(--gold-text); background: var(--card); }
.cat { display: block; color: var(--green); font-size: .95rem; font-weight: 500; margin-top: 12px; }
.page-title { font-size: 1.75rem; margin-top: 4px; max-width: 86%; }
.title-rule::after { margin-top: 16px; }
@media (min-width: 400px) { .page-title { font-size: 1.95rem; } }

.sample-banner { font-size: .88rem; color: #5B4A2A; background: var(--gold-soft); border: 1px solid #E5D6B8; border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 18px; }
.sample-banner strong { color: #4A3B1F; }

.soft-card { background: var(--green-soft); border-radius: var(--radius); padding: 22px 20px; margin-top: 22px; }
.soft-card h2 { font-size: 1.3rem; }
.soft-card .summary-text { margin-top: 10px; white-space: pre-wrap; color: #3E3B37; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-tag { font-size: .82rem; background: var(--card); color: var(--green-deep); padding: 2px 12px; border-radius: 999px; }
.soft-card .edit-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soft-card textarea { min-height: 120px; margin-top: 10px; }
.scope-line { font-size: .88rem; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--green-tint); }

.hline { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.ask-row h3, .h-sec { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; color: var(--green-deep); }
.ask-row .ico { color: var(--gold); width: 1.4em; height: 1.4em; }
.ask-row p { margin-top: 8px; }

.verse-teaser { display: block; margin-top: 22px; padding: 26px 20px 22px; text-align: center; text-decoration: none; color: inherit; background: linear-gradient(180deg, #FBF6EA, #FFFDF7); border: 1px solid #D8C49E; border-radius: 8px; outline: 1px solid #E5D6B8; outline-offset: -7px; }
.verse-teaser .ico { width: 44px; height: 44px; color: var(--gold); }
.verse-teaser strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--green-deep); margin-top: 6px; }
.verse-teaser span { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }

.view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--beige); padding: 4px; border-radius: 14px; margin-top: 28px; }
.view-switch button { min-height: 50px; border: 0; border-radius: 11px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; font-size: .98rem; }
.view-switch button[aria-pressed="true"] { background: var(--card); color: var(--green-deep); box-shadow: var(--shadow); }

.toc-mobile { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc-mobile > summary { min-height: 54px; padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--green-deep); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc-mobile > summary::-webkit-details-marker { display: none; }
.toc-mobile > summary .ico { transition: transform .2s; }
.toc-mobile[open] > summary .ico { transform: rotate(180deg); }
.toc-list { list-style: none; padding: 0 8px 10px; margin: 0; }
.toc-list a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.4; }
.toc-list a:hover, .toc-list a[aria-current="true"] { background: var(--green-soft); color: var(--green-deep); }
.toc-list .n { flex: none; width: 24px; color: var(--gold-text); font-weight: 700; font-size: .85rem; }
.toc-desktop { display: none; }

.focus-intro { margin-top: 30px; }
.focus-intro h2 { font-size: 1.3rem; }
.focus-intro p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .85rem; color: var(--gold-text); margin-top: 8px; font-weight: 600; }
.flow-steps span + span::before { content: '→ '; color: #CBBFA8; }

/* 섹션 (시안 2: 강점 해석 화면 구성) */
.sec { scroll-margin-top: 76px; padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); }
.sec:first-of-type { margin-top: 26px; }
.sec-head .page-title { font-size: 1.6rem; }
@media (min-width: 400px) { .sec-head .page-title { font-size: 1.75rem; } }

.core-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 22px 18px; margin-top: 22px; box-shadow: var(--shadow); }
.core-icon { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold); }
.core-icon .ico { width: 30px; height: 30px; }
.core-body { flex: 1 1 auto; min-width: 0; padding-left: 16px; border-left: 1px solid #D9C9A8; }
.core-body h3 { font-size: 1.22rem; color: var(--green-deep); line-height: 1.5; }
.core-body p { margin-top: 10px; color: #3E3B37; }
.core-body p + p { margin-top: 8px; }
@media (max-width: 380px) { .core-icon { width: 46px; height: 46px; } .core-icon .ico { width: 24px; height: 24px; } .core-card { gap: 12px; } .core-body { padding-left: 12px; } }

.blk { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.blk h3 { font-size: 1.18rem; color: var(--green-deep); margin-bottom: 8px; }
.blk p + p, .blk p + ul, .blk ul + p { margin-top: 10px; }
.quote { position: relative; background: var(--beige); border-radius: var(--radius-sm); padding: 16px 18px 16px 44px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.6; }
.quote::before { content: '“'; position: absolute; left: 16px; top: 8px; font-size: 2rem; line-height: 1; color: var(--gold); font-style: normal; }
.quote::after { content: ''; position: absolute; left: 12px; top: 18px; bottom: 16px; width: 2px; background: var(--gold); opacity: .0; }
.list { padding-left: 1.15em; }
.list li + li { margin-top: 6px; }
.lbl { font-weight: 700; color: var(--green-deep); }

/* 반응 버튼 (시안: 알약형 + 아이콘) */
.react { margin-top: 20px; }
.react-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.react-btns button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 6px 6px; border-radius: 999px; border: 1px solid #D6CCBC; background: var(--card); cursor: pointer; font-size: .92rem; line-height: 1.25; transition: background .15s, border-color .15s; }
.react-btns button .ico { width: 1.15em; height: 1.15em; }
.react-btns button[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-deep); font-weight: 700; }
.react-btns button[data-type="different"][aria-pressed="true"] { background: var(--gold-soft); border-color: #D9C9A8; color: #5B4A2A; }
.react-btns button[data-type="skip"][aria-pressed="true"] { background: var(--beige); border-color: #D6CCBC; color: #57524B; }
@media (max-width: 420px) { .react-btns { gap: 6px; } .react-btns button { flex-direction: column; gap: 2px; min-height: 60px; font-size: .86rem; border-radius: 14px; white-space: nowrap; } }
.react-note { margin-top: 12px; }
.react-note label { font-size: .95rem; font-weight: 600; display: block; margin-bottom: 6px; }
.react-note textarea { min-height: 100px; }
.react-note .hint { margin-top: 4px; }
.sec.is-skip .fade-on-skip { opacity: .5; }

/* 진행자 안내 (시안 4) */
.guide { margin-top: 14px; }
.guide > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 18px; border: 1px solid #CFC5B5; border-radius: 12px; background: var(--card); cursor: pointer; list-style: none; font-weight: 600; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary .ico:first-child { color: var(--text); }
.guide > summary .s-txt { flex: 1 1 auto; }
.guide > summary .chev-ico { transition: transform .2s; }
.guide[open] > summary { border-color: var(--green); }
.guide[open] > summary .chev-ico { transform: rotate(180deg); }
.guide .when-open { display: none; }
.guide[open] > summary .when-open { display: inline; }
.guide[open] > summary .when-closed { display: none; }
.guide-body { margin-top: 14px; padding: 22px 18px; background: #FBF8F2; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-body h4 { font-family: var(--serif); font-size: 1.45rem; color: var(--green-deep); margin-top: 12px; line-height: 1.4; }
.guide-body .g-sub { margin-top: 6px; color: #4A4641; font-size: .98rem; }
.read-aloud { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.read-aloud .t { display: block; font-size: .82rem; font-weight: 700; color: var(--gold-text); margin-bottom: 4px; }
.read-aloud p { font-family: var(--serif); }
.resp { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.resp-icon { flex: none; position: relative; width: 50px; height: 50px; display: grid; place-items: center; color: var(--gold); }
.resp-icon::before { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 34px; border-radius: 50%; background: #EFEBE4; z-index: 0; }
.resp-icon .ico { position: relative; z-index: 1; width: 34px; height: 34px; }
.resp-icon.green { color: var(--green); }
.resp-body { flex: 1 1 auto; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.resp-body h5 { font-family: var(--serif); font-size: 1.15rem; color: var(--green-deep); margin: 0; line-height: 1.4; }
.resp-body p { margin-top: 6px; font-size: .97rem; }
.remember { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; background: var(--green-soft); border-radius: var(--radius); padding: 18px 16px; }
.remember .ico { width: 34px; height: 34px; color: var(--green); flex: none; }
.remember div { padding-left: 14px; border-left: 1px solid var(--green-tint); }
.remember h5 { font-family: var(--serif); font-size: 1.12rem; color: var(--green-deep); margin: 0; }
.remember p { margin-top: 4px; font-size: .95rem; }
.guide-close { margin-top: 14px; width: 100%; justify-content: space-between; }

/* 작은 실천 */
.practice { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.practice h3 { display: flex; align-items: center; gap: 8px; font-size: 1.18rem; color: var(--green-deep); margin-bottom: 6px; }
.practice h3 .ico { color: var(--gold); }
.practice .check { font-size: .98rem; }
.practice input[type="text"] { margin-top: 6px; min-height: 50px; }

.next-btn { margin-top: 26px; justify-content: space-between; }
.sec-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.sec-foot .ico { color: var(--green); width: 1.1em; height: 1.1em; }

/* ⑩ 행동 편집 */
.act-group + .act-group { margin-top: 22px; }
.act-group h4 { font-family: var(--serif); font-size: 1.08rem; color: var(--green-deep); }
.act-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.act-row input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: var(--green); cursor: pointer; }
.act-row input[type="text"] { min-height: 50px; padding: 10px 12px; }
.act-row .del { flex: none; min-height: 50px; min-width: 50px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; color: var(--muted); font-size: .85rem; }
.act-add { display: flex; gap: 8px; margin-top: 10px; }
.act-add input { flex: 1 1 auto; min-width: 0; }
.act-add .btn { flex: none; min-height: 50px; }

/* 만세력 표 */
.pillars { border-collapse: separate; border-spacing: 6px; table-layout: fixed; margin: 6px -6px 0; width: calc(100% + 12px); }
.pillars th { font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.35; padding: 2px; text-align: center; }
.pillars th small { display: block; font-weight: 400; font-size: .72rem; }
.pillars td { background: var(--card); border: 1px dashed #D6CCBC; border-radius: 10px; text-align: center; padding: 14px 2px; font-family: var(--serif); font-size: 1.1rem; color: #A39C91; }
.pillars td.off { font-family: var(--sans); font-size: .72rem; line-height: 1.35; color: var(--muted); background: var(--beige); }
.pillars .rowh { width: 2.6em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.term-list dt { font-weight: 700; margin-top: 10px; }
.term-list dd { margin: 0; color: #4A4641; font-size: .96rem; }

/* 10년 흐름 */
.years { list-style: none; padding: 0; margin: 0; }
.years li { display: grid; grid-template-columns: 4.8em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.years li:first-child { border-top: 0; padding-top: 4px; }
.years .y { font-weight: 700; line-height: 1.35; }
.years .y small { display: block; font-weight: 500; color: var(--gold-text); font-size: .82rem; margin-top: 2px; }
.years .theme { font-family: var(--serif); font-weight: 700; color: var(--green-deep); }
.years li.now { background: linear-gradient(90deg, var(--green-soft), transparent); border-radius: 10px; padding-left: 8px; }
.daeun-box { margin-top: 16px; background: var(--card); border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }

/* 근거 구분 라벨 */
.basis { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; margin-right: 6px; vertical-align: 2px; }
.basis-saju { background: var(--gold-soft); color: var(--gold-text); border: 1px solid #E5D6B8; }
.basis-life { background: var(--green-soft); color: var(--green-deep); border: 1px solid var(--green-tint); }
.caution { font-size: .92rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: #4A4641; }
.checks .check { font-size: .97rem; }

/* 선물 성구 (시안 5) */
.label-bar { display: inline-block; padding-left: 10px; border-left: 3px solid var(--gold); color: var(--gold-text); font-size: .9rem; line-height: 1.2; }
.verse-frame { position: relative; margin-top: 22px; padding: 30px 22px 10px; background: linear-gradient(180deg, #FFFDF8, #FBF7EE); border: 1px solid #CDB58A; border-radius: 6px; outline: 1px solid #E2D2B0; outline-offset: -7px; }
.verse-frame::before, .verse-frame::after { content: ''; position: absolute; width: 16px; height: 16px; border: 1px solid #CDB58A; background: var(--bg); }
.verse-frame::before { top: -1px; left: -1px; border-radius: 0 0 16px 0; border-top: 0; border-left: 0; }
.verse-frame::after { bottom: -1px; right: -1px; border-radius: 16px 0 0 0; border-bottom: 0; border-right: 0; }
.verse-top { display: flex; align-items: center; gap: 14px; color: var(--gold); }
.verse-top::before, .verse-top::after { content: ''; flex: 1 1 0; height: 1px; background: #D9C9A8; }
.verse-top .ico { width: 56px; height: 56px; }
.verse-text { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; line-height: 1.7; margin-top: 20px; text-align: center; word-break: keep-all; }
.verse-ref { margin-top: 12px; text-align: center; font-size: .95rem; color: #3E3B37; }
.verify { display: block; text-align: center; margin-top: 8px; font-size: .8rem; color: var(--danger); }
.verify.ok { color: var(--green); }
.v-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px 0; border-top: 1px solid #E2D2B0; }
.verse-frame .v-item:first-of-type { margin-top: 22px; border-top-color: #CDB58A; }
.v-item > .ico { width: 34px; height: 34px; color: var(--gold); margin-top: 2px; }
.v-item h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--green-deep); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v-item p { margin-top: 6px; }
.v-item .check { margin-top: 4px; }
.tag-expl { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--beige); color: var(--gold-text); font-family: var(--sans); font-size: .76rem; font-weight: 600; }
.verse-note { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.verse-actions { margin-top: 22px; display: grid; gap: 4px; justify-items: center; }
.verse-actions .btn { width: 100%; }

/* 위기 안내 */
.help-card { margin-top: 22px; border: 2px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); padding: 22px 20px; }
.help-card h2 { font-size: 1.25rem; color: var(--danger); }
.help-card p { margin-top: 8px; }
.help-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.help-list a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 56px; padding: 10px 14px; background: var(--card); border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid var(--line); }
.help-list strong { color: var(--danger); white-space: nowrap; font-size: 1.1rem; }
.help-mini { font-size: .85rem; color: var(--muted); margin-top: 26px; }

/* 마무리 */
.closing-head { padding-top: 22px; }
.closing-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin-top: 14px; }
.closing-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--green-deep); margin-bottom: 10px; }
.closing-block h2 .ico { color: var(--gold); width: 1.4em; height: 1.4em; }
.empty { color: var(--muted); font-size: .95rem; }
.sum-list { list-style: none; padding: 0; margin: 0; }
.sum-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.sum-list li:first-child { border-top: 0; padding-top: 0; }
.sum-list .t { font-size: .82rem; color: var(--gold-text); font-weight: 700; display: block; }
.end-actions { margin-top: 28px; display: grid; gap: 10px; }
.result-bottom { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(420px, calc(100% - 32px)); background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
dialog::backdrop { background: rgba(48, 46, 43, .45); }
dialog h2 { font-size: 1.25rem; margin-bottom: 8px; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

#print-area { display: none; }

/* 만세력 실제 표 */
.pillars td.on { background: var(--card); border-style: solid; border-color: var(--line); color: var(--text); padding: 10px 2px; }
.pillars td.me { border: 2px solid var(--green); }
.gz { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.25; }
.gk { display: block; font-family: var(--sans); font-size: .7rem; color: var(--muted); line-height: 1.4; }
.tg { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 700; color: var(--gold-text); line-height: 1.4; }
.tg-inline { font-size: .78rem; color: var(--gold-text); font-weight: 600; }
.el-bars { display: grid; gap: 8px; margin-top: 10px; }
.el-row { display: grid; grid-template-columns: 4.8em 1fr 1.4em; gap: 10px; align-items: center; font-size: .9rem; }
.el-bar { height: 10px; border-radius: 999px; background: var(--beige); overflow: hidden; }
.el-bar > span { display: block; height: 100%; border-radius: inherit; }
.el-목 { background: #6E8F6A; } .el-화 { background: #C0755A; } .el-토 { background: #B49867; } .el-금 { background: #8E8B85; } .el-수 { background: #4F6F86; }
.el-n { text-align: right; font-weight: 700; }
.notes li { font-size: .92rem; color: #4A4641; }
.years.luck { margin-top: 10px; }
.span-2 { grid-column: 1 / -1; }
.hero-slot.has-img { background: none; }
.img-slot.has-img::after, .leaf-deco.has-img::after { display: none; }

/* ── PC: 읽기 폭 + 왼쪽 목차 ── */
@media (min-width: 1024px) {
  .result-layout { display: grid; grid-template-columns: 230px minmax(0, 680px); gap: 56px; justify-content: center; align-items: start; }
  .toc-desktop { display: block; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 4px 0 20px; }
  .toc-desktop .toc-title { font-family: var(--serif); font-weight: 700; color: var(--green-deep); margin: 0 8px 8px; font-size: 1.05rem; }
  .toc-desktop .toc-list { padding: 0; }
  .toc-desktop .toc-extra { margin: 16px 8px 0; display: grid; gap: 8px; }
  .toc-mobile { display: none; }
}

/* ── 인쇄 ── */
/* v0.3 심화 해석 */
.r-hero { margin: 6px 0 18px; padding: 22px 20px; background: var(--card, #FFFEFB); border: 1px solid var(--line); border-radius: 16px; }
.ht-eyebrow { margin: 0 0 6px; color: var(--green); font-weight: 700; }
.ht-main { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 5.4vw, 2rem); line-height: 1.38; text-wrap: balance; color: var(--text); }
.ht-adj { display: block; font-size: .62em; color: var(--gold-text, #8A6D3B); font-weight: 600; margin-bottom: 4px; }
.ht-sub { margin: 12px 0 0; font-size: 1.02rem; color: var(--text); }
.ht-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ht-chips span { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: #EEF2EC; color: var(--green); }
.blk.deep h3 { color: var(--green); }
.blk.deep p { margin: 8px 0; }
.months { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.months li { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FFFEFB; }
.months li > div { min-width: 0; }
.months .m { font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.months .m small { display: block; font-family: var(--sans); font-weight: 400; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.months p { margin: 4px 0 0; font-size: .95rem; }
.months li.mk-clash { border-left: 4px solid #C9905E; }
.months li.mk-combine { border-left: 4px solid var(--green); }
.work-box .field { margin-top: 14px; }
.work-box select { width: 100%; }
.fit:not(:empty) { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #F3F0E8; font-size: .97rem; }
.guide .flow { margin: 14px 0; }
.guide .flow .t, .guide .resp-t { display: block; font-weight: 700; color: var(--green); margin: 12px 0 6px; font-size: .9rem; }
.guide .flow ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }

/* 입장 비밀번호 */
.gate-locked body > *:not(#gate):not(script) { visibility: hidden; }
.gate-locked body { overflow: hidden; }
#gate { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: linear-gradient(180deg, #FBF6EE 0%, #F6F0F3 55%, #EFEAF3 100%); display: flex; align-items: center; justify-content: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.gate-wrap { width: 100%; max-width: 520px; margin: auto; }
.gate-art { border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(91, 74, 99, .14); }
.gate-art img { display: block; width: 100%; height: auto; }
.gate-box { position: relative; margin: -34px 14px 0; background: rgba(255, 254, 251, .97); border: 1px solid #E8DEE6; border-radius: 20px; padding: 26px 22px 22px; text-align: center; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(91, 74, 99, .10); }
.gate-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.gate-eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: #8B74A0; }
.gate-camp { margin: 2px 0 0; font-family: var(--serif); font-weight: 700; font-size: 1.42rem; line-height: 1.45; color: #3F3346; text-wrap: balance; }
.gate-hello { margin: 0 0 8px; color: #6A5B70; font-size: .95rem; line-height: 1.6; }
.gate-box label { text-align: left; font-weight: 700; font-size: .95rem; color: var(--text); }
.gate-box input { min-height: 54px; font-size: 1.2rem; letter-spacing: .3em; text-align: center; border: 1px solid #DCD0DA; border-radius: 14px; background: #fff; color: var(--text); }
.gate-box input:focus { outline: 3px solid rgba(139, 116, 160, .28); border-color: #8B74A0; }
.gate-box input[aria-invalid="true"] { border-color: #9C4235; }
.gate-err { min-height: 1.4em; margin: 0; color: #9C4235; font-size: .9rem; }
.gate-box button { min-height: 54px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-size: 1.08rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(73, 100, 86, .22); }
.gate-box button:hover { background: var(--green-deep); }
.gate-note { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.gate-box input::placeholder { letter-spacing: 0; font-size: 1rem; }

/* 인연 궁합 */
.match-box .field { margin-top: 14px; }
.match-box select, .match-box input[type="text"] { width: 100%; box-sizing: border-box; }
.match-box .btn { margin-top: 18px; }
.match-out:empty { display: none; }
.match-out { margin-top: 18px; outline: none; }
.match-res { border-top: 1px solid var(--line, #E4DCCF); padding-top: 16px; }
.match-res h4 { margin: 18px 0 6px; font-size: 1rem; color: var(--green-deep); }
.match-level { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.12rem; margin: 0 0 6px; }
.match-level .hearts span { color: #D8CFC2; font-size: 1.2rem; letter-spacing: 2px; }
.match-level .hearts span.on { color: #C9705F; }

/* 나에게 맞는 분야 */
.field-chips, .rp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.fc { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .85rem; border: 1px solid transparent; }
.fc-good { background: var(--green); color: #fff; }
.fc-mid { background: var(--green-soft); color: var(--green-deep); }
.fc-low { background: transparent; color: var(--muted); border-color: var(--field-line); }
.fc-legend .fc { font-size: .75rem; padding: 2px 8px; }

/* 상담 기록 남기기 */
.keep-field { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); }
.keep-field .hint-in { font-size: .88rem; color: var(--muted); }

/* 상담 기록 화면 */
#hist-q { width: 100%; }
.hist-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.hist-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.hist-main { flex: 1; min-width: 0; }
.hist-main p { margin: 0; }
.hist-name { font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.hist-name span { font-family: var(--sans); font-weight: 400; font-size: .82rem; color: var(--muted); margin-left: 4px; }
.hist-hero { color: var(--gold-text); font-size: .88rem; margin-top: 2px !important; }
.hist-sum { font-size: .92rem; margin-top: 4px !important; overflow-wrap: anywhere; }
.hist-date { font-size: .78rem; color: var(--muted); margin-top: 4px !important; }
.hist-btns { display: grid; gap: 6px; flex: none; }
.hist-btns .btn { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
@media (max-width: 420px) { .hist-item { flex-direction: column; align-items: stretch; } .hist-btns { grid-template-columns: 1fr 1fr; } }

/* ═════════ 리포트(인쇄·PDF) — 동양 · 마음 돌봄 ═════════ */
#print-area { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html, body { background: #fff !important; }
  body { font-size: 10.5pt; line-height: 1.85; color: #2F2C28; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  a { color: inherit; text-decoration: none; }
}
.rp { font-family: var(--sans); color: #2F2C28; }
.rp p { margin: 0 0 .55em; }
.rp-page { position: relative; break-after: page; page-break-after: always; }
.rp-cover { min-height: 255mm; display: flex; flex-direction: column; padding: 4mm 6mm 0; background: linear-gradient(#FBF8F2, #F6F1E7); border-radius: 6px; overflow: hidden; }
.rp-seal { position: absolute; top: 10mm; right: 10mm; width: 17mm; height: 17mm; }
.rp-brand { font-family: var(--serif); font-size: 15pt; font-weight: 700; color: #3B5246; letter-spacing: .08em; margin: 8mm 0 6mm !important; }
.rp-brand span { font-size: 10pt; color: #8A7A5C; letter-spacing: .3em; margin-left: 6px; font-weight: 400; }
.rp-cover-img { border-radius: 10px; overflow: hidden; }
.rp-cover-img img { width: 100%; height: auto; display: block; }
.rp-for { margin: 9mm 0 2mm !important; color: #6E8B76; font-weight: 700; letter-spacing: .06em; font-size: 10pt; }
.rp-title { font-family: var(--serif); font-size: 23pt; line-height: 1.4; margin: 0 0 3mm; color: #2F2C28; text-wrap: balance; }
.rp-title span { display: block; font-size: 12pt; color: #8A6D3B; margin-bottom: 2mm; font-weight: 600; }
.rp-sub { font-size: 11.5pt; color: #4A4640; max-width: 150mm; }
.rp-chips span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #E9EEE8; color: #3B5246; font-size: 9pt; margin: 0 4px 4px 0; }
.rp-meta { display: flex; gap: 10mm; margin: 7mm 0 0; padding: 4mm 0; border-top: 1px solid #DCCFB8; border-bottom: 1px solid #DCCFB8; }
.rp-meta dt { font-size: 8.5pt; color: #8A7A5C; letter-spacing: .1em; }
.rp-meta dd { margin: 0; font-family: var(--serif); font-weight: 600; }
.rp-mount { display: block; width: 100%; height: 26mm; margin-top: auto; }
.rp-disc { font-size: 8.5pt; color: #6B655C; background: #EFE7D8; margin: 0 -6mm !important; padding: 3mm 6mm; }
.rp-h2 { font-family: var(--serif); font-size: 16pt; color: #3B5246; display: flex; align-items: center; gap: 10px; margin: 0 0 5mm; }
.rp-h3 { font-family: var(--serif); font-size: 11pt; color: #3B5246; margin: 0 0 3mm; }
.rp-h3 small { font-family: var(--sans); font-size: 8pt; color: #8A7A5C; font-weight: 400; margin-left: 6px; }
.rp-h3.mt { margin-top: 5mm; }
.rp-num { display: inline-grid; place-items: center; flex: none; width: 11mm; min-width: 11mm; height: 11mm; padding: 0; box-sizing: border-box; border-radius: 50%; line-height: 1; border: 1.5px solid #B5523F; color: #B5523F; font-family: var(--serif); font-weight: 700; font-size: 11pt; }
.rp-card { border: 1px solid #E3D8C6; border-radius: 10px; padding: 4mm 5mm; margin-bottom: 4mm; background: #FFFDF9; break-inside: avoid; page-break-inside: avoid; }
.rp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.rp-grid2 .rp-card { margin: 0 0 4mm; }
.rp-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.rp-pil { text-align: center; border-radius: 8px; padding: 3mm 1mm; background: #F7F2E8; }
.rp-pil.me { background: #E9EEE8; outline: 1.5px solid #6E8B76; }
.rp-pil p { margin: 0 !important; }
.rp-pil-h { font-size: 8.5pt; color: #8A7A5C; font-weight: 700; }
.rp-pil-tg { font-size: 7.5pt; color: #7A746A; }
.rp-han { font-family: var(--serif); font-size: 22pt; font-weight: 700; line-height: 1.25; }
.rp-pil-ko { font-size: 9pt; font-weight: 700; }
.rp-pil-none { color: #A39C90; font-size: 9pt; padding: 10mm 0; }
.rp-ohaeng { width: 100%; height: auto; max-height: 62mm; }
.rp-bars { display: grid; gap: 2.4mm; }
.rp-bar { display: grid; grid-template-columns: 15mm 1fr 6mm; align-items: center; gap: 2mm; font-size: 9pt; }
.rp-bar-l { font-family: var(--serif); font-weight: 700; }
.rp-bar-t { height: 3.2mm; background: #F0EADF; border-radius: 99px; overflow: hidden; }
.rp-bar-t span { display: block; height: 100%; border-radius: 99px; }
.rp-bar-n { text-align: right; font-weight: 700; }
.rp-gauge-t { position: relative; height: 3.2mm; border-radius: 99px; background: linear-gradient(90deg, #9DB3C8, #DCE6DD 50%, #E3B38E); }
.rp-gauge-m { position: absolute; top: -1.4mm; width: 6mm; height: 6mm; margin-left: -3mm; border-radius: 50%; background: #fff; border: 2px solid #3B5246; }
.rp-gauge-l { display: flex; justify-content: space-between; font-size: 8pt; color: #8A7A5C; margin-top: 2mm; }
.rp-gauge-v { font-size: 9pt; margin-top: 2mm !important; }
.rp-mstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4mm; }
.rp-mc { text-align: center; border-radius: 6px; padding: 2mm 0; background: #F5F1E9; }
.rp-mc p { margin: 0 !important; line-height: 1.35; }
.rp-mc-m { font-weight: 700; font-size: 9pt; }
.rp-mc-g { font-family: var(--serif); font-size: 8pt; color: #6B655C; }
.rp-mc-t { font-size: 7.5pt; color: #8A8378; }
.rp-mc.mk-clash { background: #F6E3D6; } .rp-mc.mk-clash .rp-mc-t { color: #A0522D; font-weight: 700; }
.rp-mc.mk-combine { background: #DFE9E0; } .rp-mc.mk-combine .rp-mc-t { color: #3B5246; font-weight: 700; }
.rp-legend { font-size: 8pt; color: #7A746A; margin-top: 2mm !important; }
.rp-legend span { display: inline-block; width: 3mm; height: 3mm; border-radius: 2px; margin: 0 1mm 0 3mm; vertical-align: -0.4mm; }
.rp-legend .lg-c { background: #F6E3D6; } .rp-legend .lg-b { background: #DFE9E0; }
.rp-concern p { font-family: var(--serif); font-size: 11pt; }
.rp-sec { padding-top: 2mm; margin-top: 9mm; }
.rp-sec.rp-break { break-before: page; page-break-before: always; margin-top: 0; }
.rp-sec-h { display: flex; align-items: center; gap: 4mm; padding-bottom: 3mm; margin-bottom: 5mm; border-bottom: 1px solid #DCCFB8; break-after: avoid; page-break-after: avoid; }
.rp-sec-h h2 { font-family: var(--serif); font-size: 15pt; margin: 0; color: #2F2C28; line-height: 1.35; }
.rp-cat { font-size: 8.5pt !important; color: #8A7A5C; letter-spacing: .12em; margin: 0 !important; }
.rp-core { position: relative; display: flex; gap: 4mm; align-items: center; background: #EEF2EC; border-radius: 10px; padding: 4mm 5mm; margin-bottom: 5mm; break-inside: avoid; page-break-inside: avoid; }
.rp-core img { width: 16mm; flex: none; opacity: .9; }
.rp-core p { font-family: var(--serif); font-size: 12pt; font-weight: 700; color: #3B5246; margin: 0 !important; line-height: 1.6; }
.rp-p { margin-bottom: 3mm !important; }
.rp-blk { margin: 0 0 5mm; padding-left: 4mm; border-left: 2.5px solid #C9B58E; }
.rp-blk h4 { font-family: var(--serif); font-size: 11pt; color: #3B5246; margin: 0 0 2mm; break-after: avoid; page-break-after: avoid; }
.rp-blk p, .rp-blk li { orphans: 3; widows: 3; }
.rp-blk .lbl, .rp .lbl { display: inline-block; font-weight: 700; color: #8A6D3B; }
.rp-small { font-size: 8.5pt; color: #7A746A; }
.rp-list { margin: 1mm 0 0; padding-left: 5mm; }
.rp-list li { margin-bottom: 1.5mm; }
.rp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm; margin-top: 2mm; }
.rp-mo { border: 1px solid #E6DCCB; border-radius: 8px; padding: 2.5mm 3mm; font-size: 9pt; line-height: 1.65; break-inside: avoid; page-break-inside: avoid; background: #FFFDF9; }
.rp-mo p { margin: 0 !important; }
.rp-mo-h { margin-bottom: 1mm !important; }
.rp-mo-h strong { font-family: var(--serif); font-size: 11pt; color: #3B5246; }
.rp-mo-h span { font-size: 8pt; color: #8A7A5C; }
.rp-mo.mk-clash { border-left: 3px solid #C9905E; }
.rp-mo.mk-combine { border-left: 3px solid #6E8B76; }
.rp-years { display: flex; flex-wrap: wrap; gap: 2.5mm; margin-bottom: 5mm; }
.rp-years .rp-yr { flex: 0 0 calc(50% - 1.25mm); box-sizing: border-box; }
.rp-yr { border-radius: 8px; padding: 3mm; background: #F7F2E8; font-size: 9pt; break-inside: avoid; page-break-inside: avoid; }
.rp-yr p { margin: 0 !important; }
.rp-yr-h { font-family: var(--serif); font-weight: 700; font-size: 11pt; }
.rp-yr-h span { font-size: 9pt; color: #8A7A5C; }
.rp-yr-t { font-weight: 700; color: #3B5246; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin-bottom: 5mm; }
.rp-note { border-radius: 10px; background: #F7F2E8; padding: 3.5mm 4mm; margin-bottom: 4mm; break-inside: avoid; page-break-inside: avoid; }
.rp-two .rp-note { margin: 0; }
.rp-note-h { font-size: 8.5pt; font-weight: 700; color: #8A6D3B; letter-spacing: .08em; margin-bottom: 1mm !important; }
.rp-q { margin-top: 5mm; padding: 3.5mm 5mm; border: 1px dashed #C9B58E; border-radius: 10px; font-family: var(--serif); font-size: 11pt; break-inside: avoid; page-break-inside: avoid; }
.rp-q span { display: block; font-family: var(--sans); font-size: 8.5pt; color: #8A6D3B; font-weight: 700; margin-bottom: 1mm; }
.rp-tag { display: inline-block; padding: 1px 9px; border-radius: 99px; background: #E9EEE8; color: #3B5246; font-size: 9pt; }
.rp-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.rp-act { border-radius: 10px; background: #F7F2E8; padding: 3.5mm; break-inside: avoid; page-break-inside: avoid; }
.rp-check { list-style: none; margin: 0; padding: 0; }
.rp-check li { position: relative; padding-left: 5.5mm; margin-bottom: 1.5mm; }
.rp-check li::before { content: ""; position: absolute; left: 0; top: 1.6mm; width: 3mm; height: 3mm; border: 1.3px solid #6E8B76; border-radius: 2px; }
.rp-verse { position: relative; margin: 2mm 0 6mm; padding: 7mm 9mm 5mm; border: 1px solid #D9C9A8; border-radius: 4px; background: #FBF7EE; text-align: center; font-family: var(--serif); break-inside: avoid; page-break-inside: avoid; box-shadow: inset 0 0 0 4px #FBF7EE, inset 0 0 0 5px #E8DCC2; }
.rp-verse p { font-size: 12.5pt; line-height: 1.9; }
.rp-verse-q { position: absolute; top: 0; left: 4mm; font-size: 30pt; color: #C9B58E; line-height: 1; }
.rp-verse-r { font-family: var(--sans); font-size: 8.5pt !important; color: #8A6D3B; }
.rp-match { border: 1px solid #E3D8C6; border-radius: 10px; padding: 4mm 5mm; background: #FFFDF9; }
.rp-match h4 { font-family: var(--serif); color: #3B5246; margin: 0 0 2mm; }
.rp-match .match-res { border: 0; padding: 0; }
.rp-match .match-res h4 { font-size: 10.5pt; margin: 4mm 0 1mm; border-left: 2.5px solid #C9B58E; padding-left: 3mm; }
.rp-match .hearts span { color: #D8CFC2; } .rp-match .hearts span.on { color: #C9705F; }
.rp-match .match-level { display: flex; gap: 3mm; align-items: center; font-size: 12pt; }
.rp-fit p { font-size: 10pt; }
.rp-closing-art { position: relative; margin-top: 8mm; text-align: center; }
.rp-closing-art p { font-family: var(--serif); font-size: 11.5pt; color: #3B5246; margin: 4mm 0 0 !important; }
.rp-closing-art .rp-seal { position: static; display: block; margin: 4mm auto 0; width: 14mm; height: 14mm; }
.rp-org { margin-top: 8mm !important; font-size: 9pt; font-weight: 700; letter-spacing: .08em; color: #6A5B70; text-align: center; }
.rp-verse-art { text-align: center; margin-top: 12mm; }
.rp-verse-art img { width: 70mm; opacity: .85; }
.rp-verse-art p { font-family: var(--serif); color: #6E8B76; margin-top: 3mm !important; }

/* PDF 바로 저장용 쪽 (화면 밖에서 그려 그림으로 담음) */
.rp-pdf { position: fixed; left: -12000px; top: 0; width: 794px; background: #fff; font-size: 13.4px; line-height: 1.85; z-index: -1; }
.rp-pg { position: relative; width: 794px; height: 1123px; padding: 50px 52px 58px; box-sizing: border-box; background: #fff; overflow: hidden; }
.rp-pg-body { height: 100%; overflow: hidden; }
.rp-pg-body > .rp-sec:first-child, .rp-pg-body > .rp-cont:first-child { margin-top: 0; padding-top: 0; }
.rp-pg-foot { position: absolute; left: 52px; right: 52px; bottom: 22px; margin: 0 !important; font-size: 10px; color: #A39C90; text-align: center; letter-spacing: .05em; }
.rp-pdf .rp-cover { min-height: 0; height: 100%; box-sizing: border-box; }
.rp-pdf .rp-sec.rp-break { break-before: auto; }
.rp-pdf .rp-cont.rp-blk, .rp-pdf .rp-cont.rp-sec { margin-top: 0; }
.rp-end-img { border-radius: 10px; overflow: hidden; margin: 0 auto; }
.rp-end-img img { width: 100%; height: auto; display: block; }

/* 2027 그림 (사이트 표지·마무리) — 그림 비율 그대로, 잘리지 않게 */
.hero-slot.has-img { aspect-ratio: auto; max-height: none; }
.hero-slot.has-img img { height: auto; object-fit: initial; }
.closing-art { margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden; }
.closing-art img { display: block; width: 100%; height: auto; }

/* 캠페인 「올해의 나를 안아주고, 내일의 나를 축복해」 */
.camp-card { margin: 0 0 26px; padding: 20px 20px 18px; border-radius: var(--radius); text-align: center; background: linear-gradient(160deg, #FBF4EC 0%, #F4EDF3 60%, #EEE9F4 100%); border: 1px solid #E8DEE6; }
.camp-tag { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .16em; color: #8B74A0; }
.camp-title { margin: 8px 0 0; font-family: var(--serif); font-weight: 700; font-size: 1.38rem; line-height: 1.5; color: #3F3346; text-wrap: balance; }
.camp-sub { margin: 10px 0 0; font-size: .9rem; line-height: 1.6; color: #6A5B70; }
.rp-camp-tag { margin: -4mm 0 3mm !important; font-size: 8.5pt; font-weight: 700; letter-spacing: .2em; color: #8B74A0; }
.rp-camp { margin: 5mm 0 0; padding: 3.5mm 5mm; border-radius: 8px; background: linear-gradient(90deg, #F6EEF2, #EFEAF4); text-align: center; }
.rp-camp p { margin: 0 !important; }
.rp-camp-title { font-family: var(--serif); font-weight: 700; font-size: 13pt; color: #3F3346; }
.rp-camp-sub { font-size: 9pt; color: #6A5B70; margin-top: 1mm !important; }
.rp-for { margin-top: 6mm !important; }
.rp-camp-end { font-family: var(--serif); font-weight: 700; font-size: 13pt !important; color: #3F3346 !important; margin-top: 6mm !important; }
.rp-camp-end span { display: block; font-family: var(--sans); font-size: 8.5pt; font-weight: 700; letter-spacing: .2em; color: #8B74A0; margin-top: 1.5mm; }
.rp-camp-org { font-size: 8.5pt; font-weight: 700; letter-spacing: .08em; color: #8B74A0; margin-top: 1.5mm !important; }
.camp-org { margin: 10px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: #8B74A0; }
.gate-org { margin: -4px 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: #8B74A0; }

/* 결과 화면: 처음으로 돌아가 고치기 */
.back-row { margin: 0 0 12px; }
.btn-back { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--green-deep); font-size: .95rem; font-weight: 600; cursor: pointer; }
.btn-back:hover { background: var(--green-soft); }
/* 적어 주신 고민: 줄바꿈 그대로 */
.summary-text { white-space: pre-line; }
#summary-edit { min-height: 160px; }

/* 나에게 맞는 분야: 1~5순위 강조 */
.fc .fc-rank { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: 5px; border-radius: 50%; background: #fff; color: var(--green-deep); font-size: .78em; font-weight: 800; }
.fc-good { font-weight: 700; box-shadow: 0 2px 6px rgba(59, 82, 70, .25); }
.rp-chips .fc { background: #F1EEE8; color: #8A8378; border: 1px solid #E3DCCF; }
.rp-chips .fc-good { background: #496456; color: #fff; border-color: #496456; font-weight: 700; }
.rp-chips .fc-mid { background: #E9EEE8; color: #3B5246; border-color: #DCE6DD; }
.rp-chips .fc-low { background: transparent; color: #A39C90; border: 1px dashed #D6CCBC; }

.rp-num.rp-num-2 { font-size: 8pt; letter-spacing: -1px; }
/* 마지막 쪽: A4 한 장 안에 */
.rp-end .rp-blk { margin-bottom: 4mm; }
.rp-end .rp-verse { margin: 2mm 0 4mm; padding: 5mm 8mm 4mm; }
.rp-end .rp-closing-art { margin-top: 4mm; }
.rp-end .rp-end-img { max-width: 150mm; }
.rp-end .rp-end-img img { max-height: 68mm; width: auto; max-width: 100%; margin: 0 auto; }
.rp-end .rp-closing-art .rp-seal { width: 12mm; height: 12mm; margin-top: 3mm; }
.rp-end .rp-org { margin-top: 4mm !important; }
