.brokerage-page{--bf-navy:#173b57;--bf-blue:#236b98;--bf-soft:#edf6fa;--bf-line:#dbe5eb}.brokerage-calculator{max-width:900px;margin:0 auto}.brokerage-calculator>h2{margin-bottom:18px}.brokerage-calculator form,.brokerage-result{background:#fff;border:1px solid var(--bf-line);border-radius:18px;padding:24px;box-shadow:0 10px 30px rgba(29,57,77,.06)}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:0;margin:0 0 18px}.mode-switch legend{font-weight:700;margin-bottom:10px}.mode-switch label{display:block;cursor:pointer}.mode-switch input{position:absolute;opacity:0}.mode-switch span{display:flex;flex-direction:column;gap:4px;height:100%;padding:16px;border:1px solid var(--bf-line);border-radius:12px}.mode-switch input:checked+span{border-color:var(--bf-blue);background:var(--bf-soft);box-shadow:0 0 0 1px var(--bf-blue)}.mode-switch small{color:#60717e}.input-card{border-top:1px solid var(--bf-line);padding:22px 0 4px}.input-card h3{font-size:1.08rem;margin:0 0 18px;color:var(--bf-navy)}.field{margin-bottom:18px}.field>label,.choice-field legend{display:block;font-weight:700;margin-bottom:8px}.field select,.field input[type=number],.input-unit input{width:100%;min-height:48px;border:1px solid #bdccd5;border-radius:9px;padding:10px 12px;background:#fff;font:inherit;color:#1d2c35}.input-unit{display:flex;align-items:center;border:1px solid #bdccd5;border-radius:9px;background:#fff}.input-unit:focus-within{outline:2px solid rgba(35,107,152,.2);border-color:var(--bf-blue)}.input-unit input,.input-unit input[type=number]{border:0;outline:0;min-width:0}.input-unit span{padding-right:13px;color:#526772;white-space:nowrap}.field-help,.money-korean{font-size:.86rem;color:#657883;margin:6px 0 0}.money-korean{color:var(--bf-blue);min-height:1.2em}.choice-field{border:0;padding:0;margin:0 0 20px}.choice-grid,.choice-row{display:flex;flex-wrap:wrap;gap:8px}.choice-grid label,.choice-row label{border:1px solid #c7d4dc;border-radius:999px;padding:9px 13px;background:#fff;cursor:pointer}.choice-grid label:has(input:checked),.choice-row label:has(input:checked){color:#fff;background:var(--bf-blue);border-color:var(--bf-blue)}.choice-grid input,.choice-row input{margin-right:5px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.confirm-line{display:flex;gap:8px;align-items:flex-start;padding:13px;border-radius:9px;background:#f5f8fa;margin-bottom:6px}.form-actions{display:flex;gap:10px;margin-top:18px}.calculate-button,.reset-button,.copy-button{border:0;border-radius:9px;min-height:48px;padding:11px 18px;font:inherit;font-weight:700;cursor:pointer}.calculate-button{flex:1;background:var(--bf-navy);color:#fff}.reset-button,.copy-button.secondary{background:#edf1f4;color:#314b5b}.form-error{padding:12px;background:#fff1f0;color:#a52d28;border-radius:9px}.brokerage-result{margin-top:24px;border-top:5px solid var(--bf-blue)}.result-head p{color:var(--bf-blue);font-weight:700;margin:0}.result-head h3{margin:5px 0 14px}.result-summary{font-size:1.04rem;line-height:1.7}.result-rows{display:grid;grid-template-columns:repeat(2,1fr);border:1px solid var(--bf-line);border-radius:12px;overflow:hidden}.result-rows>div{display:flex;justify-content:space-between;gap:12px;padding:13px;border-bottom:1px solid var(--bf-line)}.result-rows>div:nth-child(odd){border-right:1px solid var(--bf-line)}.result-rows span{color:#60727d}.calculation-detail,.tax-result,.comparison,.check-list{margin-top:15px;padding:16px;border-radius:11px;background:#f5f8fa;line-height:1.65}.tax-result{background:#edf6fa}.comparison.ok{background:#eff8f2}.comparison.warn{background:#fff0ee}.comparison.check{background:#fff8e8}.comparison h4,.check-list h4{margin:0 0 7px}.comparison dl{margin:10px 0 0}.comparison dl div{display:flex;justify-content:space-between}.comparison dt,.comparison dd{margin:0}.check-list ul{margin:6px 0;padding-left:20px}.result-basis{font-size:.82rem;color:#6c7c85}.result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.copy-button{background:var(--bf-blue);color:#fff}.brokerage-content{max-width:900px;margin-left:auto;margin-right:auto}.brokerage-content section{margin-top:38px}.brokerage-content p{line-height:1.8}.official-links ul{padding-left:20px}.agreement-rate,.agreement-amount{display:none}#agreementFields:has(#agreementType option[value="rate"]:checked) .agreement-rate{display:block}@media(max-width:640px){.brokerage-calculator form,.brokerage-result{padding:17px;border-radius:13px}.mode-switch,.two-col,.result-rows{grid-template-columns:1fr}.mode-switch span{padding:13px}.result-rows>div:nth-child(odd){border-right:0}.choice-grid label,.choice-row label{flex:1 1 calc(50% - 8px);text-align:center}.form-actions{flex-direction:column}.result-actions>*{width:100%}.calculator-wrap{padding-left:14px;padding-right:14px}}

/* 공통 related-tools 마크업을 이 도구 안에서만 정렬합니다. */
.brokerage-page .related-tools{margin-top:28px}
.brokerage-page .related-tools h2{margin:0 0 14px;font-size:20px}
.brokerage-page .related-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.brokerage-page .related-grid>a{display:grid;grid-template-columns:42px minmax(0,1fr) 16px;align-items:center;gap:11px;min-width:0;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff}
.brokerage-page .related-grid .tool-icon{width:42px;height:42px;border-radius:11px}
.brokerage-page .related-grid>a>span:nth-child(2){min-width:0}
.brokerage-page .related-grid strong,.brokerage-page .related-grid small{display:block}
.brokerage-page .related-grid strong{font-size:14px}
.brokerage-page .related-grid small{margin-top:2px;overflow:hidden;color:var(--muted);font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.brokerage-page .related-empty{margin:0;padding:20px;border:1px dashed #cdd6e3;border-radius:14px;background:#fff;color:var(--muted);font-size:13px}
@media(max-width:640px){.brokerage-page .related-grid{grid-template-columns:1fr}}

/* 기존 도구와 동일한 공통 페이지 프레임 */
.brokerage-page{background:var(--bg);padding-bottom:70px}
.brokerage-page .tool-container{max-width:900px}
.brokerage-page .tool-intro{padding:34px 0 24px;background:#fff;border-bottom:1px solid var(--line)}
.brokerage-page .breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:22px;color:#8791a1;font-size:12px}
.brokerage-page .breadcrumb a:hover{color:var(--brand)}
.brokerage-page .tool-intro .section-kicker{margin:0 0 16px;color:var(--brand);font-size:13px;font-weight:800;letter-spacing:2px}
.brokerage-page .tool-intro h1{margin:0;font-size:clamp(31px,5vw,43px);line-height:1.2;letter-spacing:-1.7px}
.brokerage-page .tool-intro h1+p{margin:14px 0 0;color:var(--muted);font-size:15px;line-height:1.7}
.brokerage-page .privacy-chip{display:inline-flex;margin-top:14px;padding:8px 12px;border:1px solid #dbe4f7;border-radius:999px;background:#fff;color:#5f6b7d;font-size:12px;line-height:1.5}
.brokerage-page .calculator-wrap{padding-top:38px}
@media(max-width:640px){.brokerage-page{padding-bottom:48px}.brokerage-page .tool-intro{padding:24px 0 20px}.brokerage-page .breadcrumb{margin-bottom:17px}.brokerage-page .tool-intro h1{font-size:30px}.brokerage-page .tool-intro h1+p{font-size:13px}.brokerage-page .privacy-chip{border-radius:12px}.brokerage-page .calculator-wrap{padding-top:20px}}

/* 설명 콘텐츠도 기존 계산기 카드 규칙과 통일 */
.brokerage-page .brokerage-content{margin-top:28px;padding:12px 34px 28px;border:1px solid var(--line);border-radius:18px;background:#fff}
.brokerage-page .brokerage-content>section{margin-top:0;padding:25px 0;border-bottom:1px solid #edf0f5}
.brokerage-page .brokerage-content>section:last-child{border-bottom:0}
.brokerage-page .brokerage-content h2{margin:0 0 11px;font-size:21px;letter-spacing:-.5px}
.brokerage-page .brokerage-content p{margin:0;color:#586477;font-size:14px;line-height:1.85}
.brokerage-page .brokerage-content p+p{margin-top:9px}
.brokerage-page .brokerage-content .notice{margin-top:16px;padding:14px 16px;border-left:3px solid #91acf5;background:#f4f7ff}
@media(max-width:640px){.brokerage-page .brokerage-content{padding:5px 20px 20px}.brokerage-page .brokerage-content>section{padding:22px 0}.brokerage-page .brokerage-content h2{font-size:19px}}
