.risk-heading-controls { display: flex; align-items: center; gap: 10px; }
.risk-toggle { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: #eaf0f6; }
.risk-toggle-btn { padding: 5px 11px; border: 0; border-radius: 7px; background: transparent; color: #52647a; font: 700 .68rem Inter, sans-serif; cursor: pointer; }
.risk-toggle-btn.active { background: #fff; color: var(--pca-navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.risk-chart { width: 100%; min-width: 0; min-height: 360px; }
.risk-side-chart { width: 100%; min-width: 0; height: 430px; }
.risk-style-table td:nth-child(2) { color: #52667d; white-space: normal; }
.risk-driver { white-space: nowrap; }
.risk-chart-note { padding: 0 16px 4px; color: #64748b; font-size: .66rem; line-height: 1.45; }
.risk-search { width: 260px; max-width: 46vw; padding: 6px 10px; border: 1px solid #ccd8e5; border-radius: 8px; color: var(--pca-ink); font: 500 .7rem Inter, sans-serif; }
.risk-table-scroll { max-height: 640px; }
.risk-table th[data-risk-sort] { cursor: pointer; user-select: none; }
.risk-table th[data-risk-sort].sorted::after { content: " ▾"; color: var(--pca-navy); }
.risk-table th[data-risk-sort].sorted.ascending::after { content: " ▴"; }
.risk-name { display: block; color: var(--pca-ink); font-weight: 650; }
.risk-ticker { display: block; color: #8291a3; font-size: .58rem; }
.risk-side { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: .54rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.risk-side--long { background: #e6f4f1; color: #0f766e; }
.risk-side--short { background: #e8eefb; color: #2f4f9c; }
.risk-flag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #fff7e6; color: #92400e; font-size: .54rem; font-weight: 700; }
.risk-share-cell { font-weight: 750; color: var(--pca-ink); }
.risk-negative { color: var(--pca-red); }
.risk-range { color: #8291a3; white-space: nowrap; }
@media (max-width: 800px) {
    .risk-search { width: 150px; }
}
.risk-select { max-width: 280px; padding: 5px 8px; border: 1px solid #ccd8e5; border-radius: 8px; background: #fff; color: var(--pca-ink); font: 600 .68rem Inter, sans-serif; }
.risk-select[hidden] { display: none; }
.risk-toggle[hidden] { display: none; }
.risk-book-chart { width: 100%; min-width: 0; height: 320px; }
.risk-heading-controls { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
    .pca-card-heading:has(.risk-heading-controls) { flex-direction: column; align-items: stretch; }
    .risk-heading-controls { justify-content: flex-start; }
    .risk-select { max-width: 100%; }
}
