body[data-diagnosis=mbti] .diagnosis-wrap{max-width:960px}
body[data-diagnosis=mbti] .diagnosis-intro{min-height:0;padding-inline-end:180px}
body[data-diagnosis=mbti] .diagnosis-intro .character-title{max-height:135px}
.mbti-start h2{font-size:28px;margin:12px 0}.mbti-start .primary{margin:25px 0 18px;width:100%}
.mbti-progress{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;border-bottom:1px solid #eadce1;padding-bottom:8px}.mbti-progress h2{font-size:18px;margin:0}.mbti-progress span{font-size:12px;margin-inline-start:auto;color:#70565f}.mbti-progress progress{flex-basis:100%;margin:12px 0}
.mbti-question{border:0;border-bottom:1px solid #eadce1;margin:0;padding:32px 0}.mbti-question legend{float:left;width:100%;font-size:18px;font-weight:800;line-height:1.75;margin-bottom:18px}.mbti-question legend+*{clear:both}.mbti-qnumber{display:inline-block;font-size:12px;color:#9a3b62;background:#fbe5ee;border-radius:30px;padding:1px 9px;margin-inline-end:10px;vertical-align:middle}
.mbti-scale-labels{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#795064;margin-bottom:6px}.mbti-scale{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;max-width:610px;margin:auto;direction:ltr}.mbti-choice{position:relative;display:grid;place-items:center;min-height:54px;cursor:pointer}.mbti-choice input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.mbti-choice-dot{display:grid;place-items:center;border:2px solid #cc93aa;color:#805768;border-radius:50%;width:34px;height:34px;font-size:11px;background:#fff}.mbti-choice.degree-1 .mbti-choice-dot{width:38px;height:38px}.mbti-choice.degree-2 .mbti-choice-dot{width:43px;height:43px}.mbti-choice.degree-3 .mbti-choice-dot{width:48px;height:48px}.mbti-choice input:checked+.mbti-choice-dot{background:#a62b59;color:#fff;border-color:#7f1940;box-shadow:0 0 0 4px #f8d8e5}.mbti-choice input:focus-visible+.mbti-choice-dot{outline:3px solid #007e97;outline-offset:5px}.mbti-choice:hover .mbti-choice-dot{border-color:#96274f}
.mbti-page-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px}.mbti-page-nav>button{min-height:48px;padding:10px 18px;border:1px solid #bd94a4;background:white;border-radius:10px}.mbti-page-nav>.primary{background:#ffe36f;border:2px solid #3d2b30}.mbti-page-nav>button:disabled{opacity:.5}.mbti-review fieldset{border:0;margin:25px 0;padding:0}.mbti-review legend{font-size:17px;font-weight:800;margin-bottom:12px}.mbti-tie-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mbti-tie-options label{display:flex;align-items:center;gap:9px;border:2px solid #dfc3ce;border-radius:12px;padding:15px;cursor:pointer}.mbti-tie-options label:has(input:checked){background:#fce2ec;border-color:#a62b59}.mbti-tie-options input{accent-color:#a62b59;width:20px;height:20px;flex:none}
.mbti-result-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;align-items:center;overflow:hidden}.mbti-result-hero .type-code{color:#a62b59;margin:12px 0;font-size:82px}.mbti-result-hero h3{font-size:24px;line-height:1.5;margin:12px 0}.mbti-result-title{font-size:17px;font-weight:800;color:#a62b59}.mbti-person{display:block;max-width:100%;object-fit:contain;height:auto}.mbti-person-result{width:250px;height:375px;justify-self:center}.mbti-result-hero>div{min-width:0;overflow-wrap:anywhere}
.mbti-axis-panel h3{font-size:23px;margin-top:0}.mbti-axis{margin:24px 0}.mbti-axis h4{margin:0 0 7px}.mbti-axis-ends{display:flex;justify-content:space-between;direction:ltr;font-size:14px;font-weight:800}.mbti-axis meter{height:22px;display:block}.mbti-axis meter::-webkit-meter-bar{background:#d7eced;border:0;border-radius:20px}.mbti-axis meter::-webkit-meter-optimum-value{background:#e578a0}.mbti-axis small{display:block;color:#765667;font-size:12px;margin-top:6px}
.mbti-toc{display:flex;gap:9px;flex-wrap:wrap;margin:30px 0 20px}.mbti-toc a{font-size:13px;background:#fff7e9;padding:9px 14px;border:1px solid #5f3948;border-radius:30px;text-decoration:none;min-height:44px}.mbti-detail{scroll-margin-top:20px}.mbti-detail h3{font-size:22px;margin:0 0 15px;color:#9f2c58}.mbti-detail p{font-size:16px;line-height:2;overflow-wrap:anywhere}.mbti-detail:last-child{background:#fff0b6}
.mbti-gallery{background:#fffdf8;border:2px solid #3d2b30;border-radius:18px;padding:16px 22px;margin:30px 0}.mbti-gallery>summary{font-size:19px}.mbti-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.mbti-type-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;background:#f8eaf0;border:1px solid #d6a7ba;border-radius:12px;padding:12px 8px;font-size:12px;overflow-wrap:anywhere}.mbti-type-grid button b{font-size:19px;color:#9f2c58}.mbti-person-card{height:185px;width:125px;object-fit:contain}.mbti-translation{color:#fff;font-size:11px;margin:20px 4px}
.mbti-profile-dialog{width:min(640px,calc(100% - 32px));max-height:85vh;border:2px solid #3d2b30;border-radius:20px;background:#fffdf8;color:#3d2b30;padding:26px;font:inherit}.mbti-profile-dialog::backdrop{background:#34212cc4}.mbti-profile-dialog .mbti-person{float:right;width:160px;height:245px;margin:0 0 20px 15px}.mbti-dialog-close{display:block;margin-bottom:20px;min-height:44px;border:1px solid #bd94a4;border-radius:8px;background:white;padding:8px 15px}.mbti-profile-dialog h2{color:#a62b59;font-size:38px}.mbti-profile-dialog p{line-height:1.9}
@media(max-width:600px){body[data-diagnosis=mbti] .diagnosis-wrap{padding-inline:12px}body[data-diagnosis=mbti] .diagnosis-intro{padding-inline-end:95px}body[data-diagnosis=mbti] .diagnosis-intro .character-title{width:90px;max-height:105px}.mbti-question-page{padding:20px 14px}.mbti-question{padding:28px 0}.mbti-question legend{font-size:17px}.mbti-scale{gap:0}.mbti-choice{min-height:52px}.mbti-choice-dot{width:26px;height:26px}.mbti-choice.degree-1 .mbti-choice-dot{width:29px;height:29px}.mbti-choice.degree-2 .mbti-choice-dot{width:34px;height:34px}.mbti-choice.degree-3 .mbti-choice-dot{width:38px;height:38px}.mbti-result-hero{grid-template-columns:minmax(0,1fr) 125px;padding:23px 17px;gap:8px}.mbti-result-hero .type-code{font-size:49px}.mbti-result-hero h3{font-size:19px}.mbti-result-hero p{font-size:13px}.mbti-person-result{width:125px;height:230px}.mbti-result-title{font-size:15px}.mbti-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mbti-person-card{height:165px;width:110px}.mbti-tie-options{grid-template-columns:1fr}.mbti-page-nav{gap:8px}.mbti-page-nav>button{padding:10px 12px;font-size:14px}.mbti-progress h2{font-size:16px}.mbti-progress span{font-size:11px}.mbti-detail p{font-size:15px}.mbti-detail h3{font-size:20px}.mbti-toc a{font-size:12px}.mbti-profile-dialog .mbti-person{width:110px;height:180px}}
@media(max-width:350px){.mbti-result-hero{grid-template-columns:minmax(0,1fr) 100px}.mbti-person-result{width:100px}.mbti-result-hero .type-code{font-size:42px}.mbti-choice.degree-3 .mbti-choice-dot{width:34px;height:34px}}

.mbti-scale-labels{direction:ltr}.mbti-character{object-fit:contain;max-width:100%;height:auto}.mbti-character-result{width:320px;max-height:480px;justify-self:center}.mbti-character-card{width:180px;height:220px}.mbti-profile-dialog .mbti-character{float:inline-end;width:220px}.mbti-question legend{overflow-wrap:anywhere}

body[data-diagnosis=mbti] .diagnosis-intro{position:relative;min-height:150px;padding-inline-end:140px}body[data-diagnosis=mbti] .diagnosis-intro .mbti-character-title{position:absolute;inset-inline-end:0;top:0;width:110px;height:150px}body[data-diagnosis=mbti] .diagnosis-intro.compact{min-height:0;padding-inline-end:0}body[data-diagnosis=mbti] .diagnosis-intro.compact .mbti-character-title{display:none}@media(max-width:600px){body[data-diagnosis=mbti] .diagnosis-intro{padding-inline-end:100px}.diagnosis-intro .mbti-character-title{max-width:95px}.mbti-character-result{max-height:260px}.mbti-character-card{height:180px}.mbti-profile-dialog .mbti-character{width:110px}}

/* Result identity and sharing: scoped to MBTI, with readable full-width copy. */
.mbti-result-hero{grid-template-columns:minmax(0,1fr) 34%;gap:0 30px;padding:36px;background:linear-gradient(145deg,#fffaf7 40%,#fce3ed);border-color:#b86888}
.mbti-result-identity{grid-column:1;grid-row:1;align-self:end}
.mbti-result-hero>.mbti-character{grid-column:2;grid-row:1 / span 2;width:100%;max-height:330px;filter:drop-shadow(0 14px 8px #884b6220)}
.mbti-result-caption{grid-column:1;grid-row:2;align-self:start}
.mbti-result-hero .type-code{font-size:clamp(56px,10vw,104px);letter-spacing:-.025em;line-height:1.15;margin:16px 0;color:#a52e5e;text-align:start;unicode-bidi:isolate}
.mbti-result-hero h3{font-size:clamp(22px,4vw,30px);line-height:1.6;margin:8px 0;color:#482536;overflow-wrap:anywhere}
.mbti-result-hero .mbti-result-title{font-size:17px;line-height:1.8;margin:8px 0;color:#795466}
.mbti-detail p,.mbti-profile-dialog p{white-space:pre-line;line-height:2;max-width:70ch}
.mbti-about{margin-top:26px}.mbti-about p{font-size:16px}
.mbti-share-panel{border-color:#b86888;padding:30px;background:#fffaf7}
.mbti-share-formats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 0}
.mbti-share-formats button{min-width:0;min-height:64px;border:1px solid #cdafba;background:#fff;border-radius:12px;padding:10px 14px;font:inherit;font-size:14px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.mbti-share-formats button small{display:block;font-size:11px;font-weight:600;color:#785568;margin-top:4px}
.mbti-share-formats button[aria-pressed=true]{background:#fbe0ec;border:2px solid #a52e5e;padding:9px 13px;color:#87244d}
.mbti-share-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:start}
.mbti-share-panel .image-preview{margin:24px 0 0;max-width:none;min-width:0;display:grid;place-items:center;background:#f6e8ee;border-radius:14px;padding:12px;min-height:200px}
.mbti-share-panel .image-preview img{max-height:520px;width:auto;max-width:100%;object-fit:contain;border:0;border-radius:8px;box-shadow:0 6px 20px #6d234d1a}
.mbti-share-panel .image-preview img[hidden]{display:none}
.mbti-share-controls{min-width:0;padding-top:24px}
.mbti-share-panel .button-stack{gap:12px}
.mbti-share-panel button{font-family:inherit;cursor:pointer}
.mbti-share-panel button:disabled{cursor:default;opacity:.5}
.mbti-share-panel button:focus-visible{outline:3px solid #007e97;outline-offset:3px}
.mbti-share-panel #image-share{min-height:54px;font-size:15px;line-height:1.65;background:#a52e5e;color:#fff;border:0;box-shadow:none;border-radius:12px;padding:14px}
.mbti-save-buttons button{display:flex;justify-content:space-between;gap:10px;align-items:center;width:100%;min-height:54px;border:1px solid #a66d85;border-radius:12px;background:#fff;padding:12px 14px;font-size:14px;font-weight:800;text-align:start;line-height:1.6}
.mbti-save-buttons button span{white-space:nowrap;font-size:11px;color:#8c385b}
.mbti-share-panel .mbti-social-buttons{grid-template-columns:1fr 1fr}
.mbti-share-panel .mbti-social-buttons button{font-size:14px;min-height:48px;font-weight:800;overflow-wrap:anywhere}
.mbti-share-panel .mbti-x-help{font-size:12px;line-height:1.85;margin-top:16px;color:#72525f}
.mbti-share-panel .local-note{margin-top:0;font-size:12px;line-height:1.8}
.mbti-share-panel #share-status:empty{display:none}
.mbti-share-panel textarea{font:inherit;font-size:13px;line-height:1.7}
@media(max-width:600px){
 .mbti-result-hero{padding:24px 20px;grid-template-columns:minmax(0,1fr) 40%;gap:10px 12px}
 .mbti-result-hero>.mbti-character{grid-row:1;width:100%;max-height:220px}
 .mbti-result-caption{grid-column:1 / -1;grid-row:2}
 .mbti-result-hero .type-code{font-size:clamp(48px,14vw,72px)}
 .mbti-result-hero .eyebrow{font-size:11px;line-height:1.7}
 .mbti-result-hero h3{font-size:23px;margin:12px 0 6px}
 .mbti-result-hero .mbti-result-title{font-size:15px}
 .mbti-share-panel{padding:22px 16px}.mbti-share-layout{grid-template-columns:1fr;gap:0}
 .mbti-share-panel .image-preview{max-width:380px;width:100%;margin:20px auto 0}
 .mbti-share-panel .image-preview[data-format=story] img{max-height:450px}
 .mbti-share-controls{padding-top:22px}.mbti-share-formats{gap:8px}
 .mbti-share-formats button{font-size:13px;padding-inline:8px}
 .mbti-share-formats button[aria-pressed=true]{padding-inline:7px}
 .mbti-detail p,.mbti-about p{font-size:15px}.mbti-detail h3{line-height:1.6}
}
