/* 부동산 궁합 — 공통 브랜드를 유지한 이야기형 결과. 다른 화면에는 적용되지 않는다. */
:root{--cp-ink:#161b21;--cp-sub:#68736d;--cp-line:#dae0e6;--cp-blue:#1f527e;--cp-soft:#eef1f4;--cp-bg:#f2f4f6;--cp-warn:#9a6a12;--cp-err:#b94333}
html{background:var(--cp-bg)}
.compat-page{margin:0;background:var(--cp-bg);color:var(--cp-ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Noto Sans KR","Apple SD Gothic Neo",sans-serif}
body.compat-page{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.compat-page *{box-sizing:border-box}
.compat-app{width:min(100%,780px);min-height:100dvh;margin:0 auto;padding:0 18px 48px}
.compat-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:20px 0 14px}
.compat-head h1{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.05em;white-space:nowrap}
.compat-lead{margin:0;color:#3f5163;font-size:14.5px;font-weight:700;line-height:1.5;word-break:keep-all}
.compat-lead span{color:#6a7784;font-weight:600}
.compat-card{margin-top:14px;padding:18px;border:1px solid var(--cp-line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(24,38,53,.045)}
.compat-card[hidden],.compat-result[hidden],.compat-page [hidden]{display:none!important}
.compat-step{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.compat-step h2{margin:0;font-size:17px;letter-spacing:-.03em}
.compat-search input,.compat-form input[type=date],.compat-form input[type=time],.compat-form input[type=number],.compat-form select{width:100%;min-height:46px;padding:0 13px;border:1px solid #cfd7df;border-radius:12px;background:#fff;color:var(--cp-ink);font:inherit;font-size:15px}
.compat-search input:focus,.compat-form input:focus,.compat-form select:focus{outline:2px solid rgba(31,82,126,.25);border-color:var(--cp-blue)}
.compat-subject{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-radius:13px;background:var(--cp-soft)}
.compat-subject div{display:grid;gap:2px;min-width:0}
.compat-subject small{color:var(--cp-sub);font-size:11px;font-weight:800}
.compat-subject b{font-size:15px;letter-spacing:-.02em;overflow-wrap:anywhere}
.compat-subject span{color:var(--cp-sub);font-size:11px}
.compat-subject button{flex:0 0 auto;min-height:36px;padding:0 13px;border:1px solid var(--cp-line);border-radius:10px;background:#fff;font:inherit;font-weight:800;cursor:pointer}
.compat-buildings{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#fff8ea;color:#7a520c;font-size:13px;font-weight:700;line-height:1.6}
.compat-status{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#f7f9fb;color:#344657;font-size:13px;font-weight:700;line-height:1.55}
.compat-status[data-tone=error]{background:#fdf0ee;color:var(--cp-err)}
.compat-status[data-tone=warn]{background:#fff7e6;color:var(--cp-warn)}
.compat-facts{display:grid;gap:8px;margin:0}
.compat-fact{display:grid;grid-template-columns:116px 1fr;gap:10px;padding:10px 0;border-top:1px solid #edf0f2}
.compat-fact:first-child{border-top:0}
.compat-fact dt{display:grid;align-content:start;gap:4px;font-size:13px;font-weight:850}
.compat-fact dt em{width:max-content;padding:2px 7px;border-radius:999px;background:#e8f1ea;color:#256b3c;font-size:10.5px;font-style:normal}
.compat-fact[data-tone=warn] dt em{background:#fff3dc;color:var(--cp-warn)}
.compat-fact[data-tone=muted] dt em{background:#eef0f2;color:#6b7680}
.compat-fact dd{display:grid;gap:4px;margin:0;font-size:13.5px;line-height:1.6;overflow-wrap:anywhere}
.compat-fact[data-tone=muted] dd{color:var(--cp-sub)}
.compat-fact dd small{color:#8a949d;font-size:11px}
.compat-foot{display:block;margin:12px 0 0;color:#7a858e;font-size:11.5px;line-height:1.6}
.compat-field{display:grid;gap:8px;padding:14px 0;border-top:1px solid #edf0f2}
.compat-step+.compat-field{border-top:0;padding-top:2px}
.compat-label{font-size:13.5px;font-weight:850}
.compat-label em{margin-left:5px;color:var(--cp-sub);font-size:11px;font-style:normal;font-weight:700}
.compat-field>small{color:var(--cp-sub);font-size:11.5px;line-height:1.55}
.compat-segment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;background:var(--cp-soft)}
.compat-segment-small{grid-template-columns:repeat(2,minmax(0,1fr));max-width:240px}
.compat-segment label{position:relative}
.compat-segment input{position:absolute;opacity:0}
.compat-segment span{display:grid;min-height:38px;place-items:center;border-radius:9px;color:#56616b;font-size:14px;font-weight:800;cursor:pointer}
.compat-segment input:checked+span{background:#fff;color:var(--cp-blue);box-shadow:0 2px 8px rgba(24,38,53,.08)}
.compat-segment input:focus-visible+span{outline:2px solid rgba(31,82,126,.35)}
.compat-row{display:flex;align-items:center;gap:10px}
.compat-row>input{flex:1}
.compat-row label{display:grid;flex:1;gap:4px;font-size:12px;font-weight:800}
.compat-check{display:flex!important;flex:0 0 auto!important;align-items:center;gap:6px;font-size:13.5px;font-weight:800;white-space:nowrap}
.compat-check input{width:18px;height:18px}
.compat-select{display:grid;gap:4px;color:#4b5761;font-size:12px;font-weight:800}
.compat-compass{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:300px}
.compat-compass button{min-height:42px;border:1px solid var(--cp-line);border-radius:11px;background:#fff;color:var(--cp-ink);font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.compat-compass button.active{border-color:var(--cp-blue);background:var(--cp-blue);color:#fff}
.compat-compass .compat-compass-clear{color:var(--cp-sub);font-size:12.5px}
.compat-precise summary{color:var(--cp-blue);font-size:13px;font-weight:800;cursor:pointer}
.compat-precise[open]>*:not(summary){margin-top:8px}
.compat-precise small{display:block;color:var(--cp-sub);font-size:11.5px;line-height:1.55}
.compat-submit{width:100%;min-height:50px;margin-top:6px;border:0;border-radius:13px;background:var(--cp-blue);color:#fff;font:inherit;font-size:16px;font-weight:900;cursor:pointer}
.compat-submit:disabled{opacity:.55}
.compat-pillars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.compat-pillar{display:grid;justify-items:center;gap:3px;padding:12px 4px;border:1px solid var(--cp-line);border-radius:14px;background:#fbfcfd}
.compat-pillar small{color:var(--cp-sub);font-size:11px;font-weight:800}
.compat-pillar b{font-size:26px;letter-spacing:.06em;font-family:"Noto Serif KR","Apple SD Gothic Neo",serif}
.compat-pillar span{font-size:14px;font-weight:850}
.compat-pillar i{color:#7a858e;font-size:11px;font-style:normal}
.compat-pillar.empty b{color:#b4bcc3}
.compat-daymaster{margin:12px 0 8px;font-size:13.5px;line-height:1.6}
.compat-elements{display:grid;gap:5px}
.compat-elements div{display:grid;grid-template-columns:22px 1fr 18px;align-items:center;gap:8px;font-size:12.5px;font-weight:800}
.compat-elements i{display:block;height:8px;border-radius:999px;background:linear-gradient(90deg,var(--cp-blue) calc(var(--w)*100%),#e9edf0 0)}
.compat-notes{margin:10px 0 0;padding-left:18px;color:var(--cp-warn);font-size:12px;line-height:1.6}
.compat-summary{margin:0 0 10px;color:#3c4853;font-size:13px;line-height:1.65}
.compat-rules{display:grid;gap:8px}
.compat-rule{padding:12px 13px;border:1px solid var(--cp-line);border-radius:13px}
.compat-rule header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.compat-rule header b{font-size:14px;letter-spacing:-.02em}
.compat-rule header em{flex:0 0 auto;padding:2px 8px;border-radius:999px;background:#e8f1ea;color:#256b3c;font-size:11px;font-style:normal;font-weight:800}
.compat-rule[data-tone=warn] header em{background:#fff3dc;color:var(--cp-warn)}
.compat-rule[data-tone=muted]{background:#fafbfc}
.compat-rule[data-tone=muted] header em{background:#eef0f2;color:#6b7680}
.compat-rule p{margin:6px 0 0;font-size:13px;line-height:1.6}
.compat-rule .compat-evidence{color:var(--cp-blue);font-weight:700}
.compat-rule small{display:block;margin-top:6px;color:#8a949d;font-size:11px;line-height:1.55}
.compat-missing{margin-top:10px}
.compat-missing summary{color:var(--cp-sub);font-size:12.5px;font-weight:800;cursor:pointer}
.compat-missing ul{margin:8px 0 0;padding-left:18px;color:var(--cp-sub);font-size:12px;line-height:1.6}
@media (max-width:420px){
  .compat-app{padding:0 14px 44px}
  .compat-fact{grid-template-columns:92px 1fr}
  .compat-pillar b{font-size:22px}
}
@media (min-width:700px){
  body.compat-page{padding-bottom:40px}
  .compat-head{padding-top:22px}
}

/* Reading experience: a relation story first, technical evidence on demand. */
.compat-story-hero{position:relative;isolation:isolate;overflow:hidden;padding:32px 28px;border-radius:24px;background:#143c5c;color:#fff;margin-top:20px}
.compat-story-hero:after{content:"";position:absolute;z-index:-1;width:230px;height:230px;border:1px solid #ffffff26;box-shadow:0 0 0 34px #ffffff08,0 0 0 68px #ffffff06;border-radius:50%;right:-110px;top:-80px;pointer-events:none}
.compat-story-kicker{font-size:12px!important;font-weight:800;letter-spacing:.1em;color:#32638b;margin:0 0 12px!important}
.compat-story-hero .compat-story-kicker{color:#a9d3f0}
.compat-story-address{font-size:14px;margin:0 0 20px;color:#d3e6f3;overflow-wrap:anywhere}
.compat-story-hero h2{max-width:580px;font-size:clamp(26px,5vw,38px);line-height:1.4;letter-spacing:-.04em;margin:0 0 16px;text-wrap:balance;word-break:keep-all;overflow-wrap:anywhere}
.compat-story-deck{font-size:17px;line-height:1.85;max-width:600px;margin:0;color:#e9f3f9;word-break:keep-all;overflow-wrap:anywhere}
.compat-story-label{display:inline-block;margin-top:24px;font-size:12px;color:#b7d3e8}
.compat-story-chapter{padding:28px;margin-top:18px;box-shadow:none}
.compat-story-chapter h2{font-size:24px;letter-spacing:-.035em;line-height:1.5;margin:0 0 16px;word-break:keep-all;overflow-wrap:anywhere}
.compat-story-chapter p,.compat-story-alert p{font-size:16px;line-height:1.95;letter-spacing:-.015em;margin:12px 0;color:#344452;word-break:keep-all;overflow-wrap:anywhere}
.compat-story-why{margin:22px 0;padding:18px 20px;background:#f1f6fa;border-radius:14px}
.compat-story-why b{font-size:14px;color:#245275}
.compat-story-why p{margin:7px 0 0}
.compat-story-invitation{margin:22px 0 0;padding:0 0 0 18px;border-left:3px solid #76a3c4}
.compat-story-invitation span{font-size:12px;font-weight:800;color:#32638b}
.compat-story-invitation p{margin:8px 0 0}
.compat-story-pair{padding:22px 0 4px;border-top:1px solid #e3ebf0}
.compat-story-pair+.compat-story-pair{margin-top:24px}
.compat-story-pair h3,.compat-story-card h3{font-size:20px;line-height:1.5;letter-spacing:-.03em;margin:10px 0;word-break:keep-all;overflow-wrap:anywhere}
.compat-story-pair-tag{font-size:13px;font-weight:800;color:#32638b}
.compat-story-pair-lead{font-weight:750;color:#193d59!important}
.compat-story-reading{font-size:15px!important;color:#596b78!important}
.compat-story-card{padding:8px 0 16px}
.compat-story-card+.compat-story-card{border-top:1px solid #e3ebf0;padding-top:18px}
.compat-story-evidence{display:block;font-size:12px;line-height:1.7;color:#627581;margin-top:14px}
.compat-story-alert{margin-top:18px;padding:24px 28px;border:1px solid #dfb994;border-radius:18px;background:#fff8f0}
.compat-story-alert .compat-story-kicker{color:#98531c}
.compat-story-alert .compat-story-card{padding-bottom:0}
.compat-story-alert h3{color:#7d441e}
.compat-story-note{padding:14px 18px;margin:12px 0;border-radius:12px;background:#edf4fa;color:#274a66;font-size:14px;line-height:1.8}
.compat-story-disclosure{font-size:13px;line-height:1.9;color:#60717e;padding:10px 8px}
.compat-story-preview>summary{cursor:pointer;font-size:14px;font-weight:800;color:#325a76;padding:8px 0;line-height:1.6}
.compat-story-preview[open] .compat-facts{margin-top:10px}
.compat-result:focus{outline:none}
@media(max-width:480px){.compat-story-hero{padding:26px 22px;border-radius:20px}.compat-story-chapter{padding:23px 20px}.compat-story-alert{padding:20px}.compat-story-chapter h2{font-size:22px}.compat-story-why{padding:16px}.compat-story-deck{font-size:16px}.compat-story-pair h3,.compat-story-card h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.compat-page{scroll-behavior:auto}}

/* Clear relationship verdict and its inputs. */
.compat-verdict-badge{display:inline-block;padding:7px 11px;border:1px solid #ffffff45;border-radius:8px;margin-bottom:18px;font-size:13px;font-weight:800;color:#e2f3ff}
.compat-verdict-scope{font-size:13px;line-height:1.8;color:#c1d8e8;margin:22px 0 0;padding-top:16px;border-top:1px solid #ffffff25}
.compat-verdict-facts{margin:18px 0;padding:0 16px;background:#f1f6fa;border-radius:12px}
.compat-verdict-facts>div{display:grid;grid-template-columns:65px minmax(0,1fr);gap:12px;padding:13px 0;font-size:16px;line-height:1.8}
.compat-verdict-facts>div+div{border-top:1px solid #dce6ee}
.compat-verdict-facts dt{font-weight:750;color:#365a76}
.compat-verdict-facts dd{margin:0;color:#203b50;overflow-wrap:anywhere}

.compat-place-chapter .compat-story-card{padding:12px 0 22px}
.compat-place-sources{padding-top:16px;border-top:1px solid #dce6ee}
.compat-place-sources summary{font-size:14px;color:#325a76;font-weight:700;cursor:pointer}
.compat-place-sources a{color:#245275;text-underline-offset:3px}
.compat-direction-summary{margin-top:0}

/* Questions about the user's life lead the reading. */
.compat-scenarios{grid-template-columns:repeat(2,minmax(0,1fr))}
.compat-life-nav{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 10px}
.compat-life-nav a{padding:9px 13px;border:1px solid #c9d9e5;border-radius:999px;background:white;color:#245275;font-size:14px;font-weight:750;text-decoration:none}
.compat-life-nav a:focus-visible{outline:3px solid #609dcc;outline-offset:2px}
.compat-life-intro{color:#60717e;font-size:13px;line-height:1.8}
.compat-life-card{scroll-margin-top:90px}
.compat-life-card .compat-life-answer{font-size:21px;font-weight:800;color:#174a6d;line-height:1.65;padding:15px 18px;background:#edf5fa;border-radius:12px}
.compat-life-reason{margin:20px 0}
.compat-life-reason>b{font-size:14px;color:#32638b}
.compat-life-reason p{margin-top:5px}
.compat-life-card .compat-life-check{font-size:14px;color:#76512c;background:#fff8ef;padding:12px 15px;border-radius:10px}
.compat-life-basis summary,.compat-life-background>summary{font-size:14px;font-weight:750;color:#325a76;cursor:pointer;line-height:1.7}
.compat-life-basis{padding-top:16px;border-top:1px solid #e1e8ee}
.compat-life-basis ul{padding-left:20px;font-size:13px;line-height:1.9;color:#5a6c78}
.compat-life-background{margin-top:24px;padding-top:18px;border-top:1px solid #cbd8e2}
@media(max-width:480px){.compat-life-card .compat-life-answer{font-size:19px}}

.compat-life-alert-detail summary{font-size:16px;font-weight:750;line-height:1.7;color:#7d441e;cursor:pointer}
.compat-life-alert-detail+.compat-life-alert-detail{margin-top:12px}
.compat-life-alert-detail[open]{padding-top:4px}

.compat-life-connections{margin:18px 0}
.compat-life-connections summary{font-size:14px;font-weight:750;color:#325a76;cursor:pointer;line-height:1.7}
.compat-life-card .compat-life-story{font-size:17px;line-height:1.95;color:#294657}

.compat-life-rule { overflow-wrap: anywhere; font-size: 12px; color: var(--muted, #64748b); }

.compat-life-why, .compat-life-tip { margin: 22px 0; padding: 18px 20px; border-radius: 14px; background: #f4f7fa; }
.compat-life-tip { background: #edf7f1; }
.compat-life-why p, .compat-life-tip p { margin: 9px 0 0; line-height: 1.85; }
.compat-life-why b, .compat-life-tip b { font-size: 14px; color: #355967; }

/* 맨 위 한 장 풀이(서버 story) — 기분 좋게 읽히는 요약 카드. */
.compat-friendly{margin-top:20px;background:linear-gradient(180deg,#fffaf0 0,#fff 140px);border-color:#ecdcb8}
.compat-friendly-where{margin:0 0 4px;color:#9a6a12;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.compat-friendly-head{margin:0 0 14px;font-size:21px;line-height:1.4;letter-spacing:-.04em;word-break:keep-all;overflow-wrap:anywhere}
.compat-friendly-part{padding:12px 0;border-top:1px solid #f1e8d6}
.compat-friendly-part h3{display:flex;align-items:center;gap:7px;margin:0 0 6px;font-size:15px;letter-spacing:-.02em}
.compat-friendly-part p{margin:0;color:#33404b;font-size:15px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.compat-friendly-closing{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#fff3dc;color:#7a520c;font-size:15px;font-weight:850;line-height:1.6;word-break:keep-all}
.compat-friendly-part[data-kind="domain"] h3{color:#7a520c}
/* 2027 신년 이벤트: 정미년 신년운 카드만 살짝 붉은 금빛으로 */
.compat-friendly-part[data-kind="new_year"]{margin:6px 0;padding:14px 16px;border:1.5px solid #f1c9a8;border-radius:14px;background:linear-gradient(180deg,#fff6ec,#fffaf3)}
.compat-friendly-part[data-kind="new_year"] h3{color:#b3261e}

/* 대상지 선택 지도 — 볼륨스터디·딜체크와 같은 네이버 지도+지적도 구성. */
.compat-map-guide{margin:14px 0 0;text-align:center;color:#50677c;font-size:13px}
.compat-map-wrap{position:relative;height:clamp(380px,60svh,660px);margin:12px -4px 0;border:1px solid #d6e2ec;border-radius:14px;background:#dce7ef;overflow:hidden}
.compat-map{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}
.compat-map-chip{position:absolute;z-index:3;left:54px;top:12px;padding:6px 9px;border-radius:999px;background:#153e61;color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;pointer-events:none}
.compat-map-tools{position:absolute;z-index:4;top:12px;right:12px;display:flex;flex-direction:column;border:1px solid #c8d9e7;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 3px 12px rgba(25,52,77,.12)}
.compat-map-tool{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:#fff;color:#43566e;cursor:pointer}
.compat-map-tool+.compat-map-tool{border-top:1px solid rgba(23,67,116,.11)}
.compat-map-tool:disabled{opacity:.45;cursor:default}
.compat-map-tool[aria-pressed="true"]{color:#0d4b78;background:#eaf3fa}
.compat-map-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.compat-map-tool svg .fill{fill:currentColor;stroke:none}
.compat-map-target{position:absolute;z-index:4;top:100px;right:12px;padding:8px 7px;border:1px solid #c8d9e7;border-radius:8px;background:#fff;color:#315a78;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.compat-map-state{position:absolute;z-index:3;left:12px;bottom:12px;max-width:calc(100% - 24px);margin:0;padding:8px 10px;border:1px solid rgba(176,196,212,.8);border-radius:9px;background:rgba(255,255,255,.95);color:#385873;font-size:12px;font-weight:700;line-height:1.5;box-shadow:0 4px 16px rgba(25,52,77,.12)}
.compat-map-state.error{color:#a83d35}
.compat-map-state[hidden]{display:none}
.compat-map-wrap+.compat-status{margin-top:12px}

/* ‘궁금한 일별로 더 자세히 보기’ 안의 풀이를 맨 위 한 장 풀이와 같은 글씨 크기로 맞춘다. */
.compat-friendly-more .compat-story-hero{padding:22px 20px;border-radius:16px}
.compat-friendly-more .compat-story-hero h2,
.compat-friendly-more .compat-story-chapter h2{font-size:21px;line-height:1.4;letter-spacing:-.04em;margin:0 0 14px}
.compat-friendly-more .compat-story-chapter{padding:20px}
.compat-friendly-more .compat-story-alert{padding:20px}
.compat-friendly-more .compat-story-pair h3,
.compat-friendly-more .compat-story-card h3{font-size:15px;line-height:1.6;letter-spacing:-.02em}
.compat-friendly-more .compat-story-deck,
.compat-friendly-more .compat-story-chapter p,
.compat-friendly-more .compat-story-alert p,
.compat-friendly-more .compat-life-card .compat-life-story{font-size:15px;line-height:1.8;letter-spacing:0}
.compat-friendly-more .compat-story-reading{font-size:15px!important}
.compat-friendly-more .compat-life-card .compat-life-answer{font-size:16px;line-height:1.6;padding:12px 14px}
.compat-friendly-more .compat-story-kicker,
.compat-friendly-more .compat-story-address{font-size:12px}
.compat-friendly-more .compat-story-why{margin:16px 0;padding:14px 16px}
.compat-friendly-more .compat-story-why b,
.compat-friendly-more .compat-life-reason>b,
.compat-friendly-more .compat-story-note,
.compat-friendly-more .compat-life-card .compat-life-check{font-size:13px}
.compat-friendly-more .compat-life-alert-detail summary{font-size:15px}
.compat-friendly-more .compat-life-nav a{font-size:13px}

.compat-friendly-more .compat-story-chapter p.compat-life-rule{font-size:12px;line-height:1.7}

/* 질문에 바로 답하기 — 결론 한 줄을 크게, 이유는 한 줄. */
.compat-friendly-qa{padding:13px 0;border-top:1px solid #f1e8d6}
.compat-friendly-qa h3{display:flex;align-items:center;gap:7px;margin:0 0 6px;color:#5b6772;font-size:14px;font-weight:750;letter-spacing:-.02em}
.compat-friendly-answer{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;margin:0;color:#1d2a35;font-size:16px;font-weight:850;line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
.compat-friendly-why{margin:6px 0 0;color:#4a5865;font-size:14px;line-height:1.75;word-break:keep-all;overflow-wrap:anywhere}
.compat-friendly-tag{display:inline-flex;align-items:center;gap:5px;flex:none;padding:2px 9px 2px 7px;border-radius:999px;background:#e6f2ea;color:#1f6a3c;font-size:12px;font-weight:800}
.compat-stars{color:#e0a100;font-size:12.5px;letter-spacing:-.5px;font-weight:900}
.compat-stars i{color:#d5dbe0;font-style:normal}
.compat-friendly-qa[data-stars="5"] .compat-friendly-tag{background:#fff1c9;color:#8a5a00}
.compat-friendly-qa[data-stars="3"] .compat-friendly-tag{background:#eaf1f8;color:#2c5a80}
.compat-friendly-qa[data-stars="2"] .compat-friendly-tag{background:#fff1dc;color:#8a5a12}
.compat-friendly-qa.is-overall .compat-stars{font-size:14px}
.compat-friendly-qa.is-overall .compat-stars i{color:#7f97ab}
.compat-friendly-qa.is-overall{margin:6px 0 4px;padding:16px;border:0;border-radius:14px;background:#163e5f}
.compat-friendly-qa.is-overall h3{color:#bcd8ee}
.compat-friendly-qa.is-overall .compat-friendly-answer{color:#fff;font-size:19px}
.compat-friendly-qa.is-overall .compat-friendly-why{color:#d7e7f3}
.compat-friendly-qa-head{margin:16px 0 0;color:#9a6a12;font-size:12px;font-weight:800;letter-spacing:.06em}

/* 한 화면에 한 단계: 진행 표시 · 다음 버튼 · 선택한 곳 · 다시 보기 */
.compat-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:2px 0 4px;padding:0;list-style:none}
.compat-progress button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;padding:0 8px;border:1px solid var(--cp-line);border-radius:999px;background:#fff;color:#7b8794;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.compat-progress button span{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#e8edf2;color:#6b7783;font-size:11px;font-weight:900}
.compat-progress button:disabled{cursor:default;opacity:.55}
.compat-progress li[data-done="true"] button{color:var(--cp-blue);border-color:#c9dae8}
.compat-progress li[data-done="true"] button span{background:#dbe9f5;color:var(--cp-blue)}
.compat-progress button[aria-current="step"]{border-color:var(--cp-blue);background:var(--cp-blue);color:#fff;opacity:1}
.compat-progress button[aria-current="step"] span{background:#fff;color:var(--cp-blue)}
.compat-nextbar{position:fixed;z-index:60;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;width:min(calc(100% - 28px),744px);padding:10px 10px 10px 16px;border-radius:16px;background:#163e5f;color:#fff;box-shadow:0 12px 32px rgba(18,40,60,.28);transform:translateX(-50%);animation:compat-rise .22s ease-out}
.compat-nextbar span{display:grid;flex:1;min-width:0;gap:1px}
.compat-nextbar small{color:#b9d3e8;font-size:11px;font-weight:800}
.compat-nextbar b{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.compat-nextbar button{flex:none;min-height:44px;padding:0 16px;border:0;border-radius:12px;background:#ffd166;color:#3d2c00;font:inherit;font-size:15px;font-weight:900;cursor:pointer}
.compat-nextbar button:disabled{background:#d7e3ee;color:#4f6577;cursor:default}
@keyframes compat-rise{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translateX(-50%)}}
.compat-pane[data-pane="1"]{padding-bottom:84px}
.compat-picked{display:flex;align-items:center;gap:8px;margin-top:14px;padding:12px 14px;border:1px solid var(--cp-line);border-radius:14px;background:#fff}
.compat-picked b{flex:1;min-width:0;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.compat-picked button,.compat-again button{flex:none;min-height:36px;padding:0 13px;border:1px solid var(--cp-line);border-radius:10px;background:#fff;color:var(--cp-ink);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.compat-again{display:flex;gap:8px;justify-content:center}
.compat-again button{flex:1;min-height:44px;padding:0 14px;font-size:14px}
@media (min-width:700px){.compat-nextbar{bottom:24px}}
@media (max-width:420px){.compat-progress button{font-size:12px;gap:4px}.compat-nextbar button{padding:0 12px;font-size:14px}}
@media (prefers-reduced-motion:reduce){.compat-nextbar{animation:none}}

/* 결과 카드 맨 위: 옅은 수묵 산수(직접 그린 선 그림). 제목 뒤에만 깔고 아래로 사라진다. */
.compat-friendly{position:relative;isolation:isolate}
.compat-friendly::before{content:"";position:absolute;z-index:-1;inset:0 0 auto 0;height:170px;border-radius:inherit;background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 200" fill="none" stroke="%23a9843e" stroke-linecap="round"%3E%3Ccircle cx="478" cy="52" r="24" stroke-width="1.6" opacity=".55"/%3E%3Cpath d="M520 40c14-6 30-4 40 4M408 30c10-5 22-5 30 1" stroke-width="1.2" opacity=".4"/%3E%3Cpath d="M0 132C40 118 70 96 104 104s58-30 92-18 52 34 84 18 50-44 86-34 56 30 88 22 60-14 86-4" fill="%23e7d6b0" fill-opacity=".28" stroke-width="1.4" opacity=".6"/%3E%3Cpath d="M60 150c34-22 64-46 104-40s66 30 104 20 56-36 98-30 62 22 104 18 70-6 96 6" fill="%23efe3c7" fill-opacity=".35" stroke-width="1.2" opacity=".5"/%3E%3Cpath d="M0 172c24-6 44-6 68 0s44 6 68 0 44-6 68 0 44 6 68 0 44-6 68 0 44 6 68 0 44-6 68 0 44 6 68 0" stroke-width="1.1" opacity=".45"/%3E%3Cpath d="M30 188c24-6 44-6 68 0s44 6 68 0 44-6 68 0 44 6 68 0 44-6 68 0 44 6 68 0 44-6 68 0" stroke-width="1" opacity=".3"/%3E%3C/svg%3E') right -10px top 4px/auto 100% no-repeat;opacity:.55;-webkit-mask-image:linear-gradient(#000 35%,transparent);mask-image:linear-gradient(#000 35%,transparent);pointer-events:none}

/* 층 입력: 지상/지하 + 숫자(휴대폰 숫자 자판에 ‘-’가 없어서), 건물 매수는 지하·지상 규모 */
.compat-floor-row .compat-segment-small{flex:0 0 136px}
.compat-floor-row>input{flex:1;min-width:0}
.compat-unit{color:var(--cp-sub);font-size:14px;font-weight:800}
.compat-scale-row label{display:flex;flex-direction:column;gap:6px}
.compat-scale-row label>span{display:flex;align-items:center;gap:8px;color:var(--cp-sub);font-size:14px;font-weight:800}
.compat-scale-row input{flex:1;min-width:0}

/* 결과 아래: 더 깊이 보기(두 줄 목록) + 링크·다시 보기 */
.compat-more-box{margin-top:16px;border:1px solid var(--cp-line);border-radius:18px;background:#fff;overflow:hidden}
.compat-more-title{margin:0;padding:14px 18px 6px;color:var(--cp-sub);font-size:12px;font-weight:850;letter-spacing:.04em}
.compat-more-row{border-top:1px solid #eef1f4}
.compat-more-row:first-of-type{border-top:0}
.compat-more-row>summary{display:flex;align-items:center;gap:10px;padding:14px 18px;color:#24384a;font-size:15px;font-weight:800;cursor:pointer;list-style:none}
.compat-more-row>summary::-webkit-details-marker{display:none}
.compat-more-row>summary small{margin-left:auto;padding:2px 8px;border-radius:999px;background:var(--cp-soft);color:var(--cp-sub);font-size:11px;font-weight:800}
.compat-more-row>summary::after{content:"";width:8px;height:8px;margin-left:8px;border-right:2px solid #8a98a5;border-bottom:2px solid #8a98a5;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.compat-more-row[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.compat-more-row>summary:hover{background:#f7f9fb}
.compat-more-row[open]{padding-bottom:12px}
.compat-more-row>:not(summary){margin-inline:12px}
.compat-more-row .compat-card{box-shadow:none}
.compat-actions{display:grid;gap:10px;margin:16px 0 8px}
.compat-share{display:grid;gap:8px;padding:16px;border-radius:18px;background:#163e5f;color:#fff}
.compat-share-make{min-height:48px;border:0;border-radius:12px;background:#ffd166;color:#3d2c00;font:inherit;font-size:16px;font-weight:900;cursor:pointer}
.compat-share-make:disabled{opacity:.6;cursor:default}
.compat-share-done{display:flex;gap:8px}
.compat-share-done input{flex:1;min-width:0;min-height:46px;padding:0 12px;border:0;border-radius:12px;background:#fff;color:var(--cp-ink);font:inherit;font-size:15px;font-weight:800}
.compat-share-done button{flex:none;min-height:46px;padding:0 18px;border:0;border-radius:12px;background:#ffd166;color:#3d2c00;font:inherit;font-weight:900;cursor:pointer}
.compat-share small{color:#c7dbeb;font-size:12px;line-height:1.5}
.compat-shared-foot{margin:18px 0 0;text-align:center}
.compat-shared-foot a{color:var(--cp-blue);font-weight:800}
body.compat-shared{padding-bottom:40px}

/* 신년 이벤트 배지: 제목 위 한 줄, 세뱃돈 봉투 느낌의 진한 빨강 + 금색 별 */
.compat-event{flex-basis:100%;margin:0 0 2px}
.compat-event-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px 3px 8px;border:1px solid #f0cdb8;border-radius:999px;background:#fdf2ea;color:#b4513a;font-size:12px;font-weight:800;letter-spacing:.01em}
.compat-event-chip>span{color:#d9912f;font-size:12px}

.compat-head--badged { --compat-badge-inset: 61px; }
.compat-head--badged .compat-event,
.compat-head--badged .compat-badged-title { padding-inline-start: var(--compat-badge-inset); }
.compat-badged-title { position: relative; }
.compat-title-badge {
  position: absolute;
  inset-inline-start: 6px;
  top: -5px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  transform: rotate(-45deg);
  border: 1px solid #d79e55;
  border-radius: 8px;
  background: #ffebbc;
  color: #6c3d16;
  box-shadow: 1px 2px 0 #d79e554d;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .compat-head--badged .compat-lead { padding-inline-start: var(--compat-badge-inset); }
}

/* 풀이 다음에 해 볼 일: 볼륨스터디(신축 검토)·딜체커(가격) */
.compat-next-step{display:flex;align-items:center;gap:12px;margin-top:10px;padding:14px 16px;border:1.5px solid #c9dae8;border-radius:14px;background:#f3f8fc;color:var(--cp-ink);text-decoration:none}
.compat-next-step span{display:grid;flex:1;gap:2px}
.compat-next-step b{font-size:15px;font-weight:850;color:#173f60}
.compat-next-step small{color:#4c6478;font-size:13px}
.compat-next-step i{flex:none;font-style:normal;font-size:20px;font-weight:900;color:var(--cp-blue)}
.compat-next-step:hover{background:#e8f2fa}
/* 단지(여러 동): 몇 동인지 써 넣기 */
#compatDong{width:100%;max-width:220px;min-height:46px;padding:0 13px;border:1px solid #cfd7df;border-radius:12px;background:#fff;color:var(--cp-ink);font:inherit;font-size:15px}
.compat-dong-hint{margin:6px 0 0;color:#6b7785;font-size:12.5px}
/* 전통 풀이 길게 읽기(서버 longread.py, 2026-12-03 재구성) */
.compat-long{display:grid;gap:14px;padding:6px 2px 4px}
.compat-long-chapter{padding:16px 18px;border:1px solid #e7e1d4;border-radius:14px;background:#fffdf8}
.compat-long-chapter h3{display:flex;gap:8px;align-items:center;margin:0 0 8px;font-size:16px;color:var(--cp-ink)}
.compat-long-lead{margin:0 0 10px;color:#6b5a3a;font-size:14px;line-height:1.6}
.compat-long-chapter ul{margin:0 0 10px;padding-left:18px;display:grid;gap:5px;font-size:14px;line-height:1.55}
.compat-long-chapter p{margin:0 0 8px;font-size:14.5px;line-height:1.7}
.compat-long-chapter p:last-child{margin-bottom:0}
