.fof-account-hero { grid-template-columns: minmax(180px, .8fr) minmax(0, 2.2fr); }
.fof-account-hero .fof-overview-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0;
}
.fof-account-hero .fof-overview-totals > div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--fof-line);
  border-radius: 0;
  background: none;
}
.fof-account-hero .fof-overview-totals > div:last-child { padding-right: 0; }
.fof-account-hero .fof-overview-totals span,
.fof-account-hero .fof-overview-totals small { color: var(--fof-muted); font-size: 11px; font-weight: 500; }
.fof-account-hero .fof-overview-totals strong {
  color: var(--fof-ink);
  font-size: clamp(16px, 1.48vw, 25px);
  font-weight: 620;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.fof-account-hero .fof-overview-totals strong.is-cash-alert { color: var(--fof-alert); }
.fof-overview-surface [id^="fof-overview-"],
.fof-holdings-surface [id^="fof-holdings-"] { scroll-margin-top: calc(var(--fof-sticky-top, 128px) + 10px); }
.fof-surface .fof-overview-assets > .section-heading { margin-bottom: 18px; }
.fof-assets-trend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(268px, 25%, 330px);
  gap: clamp(18px, 2.5vw, 38px);
  margin: 0;
  color: var(--fof-ink);
  font-variant-numeric: tabular-nums;
}
.fof-asset-history, .fof-asset-composition, .fof-asset-snapshots { min-width: 0; }
.fof-asset-history { display: grid; grid-template-rows: auto minmax(170px, 1fr); gap: 8px; }
.fof-asset-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.fof-asset-heading h4 { margin: 0; color: var(--fof-ink); font-size: 14px; font-weight: 620; }
.fof-asset-heading :is(small, time, span), .fof-asset-legend-head {
  color: var(--fof-muted); font: 450 11px/1.5 var(--font-ui); font-variant-numeric: tabular-nums;
}
.fof-asset-heading h4 small { margin-inline-start: 7px; white-space: nowrap; }
.fof-assets-chart-wrap { position: relative; min-height: 170px; min-width: 0; }
.fof-assets-chart-wrap canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.fof-asset-guide { position: absolute; width: 0; border-inline-start: 1px dashed #869c92; pointer-events: none; }
.fof-asset-guide::after {
  position: absolute; top: var(--asset-level); left: -1px; width: 7px; height: 7px; box-sizing: content-box;
  border: 2px solid white; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); content: "";
}
.fof-asset-composition { padding-inline-start: clamp(14px, 1.6vw, 24px); border-inline-start: 1px solid var(--fof-line); }
.fof-asset-book { display: grid; margin-top: 8px; }
.fof-asset-book > * {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content 4em; align-items: baseline; gap: 0 6px;
  padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums;
}
.fof-asset-legend-head { padding-block: 0 5px; }
.fof-asset-legend-head > :first-child { text-align: left; }
.fof-asset-book button {
  min-height: 26px; border: 0; border-radius: 5px; color: var(--fof-ink); background: transparent;
  font: 480 12px/1.3 var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer;
}
.fof-asset-book button:hover { background: #f4f7f5; }
.fof-asset-book button[aria-pressed="true"] { color: #2c554a; background: var(--fof-wash); font-weight: 650; }
.fof-asset-book button[data-fof-assets-product="all"] { margin-bottom: 3px; font-weight: 650; }
.fof-asset-label { display: flex; align-items: center; gap: 7px; min-width: 0; text-align: left; }
.fof-asset-label i { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--series-color); }
.fof-asset-book small { color: var(--fof-muted); font-size: 11px; font-weight: 450; }
.fof-assets-trend-empty { margin: 0; padding: 15px; border-radius: 6px; color: var(--fof-muted); background: var(--fof-wash); font-size: 12px; }
.fof-asset-snapshots { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--fof-line); }
.fof-asset-snapshots > .fof-asset-heading { margin-bottom: 10px; }
.fof-overview-table-wrap { overflow-x: auto; font-variant-numeric: tabular-nums; }
.fof-overview-table { min-width: 720px; border-spacing: 0; border-collapse: separate; color: var(--fof-ink); }
.fof-overview-table .fof-asset-product-col { width: 24%; }
.fof-overview-table .fof-asset-count-col { width: 9%; }
.fof-overview-table :is(th, td) { padding: 5px 12px; border-bottom: 1px solid #e9eeeb; text-align: right; }
.fof-overview-table thead th { padding-block: 7px; background: #f3f6f4; color: #52655c; font-size: 11px; font-weight: 550; }
.fof-overview-table :is(thead, tbody) th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; }
.fof-overview-table tbody th { background: white; font-size: 13px; font-weight: 580; color: inherit; }
.fof-overview-table tbody td { font-size: 13px; font-weight: 460; }
.fof-overview-table tbody .fof-asset-nav { font-weight: 620; }
.fof-overview-table td small { display: block; margin-top: 2px; color: var(--fof-muted); font-size: 11px; }
.fof-overview-table .is-cash-alert, .fof-overview-table .is-cash-alert small { color: var(--fof-alert); }
.fof-overview-table abbr { text-underline-offset: 3px; cursor: help; }
.fof-overview-table tbody tr:hover, .fof-overview-table tbody tr:hover th { background: #f7f9f7; }
.fof-overview-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.fof-overview-table .is-loading, .fof-overview-table .is-excluded { color: var(--fof-muted); }
.fof-overview-table select {
  display: block; width: fit-content; max-width: 100%; min-height: 22px; height: 22px; margin: 1px 0 0 11px;
  padding: 0 2px; border: 0; border-radius: 4px; color: var(--fof-muted); background: transparent;
  font: 450 11px/1.3 var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer;
}
.fof-overview-table select:is(:hover,:focus-visible) { background: var(--fof-wash); color: var(--fof-ink); }
.fof-overview-table select:disabled { cursor: default; }
.fof-overview-assets :is(button, canvas, select, .fof-overview-table-wrap):focus-visible { outline: 2px solid var(--fof-accent); outline-offset: -2px; }
@media (max-width: 850px) {
  .fof-assets-trend { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fof-asset-composition { padding-inline-start: 0; border-inline-start: 0; }
}
.fof-account-risk-filter { display: flex; align-items: center; gap: 8px; color: var(--fof-muted); font-size: 12px; }
.fof-account-risk-controls, .fof-account-risk-methods { display: flex; align-items: center; flex-wrap: wrap; }
.fof-account-risk-controls { gap: 8px 16px; }
.fof-account-risk-methods { gap: 2px; padding: 3px; border-radius: 8px; background: var(--fof-wash); }
.fof-account-risk-methods button {
  min-height: 27px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  color: var(--fof-muted);
  background: transparent;
  font: 550 12px/1.4 var(--font-ui);
  cursor: pointer;
}
.fof-account-risk-methods button[aria-pressed="true"] { color: white; background: var(--fof-accent); }
.fof-account-risk-filter select {
  width: auto;
  min-height: 32px;
  padding: 4px 24px 4px 9px;
  border: 1px solid var(--fof-line);
  border-radius: 7px;
  color: var(--fof-ink);
  background-color: white;
  font: inherit;
}
.fof-holdings-surface { grid-template-columns: minmax(0, 1fr); }
.fof-holdings-hero { grid-template-columns: minmax(180px, 1fr) minmax(0, 4.5fr); }
.fof-holdings-hero .fof-account-context { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.fof-holdings-history .fof-snapshot-actions { width: auto; align-items: center; flex-wrap: nowrap; gap: 6px; }
.fof-holdings-history .fof-date-field { width: auto; }
.fof-holdings-history .date-picker-trigger { min-height: 36px; gap: 12px; padding: 0 11px; }
.fof-holdings-history .fof-snapshot-button { width: 32px; height: 32px; min-height: 32px; flex: none; }
.fof-holdings-history .fof-snapshot-button:disabled { opacity: .45; cursor: default; }
.fof-holdings-balances {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  font-variant-numeric: tabular-nums;
}
.fof-holdings-balances > * {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding-inline: clamp(8px, .85vw, 14px);
  border-inline-start: 1px solid var(--fof-line);
}
.fof-holdings-balances > :last-child { padding-inline-end: 0; }
.fof-holdings-balances > :is(label,div) > span,
.fof-holdings-balances small { color: var(--fof-muted); font-size: 11px; }
.fof-holdings-balances small:empty { display: none; }
.fof-holdings-balances strong { color: var(--fof-ink); font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; line-height: 28px; white-space: nowrap; }
.fof-holdings-balances input { width: 100%; max-width: 190px; min-height: 28px; padding: 2px 7px; border: 1px solid var(--fof-line); border-radius: 6px; background: white; color: var(--fof-ink); font: 550 15px/1.45 var(--font-ui); font-variant-numeric: tabular-nums; }
.fof-holdings-balances input:focus-visible { outline: 2px solid var(--fof-accent); outline-offset: 1px; }
.fof-holdings-balances :is(.positive,.is-cash-alert) { color: var(--fof-up); }
.fof-holdings-balances .negative { color: var(--fof-down); }
.fof-holdings-hero .fof-status { padding: 2px 7px; font-size: 10px; white-space: nowrap; }
.fof-holdings-hero .fof-status.is-error { background: #fbebe6; color: var(--fof-up); }
.fof-risk-context, .fof-fold-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; }
.fof-risk-context { justify-content: flex-end; color: var(--fof-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
[data-fof-risk-comparison] { color: var(--fof-ink); font-variant-numeric: tabular-nums; }
.fof-risk-caption { color: var(--fof-muted); font-size: 11px; font-weight: 450; }
.fof-risk-notes > summary { list-style: none; cursor: pointer; }
.fof-risk-notes > summary::-webkit-details-marker { display: none; }
.fof-risk-notes > summary::before {
  content: ""; display: inline-block; flex: none; width: 5px; height: 5px;
  border: solid var(--fof-muted); border-width: 1px 1px 0 0; transform: translateY(-2px) rotate(45deg);
}
.fof-risk-notes[open] > summary::before { transform: translateY(-2px) rotate(135deg); }
.fof-risk-notes > summary:focus-visible { outline: 2px solid var(--fof-accent); outline-offset: -2px; }
.fof-risk-caption, .fof-risk-empty { margin: 10px 0 0; }
.fof-risk-empty { padding: 12px 14px; background: var(--fof-wash); color: var(--fof-muted); font-size: 12px; }
.fof-risk-notes { margin-top: 9px; color: var(--fof-muted); font-size: 11px; }
.fof-risk-notes > summary { display: flex; align-items: baseline; gap: 7px; width: fit-content; padding: 4px 2px; }
.fof-risk-notes > div { padding: 5px 12px; border-inline-start: 2px solid var(--fof-line); }
.fof-risk-notes p { margin: 3px 0; }
.fof-risk-notes strong { margin-inline-end: 10px; color: var(--fof-ink); font-weight: 550; }
.fof-overview-risks { grid-template-columns: minmax(0, 1fr); }
.fof-account-matrix-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--fof-line); border-radius: 10px; }
.fof-account-matrix {
  --name-width: clamp(142px, 14vw, 205px);
  min-width: calc(var(--name-width) + var(--account-columns) * 108px);
  border-spacing: 0; border-collapse: separate; color: var(--fof-ink); font-size: 12px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.fof-account-matrix :is(th, td) { padding: 5px clamp(8px, 1vw, 16px); border: 0; text-align: right; background: transparent; }
.fof-account-matrix thead th { color: var(--fof-ink); background: #f4f7f5; padding-block: 9px; white-space: normal; }
.fof-account-matrix thead strong, .fof-account-matrix thead small { display: block; }
.fof-account-matrix thead strong { font-weight: 610; font-size: 13px; }
.fof-account-matrix thead small { margin-top: 3px; color: var(--fof-muted); font-weight: 450; font-size: 10px; }
.fof-account-matrix tr > th:first-child {
  position: sticky; left: 0; z-index: 1; box-sizing: border-box; width: var(--name-width);
  text-align: left; font-weight: 520; white-space: normal; overflow-wrap: anywhere; background: var(--account-row-bg, white);
}
.fof-account-matrix thead tr { --account-row-bg: #f4f7f5; }
.fof-account-matrix tr > :nth-child(2) { border-inline-end: 1px solid var(--fof-line); }
.fof-risk-matrix-totals tr { --account-row-bg: #fafcfb; }
.fof-risk-matrix-totals td { padding-block: 8px 12px; background: var(--account-row-bg); }
.fof-risk-total-value { font-size: clamp(17px, 1.4vw, 22px); font-weight: 590; letter-spacing: -.025em; cursor: help; }
.fof-risk-spectrum { display: flex; height: 6px; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #e9eeeb; }
.fof-risk-spectrum i { background: hsl(var(--strategy-hue) var(--strategy-saturation) 58%); }
.fof-risk-matrix tbody { --risk-color: hsl(var(--strategy-hue) var(--strategy-saturation) 44%); }
.fof-risk-matrix .is-primary { --account-row-bg: hsl(var(--strategy-hue) 22% 96%); }
.fof-risk-matrix .is-primary > :is(th, td) { padding-block: 7px; border-top: 1px solid var(--fof-line); background: var(--account-row-bg); font-weight: 610; }
.fof-risk-matrix .is-primary th::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 2px; background: var(--risk-color);
}
.fof-risk-matrix .is-strategy > :is(th, td), .fof-risk-matrix .is-fund > :is(th, td) { border-top: 1px solid #f0f2f0; }
.fof-risk-matrix .is-strategy th:first-child { padding-inline-start: 24px; font-weight: 450; color: var(--fof-muted); }
.fof-account-matrix button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0;
  background: none; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.fof-account-matrix button::after { content: ""; flex: none; width: 4px; height: 4px; border: solid var(--fof-muted); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.fof-account-matrix button[aria-expanded="true"]::after { transform: translateY(-1px) rotate(135deg); }
.fof-risk-matrix .fof-risk-reading { display: flex; align-items: center; justify-content: flex-end; gap: 7px; cursor: help; }
.fof-risk-reading::before { content: ""; flex: 1; height: 3px; background: linear-gradient(to right, var(--risk-color) var(--risk-width), transparent 0); opacity: .53; }
.fof-risk-reading > span { min-width: 4em; }
.fof-risk-matrix .is-primary .fof-risk-reading::before { height: 4px; opacity: .8; }
.fof-risk-matrix .is-fund { --account-row-bg: #fafbf9; }
.fof-risk-matrix .is-fund > :is(th, td) { background: var(--account-row-bg); }
.fof-risk-matrix .is-fund th:first-child { padding-inline-start: 33px; }
.fof-risk-matrix .is-fund .fof-fund-performance-name { font: inherit; color: var(--fof-ink); white-space: normal; }
.fof-risk-matrix .fof-risk-unavailable { color: #85938d; }
.fof-account-matrix :is(button, [tabindex]):focus-visible { outline: 2px solid var(--fof-accent); outline-offset: 1px; border-radius: 3px; }
.fof-risk-matrix .is-strategy:hover { --account-row-bg: #f8faf8; background: var(--account-row-bg); }
.fof-surface .fof-section.fof-risk-section > .section-heading { align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--fof-line); }
.fof-risk-section .fof-account-risk-controls { justify-content: flex-end; }
.fof-risk-context > span:empty { display: none; }
.fof-risk-matrix.is-holdings { --name-width: 24%; width: 100%; min-width: 440px; }
.fof-risk-matrix.is-holdings thead th:last-child { width: 15%; }
.fof-risk-matrix.is-holdings .fof-risk-share { color: var(--fof-muted); }
.fof-risk-matrix .fof-risk-baseline { margin-inline-end: 10px; color: var(--fof-muted); font-size: 11px; font-weight: 450; }
.fof-account-risk-methods button:focus-visible { outline: 2px solid var(--fof-accent); outline-offset: 1px; }

.fof-overview-market-share { display: grid; grid-template-columns: minmax(0, 1fr); }
.fof-mix-basis { color: var(--fof-muted); font-size: 12px; font-weight: 450; }
.fof-mix-band { position: relative; display: block; height: 8px; margin: 9px 0 2px; overflow: hidden; border-radius: 3px; background: #e9eeeb; }
.fof-mix-band i { position: absolute; inset-block: 0; background: hsl(var(--strategy-hue) var(--strategy-saturation) 58%); cursor: help; }
.fof-mix-band i.is-negative { background: repeating-linear-gradient(135deg, #a9aeb4 0 2px, #d5d9dc 2px 4px); }
.fof-mix-band.is-signed::after { position: absolute; inset-block: 0; left: var(--mix-zero); width: 1px; background: #54615b; content: ""; pointer-events: none; }
.fof-mix-matrix tbody :is(th, td) { padding-block: 8px; border-top: 1px solid #e9eeeb; }
.fof-mix-matrix tbody td { background: hsl(var(--strategy-hue) var(--strategy-saturation) 63% / var(--mix-tint, 0)); }
.fof-mix-matrix td [data-fof-market-weight] { display: block; cursor: help; }
.fof-mix-matrix .fof-mix-group th::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 2px;
  background: hsl(var(--strategy-hue) var(--strategy-saturation) 44%);
}
.fof-mix-matrix .fof-mix-children th:first-child { padding-inline-start: 30px; color: var(--fof-muted); font-weight: 450; }
.fof-mix-matrix .fof-mix-children :is(th,td) { padding-block: 5px; font-size: 11px; }
.fof-mix-matrix .fof-mix-absent { color: #88958f; }
.fof-adviser-product-tooltip.is-allocation { max-width: calc(100vw - 20px); }
.fof-adviser-product-tooltip.is-allocation span { grid-template-columns: minmax(0, 1fr) auto; }
.fof-mix-tooltip-children { display: grid; gap: 5px; padding-top: 7px; border-top: 1px solid #e4ebe6; }
.fof-mix-tooltip-children small { color: #69786e; font-size: 10px; }

.fof-return-section {
  --gain-ink: #a64e48; --loss-ink: #347763;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.fof-surface .fof-return-section > .fof-return-heading { align-items: center; margin-bottom: 0; padding-bottom: 0; }
.fof-attribution-context { margin: 5px 0 0; color: var(--fof-muted); font-size: 12px; font-weight: 450; }
.fof-attribution-key {
  display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; vertical-align: .08em; border-radius: 2px;
}
.fof-attribution-matrix { width: 100%; table-layout: fixed; }
.fof-attribution-matrix thead th { vertical-align: top; }
.fof-attribution-matrix thead .fof-attribution-key { border-radius: 50%; }
.fof-attribution-matrix tr > :nth-child(2) { border-inline-end: 0; }
.fof-attribution-matrix .fof-attribution-summary :is(td, th) { padding-block: 6px; }
.fof-attribution-matrix .is-result { --account-row-bg: #f6f9f7; }
.fof-attribution-matrix .is-result :is(td, th) { background: var(--account-row-bg); padding-block: 10px; border-block: 1px solid var(--fof-line); }
.fof-attribution-matrix .is-result th:first-child { font-weight: 650; }
.fof-attribution-summary .is-result .fof-attribution-value { font-size: clamp(16px, 1.24vw, 20px); font-weight: 600; letter-spacing: -.025em; }
.fof-attribution-matrix .fof-attribution-summary tr:not(.is-result) th { padding-inline-start: 25px; color: var(--fof-muted); }
.fof-attribution-subhead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; color: var(--fof-ink); font-size: 13px; font-weight: 600;
}
.fof-attribution-subhead h4 { margin: 0; font: inherit; }
.fof-attribution-scale { display: inline-flex; align-items: baseline; gap: 8px; color: var(--fof-muted); font-size: 11px; font-weight: 450; white-space: nowrap; }
.fof-attribution-scale span { font-variant-numeric: tabular-nums; }
.fof-attribution-matrix .fof-attribution-strategy-rows th[scope="rowgroup"] {
  position: static; width: auto; padding-block: 11px 7px; border-top: 1px solid var(--fof-line); background: #fafbf9;
}
.fof-attribution-matrix .fof-attribution-strategy-rows th[scope="row"],
.fof-attribution-matrix .fof-attribution-strategy-rows td { padding-block: 6px; border-top: 1px solid #edf1ee; }
.fof-attribution-strategy-rows tr:hover { --account-row-bg: #f8faf8; background: var(--account-row-bg); }
.fof-attribution-reading {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 4.9em; gap: 6px; align-items: center;
  min-height: 19px; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.35;
}
.fof-attribution-reading > span small { display: block; font-size: 9px; color: var(--fof-muted); }
.fof-attribution-reading[data-fof-source-breakdown], .fof-attribution-reading.has-funds { cursor: help; }
.fof-attribution-reading.is-up > span, .fof-attribution-value.is-up { color: var(--gain-ink); }
.fof-attribution-reading.is-down > span, .fof-attribution-value.is-down { color: var(--loss-ink); }
.fof-attribution-missing { color: #929d96; }
.fof-attribution-axis { position: relative; display: block; height: 13px; }
.fof-attribution-axis::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 1px; background: #cdd8d2; }
.fof-attribution-axis > i { position: absolute; left: 50%; top: 4px; height: 5px; border-radius: 0 2px 2px 0; background: #c98079; }
.fof-attribution-reading.is-down .fof-attribution-axis > i { left: auto; right: 50%; background: #69a38f; border-radius: 2px 0 0 2px; }
.fof-attribution-scroll:focus-visible, .fof-attribution-single [tabindex]:focus-visible {
  outline: 2px solid var(--fof-accent); outline-offset: 2px; border-radius: 3px;
}
.fof-attribution-single {
  display: grid; grid-template-columns: minmax(215px, .8fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 44px);
  align-items: start; border-top: 1px solid var(--fof-line); padding-top: 16px; font-variant-numeric: tabular-nums;
}
.fof-attribution-metrics { margin: 0; padding-inline-end: clamp(14px, 2vw, 32px); border-inline-end: 1px solid var(--fof-line); }
.fof-attribution-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-block: 9px; }
.fof-attribution-metrics dt { color: var(--fof-muted); font-size: 12px; }
.fof-attribution-metrics dd { margin: 0; color: var(--fof-ink); text-align: right; line-height: 1.4; }
.fof-attribution-metrics dd small { display: block; margin-top: 2px; color: var(--fof-muted); font-size: 11px; }
.fof-attribution-metrics > div:first-child { display: block; padding: 0 0 12px; margin-bottom: 3px; border-bottom: 1px solid var(--fof-line); }
.fof-attribution-metrics > div:first-child dt { color: var(--fof-ink); font-weight: 600; }
.fof-attribution-metrics > div:first-child dd { text-align: left; }
.fof-attribution-metrics > div:first-child .fof-attribution-value { font-size: clamp(26px, 2.25vw, 34px); font-weight: 570; letter-spacing: -.035em; }
.fof-attribution-strategies { min-width: 0; }
.fof-attribution-list { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.fof-attribution-list :is(th, td) { padding: 5px 8px; text-align: right; border: 0; border-bottom: 1px solid #edf1ee; }
.fof-attribution-list thead th { color: var(--fof-muted); font-size: 11px; font-weight: 480; background: #f6f8f6; }
.fof-attribution-list th:first-child { width: 25%; color: var(--fof-ink); text-align: left; font-weight: 500; }
.fof-attribution-list th:nth-child(3) { width: 22%; }
.fof-attribution-list tbody tr:hover { background: #f8faf8; }
.fof-attribution-amount { color: var(--fof-muted); }
.fof-attribution-reading.has-funds:is(:hover,:focus-within) > .fof-return-strategy-tooltip {
  display: grid; gap: 3px; top: 100%; color: var(--fof-ink); text-align: left; cursor: auto;
}
.fof-attribution-foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 14px; }
.fof-attribution-foot .fof-risk-notes { margin: 0; }
.fof-attribution-foot .fof-risk-notes[open] { flex-basis: 100%; }
.fof-attribution-foot > span { color: #8d673c; font-size: 11px; }
.fof-attribution-funds-scroll { width: 100%; min-width: 0; overflow-x: auto; }
.fof-attribution-funds-scroll .fof-return-fund-name { border: 0; border-radius: 0; background: none; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.fof-return-fund-row .is-up, .fof-return-strategy-tooltip .is-up { color: var(--gain-ink); }
.fof-return-fund-row .is-down, .fof-return-strategy-tooltip .is-down { color: var(--loss-ink); }
.fof-return-details-heading:focus-visible { outline: 2px solid var(--fof-accent); }
@media (max-width: 760px) {
  .fof-attribution-single { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fof-attribution-metrics { border: 0; padding: 0; }
  .fof-attribution-metrics > div:not(:first-child) { padding-block: 4px; }
  .fof-attribution-matrix { --name-width: 120px; }
  .fof-attribution-list th:first-child { width: 27%; }
  .fof-attribution-list th:nth-child(3) { width: 26%; }
}
@media (max-width: 600px) {
  .fof-attribution-reading.has-funds:is(:hover,:focus-within) > .fof-return-strategy-tooltip { top: auto; }
}
@media (max-width: 760px) {
  .fof-surface .fof-section.fof-risk-section > .section-heading { flex-wrap: wrap; }
  .fof-risk-section .fof-account-risk-controls { justify-content: flex-start; }
}
.fof-holdings-fold { border-block: 1px solid var(--fof-line); font-variant-numeric: tabular-nums; }
.fof-holdings-surface [data-fof-live-risk-change]:not(:empty) { margin-top: 16px; }
.fof-holdings-surface [data-fof-live-rebalance]:not(:empty) { margin-bottom: 14px; }
.fof-holdings-fold > summary { display: flex; align-items: baseline; gap: 7px 18px; flex-wrap: wrap; padding: 10px 2px; list-style: none; cursor: pointer; }
.fof-holdings-fold > summary::-webkit-details-marker { display: none; }
.fof-holdings-fold > summary:focus-visible { outline: 2px solid var(--fof-accent); outline-offset: 1px; }
.fof-holdings-fold > summary strong { color: var(--fof-ink); font-size: 14px; font-weight: 600; }
.fof-fold-facts, .fof-fold-action, .fof-plan-source, .fof-account-no-change { color: var(--fof-muted); font-size: 12px; }
.fof-fold-facts b { color: var(--fof-ink); font-weight: 550; }
.fof-fold-action { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; white-space: nowrap; }
.fof-fold-action::after { content: ""; width: 6px; height: 6px; border: solid var(--fof-accent); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.fof-holdings-fold[open] > summary .fof-fold-action::after { transform: translateY(2px) rotate(225deg); }
.fof-plan-content { display: grid; gap: 9px; padding-bottom: 12px; }
.fof-plan-content .fof-completed-items { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.fof-account-no-change, .fof-plan-source, .fof-plan-review { margin: 0; }
.fof-plan-review { color: #865b30; font-size: 12px; }
.fof-inline-table-wrap { width: 100%; overflow-x: auto; }
.fof-inline-table-wrap table { width: 100%; min-width: 540px; table-layout: auto; border-collapse: collapse; font-size: 12px; }
.fof-inline-table-wrap :is(th,td) { padding: 6px 10px; border: 0; border-bottom: 1px solid var(--fof-line); text-align: right; vertical-align: middle; font-weight: 450; }
.fof-inline-table-wrap thead th { position: static; background: var(--fof-wash); color: var(--fof-muted); font-weight: 550; }
.fof-inline-table-wrap tbody th, .fof-risk-change-table thead [rowspan] { text-align: left; color: var(--fof-ink); }
.fof-inline-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.fof-risk-change-table { margin-bottom: 6px; }
.fof-risk-change-table thead [colspan] { text-align: center; }
.fof-risk-change-table :is(tbody td:nth-child(5), thead th[scope="colgroup"]:last-child) { border-left: 1px solid var(--fof-line); }
.fof-holdings-fold .is-up, .fof-plan-table .is-increase .fof-plan-direction { color: var(--fof-up); }
.fof-holdings-fold .is-down, .fof-plan-table .is-decrease .fof-plan-direction { color: var(--fof-down); }
.fof-plan-table th:nth-child(2), .fof-plan-table :is(th,td):is(:first-child,:nth-child(6),:nth-child(7)) { text-align: left; }
.fof-plan-table th small { display: block; color: var(--fof-muted); font-size: 10px; }
.fof-plan-table .fof-plan-amount { color: var(--fof-ink); font-weight: 600; }
.fof-plan-table .fof-rebalance-executed { padding: 4px 8px; min-height: 26px; font-size: 11px; }
.fof-plan-table .fof-rebalance-executed[aria-pressed="false"] { border-style: dashed; }
.fof-account-edit-scope { margin: 0 0 10px; color: var(--fof-muted); font-size: 12px; line-height: 1.6; }

.fof-adviser-summary[data-fof-book] { gap: 12px; }
.fof-adviser-summary[data-fof-book] > .section-heading { align-items: center; padding-bottom: 0; border: 0; }
.fof-position-tools .fof-book-views { margin-inline-end: 8px; }
.fof-book-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.fof-book-filters label { display: inline-flex; align-items: center; gap: 7px; color: var(--fof-muted); font-size: 12px; }
.fof-book-filters select {
  width: auto; height: 32px; min-height: 32px; padding: 3px 8px; border: 1px solid var(--fof-line); border-radius: 7px;
  background: white; color: var(--fof-ink); font: inherit; cursor: pointer;
}
.fof-book-filters > span { margin-inline-start: auto; color: var(--fof-muted); font-size: 12px; }
.fof-book-wrap {
  width: 100%; min-width: 0; max-height: min(74vh, 780px); overflow: auto;
  border: 1px solid var(--fof-line); border-radius: 10px; scrollbar-width: thin; box-sizing: border-box;
}
.fof-book-table {
  width: 100%; min-width: 760px; table-layout: auto; border-collapse: separate; border-spacing: 0;
  color: var(--fof-ink); font: 400 12px/1.45 var(--font-ui); font-variant-numeric: tabular-nums;
}
.fof-book-table thead { position: sticky; top: 0; z-index: 2; }
.fof-book-table :is(th,td) { padding: 5px 8px; border: 0; text-align: right; vertical-align: middle; }
.fof-book-table th { height: 30px; background: #f1f5f2; color: #566a5f; font-size: 11px; font-weight: 550; }
.fof-book-table td { height: 37px; border-bottom: 1px solid #e8eeea; }
.fof-book-table tbody tr { cursor: pointer; }
.fof-book-table tbody tr:hover { background: #f4f7f5; }
.fof-book-table tr.is-risk-watch { background: #fcf0f3; }
.fof-book-table tr.is-risk-watch:hover { background: #f9e7ed; }
.fof-book-table tr.is-risk-watch > :first-child { box-shadow: inset 3px 0 #b95975; }
.fof-book-table tr.is-return-highlight td { animation: fof-return-highlight 2.2s ease; }
.fof-book-table .fof-book-rank { width: 1%; color: var(--fof-muted); text-align: center; }
.fof-book-table :is(.fof-book-fund,.fof-book-strategy,.fof-book-terms,.fof-book-restriction) { text-align: left; }
.fof-book-table .fof-book-fund { min-width: 104px; max-width: 190px; white-space: normal; overflow-wrap: anywhere; }
.fof-book-fund > [data-fof-fund-performance] { color: var(--fof-ink); font-size: 13px; font-weight: 500; }
.fof-book-table .fof-book-strategy { min-width: 64px; }
.fof-book-strategy > span { color: hsl(var(--strategy-hue) var(--strategy-saturation) 30%); font-weight: 550; }
.fof-book-fund > small, .fof-book-fund .fof-holding-name-content > small, .fof-book-strategy small {
  display: block; color: var(--fof-muted); font-size: 10px; line-height: 1.4; font-weight: 400;
}
.fof-book-fund .fof-holding-name-content { justify-content: flex-start; flex-wrap: wrap; gap: 0 7px; }
.fof-book-trade { padding-inline-start: 6px; border-inline-start: 1px solid var(--fof-line); font-size: 10px; font-weight: 550; white-space: nowrap; }
.fof-plan-decrease b { color: #357a67; }
.fof-plan-increase b { color: #9e5048; }
.is-rebalance-increase .fof-book-trade { color: #9e5048; }
.is-rebalance-decrease .fof-book-trade { color: #357a67; }
.fof-book-trade .fof-holding-executed { margin-inline-start: 4px; border: 0; padding: 0; color: var(--fof-muted); font-size: inherit; }
.fof-book-value { font-weight: 550; }
.fof-book-table .fof-adviser-sort { justify-content: flex-end; gap: 2px; }
.fof-book-table :is(.fof-book-fund,.fof-book-strategy,.fof-book-terms) .fof-adviser-sort { justify-content: flex-start; }
.fof-book-table :is(.fof-book-rank,.fof-book-account-group) .fof-adviser-sort { justify-content: center; }
.fof-book-table :is(.fof-book-account-group,.fof-book-account) { text-align: center; }
.fof-book-table :is(th.fof-book-account,th.fof-book-account-group) { height: auto; padding: 3px 5px; background: #eaf0ed; }
.fof-book-account-group .fof-adviser-sort { min-height: 18px; }
.fof-book-account i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--account-color); vertical-align: 1px; }
.fof-book-table td.fof-book-account { min-width: 35px; padding-inline: 4px; background: rgba(102,138,117,.045); }
.fof-book-account.is-empty { color: #9ba99f; }
.fof-book-account [data-fof-product-tooltip] { padding: 3px; cursor: help; }
.fof-book-table :is(.fof-adviser-period-return,.fof-sharpe-value) { font-weight: 550; }
.fof-book-table :is(.fof-adviser-period-return,.fof-sharpe-value,.fof-actual-return).is-up { color: var(--fof-up); }
.fof-book-table :is(.fof-adviser-period-return,.fof-sharpe-value,.fof-actual-return).is-down { color: var(--fof-down); }
.fof-book-table .fof-vol-display { cursor: help; }
.fof-book-table .fof-vol-display:is(.is-manual,.is-period-6m,.is-period-3m,.is-period-1m) {
  background: transparent; box-shadow: none; color: #8a5a28; text-decoration: underline dotted #b89366; text-underline-offset: 4px;
}
.fof-book-table .fof-restriction-button {
  display: inline-flex; width: auto; height: auto; min-height: 24px; max-width: 100%; gap: 4px;
  padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--fof-muted);
}
.fof-book-table .fof-restriction-button strong { font-size: 11px; font-weight: 500; }
.fof-book-table .fof-fee-period-label { margin: 0; padding: 0; font-size: 10px; }
.fof-book-table .fof-restriction-button.is-fully-locked { color: #995241; }
.fof-book-table .fof-restriction-button:is(.is-partially-locked,.is-pending) { color: #876523; }
.fof-book-table .fof-restriction-button:hover { background: var(--fof-wash); text-decoration: underline; text-underline-offset: 3px; }
.fof-book-table td.fof-book-terms { min-width: 70px; max-width: 300px; white-space: normal; overflow-wrap: anywhere; }
[data-fof-book][data-view="performance"] .fof-book-table .fof-book-terms,
[data-fof-book][data-view="terms"] .fof-book-table :is(.fof-book-performance,.fof-vol-display,.fof-adviser-period-return,.fof-actual-return,.fof-sharpe-value) { display: none; }
.fof-book-wrap:focus-visible, .fof-book-table :is([tabindex],button):focus-visible { outline: 2px solid var(--fof-accent); outline-offset: -2px; }
.fof-positions-section [data-fof-message]:empty { display: none; }
@media (max-width: 1000px) {
  .fof-book-table :is(th,td) { padding-inline: 5px; }
  .fof-book-table .fof-book-fund { position: sticky; left: 0; background-color: #fdfefd; }
  .fof-book-table th.fof-book-fund { background-color: #f1f5f2; }
  .fof-book-table tr.is-risk-watch .fof-book-fund { background-color: #fcf0f3; }
}
.fof-correlation-header,
.fof-correlation-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fof-correlation-header { gap: 12px 20px; margin-bottom: 16px; }
.fof-correlation-header .chart-heading { flex: 1 1 max-content; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; }
.fof-correlation-tools { max-width: 100%; }
.fof-correlation-tools .fof-return-periods {
  flex: none;
  gap: 2px;
  padding: 2px;
  border-color: var(--timing-line);
  border-radius: 8px;
  background: var(--timing-wash);
}
.fof-correlation-tools .period-button { flex: none; min-height: 26px; padding: 0 10px; border-radius: 5px; white-space: nowrap; }
.fof-correlation-section .chart-caption { margin: 10px 0 0; color: var(--fof-muted); font-size: 11px; line-height: 1.5; }
.fof-correlation-section td.is-rotation-candidate-cell { position: relative; }
.fof-correlation-section :is(.is-rotation-candidate, .is-rotation-candidate-cell)::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  border: solid transparent;
  border-width: 0 5px 5px 0;
  border-right-color: #5684ad;
  pointer-events: none;
}
@media (max-width: 1050px) {
  .fof-account-hero { grid-template-columns: 1fr; }
  .fof-account-hero .fof-overview-totals > div:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 1000px) {
  .fof-holdings-hero { grid-template-columns: minmax(0, 1fr); }
  .fof-holdings-balances > :first-child { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 660px) {
  .fof-account-hero .fof-overview-totals { grid-template-columns: 1fr; gap: 6px; }
  .fof-account-hero .fof-overview-totals > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 0;
    border: 0;
  }
  .fof-account-hero .fof-overview-totals > div > span { min-width: 9em; }
}
