/* 정식검사 이용통계 / 상세 유형 분포 — 독립 컴포넌트 스타일 */
.mbti-stats-section { padding-top: 12px; padding-bottom: 26px; }
.mbti-stats-shell { border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px,3vw,38px); background: linear-gradient(125deg, rgba(215,255,66,.075),rgba(255,255,255,.025) 52%,rgba(255,255,255,.04)); }
.mbti-stats-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.mbti-stats-heading h2 { font-size: clamp(22px,2.4vw,29px); line-height: 1.35; letter-spacing: -.025em; margin: 6px 0 9px; }
.mbti-stats-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.mbti-stats-heading .eyebrow { margin:0; font-size: 12px; }
.mbti-stats-total { flex: 0 0 auto; display: grid; min-width: 170px; text-align: right; gap: 2px; }
.mbti-stats-total > span { color: var(--muted); font-size: 13px; }
.mbti-stats-total > strong { color: var(--accent); font-size: clamp(32px,3.4vw,44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.mbti-stats-total strong small { font-size: 17px; margin-left: 3px; }
.mbti-stats-total > small { color: var(--muted); font-size: 12px; }
.mbti-stats-products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.mbti-stats-product { display: grid; gap: 6px; align-content: start; border-radius: 16px; padding: 17px 16px; border: 1px solid var(--line); background: rgba(0,0,0,.26); }
.mbti-stats-product > span { font-size: 13px; color: var(--muted); font-weight: 700; }
.mbti-stats-product > strong { font-size: 27px; font-weight: 850; line-height: 1.25; font-variant-numeric: tabular-nums; }
.mbti-stats-product strong small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.mbti-stats-product > em { font-size: 13px; font-style: normal; color: var(--accent); }
.mbti-stats-meter { display: flex; width: 100%; height: 9px; margin: 20px 0 18px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.07); }
.mbti-stats-meter span:nth-child(1) { background: #e5ff91; }
.mbti-stats-meter span:nth-child(2) { background: #a1b954; }
.mbti-stats-meter span:nth-child(3) { background: #8f9de3; }
.mbti-stats-meter span:nth-child(4) { background: #596dba; }
.mbti-stats-explainer { font-size: 14px; margin: 0 0 18px; color: var(--text); }
.mbti-stats-actions { display: grid; gap: 10px; width: min(100%, 330px); margin: 0 auto; }
.mbti-stats-actions .btn { display: flex; justify-content: center; width: 100%; text-align: center; }
.mbti-stats-disclaimer { color: var(--muted); font-size: 11px; margin: 20px 0 0; line-height: 1.6; }
.mbti-stats-disclaimer b { color: var(--text); font-weight: 600; }
.mbti-stats-dialog { position: fixed; inset: 0; width: min(95vw, 780px); max-width: 780px; max-height: min(91dvh,900px); margin: auto; padding: 0; color: var(--text); border: 1px solid rgba(255,255,255,.22); background: #121413; border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.8); }
.mbti-stats-dialog::backdrop { background: rgba(0,0,0,.79); backdrop-filter: blur(4px); }
.mbti-stats-dialog-inner { display: flex; flex-direction: column; max-height: min(91dvh,900px); }
.mbti-stats-dialog-header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.mbti-stats-dialog-header .eyebrow { font-size: 11px; margin: 0 0 5px; }
.mbti-stats-dialog-header h2 { margin: 0 0 4px; font-size: clamp(21px,2.6vw,27px); line-height: 1.35; }
.mbti-stats-dialog-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.mbti-stats-close { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 28px; color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.06); cursor: pointer; }
.mbti-stats-close:hover { background: rgba(255,255,255,.15); }
.mbti-stats-dialog-body { padding: 20px 28px 26px; overflow-y: auto; overscroll-behavior: contain; }
.mbti-stats-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 13px; background: rgba(255,255,255,.075); gap: 4px; margin-bottom: 18px; }
.mbti-stats-tabs button { border: 0; border-radius: 10px; padding: 12px; font: inherit; font-weight: 750; cursor: pointer; color: var(--muted); background: transparent; }
.mbti-stats-tabs button[aria-selected="true"] { background: var(--accent); color: #151515; }
.mbti-stats-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.mbti-stats-group-head > div { display: grid; gap: 3px; }
.mbti-stats-group-head strong { font-size: 17px; }
.mbti-stats-group-head small { font-size: 12px; color: var(--muted); }
.mbti-stats-group-head > span { font-size: 15px; font-weight: 850; color: var(--accent); white-space: nowrap; }
.mbti-stats-search-label { display: block; color: var(--text); font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.mbti-stats-select-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.mbti-stats-select-row select { min-width: 220px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: #242624; color: var(--text); font: inherit; font-size: 13px; }
.mbti-stats-picked { font-size: 13px; color: var(--muted); }
.mbti-stats-picked strong { color: var(--accent); }
.mbti-stats-type-list { display: grid; gap: 8px; }
.mbti-stats-type-row { display: grid; grid-template-columns: 48px 66px minmax(0,1fr) 112px; gap: 10px; align-items: center; min-width: 0; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.045); font-variant-numeric: tabular-nums; }
.mbti-stats-type-row.is-picked { border-color: var(--accent); background: rgba(215,255,66,.09); }
.mbti-stats-rank { font-size: 11px; color: var(--muted); }
.mbti-stats-type-code { font-size: 14px; font-weight: 800; }
.mbti-stats-bar { position: relative; display: block; height: 8px; background: rgba(255,255,255,.10); border-radius: 99px; overflow: hidden; }
.mbti-stats-bar > i { display:block; height:100%; width:0; background:var(--accent); border-radius: 99px; }
.mbti-stats-type-row .mbti-stats-count { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.mbti-stats-type-row .mbti-stats-count strong { color: var(--text); font-weight: 750; }
.mbti-stats-modal-footnote { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 17px 0; }
.mbti-stats-modal-apply { display: flex; justify-content: center; width: 100%; }
.mbti-stats-loading { color: var(--muted); font-size: 13px; margin: 0; padding: 20px; text-align: center; }
.mbti-stats-section :is(a,button,select):focus-visible, .mbti-stats-dialog :is(a,button,select):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media(max-width:760px) {
 .mbti-stats-heading { flex-direction: column; gap: 13px; }
 .mbti-stats-total { width: 100%; display:flex; align-items:baseline; justify-content:flex-start; gap:10px; text-align:left; }
 .mbti-stats-total > strong { font-size: 33px; }
 .mbti-stats-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .mbti-stats-product { padding: 14px; }
 .mbti-stats-product > strong { font-size: 23px; }
 .mbti-stats-dialog { width: calc(100vw - 18px); max-height: min(95dvh,920px); border-radius: 17px; }
 .mbti-stats-dialog-inner { max-height: min(95dvh,920px); }
 .mbti-stats-dialog-header { padding: 18px 16px 13px; }
 .mbti-stats-dialog-body { padding: 16px; }
 .mbti-stats-type-row { grid-template-columns: 37px 49px minmax(0,1fr) 85px; padding: 8px; gap: 6px; }
 .mbti-stats-type-code { font-size: 12px; }
 .mbti-stats-type-row .mbti-stats-count { font-size: 10px; }
 .mbti-stats-select-row select { min-width: min(220px,100%); width: 100%; }
}
@media(max-width:430px) {
 .mbti-stats-section .container { width: min(100% - 28px,var(--max)); }
 .mbti-stats-shell { padding: 18px 14px; border-radius: 19px; }
 .mbti-stats-heading h2 { font-size: 21px; }
 .mbti-stats-product > span { font-size: 12px; }
 .mbti-stats-group-head { align-items: flex-start; }
}
@media(prefers-reduced-motion:reduce) { .mbti-stats-section *,.mbti-stats-dialog * { scroll-behavior: auto!important; } }

/* 비교 통계: 16코드랩 기존 막대는 항상 표시하고 유형 클릭 시 한국·미국만 펼침 */
.mbti-stats-type-item { display: grid; gap: 0; min-width: 0; }
.mbti-stats-type-row { width: 100%; color: var(--text); border: 1px solid transparent; font: inherit; cursor: pointer; text-align: left; }
.mbti-stats-type-row:hover, .mbti-stats-type-row[aria-expanded="true"] { border-color: rgba(215,255,66,.35); background: rgba(215,255,66,.065); }
.mbti-stats-type-row .mbti-stats-count { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.mbti-stats-expand-mark { color: var(--accent); font-size: 17px; line-height: 12px; margin-left: 3px; }
.mbti-stats-comparison { padding: 12px 14px 14px; margin-top: 2px; border: 1px solid rgba(215,255,66,.2); border-radius: 11px; background: rgba(255,255,255,.035); }
.mbti-stats-comparison[hidden] { display: none !important; }
.mbti-stats-compare-title { display: block; color: var(--text); font-size: 12px; margin: 0 0 11px; }
.mbti-stats-benchmark-row { display: grid; grid-template-columns: 110px minmax(0,1fr) 65px; align-items: center; gap: 10px; margin-top: 9px; }
.mbti-stats-benchmark-label { font-size: 12px; color: var(--muted); }
.mbti-stats-benchmark-bar { background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; display: block; height: 8px; }
.mbti-stats-benchmark-bar i { display: block; height: 100%; border-radius: inherit; }
.mbti-stats-benchmark-kr i { background: #779fe8; }
.mbti-stats-benchmark-us i { background: #b5b5b5; }
.mbti-stats-benchmark-value { font-size: 12px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.mbti-stats-compare-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 10px 0 3px; }
.mbti-stats-compare-sources { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.mbti-stats-compare-sources a { font-size: 11px; text-decoration: underline; text-underline-offset: 3px; color: #b4ccff; }
@media(max-width:760px) { .mbti-stats-comparison { padding: 11px 10px; } .mbti-stats-benchmark-row { grid-template-columns: 87px minmax(0,1fr) 43px; gap: 6px; } .mbti-stats-benchmark-label, .mbti-stats-benchmark-value { font-size: 10px; } .mbti-stats-type-row .mbti-stats-count { gap: 2px; } .mbti-stats-expand-mark { margin-left: 0; } }
