.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-description { font-size: 14px; }
.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 .currency-label { padding: 6px 9px; border-radius: 7px; color: #657288; background: #f2f5f8; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.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 { margin-left: auto; 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-description { font-size: 13px; }
  .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 .currency-label { display: none; }
  .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 .relative-view-control .chart-scale-button {
  white-space: nowrap;
}
.afm-performance .monthly-consistency-panel[hidden],
.afm-performance .monthly-consistency-chart-wrap[hidden],
.afm-performance .monthly-consistency-heatmap[hidden] {
  display: none;
}
.afm-performance .monthly-consistency-panel {
  min-width: 0;
  padding: 0 18px 18px;
}
.afm-performance .monthly-consistency-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 6px 14px;
}
.afm-performance .monthly-consistency-summary:empty {
  display: none;
}
.afm-performance .monthly-consistency-summary-card {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #33445c;
  border-radius: 9px;
  background: var(--afm-navy-950);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-label {
  display: block;
  color: var(--afm-muted-on-dark);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
  color: #f7f6f2;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-primary {
  color: var(--afm-inverse);
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-value.is-positive .monthly-consistency-summary-primary {
  color: var(--afm-green-bright);
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-value.is-negative .monthly-consistency-summary-primary {
  color: var(--afm-red-on-dark);
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-denominator,
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-unit {
  color: #96a3b4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-denominator {
  font-size: 14px;
}
.afm-performance .monthly-consistency-chart-stage {
  height: clamp(310px, 37vw, 390px);
  padding: 0 4px;
}
.afm-performance .monthly-consistency-chart-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #4b5e75 #071426;
  scrollbar-width: thin;
}
.afm-performance .monthly-consistency-empty {
  margin: 8px 6px 0;
  padding: 54px 20px;
  border: 1px dashed #34475e;
  border-radius: 10px;
  color: #aeb8c6;
  background: rgba(8, 24, 44, .66);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.afm-performance .monthly-consistency-heatmap {
  min-width: 0;
  margin: 0 6px;
  border: 1px solid #26384d;
  border-radius: 10px;
  background: #061527;
  overflow: hidden;
}
.afm-performance .monthly-consistency-heatmap-scroll {
  max-width: 100%;
  overflow: auto;
  scrollbar-color: #4b5e75 #071426;
  scrollbar-width: thin;
}
.afm-performance .monthly-consistency-heatmap-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #dce3eb;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.afm-performance .monthly-consistency-heatmap-table th,
.afm-performance .monthly-consistency-heatmap-table td {
  height: 34px;
  padding: 4px;
  border-right: 1px solid rgba(148, 163, 184, .09);
  border-bottom: 1px solid rgba(148, 163, 184, .1);
  text-align: center;
  white-space: nowrap;
}
.afm-performance .monthly-consistency-heatmap-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 45px;
  color: #9da9b8;
  background: #091b30;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.15;
}
.afm-performance .monthly-consistency-heatmap-table thead th span {
  display: block;
}
.afm-performance .monthly-consistency-heatmap-table .monthly-heatmap-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 1%;
  min-width: 0;
  max-width: none;
  padding: 4px 8px;
  color: #e7ebf0;
  background: #091b30;
  font-weight: 750;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afm-performance .monthly-consistency-heatmap-table thead .monthly-heatmap-row-label {
  z-index: 4;
  color: #e4b74e;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.afm-performance .monthly-consistency-heatmap-table tr.is-primary-row .monthly-heatmap-row-label {
  color: var(--afm-gold-bright);
}
.afm-performance .monthly-consistency-heatmap-table tr.is-primary-row td {
  background-color: rgba(241, 199, 91, .025);
}
.afm-performance .monthly-consistency-heatmap-table tbody tr:hover {
  background: transparent;
}
.afm-performance .monthly-consistency-heatmap-table .monthly-heatmap-month {
  width: 31px;
  min-width: 31px;
  padding: 4px 2px;
}
.afm-performance .monthly-consistency-heatmap-table .is-year-start {
  border-left: 1px solid rgba(201, 160, 106, .55);
}
.afm-performance .monthly-heatmap-cell {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  background: var(--monthly-heat-color, rgba(148, 163, 184, .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: help;
}
.afm-performance .monthly-heatmap-cell:focus-visible,
.afm-performance .monthly-consistency-heatmap-scroll:focus-visible {
  outline: 3px solid var(--afm-focus-dark);
  outline-offset: 2px;
}
.afm-performance .monthly-consistency-heatmap-table .monthly-heatmap-stat {
  min-width: 92px;
  padding-inline: 9px;
  color: #d8dee7;
  background: #08182c;
  font-weight: 700;
}
.afm-performance .monthly-consistency-heatmap-table tbody .monthly-heatmap-stat-positive-months {
  color: #fff;
}
.afm-performance .monthly-consistency-heatmap-table .monthly-heatmap-summary-end {
  border-right: 2px solid rgba(201, 160, 106, .55);
}
.afm-performance .monthly-consistency-heatmap-table .monthly-heatmap-summary-end + .monthly-heatmap-month.is-year-start {
  border-left: 0;
}
.afm-performance .monthly-consistency-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  border-top: 1px solid #26384d;
  color: #8f9daf;
  font-size: 12px;
  line-height: 1.35;
}
.afm-performance .monthly-consistency-heatmap-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.afm-performance .monthly-consistency-heatmap-key i {
  width: 17px;
  height: 9px;
  display: inline-block;
  border-radius: 3px;
}
.afm-performance .monthly-consistency-heatmap-key .positive { background: linear-gradient(90deg, #2c7655, var(--afm-green-bright)); }
.afm-performance .monthly-consistency-heatmap-key .neutral { background: rgba(148, 163, 184, .58); }
.afm-performance .monthly-consistency-heatmap-key .negative { background: linear-gradient(90deg, #aa4b55, var(--afm-red-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 .currency-label {
  color: var(--afm-inverse);
  background: var(--afm-navy-900);
}
.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 .analysis-annual-performance .annual-performance-table tbody tr:last-child th,
.afm-performance .analysis-annual-performance .annual-performance-table tbody tr:last-child td {
  border-bottom: 1px solid #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;
  }
}

@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;
  }
  .afm-performance .relative-view-control {
    align-items: flex-start;
  }
  .afm-performance .relative-view-control .chart-scale-options {
    max-width: calc(100% - 58px);
  }
  .afm-performance .relative-view-control .chart-scale-button {
    min-width: 0;
    padding-inline: 8px;
  }
  .afm-performance .monthly-consistency-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .afm-performance .monthly-consistency-heatmap-legend {
    align-items: flex-start;
    flex-direction: column;
  }
}

@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 .monthly-consistency-panel {
    padding: 0 10px 12px;
  }
  .afm-performance .monthly-consistency-summary {
    margin-inline: 0;
  }
  .afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-value {
    font-size: 22px;
  }
  .afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-denominator,
  .afm-performance .monthly-consistency-summary-card .monthly-consistency-summary-unit {
    font-size: 12px;
  }
  .afm-performance .monthly-consistency-heatmap {
    margin-inline: 0;
  }
  .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;
  }
}
