/* Desktop portfolio summary — asymmetric hero (value + gain/loss + sparkline) beside compact stat
   chips. Tokens-only; rendered by Components/Desktop/PortfolioSummaryBar.razor. */
.pf { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; flex: 0 0 auto; }

.pf-hero {
    position: relative; overflow: hidden;
    background: var(--fn-bg-alt);
    border: var(--fn-border-width) solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    padding: 16px 22px 18px;
}
.pf-hero .pf-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fn-text-tertiary); }
.pf-hero .pf-big { font-size: 38px; font-weight: 800; font-family: ui-monospace, monospace; letter-spacing: -1px; margin-top: 2px; }
.pf-hero .pf-gv { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; font-family: ui-monospace, monospace; }
.pf-hero .pf-gv .v { font-size: 19px; font-weight: 700; }
.pf-hero .pf-gv .p { font-size: 14px; font-weight: 600; }
.pf-hero .pf-subline { font-size: 12px; color: var(--fn-text-secondary); margin-top: 3px; }

.pf-hero .pf-spark { position: absolute; right: 18px; bottom: 12px; width: 230px; height: 58px; max-width: 46%; }
.pf-spark .line { fill: none; stroke: var(--fn-success); stroke-width: 2; }
.pf-spark .area { fill: var(--fn-success-soft); stroke: none; }
.pf-spark.pf-down .line { stroke: var(--fn-danger); }
.pf-spark.pf-down .area { fill: var(--fn-danger-soft); }

.pf-side { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 12px; }
.pf-chip {
    display: flex; align-items: center; gap: 13px; min-width: 0;
    background: var(--fn-bg-alt);
    border: var(--fn-border-width) solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    padding: 10px 16px;
}
.pf-chip .pf-ic {
    flex: 0 0 38px; height: 38px; border-radius: var(--fn-radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--fn-bg-muted); color: var(--fn-text-secondary);
}
.pf-chip .pf-ic svg { width: 20px; height: 20px; }
.pf-chip.crown .pf-ic { background: var(--fn-warning-soft); color: var(--fn-warning); }
.pf-chip.best .pf-ic { background: var(--fn-success-soft); color: var(--fn-success); }

.pf-chip .pf-meta { min-width: 0; }
.pf-chip .pf-lab { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-text-tertiary); }
.pf-chip .pf-val { font-size: 18px; font-weight: 700; font-family: ui-monospace, monospace; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chip .pf-vs { font-size: 11px; color: var(--fn-text-secondary); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chip.best .pf-val { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 15px; }
.pf-chip.best .pf-val.pf-best { color: var(--fn-success); }

.pf-up { color: var(--fn-success); }
.pf-down { color: var(--fn-danger); }

@media (max-width: 920px) {
    .pf { grid-template-columns: 1fr; }
    .pf-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
}
