.portfolio-workspace-heading { flex-wrap: wrap; gap: 14px; }
.portfolio-workspace-intro { flex: 1 1 620px; }
.portfolio-workspace-tabs { flex-wrap: nowrap; }
.portfolio-workspace-tabs button { padding-inline: 12px; font-size: 14px; }
.portfolio-calendar { color: #26344e; }
.pc-controls { padding: 22px 24px; display: grid; gap: 14px; border-bottom: 1px solid #e1e8f3; }
.pc-control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pc-segmented { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 3px; border: 1px solid #dbe4f4; border-radius: 12px; background: #f5f7fc; }
.pc-segmented button, .pc-currency, .pc-forecast-toggle { font: inherit; font-size: 13px; font-weight: 700; color: #485775; border: 0; background: none; border-radius: 9px; padding: 10px 14px; cursor: pointer; }
.pc-segmented button.is-active { background: #3569f6; color: white; box-shadow: 0 3px 8px #3569f622; }
.pc-segmented button:hover:not(.is-active) { background: #e9efff; }
.pc-currency { margin-left: auto; border: 1px solid #dbe4f4; background: white; }
.pc-forecast-toggle { display: inline-flex; align-items: center; gap: 7px; }
.pc-forecast-toggle span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; border: 1px solid #bcc9e1; }
.pc-forecast-toggle.is-active span { color: white; background: #3569f6; border-color: #3569f6; }
.pc-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #f8faff; border-bottom: 1px solid #e1e8f3; }
.pc-summary article { display: grid; gap: 9px; align-content: start; padding: 22px 24px; border-right: 1px solid #e1e8f3; }
.pc-summary article:last-child { border-right: 0; background: #f0f4ff; }
.pc-summary small { font-size: 13px; color: #5b6880; }
.pc-summary strong { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; }
.pc-summary strong span { display: block; }
.pc-summary.is-conditional { grid-template-columns: 1fr; }
.pc-notes, .pc-method { padding: 15px 24px; font-size: 12px; line-height: 1.7; }
.pc-notes p, .pc-method p { margin: 0; }
.pc-notes strong span { display: inline; margin-right: 7px; }
.pc-warning { color: #956019; }
.pc-note { padding: 0 24px; color: #5b6880; }
.pc-method { color: #5b6880; border-top: 1px solid #e1e8f3; background: #fafbfe; border-radius: 0 0 20px 20px; }
.pc-chart-panel { padding: 20px 24px 26px; border-top: 1px solid #e1e8f3; }
.pc-chart-panel > header, .pc-table-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.pc-chart-panel h3, .pc-table-panel h3 { font-size: 20px; margin: 0 0 5px; color: #132342; }
.pc-chart-panel header p, .pc-table-panel header p { margin: 0; font-size: 12px; color: #64728b; }
.pc-legend { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.pc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pc-legend i { display: inline-block; width: 18px; height: 12px; border-radius: 3px; background: var(--pc-color); }
.pc-legend i.is-forecast { background: repeating-linear-gradient(125deg,#3569f6 0 4px,#fff 4px 6px); border: 1px solid #3569f6; }
.pc-chart-scroll { overflow-x: auto; max-width: 100%; background: #fbfcff; border: 1px solid #e0e7f4; border-radius: 14px; scrollbar-color: #bcc9df #edf1fa; }
.pc-chart-scroll svg { display: block; width: 100%; height: auto; stroke: none; stroke-width: 0; }
.pc-chart-grid line { stroke: #e0e7f2; stroke-width: 1; }
.pc-chart-grid text, .pc-chart-month-label { fill: #687994; font: 11px Inter, sans-serif; }
.pc-chart-amount { fill: #354664; font: 700 11px Inter, sans-serif; }
.pc-chart-month { cursor: pointer; outline: none; }
.pc-chart-hit { fill: transparent; }
.pc-chart-month:hover .pc-chart-hit, .pc-chart-month:focus-visible .pc-chart-hit { fill: #3569f609; }
.pc-chart-month.is-selected .pc-chart-hit { fill: #3569f610; stroke: #3569f655; stroke-width: 1; }
.pc-table-panel { border-top: 1px solid #e0e7f4; }
.pc-table-panel > header { padding: 20px 24px; margin: 0; }
.pc-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
.pc-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 13px; }
.pc-table thead { color: #fff; background: linear-gradient(105deg,#438de9,#4930eb); }
.pc-table th { padding: 16px 18px; text-align: left; white-space: nowrap; font-size: 13px; font-weight: 700; }
.pc-table th button { border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.pc-table th:nth-last-child(-n+3) { text-align: right; }
.pc-table td { padding: 14px 18px; border-bottom: 1px solid #e1e8f3; vertical-align: middle; }
.pc-table tbody tr:hover { background: #f7faff; }
.pc-table td:first-child { white-space: nowrap; }
.pc-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-table small { display: block; font-size: 10px; color: #687994; margin-top: 4px; }
.pc-instrument { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 0; border: 0; background: none; color: #26344e; font: inherit; text-align: left; cursor: pointer; }
.pc-instrument small { margin: 0; font-size: 11px; }
.pc-event { font-size: 11px; font-weight: 700; border-radius: 7px; padding: 5px 8px; display: inline-block; background: #edf2ff; color: #3462cc; white-space: nowrap; }
.pc-event--amortization { background: #eaf7f1; color: #348069; }
.pc-event--maturity, .pc-event--put { background: #fff4e6; color: #a06c2c; }
.pc-event--call { background: #f3edff; color: #7548c1; }
.pc-table .pc-forecast-label { color: #3569f6; }
.pc-more { display: flex; justify-content: center; padding: 18px; }
.pc-loading { padding: 52px 24px; text-align: center; }
@media (max-width: 700px) {
  .portfolio-workspace-intro { width: 100%; flex-basis: 100%; }
  .portfolio-workspace-tabs { width: 100%; overflow-x: auto; }
  .portfolio-workspace-tabs button { flex: 0 0 auto; white-space: nowrap; padding-inline: 10px; font-size: 12px; }
  .pc-controls, .pc-chart-panel, .pc-table-panel > header, .pc-notes, .pc-method { padding: 16px; }
  .pc-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pc-summary article { padding: 17px 16px; border-bottom: 1px solid #e1e8f3; }
  .pc-summary strong { font-size: 19px; }
  .pc-currency { margin-left: 0; }
  .pc-types { width: 100%; }
  .pc-segmented button { padding: 9px 11px; font-size: 12px; }
  .pc-legend { gap: 9px 12px; }
}
