.flow-section {margin:1.5rem 0}
.flow-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.flow-section [hidden],.flow-marker-area[hidden],.marker-toggle[hidden] {display:none!important}
.flow-toolbar,.retirement-flow-actions,.flow-inspect-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1.1rem}
.flow-toolbar .chart-heading {margin:0}
.flow-inspect-tools {align-items:end;justify-content:flex-start;margin:.8rem 0}
.flow-inspect-tools>label,.flow-age-jumps>span {font-size:.875rem}
.flow-inspect-tools>.marker-toggle {margin-left:auto;align-self:center}
.flow-inspect-tools input[type=month] {min-height:40px;max-width:100%;font-size:1rem}
.flow-age-jumps>span {display:block;margin-bottom:4px}
.flow-age-jumps button {min-height:40px;margin-bottom:4px}
.flow-inspect-tools>p {flex-basis:100%;margin:0}
.retirement-flow-actions {justify-content:flex-start}
.retirement-flow-actions button {min-height:40px}
.flow-context {margin:.5rem 0}
.flow-chart-shell {position:relative}
.flow-tip {position:absolute;z-index:2;bottom:1.8rem;max-width:100%;padding:.45rem .65rem;background:Canvas;color:CanvasText;border:1px solid var(--border);border-radius:7px;pointer-events:none;font-size:.8rem;font-variant-numeric:tabular-nums}
.flow-tip>span {display:flex;align-items:center;gap:.4rem}
.flow-tip b {margin-left:auto}
.flow-tip .flow-swatch,#cash-runway-calculator .flow-tip .flow-swatch {width:24px;height:8px;flex:none}
@media(max-width:540px){.flow-tip:not([hidden]) {position:static;margin:.25rem 0}}
.flow-plot {display:block;width:100%;height:225px;touch-action:pan-y;cursor:crosshair}
.flow-plot:focus-visible {outline:2px solid var(--viz-series-1);outline-offset:2px}
.flow-plot text {fill:CanvasText;font:12px system-ui,sans-serif}
.flow-grid {stroke:var(--border)}
.flow-guide {stroke:CanvasText;stroke-opacity:.66}
.flow-legend {display:flex;flex-wrap:wrap;gap:.35rem 1.1rem;margin:.55rem 0;font-size:.875rem}
.flow-legend>span {display:inline-flex;align-items:center;gap:.4rem}
.flow-legend .flow-swatch,#cash-runway-calculator .flow-legend .flow-swatch,#print-summary .flow-legend .flow-swatch {width:28px;height:8px;flex:none;margin:0}
.flow-income {--flow-color:light-dark(#006b68,#77ded0)}
.flow-spending {--flow-color:light-dark(#945415,#ffc378)}
.flow-wages {--flow-color:light-dark(#205da8,#88b6ff)}
.flow-ss {--flow-color:light-dark(#7346ab,#c6a7fb)}
.flow-survivor {--flow-color:light-dark(#984573,#ff9dc9)}
.flow-pension {--flow-color:light-dark(#007196,#77d7f7)}
.flow-other {--flow-color:light-dark(#526576,#becfe4)}
.flow-rmd {--flow-color:light-dark(#526e1e,#c6df93)}
.flow-withdrawals {--flow-color:light-dark(#a33823,#ff9e83)}
.flow-series {fill:none;stroke:var(--flow-color);stroke-width:1.9;stroke-linecap:butt;stroke-linejoin:round}
.flow-series.flow-income,.flow-series.flow-spending {stroke-width:3}
.flow-dot {stroke:var(--flow-color);fill:Canvas;stroke-width:2}
.flow-marker-area {position:relative;z-index:1}
.flow-marker-rail {position:relative;height:1.8rem}
.flow-marker-button {position:absolute;bottom:0;transform:translateX(-50%);width:2rem;min-height:1.8rem;padding:0;border:0;background:transparent;color:light-dark(#4c6077,#b2c5dc);font:600 .7rem/1 system-ui,sans-serif}
.flow-marker-button>span {display:inline-grid;place-content:center;min-width:1.2rem;height:1.2rem;padding:0 .18rem;border:1px solid var(--border);border-radius:.3rem;background:Canvas}
.flow-marker-button .single-marker::before {content:"";width:.38rem;height:.38rem;background:currentColor;transform:rotate(45deg)}
.flow-marker-button:hover>span,.flow-marker-button[aria-expanded=true]>span {border-color:var(--viz-series-1);color:CanvasText}
.flow-marker-details {position:absolute;top:100%;left:clamp(0%,calc(var(--anchor) - 8rem),max(0%,100% - 19rem));width:min(19rem,100%);max-height:15rem;overflow:auto;padding:.25rem .5rem;border:1px solid var(--border);border-radius:.45rem;box-shadow:0 .25rem .7rem #0004;background:Canvas;color:CanvasText}
.flow-marker-details ul {padding:0;margin:0;list-style:none}
.flow-marker-details li+li {border-top:1px solid var(--border)}
.flow-marker-details button {width:100%;min-height:38px;border:0;padding:.4rem;text-align:left;font-size:.875rem;overflow-wrap:anywhere}
.flow-milestone-line {stroke:light-dark(#4f606d,#b0c0d1);stroke-width:1;stroke-dasharray:2 4;stroke-opacity:.75}
.marker-toggle {display:inline-flex;align-items:center;gap:.35rem;min-height:36px;white-space:nowrap;font-size:.82rem;color:light-dark(#405367,#b9c8d8)}
.marker-toggle input {margin:0;accent-color:var(--viz-series-1)}
.flow-help,.flow-tax-note {color:light-dark(#526273,#bac8d7)}
.flow-reading {margin:.8rem 0;padding:.85rem 1rem;border:1px solid var(--border);border-radius:8px;font-variant-numeric:tabular-nums}
.flow-reading>strong {display:block;font-size:clamp(1.05rem,2.6vw,1.4rem);font-weight:650}
.flow-reading h3 {margin:.7rem 0 .25rem;font-size:.9rem}
.flow-reading p {margin:.3rem 0;font-size:.875rem}
.flow-reading dl {display:flex;flex-wrap:wrap;gap:.35rem 1.5rem;margin:.55rem 0}
.flow-reading dt {font-size:.82rem;color:light-dark(#425367,#bfccd9)}
.flow-reading dd {margin:0;font-weight:650}
.flow-account-list {padding-left:1.2rem;margin:.5rem 0;font-size:.875rem}
@media(max-width:32rem) {
  .flow-marker-rail,.flow-marker-button {height:36px}
  .flow-marker-button {width:36px}
  .flow-inspect-tools>.marker-toggle {margin-left:0}
  .flow-section {margin-block:1rem}
  .flow-reading {padding:.7rem .8rem}
}
