.portal-panel-heading.investment-report-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem 1rem;
}

.investment-report-heading__action {
    margin-inline-start: auto;
    white-space: nowrap;
}

.investment-analysis-page { max-width: 72rem; margin-inline: auto; }
.investment-analysis-header,
.investment-analysis-brand,
.investment-analysis-actions {
    display: flex;
    align-items: center;
    gap: .5rem .75rem;
}
.investment-analysis-header { flex-wrap: wrap; justify-content: space-between; }
.investment-analysis-brand { min-width: 0; }
.investment-analysis-logo { width: 4.6rem; height: 2.35rem; flex: 0 0 auto; object-fit: contain; }
.investment-analysis-actions { justify-content: flex-end; flex-wrap: wrap; }
.investment-analysis-actions .btn { white-space: nowrap; }
.investment-analysis-actions .investment-analysis-source {
    color: var(--portal-primary, #1b5a78);
    border-color: currentColor;
    background: #fff;
    font-weight: 600;
}
.investment-analysis-actions .investment-analysis-source:hover,
.investment-analysis-actions .investment-analysis-source:focus-visible {
    color: var(--portal-primary, #1b5a78);
    background: color-mix(in srgb, var(--portal-primary, #1b5a78) 10%, white);
}

.investment-dashboard {
    --investment-return: #106d67;
    --investment-target: #a55f09;
    --investment-ink: #18334b;
    --investment-muted: #506579;
    --investment-border: #dae4eb;
    display: grid;
    gap: .85rem;
    min-width: 0;
    color: var(--investment-ink);
}

.investment-dashboard__summary,
.investment-dashboard__panel {
    min-width: 0;
    border: 1px solid var(--investment-border);
    border-radius: .8rem;
    padding: clamp(.8rem, 2vw, 1.25rem);
    background: #fff;
}

.investment-dashboard__summary { background: #f3f9f8; }
.investment-dashboard__summary-head,
.investment-dashboard__source,
.investment-dashboard__share,
.investment-chart__toolbar,
.investment-chart__actions,
.investment-chart__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .85rem;
}

.investment-dashboard__summary-head,
.investment-chart__toolbar { justify-content: space-between; }
.investment-dashboard__summary-head { align-items: flex-start; }
.investment-dashboard__eyebrow { margin: 0 0 .25rem; color: var(--investment-return); font-size: .76rem; font-weight: 700; }
.investment-dashboard__meta, .investment-dashboard__source, .investment-dashboard__share [role="status"] { color: var(--investment-muted); font-size: .86rem; }
.investment-dashboard__status { color: var(--investment-return); font-size: .82rem; font-weight: 700; }
.investment-dashboard__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin: .9rem 0 0;
}

.investment-dashboard__metrics > div {
    padding: .65rem .75rem;
    border: 1px solid var(--investment-border);
    border-radius: .6rem;
    background: #fff;
}

.investment-dashboard__metrics dt { color: var(--investment-muted); font-size: .78rem; }
.investment-dashboard__metrics dd { margin: .15rem 0 0; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 700; overflow-wrap: anywhere; }
.investment-dashboard__metrics small { color: var(--investment-muted); font-size: .75rem; }
.investment-chart__legend { font-size: .83rem; }
.investment-chart__legend i {
    display: inline-block;
    width: 1.3rem;
    vertical-align: middle;
    border-top: 3px solid var(--investment-return);
}

.investment-chart__legend .investment-chart__key--target { border-top: 3px dashed var(--investment-target); }
.investment-chart__actions { gap: .25rem; }
.investment-chart__actions .btn { min-width: 2.4rem; min-height: 2.4rem; padding: .25rem .48rem; font-size: .8rem; }
.investment-chart__actions [aria-disabled="true"] { opacity: .55; cursor: default; }
.investment-chart__plot { display: block; width: 100%; height: clamp(12.5rem, 36vh, 19rem); margin: .65rem 0; }
.investment-chart__plot text { fill: var(--investment-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.investment-chart__grid { stroke: var(--investment-border); }
.investment-chart__zero { stroke: #8697a6; }
.investment-chart__guide { stroke: #8697a6; stroke-dasharray: 3 3; }
.investment-chart__return { --investment-series: var(--investment-return); }
.investment-chart__target { --investment-series: var(--investment-target); }
.investment-chart__plot path { fill: none; stroke: var(--investment-series); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.investment-chart__plot path.investment-chart__target { stroke-dasharray: 6 5; }
.investment-chart__plot circle { fill: #fff; stroke: var(--investment-series); stroke-width: 2; }
.investment-chart__plot circle.is-selected { fill: var(--investment-series); }
.investment-chart__selection { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: center; font-size: .84rem; }
.investment-chart__selection input { width: 100%; min-height: 1.75rem; accent-color: var(--investment-return); }
.investment-chart__values { margin: .45rem 0 .65rem; min-height: 1.5em; font-size: .89rem; font-variant-numeric: tabular-nums; }
.investment-chart__table { margin-top: .45rem; font-size: .87rem; }
.investment-chart__table summary { width: fit-content; font-weight: 600; cursor: pointer; }
.investment-chart__table table { margin-top: .65rem; font-variant-numeric: tabular-nums; }
.investment-dashboard__allocation { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; }
.investment-dashboard__donut {
    flex: 0 0 5.6rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--investment-donut);
    mask-image: radial-gradient(transparent 50%, #000 51%);
}

.investment-dashboard__allocation ul { display: grid; gap: .35rem; flex: 1 1 12rem; padding: 0; margin: 0; list-style: none; font-size: .88rem; }
.investment-dashboard__allocation li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .5rem; }
.investment-dashboard__allocation i { width: .58rem; height: .58rem; border-radius: .15rem; }
.investment-dashboard__share { border-top: 1px solid var(--investment-border); padding-top: .65rem; font-size: .87rem; }

.investment-dialog-open { overflow: hidden; }
.investment-dialog {
    width: min(72rem, calc(100% - 2rem));
    max-width: none;
    max-height: min(90dvh, 54rem);
    margin: auto;
    padding: 0;
    border: 1px solid #cad7e2;
    border-radius: .85rem;
    background: #f6f9fc;
    color: #18334b;
    box-shadow: 0 1.4rem 4rem rgb(18 43 64 / 24%);
    overflow: hidden;
}

.investment-dialog[open] { display: flex; flex-direction: column; }
.investment-dialog::backdrop { background: rgb(12 29 46 / 58%); }
.investment-dialog__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .65rem;
    padding: .7rem clamp(.8rem, 2.5vw, 1.4rem);
    border-bottom: 1px solid #dae4eb;
    background: #fff;
}

.investment-dialog__header h2 { margin: 0; font-size: clamp(1.08rem, 2.3vw, 1.4rem); }
.investment-dialog__close { min-width: 2.55rem; min-height: 2.55rem; font-size: 1.2rem; padding: .2rem; }
.investment-dialog__body { min-height: 0; padding: clamp(.7rem, 2.5vw, 1.3rem); overflow: auto; overscroll-behavior: contain; }
.investment-dialog__body > [role="status"] { margin: 0; }
.investment-processing.portal-boot-splash {
    position: static;
    transform: none;
    width: min(100%, 24rem);
    margin: 0 auto;
}
.investment-processing .portal-boot-progress-bar {
    width: 42%;
    animation: portalTopLoaderSlide 1.05s ease-in-out infinite;
}
.investment-download-status:not([hidden]) {
    padding: .5rem 1rem;
    background: #f6f9fc;
}
.investment-download-status .investment-processing {
    padding-block: .5rem;
    gap: .55rem;
}
.investment-download-status .portal-boot-brand { min-height: 2.5rem; }
.investment-download-status .portal-boot-brand.has-image img { max-height: 2.8rem; }
.investment-analysis-actions [data-investment-download][aria-disabled="true"] { opacity: .6; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
    .investment-processing .portal-boot-progress-bar { width: 100%; animation: none; }
}

@media (max-width: 699px) {
    .investment-dashboard__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .investment-dialog__header { grid-template-columns: minmax(0, 1fr) auto; }
    .investment-dialog__header .investment-analysis-actions:not(:empty) { grid-column: 1 / -1; grid-row: 2; }
    .investment-dialog__close { grid-column: 2; grid-row: 1; }
}

@media (max-width: 479px) {
    .investment-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
    .investment-chart__selection { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
    .investment-chart__actions .btn { min-width: 2.75rem; min-height: 2.75rem; }
    .investment-chart__plot { height: clamp(11.25rem, 28vh, 15rem); }
    .investment-chart__table { font-size: .76rem; }
}
