dialog{max-width:calc(100vw - 24px);box-sizing:border-box}#hc92-sms,#hc92-done{z-index:20000} .hc92-dialog input{box-sizing:border-box}

/* Match the latest shared phone and premium layouts; preserve doctor colors. */
#db_left .doctor-phone{display:flex;gap:10px;width:100%;align-items:stretch}
#db_left .doctor-phone select{flex:0 0 100px;width:100px!important;min-width:0;box-sizing:border-box;height:48px;margin:0}
#db_left .doctor-phone input{flex:1 1 0;width:0!important;min-width:0;box-sizing:border-box;height:48px;margin:0}
.doctor-form-notice{font-size:12px;color:#666;text-align:left;margin:0;line-height:1.6}
#db_right .doctor-person{padding:16px;background:#f0eeff;border-radius:12px;margin:0 0 18px;line-height:1.8;text-align:center;color:#343454}
#db_right .doctor-person p{margin:0;font-size:14px}
#db_right .doctor-person strong{color:#5b4cf5}
#db_right .doctor-price-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0!important;margin:0!important;list-style:none}
#db_right .doctor-price-grid .chk_item{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:16px;float:none!important;width:auto!important;min-width:0;padding:20px 10px!important;margin:0!important;background:#fff;border:1px solid #e5e1ff!important;border-radius:12px;box-sizing:border-box}
#db_right .doctor-price-grid .doctor-logo{margin:0;width:100%;height:36px;display:flex;align-items:center;justify-content:center}
#db_right .doctor-logo img{max-width:130px;max-height:36px;width:auto;height:auto;object-fit:contain}
#db_right .doctor-price-grid .chk_price{float:none!important;width:auto!important;display:block!important;color:#5b4cf5;font-size:19px;font-weight:700;cursor:default!important;text-align:center}
@media(max-width:767px){#db_left .doctor-phone select{flex-basis:82px;width:82px!important}#db_right .doctor-person p{font-size:13px}#db_right .doctor-logo img{max-width:110px}#db_right .doctor-price-grid .chk_price{font-size:17px}}

#db_left .doctor-phone select,#db_left .doctor-phone input{border:1px solid #e1ddff;border-radius:11px;background:#fafaff;padding:0 14px;color:#343454;font-size:14px;font-family:inherit} 
#db_right .doctor-price-grid .chk_price{color:#5b4cf5!important}

/* Keep six premiums compact and align the form action with the result bottom. */
#container_wrap #db_right .doctor-person{padding:12px;margin-bottom:12px;line-height:1.65}
#container_wrap #db_right .doctor-price-grid{gap:10px;margin:0!important}
#container_wrap #db_right .doctor-price-grid .chk_item{padding:10px!important;gap:6px;min-height:82px;border:1px solid #e5e1ff!important}
#container_wrap #db_right .doctor-price-grid .doctor-logo{height:30px}
#container_wrap #db_right .doctor-logo img{max-height:30px}
@media(min-width:768px){
 #container_wrap #db_form{align-items:stretch!important}
 #container_wrap #db_form #db_left .tab_all{display:flex;flex:1;margin-top:6px!important}
 #container_wrap #db_form #db_left form{display:flex;flex:1;min-width:0;flex-direction:column}
 #container_wrap #db_form #db_left form>ul{display:flex;flex:1;flex-direction:column;justify-content:space-between}
 #container_wrap #db_form #db_left form>ul>li{box-sizing:border-box}
 #container_wrap #db_form #db_left form>ul>li:last-child{padding-bottom:0!important}
}

#container_wrap #db_left .tab_all input[name="CName"]{width:100%!important}
#container_wrap #db_left .tab_all .doctor-sex-row{display:flex!important;gap:10px}
#container_wrap #db_left .tab_all .doctor-sex-row input{flex:1;width:0!important;margin:0!important;box-sizing:border-box}

/* Both left forms use the same rhythm; fit product details to that rhythm. */
@media(min-width:768px){
 #container_wrap #db_form #db_left .tab_all{flex:0 0 auto}
 #container_wrap #db_form #db_left form>ul{height:364px;flex:none;box-sizing:border-box}
 #container_wrap #db_right .chk_result{height:364px;display:flex;flex-direction:column}
 #container_wrap #db_right .doctor-price-grid{flex:1;grid-template-rows:repeat(3,minmax(0,1fr))}
 #container_wrap #db_right #pay_table{height:364px;box-sizing:border-box;margin:6px 0 0!important;padding:0!important;display:flex;flex-direction:column}
 #container_wrap #db_right #pay_table .pay_detail_line{flex:1;padding:6px 2px!important;box-sizing:border-box;align-items:center}
 #container_wrap #db_right #pay_table .pay_detail_result{overflow-wrap:anywhere}
}

/* Keep the product compliance notice in normal document flow. */
.doctor-product-notice{text-align:center;font-size:13px;line-height:1.6;color:#777;margin:8px 0 16px;overflow-wrap:anywhere}

/* Menu articles: align the navigation and heading without the old color strip. */
.category-post{background:#fff!important}
.category-post .sub_page .inner{width:100%;padding-top:24px}
.category-post .text_page{padding:0!important;min-width:0}
.category-post .text_page .content_headline{background:transparent!important;padding:10px 0 16px!important;margin:0 0 20px!important;border-bottom:2px solid #e9e5ff!important;line-height:1.4!important}
@media(max-width:767px){.category-post .sub_page .inner{padding-top:18px}.category-post .text_page .content_headline{font-size:20px!important;padding-top:0!important}}

/* Reserve the fixed 80px navigation plus breathing room above the date. */
.main-banner{padding-top:112px!important}
@media(max-width:767px){.main-banner{padding-top:100px!important}}

/* The page canvas is white; only the calculator hero keeps its tint. */
body{background:#fff!important}

/* SMS verification and completion dialogs. */
dialog.hc92-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:22px;padding:36px 32px;background:#fff;color:#1e1b4b;box-shadow:0 24px 80px #19335533}
dialog.hc92-dialog:not([open]){display:none}
dialog.hc92-dialog::backdrop{background:rgba(20,39,66,.48);backdrop-filter:blur(3px)}
.hc92-dialog h2{font-size:26px;line-height:1.5;letter-spacing:-1px;margin:10px 22px 14px 0}
.hc92-dialog p{color:#6b7c92;font-size:14px;line-height:1.8;margin:12px 0}
.hc92-dialog label{display:block;font-size:12px;color:#4f6380;margin:18px 0 7px}
.hc92-dialog input{box-sizing:border-box;width:100%;height:54px;padding:12px 16px;border:1px solid #cfdbed;border-radius:10px;background:#faf9ff;color:#1e1b4b;font:22px/1.3 var(--fz);letter-spacing:6px}
.hc92-dialog button{font:inherit;cursor:pointer;border:0}
.hc92-dialog .hc92-primary{display:flex;justify-content:center;align-items:center;width:100%;min-height:50px;margin-top:18px;padding:12px 18px;background:#5d46e8;color:white;border-radius:10px;font-size:15px;font-weight:700}
.hc92-dialog .hc92-secondary{display:block;margin:16px auto 0;padding:4px;background:transparent;color:#5d46e8;font-size:13px;text-decoration:underline}
.hc92-dialog .hc92-close{position:absolute;right:12px;top:10px;width:38px;height:38px;padding:0;background:#f2f6fc;color:#71829a;border-radius:50%;display:flex;align-items:center;justify-content:center;font:26px/1 sans-serif}
.hc92-dialog .hc92-status{min-height:1.6em;color:#b54747;font-size:12px}
.hc92-dialog button:disabled{opacity:.55;cursor:wait}
dialog#hc92-done{padding:52px 32px 28px;text-align:center}
#hc92-done h2{margin:0;font-size:24px}#hc92-done p{margin:12px 0 24px}

.hc92-dialog :focus-visible{outline:3px solid #a69bff;outline-offset:3px}
@media(max-width:480px){dialog.hc92-dialog{padding:30px 22px}.hc92-dialog h2{font-size:23px}}

/* Use the existing self-hosted Pretendard font consistently, including dialogs. */
body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,p,label,a,span,li,td,th,strong,small,dialog.hc92-dialog,dialog.hc92-dialog *,dialog#best-policy,dialog#best-policy *{font-family:"Pretendard",-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif!important}
.hc92-dialog h2{font-weight:700}
