.returns-top { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 1rem; align-items: start; }
.returns-top:has(> [hidden]) { grid-template-columns: minmax(0,1fr); }
.returns-intro { min-width: 0; }
body #app .returns-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; }
body #app .returns-summary-heading[hidden] { display: none; }
body #app .returns-summary-heading h2 { margin: 0; }
body #app .returns-summary-heading .export-table-actions { min-height: 0; padding: 0; border: 0; background: none; gap: .3rem; }
body #app .returns-summary-heading .export-table-actions button { width: 30px; height: 30px; min-width: 30px; }
body #app .returns-summary-heading .export-table-actions svg { width: 25px; height: 25px; }
body #app .returns-summary-table { margin-top: .4rem; }
body #app .returns-summary-table table { font-size: .76rem; }
body #app .returns-summary-table th, body #app .returns-summary-table td { padding: .45rem .4rem; }
.returns-chart { position: relative; min-width: 0; padding: .7rem; border: 1px solid #e0e5ed; border-radius: 8px; background: #fbfcfe; }
.returns-chart[hidden] { display: none; }
.returns-chart-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .35rem; }
body #app .returns-chart h2 { font-size: .85rem; margin: 0; }
.returns-chart-heading p { margin: .25rem 0 0; font-size: .74rem; color: #64748b; }
.returns-chart-heading > span { padding: .2rem .4rem; border-radius: 4px; background: #edf1f7; font-size: .69rem; white-space: nowrap; color: #52637b; }
.returns-chart-body { display: grid; grid-template-columns: minmax(110px,1fr) minmax(140px,1fr); align-items: center; gap: .3rem; margin: .45rem 0; }
.returns-chart svg { display: block; width: 100%; max-width: 150px; justify-self: center; overflow: visible; }
.returns-chart path { stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: filter .12s; }
.returns-chart path.is-active { filter: brightness(1.14); stroke: #243247; stroke-width: 2; }
.returns-chart path:focus-visible { outline: none; stroke: #243247; stroke-width: 3; }
.returns-chart svg text { fill: #fff; font-size: 17px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.returns-chart-legend { margin: 0; padding: 0; list-style: none; }
body #app .returns-chart-legend button { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; width: 100%; gap: .45rem; border: 0; border-radius: 4px; background: transparent; box-shadow: none; padding: .3rem .25rem; font: inherit; font-size: .72rem; color: #43536a; text-align: left; transform: none; }
body #app .returns-chart-legend button:hover, body #app .returns-chart-legend button.is-active { background: #eaf0f7; }
.returns-chart-legend button:focus-visible { outline: 2px solid #526c98; outline-offset: 1px; }
.returns-chart-legend strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.returns-chart-dot { width: 8px; height: 8px; border-radius: 50%; }
.returns-chart-total { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid #e0e5ed; padding-top: .55rem; font-size: .78rem; }
.returns-chart-total small { font-weight: 400; }
.returns-chart-method { margin-top: .55rem; color: #64748b; font-size: .69rem; }
.returns-chart-method summary { cursor: pointer; }
.returns-chart-method p { line-height: 1.5; margin: .4rem 0; }
.returns-chart-state { padding: 1rem .5rem; text-align: center; color: #64748b; font-size: .85rem; }
.returns-chart-tooltip { position: absolute; z-index: 10; max-width: calc(100% - 16px); box-sizing: border-box; pointer-events: none; padding: .6rem .75rem; border: 1px solid #35445c; border-radius: 6px; background: #243247; color: #fff; box-shadow: 0 4px 12px #24324725; font-size: .78rem; line-height: 1.5; }
.returns-chart-tooltip[hidden] { display: none; }
@media(max-width:1050px) { .returns-top { grid-template-columns: minmax(0,1fr); gap: .8rem; } .returns-chart { width: 100%; box-sizing: border-box; } .returns-chart-body { grid-template-columns: 140px minmax(0,1fr); } .returns-chart-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .8rem; } }
@media(max-width:520px) { .returns-chart-body { grid-template-columns: minmax(100px,1fr) minmax(140px,1fr); gap: .2rem; } .returns-chart-legend { display: block; } }
