/* 입력 구역(#formCard) V5.1 — 애플 톤(Claude, 2026-09-28). site2.css · free-result-v4/v5.css 뒤에 얹는다. 마크업 · 동작(app.js · site2.js)은 그대로, 모양만.
   원칙: 묶음 면(네이비 판) 없이 페이지 바탕 위에 칸만. 칸 = 높이 56 · 반경 12 · 가는 테. 제목은 가운데 크게, 칸 이름은 17px 굵게.
   PC(≥1024)는 애플 스토어 구입 화면처럼 — 위에 제목, 아래 왼쪽은 붙어 따라오는 사주단자 카드(적는 대로 채워짐), 오른쪽은 입력.
   site2.css 가 `html body #birthForm … !important` 로 칠해 두어서, 여기서는 #formCard#formCard 로 한 단 높여 덮는다. */
html body #formCard#formCard {
  --e-text: #f5f5f7; --e-text-2: #a1a8b5; --e-text-3: #878e9b; /* 디자인 고침 1(2026-10-28, 감사 B-2): #6e7481 은 안내 글이 바탕과 4.27:1(AA 4.5 미달). 결과 화면 SF-11 과 같은 #878e9b 로 */ --e-gold: #d9b878; --e-gold-hi: #e8cd97;
  --e-field: rgba(255,255,255,.04); --e-field-hi: rgba(255,255,255,.07); --e-line: rgba(255,255,255,.16); --e-hair: rgba(255,255,255,.08); --e-tile: #10151f;
  --e-ring: 0 0 0 1px var(--e-gold), 0 0 0 4px rgba(217,184,120,.2);
}

/* ── 머리(구역 제목) ── */
html body #formCard#formCard .danja-kicker { text-align: center; font-size: 17px !important; font-weight: 600 !important; color: var(--e-gold) !important; }
html body #formCard#formCard .danja-title { text-align: center; margin: 12px auto 0 !important; max-width: 15em; font-size: clamp(32px, 4.4vw, 56px) !important; line-height: 1.1 !important; font-weight: 700 !important; letter-spacing: -.035em !important; color: var(--e-text) !important; }
html body #formCard#formCard .danja-lede { text-align: center; margin: 16px auto 0 !important; max-width: 32em; font-size: clamp(17px, 1.5vw, 19px) !important; line-height: 1.55 !important; color: var(--e-text-2) !important; word-break: keep-all; text-wrap: balance; }
html body #formCard#formCard details.danja-lede-origin { text-align: center; margin: 8px 0 0 !important; }
html body #formCard#formCard details.danja-lede-origin > summary { display: inline-flex; font-size: 15px !important; font-weight: 400 !important; color: var(--e-gold) !important; }
html body #formCard#formCard details.danja-lede-origin > p { max-width: 30em; margin: 4px auto 0 !important; font-size: 15px !important; color: var(--e-text-3) !important; }
html body #formCard#formCard :is(details.danja-lede-origin, #birthForm details.coord-manual) > summary::after { width: 7px; height: 7px; background: none; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
html body #formCard#formCard :is(details.danja-lede-origin, #birthForm details.coord-manual)[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

/* ── 사주단자 카드 — 테 · 그라데이션 없는 단색 면 ── */
html:not(:has(#result:not([hidden]))) body #formCard#formCard .s2-card { margin-top: 40px; padding: 32px 28px 24px; border: 0; border-radius: 28px; background: var(--e-tile); box-shadow: none; }
html body #formCard#formCard .s2-card-title { align-items: baseline; }
html body #formCard#formCard .s2-card-title span { font: 500 17px/1 var(--s-serif, serif); letter-spacing: .2em; color: var(--e-gold); }
html body #formCard#formCard .s2-card-title small { font-size: 13px; color: var(--e-text-3); }
html body #formCard#formCard .s2-card-empty { color: var(--e-text-3); font-size: 15px; }
html body #formCard#formCard .s2-card-cols > li { background: rgba(255,255,255,.03); box-shadow: none; border-radius: 14px; }
html body #formCard#formCard .s2-card .is-filled { background: rgba(255,255,255,.06); box-shadow: none; }
html body #formCard#formCard .v4-preview-place { margin: 6px 0 0; font-size: 13px; color: var(--e-text-3); }
html body #formCard#formCard .v4-preview .report-birthmap-saju-grid { gap: 0; margin: 20px 0 8px; }
html body #formCard#formCard .v4-preview .report-birthmap-pillar { padding: 26px 2px 16px; }
html body #formCard#formCard .v4-preview .report-birthmap-hanja { font-size: 34px; font-weight: 500; color: var(--e-text); }
html body #formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) { color: var(--e-gold); }
html body #formCard#formCard .v4-preview :is(.report-birthmap-pillar-position) { color: var(--e-text-2); font-size: 12px; font-weight: 600; }
html body #formCard#formCard .v4-preview :is(.report-birthmap-ten-god, .report-birthmap-korean) { color: var(--e-text-3); font-size: 11px; }
html body #formCard#formCard .v4-preview-chart { border-top: 1px solid var(--e-hair); margin-top: 8px; }
html body #formCard#formCard .v4-preview-chart > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0; font-size: 15px; font-weight: 500; color: var(--e-text); }
html body #formCard#formCard .v4-preview-chart > summary::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 1.6px solid var(--e-text-3); border-bottom: 1.6px solid var(--e-text-3); transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
html body #formCard#formCard .v4-preview-chart[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
html body #formCard#formCard .v4-preview-chart .v4-chart { max-width: 260px; margin: 4px auto 0; }
html body #formCard#formCard .v4-preview .v4-bigthree { justify-content: center; gap: 4px 18px; margin: 16px 0 4px; }
html body #formCard#formCard .v4-preview .v4-bigthree span { font-size: 13px; color: var(--e-text-2); }

/* ── 입력 폼 — 묶음 면 없이 칸만 ── */
html body #formCard#formCard #birthForm.form-grid { gap: 0 !important; }
html body #formCard#formCard #birthForm > .field,
html body #formCard#formCard #birthForm > .privacy-contract { margin: 0 0 36px !important; padding: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html body #formCard#formCard #birthForm > .field::before { display: none !important; }
html body #formCard#formCard #birthForm > .field > label:first-child { margin: 0 0 12px !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: -.01em !important; color: var(--e-text) !important; }
html body #formCard#formCard #birthForm > .field > label:first-child span { color: var(--e-text-3) !important; }
html body #formCard#formCard #birthForm > .field:has(input:focus),
html body #formCard#formCard #birthForm > .field:has([aria-invalid="true"]) { background: none !important; box-shadow: none !important; }

/* 칸 공통 — 56px · 반경 12 · 가는 테(그림자로 그려 크기가 변하지 않게) */
html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select) {
  box-sizing: border-box; height: 56px !important; min-height: 56px !important; padding: 0 16px !important; border: 0 !important; border-radius: 12px !important;
  background-color: var(--e-field) !important; box-shadow: inset 0 0 0 1px var(--e-line) !important; color: var(--e-text) !important;
  font-size: 17px !important; font-weight: 500 !important; text-align: left; outline: none !important; transition: box-shadow .2s ease, background-color .2s ease;
}
html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select):hover { background-color: var(--e-field-hi) !important; }
html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select):focus,
html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input):focus-visible { background-color: var(--e-field-hi) !important; box-shadow: var(--e-ring) !important; outline: none !important; }
html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input)[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #ff6961 !important; }
html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input)[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px #ff6961, 0 0 0 4px rgba(255,105,97,.22) !important; }
html body #formCard#formCard #birthForm input::placeholder { color: var(--e-text-3) !important; font-weight: 400; }
html body #formCard#formCard #birthForm input#time:disabled { color: var(--e-text-3) !important; -webkit-text-fill-color: var(--e-text-3) !important; background-color: transparent !important; box-shadow: inset 0 0 0 1px var(--e-hair) !important; }
html body #formCard#formCard #birthForm .birth-date-parts { gap: 12px; margin: 0; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
html body #formCard#formCard #birthForm .field-hint { margin: 10px 0 0 !important; font-size: 14px !important; color: var(--e-text-3) !important; }
html body #formCard#formCard #birthForm .field-error { margin: 10px 0 0 !important; font-size: 14px !important; color: #ff8a80 !important; }
html body #formCard#formCard #birthForm .field-row { gap: 20px !important; }

/* 스위치 · 체크박스 */
html body #formCard#formCard #birthForm label.chk-pill { font-size: 17px !important; font-weight: 400 !important; color: var(--e-text) !important; gap: 12px !important; }
html body #formCard#formCard #birthForm input#timeUnknown { background: rgba(120,120,128,.32) !important; }
html body #formCard#formCard #birthForm input#timeUnknown:checked { background: var(--e-gold) !important; }
html body #formCard#formCard #birthForm :is(input#saveOnDevice, input#tst) { border-radius: 50% !important; box-shadow: inset 0 0 0 1.5px var(--e-text-3) !important; }
html body #formCard#formCard #birthForm :is(input#saveOnDevice, input#tst):checked { background: var(--e-gold) var(--s-check) center / 13px 13px no-repeat !important; box-shadow: none !important; }

/* 성별 — 애플 분할 선택: 회색 홈 · 한 단 밝은 회색 손잡이(테 없음) */
html body #formCard#formCard #birthForm #genderSeg.seg { margin-top: 12px !important; padding: 3px !important; border-radius: 12px !important; background: rgba(118,118,128,.24) !important; }
html body #formCard#formCard #birthForm #genderSeg.seg > button { min-height: 44px; border-radius: 9px !important; font-size: 15px !important; font-weight: 500 !important; color: var(--e-text) !important; }
html body #formCard#formCard #birthForm #genderSeg.seg > button[aria-pressed="true"] { font-weight: 600 !important; }
html body #formCard#formCard #birthForm #genderSeg.seg:not(.s-seg-live) > button[aria-pressed="true"] { background: #636366 !important; box-shadow: 0 3px 8px rgba(0,0,0,.12) !important; }
html body #formCard#formCard #birthForm #genderSeg .s-seg-thumb { top: 3px; bottom: 3px; border-radius: 9px; background: #636366; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
html body #formCard#formCard #birthForm > .field:has(#genderSeg) > .field-hint { margin: -6px 0 0 !important; }

/* 출생지 — 검색칸 · 결과 목록 · 글자 링크 */
html body #formCard#formCard #birthForm .place-search { margin-top: 0 !important; }
html body #formCard#formCard #birthForm input#placeSearch { padding-left: 44px !important; background-image: var(--s-search) !important; background-position: 16px 50% !important; background-size: 17px 17px !important; background-repeat: no-repeat !important; }
html body #formCard#formCard #birthForm .place-results { margin-top: 8px !important; padding: 6px !important; border-radius: 14px !important; background: #1a1f2a !important; box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 24px 48px -16px rgba(0,0,0,.7) !important; }
html body #formCard#formCard #birthForm .place-results .place-option[aria-selected="true"],
html body #formCard#formCard #birthForm .place-results .place-option:hover { background: rgba(255,255,255,.08) !important; }
html body #formCard#formCard #birthForm .geo-actions { gap: 4px 12px; margin-top: 8px !important; }
html body #formCard#formCard #birthForm .geo-actions #externalGeocode { padding: 0 !important; border-radius: 0 !important; background: none !important; color: var(--e-gold) !important; font-size: 15px !important; font-weight: 400 !important; }
html body #formCard#formCard #birthForm .geo-actions #externalGeocode::after { content: " ›"; white-space: pre; }
html body #formCard#formCard #birthForm .geo-actions #externalGeocode:hover { text-decoration: underline; text-underline-offset: 4px; }
html body #formCard#formCard #birthForm .geo-actions .share-status { font-size: 14px !important; color: var(--e-text-3) !important; }
html body #formCard#formCard #birthForm details.coord-manual { margin-top: 0 !important; }
html body #formCard#formCard #birthForm details.coord-manual > summary { justify-content: flex-start; gap: 8px; border-top: 0 !important; font-size: 15px !important; font-weight: 400 !important; color: var(--e-gold) !important; }
html body #formCard#formCard #birthForm .coord-grid { gap: 12px !important; padding: 4px 0 0 !important; }
html body #formCard#formCard #birthForm .coord-grid label { font-size: 14px !important; font-weight: 500 !important; color: var(--e-text-2) !important; }
html body #formCard#formCard #birthForm .coord-grid #applyCoords { height: 56px; min-height: 56px; padding: 0 22px !important; border-radius: 12px !important; background: rgba(255,255,255,.1) !important; font-weight: 500 !important; }

/* 이 기기에 저장 — 가는 선 사이 한 줄 */
html body #formCard#formCard #birthForm > .privacy-contract { padding: 16px 0 !important; border-top: 1px solid var(--e-hair) !important; border-bottom: 1px solid var(--e-hair) !important; margin-bottom: 0 !important; }
html body #formCard#formCard #birthForm .privacy-contract label.local-save-choice { font-size: 17px !important; font-weight: 400 !important; color: var(--e-text) !important; gap: 12px !important; }
html body #formCard#formCard #birthForm .privacy-contract > p { padding-left: 34px; font-size: 14px !important; color: var(--e-text-3) !important; }
html body #formCard#formCard #birthForm .privacy-contract > details > summary { font-size: 14px !important; font-weight: 400 !important; color: var(--e-gold) !important; }
html body #formCard#formCard #birthForm .privacy-contract details ul { color: var(--e-text-2) !important; font-size: 14px !important; }

/* 고급 설정 — 선 아래 한 줄 */
html body #formCard#formCard #birthForm details.adv { margin: 0 0 40px !important; border-radius: 0 !important; background: none !important; border-bottom: 1px solid var(--e-hair) !important; overflow: visible; }
html body #formCard#formCard #birthForm details.adv > summary { min-height: 56px; padding: 0 !important; font-size: 17px !important; font-weight: 400 !important; color: var(--e-text) !important; }
html body #formCard#formCard #birthForm details.adv .adv-body { padding: 4px 0 20px !important; border-top: 0 !important; gap: 16px !important; }
html body #formCard#formCard #birthForm details.adv select { padding-right: 40px !important; background-image: var(--s-chev-down) !important; background-position: right 16px center !important; background-size: 12px 8px !important; background-repeat: no-repeat !important; }

/* 제출 · 보조 동작 */
html body #formCard#formCard #birthForm #submitBtn.btn-primary { min-height: 56px; padding: 8px 24px !important; border-radius: 999px !important; background: var(--e-gold) !important; }
html body #formCard#formCard #birthForm #submitBtn.btn-primary:hover { background: var(--e-gold-hi) !important; }
html body #formCard#formCard #birthForm #submitBtn .btn-label { font-size: 17px !important; font-weight: 600 !important; }
html body #formCard#formCard #birthForm #submitBtn .btn-sub { font-size: 12px !important; font-weight: 500 !important; color: rgba(16,20,28,.66) !important; }
html body #formCard#formCard #birthForm .form-secondary-actions { margin-top: 16px; }
html body #formCard#formCard #birthForm .form-secondary-actions :is(#sampleReportBtn, #archiveLiteImportBtn) { color: var(--e-gold) !important; font-size: 15px !important; font-weight: 400 !important; }
html body #formCard#formCard #birthForm .form-secondary-actions :is(#sampleReportBtn, #archiveLiteImportBtn):hover { background: none !important; text-decoration: underline; text-underline-offset: 4px; }
html body #formCard#formCard #birthForm .form-secondary-actions .s2-action-separator { color: var(--e-text-3); }
html body #formCard#formCard .notice { margin-top: 24px !important; font-size: 14px !important; color: var(--e-text-3) !important; }

/* ── PC — 위에 가운데 제목, 아래 왼쪽 카드(붙어 따라옴) · 오른쪽 입력 ── */
@media screen and (min-width: 1024px) {
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja:not([hidden]) {
    grid-template-columns: minmax(0, 460px) minmax(0, 520px); justify-content: center; column-gap: clamp(56px, 7vw, 104px); max-width: none;
  }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .s2-entry-intro { display: contents; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .s2-entry-intro > :not(.s2-card) { grid-column: 1 / -1; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja-title { font-size: clamp(40px, 4.2vw, 56px) !important; line-height: 1.1 !important; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja-lede { font-size: 19px !important; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard details.danja-lede-origin { margin-bottom: 64px !important; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .s2-card { grid-column: 1; grid-row: 5 / span 6; align-self: start; position: sticky; top: calc(var(--s2-bar-h, 52px) + 32px); margin-top: 0; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja > :is(#birthForm, #err, .notice, .archive-lite-import) { grid-column: 2; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .danja > #birthForm { grid-row: 5; }
}

/* ── 폰 ── */
@media screen and (max-width: 599px) {
  html body #formCard#formCard .danja-kicker { font-size: 15px !important; }
  html body #formCard#formCard .danja-title { font-size: 32px !important; }
  html body #formCard#formCard .danja-lede { font-size: 17px !important; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard .s2-card { margin: 32px 0 40px; padding: 26px 16px 18px; border-radius: 24px; }
  html body #formCard#formCard #birthForm > .field, html body #formCard#formCard #birthForm > .privacy-contract { margin-bottom: 32px !important; }
  html body #formCard#formCard #birthForm .birth-date-parts { gap: 8px; }
  html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input) { font-size: 17px !important; }
}
/* site2 의 모바일 첫 입력 규칙(D2 — 칸마다 12px · 둥근 묶음)을 덮는다 */
html:not([data-s2-route="report"]):not(:has(#result:not([hidden]))) body #formCard#formCard #birthForm > :is(.field, .place-field) { margin: 0 0 32px !important; padding: 0 !important; border-radius: 0 !important; }
html:not([data-s2-route="report"]):not(:has(#result:not([hidden]))) body #formCard#formCard #birthForm > .field > label:first-child { margin-bottom: 12px !important; font-size: 17px !important; }
html:not([data-s2-route="report"]):not(:has(#result:not([hidden]))) body #formCard#formCard #birthForm .field-hint { margin-top: 10px !important; color: var(--e-text-3) !important; }
html:not([data-s2-route="report"]):not(:has(#result:not([hidden]))) body #formCard#formCard #birthForm .privacy-contract > p { color: var(--e-text-3) !important; }
@media screen and (max-width: 374px) {
  html body #formCard#formCard #birthForm input#placeSearch { padding-left: 16px !important; background-image: none !important; }
  html body #formCard#formCard #birthForm .field-row > label.chk-pill { border-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body #formCard#formCard #birthForm :is(input, select) { transition: none !important; }
}
@media (forced-colors: active) {
  html body #formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select) { border: 1px solid CanvasText !important; }
}

/* ══ 명식 · 천궁도 V5.2 — 고급 문자판 ══
   V5.1 은 흰 가는 선 · 산세리프라 설계도(인더스트리얼)처럼 보였다. 방향: 샴페인 금 · 상아색, 명조체 글자, 시계 문자판 재질.
   장식(문자판 면 · 별자리 띠 · 가운데 기요셰 · 둘레 분 눈금 · 금빛 베젤 · 광택 호)은 preview-v5.js 가 그림에 더한다.
   입력 카드 미리보기와 결과 「나의 두 지도」가 같은 그림. 움직임은 입력 카드에서만. */
:is(.v4-preview, .fr-maps) .v4-chart svg { overflow: visible; }
:is(.v4-preview, .fr-maps) .v4-chart .v5-band { stroke: rgba(217,184,120,.055); stroke-width: 32; }
:is(.v4-preview, .fr-maps) .v4-chart .v5-guilloche circle { fill: none; stroke: rgba(217,184,120,.075); stroke-width: .35; }
:is(.v4-preview, .fr-maps) .v4-chart .v5-ticks line { stroke: rgba(217,184,120,.32); stroke-width: .55; }
:is(.v4-preview, .fr-maps) .v4-chart .v5-ticks line.long { stroke: rgba(217,184,120,.6); stroke-width: .9; }
:is(.v4-preview, .fr-maps) .v4-chart .v5-bezel-out { stroke-width: .6; opacity: .55; }
:is(.v4-preview, .fr-maps) .v4-chart .v5-sheen { stroke-width: 1.8; stroke-dasharray: .1 .9; opacity: 0; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-ring-brass { fill: none; stroke: var(--v5-gold, #d9b878); stroke-width: 1.1; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-ring { fill: none; stroke: rgba(217,184,120,.16); stroke-width: .6; }
:is(.v4-preview, .fr-maps) .v4-chart circle.report-birthmap-ring[r="142"] { fill: none; stroke: rgba(217,184,120,.42); stroke-width: .7; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-sign-tick { stroke: rgba(217,184,120,.3); stroke-width: .6; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-sign-label { fill: #d8cba9; font: 500 8.4px/1 var(--s-serif, serif); letter-spacing: .06em; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-house-number { fill: rgba(217,184,120,.5); font: 400 7.6px/1 var(--s-serif, serif); }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-axis { stroke: var(--v5-gold, #d9b878); stroke-width: 1.1; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-axis-label { fill: #e6cb94; font: 600 7.8px/1 var(--s-serif, serif); letter-spacing: .14em; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-planet-tick { stroke: rgba(242,235,220,.6); stroke-width: .8; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-planet-connector { stroke: rgba(217,184,120,.22); stroke-width: .5; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-planet :is(path, circle:not(.v4-planet-hit)) { fill: none; stroke: #efe7d6; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-planet.lum :is(path, circle:not(.v4-planet-hit)) { stroke: #e6cb94; stroke-width: 1.3; }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-planet.out :is(path, circle:not(.v4-planet-hit)) { stroke: rgba(239,231,214,.55); }
:is(.v4-preview, .fr-maps) .v4-chart .report-birthmap-planet .solid { fill: #e6cb94; stroke: none; }
.fr-maps .v4-chart .report-birthmap-planet[data-v4-card]:hover :is(path, circle:not(.v4-planet-hit)) { stroke: #fff4d6; }

/* 명식 — 상아색 명조 글자, 일주는 금 머리선 테 + 위에서 옅어지는 금빛 */
:is(.v4-preview, .fr-maps) .report-birthmap-hanja { color: #f2ebdc; font-weight: 400; }
:is(.v4-preview, .fr-maps) .is-day .report-birthmap-hanja:not(.report-birthmap-branch) { color: #e2c690; }
:is(.v4-preview, .fr-maps) .report-birthmap-pillar-position { font-family: var(--s-serif, serif); font-weight: 500; letter-spacing: .18em; color: #bdb298; }
:is(.v4-preview, .fr-maps) .report-birthmap-ten-god { font-family: var(--s-serif, serif); color: #817b6e; letter-spacing: .06em; }
:is(.v4-preview, .fr-maps) .report-birthmap-korean { color: #6f6b62; }
:is(.v4-preview, .fr-maps) .report-birthmap-me { font-family: var(--s-serif, serif); font-weight: 600; letter-spacing: .1em; color: #e2c690; }
:is(.v4-preview, .fr-maps) .report-birthmap-element-mark { width: 5px; height: 5px; box-shadow: 0 0 0 2.5px rgba(255,255,255,.035), 0 0 8px -1px var(--el, #52637c); }
:is(.v4-preview, .fr-maps) .is-day { isolation: isolate; background: none !important; }
:is(.v4-preview, .fr-maps) .is-day::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(217,184,120,.13), rgba(217,184,120,.025) 70%, rgba(217,184,120,0)); box-shadow: inset 0 0 0 .5px rgba(217,184,120,.45); }

/* 입력 카드 — 문자판을 담는 깊은 남색 면 · 금 머리선 */
html:not(:has(#result:not([hidden]))) body #formCard#formCard .s2-card.v4-calculated {
  background: radial-gradient(130% 70% at 50% 0%, #182030 0%, #10151f 55%, #0c1019 100%);
  box-shadow: inset 0 0 0 .5px rgba(217,184,120,.24), 0 50px 90px -50px rgba(0,0,0,.9);
}
html body #formCard#formCard .s2-card-title span { background: linear-gradient(100deg, #f3e2b6, #c9a463 45%, #f0d9a6 70%, #b8914f); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body #formCard#formCard .s2-card-title small, html body #formCard#formCard .v4-preview-place { font-family: var(--s-serif, serif); letter-spacing: .04em; }
html body #formCard#formCard .v4-preview .report-birthmap-hanja { color: #f2ebdc; font-weight: 400; font-size: 36px; }
html body #formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) { color: #e2c690; }
html body #formCard#formCard .v4-preview .report-birthmap-pillar-position { color: #bdb298; font-weight: 500; }
html body #formCard#formCard .v4-preview .report-birthmap-ten-god { color: #817b6e; }
html body #formCard#formCard .v4-preview-chart { border-top-color: rgba(217,184,120,.18); }
html body #formCard#formCard .v4-preview-chart > summary { font-family: var(--s-serif, serif); font-weight: 500; letter-spacing: .08em; color: #efe7d6; }
html body #formCard#formCard .v4-preview .v4-bigthree span { font-family: var(--s-serif, serif); color: #bdb298; letter-spacing: .02em; }

/* ══ 생기는 움직임 — 명식 ══
   느리고 부드럽게(튀는 되돌림 없음). 바뀐 기둥만(V4 가 v4-pillar-enter 를 붙임) 연주 → 시주. 기둥 안에서 위치 → 천간 → 지지 → 오행 점이
   흐림에서 가라앉듯 또렷해지고, 일주의 금빛 테는 마지막에 번진다. */
.v4-preview .report-birthmap-pillar.v4-pillar-enter { animation: none; }
.v4-preview .v4-pillar-enter > * { --j: 0; animation: v5-ink 1.1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--delay, 0ms) * 2 + var(--j) * 90ms); }
.v4-preview .v4-pillar-enter > .report-birthmap-hanja:not(.report-birthmap-branch) { --j: 1; animation-name: v5-ink-big; animation-duration: 1.4s; }
.v4-preview .v4-pillar-enter > .report-birthmap-hanja:not(.report-birthmap-branch) + .report-birthmap-korean { --j: 2; }
.v4-preview .v4-pillar-enter > .report-birthmap-branch { --j: 3; animation-name: v5-ink-big; animation-duration: 1.4s; }
.v4-preview .v4-pillar-enter > .report-birthmap-branch + .report-birthmap-korean { --j: 4; }
.v4-preview .v4-pillar-enter > .report-birthmap-element-mark { --j: 6; animation-name: v5-dot; animation-duration: .9s; }
/* 「나」 표지는 translateX(-50%) 로 가운데 맞춤 — transform 을 움직이면 그 맞춤이 풀리므로 흐려짐만 */
.v4-preview .v4-pillar-enter > .report-birthmap-me { --j: 9; animation-name: v5-fade; animation-duration: .9s; }
.v4-preview .is-day.v4-pillar-enter::after { animation: v5-fade 1.4s ease both; animation-delay: calc(var(--delay, 0ms) * 2 + 700ms); }
@keyframes v5-ink { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes v5-ink-big { from { opacity: 0; filter: blur(10px); transform: scale(1.06); } 50% { opacity: .9; } to { opacity: 1; filter: none; transform: none; } }
@keyframes v5-dot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ══ 생기는 움직임 — 천궁도(처음 한 번 · 펼칠 때, 약 2.8초) ══
   문자판 면이 밝아지고 → 금빛 베젤이 위에서부터 한 바퀴 그려지고 → 분 눈금 · 별자리가 시계방향으로 켜지고 → 축이 뻗고
   → 행성이 가라앉듯 제자리에 놓이고 → 마지막에 베젤 위로 빛이 한 번 스친다. 값을 고치면 0.5초 옅게 바뀌기만. */
.v4-preview .v4-preview-chart .report-birthmap-planet { animation: none; offset-path: none; }
.v4-preview .v4-chart .report-birthmap-planet > * { transform-box: fill-box; transform-origin: center; }
.v4-preview .v4-chart :is(.report-birthmap-ring, .report-birthmap-ring-brass, .v5-bezel-out) { transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.v4-preview .v4-chart .v5-guilloche { transform-box: fill-box; transform-origin: center; }
.v4-preview .v5-draw .v4-chart .v5-face { animation: v5-fade 1s ease both; }
.v4-preview .v5-draw .v4-chart :is(.v5-band, .v5-guilloche) { animation: v5-settle 1.6s cubic-bezier(.16,1,.3,1) both; animation-delay: .25s; }
.v4-preview .v5-draw .v4-chart .v5-bezel-out { stroke-dasharray: 1; animation: v5-stroke 1.5s cubic-bezier(.65,0,.35,1) both; animation-delay: .1s; }
.v4-preview .v5-draw .v4-chart :is(.report-birthmap-ring, .report-birthmap-ring-brass) { stroke-dasharray: 1; animation: v5-stroke 1.3s cubic-bezier(.65,0,.35,1) both; animation-delay: calc(.2s + var(--k, 0) * 110ms); }
.v4-preview .v5-draw .v4-chart .v5-ticks line { animation: v5-fade .5s ease both; animation-delay: calc(.35s + var(--a, 0) * .9s); }
.v4-preview .v5-draw .v4-chart :is(.report-birthmap-sign-tick, .report-birthmap-sign-label) { animation: v5-fade .6s ease both; animation-delay: calc(.55s + var(--a, 0) * .9s); }
.v4-preview .v5-draw .v4-chart .report-birthmap-house-number { animation: v5-fade .6s ease both; animation-delay: calc(.85s + var(--a, 0) * .7s); }
.v4-preview .v5-draw .v4-chart .report-birthmap-axis { stroke-dasharray: 1; animation: v5-stroke .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(1.25s + var(--k, 0) * 150ms); }
.v4-preview .v5-draw .v4-chart .report-birthmap-axis-label { animation: v5-fade .6s ease both; animation-delay: 1.7s; }
.v4-preview .v5-draw .v4-chart :is(.report-birthmap-planet-tick, .report-birthmap-planet-connector) { animation: v5-fade .6s ease both; animation-delay: calc(1.5s + var(--a, 0) * .6s); }
.v4-preview .v5-draw .v4-chart .report-birthmap-planet { animation: v5-fade .7s ease both; animation-delay: calc(1.5s + var(--a, 0) * .6s); }
.v4-preview .v5-draw .v4-chart .report-birthmap-planet > * { animation: v5-land 1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(1.5s + var(--a, 0) * .6s); }
.v4-preview .v5-draw .v4-chart .v5-sheen { animation: v5-sheen 1.8s cubic-bezier(.45,0,.25,1) both; animation-delay: 2.2s; }
.v4-preview .v5-draw .v4-bigthree { animation: v5-rise .9s cubic-bezier(.16,1,.3,1) both; animation-delay: 2.1s; }
.v4-preview .v5-swap .v4-chart svg { animation: v5-swap .5s ease both; }
@keyframes v5-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes v5-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v5-settle { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes v5-land { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes v5-sheen { 0% { opacity: 0; transform: rotate(-90deg); } 20% { opacity: .9; } 80% { opacity: .6; } 100% { opacity: 0; transform: rotate(250deg); } }
@keyframes v5-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes v5-swap { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .v4-preview .v4-pillar-enter, .v4-preview .v4-pillar-enter > *, .v4-preview .is-day.v4-pillar-enter::after, .v4-preview :is(.v5-draw, .v5-swap) :is(.v4-chart *, .v4-bigthree, svg) { animation: none !important; }
}
.v4-reduced .v4-preview .v4-pillar-enter, .v4-reduced .v4-preview .v4-pillar-enter > *, .v4-reduced .v4-preview .is-day.v4-pillar-enter::after, .v4-reduced .v4-preview :is(.v5-draw, .v5-swap) :is(.v4-chart *, .v4-bigthree, svg) { animation: none !important; }
@media screen and (min-width: 1024px) {
  html body #formCard#formCard .v4-preview-chart .v4-chart { max-width: 300px; }
}

/* 디자인 고침 2(2026-10-28, 감사 B-5 · 후보 R4-14 AG-34 옮김): 계산 중(도는 표시가 보이는 동안) — 아랫줄 「회원가입 없음」 숨김, 도는 표시를 「계산하는 중」 왼쪽에 붙여 한 덩어리로,
   도는 표시 선은 단추 글자색(짙은 남색)으로(전: 밝은 회백색이라 금색 단추 위에서 거의 안 보였다). 단추 높이는 최소 높이라 그대로 */
html body #formCard#formCard #birthForm #submitBtn:has(> .btn-spin:not([hidden])) { flex-direction: row; gap: 10px; }
html body #formCard#formCard #birthForm #submitBtn:has(> .btn-spin:not([hidden])) > .btn-sub { display: none; }
html body #formCard#formCard #birthForm #submitBtn > .btn-spin:not([hidden]) { position: static; margin: 0; order: -1; flex: none; border-color: color-mix(in srgb, currentColor 22%, transparent); border-top-color: currentColor; }
/* 디자인 고침 2(감사 B-3 · AG-23): 목록에 없는 도시를 치면 빈 결과 상자가 이미 「가까운 큰 도시 · 좌표 직접 입력」을 말한다 — 같은 뜻의 아래 두 줄은 그동안 숨긴다 */
html body #formCard#formCard #birthForm .place-field:has(#placeResults:not([hidden]) .place-empty) :is(#placeHint, .geo-actions) { display: none !important; }
/* 디자인 고침 2(후보 R4-15 AG-38 옮김): 한 폼 안 체크 상자 셋을 같은 모양으로 — 「이 기기에 저장」(둥근 네모 6px)에 맞춰 「실제 해 시각」 · 「윤달」도 */
html body #formCard#formCard#formCard #birthForm#birthForm :is(input#tst, input#lunarLeap) { border-radius: 6px !important; }
/* 디자인 고침 2(후보 R4-16 AG-41 옮김): 「좌표 적용」은 위 입력 칸과 다른 단추 모양 — 알약 · 48px · 한 톤 밝은 바탕 */
html body #formCard#formCard#formCard #birthForm #applyCoords { min-height: 48px !important; height: 48px !important; margin-top: 6px !important; border-radius: 999px !important; background: rgba(255, 255, 255, .14) !important; font-weight: 600 !important; }
@media (hover: hover) { html body #formCard#formCard#formCard #birthForm #applyCoords:hover { background: rgba(255, 255, 255, .2) !important; } }

/* 디자인 고침 3(2026-10-28, 감사 F-2 · B-6 — 후보 R3 10문서 · R4 AG-01 · R4-7 이식): 천궁도 원 안의 아주 작은 글자(별자리 이름 · 하우스 번호 · ASC/MC — 폰에서 약 6–8px)는 빼고
   행성 기호만 1.2배. 같은 값은 원 옆 글(입력 미리보기 「태양 · 달 · 상승점」, 결과 세 줄 · 행성 목록)에 그대로 있다. 기호는 그 행성 자리(무리 g 의 원점)를 중심으로 커지고,
   누름 원(.v4-planet-hit)은 그대로라 누르는 동작은 같다. 1.2배 = 이웃 기호 사이 최소 간격 안에서 겹치지 않는 가장 큰 값(후보 R3 잰 값).
   결과 원은 599px 이하만(600px 이상은 440px 원 · 글자 9–10px 라 그대로), 입력 미리보기 원은 넓은 화면에서도 지름 약 280px 이라 모든 폭에서. 바깥 띠의 별자리 기호는 free-result-v6.js zodiacGlyphs */
@media (max-width: 599px) {
  #result.free-v2 .fr-v2:where([data-mock="apple1"]) .fr-maps .v4-chart :is(.report-birthmap-sign-label, .report-birthmap-house-number, .report-birthmap-axis-label) { display: none; }
  #result.free-v2 .fr-v2:where([data-mock="apple1"]) .fr-maps .v4-chart .report-birthmap-planet > :not(.v4-planet-hit) { scale: 1.2; transform-box: view-box; transform-origin: 0 0; }
}
.v4-preview .v4-chart :is(.report-birthmap-sign-label, .report-birthmap-house-number, .report-birthmap-axis-label) { display: none; }
.v4-preview .v4-chart .report-birthmap-planet > :not(.v4-planet-hit) { scale: 1.2; transform-box: view-box; transform-origin: 0 0; }
/* 축 선: 금색 그라데이션(상자 비율 단위)이 높이 0인 수평선(ASC–DSC)에서 칠해지지 않아 그 축이 모든 폭에서 안 보였다 → 단색 금색(그라데이션 가운데 색) */
.v4-preview .v4-chart line.report-birthmap-axis { stroke: #d6b97f; }
/* B-6(후보 R4-11 · AG-28 이식): 사주단자 미니 알약(폰 · 태블릿 고정)이 입력 칸 · 미리보기 원을 덮지 않게 — 글자를 치는 동안은 접고,
   알약이 떠 있는 동안 앵커 · 초점 이동이 알약 밑에 멈추지 않게 위 여백을 알약 아래까지(막대 안 단추 상쇄도 같은 값) */
@media screen and (max-width: 1023px) {
  html:not(:has(#result:not([hidden]))):has(.ne-mini.is-on) { scroll-padding-top: calc(var(--s2-bar-h, 52px) + 78px); }
  html:not(:has(#result:not([hidden]))):has(.ne-mini.is-on) body .s2-bar :is(a, button) { scroll-margin-top: calc(-1 * (var(--s2-bar-h, 52px) + 78px)); }
  html:has(#birthForm :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), select, textarea):focus) .ne-mini.is-on { opacity: 0; pointer-events: none; transform: translate(-50%, -10px) scale(.96); }
}
