.afm-performance {
  --afm-navy-950: #071426;
  --afm-navy-900: #14243f;
  --afm-navy-800: #1b2c4e;
  --afm-gold-700: #8a6428;
  --afm-gold-600: #b48a52;
  --afm-gold-500: #c9a06a;
  --afm-gold-bright: #f1c75b;
  --afm-gold-300: #f5d77f;
  --afm-gold-soft: #f4ead4;
  --afm-gold-text: #805b10;
  --afm-ink: #14243f;
  --afm-muted: #59677b;
  --afm-inverse: #fbfaf7;
  --afm-muted-on-dark: #c8cfda;
  --afm-line: #d8d0c3;
  --afm-surface: #fbfaf7;
  --afm-raised: #fff;
  --afm-surface-muted: #eee9df;
  --afm-page: #f3eee5;
  --afm-chart-green: #63d13f;
  --afm-green: #08773d;
  --afm-green-bright: #58c980;
  --afm-green-soft: #eaf7f2;
  --afm-red: #b73542;
  --afm-red-on-dark: #ff7a82;
  --afm-red-soft: #fff0f1;
  --afm-neutral: #64748b;
  --afm-benchmark-dark: #78a9d8;
  --afm-benchmark-light: #2d6699;
  --afm-control-line: #8b8172;
  --afm-focus-light: #8a6518;
  --afm-focus-dark: #f5d77f;
  --afm-performance-value-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --afm-performance-value-size: clamp(18px, 2vw, 22px);
  width: 100%;
  padding: 0;
  color: var(--afm-ink);
  background: var(--afm-page);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.afm-performance[hidden], .afm-performance .is-hidden, .afm-performance [hidden] { display: none !important; }
.afm-performance *, .afm-performance *::before, .afm-performance *::after { box-sizing: border-box; }
.afm-performance button, .afm-performance select, .afm-performance input { font: inherit; }
.afm-performance button { color: inherit; }
.afm-performance a { text-decoration: none; }
.afm-performance .history-section { position: relative; padding-top: 20px; }
.afm-performance .history-intro { position: relative; color: var(--afm-inverse); background: linear-gradient(104deg, var(--afm-navy-900) 0%, var(--afm-navy-800) 100%); }
.afm-performance .history-intro::before { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: linear-gradient(90deg, var(--afm-gold-700), var(--afm-gold-500) 48%, var(--afm-gold-300) 72%, var(--afm-gold-700)); pointer-events: none; }
.afm-performance .history-intro-shell { width: 100%; min-height: 92px; margin: 0; padding: 17px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.afm-performance .history-intro-shell > div { min-width: 0; }
.afm-performance .history-intro h1 { margin: 0; color: var(--afm-inverse); font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.5vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.afm-performance .history-intro p { margin: 6px 0 0; color: var(--afm-muted-on-dark); font-size: 12px; line-height: 1.4; }
.afm-performance .history-content-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 20px; background: var(--afm-surface); box-shadow: 0 14px 38px rgba(20, 36, 63, .08); }
.afm-performance .history-panel { overflow: hidden; border: 0; border-radius: 0; background: var(--afm-surface); box-shadow: none; }
.afm-performance .history-controls { position: relative; padding: 22px 20px 23px; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 18px; border-top: 0; border-bottom: 1px solid var(--afm-gold-500); background: linear-gradient(135deg, var(--afm-surface) 0%, var(--afm-page) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 20px rgba(20, 36, 63, .045); }
.afm-performance .control-group { display: grid; gap: 6px; }
.afm-performance .control-label { color: var(--afm-gold-700); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.afm-performance .investment-control { position: relative; flex: 1 1 270px; min-width: 250px; }
.afm-performance .investment-input-row { display: flex; gap: 8px; }
.afm-performance .investment-input-row input { min-width: 0; height: 40px; flex: 1; padding: 0 12px; border: 1px solid var(--afm-control-line); border-radius: 9px; outline: none; color: var(--afm-navy-900); background: var(--afm-raised); box-shadow: 0 2px 8px rgba(20, 36, 63, .055); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.afm-performance .investment-input-row input:focus { border-color: var(--afm-focus-light); outline: 3px solid var(--afm-focus-light); outline-offset: 2px; box-shadow: none; }
.afm-performance .investment-input-row input[aria-invalid="true"] { border-color: var(--afm-red); box-shadow: 0 0 0 3px rgba(183, 53, 66, .14); }
.afm-performance .apply-button { height: 40px; flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--afm-gold-500); border-radius: 9px; color: var(--afm-inverse); background: linear-gradient(135deg, var(--afm-navy-900), var(--afm-navy-800)); box-shadow: 0 6px 14px rgba(20, 36, 63, .15); font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.afm-performance .apply-button:hover { transform: translateY(-1px); border-color: var(--afm-gold-bright); box-shadow: 0 8px 18px rgba(20, 36, 63, .18); }
.afm-performance .apply-button:focus-visible { outline: 3px solid var(--afm-focus-light); outline-offset: 2px; }
.afm-performance .investment-error { position: absolute; top: calc(100% + 3px); left: 0; z-index: 1; color: var(--afm-red); font-size: 9px; font-weight: 650; white-space: nowrap; }
.afm-performance .history-portfolio-filter { flex: 1 1 232px; min-width: 232px; }
.afm-performance .period-control { flex: 0 0 166px; }
.afm-performance .history-select-wrap { position: relative; display: block; }
.afm-performance .history-select-wrap select, .afm-performance .date-range-control input { width: 100%; height: 40px; appearance: none; padding: 0 32px 0 11px; border: 1px solid var(--afm-control-line); border-radius: 9px; outline: none; color: var(--afm-navy-900); background: var(--afm-raised); box-shadow: 0 2px 8px rgba(20, 36, 63, .055); color-scheme: light; font-size: 11px; font-weight: 650; }
.afm-performance .history-select-wrap svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #748095; pointer-events: none; }
.afm-performance .history-select-wrap select:focus, .afm-performance .date-range-control input:focus { border-color: var(--afm-focus-light); outline: 3px solid var(--afm-focus-light); outline-offset: 2px; box-shadow: none; }
.afm-performance .date-range-control { flex: 1 1 310px; display: flex; align-items: flex-end; gap: 8px; }
.afm-performance .date-range-control label { flex: 1; display: grid; gap: 6px; }
.afm-performance .date-range-control input { min-width: 0; padding-right: 8px; }
.afm-performance .date-separator { height: 40px; display: flex; align-items: center; color: var(--afm-muted); }
.afm-performance .option-control { flex: 0 0 auto; min-height: 40px; display: grid; align-content: center; gap: 5px; }
.afm-performance .option-control label { display: flex; align-items: center; gap: 7px; color: #4f5d72; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.afm-performance .option-control input { width: 15px; height: 15px; margin: 0; accent-color: var(--afm-navy-800); }
.afm-performance .option-control input:focus-visible { outline: 3px solid var(--afm-focus-light); outline-offset: 2px; }
.afm-performance .performance-history-controls { flex-wrap: nowrap; gap: 14px 10px; }
.afm-performance .performance-history-controls .control-label { font-size: 12px; }
.afm-performance .performance-history-controls .investment-control { flex: 1 1 250px; min-width: 250px; }
.afm-performance .performance-history-controls .investment-input-row input { font-size: 14px; }
.afm-performance .performance-history-controls .apply-button { font-size: 13px; }
.afm-performance .performance-history-controls .investment-error { font-size: 11px; }
.afm-performance .performance-history-controls .history-portfolio-filter { flex: 1 1 190px; min-width: 190px; }
.afm-performance .performance-history-controls .period-control { flex: 0 0 160px; }
.afm-performance .performance-history-controls .history-select-wrap select,
.afm-performance .performance-history-controls .date-range-control input { font-size: 14px; }
.afm-performance .performance-history-controls .date-range-control { min-width: 210px; flex: 1 1 210px; }
.afm-performance .performance-history-controls .option-control { flex: 0 0 224px; }
.afm-performance .performance-history-controls .option-control label { font-size: 13px; }
.afm-performance .market-fund-legend-control { position: relative; }
.afm-performance .market-fund-legend-control input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; opacity: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.afm-performance .market-fund-switch { position: relative; width: 31px; height: 17px; flex: 0 0 31px; border: 1px solid #5f6d82; border-radius: 999px; background: #748095; box-shadow: inset 0 1px 2px rgba(20, 36, 63, .12); transition: border-color .18s ease, background .18s ease; }
.afm-performance .market-fund-switch i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 36, 63, .28); transition: transform .18s ease; }
.afm-performance .market-fund-legend-control input:checked + .market-fund-switch { border-color: var(--afm-navy-800); background: var(--afm-navy-800); }
.afm-performance .market-fund-legend-control input:checked + .market-fund-switch i { transform: translateX(14px); }
.afm-performance .market-fund-legend-control input:focus-visible + .market-fund-switch { outline: 3px solid var(--afm-focus-light); outline-offset: 2px; }
.afm-performance .history-select-wrap select:disabled { cursor: not-allowed; opacity: .7; background: var(--afm-surface-muted); }
.afm-performance .history-performance-summary { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(390px, .96fr); border-bottom: 1px solid var(--afm-line); background: #fff; }
.afm-performance .history-stat-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: #fff; }
.afm-performance .history-stat-grid > div { position: relative; min-width: 0; min-height: 94px; padding: 18px 20px; }
.afm-performance .history-stat-grid > div:nth-child(odd) { border-right: 1px solid var(--afm-line); }
.afm-performance .history-stat-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--afm-line); }
.afm-performance .history-stat-grid span { display: block; margin-bottom: 7px; color: #788497; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.afm-performance .history-stat-grid strong { display: block; overflow: hidden; color: var(--afm-navy-900); font-family: var(--afm-performance-value-font); font-size: var(--afm-performance-value-size); line-height: 1.2; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.afm-performance .history-stat-grid small { display: block; margin-top: 5px; overflow: hidden; color: #8a95a5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.afm-performance .history-stat-grid .history-positive { color: var(--afm-green); }
.afm-performance .history-stat-grid .history-negative { color: var(--afm-red); }
.afm-performance .history-summary-card-performance > div { container-type: inline-size; }
.afm-performance .history-return-values { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 12px; }
.afm-performance .history-return-values strong { min-width: 0; max-width: 100%; flex: 0 0 auto; overflow: visible; text-overflow: clip; }
.afm-performance .history-return-separator { width: 1px; height: 23px; flex: 0 0 1px; background: #d5dce5; }
@container (max-width: 279px) {
  .afm-performance .history-return-values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .afm-performance .history-return-separator { display: none; }
  .afm-performance .history-return-values strong { overflow-wrap: anywhere; white-space: normal; font-size: clamp(14px, 8cqi, 22px); }
}
.afm-performance .history-contribution-panel { padding: 14px; display: flex; border-left: 1px solid var(--afm-line); background: var(--afm-surface); }
.afm-performance .overall-contribution-card { width: 100%; min-height: 190px; margin: 0 auto; padding: 24px 22px; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 17px; background: radial-gradient(circle at 50% 52%, var(--afm-raised) 0%, var(--afm-surface) 66%, var(--afm-gold-soft) 100%); box-shadow: 0 10px 28px rgba(20, 36, 63, .07); text-align: center; }
.afm-performance .overall-contribution-title { color: var(--afm-navy-900); font-size: 13px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.afm-performance .overall-contribution-period { margin-top: 4px; color: #637187; font-size: 11px; }
.afm-performance .overall-contribution-card strong { margin-top: 7px; color: var(--afm-ink); font-size: clamp(54px, 6vw, 68px); font-weight: 850; line-height: .98; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.afm-performance .overall-contribution-card b { margin-top: 4px; color: var(--afm-ink); font-size: clamp(24px, 2.7vw, 29px); line-height: 1.05; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.afm-performance .overall-contribution-card.positive strong, .afm-performance .overall-contribution-card.positive b { color: var(--afm-green); }
.afm-performance .overall-contribution-card.negative strong, .afm-performance .overall-contribution-card.negative b { color: var(--afm-red); }
.afm-performance .history-chart { min-width: 0; margin: 18px; overflow: hidden; border: 0; border-radius: 0; background: #fff; }
.afm-performance .chart-title-row { min-height: 94px; padding: 22px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.afm-performance .chart-heading-copy { display: grid; gap: 2px; }
.afm-performance .chart-eyebrow { color: #d1a746; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.afm-performance .chart-heading-copy strong { color: var(--afm-navy-900); font-family: "Playfair Display", Georgia, serif; font-size: 17px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .015em; }
.afm-performance .chart-heading-copy small { color: var(--afm-muted); font-size: 11px; line-height: 1.35; }
.afm-performance #history-chart-subtitle { font-size: 13px; }
.afm-performance .chart-legend { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; }
.afm-performance .chart-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--afm-muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.afm-performance #performance-chart-legend span { font-size: 13px; }
.afm-performance .chart-legend i { width: 27px; height: 3px; border-radius: 99px; }
.afm-performance .chart-comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.afm-performance .chart-comparison-grid.is-comparing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 8px; }
.afm-performance .chart-pane { min-width: 0; }
.afm-performance .chart-pane[hidden] { display: none; }
.afm-performance .chart-pane-heading { display: none; min-height: 29px; padding: 0 8px 5px; align-items: baseline; gap: 7px; color: #cbd5e1; font-size: 9px; line-height: 1.2; }
.afm-performance .chart-pane-heading strong { color: #f7f6f2; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.afm-performance .chart-pane-heading span { color: #aeb8c6; font-weight: 600; }
.afm-performance .chart-comparison-grid.is-comparing .chart-pane-heading { display: flex; }
.afm-performance .chart-stage { position: relative; width: 100%; min-width: 0; height: clamp(300px, 38vw, 390px); min-height: 0; padding: 0 8px; overflow: hidden; }
.afm-performance .chart-comparison-grid.is-comparing .chart-stage { height: clamp(300px, 32vw, 370px); padding: 0; }
.afm-performance .chart-stage canvas { display: block; width: 100% !important; max-width: 100%; min-width: 0 !important; height: 100% !important; }
.afm-performance .chart-stage:focus-visible, .afm-performance .table-scroll:focus-visible, .afm-performance .annual-table-scroll:focus-visible { outline: 3px solid var(--afm-focus-light); outline-offset: 2px; }
.afm-performance .chart-caption { padding: 0 24px 18px; }
.afm-performance .chart-caption > p { margin: -4px 0 15px; padding-top: 20px; color: #42526a; font-size: 13px; font-weight: 600; text-align: center; }
.afm-performance .chart-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8290a2; font-size: 10px; }
.afm-performance .annual-performance-card { margin: 18px; overflow: hidden; border: 1px solid #d9e0e8; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(22, 38, 68, .045); }
.afm-performance .annual-performance-heading { min-height: 56px; padding: 12px 22px; display: grid; align-content: center; border-bottom: 1px solid #e5eaf0; }
.afm-performance .annual-performance-heading > span { color: #c89221; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.afm-performance .annual-title-row { margin-top: 4px; display: flex; align-items: baseline; gap: 5px; }
.afm-performance .annual-performance-heading h3, .afm-performance .annual-title-row h3 { margin: 0; color: var(--afm-navy-900); font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.afm-performance .annual-table-scroll, .afm-performance .table-scroll { overflow-x: auto; }
.afm-performance table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.afm-performance th, .afm-performance td { padding: 11px 12px; text-align: right; white-space: nowrap; }
.afm-performance th:first-child, .afm-performance td:first-child { padding-left: 20px; text-align: left; }
.afm-performance th:last-child, .afm-performance td:last-child { padding-right: 20px; }
.afm-performance thead { background: #f5f7fa; }
.afm-performance thead th { color: #536177; font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.afm-performance thead tr:first-child th { padding-bottom: 4px; }
.afm-performance thead .subhead th { padding-top: 0; color: var(--afm-muted); font-size: 9px; }
.afm-performance tbody td, .afm-performance tbody th { border-top: 1px solid #edf0f4; color: #27364d; }
.afm-performance tbody tr { transition: background .15s ease; }
.afm-performance tbody tr:not(.total-row):hover { background: #fbf8ee; }
.afm-performance tbody td:first-child strong { color: #305b93; font-weight: 750; }
.afm-performance .total-row { background: #f1f5f8; font-weight: 750; }
.afm-performance .total-row td { border-top: 2px solid #c9d1dc; color: var(--afm-navy-900); }
.afm-performance .annual-performance-table { min-width: 900px; table-layout: fixed; font-size: 11px; }
.afm-performance .annual-performance-table th, .afm-performance .annual-performance-table td { height: 43px; padding: 11px 9px; border-right: 1px solid #e7ebf0; text-align: center; }
.afm-performance .annual-performance-table th:last-child, .afm-performance .annual-performance-table td:last-child { border-right: 0; }
.afm-performance .annual-performance-table thead tr:first-child th { padding: 13px 9px; }
.afm-performance .annual-performance-table thead th { color: #526784; background: #f5f7fa; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.afm-performance .annual-performance-table th:first-child { width: 215px; padding-left: 16px; text-align: left; }
.afm-performance .annual-performance-table tbody th { color: #0e3159; background: #fff; font-size: 12px; font-weight: 800; }
.afm-performance .annual-performance-table tbody td { color: var(--afm-navy-900); font-weight: 750; }
.afm-performance .annual-performance-table .positive { color: var(--afm-green); }
.afm-performance .annual-performance-table .negative { color: var(--afm-red); }
.afm-performance .annual-performance-table .benchmark { color: var(--afm-benchmark-light); }
.afm-performance .annual-performance-table .since-inception { background: var(--afm-gold-soft); font-weight: 850; }
.afm-performance .annual-performance-note { margin: 0; padding: 14px 22px 17px; color: #74849a; font-size: 9px; }
.afm-performance .history-table-wrap { margin: 18px; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 15px; }
.afm-performance .history-table { min-width: 1000px; }
.afm-performance .history-contribution-pct { display: block; margin-top: 4px; font-size: inherit; font-weight: 800; line-height: 1.1; }
.afm-performance .table-card { overflow: hidden; border: 1px solid var(--afm-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(22, 38, 68, .055); }
.afm-performance .table-card-heading { min-height: 76px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--afm-line); }
.afm-performance .table-card-heading h3 { margin: 0; color: var(--afm-navy-900); font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.afm-performance .table-card-heading p { margin: 4px 0 0; color: var(--afm-muted); font-size: 11px; }
.afm-performance .table-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.afm-performance .details-toggle { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #c3a047; border-radius: 9px; color: #705314; background: #fffaf0; font-size: 10px; font-weight: 750; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.afm-performance .details-toggle:hover { transform: translateY(-1px); border-color: #a57e24; box-shadow: 0 7px 16px rgba(20, 36, 63, .1); }
.afm-performance .details-toggle svg { transition: transform .18s ease; }
.afm-performance .details-toggle.expanded svg { transform: rotate(180deg); }
.afm-performance .tone-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.afm-performance .positive, .afm-performance .tone-value.positive, .afm-performance .history-contribution-pct.positive { color: var(--afm-green); font-weight: 700; }
.afm-performance .negative, .afm-performance .tone-value.negative, .afm-performance .history-contribution-pct.negative { color: var(--afm-red); font-weight: 700; }
.afm-performance .neutral, .afm-performance .tone-value.neutral, .afm-performance .history-contribution-pct.neutral { color: #4b596e; font-weight: 650; }
.afm-performance .history-stat-grid strong.history-benchmark { color: var(--afm-benchmark-light); font-weight: 700; }
.afm-performance .following-section { position: relative; margin-top: 78px; }
.afm-performance .performance-lower-shell { margin: 18px; }
.afm-performance .performance-lower-shell > .following-section { width: 100%; margin-top: 0; }
.afm-performance .today-content-shell { overflow: hidden; border: 1px solid var(--afm-line); border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(22, 38, 68, .06); }
.afm-performance .section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 22px; }
.afm-performance .today-section-intro { position: relative; width: 100%; max-width: none; min-height: 92px; margin-bottom: 0; padding: 17px 24px 18px; align-items: center; color: var(--afm-inverse); background: linear-gradient(104deg, var(--afm-navy-900) 0%, var(--afm-navy-800) 100%); }
.afm-performance .today-section-intro::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: linear-gradient(90deg, var(--afm-gold-700), var(--afm-gold-500) 48%, var(--afm-gold-300) 72%, var(--afm-gold-700)); pointer-events: none; }
.afm-performance .section-intro h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; color: var(--afm-navy-900); font-size: clamp(29px, 3vw, 39px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.afm-performance .section-intro p { margin: 7px 0 0; color: var(--afm-muted); font-size: 14px; }
.afm-performance .today-section-intro h2 { color: var(--afm-inverse); font-size: clamp(27px, 2.7vw, 32px); }
.afm-performance .today-section-intro p { color: var(--afm-muted-on-dark); }
.afm-performance .as-of-block { min-width: 230px; display: grid; justify-items: end; gap: 3px; }
.afm-performance .as-of-block > span { display: inline-flex; align-items: center; gap: 5px; color: var(--afm-muted-on-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.afm-performance .as-of-block > span b { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.afm-performance .as-of-block > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(200, 207, 218, .12); }
.afm-performance .as-of-block strong { color: var(--afm-inverse); font-size: 13px; }
.afm-performance .as-of-block small { color: var(--afm-muted-on-dark); font-size: 11px; }
.afm-performance #performance-refresh-status { font-size: 13px; }
.afm-performance .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.afm-performance .today-content-shell > .metric-grid { margin: 0; padding: 16px; background: #fff; }
.afm-performance .today-content-shell > .table-card { margin: 0 16px 16px; border-radius: 15px; }
.afm-performance .metric-card { position: relative; min-height: 144px; padding: 20px; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 17px; background: var(--afm-surface); box-shadow: 0 10px 30px rgba(22, 38, 68, .055); }
.afm-performance .metric-card::after { content: ""; position: absolute; width: 78px; height: 78px; top: -33px; right: -27px; border-radius: 50%; background: rgba(24, 45, 79, .045); }
.afm-performance .metric-card.positive { border-top-color: rgba(8, 119, 61, .55); }
.afm-performance .metric-card.negative { border-top-color: rgba(183, 53, 66, .5); }
.afm-performance .metric-topline { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #647188; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.afm-performance .metric-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: #86651e; background: #fcf6e8; }
.afm-performance .metric-card.positive .metric-icon { color: var(--afm-green); background: var(--afm-green-soft); }
.afm-performance .metric-card.negative .metric-icon { color: var(--afm-red); background: var(--afm-red-soft); }
.afm-performance .metric-value-line { display: flex; align-items: flex-start; min-width: 0; }
.afm-performance .metric-value-line.has-secondary { justify-content: space-between; gap: 12px; }
.afm-performance .metric-main-value, .afm-performance .metric-secondary-value strong { display: block; color: var(--afm-navy-900); font-family: var(--afm-performance-value-font); font-size: var(--afm-performance-value-size); line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.afm-performance .metric-card.positive .metric-main-value { color: var(--afm-green); }
.afm-performance .metric-card.negative .metric-main-value { color: var(--afm-red); }
.afm-performance .metric-secondary-value { min-width: 0; margin-left: auto; padding-left: 13px; border-left: 1px solid var(--afm-line); }
.afm-performance .metric-secondary-value span { display: block; max-width: 96px; margin-top: 6px; color: var(--afm-muted); font-size: 9px; font-weight: 600; line-height: 1.25; }
.afm-performance .metric-secondary-value.positive strong { color: var(--afm-green); }
.afm-performance .metric-secondary-value.negative strong { color: var(--afm-red); }
.afm-performance .metric-secondary-value.neutral strong { color: var(--afm-navy-900); }
.afm-performance .metric-meta { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--afm-muted); font-size: 11px; }
.afm-performance .metric-meta.metric-meta-12 { font-size: 15px; }
.afm-performance .metric-meta small { padding: 3px 6px; border-radius: 5px; background: #f1f4f8; color: #748196; font-size: 9px; font-weight: 700; }
.afm-performance .principles-section { position: relative; margin-top: 64px; padding-top: 54px; }
.afm-performance .principles-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #ccd4df 14%, #ccd4df 86%, transparent); }
.afm-performance .principles-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; }
.afm-performance .principles-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d9e1ea; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(22, 38, 68, .05); }
.afm-performance .principle-item { min-width: 0; min-height: 96px; padding: 17px 30px; display: flex; align-items: center; gap: 14px; }
.afm-performance .principle-item:nth-child(odd) { border-right: 1px solid #e3e8ef; }
.afm-performance .principle-item:nth-child(-n+2) { border-bottom: 1px solid #e3e8ef; }
.afm-performance .principle-icon { width: 52px; height: 52px; flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #183a64, #0f2d52); box-shadow: 0 8px 15px rgba(17, 47, 82, .18); }
.afm-performance .principle-item h3 { margin: 0; color: #008b47; font-size: 13px; font-weight: 850; line-height: 1.2; letter-spacing: .055em; text-transform: uppercase; }
.afm-performance .principle-item p { margin: 4px 0 0; color: #14243f; font-size: 11px; line-height: 1.35; }
.afm-performance .principles-quote { min-width: 0; min-height: 194px; padding: 24px 24px 23px 21px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-content: start; border: 1px solid #b9e2cb; border-radius: 16px; background: linear-gradient(135deg, #f5fcf8, #edf9f2); box-shadow: 0 10px 28px rgba(8, 124, 91, .045); }
.afm-performance .quote-mark { margin-top: -4px; color: var(--afm-green-bright); font-family: Georgia, serif; font-size: 52px; font-weight: 800; line-height: .9; }
.afm-performance .principles-quote h3 { margin: 11px 0 21px; color: var(--afm-navy-900); font-size: 13px; font-weight: 850; line-height: 1.35; }
.afm-performance .principles-quote p { margin: 0; color: #14243f; font-size: 12px; line-height: 1.85; }
.afm-performance .technology-credit { min-height: 35px; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #536987; font-size: 9px; text-align: center; }
.afm-performance .info-swiss-flag { position: relative; flex: 0 0 auto; width: 27px; height: 27px; background: #e02d3c; border-radius: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.afm-performance .info-swiss-flag b { position: absolute; display: block; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.afm-performance .info-swiss-flag b:first-child { width: 16px; height: 5px; }
.afm-performance .info-swiss-flag b:last-child { width: 5px; height: 16px; }

@media (max-width: 1040px) {
  .afm-performance .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afm-performance .history-performance-summary { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); }
  .afm-performance .principle-item { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 959px) {
  .afm-performance .performance-history-controls { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  .afm-performance .chart-comparison-grid.is-comparing { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 900px) {
  .afm-performance .history-performance-summary { grid-template-columns: 1fr; }
  .afm-performance .history-contribution-panel { padding: 12px; border-top: 1px solid var(--afm-line); border-left: 0; }
}
@media (max-width: 760px) {
  .afm-performance .history-content-shell { width: min(100% - 24px, 620px); }
  .afm-performance .history-portfolio-filter, .afm-performance .period-control, .afm-performance .date-range-control { flex-basis: 100%; }
  .afm-performance .performance-history-controls .history-portfolio-filter,
  .afm-performance .performance-history-controls .period-control,
  .afm-performance .performance-history-controls .date-range-control { flex-basis: 100%; }
  .afm-performance .chart-title-row { display: grid; align-items: flex-start; }
  .afm-performance .chart-legend { justify-content: flex-start; }
  .afm-performance .chart-stage { height: clamp(280px, 72vw, 340px); overflow: hidden; }
  .afm-performance .chart-comparison-grid.is-comparing .chart-stage { height: clamp(280px, 72vw, 340px); }
  .afm-performance .chart-stage canvas { min-width: 0 !important; }
  .afm-performance .chart-note { display: grid; gap: 4px; }
  .afm-performance .following-section { margin-top: 60px; }
  .afm-performance .principles-layout { grid-template-columns: 1fr; }
  .afm-performance .principles-quote { min-height: 176px; }
}
@media (max-width: 560px) {
  .afm-performance .history-intro-shell { padding-right: 14px; padding-left: 14px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .afm-performance .history-intro h1 { font-size: 24px; }
  .afm-performance .history-intro p { font-size: 11px; }
  .afm-performance .history-controls { padding: 18px 14px 20px; gap: 14px; }
  .afm-performance .history-portfolio-filter { min-width: 0; }
  .afm-performance .date-range-control { display: grid; grid-template-columns: 1fr; }
  .afm-performance .date-separator { display: none; }
  .afm-performance .option-control { width: 100%; }
  .afm-performance .performance-history-controls .investment-control,
  .afm-performance .performance-history-controls .history-portfolio-filter,
  .afm-performance .performance-history-controls .date-range-control { min-width: 0; }
  .afm-performance .performance-history-controls .investment-control,
  .afm-performance .performance-history-controls .option-control { flex-basis: 100%; }
  .afm-performance .performance-history-controls .date-range-control { display: grid; grid-template-columns: 1fr; }
  .afm-performance .history-stat-grid > div { padding: 16px 14px; }
  .afm-performance .overall-contribution-card { min-height: 176px; padding: 21px 16px; }
  .afm-performance .history-chart, .afm-performance .history-table-wrap, .afm-performance .annual-performance-card { margin: 12px; }
  .afm-performance .performance-lower-shell { margin: 12px; }
  .afm-performance .section-intro { display: block; }
  .afm-performance .today-section-intro { padding-right: 16px; padding-left: 16px; }
  .afm-performance .as-of-block { min-width: auto; justify-items: start; margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(248, 232, 183, .22); }
  .afm-performance .metric-grid { grid-template-columns: 1fr; }
  .afm-performance .today-content-shell > .metric-grid { padding: 12px; }
  .afm-performance .today-content-shell > .table-card { margin: 0 12px 12px; }
  .afm-performance .metric-card { min-height: 132px; }
  .afm-performance .table-card-heading { align-items: flex-start; }
  .afm-performance .principles-card { grid-template-columns: 1fr; }
  .afm-performance .principle-item { min-height: 88px; padding: 16px 18px; border-right: 0 !important; border-bottom: 1px solid #e3e8ef; }
  .afm-performance .principle-item:last-child { border-bottom: 0; }
  .afm-performance .principles-quote { padding: 21px 18px; }
  .afm-performance .principles-quote h3 { margin-top: 9px; margin-bottom: 14px; }
  .afm-performance .technology-credit { padding: 6px 10px 0; flex-wrap: wrap; line-height: 1.4; }
}
@media (max-width: 500px) {
  .afm-performance .history-stat-grid { grid-template-columns: 1fr; }
  .afm-performance .history-stat-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--afm-line); }
  .afm-performance .history-stat-grid > div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .afm-performance *, .afm-performance *::before, .afm-performance *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* AFM Swiss Institutional hybrid theme ----------------------------------
   Navy frames the experience, warm ivory carries dense information and
   gold identifies AFM. Green and red are reserved for financial outcomes. */
.afm-performance.afm-performance-dark {
  --afm-dark-black: var(--afm-navy-950);
  --afm-dark-navy: var(--afm-navy-900);
  --afm-dark-gold: var(--afm-gold-bright);
  --afm-dark-ivory: var(--afm-page);
  color: var(--afm-ink);
  background: var(--afm-page);
}
.afm-performance .history-content-shell {
  border-color: var(--afm-line);
  background: var(--afm-surface);
  box-shadow: 0 16px 40px rgba(20, 36, 63, .12);
}
.afm-performance .history-intro {
  color: var(--afm-inverse);
  background: linear-gradient(104deg, var(--afm-navy-900) 0%, var(--afm-navy-800) 100%);
}
.afm-performance .history-intro::before,
.afm-performance .today-section-intro::after {
  background: linear-gradient(90deg, var(--afm-gold-700), var(--afm-gold-500) 46%, var(--afm-gold-300) 72%, var(--afm-gold-700));
}
.afm-performance .history-intro h1,
.afm-performance .today-section-intro h2 {
  color: var(--afm-inverse);
}
.afm-performance .history-intro p,
.afm-performance .today-section-intro p {
  color: var(--afm-muted-on-dark);
}
.afm-performance .history-panel {
  margin-bottom: 20px;
  background: var(--afm-page);
}
/* The Performance control rail remains a calm light working surface. */

.afm-performance .history-performance-summary {
  gap: 14px;
  padding: 14px;
  border-bottom: 0;
  background: var(--afm-page);
}
.afm-performance .history-stat-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.afm-performance .history-stat-grid > .history-summary-card {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(94px, auto));
  overflow: hidden;
  border: 1px solid var(--afm-line) !important;
  border-radius: 14px;
  background: var(--afm-surface);
  box-shadow: 0 7px 18px rgba(20, 36, 63, .08);
}
.afm-performance .history-summary-card > div {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 18px 20px;
  background: linear-gradient(145deg, var(--afm-raised) 0%, var(--afm-surface) 100%);
}
.afm-performance .history-summary-card > div + div {
  border-top: 1px solid var(--afm-line);
}
.afm-performance .history-stat-grid span {
  color: var(--afm-muted);
}
.afm-performance .history-summary-card-performance > div:first-child > span { color: var(--afm-muted); }
.afm-performance .history-stat-grid strong {
  color: var(--afm-ink);
}
.afm-performance .history-stat-grid small { color: var(--afm-muted); }
.afm-performance .history-return-separator {
  background: var(--afm-line);
}
.afm-performance .history-contribution-panel {
  padding: 0;
  border-left: 0;
  background: transparent;
}
.afm-performance .overall-contribution-card {
  min-height: 100%;
  border-color: var(--afm-gold-500);
  background: linear-gradient(135deg, var(--afm-navy-900) 0%, var(--afm-navy-950) 100%);
  box-shadow: 0 9px 23px rgba(7, 20, 38, .25), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.afm-performance .overall-contribution-title {
  color: var(--afm-gold-bright);
  font-size: 14px;
}
.afm-performance .overall-contribution-period {
  color: var(--afm-muted-on-dark);
}
.afm-performance .overall-contribution-card strong,
.afm-performance .overall-contribution-card b {
  color: var(--afm-inverse);
  text-shadow: none;
}
.afm-performance .overall-contribution-card.positive { border-color: rgba(88, 201, 128, .7); }
.afm-performance .overall-contribution-card.positive #history-afm-pct,
.afm-performance .overall-contribution-card.positive #history-afm-dollar { color: var(--afm-chart-green); }
.afm-performance .overall-contribution-card.negative { border-color: rgba(255, 122, 130, .72); }
.afm-performance .overall-contribution-card.negative strong,
.afm-performance .overall-contribution-card.negative b { color: var(--afm-red-on-dark); }
.afm-performance .overall-contribution-card.neutral strong,
.afm-performance .overall-contribution-card.neutral b { color: var(--afm-inverse); }

.afm-performance .history-chart {
  margin: 10px 18px 18px;
  border: 1px solid #33445c;
  border-radius: 14px;
  background: linear-gradient(118deg, var(--afm-navy-950) 0%, #0e1d34 100%);
  box-shadow: 0 9px 22px rgba(7, 20, 38, .2), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.afm-performance .chart-header-actions {
  min-width: 0;
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 9px;
}
.afm-performance .chart-header-actions .chart-legend {
  max-width: 100%;
  justify-content: flex-end;
}
.afm-performance .chart-scale-control {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.afm-performance .chart-scale-label {
  color: var(--afm-gold-bright);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.afm-performance .chart-scale-options {
  max-width: 100%;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #607087;
  border-radius: 8px;
  background: var(--afm-navy-950);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}
.afm-performance .chart-scale-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: #d9dfe8;
  background: var(--afm-navy-950);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.afm-performance .chart-scale-button + .chart-scale-button {
  border-left: 1px solid #56667c;
}
.afm-performance .chart-scale-button:hover {
  color: var(--afm-inverse);
  background: var(--afm-navy-800);
}
.afm-performance .chart-scale-button.active,
.afm-performance .chart-scale-button[aria-pressed="true"] {
  color: var(--afm-navy-950);
  background: linear-gradient(135deg, var(--afm-gold-500), var(--afm-gold-bright));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
}
.afm-performance .chart-scale-button:focus-visible,
.afm-performance .chart-scale-info:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--afm-focus-dark);
  outline-offset: 2px;
}
.afm-performance .chart-scale-info {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7a6840;
  border-radius: 50%;
  color: var(--afm-gold-bright);
  background: var(--afm-navy-950);
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  cursor: help;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.afm-performance .chart-scale-info:hover {
  border-color: var(--afm-gold-bright);
  color: var(--afm-inverse);
  background: var(--afm-navy-800);
}
.afm-performance .chart-heading-copy strong {
  color: var(--afm-inverse);
}
.afm-performance .chart-heading-copy small,
.afm-performance .chart-legend span {
  color: var(--afm-muted-on-dark);
}
.afm-performance .chart-caption > p {
  color: var(--afm-gold-bright);
}
.afm-performance .chart-note {
  color: var(--afm-muted-on-dark);
}
.afm-performance .chart-stage:focus-visible,
.afm-performance .table-scroll:focus-visible,
.afm-performance .annual-table-scroll:focus-visible {
  outline-color: var(--afm-focus-light);
}
.afm-performance .history-chart .chart-stage:focus-visible { outline-color: var(--afm-focus-dark); }

.afm-performance .annual-performance-card,
.afm-performance .history-table-wrap,
.afm-performance .table-card {
  border-color: var(--afm-line);
  background: var(--afm-surface);
  box-shadow: 0 8px 22px rgba(20, 36, 63, .08);
}
.afm-performance .annual-performance-heading,
.afm-performance .history-table-wrap .table-card-heading,
.afm-performance .today-content-shell > .table-card .table-card-heading {
  border-bottom-color: var(--afm-gold-500);
  background: linear-gradient(100deg, #f0e3c5 0%, var(--afm-gold-soft) 48%, var(--afm-surface) 100%);
}
.afm-performance .annual-performance-heading > span {
  color: var(--afm-gold-text);
}
.afm-performance .annual-performance-heading h3,
.afm-performance .annual-title-row h3,
.afm-performance .history-table-wrap .table-card-heading h3,
.afm-performance .today-content-shell > .table-card .table-card-heading h3 {
  color: var(--afm-ink);
}
.afm-performance .history-table-wrap .table-card-heading p,
.afm-performance .today-content-shell > .table-card .table-card-heading p {
  color: var(--afm-muted);
}
.afm-performance .details-toggle {
  border-color: var(--afm-gold-500);
  color: var(--afm-inverse);
  background: var(--afm-navy-900);
}
.afm-performance .details-toggle:hover {
  border-color: var(--afm-gold-bright);
  box-shadow: 0 7px 16px rgba(20, 36, 63, .2);
}
.afm-performance .details-toggle:focus-visible { outline: 3px solid var(--afm-focus-light); outline-offset: 2px; }
.afm-performance thead,
.afm-performance .annual-performance-table thead th {
  background: #eee9df;
}
.afm-performance thead th,
.afm-performance .annual-performance-table thead th {
  color: #34445e;
}
.afm-performance tbody td,
.afm-performance tbody th {
  border-top-color: #dfd8cd;
  color: #1f2f47;
}
.afm-performance tbody tr:not(.total-row):hover {
  background: #f3ecdc;
}
.afm-performance .total-row {
  background: #e7e4dc;
}
.afm-performance .total-row td {
  border-top-color: #b7a36e;
}
.afm-performance .annual-performance-table th,
.afm-performance .annual-performance-table td {
  border-right-color: #dcd5c9;
}
.afm-performance .annual-performance-table tbody th {
  color: var(--afm-ink);
  background: var(--afm-surface);
}
.afm-performance .annual-performance-table .since-inception {
  background: var(--afm-gold-soft);
}
.afm-performance .annual-performance-note {
  color: var(--afm-muted);
}

.afm-performance .today-content-shell {
  border-color: #33445c;
  background: linear-gradient(112deg, var(--afm-navy-900) 0%, var(--afm-navy-950) 100%);
  box-shadow: 0 17px 40px rgba(7, 20, 38, .2);
}
.afm-performance .today-section-intro {
  background: linear-gradient(104deg, var(--afm-navy-900) 0%, var(--afm-navy-800) 100%);
}
.afm-performance .as-of-block > span { color: var(--afm-muted-on-dark); }
.afm-performance .as-of-block > span::before { background: currentColor; box-shadow: 0 0 0 5px rgba(200, 207, 218, .12); }
.afm-performance .as-of-block > span.data-status--live { color: var(--afm-green-bright); }
.afm-performance .as-of-block > span.data-status--live::before { box-shadow: 0 0 0 5px rgba(88, 201, 128, .14); }
.afm-performance .as-of-block > span.data-status--delayed { color: var(--afm-gold-bright); }
.afm-performance .as-of-block > span.data-status--delayed::before { box-shadow: 0 0 0 5px rgba(241, 199, 91, .14); }
.afm-performance .as-of-block > span.data-status--unavailable { color: var(--afm-red-on-dark); }
.afm-performance .as-of-block > span.data-status--unavailable::before { box-shadow: 0 0 0 5px rgba(255, 122, 130, .14); }
.afm-performance .as-of-block strong {
  color: var(--afm-inverse);
}
.afm-performance .as-of-block small {
  color: var(--afm-muted-on-dark);
}
.afm-performance .as-of-block small.refresh-status--active { color: var(--afm-green-bright); }
.afm-performance .as-of-block small.refresh-status--waiting { color: var(--afm-gold-300); }
.afm-performance .as-of-block small.refresh-status--error { color: var(--afm-red-on-dark); }
.afm-performance .today-content-shell > .metric-grid {
  background: transparent;
}
.afm-performance .metric-card {
  border-color: var(--afm-line);
  background: linear-gradient(145deg, var(--afm-raised) 0%, var(--afm-surface) 100%);
  box-shadow: 0 8px 20px rgba(0, 8, 20, .22);
}
.afm-performance .metric-card::after {
  background: rgba(15, 37, 69, .04);
}
.afm-performance .metric-card.positive {
  border-top-color: rgba(8, 119, 61, .72);
}
.afm-performance .metric-card.negative {
  border-top-color: rgba(183, 53, 66, .68);
}
.afm-performance .metric-topline {
  color: var(--afm-muted);
}
.afm-performance .metric-icon {
  color: var(--afm-gold-text);
  background: var(--afm-gold-soft);
}
.afm-performance .metric-main-value,
.afm-performance .metric-secondary-value strong,
.afm-performance .metric-secondary-value.neutral strong {
  color: var(--afm-ink);
}
.afm-performance .metric-secondary-value {
  border-left-color: #d5cec3;
}
.afm-performance .metric-secondary-value span,
.afm-performance .metric-meta {
  color: var(--afm-muted);
}
.afm-performance .metric-meta small {
  color: #56647a;
  background: #e9e9e7;
}
.afm-performance .today-content-shell > .table-card {
  background: var(--afm-surface);
}

/* Compact three-column band used by the Dark-version footer. */
.afm-performance .dark-principles-band {
  position: relative;
  margin-top: -1px;
  overflow: hidden;
  border: 1px solid #33445c;
  border-top-color: var(--afm-gold-500);
  border-radius: 0 0 20px 20px;
  color: var(--afm-inverse);
  background: linear-gradient(100deg, var(--afm-navy-950) 0%, var(--afm-navy-900) 55%, var(--afm-navy-800) 100%);
  box-shadow: 0 15px 34px rgba(7, 20, 38, .17);
}
.afm-performance .performance-lower-shell > .today-content-shell {
  border-radius: 20px 20px 0 0;
}
.afm-performance .dark-principles-grid {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.afm-performance .dark-principle-item {
  min-width: 0;
  min-height: 52px;
  padding: 3px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.afm-performance .dark-principle-item > div {
  min-width: 0;
}
.afm-performance .dark-principle-item + .dark-principle-item {
  border-left: 1px solid rgba(201, 160, 106, .62);
}
.afm-performance .dark-principle-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--afm-gold-bright);
}
.afm-performance .dark-principle-item:nth-child(n+2) .dark-principle-icon {
  color: var(--afm-inverse);
}
.afm-performance .dark-principle-item .dark-principle-title,
.afm-performance .dark-principle-item strong {
  margin: 0;
  color: var(--afm-inverse);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.afm-performance .dark-principle-item p,
.afm-performance .dark-principle-item small {
  display: block;
  margin: 3px 0 0;
  color: var(--afm-muted-on-dark);
  font-size: 11px;
  line-height: 1.35;
}
.afm-performance .technology-credit {
  display: none;
}

/* Coherent fallback should the White-version principles markup be retained. */
.afm-performance .principles-section {
  border-radius: 20px;
  background: var(--afm-navy-950);
}
.afm-performance .principles-card,
.afm-performance .principles-quote {
  border-color: #29384a;
  background: var(--afm-navy-900);
  box-shadow: 0 10px 28px rgba(7, 20, 38, .22);
}
.afm-performance .principle-item:nth-child(odd),
.afm-performance .principle-item:nth-child(-n+2),
.afm-performance .principle-item {
  border-color: #2a394b;
}
.afm-performance .principle-icon {
  color: var(--afm-gold-bright);
  background: var(--afm-navy-800);
}
.afm-performance .principle-item h3,
.afm-performance .principles-quote h3 {
  color: var(--afm-gold-bright);
}
.afm-performance .principle-item p,
.afm-performance .principles-quote p {
  color: var(--afm-muted-on-dark);
}

@media (max-width: 900px) {
  .afm-performance .history-contribution-panel {
    border-top: 0;
  }
}

/* GPT Version 2 · reference-matched Performance page --------------------- */
.afm-performance.afm-performance-v2 {
  --v2-navy: #002251;
  --v2-navy-mid: #0b3463;
  --v2-navy-light: #13437d;
  --v2-ink: #061c62;
  --v2-canvas: #f8f9fc;
  --v2-surface: #ffffff;
  --v2-blue-soft: #f0f7fe;
  --v2-blue-band: #eef6fe;
  --v2-line: #d7e6f7;
  --v2-green: #07860b;
  --v2-green-soft: #f4fbf4;
  --v2-red: #e30613;
  --v2-overview-blue: #e2eef9;
  --v2-overview-green: #dff2e2;
  --v2-overview-red: #fde4e7;
  --v2-overview-green-ink: #06720a;
  --v2-overview-red-ink: #bd111c;
  --v2-spx: #051976;
  --v2-amber: #9b5f00;
  color: var(--v2-ink);
  background: var(--v2-canvas);
  font-family: Inter, Arial, sans-serif;
}
.afm-performance.afm-performance-v2 .history-section { padding: 6px 0 24px; }
.afm-performance.afm-performance-v2 .history-content-shell {
  width: calc(100% - 20px);
  max-width: 1000px;
  overflow: hidden;
  border: 1px solid #b9d5ef;
  border-radius: 9px;
  background: var(--v2-surface);
  box-shadow: 0 6px 22px rgba(0, 34, 81, .06);
}
.afm-performance.afm-performance-v2 .history-panel {
  margin: 0;
  overflow: hidden;
  background: var(--v2-surface);
}
.afm-performance.afm-performance-v2 .performance-numbered-header {
  position: relative;
  min-height: 62px;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: linear-gradient(102deg, var(--v2-navy-mid) 0%, #06447e 42%, var(--v2-navy) 54%, #001a40 100%);
  border: 0;
}
.afm-performance.afm-performance-v2 .history-intro::before,
.afm-performance.afm-performance-v2 .today-section-intro::after { display: none; }
.afm-performance.afm-performance-v2[data-performance-mode="guest"] .history-intro::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 51%;
  width: 1px;
  content: "";
  background: #0b76bd;
  transform: skewX(-27deg);
  transform-origin: center;
  pointer-events: none;
}
.afm-performance.afm-performance-v2 .history-intro > * { position: relative; z-index: 1; }
.afm-performance.afm-performance-v2 .performance-numbered-title {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 22px;
}
.afm-performance.afm-performance-v2 .performance-section-number {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}
.afm-performance.afm-performance-v2 .performance-numbered-header h1,
.afm-performance.afm-performance-v2 .performance-numbered-header h2 {
  margin: 0;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .history-intro p {
  max-width: 400px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.afm-performance.afm-performance-v2 .performance-history-controls {
  min-height: 94px;
  padding: 12px 18px 14px;
  display: grid;
  grid-template-columns: minmax(245px, 1fr) minmax(180px, .75fr) minmax(420px, 1.65fr);
  align-items: end;
  gap: 12px;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .performance-history-controls .control-group,
.afm-performance.afm-performance-v2 .performance-history-controls .history-portfolio-filter,
.afm-performance.afm-performance-v2 .performance-history-controls .period-control,
.afm-performance.afm-performance-v2 .performance-history-controls .investment-control,
.afm-performance.afm-performance-v2 .performance-history-controls .date-range-control {
  min-width: 0;
  width: 100%;
  flex: none;
}
.afm-performance.afm-performance-v2 .performance-history-controls .date-range-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.afm-performance.afm-performance-v2 .performance-history-controls .date-range-control label { min-width: 0; }
.afm-performance.afm-performance-v2 .performance-history-controls .control-label {
  color: #526784;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.afm-performance.afm-performance-v2 .performance-history-controls .investment-input-row {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}
.afm-performance.afm-performance-v2 .performance-history-controls .investment-input-row input,
.afm-performance.afm-performance-v2 .performance-history-controls .history-select-wrap select,
.afm-performance.afm-performance-v2 .performance-history-controls .date-range-control input {
  height: 43px;
  padding: 0 12px;
  border: 1px solid #a9bfd7;
  border-radius: 7px;
  color: var(--v2-ink);
  background: #fbfdff;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
}
.afm-performance.afm-performance-v2 .performance-history-controls .investment-input-row input {
  min-width: 0;
  width: 100%;
}
.afm-performance.afm-performance-v2 .performance-history-controls .history-select-wrap select { padding-right: 34px; }
.afm-performance.afm-performance-v2 .performance-history-controls .history-select-wrap svg { color: var(--v2-ink); }
.afm-performance.afm-performance-v2 .performance-history-controls .apply-button {
  min-width: 62px;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--v2-navy-light);
  border-radius: 7px;
  color: #fff;
  background: var(--v2-navy-mid);
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}
.afm-performance.afm-performance-v2 .performance-history-controls .investment-error {
  color: var(--v2-red);
  font-size: 11px;
}
.afm-performance.afm-performance-v2 .history-overview-grid {
  padding: 8px 12px 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.36fr) minmax(0, .82fr);
  gap: 10px;
}
.afm-performance.afm-performance-v2 .history-overview-card {
  min-width: 0;
  min-height: 126px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--v2-ink);
  background: var(--v2-overview-blue);
  box-shadow: none;
  text-align: center;
}
.afm-performance.afm-performance-v2 .history-overview-card > span {
  color: var(--v2-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .history-overview-card > strong {
  margin-top: 8px;
  color: var(--v2-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: normal;
}
.afm-performance.afm-performance-v2 .history-overview-card > small {
  margin-top: 5px;
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 600;
}
.afm-performance.afm-performance-v2 .history-overview-card-period,
.afm-performance.afm-performance-v2 .history-overview-card-range {
  min-height: 116px;
  padding: 14px 16px;
  align-self: center;
  background: var(--v2-overview-blue);
}
.afm-performance.afm-performance-v2 .history-overview-card-period > span,
.afm-performance.afm-performance-v2 .history-overview-card-range > span {
  color: #37558a;
  font-size: 13px;
  font-weight: 750;
}
.afm-performance.afm-performance-v2 .history-overview-card-period > strong,
.afm-performance.afm-performance-v2 .history-overview-card-range > strong {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 550;
}
.afm-performance.afm-performance-v2 .history-overview-card-period > small,
.afm-performance.afm-performance-v2 .history-overview-card-range > small {
  color: #526784;
  font-size: 12px;
  font-weight: 550;
}
.afm-performance.afm-performance-v2 .history-overview-card-contribution,
.afm-performance.afm-performance-v2 .overall-contribution-card {
  min-height: 136px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  color: var(--v2-overview-green-ink);
  background: var(--v2-overview-green);
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .overall-contribution-card .overall-contribution-title {
  color: var(--v2-overview-green-ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}
.afm-performance.afm-performance-v2 .overall-contribution-card #history-afm-pct {
  margin-top: 4px;
  color: var(--v2-overview-green-ink);
  font-size: clamp(40px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}
.afm-performance.afm-performance-v2 .overall-contribution-card #history-afm-dollar {
  margin-top: 5px;
  color: var(--v2-overview-green-ink);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 750;
  line-height: 1.1;
  text-shadow: none;
}
.afm-performance.afm-performance-v2 .overall-contribution-card .overall-contribution-context {
  margin-top: 5px;
  color: #326f45;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: none;
}
.afm-performance.afm-performance-v2 .overall-contribution-card.negative {
  background: var(--v2-overview-red);
}
.afm-performance.afm-performance-v2 .overall-contribution-card.neutral {
  background: var(--v2-overview-blue);
}
.afm-performance.afm-performance-v2 .overall-contribution-card.negative .overall-contribution-title { color: var(--v2-overview-red-ink); }
.afm-performance.afm-performance-v2 .overall-contribution-card.neutral .overall-contribution-title { color: var(--v2-ink); }
.afm-performance.afm-performance-v2 .overall-contribution-card.negative #history-afm-pct,
.afm-performance.afm-performance-v2 .overall-contribution-card.negative #history-afm-dollar { color: var(--v2-overview-red-ink); }
.afm-performance.afm-performance-v2 .overall-contribution-card.neutral #history-afm-pct,
.afm-performance.afm-performance-v2 .overall-contribution-card.neutral #history-afm-dollar { color: var(--v2-ink); }
.afm-performance.afm-performance-v2 .overall-contribution-card.negative .overall-contribution-context { color: #962f38; }
.afm-performance.afm-performance-v2 .overall-contribution-card.neutral .overall-contribution-context { color: #526784; }

.afm-performance.afm-performance-v2 .history-chart {
  margin: 8px 12px 12px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .chart-title-row {
  min-height: 59px;
  padding: 12px 16px 5px;
  align-items: center;
  gap: 18px;
}
.afm-performance.afm-performance-v2 .chart-heading-copy { gap: 1px; }
.afm-performance.afm-performance-v2 .chart-heading-copy strong {
  color: var(--v2-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .chart-heading-copy small,
.afm-performance.afm-performance-v2 #history-chart-subtitle {
  color: #37558a;
  font-size: 11px;
}
.afm-performance.afm-performance-v2 .chart-legend span,
.afm-performance.afm-performance-v2 #performance-chart-legend span {
  color: var(--v2-ink);
  font-size: 13px;
  font-weight: 600;
}
.afm-performance.afm-performance-v2 .chart-legend i { height: 3px; border-radius: 0; }
.afm-performance.afm-performance-v2 .chart-plot-toolbar {
  min-height: 35px;
  padding: 2px 176px 5px var(--chart-y-gutter, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.afm-performance.afm-performance-v2 .chart-plot-toolbar .option-control {
  width: auto;
  min-height: 28px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.afm-performance.afm-performance-v2 .chart-plot-toolbar .chart-header-actions {
  min-width: 0;
  flex: 0 1 auto;
  margin-left: auto;
  align-self: center;
  justify-items: end;
}
.afm-performance.afm-performance-v2 .chart-plot-toolbar .chart-header-actions .chart-legend {
  max-width: 100%;
  justify-content: flex-end;
}
.afm-performance.afm-performance-v2 .chart-plot-toolbar .option-control label {
  color: var(--v2-ink);
  font-size: 12px;
  font-weight: 650;
}
.afm-performance.afm-performance-v2 .chart-plot-toolbar .option-control input { accent-color: var(--v2-navy-light); }
.afm-performance.afm-performance-v2 .chart-plot-toolbar .market-fund-switch {
  border-color: #7da7d5;
  background: #adc5df;
}
.afm-performance.afm-performance-v2 .chart-stage {
  height: clamp(340px, 38vw, 430px);
  padding: 0 4px;
  overflow: hidden;
}
.afm-performance.afm-performance-v2 .history-chart .chart-stage:focus-visible { outline-color: #2b69aa; }
.afm-performance.afm-performance-v2 .chart-caption { display: none; }

.afm-performance.afm-performance-v2 .history-performance-summary.performance-summary-card,
.afm-performance.afm-performance-v2 .today-performance-summary.performance-summary-card {
  position: relative;
  margin: 12px;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #bcd6ef;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .performance-summary-heading {
  min-height: 43px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #bcd6ef;
  background: var(--v2-blue-band);
}
.afm-performance.afm-performance-v2 .performance-summary-heading h2,
.afm-performance.afm-performance-v2 .performance-summary-heading h3 {
  margin: 0;
  color: var(--v2-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: #7da7d5 #edf5fc;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.afm-performance.afm-performance-v2 .performance-summary-grid:focus-visible {
  outline: 3px solid #2b69aa;
  outline-offset: -3px;
}
.afm-performance.afm-performance-v2 .performance-summary-grid::-webkit-scrollbar { height: 8px; }
.afm-performance.afm-performance-v2 .performance-summary-grid::-webkit-scrollbar-track { background: #edf5fc; }
.afm-performance.afm-performance-v2 .performance-summary-grid::-webkit-scrollbar-thumb {
  border: 2px solid #edf5fc;
  border-radius: 999px;
  background: #7da7d5;
}
.afm-performance.afm-performance-v2 .performance-summary-cell {
  min-width: 0;
  min-height: 128px;
  padding: 12px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(36px, auto) minmax(27px, auto) minmax(19px, auto) minmax(17px, auto);
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 3px;
  border-right: 1px solid #c9ddf0;
  scroll-snap-align: start;
  text-align: center;
}
.afm-performance.afm-performance-v2 .performance-summary-cell:last-child { border-right: 0; }
.afm-performance.afm-performance-v2 .performance-summary-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--v2-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}
.afm-performance.afm-performance-v2 .performance-summary-primary,
.afm-performance.afm-performance-v2 .performance-summary-secondary {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--v2-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.afm-performance.afm-performance-v2 .performance-summary-secondary {
  font-size: clamp(13px, 1.45vw, 15px);
  font-weight: 650;
}
.afm-performance.afm-performance-v2 .performance-summary-meta {
  max-width: 100%;
  margin: 0;
  color: var(--v2-ink);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.afm-performance.afm-performance-v2 .performance-summary-grid .is-empty { visibility: hidden; }
.afm-performance.afm-performance-v2 .performance-summary-grid .positive,
.afm-performance.afm-performance-v2 .performance-summary-grid .history-positive { color: var(--v2-green); }
.afm-performance.afm-performance-v2 .performance-summary-grid .negative,
.afm-performance.afm-performance-v2 .performance-summary-grid .history-negative { color: var(--v2-red); }
.afm-performance.afm-performance-v2 .performance-summary-grid .neutral { color: var(--v2-ink); }

/* Preserve a common five-column structure while giving the result columns a
   deliberate reading order: context, AFM, benchmark, then relative result. */
.afm-performance.afm-performance-v2 .performance-summary-cell-supporting .performance-summary-label {
  color: #526784;
  font-size: 12px;
  font-weight: 650;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-supporting .performance-summary-primary {
  font-size: clamp(17px, 1.85vw, 19px);
  font-weight: 650;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-afm .performance-summary-label {
  font-size: 13px;
  font-weight: 750;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-afm .performance-summary-primary {
  font-size: clamp(20px, 2.3vw, 22px);
  font-weight: 800;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-afm .performance-summary-secondary {
  font-size: 15px;
  font-weight: 750;
}
.afm-performance.afm-performance-v2 .history-performance-summary #history-summary-afm-cell.positive {
  background: var(--v2-green-soft);
}
.afm-performance.afm-performance-v2 .history-performance-summary #history-summary-afm-cell.negative {
  background: #fff4f5;
}
.afm-performance.afm-performance-v2 .history-performance-summary #history-summary-afm-cell.neutral {
  background: var(--v2-blue-soft);
}
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .performance-summary-label {
  color: var(--v2-spx);
  font-size: 12px;
  font-weight: 650;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .performance-summary-primary {
  font-size: clamp(17px, 1.9vw, 19px);
  font-weight: 700;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .performance-summary-secondary {
  font-size: 14px;
  font-weight: 650;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .performance-summary-primary,
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .performance-summary-secondary,
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .performance-summary-meta,
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .tone-value,
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .positive,
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .negative,
.afm-performance.afm-performance-v2 .performance-summary-cell-benchmark .neutral {
  color: var(--v2-spx);
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison {
  background: var(--v2-blue-soft);
  box-shadow: inset 2px 0 0 #c9ddf0;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative.positive,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison.positive {
  background: var(--v2-green-soft);
  box-shadow: inset 2px 0 0 #9ed1a3;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative.negative,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison.negative {
  background: #fff4f5;
  box-shadow: inset 2px 0 0 #efb4b9;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative.neutral,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison.neutral {
  background: var(--v2-blue-soft);
  box-shadow: inset 2px 0 0 #c9ddf0;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative .performance-summary-label,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison .performance-summary-label {
  font-size: 14px;
  font-weight: 800;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative .performance-summary-primary,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison .performance-summary-primary {
  font-size: clamp(23px, 2.6vw, 27px);
  font-weight: 850;
}
.afm-performance.afm-performance-v2 .performance-summary-cell-relative .performance-summary-secondary,
.afm-performance.afm-performance-v2 .performance-summary-cell-comparison .performance-summary-secondary {
  font-size: 16px;
  font-weight: 800;
}

.afm-performance.afm-performance-v2 .history-table-wrap,
.afm-performance.afm-performance-v2 .today-content-shell > .table-card {
  border-color: var(--v2-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .history-table-wrap .table-card-heading,
.afm-performance.afm-performance-v2 .today-content-shell > .table-card .table-card-heading {
  border-bottom-color: #bcd6ef;
  background: var(--v2-blue-band);
}

.afm-performance.afm-performance-v2 .performance-lower-shell { margin: 12px 0 0; }
.afm-performance.afm-performance-v2 .today-content-shell {
  overflow: hidden;
  border: 1px solid #b9d5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .today-section-intro {
  min-height: 62px;
  padding: 0 28px;
  border: 0;
  background: linear-gradient(102deg, var(--v2-navy-mid), var(--v2-navy));
}
.afm-performance.afm-performance-v2 .today-section-intro h2 { font-size: 23px; }
.afm-performance.afm-performance-v2 .as-of-block {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: #fff;
}
.afm-performance.afm-performance-v2 .as-of-block > span,
.afm-performance.afm-performance-v2 .as-of-block > strong,
.afm-performance.afm-performance-v2 .as-of-block > small {
  color: #d9e6f5;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.afm-performance.afm-performance-v2 .as-of-block > #performance-data-label { color: #fff; }
.afm-performance.afm-performance-v2 .as-of-block > span::before { content: none; }
.afm-performance.afm-performance-v2 .as-of-block > #performance-data-label::before {
  width: 6px;
  height: 6px;
  content: "";
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .as-of-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.afm-performance.afm-performance-v2 .as-of-label { color: #d9e6f5; font-weight: 500; }
.afm-performance.afm-performance-v2 .as-of-item strong,
.afm-performance.afm-performance-v2 .as-of-item small {
  color: #e7eff8;
  font-size: 12px;
  font-weight: 600;
}
.afm-performance.afm-performance-v2 .as-of-divider {
  width: 1px;
  height: 22px;
  display: block;
  background: rgba(255, 255, 255, .48);
}
.afm-performance.afm-performance-v2 .performance-annual-card {
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #b9d5ef;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-heading {
  min-height: 62px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: linear-gradient(102deg, var(--v2-navy-mid), var(--v2-navy));
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-heading h2 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .annual-performance-scope {
  color: #d9e6f5;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table {
  min-width: 900px;
  color: var(--v2-ink);
  font-size: 15px;
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table th,
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table td {
  height: 30px;
  padding: 5px 10px;
  border-right: 1px solid var(--v2-line);
  color: var(--v2-ink);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table thead th {
  color: var(--v2-ink);
  background: #f7fbff;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table th:first-child { width: 150px; }
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table tbody th { color: var(--v2-green); }
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table tbody tr[data-series="spx"] th,
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table .benchmark { color: var(--v2-spx); }
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table .positive { color: var(--v2-green); }
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table .negative { color: var(--v2-red); }
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table .since-inception { background: #fff; }
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table tbody tr[data-series="contribution"] th,
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table tbody tr[data-series="contribution"] td,
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table tbody tr[data-series="comparison"] th,
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-table tbody tr[data-series="comparison"] td {
  background: #e1f5e3;
  box-shadow: inset 0 1px 0 #a8d8ad, inset 0 -1px 0 #a8d8ad;
  font-weight: 800;
}
.afm-performance.afm-performance-v2 .annual-performance-claim {
  margin: 0;
  padding: 11px 20px;
  border-bottom: 1px solid #b9ddb9;
  color: var(--v2-green);
  background: var(--v2-green-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .01em;
  text-align: center;
  text-transform: uppercase;
}
.afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-note {
  margin: 0;
  padding: 12px 20px 15px;
  display: grid;
  gap: 4px;
  color: var(--v2-ink);
  background: #fff;
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
}

.afm-performance.afm-performance-v2 .dark-principles-band {
  margin: 0;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(102deg, #001a40, var(--v2-navy));
  box-shadow: none;
}
.afm-performance.afm-performance-v2 .dark-principles-grid {
  width: 100%;
  padding: 11px 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(185px, .82fr);
}
.afm-performance.afm-performance-v2 .dark-principle-item { min-height: 54px; padding: 3px 18px; }
.afm-performance.afm-performance-v2 .dark-principle-item + .dark-principle-item { border-left-color: rgba(255, 255, 255, .4); }
.afm-performance.afm-performance-v2 .dark-principle-item .dark-principle-title { font-size: 12px; }
.afm-performance.afm-performance-v2 .dark-principle-brand {
  min-height: 54px;
  padding-left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid rgba(255, 255, 255, .4);
}
.afm-performance.afm-performance-v2 .dark-principle-brand strong { color: #f5c42f; font-size: 18px; }
.afm-performance.afm-performance-v2 .swiss-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #e30613;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
}
.afm-performance.afm-performance-v2 .swiss-mark::before,
.afm-performance.afm-performance-v2 .swiss-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: #fff;
  transform: translate(-50%, -50%);
}
.afm-performance.afm-performance-v2 .swiss-mark::before { width: 19px; height: 6px; }
.afm-performance.afm-performance-v2 .swiss-mark::after { width: 6px; height: 19px; }

@media (min-width: 1001px) {
  .afm-performance.afm-performance-v2 .chart-title-row {
    padding: 12px 176px 5px var(--chart-y-gutter, 76px);
  }
}

@media (max-width: 1160px) {
  .afm-performance.afm-performance-v2 .today-section-intro .as-of-block {
    max-width: 450px;
    flex: 0 1 450px;
    row-gap: 4px;
  }
}

@media (max-width: 1000px) {
  .afm-performance.afm-performance-v2 .performance-history-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .afm-performance.afm-performance-v2 .performance-history-controls .date-range-control { grid-column: 1 / -1; }
  .afm-performance.afm-performance-v2 .dark-principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .afm-performance.afm-performance-v2 .dark-principle-item:nth-child(3),
  .afm-performance.afm-performance-v2 .dark-principle-brand { border-top: 1px solid rgba(255, 255, 255, .3); }
  .afm-performance.afm-performance-v2 .dark-principle-item:nth-child(3) { border-left: 0; }
}

@media (max-width: 900px) {
  .afm-performance.afm-performance-v2 .performance-summary-grid {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    scroll-snap-type: inline proximity;
  }
  .afm-performance.afm-performance-v2 .today-section-intro {
    min-height: 0;
    padding: 12px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .afm-performance.afm-performance-v2 .today-section-intro .as-of-block {
    width: 100%;
    max-width: none;
    flex: none;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .afm-performance.afm-performance-v2 .history-content-shell { width: min(100% - 14px, 700px); }
  .afm-performance.afm-performance-v2 .performance-numbered-header {
    min-height: 66px;
    padding: 13px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .afm-performance.afm-performance-v2 .performance-numbered-title { min-width: 0; gap: 13px; }
  .afm-performance.afm-performance-v2 .performance-section-number { font-size: 19px; }
  .afm-performance.afm-performance-v2 .performance-numbered-header h1,
  .afm-performance.afm-performance-v2 .performance-numbered-header h2,
  .afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-heading h2,
  .afm-performance.afm-performance-v2 .today-section-intro h2 { font-size: 19px; }
  .afm-performance.afm-performance-v2 .history-intro p { font-size: 13px; }
  .afm-performance.afm-performance-v2[data-performance-mode="guest"] .history-intro::after { display: none; }
  .afm-performance.afm-performance-v2 .history-overview-grid {
    grid-template-columns: 1fr;
  }
  .afm-performance.afm-performance-v2 .history-overview-card-period,
  .afm-performance.afm-performance-v2 .history-overview-card-range { display: none; }
  .afm-performance.afm-performance-v2 .history-overview-card-contribution {
    grid-column: 1;
    grid-row: auto;
  }
  .afm-performance.afm-performance-v2 .chart-title-row {
    padding-inline: 12px;
    display: grid;
  }
  .afm-performance.afm-performance-v2 .chart-header-actions,
  .afm-performance.afm-performance-v2 .chart-header-actions .chart-legend {
    width: 100%;
    justify-items: start;
    justify-content: flex-start;
  }
  .afm-performance.afm-performance-v2 .chart-plot-toolbar { padding: 4px 10px 6px var(--chart-y-gutter, 56px); }
  .afm-performance.afm-performance-v2 .chart-stage { height: clamp(305px, 76vw, 360px); }
  .afm-performance.afm-performance-v2 .as-of-block {
    width: 100%;
    max-width: none;
    margin-top: 0;
    justify-content: flex-start;
    padding-top: 0;
    border-top: 0;
  }
  .afm-performance.afm-performance-v2 .as-of-item {
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }
  .afm-performance.afm-performance-v2 .as-of-divider { display: none; }
  .afm-performance.afm-performance-v2 .performance-annual-card .annual-performance-heading {
    min-height: 66px;
    padding: 13px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .afm-performance.afm-performance-v2 .performance-history-controls {
    padding: 14px 12px;
    grid-template-columns: 1fr;
  }
  .afm-performance.afm-performance-v2 .performance-history-controls .date-range-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .afm-performance.afm-performance-v2 .history-overview-grid { grid-template-columns: 1fr; }
  .afm-performance.afm-performance-v2 .history-overview-card-contribution { grid-column: auto; }
  .afm-performance.afm-performance-v2 .history-overview-card { min-height: 112px; }
  .afm-performance.afm-performance-v2 .history-overview-card-contribution { min-height: 128px; }
  .afm-performance.afm-performance-v2 .chart-plot-toolbar .option-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .afm-performance.afm-performance-v2 .chart-stage { height: 330px; }
  .afm-performance.afm-performance-v2 .history-performance-summary.performance-summary-card,
  .afm-performance.afm-performance-v2 .today-performance-summary.performance-summary-card { margin: 10px; }
  .afm-performance.afm-performance-v2 .as-of-item {
    width: 100%;
    flex: 1 0 100%;
  }
  .afm-performance.afm-performance-v2 .dark-principles-grid { grid-template-columns: 1fr; }
  .afm-performance.afm-performance-v2 .dark-principle-item,
  .afm-performance.afm-performance-v2 .dark-principle-brand {
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, .3);
    border-left: 0 !important;
  }
  .afm-performance.afm-performance-v2 .dark-principle-item:first-child { border-top: 0; }
}

@media (max-width: 760px) {
  .afm-performance .chart-header-actions {
    width: 100%;
    margin-left: 0;
    justify-items: start;
  }
  .afm-performance .chart-header-actions .chart-legend {
    width: 100%;
    justify-content: flex-start;
  }
  .afm-performance .chart-scale-control {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .afm-performance .history-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .afm-performance .history-chart {
    margin: 10px 12px 12px;
  }
  .afm-performance .history-performance-summary {
    gap: 12px;
    padding: 12px;
  }
  .afm-performance .history-stat-grid > .history-summary-card {
    padding: 0;
    border-color: #d9d2c7;
  }
  .afm-performance .history-summary-card > div {
    padding: 16px 14px;
  }
  .afm-performance .as-of-block {
    border-top-color: rgba(231, 184, 78, .25);
  }
  .afm-performance .dark-principles-grid {
    padding: 9px 18px;
    grid-template-columns: 1fr;
  }
  .afm-performance .dark-principle-item {
    min-height: 62px;
    justify-content: flex-start;
  }
  .afm-performance .dark-principle-item + .dark-principle-item {
    border-top: 1px solid rgba(221, 171, 58, .42);
    border-left: 0;
  }
}
