/* Same allocation colors and controls across all financial views. */
.allocation-view{--allocation-needs:var(--accent);--allocation-wants:var(--chart-2);--allocation-savings:var(--warning);--allocation-review:var(--negative);--allocation-oneoff:var(--muted);--allocation-unallocated:var(--rule);margin:24px 0;padding:20px 0;border-block:1px solid var(--rule)}
.allocation-heading,.allocation-row-title,.allocation-row-amount,.allocation-other{display:flex;align-items:center;justify-content:space-between;gap:12px}.allocation-heading{align-items:flex-start;margin-bottom:20px}.allocation-heading h3{font-size:25px;margin:0 0 6px}.allocation-heading p,.allocation-note{color:var(--muted);font-size:14px;margin:0}.allocation-heading input{max-width:180px;min-height:44px}.allocation-layout{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1.7fr);gap:28px;align-items:center}.allocation-figure{margin:0;text-align:center;min-width:0}.allocation-donut{position:relative;max-width:220px;margin:auto;aspect-ratio:1}.allocation-donut svg{width:100%;height:100%;display:block}.allocation-donut>div{position:absolute;inset:25%;display:flex;flex-direction:column;justify-content:center;pointer-events:none}.allocation-donut strong{font-size:25px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.allocation-donut span,.allocation-figure figcaption{font-size:14px;color:var(--muted)}.allocation-figure figcaption{margin-top:8px}.allocation-track{stroke:var(--rule)}.allocation-needs{--allocation-color:var(--allocation-needs)}.allocation-wants{--allocation-color:var(--allocation-wants)}.allocation-savings{--allocation-color:var(--allocation-savings)}.allocation-review{--allocation-color:var(--allocation-review)}.allocation-oneoff{--allocation-color:var(--allocation-oneoff)}.allocation-unallocated{--allocation-color:var(--allocation-unallocated)}.allocation-slice{stroke:var(--allocation-color)}.allocation-comparison{min-width:0}.allocation-row{display:block;width:100%;background:transparent;color:var(--text);text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--rule);padding:12px 0;box-shadow:none}.allocation-row:hover{background:var(--soft);transform:none}.allocation-row-title strong{display:flex;align-items:center;gap:8px}.allocation-row-title>span,.allocation-row-amount>span,.allocation-row-note{font-size:14px;color:var(--muted)}.allocation-row-amount{margin:6px 0}.allocation-row-amount strong{font-size:21px;font-variant-numeric:tabular-nums}.allocation-meter{position:relative;display:block;height:8px;background:var(--rule);border-radius:7px;margin:10px 0}.allocation-meter b{display:block;height:100%;background:var(--allocation-color);border-radius:inherit}.allocation-meter i{position:absolute;top:-3px;height:14px;width:2px;background:var(--text)}.allocation-row-note{display:flex;justify-content:space-between}.allocation-row-note.budget-negative{color:var(--negative)}.allocation-row-title i,.allocation-other i{display:inline-block;width:10px;height:10px;background:var(--allocation-color);border-radius:0;flex:none}.allocation-other{justify-content:flex-start;flex-wrap:wrap;margin-top:16px;gap:12px 24px}.allocation-other button,.allocation-other>span{display:flex;align-items:center;gap:8px;font-size:14px}.allocation-other button{background:transparent;color:var(--text);border:0;padding:8px 0;text-decoration:underline;text-underline-offset:3px;box-shadow:none}.allocation-note{margin-top:12px;max-width:75ch}.allocation-compact{margin:0;padding:0;border:0}.allocation-compact .allocation-heading{flex-wrap:wrap}.allocation-compact .allocation-layout{grid-template-columns:150px minmax(0,1fr);gap:18px}.allocation-compact .allocation-donut strong{font-size:21px}.allocation-compact .allocation-row-title{flex-wrap:wrap;gap:2px}.allocation-compact .allocation-row{padding:8px 0}.allocation-compact .allocation-row-amount strong{font-size:17px}.allocation-compact .allocation-other{gap:8px 16px}.allocation-compact .allocation-heading h3{font-size:21px}.activity-budget-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}.activity-budget-filter button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink)}
@media(max-width:1000px){.allocation-compact .allocation-layout{grid-template-columns:1fr}.allocation-compact .allocation-donut{max-width:170px}}
@media(max-width:700px){.allocation-heading{flex-wrap:wrap}.allocation-layout,.allocation-compact .allocation-layout{grid-template-columns:1fr;gap:16px}.allocation-donut{max-width:190px}.allocation-row-title{flex-wrap:wrap;gap:4px}.allocation-heading h3{font-size:25px}.allocation-view{margin:20px 0;padding:16px 0}.allocation-compact{margin:0;padding:0}.allocation-heading input{max-width:100%;font-size:16px}.allocation-other{gap:4px 16px}}

@media(max-width:700px){.allocation-compact .allocation-layout{grid-template-columns:96px minmax(0,1fr);gap:12px}.allocation-compact .allocation-donut strong{font-size:14px}.allocation-compact .allocation-row-title>span{font-size:14px}.allocation-compact .allocation-heading{margin-bottom:12px}}

@media(max-width:700px){.allocation-compact .allocation-donut span{display:none}}

.allocation-no-pie .allocation-layout{grid-template-columns:minmax(0,1fr)}
.linked-preview button>.account-icon{width:34px;height:34px;min-width:34px;max-width:34px;flex:none}
.linked-preview button>span:not(.account-icon){min-width:0;max-width:none;flex:1}
.linked-preview .linked-name{display:block;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;font-size:14px}
.linked-preview>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:1250px){.linked-preview>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:1600px){.linked-preview>div{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Keep complete currency values inside the donut hole at every chart size. */
.allocation-donut{container-type:inline-size}
.allocation-donut>div{inset:17%;align-items:center;text-align:center}
.allocation-donut strong,.allocation-compact .allocation-donut strong{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:clamp(14px,10cqi,25px);line-height:1.2}
@media(max-width:700px){.allocation-compact .allocation-layout{grid-template-columns:120px minmax(0,1fr)}}
