.spend-flow {margin-bottom:22px}
.spend-flow .panelhead {align-items:baseline;flex-wrap:wrap}
.spend-flow h2 {margin:.3rem 0}
.spend-flow .panelhead>a,.cleanup-study a {font-size:14px;font-weight:650}
.spend-controls {display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:15px 0}
.spend-controls label {display:grid;gap:4px;font-weight:650;font-size:12px;color:var(--muted)}
.spend-controls select {font:500 14px var(--sans);min-height:40px;padding:6px 10px;border:1px solid #9dac9d;border-radius:4px;background:var(--paper)}
.spend-summary {margin:0;color:var(--forest);font:500 clamp(23px,2.4vw,36px)/1.2 var(--serif);letter-spacing:-.035em}
.spend-diagram {width:100%;margin:12px 0 6px;background:#eef2e7;border-radius:6px}
.spend-diagram svg {display:block;width:100%;height:auto}
.spend-node {font:650 14px var(--sans);fill:#243b30}.spend-node.compact {font-size:10px}
.spend-node-sum {font-weight:500;fill:#3d5b49}
.spend-ribbon {cursor:pointer;fill-opacity:.77}
.spend-ribbon.selected,.spend-ribbon:focus-visible {stroke:#253b30;stroke-width:1.5px;fill-opacity:1;outline:0}
.spend-detail {font-size:13px;min-height:1.6em;margin:.4rem 0;color:#284c38;font-weight:650}
.spend-note {color:var(--muted);max-width:90ch;font-size:14px;margin:.5rem 0}
.spend-ledger {margin-top:12px;border-top:1px solid var(--line);padding-top:9px}
.spend-ledger summary {min-height:35px;font-weight:650;font-size:14px;cursor:pointer}
.spend-ledger button {margin:12px 0 0}
.cleanup-study {margin:36px 0 22px;padding-top:25px;border-top:2px solid #73896e}
.cleanup-study>h2 {font:500 clamp(34px,4.1vw,58px)/1.05 var(--serif);letter-spacing:-.045em;margin:8px 0}
.cleanup-study>p,.weapon-profile>p {max-width:76ch;color:var(--muted)}
.cleanup-study .contextgrid {align-items:stretch}.cleanup-study .case h3 {font:500 28px/1.12 var(--serif);letter-spacing:-.035em;margin:10px 0}
.cleanup-study .case .bill {font-size:clamp(32px,3.2vw,49px)}
.weapon-profile {margin:18px 0 32px}.weapon-profile .methodslist dt {font-weight:700}.weapon-profile .methodslist dd {margin:5px 0 12px;color:var(--muted)}
.titleblock .hero-jump {color:#dcebbd;text-underline-offset:4px}
@media(max-width:520px){.spend-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}.spend-controls select{width:100%;min-width:0;padding-inline:4px}.spend-detail{min-height:3em}.spend-flow .panelhead{gap:4px}}
.spend-node[role="button"] {cursor: pointer}
.spend-node[role="button"] > tspan:first-child {text-decoration: underline}
.spend-node[role="button"]:focus-visible {outline: 2px solid var(--green)}
@media(max-width:520px) {
  .spend-controls {grid-template-columns: minmax(0,1fr) auto}
  .spend-controls:has(#spend-dept-label:not([hidden])) label:first-child {grid-column: 1 / -1}
}
.account-detail {margin-top: 22px; border-top: 3px solid var(--forest); padding-top: 20px}
.account-detail h3 {margin: 5px 0; font: 700 clamp(26px,3vw,36px)/1.15 var(--display)}
.account-detail .spend-summary {font-size: clamp(19px,2.4vw,28px)}
.account-flow {position: relative; display: grid; grid-template-columns: minmax(60px,1fr) minmax(0,2fr); margin: 16px 0; background: #eef2e7}
.account-flow svg {position: absolute; inset: 0 auto 0 0; width: 33.333%; height: 100%}
.account-labels {grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr}
.account-labels li {min-height: 45px; display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #cbd4c7; font-size: 14px}
.account-labels b {font-variant-numeric: tabular-nums; white-space: nowrap}
.account-detail .tablewrap td:first-child {white-space: normal; min-width: 13em}
@media(max-width:600px) {
  .account-labels li {display: grid; gap: 1px; font-size: 12px}
  .account-flow {grid-template-columns: 22% minmax(0,1fr)}
  .account-flow svg {width: 22%}
  .spend-controls:has(#account-filter:not([hidden])) {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
.budget-example {padding: 14px 18px; border-left: 3px solid var(--green); background: #eff3ea; margin: 1rem 0}
.budget-example h4,.budget-example p {margin: 0 0 .5rem}
.sources-guide {margin-bottom: 1rem}
.sources-guide summary {font-weight: 700}
.sources-guide dt {font-weight: 650; margin-top: .9em}
