@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');
/* Keep narrow form controls inside their grid cells, including native date fields. */
.input-preview *{box-sizing:border-box}
.input-preview input,.input-preview select,.input-preview textarea{min-width:0;max-width:100%}
.input-preview fieldset{min-inline-size:0}
.input-preview .input-preview-top{padding-top:calc(18px + env(safe-area-inset-top))}
.input-preview main{padding-bottom:calc(30px + env(safe-area-inset-bottom))!important}
body.input-preview{color:#392c29;background:radial-gradient(ellipse at 0 12%,#f5ded4a0,transparent 42%),#fbf6ee;font-size:16px;--ink:#392c29;--muted:#766158;--accent:#b52338;--green:#b52338;--paper:#fffaf4;color-scheme:only light}
.input-preview .site-header,.input-preview .fortune-start,.input-preview .hero-story,.input-preview .exam-intro,.input-preview .exam-promo,.input-preview .guide-section,.input-preview .closing-note{display:none}
.input-preview-top{max-width:700px;margin:auto;display:flex;align-items:center;padding:18px 22px;gap:12px;border-bottom:1px solid #dac5b575}
.preview-back{width:44px;height:44px;display:grid;place-items:center;border:1px solid #d6bba9;border-radius:50%;font-size:29px;text-decoration:none;color:#684d42;background:#fffaf4}
.preview-logo{font:700 26px 'Gowun Batang',serif;text-decoration:none;color:#6c3c34;letter-spacing:.04em}.preview-logo span{font-size:70%}
.preview-category{margin-left:auto;padding:7px 13px;border:1px solid #d3ac8d;background:#ffe8cf;border-radius:10px;color:#683c2d;font-size:14px;font-weight:700}
.preview-welcome{max-width:660px;margin:28px auto 20px;padding:0 24px;display:flex;align-items:center;gap:16px}
.welcome-copy{flex:1;min-width:0}.welcome-copy>p{color:#9c5449;font-size:13px;letter-spacing:.03em;margin:0 0 9px;font-weight:700}.welcome-copy h1{font:700 clamp(25px,5.5vw,34px)/1.45 'Gowun Batang',serif;word-break:keep-all;letter-spacing:-.04em;margin:0 0 12px}.welcome-copy>div{font-size:15px;line-height:1.8;color:#766158;word-break:keep-all}
.preview-welcome img{width:102px;height:146px;object-fit:cover;object-position:center 25%;border-radius:70px 70px 22px 22px;border:3px solid #fff6e8;box-shadow:0 5px 18px #875c3826}
.input-preview .hero,.input-preview .exam-layout{display:block;max-width:660px;margin:0 auto;padding:0 20px 35px;min-height:0}
.input-preview .experience-card{width:100%;max-width:none;background:#fffcf7;border:1.5px solid #d7bdab;border-radius:24px;padding:25px;box-shadow:0 10px 30px #65412d0b;transform:none}
.input-preview .experience-card:before,.input-preview .experience-card:after{display:none}
.input-preview .experience-card h2{font:700 25px/1.5 'Gowun Batang',serif;letter-spacing:-.025em}
.input-preview .form-description,.input-preview .input-note,.input-preview .exam-input-note{color:#786459;line-height:1.8;font-size:14px}
.input-preview fieldset{border-color:#dfcdbd}.input-preview legend{font-size:18px;font-weight:700}
.input-preview input:not([type=checkbox]):not([type=radio]),.input-preview select,.input-preview textarea{background:#fffefa;color:#392c29;border:1.5px solid #cdb7a5;border-radius:12px;min-height:50px;font-size:17px}
.input-preview button{min-height:44px}.input-preview .primary-button{background:linear-gradient(110deg,#bd2b3d,#a61e32);border:2px solid #d85a69;color:white;font-size:18px;font-weight:700;border-radius:14px;box-shadow:0 6px 16px #a42a3420;animation:none;min-height:58px}
.input-preview .primary-button:before,.input-preview .primary-button:after{display:none}
.input-preview .calendar-choice button,.input-preview .birth-time-block button,.input-preview .relationship-grid button,.input-preview .topic-chips button,.input-preview .exam-types button{border:1.5px solid #cdb7a5;background:#fffaf4;color:#60483e;border-radius:12px;font-size:16px}
.input-preview button[aria-pressed=true],.input-preview .calendar-choice button.selected,.input-preview .exam-types button.selected{background:#f9dcc3;color:#5d3025;border:2px solid #b58161;font-weight:700}
.input-preview .progress-track{background:#ecdcd0}.input-preview #progress-fill{background:#bb5865}
.input-preview .form-kicker{color:#9b554c;letter-spacing:.05em}.input-preview .site-footer{max-width:660px;font-size:12px;border-top:1px solid #ddcabc;margin-top:20px}
.input-preview a:focus-visible,.input-preview button:focus-visible,.input-preview input:focus-visible,.input-preview select:focus-visible{outline:3px solid #ae5d3c;outline-offset:3px}
@media(max-width:400px){.preview-welcome{padding:0 20px;gap:10px}.preview-welcome img{width:82px;height:124px}.input-preview .experience-card{padding:20px 17px}.input-preview .hero,.input-preview .exam-layout{padding-left:14px;padding-right:14px}.welcome-copy>div{font-size:14px}}
.input-preview [hidden]{display:none!important}
/* Illustrated paper pages: shared home wordmark, floral margins, generous fields. */
body.input-preview{--page-ink:#492a29;--page-accent:#a65062;--page-tint:#f7e8e6;--page-line:#d9b0ad;--serif:'Gowun Batang',serif;color:var(--page-ink);background-color:#fbf8f1;background-image:url('/media/blossom-corner.svg'),url('/media/blossom-corner.svg'),radial-gradient(ellipse at 45% 10%,#fffefa,transparent 65%),repeating-linear-gradient(18deg,#b8956310 0,#b8956310 .5px,transparent .5px,transparent 4px);background-position:left top,right bottom,center,center;background-size:125px auto,100px auto,100% 100%,8px 9px;background-repeat:no-repeat,no-repeat,no-repeat,repeat;background-attachment:scroll;}
body.doyun-preview{--page-ink:#183d35;--page-accent:#345e50;--page-tint:#e9eee2;--page-line:#bcb795}
.input-preview-top{position:relative;z-index:2;max-width:680px;padding:23px 22px 10px;border:0;gap:13px}
.input-preview-top .brand{display:flex;align-items:center;gap:7px;text-decoration:none;color:#754739;flex-shrink:0}
.input-preview-top .brand-mark{width:32px;height:38px;color:#af7f55}
.input-preview-top .brand-wordmark{position:relative;display:block;font:700 26px/1.25 'Gowun Batang',serif;letter-spacing:.06em;white-space:nowrap}
.input-preview-top .brand-wordmark .brand-ui{font:inherit;font-size:70%;display:inline}
.input-preview-top .brand-wordmark>svg{position:absolute;left:0;bottom:-9px;width:100%;height:10px;color:#af7f55}
.input-preview-top .preview-back{border:0;background:transparent;width:32px;height:44px;flex-shrink:0;color:var(--page-ink);font-size:35px}
.preview-category{color:var(--page-accent);background:#fffdf7bb;border:1px solid var(--page-line);font-size:12px;padding:5px 10px;font-weight:600;white-space:nowrap}
.preview-welcome{position:relative;isolation:isolate;max-width:660px;min-height:235px;margin:8px auto 5px;padding:40px 28px 24px;display:block;overflow:hidden;background:url('/media/mountains.svg') center bottom/100% auto no-repeat}
.welcome-copy{position:relative;z-index:1;width:66%}.welcome-copy>p{color:var(--page-accent);font-size:12px;letter-spacing:.05em;margin-bottom:12px}.welcome-copy h1{color:var(--page-ink);font-size:clamp(28px,6.2vw,38px);line-height:1.5;letter-spacing:-.05em;word-break:keep-all}.welcome-copy>div{font-size:14px;line-height:1.85;color:#665e56;max-width:290px}
.preview-welcome img{position:absolute;right:-20px;top:0;width:47%;height:100%;max-height:none;object-fit:cover;object-position:center 25%;border:0;border-radius:0;box-shadow:none;opacity:.88;mask-image:linear-gradient(to right,transparent 0,#000 30%),linear-gradient(to bottom,#000 60%,transparent 100%);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 30%),linear-gradient(to bottom,#000 60%,transparent 100%);-webkit-mask-composite:source-in}
.input-preview .hero,.input-preview .exam-layout{position:relative;max-width:660px;padding:0 24px 30px}
.input-preview .experience-card{border:0;border-top:1px solid var(--page-line);border-radius:0;background:#fffdf880;box-shadow:none;padding:25px 6px}
.input-preview .experience-card h2{color:var(--page-ink);font-size:24px;margin-bottom:10px}.input-preview .form-description{font-size:14px;margin-bottom:24px}
.input-preview .form-topline{margin-bottom:12px}.input-preview .form-kicker{color:var(--page-accent);font-size:13px;font-weight:600}.input-preview .step-label{color:var(--page-accent);font-size:14px}
.input-preview .person-fields{margin-top:28px;padding:0 0 24px;border:0;border-bottom:1px solid #d9cbbc99}.input-preview legend{font-size:18px;color:var(--page-ink);margin-bottom:16px}.input-preview .person-number{color:var(--page-accent)}
.input-preview input:not([type=checkbox]):not([type=radio]),.input-preview select,.input-preview textarea{border-color:#cfc8bd;background:#fffdf9d9;border-radius:10px;min-height:51px;font-size:17px;color:#2f3432}
.input-preview .calendar-choice,.input-preview .time-choice{background:#eee9e3;border:1px solid #d6cec5;border-radius:28px;padding:3px}
.input-preview .calendar-choice button,.input-preview .birth-time-block button{border-radius:24px;font-size:15px;line-height:1.5}
.input-preview .exam-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.input-preview .exam-types button,.input-preview .topic-chips button{border-radius:24px;line-height:1.5;padding:11px 12px}
.input-preview button[aria-pressed=true],.input-preview .calendar-choice button.selected,.input-preview .exam-types button.selected{background:var(--page-accent);border:1.5px solid var(--page-accent);color:#fffdf8;font-weight:700;box-shadow:inset 0 1px 0 #ffffff30}
.input-preview #progress-fill{background:var(--page-accent)}
.input-preview .primary-button{border-radius:18px;min-height:57px;font-size:18px;letter-spacing:.02em;margin-top:24px}
.input-preview .result-view,.input-preview .exam-result{max-width:660px;margin:auto;padding:24px;color:var(--page-ink)}
.input-preview .result-view h1,.input-preview .exam-result h1,.input-preview .result-view h2,.input-preview .exam-result h2,.input-preview .exam-reading h3{font-family:var(--serif);color:var(--page-ink);word-break:keep-all}
.input-preview .exam-summary,.input-preview .today-message{background:var(--page-tint) url('/media/mountains.svg') right bottom/90% auto no-repeat;border:1px solid var(--page-line);outline:1px solid #b8965e66;outline-offset:4px;border-radius:13px;padding:25px;margin:24px 0}
.input-preview .exam-reading,.input-preview .reading-card,.input-preview .advanced-note,.input-preview .exam-method,.input-preview .calculation-panel{border:1px solid var(--page-line);border-radius:14px;background:#fffdf8de;box-shadow:0 3px 10px #7a593307;padding:22px}
.input-preview .exam-reading p,.input-preview .advanced-note p{font-size:16px;line-height:1.9;color:#504e45;word-break:keep-all}
.input-preview .exam-easy,.input-preview .compatibility-easy{background:var(--page-tint);border:1px solid var(--page-line);border-radius:12px;padding:17px;color:var(--page-ink)}
.input-preview dialog{background:#fffaf2 url('/media/blossom-corner.svg') right top/90px auto no-repeat;border:2px solid var(--page-line);outline:3px solid #fffaf2;border-radius:22px;color:var(--page-ink);padding:26px;max-width:490px;width:calc(100% - 36px)}
.input-preview dialog::backdrop{background:#241e20a6;backdrop-filter:blur(3px)}.input-preview dialog h2{font:700 28px/1.4 var(--serif)}.input-preview dialog p{font-size:16px;line-height:1.9}
.input-preview .site-footer{padding:24px;max-width:660px;background:#faf6ec99}
@media(min-width:700px){body.input-preview{max-width:760px;margin:0 auto;box-shadow:0 0 70px #59462c18;min-height:100vh;background-size:170px auto,160px auto,100% 100%,8px 9px}.preview-welcome{min-height:280px}.welcome-copy{width:62%}.preview-welcome img{right:0;width:43%}.input-preview .experience-card{padding:28px 18px}}
@media(max-width:360px){.input-preview-top{gap:8px;padding-left:14px;padding-right:14px}.input-preview-top .brand-wordmark{font-size:23px}.input-preview-top .brand-mark{width:27px}.preview-welcome{padding-left:24px;min-height:240px}.welcome-copy h1{font-size:26px}.preview-welcome img{width:48%;right:-20px}.input-preview .hero,.input-preview .exam-layout{padding-left:19px;padding-right:19px}}
.design-only{display:block;border:1px solid #d4bb91;border-radius:10px;background:#fff7df;color:#6b5835;padding:10px 13px;font-size:13px;line-height:1.7;margin:0 0 20px}
body.input-preview{background-image:url('/media/blossom-corner.svg'),url('/media/blossom-corner.svg'),url('/media/hanji.svg');background-position:left top,right bottom,center;background-size:125px auto,100px auto,320px 320px;background-repeat:no-repeat,no-repeat,repeat}
.input-preview .experience-card,.input-preview .exam-reading,.input-preview .reading-card,.input-preview .advanced-note,.input-preview .exam-method,.input-preview .calculation-panel{background-color:#fcf8ef;background-image:linear-gradient(#fffdf885,#fffdf885),url('/media/hanji.svg');background-size:auto,320px 320px}
.input-preview dialog{background-image:url('/media/blossom-corner.svg'),url('/media/hanji.svg');background-position:right top,center;background-size:90px auto,320px 320px;background-repeat:no-repeat,repeat}
.input-preview .new-card-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:10px 10px 0 0;margin:0 0 16px;grid-column:1/-1;float:none}
.input-preview .reading-card summary:has(.new-card-art){display:block}.input-preview .reading-card summary .card-icon{display:none}
.wealth-form>label{display:block;font-size:18px;font-weight:700}.wealth-form input:not([type=radio]){display:block;width:100%;margin:12px 0}.wealth-form small{font-size:13px;font-weight:400;color:#6a7466;margin-left:8px}.wealth-form fieldset{border:1px solid #d5c6a8;border-radius:14px;padding:18px;margin:22px 0}.wealth-form legend{padding:0 5px}.wealth-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.wealth-options label{display:flex;align-items:center;gap:8px;border:1px solid #cec4ac;border-radius:10px;padding:12px;font-size:16px;cursor:pointer;background:#fffdf8}.wealth-options label:has(:checked){background:#345e50;color:white;border-color:#345e50}.wealth-options input{accent-color:#345e50;width:19px;height:19px}.wealth-preview .primary-button{width:100%}#wealth-demo>h1{font:700 32px/1.5 var(--serif);margin:20px 0}.wealth-preview .exam-reading{margin-bottom:22px}

/* Mobile finish: leave separate space for the illustration and readable copy. */
@media(max-width:480px){
 .input-preview .welcome-copy{width:62%}
 .input-preview .preview-welcome img{width:39%;right:0;object-position:center 25%}
 .input-preview .welcome-copy h1{font-size:clamp(24px,6.2vw,29px);line-height:1.5}
 .input-preview .input-preview-top{gap:9px;padding-left:16px;padding-right:16px}
 .input-preview .input-preview-top .brand-wordmark{font-size:24px}
 .input-preview .input-preview-top .brand-mark{width:27px}
 .input-preview .preview-category{padding:5px 8px}
 .wealth-form fieldset{padding:14px 10px}
 .wealth-options label{padding:12px 8px;min-height:48px}
 .wealth-story-copy,.wealth-overview{padding:20px 17px}
}
@media(max-width:340px){
 .input-preview .input-preview-top{gap:7px;padding-left:12px;padding-right:12px}
 .input-preview .input-preview-top .brand-wordmark{font-size:22px}
 .input-preview .input-preview-top .brand-mark{width:24px}
 .input-preview .preview-welcome{padding-left:20px;padding-right:20px}
}

/* Final shared input layout. Override the legacy ID rules as well as button classes. */
.input-preview .hero,.input-preview .exam-layout,.input-preview .result-view{width:100%}
.input-preview .preview-welcome{width:100%}
.input-preview .birth-date-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.input-preview .birth-input-group{border:0;background:transparent;padding:0;margin-top:12px}
.input-preview .birth-date-header>span{font-size:18px;font-weight:700;color:var(--page-ink)}
.input-preview .birth-date-header .birth-calendar:has(select[hidden]){display:none}
.input-preview .calendar-segments button[aria-pressed=true],.input-preview .time-mode-choice button[aria-pressed=true],.input-preview .concern-options button[aria-pressed=true]{background:var(--page-accent);border-color:var(--page-accent);color:#fffdf8;font-weight:700}
.calendar-segments,.input-preview .time-mode-choice{display:flex;gap:3px;padding:4px;border:1px solid #d8c9bb;border-radius:28px;background:#eee8df}
.calendar-segments button,.input-preview .time-mode-choice button{flex:1;min-height:44px;border-radius:24px;padding:9px 14px;border:1px solid transparent;background:transparent;font-size:15px;white-space:normal;line-height:1.5;color:#685950}
.calendar-segments button{min-width:70px}
.input-preview .time-mode-choice button br{display:none}
.birth-stepper{display:flex;list-style:none;padding:0;margin:22px 0;gap:10px}
.birth-stepper li{flex:1;padding:12px 10px;border:1px solid #d8c9bb;border-radius:12px;background:#fffaf2;color:#75645a;display:flex;gap:9px;align-items:center;font-size:16px}
.birth-stepper li[aria-current=step]{border:2px solid var(--page-accent);padding:11px 9px;color:var(--page-ink);background:var(--page-tint);font-weight:700}
.input-preview .progress-track{height:5px;border-radius:6px;overflow:hidden;margin-bottom:20px}
.input-preview .birth-previous{display:block;width:100%;margin-top:12px}
.input-preview .person-fields{margin-top:28px;padding-bottom:24px}
.input-preview .birth-hint,.input-preview .birth-summary{font-size:13px;line-height:1.8}
.input-preview .time-heading{margin:26px 0 12px;font-size:18px;color:var(--page-ink)}
.input-preview .time-heading small{font-size:12px}
.input-preview .luck-input{display:block;margin-top:28px;font-size:16px;font-weight:700;line-height:1.6;color:var(--page-ink,#492a29)}
.input-preview .luck-input select{display:block;margin-top:10px;width:100%;font-size:15px;font-weight:400}
.input-preview .exam-form-card>form>fieldset{margin:28px 0;padding:0 0 24px;border:0;border-bottom:1px solid #d9cbbc99}
.input-preview .exam-date-label{display:block;margin-top:28px;font-size:18px}
.input-preview #exam-date{width:100%;padding:10px 12px}
.input-preview .concern-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.input-preview .concern-options button{border:1px solid #cdb7a5;border-radius:24px;background:#fffaf4;font-size:16px;padding:11px 12px;line-height:1.5}
.input-preview .exam-concern-field small{font-size:13px;font-weight:400}
.input-preview .showing-result{scroll-margin-top:20px}
.input-preview.showing-result .preview-welcome{display:none}
.input-preview .exam-result,.input-preview .result-view{padding-top:24px}
.input-preview summary{min-height:44px}
.input-preview textarea:focus-visible,.input-preview summary:focus-visible{outline:3px solid #ae5d3c;outline-offset:3px}
.input-preview .result-topbar{flex-wrap:wrap;gap:12px}
.input-preview .comic-image-wrap img{object-fit:contain;background:#f6efdf}
.input-preview .comic-panel{background:#fcf8ef;border-color:var(--page-line)}
body.input-preview{background-size:48px auto,40px auto,320px 320px}
.input-preview .form-description,.input-preview .input-note,.input-preview .exam-input-note{font-size:15px}
.input-preview input[placeholder="어떻게 불러드릴까요?"]{padding:12px 14px}
.input-preview input[placeholder="어떻게 불러드릴까요?"]::placeholder{font-size:14px;font-weight:400;color:#969087;opacity:1;letter-spacing:0}
.input-preview .calendar-segments button,.input-preview .time-mode-choice button,.input-preview .exam-types button,.input-preview .topic-chips button,.input-preview .concern-options button{display:flex;align-items:center;justify-content:center;text-align:center;gap:4px}
.input-preview .wealth-options label{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;gap:0;min-height:54px;padding:12px 28px}
.input-preview .wealth-options label>input[type=radio]{position:absolute;left:9px;top:50%;transform:translateY(-50%);margin:0;width:17px;height:17px}
.input-preview .wealth-options label>span{display:block;text-align:center;line-height:1.5}
.input-preview #couple-form .primary-button[type=submit],
.input-preview #generate-ai-reading[data-state=ready],
.input-preview .primary-button{
 background:#b52338;border-color:#b52338;color:#fff;animation:none;
 transition:background-color .65s ease,border-color .65s ease,box-shadow .3s ease;
 box-shadow:0 5px 15px #9b263126;
}
@keyframes ondo-red-blue{
 0%,18%{background-color:#b52338;border-color:#b52338}
 82%,100%{background-color:#2458a6;border-color:#2458a6}
}
@media(max-width:649px){
 .input-preview #couple-form .primary-button[type=submit],
 .input-preview #generate-ai-reading[data-state=ready],
 .input-preview .primary-button:not(:disabled){animation:ondo-red-blue 6s ease-in-out infinite alternate}
}
.input-preview #couple-form .primary-button[type=submit]:is(:hover,:focus-visible,:active),
.input-preview #generate-ai-reading[data-state=ready]:is(:hover,:focus-visible,:active),
.input-preview .primary-button:is(:hover,:focus-visible,:active){background:#2458a6;border-color:#2458a6;color:#fff;animation:none}
.input-preview .primary-button:disabled{animation:none!important;background:#756b67;border-color:#756b67;color:#fff}
@media(prefers-reduced-motion:reduce){
 .input-preview #couple-form .primary-button[type=submit],
 .input-preview #generate-ai-reading[data-state=ready],
 .input-preview .primary-button{animation:none!important;transition:none}
}
@media(max-width:480px){
 .input-preview .preview-welcome{padding-top:26px;padding-bottom:22px;min-height:260px}
 .input-preview .welcome-copy{width:64%}
 .input-preview .preview-welcome img{width:36%;object-position:51% 22%}
 .input-preview .welcome-copy h1{font-size:clamp(24px,6.2vw,29px)}
 .input-preview .experience-card{padding:24px 2px}
 .input-preview .calendar-segments button{padding:9px 13px}
 .input-preview .wealth-options label{padding:12px 28px}
 .input-preview .time-mode-choice button{font-size:14px;padding:9px 5px}
 .input-preview .birth-parts{gap:8px;grid-template-columns:1.25fr 1fr 1fr}
 .input-preview .birth-parts label{font-size:14px}
 .input-preview .reading-card,.input-preview .exam-reading,.input-preview .advanced-note{padding:18px}
 .input-preview .result-view,.input-preview .exam-result{padding-left:18px;padding-right:18px}
}
@media(max-width:340px){.input-preview .wealth-options label{font-size:14px;padding:12px 23px}.input-preview .wealth-options label>input[type=radio]{left:6px;width:15px;height:15px}}

/* Slimmer controls: preserve a 44px touch target while reducing visual weight. */
.input-preview .wealth-options label{min-height:44px;padding:7px 28px;border-radius:9px}
.input-preview .calendar-segments,.input-preview .time-mode-choice{padding:2px}
.input-preview .calendar-segments button,.input-preview .time-mode-choice button{min-height:44px;padding-top:6px;padding-bottom:6px;line-height:1.4}
.input-preview .exam-types button,.input-preview .topic-chips button,.input-preview .concern-options button{min-height:44px;padding:7px 12px;line-height:1.4}
.input-preview #couple-form .primary-button[type=submit],.input-preview .primary-button{min-height:52px;padding:10px 16px;font-size:17px;line-height:1.45;border-radius:13px}
@media(max-width:340px){.input-preview .wealth-options label{padding:7px 23px}}
.input-preview .wealth-options label{padding-left:12px;padding-right:12px}
.input-preview .wealth-options label>input[type=radio]{position:absolute;width:1px;height:1px;left:0;top:0;opacity:0;clip-path:inset(50%);overflow:hidden;transform:none}
.input-preview .wealth-options label:has(input:focus-visible){outline:3px solid #ae5d3c;outline-offset:3px}
.input-preview .birth-parts>label{text-align:center}
.input-preview .birth-parts input,.input-preview .birth-parts select{text-align:center}
.input-preview .birth-parts .birth-choice-trigger{position:relative;justify-content:center;text-align:center;padding:0 14px}
.input-preview .birth-parts .birth-choice-trigger:after{position:absolute;right:8px;top:50%;transform:translateY(-50%);margin:0}
.input-preview .wealth-form input[type=date]{text-align:center}
.input-preview .wealth-form input[type=date]::-webkit-datetime-edit{text-align:center;padding:0}

/* Compact result reading: one readable row instead of three narrow columns. */
.input-preview .result-cards{grid-template-columns:minmax(0,1fr);gap:12px}
.input-preview .reading-card{padding:0}
.input-preview .reading-card>summary:has(.new-card-art){display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:18px;row-gap:5px;padding:18px;min-height:0}
.input-preview .reading-card>summary .new-card-art{grid-column:1;grid-row:1/5;width:112px;height:auto;align-self:center;margin:0;border-radius:8px;aspect-ratio:3/2;object-fit:contain}
.input-preview .reading-card>summary>:not(img){grid-column:2;min-width:0}
.input-preview .reading-card .card-no{font-size:11px;letter-spacing:1px;margin:0}
.input-preview .reading-card h2{font-size:21px;line-height:1.4;margin:0;letter-spacing:-.5px}
.input-preview .reading-card .card-summary{font-size:15px;line-height:1.7;margin:2px 0;color:#514941;word-break:normal;overflow-wrap:break-word}
.input-preview .reading-card .expand-hint{margin:4px 0 0;font-size:12px;align-items:center}
.input-preview .reading-card .card-detail{margin:0 18px;padding:16px 0;font-size:15px;line-height:1.75;word-break:normal}
.input-preview .extra-reading{margin-top:12px;border-top:1px solid #d9cbbc;padding-top:10px}
.input-preview .extra-reading>summary{padding:8px 0;cursor:pointer;font-size:14px;min-height:40px}
.input-preview .reading-term{display:inline-block;width:auto;white-space:nowrap;vertical-align:baseline;min-height:0;min-width:0;margin:0;padding:2px 1px;border:0;border-radius:2px;background:transparent;color:#315d7a;font:inherit;line-height:inherit;text-decoration:underline dotted;text-underline-offset:4px;cursor:pointer}
.input-preview .reading-term:hover{background:#e7edf0}
.input-preview .reading-term:focus-visible{outline:2px solid #315d7a;outline-offset:2px}
.input-preview #reading-term-dialog{max-width:420px;margin:auto}
.input-preview #reading-term-dialog h2{margin:0 0 14px;font-size:25px}
.input-preview #reading-term-dialog p{font-size:16px;line-height:1.75}
.input-preview #reading-term-dialog .primary-button{margin-top:20px;min-height:44px}
.input-preview .exam-reading .new-card-art{float:right;width:112px;margin:0 0 12px 16px;border-radius:8px}
.input-preview .exam-reading{padding:18px;margin-bottom:12px}
.input-preview .exam-reading h2{font-size:21px;line-height:1.5}
.input-preview .exam-reading p{font-size:15px;line-height:1.75}
.input-preview .exam-reading .extra-reading{clear:both}
.input-preview .wealth-story{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:18px;margin:12px 0;border-radius:14px}
.input-preview .wealth-art{width:112px;align-self:start;margin-top:8px;border-radius:8px}
.input-preview .wealth-story-copy{padding:0;min-width:0}
.input-preview .wealth-story h2{font-size:20px;margin:4px 0 8px}
.input-preview .wealth-story h3{font-size:16px;margin:0 0 8px;line-height:1.6}
.input-preview .wealth-story p{font-size:15px;line-height:1.75;margin:8px 0}
.input-preview .wealth-story details{padding:0;background:transparent;border-radius:0}
.input-preview .wealth-story summary{font-size:13px;padding:8px 0}
@media(max-width:480px){
 .input-preview .result-view,.input-preview .exam-result{padding:18px 14px}
 .input-preview .reading-card>summary:has(.new-card-art){grid-template-columns:76px minmax(0,1fr);column-gap:12px;padding:14px}
 .input-preview .reading-card>summary .new-card-art{width:76px;align-self:start;margin-top:5px}
 .input-preview .reading-card h2{font-size:19px}
 .input-preview .reading-card .card-summary{font-size:14px;line-height:1.65}
 .input-preview .reading-card .card-detail{margin:0 14px}
 .input-preview .wealth-story{grid-template-columns:minmax(0,1fr);padding:16px}
 .input-preview .wealth-art{width:100%;max-height:110px;object-fit:contain;margin:0}
 .input-preview .exam-reading .new-card-art{width:86px}
}
.input-preview #exam-cards{grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.input-preview .exam-reading .exam-action{clear:both;padding-top:8px}
.input-preview .exam-reading>h2{margin-top:8px}
/* Clear card boundaries and aligned evidence disclosure controls. */
.input-preview .reading-card,.input-preview .exam-reading,.input-preview .wealth-story{border:1.5px solid #ad8970;box-shadow:0 2px 7px #65472f12}
.input-preview .reading-card[open]{border-color:#90634f;box-shadow:0 3px 10px #65472f1c}
.input-preview .reading-card .reading-evidence{margin:14px 0 0;padding:0;border:1px solid #b7a18a;border-radius:10px;background:#f5efe4;overflow:hidden}
.input-preview .reading-card .reading-evidence>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:46px;padding:12px 16px;margin:0;min-width:0;font-size:14px;font-weight:600;line-height:1.5;color:#594336;cursor:pointer}
.input-preview .reading-evidence>summary::-webkit-details-marker{display:none}
.input-preview .reading-evidence>summary::before{content:'';flex:0 0 7px;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin:0 3px 0 0;position:static}
.input-preview .reading-evidence[open]>summary::before{transform:rotate(45deg)}
.input-preview .reading-evidence>summary::after{content:none}
.input-preview .reading-evidence[open]>summary{border-bottom:1px solid #d2bfaa}
.input-preview .reading-evidence>dl,.input-preview .reading-evidence>ul{margin:14px 16px;padding:0;list-style:none}
.input-preview .reading-evidence>small{display:block;margin:12px 16px;color:#6a594b}
.input-preview .reading-source{display:block;width:100%;padding:10px 12px;margin:8px 0;border:1px solid #c0aa91;border-radius:8px;background:#fffcf5;color:#31576b;text-align:left;font:inherit;font-size:14px;line-height:1.6;cursor:pointer;overflow-wrap:anywhere}
.input-preview .reading-source:hover{background:#edf2f3;border-color:#65808d}
.input-preview .reading-source:focus-visible,.input-preview .reading-evidence>summary:focus-visible{outline:2px solid #315d7a;outline-offset:-3px}
.input-preview #reading-term-description{white-space:pre-line}
.input-preview #reading-term-dialog{background-image:url('/media/hanji.svg');background-position:center;background-size:320px 320px;background-repeat:repeat;border-color:#a67f66}
/* Existing reading-samples.css uses !important on this control. Override locally. */
.input-preview .reading-card .reading-evidence>summary{display:flex!important;list-style:none!important;min-height:46px!important;padding:12px 16px!important;font-size:14px!important}
/* Center each numbered step label within its equal-width tab. */
.input-preview .birth-stepper li{justify-content:center;text-align:center}
/* Align wealth birth controls; nickname margins must not affect the year input. */
.input-preview.wealth-preview .birth-parts input{margin:0;height:52px;min-height:52px;padding:0 12px;line-height:normal;text-align:center}
.input-preview.wealth-preview .birth-parts .birth-choice-trigger{margin:0;height:52px;min-height:52px}
.input-preview.wealth-preview .luck-input select{appearance:none;-webkit-appearance:none;display:block;width:100%;height:52px;min-height:52px;padding:0 40px;text-align:center;text-align-last:center;font-size:16px;line-height:1.4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235e6757' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:12px 8px}
.input-preview.wealth-preview .luck-input select option{text-align:center}
.input-preview .hanja-pair{white-space:nowrap}
.input-preview .birth-hint .reading-term{display:inline-block;width:auto;min-height:0;margin:0;padding:2px 1px;border:0;border-radius:0;background:transparent;color:#315d7a;font:inherit;line-height:inherit;white-space:nowrap;text-decoration:underline dotted;text-underline-offset:4px;cursor:pointer}
.input-preview .birth-hint .reading-term:after{content:' ⓘ';font-size:.9em;text-decoration:none}
@media(max-width:360px){.input-preview.wealth-preview .luck-input select{font-size:14px;padding-left:32px;padding-right:32px;background-position:right 12px center}}
/* Original hanji compatibility report: shared overview, personal readings, paired charts. */
.compat-nickname{display:block;font-size:16px;margin:8px 0 20px;color:#573e34}
.compat-nickname small{font-size:12px;font-weight:400;color:#7b7066;margin-left:8px}
.input-preview .compat-nickname input{display:block;width:100%;margin-top:9px;padding:10px 14px}
.compat-overview{margin:24px 0 30px;padding:24px;border:1.5px solid #a48064;border-radius:18px;background:#fcf7eb url('/media/hanji.svg');box-shadow:0 5px 18px #76513212}
.input-preview .compat-overview h2{font-size:28px;margin:8px 0 18px}.reading-kicker{font-size:12px;letter-spacing:.06em;color:#805a47}
.compat-score{display:flex;gap:14px;align-items:center;padding:12px 0 18px;border-bottom:1px solid #cfb59e;margin-bottom:18px}
.compat-score strong{font:700 48px/1.1 var(--serif);color:#a92c41}.compat-score span{font-size:13px;line-height:1.6;color:#6d594d}
.input-preview .compat-overview h3{font-size:20px;line-height:1.6;margin:12px 0;color:#55392e}
.overall-copy{font-size:16px;line-height:1.85;color:#514339;word-break:normal;overflow-wrap:break-word}
.reading-entertainment,.chart-note{font-size:12px;line-height:1.7;color:#756758;margin:14px 0 0}
.score-method,.couple-charts{margin-top:18px;border-top:1px solid #d0baa3;padding-top:6px}
.score-method>summary,.couple-charts>summary{font-size:14px;min-height:44px;padding:10px 0;cursor:pointer;color:#5e4938;font-weight:600}
.score-method p,.score-method li{font-size:13px;line-height:1.8;color:#66584b}.score-method ul{padding-left:18px;margin:12px 0}
.person-charts{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:12px}
.person-chart{padding:18px;border:1px solid #bca58f;border-radius:12px;background:#fffdf6cc;min-width:0}
.input-preview .person-chart h3{font-size:19px;margin:0 0 6px}.chart-date{font-size:12px;color:#766b5e;margin-bottom:14px}
.birth-chart{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;border:1px solid #d4c4b2;margin:12px 0 18px}
.birth-chart th{font-size:12px;font-weight:500;padding:9px 2px;background:#eee5d5;color:#6b5542;border-bottom:1px solid #d4c4b2}
.birth-chart td{padding:10px 2px;border-bottom:1px solid #ddd0bf}.birth-chart .my-day{background:#f3dfd9}
.birth-chart strong{display:block;font:700 23px/1.5 var(--serif);color:#563f32}.birth-chart small{display:block;font-size:11px;color:#80715f}
.person-chart h4{font-size:14px;margin:14px 0 10px}.element-row{display:grid;grid-template-columns:65px minmax(0,1fr) 28px;align-items:center;gap:9px;margin:11px 0}
.element-label,.element-count{font-size:12px;color:#5e5145}.element-track{height:10px;border-radius:8px;background:#e2dacd;overflow:hidden}.element-fill{display:block;height:100%;border-radius:8px;background:#597e64}
.element-row.fire .element-fill{background:#b85b54}.element-row.earth .element-fill{background:#ae8851}.element-row.metal .element-fill{background:#8a8693}.element-row.water .element-fill{background:#547b9a}
.input-preview .personal-reading{padding:17px 0;border-bottom:1px solid #d6c3ad}
.input-preview .personal-reading h3{font:700 19px/1.5 var(--serif);margin:0 0 10px;color:#794b43}
.input-preview .personal-reading:nth-child(2) h3{color:#3d675e}
.input-preview .personal-reading h4{font-size:15px;line-height:1.6;margin:0 0 8px;font-weight:600;color:#584536}
.input-preview .personal-reading p,.input-preview .together-reading p{font-size:15px;line-height:1.8;margin:0;color:#594e43}
.input-preview .together-reading{padding:16px;margin-top:18px;border-radius:10px;background:#eee7d6;border:1px solid #cdbca5}
.input-preview .together-reading h3{font-size:15px;margin:0 0 8px;color:#634b37}
.input-preview .personal-reading .timing-basis{font-size:12px;color:#7e7163;margin-top:12px}
.input-preview .reading-evidence .editorial-basis{margin:14px 16px;font-size:13px;line-height:1.8}
.input-preview .reading-evidence .reading-evidence{margin:12px;border-radius:8px}
@media(max-width:480px){.compat-overview{padding:18px 16px}.compat-score strong{font-size:41px}.input-preview .compat-overview h2{font-size:25px}.overall-copy{font-size:15px}.person-chart{padding:12px}.birth-chart th{font-size:11px}.element-row{grid-template-columns:61px minmax(0,1fr) 25px;gap:7px}.input-preview .personal-reading h3{font-size:18px}}
/* Soft, translucent dialogs. Keep the page behind them readable. */
body.input-preview dialog,body.input-preview #reading-term-dialog{background-color:rgba(255,250,241,.93);background-image:repeating-linear-gradient(11deg,#a78c6309 0,#a78c6309 1px,transparent 1px,transparent 5px);outline:1px solid #fff9ee99;border:1px solid #af9179;box-shadow:0 18px 55px #4431222c}
body.input-preview dialog::backdrop{background:rgba(35,29,25,.22);backdrop-filter:none;-webkit-backdrop-filter:none}
body.input-preview dialog[open]{animation:ondo-dialog-in .24s cubic-bezier(.16,1,.3,1) both}
body.input-preview dialog[open]::backdrop{animation:ondo-backdrop-in .24s ease-out both}
@keyframes ondo-dialog-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ondo-backdrop-in{from{background-color:rgba(35,29,25,0)}to{background-color:rgba(35,29,25,.22)}}
@media(prefers-reduced-motion:reduce){body.input-preview dialog[open],body.input-preview dialog[open]::backdrop{animation:none}}
/* Detailed exam report: original hanji layout, short overview and 11 optional chapters. */
.input-preview .exam-report-summary{padding:0;border:0;outline:0;background:none;box-shadow:none;margin:22px 0}
.exam-overview{padding:23px;border:1.5px solid #8f9b7b;border-radius:16px;background:#f6f5e8 url('/media/hanji.svg');box-shadow:0 4px 15px #465b3c10}
.input-preview .exam-overview h2{font-size:25px;line-height:1.55;margin:10px 0 16px;color:#284b3b}.exam-overview-copy{font-size:16px;line-height:1.85;margin:13px 0;color:#45513f}
.exam-highlights{margin:18px 0 0;padding-top:4px;border-top:1px solid #b9c1a3}.exam-highlights dt{font-size:13px;font-weight:700;color:#50704c;margin:14px 0 6px}.exam-highlights dd{font-size:15px;line-height:1.75;margin:0;color:#485343}
.exam-report-note{font-size:12px;line-height:1.8;color:#737866;margin-top:16px}.exam-birth-chart{margin:18px 0;padding:12px 16px;border:1px solid #b1b99b;border-radius:12px;background:#fffdf2a8}.exam-birth-chart>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:600}.exam-birth-chart h3{font-size:16px;margin-top:20px}.exam-birth-chart .birth-chart{margin-top:14px}.exam-luck-cycles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.exam-luck-cycles>div{display:grid;gap:5px;text-align:center;padding:12px 4px;border:1px solid #c7c9b1;border-radius:8px;background:#faf8ec}.exam-luck-cycles .current{border:2px solid #728766;background:#e6ecd9}.exam-luck-cycles small{font-size:11px}.exam-luck-cycles strong{font-size:18px}.exam-luck-cycles span{font-size:12px}
.exam-report-navigation{margin:24px 0}.input-preview .exam-report-navigation h2{font-size:22px;margin:0 0 14px}.exam-quick-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.exam-quick-links button{min-height:46px;border:1px solid #b2b99c;border-radius:10px;background:#eff2e3;color:#34533c;font-size:14px;font-weight:600;padding:8px 4px;cursor:pointer}.exam-quick-links button:hover{background:#e2ead5}
.exam-contents{border:1px solid #b9bea3;border-radius:10px;margin:12px 0 20px;background:#f7f7e9}.exam-contents>summary{cursor:pointer;padding:12px 16px;min-height:44px;font-size:14px}.exam-contents ol{list-style:none;counter-reset:exam-toc;padding:0 14px 14px;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.exam-contents li{min-width:0;counter-increment:exam-toc}.exam-contents button{width:100%;min-height:44px;padding:9px 10px;border:1px solid #d1d3ba;border-radius:7px;background:#fffdf5;text-align:left;font:inherit;font-size:13px;line-height:1.5;color:#40563d;cursor:pointer}.exam-contents button:before{content:counter(exam-toc,decimal-leading-zero) ' ';font-size:11px;color:#7d836c}
.input-preview .exam-report-chapter{padding:0;margin:0 0 12px;scroll-margin-top:18px;overflow:hidden}.input-preview .exam-report-chapter>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:18px;min-height:0}.exam-report-chapter>summary::-webkit-details-marker{display:none}.input-preview .exam-report-chapter>summary:has(img){grid-template-columns:88px minmax(0,1fr);column-gap:15px}.input-preview .exam-report-chapter .exam-chapter-head .new-card-art{grid-column:1;grid-row:1/5;float:none;width:88px;height:auto;aspect-ratio:3/2;object-fit:contain;margin:4px 0 0;align-self:start;border-radius:7px}.exam-chapter-head:has(img)>:not(img){grid-column:2}.input-preview .exam-report-chapter .exam-chapter-head h2{font-size:20px;line-height:1.5;margin:0}.exam-chapter-head small{font-size:11px;letter-spacing:1px;color:#7b846e}.input-preview .exam-report-chapter .exam-chapter-lead{font-size:14px;line-height:1.7;color:#5a6551;margin:0}.exam-chapter-hint{font-size:12px;color:#7b846e;margin-top:4px}.exam-report-chapter[open]>.exam-chapter-head .exam-chapter-hint{font-size:0}.exam-report-chapter[open]>.exam-chapter-head .exam-chapter-hint:after{content:'접어두기 −';font-size:12px}
.exam-chapter-body{border-top:1px solid #c9ceb4;margin:0 18px;padding:4px 0 18px}.input-preview .exam-report-chapter .exam-chapter-body p{font-size:15px;line-height:1.85;margin:14px 0;color:#4e5748}.exam-chapter-body h3{font-size:16px;margin-top:18px}.exam-next-action{padding:15px;border:1px solid #c4cbb0;border-radius:10px;background:#edf1e1;margin-top:18px}.exam-next-action strong{font-size:13px;color:#55704b}.input-preview .exam-next-action p{margin:8px 0 0!important}.exam-checklist{padding-left:21px;font-size:15px;line-height:1.8}.exam-checklist li{margin:10px 0}.exam-own-worry{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8;margin:12px 0;padding:14px;background:#faf6e8;border-left:3px solid #a4af89}.exam-chapter-basis{border-top:1px solid #d1d4bf;margin-top:16px;padding-top:6px}.exam-chapter-basis>summary{font-size:13px;min-height:44px;padding:10px 0;cursor:pointer}.input-preview .exam-chapter-basis p{font-size:13px!important;color:#737866!important}
.exam-worry-label{display:block;font-size:16px;font-weight:600;margin:24px 0 10px}.exam-worry-label small{font-size:12px;font-weight:400;color:#7b826e;margin-left:8px}.input-preview #exam-worry{display:block;box-sizing:border-box;width:100%;padding:12px 14px;font-size:16px;line-height:1.7;resize:vertical}.input-preview .exam-worry-label+textarea:focus{outline:2px solid #587b61;outline-offset:2px}
@media(max-width:480px){.exam-overview{padding:19px 16px}.input-preview .exam-overview h2{font-size:22px}.exam-overview-copy{font-size:15px}.exam-quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-contents ol{grid-template-columns:minmax(0,1fr)}.input-preview .exam-report-chapter>summary{padding:15px}.input-preview .exam-report-chapter>summary:has(img){grid-template-columns:65px minmax(0,1fr);column-gap:11px}.input-preview .exam-report-chapter .exam-chapter-head .new-card-art{width:65px}.input-preview .exam-report-chapter .exam-chapter-head h2{font-size:18px}.exam-chapter-body{margin:0 15px}.exam-birth-chart{padding:10px 12px}}
/* Reduced-motion mode still gets a short, stationary fade. */
@keyframes ondo-dialog-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){body.input-preview dialog[open]{animation:ondo-dialog-fade .16s ease-out both}body.input-preview dialog[open]::backdrop{animation:none}}
.input-preview .exam-result h1{overflow-wrap:anywhere;word-break:normal}
/* The legacy stylesheet disables all animations with !important in reduced-motion mode.
   Permit only this short opacity fade, without any position or scale movement. */
@media(prefers-reduced-motion:reduce){body.input-preview dialog[open]{animation:ondo-dialog-fade .16s ease-out both!important}}
.input-preview .exam-types button:last-child{grid-column:auto}
/* Exam: short text summaries; full-width artwork only inside expanded readings. */
#exam-cards{overflow-anchor:none}
.birth-choice-grid.year{grid-template-columns:repeat(3,minmax(0,1fr));max-height:min(340px,52dvh);overflow-y:auto;overscroll-behavior:contain;padding:4px;scrollbar-gutter:stable}
.birth-choice-grid.year button{min-height:44px;font-variant-numeric:tabular-nums}
.input-preview .exam-report-chapter{scroll-margin-top:24px}
.input-preview .exam-report-chapter .exam-chapter-body>.exam-card-image{display:block;float:none;width:100%;max-width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;margin:0 0 20px;border-radius:10px}
/* Keep Doyun's complete gat above the face within the welcome portrait. */
.input-preview.doyun-preview .preview-welcome img{object-position:center top;right:0;top:12px;height:calc(100% - 12px);mask-image:linear-gradient(to bottom,#000 65%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 65%,transparent 100%)}

/* Mobile control alignment and readable disclosure controls, 2026-11-03. */
.input-preview .person-fields .luck-input select,
.input-preview .birth-time-block :is(.rough-time,.precise-time) select{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-height:48px;
 padding:10px 32px;text-align:center;text-align-last:center;font-size:16px;font-weight:500;line-height:1.5;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235e6757' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;
}
.input-preview .birth-parts .birth-choice-trigger{padding:0 18px;min-height:48px}
.input-preview .birth-parts .birth-choice-trigger::after{
 content:'';width:6px;height:6px;border:0;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;
 right:9px;top:50%;transform:translateY(-70%) rotate(45deg);opacity:.75;
}
.input-preview input[placeholder="이름 없이도 볼 수 있어요"]::placeholder{font-size:13px;font-weight:400;color:#969087;opacity:1;letter-spacing:0}
body.input-preview :is(.exam-birth-chart,.exam-contents,.exam-chapter-basis,.exam-method,.wealth-person-chart,.wealth-uncertainty,.wealth-ground,.wealth-index-method,.wealth-card-basis,.wealth-explanation)>summary,
body.input-preview.six-compatibility :is(.compat-method,.compat-birth-details,.compat-question-basis)>summary{
 display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;
 min-height:48px;padding:12px 14px;list-style:none;font-size:15px;font-weight:600;line-height:1.6;
}
body.input-preview :is(.exam-birth-chart,.exam-contents,.exam-chapter-basis,.exam-method,.wealth-person-chart,.wealth-uncertainty,.wealth-ground,.wealth-index-method,.wealth-card-basis,.wealth-explanation)>summary::before,
body.input-preview.six-compatibility :is(.compat-method,.compat-birth-details,.compat-question-basis)>summary::before{content:none}
body.input-preview :is(.exam-birth-chart,.exam-contents,.exam-chapter-basis,.exam-method,.wealth-person-chart,.wealth-uncertainty,.wealth-ground,.wealth-index-method,.wealth-card-basis,.wealth-explanation)>summary::after,
body.input-preview.six-compatibility :is(.compat-method,.compat-birth-details,.compat-question-basis)>summary::after{
 content:'';display:block;position:static;flex:0 0 7px;width:7px;height:7px;margin:0 2px 4px auto;
 border:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease;
}
body.input-preview :is(.exam-birth-chart,.exam-contents,.exam-chapter-basis,.exam-method,.wealth-person-chart,.wealth-uncertainty,.wealth-ground,.wealth-index-method,.wealth-card-basis,.wealth-explanation)[open]>summary::after,
body.input-preview.six-compatibility :is(.compat-method,.compat-birth-details,.compat-question-basis)[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
body.input-preview summary::-webkit-details-marker{display:none}
.input-preview .exam-report-chapter>.exam-chapter-head{position:relative;padding-right:54px}
.input-preview .exam-report-chapter>.exam-chapter-head::after{content:'';position:absolute;right:22px;top:28px;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
.input-preview .exam-report-chapter[open]>.exam-chapter-head::after{transform:rotate(225deg)}
.input-preview .exam-report-chapter .exam-chapter-hint{font-size:13px;color:#58644e;font-weight:500}
.input-preview .exam-report-chapter[open]>.exam-chapter-head .exam-chapter-hint{font-size:0}
.input-preview .exam-report-chapter[open]>.exam-chapter-head .exam-chapter-hint::after{content:'접어두기';font-size:13px}
@media(max-width:600px){
 .input-preview .birth-hint,.input-preview .birth-summary{font-size:14px;color:#655d52;line-height:1.75}
 .input-preview .birth-parts label,.input-preview .luck-input{font-weight:600}
 .input-preview .time-mode-choice button{font-size:15px;font-weight:500;line-height:1.3;min-height:44px}
 .input-preview .time-mode-choice button[aria-pressed=true]{font-weight:700}
 .input-preview :is(.exam-overview-copy,.wealth-overview .wealth-overall-copy,.wealth-period-detail p){font-size:16px;line-height:1.85}
 .input-preview .exam-report-chapter .exam-chapter-body p,.input-preview .wealth-story p{font-size:16px;line-height:1.85}
 .input-preview .exam-report-chapter .exam-chapter-lead{font-size:15px;color:#4d5845}
 .input-preview .exam-report-chapter>.exam-chapter-head{padding:18px 48px 18px 18px}
}
@media(max-width:380px){
 .input-preview .time-mode-choice button{display:block;padding:4px 5px}
 .input-preview .time-mode-choice button br{display:block}
}
@media(prefers-reduced-motion:reduce){body.input-preview summary::after{transition:none}}

/* Keep group headings above the option boxes, never across a fieldset border. */
.input-preview .wealth-form fieldset:has(> .wealth-options){border:0;background:transparent;padding:0;margin:28px 0;border-radius:0;min-inline-size:0}
.input-preview .wealth-form fieldset:has(> .wealth-options)>legend{float:left;box-sizing:border-box;width:100%;padding:0;margin:0 0 12px;font-size:18px;font-weight:700;line-height:1.5}
.input-preview .wealth-form fieldset:has(> .wealth-options)>.wealth-options{clear:both}
.input-preview .wealth-form fieldset:has(> .wealth-options)>.birth-hint{margin:12px 0 0}

.input-preview .luck-input{font-size:18px;font-weight:700}

.input-preview details.wealth-story{display:block;padding:0;scroll-margin-top:24px}
.input-preview .wealth-cards{overflow-anchor:none}
.input-preview .wealth-story>summary.wealth-story-copy{display:block;position:relative;padding:22px 48px 22px 20px;list-style:none;cursor:pointer;font-size:16px}
.input-preview .wealth-story>summary::-webkit-details-marker{display:none}
.input-preview .wealth-story>summary::after{content:'';position:absolute;right:24px;bottom:29px;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
.input-preview .wealth-story[open]>summary::after{transform:rotate(225deg)}
.input-preview .wealth-expand-label{display:block;font-size:14px;margin-top:14px}
.input-preview .wealth-story>.wealth-explanation{padding:0 20px 22px}
.input-preview .wealth-story .wealth-explanation>.wealth-art{width:100%;height:auto;max-height:none;aspect-ratio:3/2;object-fit:contain;margin:0 0 18px;border-radius:10px}
.input-preview .wealth-story .wealth-card-basis{margin-top:18px;padding-top:10px;border-top:1px solid #bca58d}
.input-preview .wealth-timing{margin:24px 0}
.input-preview .wealth-timing-item{border-top:1px solid #bca58d;padding:10px 0}
.input-preview .wealth-timing-item>summary{cursor:pointer;font-size:16px;font-weight:700;line-height:1.7;min-height:44px;padding:8px}
.input-preview .wealth-timing-item p{font-size:16px;line-height:1.85}

/* The original portraits have different camera distances. Match the headroom and bust line within a shared frame. */
.preview-welcome .welcome-portrait {
 position:absolute;right:1%;bottom:0;width:40%;height:calc(100% - 10px);overflow:hidden;pointer-events:none;
 mask-image:linear-gradient(to bottom,transparent,#000 4%,#000 78%,transparent),linear-gradient(to right,transparent,#000 12%,#000 94%,transparent);
 mask-composite:intersect;
}
body.input-preview .preview-welcome .welcome-portrait img {
 position:absolute;top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%);
 height:var(--portrait-height);width:auto;max-height:none;max-width:none;object-fit:contain;
 opacity:.94;mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);
}
.welcome-portrait.yeonseo {--portrait-height:197%}
.welcome-portrait.bokhee {--portrait-height:124%}
.welcome-portrait.unjae {--portrait-height:169%}

.input-preview .preview-welcome:has(.welcome-portrait) .welcome-copy{width:59%}

.input-preview .leap-option:not([hidden]) {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
}
.input-preview .leap-option > input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--page-accent);
}

/* Natural word spacing also applies when a long nickname wraps on a phone. */
.input-preview :is(#forecast-title, #wealth-result-title, #result-title),
.input-preview .compat-person-chart > h3,
.input-preview .wealth-person-chart > summary > span {
  letter-spacing: normal;
  word-spacing: .08em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-width: 0;
}
.input-preview .reading-honorific { font-size: .7em; word-spacing: -.12em; }
