.exposure-card { position: relative; margin: 42px auto 0; scroll-margin-top: 100px; }
.chart-layout { width: 100%; }
.portfolio-visual { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; min-height: 460px; }
.donut-wrap { width: 100%; max-width: 495px; position: relative; }
.donut { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 32px #64646425); animation: portfolio-drift 16s ease-in-out infinite alternate; animation-play-state: paused; }
.exposure-card.is-playing .donut { animation-play-state: running; }
.chart-track { stroke: #161616; stroke-opacity: .6; }
.chart-segment { cursor: pointer; transition: opacity .4s; }
.chart-segment.dim, #chart-depth .dim { opacity: .28; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; padding-top: 7px; }
#chart-kicker { font-size: 8px; letter-spacing: 1.8px; color: #a7a7a7; }
#chart-value { font-family: Georgia, 'Times New Roman', serif; font-size: 68px; font-weight: 400; letter-spacing: -2px; color: #d9d9d9; line-height: 1.1; margin: 8px 0; }
#chart-label { font-size: 12px; color: #a9a9a9; }
.contract-inspector { text-align: left; min-width: 0; }
#contract-kicker { font-size: 9px; letter-spacing: 1.6px; }
.contract-inspector h3 { font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: -.8px; margin-top: 17px; }
.contract-intro { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 17px; min-height: 76px; max-width: 370px; }
.contract-cards { margin-top: 15px; }
.portfolio-contract { padding: 17px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; animation: contract-appear .5s ease-out; }
.portfolio-contract-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: #a7a7a7; font-size: 9px; }
.portfolio-contract-top > span:first-child { display: flex; align-items: center; gap: 6px; }
.contract-side { font-size: 8px; letter-spacing: .6px; }
.portfolio-contract h4 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 400; color: #d8d8d8; }
.contract-terms { grid-column: 1; font-size: 10px; line-height: 1.6; color: #a7a7a7; margin: 0; }
.portfolio-contract-allocation { grid-column: 2; grid-row: 2 / 4; text-align: right; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.portfolio-contract-allocation strong { font-size: 17px; font-weight: 400; color: #bfbfbf; }
.portfolio-contract-allocation span { font-size: 11px; color: #a7a7a7; }
.portfolio-transport { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 620px; margin: 12px auto 0; font-size: 11px; color: #a7a7a7; }
.portfolio-playback { display: flex; align-items: center; gap: 18px; }
.portfolio-playback button { border: 0; background: none; color: #bababa; min-height: 42px; padding: 8px 3px; font-size: 11px; }
.portfolio-playback button:hover { color: #e6e6e6; }
.portfolio-progress { display: block; width: min(620px, 100%); height: 1px; border: 0; margin: 0 auto; background: #a1a1a117; color: #a7a7a7; accent-color: #a3a3a3; overflow: hidden; }
.portfolio-progress::-webkit-progress-bar { background: #a1a1a117; }
.portfolio-progress::-webkit-progress-value { background: #a3a3a3; }
.portfolio-progress::-moz-progress-bar { background: #a3a3a3; }
.portfolio-holdings { border: 0; margin: 7px auto 0; }
.portfolio-holdings > summary { justify-content: center; gap: 13px; color: #acacac; font-size: 11px; padding: 17px 0; }
.portfolio-holdings > summary .plus { width: 9px; height: 9px; }
.portfolio-holdings > summary .plus:before, .portfolio-holdings > summary .plus:after { width: 9px; top: 4px; }
.portfolio-explore { padding: 30px; margin: 9px auto 24px; border: 1px solid var(--line); border-radius: 10px; background: #0e0e0e80; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; }
.overline { font-size: 8px; letter-spacing: 1.7px; color: #a7a7a7; margin-bottom: 7px; }
.profile-heading h2 { font-family: Arial, Helvetica, sans-serif; font-size: 19px; font-weight: 400; letter-spacing: -.4px; }
.snapshot { font-size: 10px; color: #a7a7a7; }
.profile-options { display: flex; width: fit-content; max-width: 100%; gap: 4px; margin-top: 20px; padding: 3px; background: #b3b3b306; border: 1px solid #b3b3b324; border-radius: 99px; }
.profile-options button { font-size: 11px; padding: 10px 18px; border: 0; border-radius: 99px; background: none; color: #a7a7a7; }
.profile-options button[aria-pressed=true] { background: #b3b3b3; color: #a7a7a7; }
.chart-legend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 27px; }
.legend-button { display: grid; grid-template-columns: 6px 1fr; align-items: center; gap: 8px; text-align: left; padding: 10px 6px; border: 1px solid transparent; border-radius: 4px; background: none; color: #ababab; font-size: 10px; line-height: 1.4; }
.legend-button > strong { grid-column: 2; font-size: 20px; font-weight: 400; color: #c9c9c9; }
.legend-button[aria-pressed=true], .legend-button:hover { border-color: #b3b3b32b; background: #b3b3b309; }
.legend-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.theme-0 { background: var(--c0); }.theme-1 { background: var(--c1); }.theme-2 { background: var(--c2); }
.theme-3 { background: var(--c3); }.theme-4 { background: var(--c4); }.theme-5 { background: var(--c5); }
.portfolio-snapshots { display: flex; justify-content: center; gap: 14px; margin: 25px 0; }
.portfolio-snapshots button { display: flex; align-items: center; gap: 6px; min-height: 39px; background: none; color: #a7a7a7; border: 1px solid transparent; border-radius: 99px; padding: 8px 13px; font-size: 9px; }
.portfolio-snapshots button > span { font-size: 11px; }
.portfolio-snapshots button[aria-pressed=true] { color: #d1d1d1; border-color: #b3b3b335; background: #b3b3b30b; }
.portfolio-holdings-scroll { overflow-x: auto; padding-bottom: 12px; }
.portfolio-holdings table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 11px; line-height: 1.6; text-align: left; }
.portfolio-holdings caption { text-align: left; font-size: 10px; color: #a7a7a7; padding: 12px 10px 18px; }
.portfolio-holdings th, .portfolio-holdings td { padding: 13px 10px; border-bottom: 1px solid var(--line); color: #b1b1b1; vertical-align: top; }
.portfolio-holdings thead th { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; color: #a7a7a7; }
.portfolio-holdings td strong { display: block; font-size: 12px; font-weight: 400; color: #cfcfcf; }
.portfolio-holdings td small { display: block; font-size: 10px; color: #a7a7a7; margin-top: 3px; }
.portfolio-holdings td:nth-last-child(-n+2), .portfolio-holdings th:nth-last-child(-n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.portfolio-holdings tfoot th, .portfolio-holdings tfoot td { border: 0; color: #cccccc; font-weight: 400; }
.portfolio-example-note { font-size: 10px; line-height: 1.8; color: #a7a7a7; margin: 0 auto; }
.no-script { font-size: 14px; line-height: 1.8; color: var(--muted); padding-top: 20px; }
@keyframes portfolio-drift { from { transform: perspective(950px) rotateX(25deg) rotateZ(-4deg); } to { transform: perspective(950px) rotateX(31deg) rotateZ(4deg); } }
@keyframes contract-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 960px) {
  .portfolio-visual { grid-template-columns: 1.05fr 1fr; gap: 35px; min-height: 405px; }
  #chart-value { font-size: 58px; }
  #chart-kicker { font-size: 7px; letter-spacing: 1.3px; }
  #chart-label { font-size: 11px; }
  .contract-inspector h3 { font-size: 25px; }
  .contract-intro { font-size: 13px; min-height: 92px; margin-top: 15px; }
  .portfolio-contract { gap: 6px 12px; padding-block: 15px; }
  .portfolio-contract h4 { font-size: 13px; }
  .portfolio-contract-allocation strong { font-size: 16px; }
  .portfolio-explore { padding: 25px; }
  .chart-legend { grid-template-columns: repeat(3, 1fr); gap: 6px 15px; }
  .legend-button { font-size: 11px; }
}
@media (max-width: 640px) {
  .exposure-card { margin-top: 20px; scroll-margin-top: 85px; }
  .portfolio-visual { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .donut-wrap { max-width: 330px; margin-inline: auto; }
  #chart-value { font-size: 52px; }
  #chart-kicker { font-size: 7px; }
  #chart-label { font-size: 11px; }
  .contract-inspector { max-width: 390px; width: 100%; margin-inline: auto; }
  #contract-kicker { font-size: 8px; letter-spacing: 1.5px; }
  .contract-inspector h3 { font-size: 26px; margin-top: 12px; }
  .contract-intro { font-size: 13px; min-height: 70px; margin-top: 13px; max-width: none; }
  .contract-cards { margin-top: 5px; }
  .portfolio-contract { padding-block: 16px; }
  .portfolio-contract h4 { font-size: 13px; }
  .portfolio-contract-allocation strong { font-size: 16px; }
  .portfolio-transport { font-size: 10px; gap: 12px; margin-top: 6px; }
  .portfolio-playback { gap: 14px; }
  .portfolio-playback button { font-size: 10px; }
  .portfolio-holdings { margin-top: 5px; }
  .portfolio-holdings > summary { padding-block: 16px; }
  .portfolio-example-note { font-size: 9px; }
  .portfolio-explore { padding: 21px 14px; }
  .profile-heading h2 { font-size: 17px; }
  .snapshot { font-size: 9px; }
  .profile-options { margin-top: 17px; gap: 0; }
  .profile-options button { font-size: 10px; padding: 9px 13px; }
  .chart-legend { gap: 5px; margin-top: 19px; }
  .legend-button { font-size: 9px; padding-inline: 3px; gap: 6px; }
  .legend-button > strong { font-size: 18px; }
  .portfolio-snapshots { gap: 3px; justify-content: space-between; margin-block: 18px; }
  .portfolio-snapshots button { font-size: 8px; padding: 7px 7px; gap: 5px; }
  .portfolio-snapshots button > span { font-size: 9px; }
}
@media (max-width: 360px) {
  .portfolio-snapshots button { padding-inline: 5px; font-size: 7px; gap: 4px; }
  .portfolio-snapshots button > span { font-size: 8px; }
  .profile-options button { font-size: 9px; padding-inline: 11px; }
  .contract-intro { min-height: 94px; }
  #chart-value { font-size: 47px; }
  .portfolio-transport { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .exposure-card * { animation: none !important; transition: none !important; } }
