/* Card geometry and primary colour match Budget and Portfolio. */
.fp-summary,.overview-cards{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:16px;margin:0 0 16px;padding:0;border:0;background:transparent}
.fp-stat,.overview-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 20px;min-height:96px;min-width:0;margin:0}
.fp-stat:first-child,.overview-card.net{background:light-dark(#193e35,#264d41);color:#fff;border-color:transparent}
.fp-stat-label,.ledger-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:18px;margin:0;font-size:12px;font-weight:400;line-height:18px;color:var(--quiet,var(--muted))}
.fp-stat-value,.overview-value{font-size:28px;font-weight:600;line-height:1.25;letter-spacing:-.035em;margin:3px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fp-stat-note,.overview-card p{font-size:12px;line-height:18px;margin:0;color:var(--quiet,var(--muted))}
.fp-stat:first-child .fp-stat-label,.fp-stat:first-child .fp-stat-note,.overview-card.net h2,.overview-card.net p,.overview-card.net .ledger-card-currency{color:#c3d8cf}
.fp-stat .pos{color:var(--accent)}.fp-stat .neg{color:light-dark(#ad4953,#f3a6ad)}
.fp-summary label,.fp-stat select,.ledger-card-currency select{margin:0;font-size:12px;font-weight:400;line-height:18px}
.fp-stat select,.ledger-card-currency select{display:inline-block;width:auto;max-width:100%;height:18px;min-height:18px;line-height:16px;padding:0 4px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:5px;font:inherit}
.fp-stat select option,.ledger-card-currency select option{background:var(--surface);color:var(--ink,var(--text))}
.fp-summary-selector{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:18px}.fp-summary-selector select{max-width:62%;text-overflow:ellipsis}
@media(max-width:1000px){.fp-summary,.overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.fp-summary,.overview-cards{gap:9px}.fp-stat,.overview-card{padding:8px 12px}.fp-stat-value,.overview-value{font-size:20px}.fp-summary-selector{flex-wrap:wrap}.fp-summary-selector select{max-width:100%;width:100%}}

.fp-stat:first-child .shortfall{color:light-dark(#ffe0df,#ffd5d2)}

.fp-stat{position:relative}.fp-card-link{position:absolute;inset:0;border-radius:inherit;z-index:1}.fp-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.fp-stat:has(.fp-card-link):hover{box-shadow:0 2px 8px #10252e20}.fp-stat select{position:relative;z-index:2}
