/* Simplified yield-interest detail dialog */
.yield-detail-dialog {
    width: min(860px, 100%);
    max-height: min(780px, calc(100dvh - 24px));
    border-color: #cfdcd9;
    background: #f5f8f7;
    box-shadow: 0 22px 64px rgba(11, 37, 33, 0.24);
}

.yield-detail-dialog-header {
    padding: 17px 20px 15px;
    border-bottom-color: #dce7e4;
    background: #ffffff;
    color: #20352f;
}

.yield-detail-eyebrow {
    margin-bottom: 3px;
    color: #277569;
    font-size: 10px;
    letter-spacing: 0.7px;
}

.yield-detail-dialog-header h2 {
    color: #18352f;
    font-size: clamp(18px, 2vw, 22px);
}

.yield-detail-dialog-header p {
    margin-top: 5px;
    color: #71827d;
    font-size: 11.5px;
}

.yield-detail-close {
    width: 32px;
    height: 32px;
    border-color: #ccdad7;
    background: #f7faf9;
    color: #355951;
}

.yield-detail-close:hover {
    border-color: #98bdb5;
    background: #edf6f3;
}

.yield-detail-close:focus-visible {
    outline-color: #2b7d70;
}

.yield-detail-modal-body {
    padding: 16px 18px 20px;
}

.yield-detail-dialog-footer {
    display: none;
}

.yield-decision-overview {
    display: grid;
    grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 1px solid #bfd6d0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(34, 80, 69, 0.07);
}

.yield-decision-primary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 20px 22px;
    background: linear-gradient(145deg, #17483e 0%, #236d5e 100%);
    color: #ffffff;
}

.yield-decision-primary > span {
    color: #cce8df;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.yield-decision-primary > strong {
    display: block;
    margin-top: 5px;
    font-size: clamp(27px, 3.2vw, 38px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.yield-decision-primary > div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.yield-decision-primary .yield-carry-confidence {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.yield-decision-primary > div small {
    color: #c9e2db;
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
}

.yield-decision-primary > p {
    margin: 12px 0 0;
    color: #e1f0ec;
    font-size: 10.5px;
    line-height: 1.5;
}

.yield-decision-primary > footer {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.yield-decision-primary > footer strong,
.yield-decision-primary > footer span {
    display: block;
    color: #d8ebe6;
    font-size: 9.5px;
    line-height: 1.45;
}

.yield-decision-primary > footer strong {
    color: #ffffff;
    font-size: 10.5px;
}

.yield-decision-primary > footer span {
    margin-top: 3px;
}

.yield-decision-validations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: 8px;
    padding: 18px;
    background: #f8fbfa;
}

.yield-decision-validations > h3 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #3c5c54;
    font-size: 11px;
}

.yield-decision-check {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dce7e4;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: inset 3px 0 0 #a9bbb6;
}

.yield-decision-check.fit,
.yield-decision-check.good { box-shadow: inset 3px 0 0 #42a38d; }
.yield-decision-check.warning { box-shadow: inset 3px 0 0 #d4a335; }
.yield-decision-check.anomaly { box-shadow: inset 3px 0 0 #d65b68; }
.yield-decision-check.unknown { box-shadow: inset 3px 0 0 #89969c; }

.yield-decision-check span,
.yield-decision-check strong,
.yield-decision-check small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-decision-check span {
    color: #7b8a86;
    font-size: 9.5px;
    font-weight: 750;
}

.yield-decision-check strong {
    margin-top: 4px;
    color: #314e47;
    font-size: 12px;
}

.yield-decision-check small {
    margin-top: 3px;
    color: #87938f;
    font-size: 8.5px;
    line-height: 1.35;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.yield-candidate-block {
    grid-column: 1 / -1;
    padding: 15px 17px 17px;
    border-top: 1px solid #dce7e4;
}

.yield-candidate-block > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
}

.yield-candidate-block h3,
.yield-candidate-block p {
    margin: 0;
}

.yield-candidate-block h3 {
    color: #304f47;
    font-size: 12px;
}

.yield-candidate-block p,
.yield-candidate-block > header > span {
    margin-top: 3px;
    color: #80908b;
    font-size: 9.5px;
}

.yield-candidate-block > header > span {
    flex: 0 0 auto;
}

.yield-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.yield-candidate {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #dce6e3;
    border-radius: 9px;
    background: #fafcfb;
}

.yield-candidate.selected {
    border-color: #53a994;
    background: #e8f6f1;
    box-shadow: inset 3px 0 0 #258572;
}

.yield-candidate.unavailable {
    opacity: 0.68;
}

.yield-candidate > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.yield-candidate > header span {
    overflow: hidden;
    color: #627872;
    font-size: 9.5px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-candidate > header em {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 5px;
    background: #edf1f0;
    color: #667872;
    font-size: 8px;
    font-style: normal;
    font-weight: 750;
}

.yield-candidate > header em.fit,
.yield-candidate > header em.good { background: #e2f3ed; color: #176b5d; }
.yield-candidate > header em.warning { background: #fff0cf; color: #805e16; }
.yield-candidate > header em.anomaly { background: #fae1e4; color: #a7323e; }

.yield-candidate > strong {
    display: block;
    margin-top: 6px;
    color: #2d5047;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.yield-candidate.selected > strong {
    color: #106b59;
}

.yield-candidate > p,
.yield-candidate > small {
    display: block;
    overflow: hidden;
    margin: 3px 0 0;
    color: #84928e;
    font-size: 8.5px;
    line-height: 1.35;
    white-space: normal;
}

.yield-candidate > p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yield-candidate > small {
    color: #607d75;
    font-weight: 750;
}

.yield-candidate.selected > small {
    color: #1c7464;
}

.yield-decision-workflow {
    margin-top: 12px;
}

.yield-decision-stage {
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #d6e2df;
    border-radius: 11px;
    background: #ffffff;
}

.yield-decision-stage > summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
}

.yield-decision-stage > summary::-webkit-details-marker {
    display: none;
}

.yield-decision-stage-number {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #e8f3f0;
    color: #267466;
    font-size: 10px;
    font-weight: 850;
}

.yield-decision-stage-title {
    min-width: 0;
}

.yield-decision-stage-title strong,
.yield-decision-stage-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-decision-stage-title strong {
    color: #304f47;
    font-size: 12px;
}

.yield-decision-stage-title small {
    margin-top: 3px;
    color: #81908c;
    font-size: 9.5px;
}

.yield-decision-stage-result {
    display: flex;
    max-width: 390px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.yield-decision-stage-result b {
    overflow: hidden;
    color: #647872;
    font-size: 9.5px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-decision-stage > summary > i,
.yield-simple-details > summary i {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #edf4f2;
}

.yield-decision-stage > summary > i::before,
.yield-decision-stage > summary > i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1.5px;
    background: #4e7269;
    transform: translate(-50%, -50%);
}

.yield-decision-stage > summary > i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.16s ease;
}

.yield-decision-stage[open] > summary > i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.yield-decision-stage[open] > summary {
    background: #f8fbfa;
}

.yield-decision-stage-body {
    padding: 0 12px 12px;
    border-top: 1px solid #e0e9e6;
    background: #f8fbfa;
}

.yield-decision-stage-body > .yield-simple-card:first-child,
.yield-decision-stage-body > .yield-simple-context:first-child {
    margin-top: 12px;
}

.yield-evidence-details {
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #dce6e3;
    border-radius: 9px;
    background: #ffffff;
}

.yield-evidence-details > summary {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(160px, max-content) 18px;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 12px;
    cursor: pointer;
    list-style: none;
}

.yield-evidence-details > summary::-webkit-details-marker {
    display: none;
}

.yield-evidence-details > summary > div {
    min-width: 0;
}

.yield-evidence-details > summary strong,
.yield-evidence-details > summary small,
.yield-evidence-details > summary b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-evidence-details > summary strong {
    color: #3b5952;
    font-size: 11px;
}

.yield-evidence-details > summary small,
.yield-evidence-details > summary b {
    margin-top: 2px;
    color: #82918d;
    font-size: 9.5px;
    font-weight: 650;
}

.yield-evidence-details > summary b {
    margin: 0;
    text-align: right;
}

.yield-evidence-details > summary > i {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #edf4f2;
}

.yield-evidence-details > summary > i::before,
.yield-evidence-details > summary > i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1.5px;
    background: #4e7269;
    transform: translate(-50%, -50%);
}

.yield-evidence-details > summary > i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.16s ease;
}

.yield-evidence-details[open] > summary > i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.yield-evidence-details[open] > summary {
    background: #f9fbfa;
}

.yield-evidence-details-body {
    padding: 0 10px 10px;
    border-top: 1px solid #e5ecea;
    background: #f8fbfa;
}

.yield-evidence-details-body > .yield-simple-card:first-child {
    margin-top: 10px;
}

.yield-rate-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.yield-daily-verdict {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f1f7f5;
    color: #60746f;
    font-size: 10.5px;
    line-height: 1.45;
}

.yield-daily-verdict strong {
    flex: 0 0 auto;
    color: #226c5f;
}

.yield-daily-verdict.warning { background: #fff8e9; }
.yield-daily-verdict.warning strong { color: #806000; }
.yield-daily-verdict.anomaly { background: #fff1f2; }
.yield-daily-verdict.anomaly strong { color: #aa3440; }

.yield-eir-applied-source {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eef6f3;
}

.yield-eir-applied-source span,
.yield-eir-applied-source small {
    color: #647c75;
    font-size: 9.5px;
}

.yield-eir-applied-source strong {
    color: #176b5d;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.yield-simple-verdict {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #cfe1dc;
    border-radius: 12px;
    background: #f3faf7;
}

.yield-simple-verdict-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dff2ea;
    color: #17705f;
    font-size: 18px;
    font-weight: 850;
}

.yield-simple-verdict > div {
    min-width: 0;
}

.yield-simple-verdict strong {
    display: block;
    color: #183b33;
    font-size: 15px;
    letter-spacing: -0.15px;
    line-height: 1.35;
}

.yield-simple-verdict p {
    margin: 3px 0 0;
    color: #5f756e;
    font-size: 11.5px;
    line-height: 1.45;
}

.yield-simple-verdict.good {
    border-color: #cbded8;
    background: #f5faf8;
}

.yield-simple-verdict.good .yield-simple-verdict-icon {
    background: #e4f0ec;
    color: #277568;
}

.yield-simple-verdict.warning {
    border-color: #ead8a6;
    background: #fffaf0;
}

.yield-simple-verdict.warning .yield-simple-verdict-icon {
    background: #f7e9be;
    color: #866000;
}

.yield-simple-verdict.anomaly {
    border-color: #ebc5c9;
    background: #fff5f6;
}

.yield-simple-verdict.anomaly .yield-simple-verdict-icon {
    background: #f8dde0;
    color: #a82f3a;
}

.yield-simple-verdict.unknown,
.yield-simple-verdict.excluded,
.yield-simple-verdict.neutral {
    border-color: #d9e0e3;
    background: #f7f8f9;
}

.yield-simple-verdict.unknown .yield-simple-verdict-icon,
.yield-simple-verdict.excluded .yield-simple-verdict-icon,
.yield-simple-verdict.neutral .yield-simple-verdict-icon {
    background: #e8ecee;
    color: #607078;
}

.yield-simple-card {
    margin-top: 12px;
    padding: 15px 16px;
    border: 1px solid #d9e4e1;
    border-radius: 12px;
    background: #ffffff;
}

.yield-simple-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.yield-simple-card h3 {
    margin: 0;
    color: #253e38;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.15px;
}

.yield-simple-card header p {
    margin: 3px 0 0;
    color: #7a8985;
    font-size: 10.5px;
}

.yield-carry-card {
    border-color: #c8ded8;
    background: linear-gradient(145deg, #ffffff 0%, #f4faf8 100%);
}

.yield-carry-confidence {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef3f2;
    color: #526d66;
    font-size: 10px;
    font-weight: 800;
}

.yield-carry-confidence.high {
    background: #e2f3ed;
    color: #176b5d;
}

.yield-carry-confidence.medium {
    background: #edf3e5;
    color: #526f31;
}

.yield-carry-confidence.low {
    background: #fff1d6;
    color: #805f1a;
}

.yield-carry-flow {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.yield-carry-node {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 13px;
    border: 1px solid #d9e5e2;
    border-radius: 10px;
    background: #ffffff;
}

.yield-carry-node.own {
    border-color: #bcd9d2;
    background: #f5fbf9;
}

.yield-carry-node.validation {
    border-color: #d7dfe6;
    background: #f7f9fb;
}

.yield-carry-node.result {
    border-color: #74b5a6;
    background: #e9f6f2;
    box-shadow: inset 3px 0 0 #258572;
}

.yield-carry-node > span {
    color: #738681;
    font-size: 10px;
    font-weight: 750;
}

.yield-carry-node > strong {
    display: block;
    margin-top: 5px;
    color: #29473f;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.yield-carry-node.basis > strong {
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.45;
}

.yield-carry-node.result > strong {
    color: #106a59;
    font-size: 20px;
}

.yield-carry-node > small,
.yield-carry-node > em {
    display: block;
    margin-top: 4px;
    color: #7f8f8b;
    font-size: 9.5px;
    font-style: normal;
    line-height: 1.35;
}

.yield-carry-node > em {
    align-self: flex-start;
    padding: 3px 6px;
    border-radius: 5px;
    background: #e8f1ef;
    color: #477168;
    font-weight: 800;
}

.yield-carry-adjustment-note {
    margin: 9px 0 0;
    padding: 9px 11px;
    border: 1px solid #ead6aa;
    border-radius: 8px;
    background: #fff8e8;
    color: #73571e;
    font-size: 10.5px;
    line-height: 1.45;
}

.yield-hedged-carry-block {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #dce8eb;
}

.yield-hedged-carry-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.yield-hedged-carry-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.yield-hedged-carry-heading strong {
    color: #244f70;
    font-size: 12px;
}

.yield-hedged-carry-heading span,
.yield-hedged-carry-block > p,
.yield-hedged-carry-block.unavailable span {
    color: #71858f;
    font-size: 10px;
    line-height: 1.45;
}

.yield-hedged-carry-heading em {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 6px;
    background: #e8f0f6;
    color: #356987;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
}

.yield-hedged-carry-flow .hedge-adjustment strong {
    color: #8a5e24;
}

.yield-carry-node.result.hedged {
    border-color: #6fa5c5;
    background: #eaf4fa;
    box-shadow: inset 3px 0 0 #367da8;
}

.yield-carry-node.result.hedged > strong {
    color: #245f8c;
}

.yield-hedged-carry-block > p {
    margin: 7px 2px 0;
}

.yield-hedge-formula {
    margin-top: 18px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccdfe4;
    border-radius: 12px;
    color: #294b59;
}

.yield-hedge-formula-title,
.yield-hedge-formula-total {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.yield-hedge-formula-title h4 { margin: 0; font-size: 17px; }
.yield-hedge-formula-title > span { font-size: 13px; color: #526b78; }
.yield-hedge-contract { margin-top: 18px; }
.yield-hedge-contract + .yield-hedge-contract { border-top: 1px solid #d9e5e9; padding-top: 18px; }
.yield-hedge-contract h4 { margin: 0 0 12px; font-size: 14px; overflow-wrap: anywhere; }
.yield-hedge-contract h4 > span { margin-left: 8px; color: #536e7c; font-weight: 500; }
.yield-hedge-factors { display: flex; align-items: stretch; gap: 10px; }
.yield-hedge-step { flex: 1; min-width: 0; padding: 16px; background: #f3f7fa; border-radius: 8px; }
.yield-hedge-step h5 { margin: 0 0 16px; font-size: 14px; color: #325e75; }
.yield-hedge-fraction { display: flex; flex-direction: column; text-align: center; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.yield-hedge-fraction > span { padding: 8px 0; }
.yield-hedge-fraction > span:first-child { border-bottom: 2px solid #8aa3b0; }
.yield-hedge-fraction small { display: block; font-size: 13px; font-weight: 500; color: #526b78; margin-top: 4px; }
.yield-hedge-step > small { display: block; margin-top: 14px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; color: #526b78; }
.yield-hedge-times { align-self: center; font-size: 24px; color: #526b78; }
.yield-hedge-rate-difference { padding: 18px 0; text-align: center; font-size: 22px; font-weight: 750; }
.yield-hedge-formula .yield-hedge-unit-note { margin: 12px 0; font-size: 13px; color: #526b78; line-height: 1.6; }
.yield-hedge-formula-total { margin-top: 18px; padding: 16px 20px; background: #fff6e7; border: 1px solid #ead1a3; border-radius: 8px; color: #80531c; }
.yield-hedge-formula-total > div { flex: 1; min-width: 150px; font-size: 15px; font-weight: 700; }
.yield-hedge-formula-total small { display: block; margin-top: 5px; font-size: 13px; font-weight: 400; }
.yield-hedge-formula-total > strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.yield-hedge-formula-total > span { font-size: 15px; }
.yield-hedge-formula-source { margin-top: 16px; font-size: 14px; }
.yield-hedge-formula-source summary { cursor: pointer; padding: 6px 0; font-weight: 650; }
.yield-hedge-formula-source summary:focus-visible { outline: 2px solid #367da8; outline-offset: 3px; }
.yield-hedge-formula-source p,
.yield-hedge-formula-fallback { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.yield-hedged-carry-block > p { font-size: 13px; line-height: 1.7; margin-top: 12px; }

@media (max-width: 760px) {
    .yield-hedge-formula { padding: 14px; }
    .yield-hedge-factors { flex-direction: column; }
    .yield-hedge-times { line-height: 1; }
    .yield-hedge-step { flex: auto; }
    .yield-hedge-formula-total { padding: 14px; }
}

.yield-hedged-carry-block.unavailable {
    padding: 12px 13px;
    border: 1px solid #e3d5bd;
    border-radius: 9px;
    background: #fffaf1;
}

.yield-hedged-carry-block.unavailable > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yield-hedged-carry-block.unavailable strong {
    color: #795d2c;
    font-size: 11px;
}

.yield-hedge-lifecycle,
.yield-hedge-irr-block {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #dce8eb;
}

.yield-hedge-lifecycle-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 9px;
    color: #526b78;
    font-size: 11px;
}

.yield-hedge-lifecycle p,
.yield-candidate-block > .yield-hedge-measurement-note,
.yield-hedge-risk-note {
    margin: 8px 0 0;
    color: #71858f;
    font-size: 11px;
    line-height: 1.5;
}

.yield-hedge-irr-block .yield-hedged-carry-heading em.warning,
.yield-hedge-risk-note {
    background: #fff4de;
    color: #805e16;
}

.yield-hedge-risk-note { padding: 7px 9px; border-radius: 6px; }

.yield-hedge-cashflows { margin-top: 10px; color: #526b78; font-size: 11px; }
.yield-hedge-cashflows > summary { cursor: pointer; font-weight: 700; }
.yield-hedge-cashflow-scroll { max-height: 250px; overflow: auto; margin-top: 7px; }
.yield-hedge-cashflows table { width: 100%; border-collapse: collapse; }
.yield-hedge-cashflows th,
.yield-hedge-cashflows td { padding: 6px 9px; border-bottom: 1px solid #e3eaee; text-align: left; }
.yield-hedge-cashflows th { background: #f2f6f8; }
.yield-hedge-cashflows td:nth-child(3) { text-align: right; white-space: nowrap; }
.yield-hedged-irr-value { color: #526b78; }

.yield-carry-components {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
}

.yield-carry-components > span {
    min-width: 0;
    padding: 6px 7px;
    border-radius: 7px;
    background: #eaf4f1;
}

.yield-carry-components small,
.yield-carry-components b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-carry-components small {
    color: #71857f;
    font-size: 8.5px;
}

.yield-carry-components b {
    margin-top: 2px;
    color: #315d53;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.yield-carry-operator {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    color: #829891;
    font-size: 18px;
    font-weight: 800;
}

.yield-carry-operator.equals {
    color: #377c6d;
}

.yield-carry-equation {
    margin: 8px 0 0;
    color: #4b6c64;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.yield-carry-candidates {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dce8e5;
}

.yield-carry-candidates h4,
.yield-carry-history-heading h4 {
    margin: 0;
    color: #3d6259;
    font-size: 10.5px;
}

.yield-carry-candidates > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 7px;
    margin-top: 7px;
}

.yield-carry-candidates article {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dce6e3;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.78);
}

.yield-carry-candidates article.selected {
    border-color: #65aa9b;
    background: #e9f6f2;
    box-shadow: inset 3px 0 0 #258572;
}

.yield-carry-candidates article span,
.yield-carry-candidates article strong,
.yield-carry-candidates article small {
    display: block;
}

.yield-carry-candidates article span {
    color: #6e817c;
    font-size: 9px;
    font-weight: 800;
}

.yield-carry-candidates article strong {
    margin-top: 4px;
    color: #31594f;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.yield-carry-candidates article small {
    margin-top: 3px;
    overflow: hidden;
    color: #84928e;
    font-size: 8.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-carry-history {
    margin-top: 13px;
}

.yield-carry-history-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.yield-carry-history-heading span {
    color: #7a8d87;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.yield-carry-history-chart {
    position: relative;
    padding: 7px 9px 41px;
    border: 1px solid #dfe9e6;
    border-radius: 10px;
    background: rgba(250, 253, 252, 0.9);
}

.yield-carry-history-chart svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 96 / 29;
    overflow: visible;
}

.yield-carry-history-chart svg,
.yield-cashflow-chart svg {
    font-family: "Pretendard", "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-stretch: normal;
    letter-spacing: normal;
    text-rendering: geometricPrecision;
}

.yield-carry-history-chart .grid line {
    stroke: #dfe8e5;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.yield-carry-history-chart .grid text,
.yield-carry-history-chart .axis-date {
    fill: #80918c;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.yield-carry-history-chart polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.yield-carry-history-chart .carry-window {
    fill: #e8f4f0;
    opacity: 0.7;
}

.yield-carry-history-chart .carry-total-line {
    stroke: #176f60;
    stroke-width: 3;
}

.yield-carry-history-chart .carry-distribution-line {
    stroke: #367eb2;
    stroke-width: 2;
}

.yield-carry-history-chart .carry-nav-line {
    stroke: #9a8a68;
    stroke-width: 2;
}

.yield-carry-history-chart .carry-model-line {
    stroke: #809892;
    stroke-width: 2.5;
    stroke-dasharray: 7 5;
}

.yield-carry-history-chart .bond-fund-nav-index-line {
    stroke: #1f7b6d;
    stroke-width: 3;
}

.yield-carry-history-chart .bond-fund-holding-index-line {
    stroke: #367eb2;
    stroke-width: 2.5;
    stroke-dasharray: 7 5;
}

.yield-carry-history-chart .carry-cashflow-dot {
    fill: #ffffff;
    stroke: #176f60;
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
}

.yield-carry-history-chart .carry-cashflow-dot.excluded {
    fill: #fff7e8;
    stroke: #c17a12;
    stroke-dasharray: 2 1;
}

.yield-carry-exclusion-note {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 7px 10px;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid #ead9b8;
    border-radius: 9px;
    background: #fffaf1;
    color: #6f5835;
    font-size: 11px;
}

.yield-carry-exclusion-note strong {
    color: #9a620d;
    font-size: 11.5px;
}

.yield-carry-exclusion-note span {
    color: #705b3d;
    font-variant-numeric: tabular-nums;
}

.yield-carry-exclusion-note p {
    min-width: 0;
    margin: 0;
    color: #7d6d53;
    line-height: 1.45;
}

.yield-carry-history-legend {
    position: absolute;
    right: 14px;
    bottom: 9px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 13px;
    justify-content: flex-end;
    color: #62756f;
    font-size: 9px;
    font-weight: 700;
}

.yield-carry-history-legend span::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 3px;
    margin-right: 5px;
    border-radius: 999px;
    vertical-align: middle;
}

.yield-carry-history-legend .total::before { background: #176f60; }
.yield-carry-history-legend .distribution::before { background: #367eb2; }
.yield-carry-history-legend .nav::before { background: #9a8a68; }
.yield-carry-history-legend .model::before {
    background: repeating-linear-gradient(90deg, #809892 0 6px, transparent 6px 10px);
}

.yield-carry-history-legend .bond-nav-index::before { background: #1f7b6d; }
.yield-carry-history-legend .bond-holding-index::before {
    height: 2px;
    background: repeating-linear-gradient(90deg, #367eb2 0 7px, transparent 7px 11px);
}

.yield-bond-fund-nav-note {
    margin: 7px 2px 0;
    color: #71827d;
    font-size: 10px;
    line-height: 1.5;
}

.yield-carry-card > footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #dce8e5;
}

.yield-carry-card > footer strong,
.yield-carry-card > footer span,
.yield-carry-card > footer p {
    min-width: 0;
    margin: 0;
    color: #647b75;
    font-size: 9.5px;
    line-height: 1.45;
}

.yield-carry-card > footer strong {
    overflow: hidden;
    color: #39675c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-carry-card > footer span {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.yield-carry-card > footer p {
    grid-column: 1 / -1;
    color: #7b8b87;
}

.yield-simple-method {
    max-width: 48%;
    overflow: hidden;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf6f3;
    color: #2a6c61;
    font-size: 10.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-compare-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) minmax(150px, 0.78fr);
    gap: 8px;
    align-items: stretch;
}

.yield-simple-compare-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dce6e3;
    border-radius: 10px;
    background: #fafcfb;
}

.yield-simple-compare-grid span,
.yield-simple-basis-item span,
.yield-simple-detail-grid span {
    display: block;
    color: #74847f;
    font-size: 10.5px;
    font-weight: 700;
}

.yield-simple-compare-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: #24463f;
    font-size: clamp(17px, 2vw, 21px);
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-compare-grid .calculated {
    border-color: #b9dcd3;
    background: #f1faf7;
}

.yield-simple-compare-grid .calculated strong {
    color: #176b5d;
}

.yield-simple-compare-grid .actual strong {
    color: #29465c;
}

.yield-simple-compare-symbol {
    display: grid !important;
    place-items: center;
    color: #8ba19b !important;
    font-size: 17px !important;
}

.yield-simple-compare-grid .difference {
    background: #f7f9f8;
}

.yield-simple-compare-grid .difference strong {
    font-size: 16px;
}

.yield-simple-compare-grid .difference small {
    display: block;
    margin-top: 4px;
    color: #6f807b;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.yield-simple-compare-grid .difference.fit strong,
.yield-simple-compare-grid .difference.good strong {
    color: #176b5d;
}

.yield-simple-compare-grid .difference.warning strong {
    color: #896100;
}

.yield-simple-compare-grid .difference.anomaly strong {
    color: #ad3340;
}

.yield-cashflow-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.yield-cashflow-chart {
    position: relative;
    margin-top: 12px;
    padding: 8px 10px 42px;
    border: 1px solid #e0e8e6;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f6faf8 100%);
}

.yield-cashflow-chart svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 32 / 9;
    overflow: visible;
}

.yield-cashflow-chart .grid line {
    stroke: #dfe8e5;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.yield-cashflow-chart .grid text,
.yield-cashflow-chart .axis-date {
    fill: #80918c;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.yield-cashflow-chart polyline,
.yield-cashflow-chart path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.yield-cashflow-chart .expected-line {
    stroke: #8ba39d;
    stroke-dasharray: 6 5;
}

.yield-cashflow-chart .earned-line {
    stroke: #2f79b7;
    stroke-width: 2.5;
}

.yield-cashflow-chart .actual-line {
    stroke: #1f7b6d;
}

.yield-cashflow-chart .projection-line {
    stroke: #1f7b6d;
    stroke-dasharray: 7 6;
}

.yield-cashflow-chart .actual-dot {
    fill: #ffffff;
    stroke: #1f7b6d;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.yield-cashflow-chart .yield-cashflow-event-dot {
    cursor: pointer;
    transition: fill 120ms ease, stroke-width 120ms ease;
}

.yield-cashflow-chart .yield-cashflow-event-dot:hover,
.yield-cashflow-chart .yield-cashflow-event-dot:focus {
    fill: #dff5ed;
    stroke-width: 3.5;
    outline: none;
}

.yield-cashflow-tooltip {
    position: absolute;
    z-index: 3;
    max-width: min(320px, calc(100% - 16px));
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(25, 64, 55, 0.96);
    box-shadow: 0 5px 16px rgba(25, 64, 55, 0.18);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
    white-space: normal;
}

.yield-cashflow-tooltip[hidden] {
    display: none;
}

.yield-cashflow-legend {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 9px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
    color: #61736e;
    font-size: 9.5px;
    font-weight: 700;
}

.yield-cashflow-legend span::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 3px;
    margin-right: 5px;
    border-radius: 999px;
    vertical-align: middle;
}

.yield-cashflow-legend .earned::before {
    background: #2f79b7;
}

.yield-cashflow-legend .expected::before {
    background: repeating-linear-gradient(90deg, #8ba39d 0 5px, transparent 5px 8px);
}

.yield-cashflow-legend .actual::before {
    background: #1f7b6d;
}

.yield-cashflow-legend .projection::before {
    background: repeating-linear-gradient(90deg, #1f7b6d 0 6px, transparent 6px 10px);
}

.yield-cashflow-verdict {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f2f7f5;
    color: #526a64;
    font-size: 10.5px;
    line-height: 1.45;
}

.yield-cashflow-verdict strong {
    flex: 0 0 auto;
    color: #276b60;
}

.yield-cashflow-verdict.warning {
    background: #fff8e9;
}

.yield-cashflow-verdict.warning strong {
    color: #806000;
}

.yield-cashflow-verdict.anomaly {
    background: #fff1f2;
}

.yield-cashflow-verdict.anomaly strong {
    color: #aa3440;
}

.yield-cashflow-timeline {
    margin-top: 12px;
    border-top: 1px solid #e5ecea;
}

.yield-cashflow-timeline h4 {
    margin: 12px 0 6px;
    color: #526c65;
    font-size: 10.5px;
}

.yield-cashflow-event {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 3px;
    border-top: 1px solid #edf1f0;
    border-radius: 7px;
    scroll-margin-block: 110px;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.yield-cashflow-event.is-highlighted {
    background: #e8f7f1;
    box-shadow: inset 3px 0 0 #1f8a70;
    animation: yield-cashflow-event-highlight 700ms ease-out;
}

.yield-cashflow-event:focus {
    outline: 2px solid rgba(31, 138, 112, 0.28);
    outline-offset: 1px;
}

@keyframes yield-cashflow-event-highlight {
    0% { background: #cceee1; }
    100% { background: #e8f7f1; }
}

.yield-cashflow-event time,
.yield-cashflow-event b {
    color: #3e5d56;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
}

.yield-cashflow-event time {
    min-width: 88px;
    white-space: nowrap;
}

.yield-cashflow-event > div {
    min-width: 0;
}

.yield-cashflow-event strong,
.yield-cashflow-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-cashflow-event strong {
    color: #37564e;
    font-size: 10.5px;
}

.yield-cashflow-event small {
    margin-top: 2px;
    color: #86948f;
    font-size: 9px;
}

.yield-cashflow-empty {
    margin: 11px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: #f6f8f7;
    color: #788984;
    font-size: 10.5px;
    text-align: center;
}

.yield-simple-context {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #cddfda;
    border-radius: 10px;
    background: #f3f9f7;
}

.yield-simple-context > span {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #dcefe9;
    color: #216b5e;
    font-size: 10px;
    font-weight: 800;
}

.yield-simple-context p {
    margin: 0;
    color: #4f6962;
    font-size: 11px;
    line-height: 1.45;
}

.yield-simple-context.adjustment {
    border-color: #dfd7c7;
    background: #fcfaf6;
}

.yield-simple-context.adjustment > span {
    background: #f0e8d8;
    color: #765d2e;
}

.yield-simple-context.balance {
    border-color: #ead8a9;
    background: #fffaf0;
}

.yield-simple-context.balance > span {
    background: #f7e9be;
    color: #806000;
}

.yield-eir-card {
    border-color: #bcd8d1;
    background: linear-gradient(145deg, #ffffff 0%, #f2f9f7 100%);
}

.yield-eir-route {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dff1eb;
    color: #176b5d;
    font-size: 10.5px;
    font-weight: 800;
}

.yield-eir-lane-heading {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0 1px 8px;
}

.yield-eir-lane-heading strong {
    color: #315a50;
    font-size: 11px;
}

.yield-eir-lane-heading span {
    color: #7a8c87;
    font-size: 9.5px;
}

.yield-eir-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.25fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
}

.yield-eir-node {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid #dce8e4;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.yield-eir-step {
    display: inline-grid;
    place-items: center;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #e5f2ee;
    color: #267466;
    font-size: 9.5px;
    font-weight: 850;
}

.yield-eir-node > div {
    min-width: 0;
}

.yield-eir-node > div > span,
.yield-eir-node strong,
.yield-eir-node small {
    display: block;
}

.yield-eir-node > div > span {
    color: #70837d;
    font-size: 10px;
    font-weight: 750;
}

.yield-eir-node strong {
    margin-top: 4px;
    color: #294a42;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.yield-eir-node small {
    margin-top: 4px;
    color: #83928e;
    font-size: 9px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.yield-eir-node.result {
    border-color: #70b4a5;
    background: #e8f6f1;
    box-shadow: inset 3px 0 0 #258572;
}

.yield-eir-node.result strong {
    color: #106b59;
    font-size: 15px;
}

.yield-eir-arrow {
    display: grid;
    place-items: center;
    color: #86a29a;
    font-size: 17px;
}

.yield-eir-equation,
.yield-eir-application-formula {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 8px 1px 0;
    color: #698078;
    font-size: 9.5px;
    line-height: 1.45;
}

.yield-eir-equation span,
.yield-eir-application-formula span {
    flex: 0 0 auto;
    color: #477168;
    font-weight: 800;
}

.yield-eir-equation code,
.yield-eir-application-formula code {
    min-width: 0;
    color: #31564d;
    font-family: inherit;
    font-size: inherit;
    font-variant-numeric: tabular-nums;
    white-space: normal;
}

.yield-eir-unavailable {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid #dfd7c8;
    border-radius: 10px;
    background: #fcfaf6;
}

.yield-eir-unavailable > span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 6px;
    background: #f0e8d9;
    color: #765f35;
    font-size: 9.5px;
    font-weight: 800;
}

.yield-eir-unavailable strong {
    color: #5a5140;
    font-size: 11px;
}

.yield-eir-unavailable p {
    margin: 3px 0 0;
    color: #807662;
    font-size: 9.5px;
    line-height: 1.45;
}

.yield-eir-rate-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 9px 0 0;
    color: #527269;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.yield-eir-rate-bridge strong {
    color: #315e53;
}

.yield-eir-rate-bridge em {
    padding: 3px 6px;
    border-radius: 5px;
    background: #e8f1ee;
    color: #3a6e62;
    font-style: normal;
    font-weight: 800;
}

.yield-eir-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 9px;
    color: #648078;
    font-size: 9.5px;
    font-weight: 800;
}

.yield-eir-divider::before,
.yield-eir-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: #dbe7e3;
}

.yield-eir-direct-note {
    margin: 8px 0 0;
    padding: 7px 9px;
    border-radius: 7px;
    background: #f8f4ec;
    color: #6e624c;
    font-size: 9.5px;
    line-height: 1.45;
}

.yield-eir-direct-note strong {
    margin-right: 5px;
    color: #735e38;
}

.yield-simple-basis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.yield-simple-basis-item {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e0e8e6;
    border-radius: 9px;
    background: #fafcfb;
}

.yield-simple-basis-item strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #29463f;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-basis-item small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #87938f;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-breakdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5ecea;
}

.yield-simple-breakdown.inflation {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.yield-simple-breakdown > div {
    min-width: 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f7faf9;
}

.yield-simple-breakdown span {
    display: block;
    color: #7a8985;
    font-size: 10px;
    font-weight: 700;
}

.yield-simple-breakdown strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #3b514c;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-breakdown > b {
    color: #91a09c;
    font-size: 15px;
}

.yield-simple-breakdown .result {
    background: #eaf6f2;
}

.yield-simple-breakdown .result strong {
    color: #176b5d;
}

.yield-simple-details {
    margin-top: 12px;
    border: 1px solid #d7e2df;
    border-radius: 12px;
    background: #ffffff;
}

.yield-simple-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 0 15px;
    color: #34564e;
    cursor: pointer;
    list-style: none;
}

.yield-simple-details > summary::-webkit-details-marker {
    display: none;
}

.yield-simple-details > summary span {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.yield-simple-details > summary strong {
    font-size: 12px;
}

.yield-simple-details > summary small {
    color: #82918d;
    font-size: 10px;
}

.yield-simple-details > summary i {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #edf4f2;
}

.yield-simple-details > summary i::before,
.yield-simple-details > summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1.5px;
    background: #4e7269;
    transform: translate(-50%, -50%);
}

.yield-simple-details > summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.16s ease;
}

.yield-simple-details[open] > summary i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.yield-simple-details-body {
    padding: 0 15px 15px;
    border-top: 1px solid #e4ebe9;
}

.yield-simple-details-body > section {
    padding-top: 14px;
}

.yield-simple-details-body > section + section {
    margin-top: 14px;
    border-top: 1px solid #e6ecea;
}

.yield-simple-details-body h4 {
    margin: 0 0 9px;
    color: #34564e;
    font-size: 11.5px;
    font-weight: 800;
}

.yield-simple-formula {
    margin: 0 0 9px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f7f5;
    color: #285c51;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1.55;
}

.yield-simple-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.yield-simple-detail-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yield-simple-detail-grid > div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f8faf9;
}

.yield-simple-detail-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #354e48;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-detail-grid small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #84918e;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* IRR assumptions are part of the result, not a tooltip-only numeric label. */
.yield-hedge-irr-block .yield-simple-detail-grid {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr);
}

.yield-hedge-irr-block .yield-simple-detail-grid strong,
.yield-hedge-irr-block .yield-simple-detail-grid small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 620px) {
    .yield-hedge-irr-block .yield-simple-detail-grid {
        grid-template-columns: 1fr;
    }
}

.yield-simple-bridge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    margin-top: 9px;
}

.yield-simple-bridge > div {
    padding: 9px 10px;
    border-radius: 8px;
    background: #faf8f3;
}

.yield-simple-bridge span,
.yield-simple-bridge small {
    display: block;
    color: #84765c;
    font-size: 9.5px;
}

.yield-simple-bridge strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #5f5138;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-bridge > b {
    color: #9c927d;
}

.yield-simple-rate-head,
.yield-simple-rate-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(110px, 0.75fr));
    gap: 8px;
    align-items: center;
}

.yield-simple-rate-head {
    padding: 0 10px 6px;
    color: #87938f;
    font-size: 9.5px;
    font-weight: 750;
}

.yield-simple-rate-row {
    padding: 9px 10px;
    border-top: 1px solid #e8edeb;
    color: #3b544e;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.yield-simple-rate-row > div {
    min-width: 0;
}

.yield-simple-rate-row strong,
.yield-simple-rate-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yield-simple-rate-row strong {
    color: #31584f;
    font-size: 11px;
}

.yield-simple-rate-row small {
    margin-top: 2px;
    color: #899590;
    font-size: 9.5px;
}

.yield-simple-help,
.yield-simple-inline-note {
    margin: 8px 0 0;
    color: #7d8b87;
    font-size: 10px;
    line-height: 1.5;
}

.yield-simple-inline-note {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8faf9;
}

/* Wide desktop readability: use the available horizontal space and keep even
   secondary evidence legible without flattening the visual hierarchy. */
@media (min-width: 761px) {
    .yield-detail-dialog {
        width: min(1240px, 100%);
    }

    .yield-detail-eyebrow {
        font-size: 12px;
    }

    .yield-detail-dialog-header h2 {
        font-size: clamp(22px, 2vw, 26px);
    }

    .yield-detail-dialog-header p,
    .yield-simple-verdict p {
        font-size: 13.5px;
    }

    .yield-decision-primary > span,
    .yield-decision-primary > footer strong,
    .yield-decision-validations > h3,
    .yield-candidate-block h3 {
        font-size: 13.5px;
    }

    .yield-decision-primary > p,
    .yield-decision-primary > footer span,
    .yield-decision-check strong,
    .yield-candidate > header span,
    .yield-candidate-block p,
    .yield-candidate-block > header > span,
    .yield-candidate > p,
    .yield-candidate > small,
    .yield-decision-stage-title small,
    .yield-decision-stage-result b,
    .yield-daily-verdict,
    .yield-eir-applied-source span,
    .yield-eir-applied-source small {
        font-size: 12px;
    }

    .yield-evidence-details > summary strong {
        font-size: 13px;
    }

    .yield-evidence-details > summary small,
    .yield-evidence-details > summary b {
        font-size: 11.5px;
    }

    .yield-decision-primary > div small,
    .yield-decision-check span,
    .yield-decision-check small,
    .yield-candidate > header em {
        font-size: 11px;
    }

    .yield-candidate > strong {
        font-size: 19px;
    }

    .yield-decision-stage-title strong {
        font-size: 15px;
    }

    .yield-eir-applied-source strong {
        font-size: 17px;
    }

    .yield-simple-verdict-icon {
        font-size: 21px;
    }

    .yield-simple-verdict strong {
        font-size: 18px;
    }

    .yield-simple-card h3 {
        font-size: 17px;
    }

    .yield-simple-card header p,
    .yield-cashflow-verdict,
    .yield-cashflow-empty,
    .yield-simple-context p {
        font-size: 13px;
    }

    .yield-carry-confidence,
    .yield-eir-route,
    .yield-carry-node > span,
    .yield-simple-context > span,
    .yield-simple-breakdown span,
    .yield-simple-details > summary small,
    .yield-simple-help,
    .yield-simple-inline-note {
        font-size: 12px;
    }

    .yield-eir-lane-heading strong,
    .yield-eir-unavailable strong {
        font-size: 13.5px;
    }

    .yield-eir-lane-heading span,
    .yield-eir-node small,
    .yield-eir-unavailable p,
    .yield-eir-equation,
    .yield-eir-application-formula,
    .yield-eir-direct-note,
    .yield-eir-rate-bridge,
    .yield-eir-divider {
        font-size: 12px;
    }

    .yield-eir-node > div > span,
    .yield-eir-unavailable > span {
        font-size: 12px;
    }

    .yield-eir-node strong {
        font-size: 15px;
    }

    .yield-eir-node.result strong {
        font-size: 18px;
    }

    .yield-carry-node > strong {
        font-size: 20px;
    }

    .yield-carry-node.basis > strong {
        font-size: 14px;
    }

    .yield-carry-node.result > strong {
        font-size: 24px;
    }

    .yield-carry-node > small,
    .yield-carry-node > em,
    .yield-carry-components small,
    .yield-carry-candidates article span,
    .yield-carry-candidates article small,
    .yield-carry-history-heading span,
    .yield-carry-card > footer strong,
    .yield-carry-card > footer span,
    .yield-carry-card > footer p,
    .yield-cashflow-event small,
    .yield-simple-basis-item small,
    .yield-simple-detail-grid small,
    .yield-simple-bridge span,
    .yield-simple-bridge small,
    .yield-simple-rate-head,
    .yield-simple-rate-row small {
        font-size: 11.5px;
    }

    .yield-carry-components b,
    .yield-carry-equation,
    .yield-simple-method {
        font-size: 12.5px;
    }

    .yield-carry-operator {
        font-size: 21px;
    }

    .yield-carry-candidates h4,
    .yield-carry-history-heading h4,
    .yield-cashflow-timeline h4 {
        font-size: 13px;
    }

    .yield-carry-candidates article strong,
    .yield-simple-basis-item strong,
    .yield-simple-breakdown strong {
        font-size: 15px;
    }

    .yield-carry-history-chart .grid text,
    .yield-carry-history-chart .axis-date,
    .yield-cashflow-chart .grid text,
    .yield-cashflow-chart .axis-date,
    .yield-carry-history-legend,
    .yield-cashflow-legend {
        font-size: 11px;
    }

    .yield-bond-fund-nav-note {
        font-size: 12px;
    }

    .yield-simple-compare-grid span,
    .yield-simple-basis-item span,
    .yield-simple-detail-grid span {
        font-size: 12.5px;
    }

    .yield-simple-compare-grid strong {
        font-size: clamp(20px, 2vw, 24px);
    }

    .yield-simple-compare-symbol {
        font-size: 20px !important;
    }

    .yield-simple-compare-grid .difference strong {
        font-size: 19px;
    }

    .yield-simple-compare-grid .difference small,
    .yield-cashflow-event time,
    .yield-cashflow-event b,
    .yield-cashflow-event strong,
    .yield-simple-rate-row,
    .yield-simple-rate-row strong {
        font-size: 13px;
    }

    .yield-simple-breakdown > b {
        font-size: 18px;
    }

    .yield-simple-details > summary strong,
    .yield-simple-details-body h4 {
        font-size: 14px;
    }

    .yield-simple-formula,
    .yield-simple-detail-grid strong,
    .yield-simple-bridge strong {
        font-size: 13px;
    }
}

@media (max-width: 760px) {
    .yield-detail-modal {
        padding: 8px;
    }

    .yield-detail-dialog {
        max-height: calc(100dvh - 16px);
    }

    .yield-decision-overview {
        grid-template-columns: 1fr;
    }

    .yield-decision-validations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .yield-decision-stage > summary {
        grid-template-columns: 30px minmax(0, 1fr) 20px;
    }

    .yield-decision-stage-result {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
        justify-content: flex-start;
        padding-bottom: 9px;
    }

    .yield-decision-stage > summary > i {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .yield-evidence-details > summary {
        grid-template-columns: minmax(0, 1fr) auto 20px;
    }

    .yield-evidence-details > summary b {
        grid-column: 1;
        grid-row: 2;
        padding-bottom: 8px;
        text-align: left;
    }

    .yield-evidence-details > summary > i {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .yield-simple-compare-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yield-simple-compare-symbol {
        display: none !important;
    }

    .yield-simple-compare-grid .difference {
        grid-column: 1 / -1;
    }

    .yield-simple-basis-grid,
    .yield-cashflow-summary,
    .yield-simple-detail-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yield-eir-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yield-eir-arrow {
        display: none;
    }

    .yield-simple-rate-head {
        display: none;
    }

    .yield-simple-rate-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .yield-simple-rate-row > div {
        grid-column: 1 / -1;
    }

    .yield-carry-exclusion-note {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .yield-carry-exclusion-note p {
        grid-column: 1 / -1;
    }

    .yield-eir-lane-heading,
    .yield-eir-equation,
    .yield-eir-application-formula {
        display: block;
    }

    .yield-eir-lane-heading span,
    .yield-eir-equation code,
    .yield-eir-application-formula code {
        display: block;
        margin-top: 3px;
    }

    .yield-eir-rate-bridge {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .yield-detail-dialog-header,
    .yield-detail-modal-body {
        padding-left: 13px;
        padding-right: 13px;
    }

    .yield-detail-header-actions .yield-status {
        display: none;
    }

    .yield-simple-verdict,
    .yield-simple-context {
        align-items: flex-start;
    }

    .yield-decision-primary {
        padding: 17px;
    }

    .yield-decision-validations,
    .yield-rate-policy-grid {
        grid-template-columns: 1fr;
    }

    .yield-candidate-block > header {
        display: block;
    }

    .yield-candidate-block > header > span {
        display: block;
    }

    .yield-candidate-grid {
        grid-template-columns: 1fr;
    }

    .yield-decision-stage > summary {
        padding: 9px 11px;
    }

    .yield-decision-stage-title small,
    .yield-decision-stage-result b,
    .yield-evidence-details > summary small,
    .yield-evidence-details > summary b {
        white-space: normal;
    }

    .yield-daily-verdict {
        display: block;
    }

    .yield-daily-verdict span {
        display: block;
        margin-top: 3px;
    }

    .yield-eir-applied-source {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .yield-simple-card {
        padding: 13px;
    }

    .yield-simple-card > header,
    .yield-simple-details > summary span {
        display: block;
    }

    .yield-simple-method {
        max-width: 100%;
    }

    .yield-simple-card > header .yield-simple-method {
        margin-top: 7px;
    }

    .yield-carry-confidence {
        margin-top: 7px;
    }

    .yield-carry-flow {
        display: grid;
        grid-template-columns: 1fr;
    }

    .yield-eir-flow {
        grid-template-columns: 1fr;
    }

    .yield-carry-operator {
        display: none;
    }

    .yield-carry-card > footer {
        grid-template-columns: 1fr;
    }

    .yield-carry-card > footer span {
        text-align: left;
    }

    .yield-carry-card > footer p {
        grid-column: 1;
    }

    .yield-carry-candidates > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yield-carry-history-heading {
        display: block;
    }

    .yield-carry-history-heading span {
        display: block;
        margin-top: 3px;
    }

    .yield-carry-history-chart svg {
        height: auto;
        aspect-ratio: 96 / 29;
    }

    .yield-simple-basis-grid,
    .yield-cashflow-summary,
    .yield-simple-detail-grid,
    .yield-simple-detail-grid.four {
        grid-template-columns: 1fr;
    }

    .yield-cashflow-chart svg {
        height: auto;
        aspect-ratio: 32 / 9;
    }

    .yield-carry-history-chart .grid text,
    .yield-carry-history-chart .axis-date,
    .yield-cashflow-chart .grid text,
    .yield-cashflow-chart .axis-date {
        font-size: 16px;
    }

    .yield-cashflow-verdict {
        display: block;
    }

    .yield-cashflow-verdict span {
        display: block;
        margin-top: 3px;
    }

    .yield-cashflow-event {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .yield-cashflow-event b {
        grid-column: 2;
    }

    .yield-simple-breakdown,
    .yield-simple-breakdown.inflation,
    .yield-simple-bridge {
        grid-template-columns: 1fr;
    }

    .yield-simple-breakdown > b,
    .yield-simple-bridge > b {
        display: none;
    }

    .yield-simple-details > summary small {
        display: block;
        margin-top: 2px;
    }
}
