.result-card { padding-bottom: 20px; }
.methodology-button { display: inline-flex; align-items: center; gap: 7px; }
.methodology-button svg { width: 18px; height: 18px; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-width: 1.7; }
.methodology-dialog { width: min(940px, calc(100% - 32px)); max-height: min(820px, calc(100dvh - 48px)); overflow-y: auto; padding: 28px; border: 0; border-radius: 12px; box-shadow: 0 18px 60px rgb(18 35 56 / 30%); }
.methodology-dialog::backdrop { background: rgb(15 30 49 / 48%); }
.methodology-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; color: #52657b; }
.methodology-lead { grid-column: 1 / -1; margin: -7px 0 3px; color: #61758b; font-size: 14px; line-height: 1.5; }
.methodology-content section { min-width: 0; padding: 15px; border: 1px solid #e1e8ef; border-radius: 8px; background: #fbfcfd; }
.methodology-content h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; color: #263b55; font-size: 15px; font-weight: 650; }
.methodology-content h3 span { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #315a86; background: #edf4fa; font-size: 12px; }
.methodology-content p { margin: 0; font-size: 13px; line-height: 1.55; }
.methodology-content section p + p { margin-top: 6px; }
.result-scenario { overflow: hidden; border: 1px solid #cfd9e3; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgb(23 42 69 / 5%); }
.result-scenario[open] { border-color: #aebfd0; box-shadow: 0 3px 11px rgb(23 42 69 / 8%); }
.result-scenario + .result-scenario { margin-top: 14px; }
.result-scenario summary, .result-bond summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.result-scenario summary::-webkit-details-marker, .result-bond summary::-webkit-details-marker { display: none; }
.result-scenario summary { min-height: 72px; padding: 14px 16px; background: #fbfcfd; }
.result-scenario summary::after, .result-bond summary::after { flex: 0 0 8px; width: 8px; height: 8px; border-right: 1.5px solid #60738d; border-bottom: 1.5px solid #60738d; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.result-scenario[open] > summary::after, .result-bond[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.scenario-title, .result-bond-title { display: block; color: #263b55; font-size: 14px; font-weight: 650; }
.scenario-condition, .result-bond-meta { display: block; margin-top: 4px; color: #73849a; font-size: 13px; }
.scenario-summary { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; margin-left: auto; }
.scenario-yield { color: #23517f; font-size: 15px; }
.scenario-yield.yield-pair { display: grid; grid-template-columns: repeat(2, max-content); align-items: start; gap: 15px; }
.scenario-annual-yield.yield-pair { justify-content: center; gap: 14px; }
.scenario-yield .yield-metric { justify-items: end; gap: 3px; }
.scenario-yield .yield-metric > small { font-size: 11px; text-align: right; }
.scenario-yield .yield-metric > strong { font-size: 14px; }
.scenario-annual-yield .yield-metric { justify-items: center; }
.scenario-summary-data { display: grid; gap: 3px; max-width: 400px; color: #728399; font-size: 12px; line-height: 1.4; text-align: right; white-space: normal; }
.scenario-summary-invested, .scenario-summary-profit { white-space: nowrap; }
.scenario-summary-profit { color: #526a83; }
.scenario-content { padding: 0 16px 16px; border-top: 1px solid #e1e7ed; background: #fff; }
.scenario-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.scenario-metrics div { min-width: 0; padding: 9px 10px; border-radius: 6px; background: #f6f8fa; }
.scenario-metrics > div { display: grid; align-content: center; justify-items: center; min-height: 74px; text-align: center; }
.scenario-metrics .scenario-investment-metric { border: 1px solid #d5e1ed; background: #edf4fb; }
.scenario-metrics dt { color: #728399; font-size: 12px; }
.scenario-metrics dd { margin: 4px 0 0; color: #263b55; font-size: 14px; font-weight: 650; white-space: nowrap; }
.scenario-investment-metric dd { color: #1d4e7d; font-size: 16px; }
.scenario-invested-share { display: block; margin-top: 3px; color: #517292; font-size: 12px; font-weight: 600; white-space: nowrap; }
.scenario-empty { margin: 12px 0 2px; color: #718096; font-size: 14px; }
.result-bond { border-top: 1px solid #e6ebf0; }
.result-bond summary { min-height: 56px; padding: 9px 6px; }
.result-bond-summary { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; margin-left: auto; }
.result-bond-yield { color: #23517f; font-size: 14px; }
.yield-pair { display: flex; flex-direction: row; align-items: center; gap: 11px; }
.yield-metric { display: grid; gap: 2px; color: #8290a0; text-align: right; }
.yield-metric > small { color: #8391a0; font-size: 10px; font-weight: 600; }
.yield-metric > strong { color: #687a8e; font-size: 12px; font-weight: 550; white-space: nowrap; }
.yield-metric.is-primary > small { color: #315a86; }
.yield-metric.is-primary > strong { color: #214d78; font-size: 13px; font-weight: 700; }
.yield-value.is-primary { border-radius: 4px; background: #edf4fb; box-shadow: 0 0 0 4px #edf4fb; }
.yield-pair .yield-margin { font-size: inherit; }
.result-bond-invested { color: #728399; font-size: 13px; }
.result-levels-wrap { margin: 0 0 10px; overflow-x: auto; border: 1px solid #e1e7ec; border-radius: 6px; }
.result-levels { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 13px; }
.result-levels th, .result-levels td { padding: 8px 10px; border-bottom: 1px solid #e7ebef; text-align: right; white-space: nowrap; }
.result-levels th:first-child, .result-levels td:first-child { text-align: left; }
.result-levels th { color: #697b90; background: #f7f9fb; font-size: 11px; font-weight: 700; }
.result-levels td .yield-value { display: inline-block; }
.result-levels tr:last-child td { border-bottom: 0; }
.yield-margin { color: #516b86; }
.yield-margin.is-positive { color: #2f7a4e; }
.yield-margin.is-negative { color: #b34141; }
.result-error { margin: 0; color: #a63232; font-size: 14px; }
.result-loading { display: flex; align-items: center; gap: 10px; min-height: 76px; }
.result-tabs { display: flex; gap: 5px; margin: 8px 0 11px; padding: 4px; border: 1px solid #e0e7ee; border-radius: 8px; background: #f4f7fa; }
.result-tab { min-height: 34px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; color: #61758c; background: transparent; font-size: 13px; font-weight: 650; transition: .15s ease; }
.result-tab:hover { color: #244f7b; background: #fff; }
.result-tab.is-active { border-color: #cfdae5; color: #234c78; background: #fff; box-shadow: 0 1px 3px rgb(23 42 69 / 7%); }
.result-tab-panel { display: none; }
.result-tab-panel.is-active { display: block; }
.block-intro { margin: 3px 0 12px; padding: 10px 12px; border-left: 3px solid #91abc4; border-radius: 0 6px 6px 0; color: #536980; background: #f4f8fb; font-size: 14px; line-height: 1.5; }
.block-empty { margin: 10px 0; color: #718096; font-size: 13px; }
.result-block-profile { overflow: hidden; border: 1px solid #dce4eb; border-radius: 8px; background: #fff; }
.result-block-profile + .result-block-profile { margin-top: 9px; }
.result-block-profile summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 9px 6px; cursor: pointer; list-style: none; }
.result-block-profile summary::-webkit-details-marker { display: none; }
.result-block-profile summary::after { flex: 0 0 8px; width: 8px; height: 8px; border-right: 1.5px solid #60738d; border-bottom: 1.5px solid #60738d; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.result-block-profile[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.block-bond-heading, .result-bond-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.block-bond-title { color: #263b55; font-size: 15px; font-weight: 650; }
.block-bond-meta { display: block; margin-top: 5px; color: #73849a; font-size: 13px; }
.block-summary { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; margin-left: auto; text-align: right; }
.block-summary strong { color: #315a86; font-size: 14px; white-space: nowrap; }
.block-summary small { color: #73849a; font-size: 13px; }
.block-profile-content { padding: 0 12px 13px; }
.block-profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 11px; }
.block-profile-facts div { min-width: 0; padding: 10px 11px; border: 1px solid #e0e7ed; border-radius: 6px; background: #f8fafc; }
.block-profile-facts dt { color: #73849a; font-size: 11px; }
.block-profile-facts dd { margin: 4px 0 0; color: #2c4969; font-size: 14px; font-weight: 650; }
.block-levels-help { margin: 0 0 8px; color: #6f8196; font-size: 13px; line-height: 1.45; }
.coupon-type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #d7e0e9; border-radius: 5px; color: #536980; background: #f5f8fa; font-size: 10px; line-height: 1.2; vertical-align: middle; }
.coupon-type-badge.is-fixed { border-color: #cbdced; color: #315a86; background: #f0f6fb; }
.coupon-type-badge.is-floating { border-color: #cbe2d2; color: #34704a; background: #f1f8f3; }
.coupon-type-badge.is-unknown { border-color: #ead8b7; color: #886620; background: #fffaf0; }
.coupon-type-badge small { color: inherit; font-size: inherit; font-weight: 500; }
.coupon-type-cell.is-floating { color: #34704a; font-weight: 650; }
.coupon-type-cell.is-fixed { color: #315a86; font-weight: 650; }
.coupon-type-cell.is-unknown { color: #886620; font-weight: 600; }
.block-levels { width: 100%; min-width: 0; table-layout: fixed; font-size: 12px; }
.block-levels th, .block-levels td { padding: 8px 6px; white-space: normal; overflow-wrap: anywhere; }
.block-levels th:nth-child(1) { width: 8%; }
.block-levels th:nth-child(2) { width: 12%; }
.block-levels th:nth-child(3) { width: 10%; }
.block-levels th:nth-child(4) { width: 23%; }
.block-levels th:nth-child(5) { width: 17%; }
.block-levels th:nth-child(6), .block-levels th:nth-child(7) { width: 15%; }

@media (max-width: 760px) { .scenario-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .methodology-content { grid-template-columns: 1fr; } .methodology-lead { grid-column: auto; } }
@media (max-width: 480px) { .result-scenario summary { padding: 12px; } .scenario-content { padding: 0 11px 11px; } .scenario-yield { font-size: 13px; } .scenario-yield.yield-pair { gap: 8px; } .scenario-yield .yield-metric > strong { font-size: 12px; } .scenario-summary-data { max-width: 190px; font-size: 11px; } .methodology-dialog { padding: 20px; } .yield-pair { gap: 6px; } .yield-metric > strong { font-size: 10px; } .yield-metric.is-primary > strong { font-size: 11px; } .result-tab { flex: 1; padding: 0 8px; font-size: 12px; } .block-profile-content { padding: 0 9px 10px; } .block-profile-facts { grid-template-columns: 1fr 1fr; } .block-profile-facts div:last-child { grid-column: 1 / -1; } .scenario-metrics > div:last-child { grid-column: 1 / -1; } }

.result-tabs { flex-wrap: wrap; }
.result-primary-placement .block-summary strong { white-space: normal; }
.result-primary-placement .block-profile-facts dd { overflow-wrap: anywhere; }
@media (max-width: 480px) { .result-primary-placement summary { flex-wrap: wrap; } .result-primary-placement .block-summary { margin-left: 0; text-align: left; align-items: flex-start; } }

.placement-timing-note { display: inline-block; margin-top: 6px; padding: 2px 6px; border-radius: 4px; color: #886620; background: #fff4de; font-size: 11px; }
