html:root {
  --ink: #172440;
  --muted: #5d6b82;
  --line: #e2e7ef;
  --surface: #fff;
  --soft: #f5f7fc;
  --accent: #344eb5;
  --accent-soft: #edf1ff;
  --bar-actual: #cce2ff;
  --bar-active: #8fc2ff;
  --bar-forecast: #edf5ff;
  --bar-hatch: #71a8ec;
  --projected-label: #667995;
  --projected-text-outline: var(--bar-forecast);
  --fg: var(--ink);
  --fg2: var(--muted);
  --fg3: var(--muted);
  --hair: var(--line);
  color-scheme: light;
}
html:not(.paper) {
  --ink: #eff1ff;
  --muted: #b6c0e6;
  --line: #3d4786;
  --surface: #0a146c;
  --soft: #172579;
  --accent: #bfccff;
  --accent-soft: #233581;
  --bar-actual: #bddaff;
  --bar-active: #8fc2ff;
  --bar-forecast: #173e82;
  --bar-hatch: #75acf0;
  --projected-label: #94acd6;
  --projected-text-outline: var(--bar-hatch);
  color-scheme: dark;
}
html,
body {
  margin: 0 !important;
  background: #000066 !important;
  color: var(--ink);
  font:
    14px/1.5 PortalBody,
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 4px 24px 24px !important;
}
.report-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 !important;
}
.report-head h1 {
  font:
    400 21px/1.3 PortalBody,
    sans-serif !important;
  letter-spacing: -0.6px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  padding: 10px 26px 8px !important;
  margin: 0 !important;
  border-radius: 9px 9px 0 0;
}
.header-tools {
  color: #eef0ff;
  font-size: 12px;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-tools > span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.demo-label {
  border: 1px solid #8089b4;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  color: #dce3ff;
}
.report-paper,
html.paper .report-paper {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-radius: 0 8px 8px 8px !important;
  padding: 0 28px 24px !important;
  border: 0 !important;
}
h2,
h3,
h4,
p {
  margin: 0;
}
h2 {
  font:
    400 26px/1.35 PortalBody,
    sans-serif !important;
  letter-spacing: -0.55px;
}
h3 {
  font:
    400 19px/1.4 PortalBody,
    sans-serif !important;
  letter-spacing: -0.3px;
}
h4 {
  font:
    400 16px/1.5 PortalBody,
    sans-serif;
}
button,
input,
select,
summary {
  font: inherit;
}
button,
select {
  color: var(--ink) !important;
  min-height: 36px;
  border: 1px solid var(--line) !important;
  border-radius: 4px;
  padding: 7px 11px;
  background: var(--surface) !important;
  cursor: pointer;
}
button:hover,
summary:hover {
  background: var(--accent-soft) !important;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #7490ed;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary-button {
  background: var(--accent) !important;
  color: var(--surface) !important;
  width: 100%;
  margin-top: 12px;
}
.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin-bottom: 12px;
}
.top-tabs {
  display: flex;
  gap: 22px;
  border: 0;
  margin: 0 !important;
  white-space: nowrap;
  overflow: auto;
}
.top-tabs button {
  padding: 10px 0;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  min-height: 40px;
  font-size: 13px;
  color: var(--muted) !important;
  background: transparent !important;
}
.top-tabs button[aria-current="page"] {
  border-bottom-color: var(--accent) !important;
  color: var(--ink) !important;
}
.settings-menu {
  position: relative;
  flex-shrink: 0;
  font-size: 12px;
}
.settings-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0 10px 10px;
  color: var(--muted);
}
.settings-menu > div {
  position: absolute;
  right: 0;
  top: 100%;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px;
  z-index: 50;
  box-shadow: 0 8px 28px #10265020;
  border-radius: 5px;
}
.settings-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0 !important;
  font-size: 13px;
}
.report-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  min-height: 40px;
}
#breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 12px;
}
#breadcrumbs button {
  border: 0 !important;
  background: transparent !important;
  padding: 3px 0;
  min-height: 28px;
  text-align: left;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted) !important;
}
#breadcrumbs button[aria-current="location"] {
  color: var(--ink) !important;
}
#breadcrumbs .back-button {
  min-width: 28px;
  font-size: 18px;
  margin-right: 4px;
}
.crumb-separator {
  color: var(--muted);
}
.filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.filter-controls select {
  font-size: 12px;
  margin: 0;
  min-height: 36px;
  max-width: 260px;
}
#people-picker {
  position: relative;
}
#people-picker summary {
  font-size: 12px;
  list-style: none;
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 36px;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#people-picker summary:after {
  content: "⌄";
  padding-left: 10px;
}
.people-options {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 300px;
  max-width: calc(100vw - 36px);
  background: var(--surface) !important;
  color: var(--ink);
  padding: 14px;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 28px #17244020;
  border-radius: 5px;
  z-index: 50;
}
.people-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.people-tools button {
  font-size: 12px;
  min-height: 32px;
  padding: 4px 8px;
}
#people-checkboxes {
  max-height: 270px;
  overflow: auto;
}
#people-checkboxes label {
  display: flex;
  gap: 10px;
  padding: 8px 3px;
  align-items: center;
  font-size: 13px;
}
#people-checkboxes small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
#people-checkboxes input {
  width: 16px;
  height: 16px;
  accent-color: #344eb5;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.title-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.title-line h2 {
  max-width: 900px;
}
.title-line p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.title-line p span {
  margin: 0 6px;
}
.clear-button {
  font-size: 11px;
  white-space: nowrap;
}
.financial-head {
  display: flex;
  align-items: center;
  gap: 44px;
  margin: 26px 0 24px;
  padding-bottom: 26px;
  border-bottom: 0;
}
.financial-head > div {
  flex-shrink: 0;
}
.metric-caption {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.financial-head strong {
  font:
    600 26px/1.3 -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.financial-head .spend-amount {
  font-size: 36px;
  letter-spacing: -1px;
  display: block;
}
.financial-head small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.financial-head .coverage-note {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-top select {
  font-size: 12px;
  margin: 0;
  min-width: 130px;
}
.muted {
  color: var(--muted) !important;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 5px;
}
.trend-layout {
  padding: 0 0 20px;
}
.trend-layout .section-top {
  margin-bottom: 4px;
}
.chart-key {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--accent);
}
.trajectory {
  display: block;
  width: 100%;
  height: auto;
  max-height: 170px;
}
.trajectory text {
  font:
    12px PortalBody,
    sans-serif;
  fill: var(--muted);
}
.month-point {
  cursor: pointer;
  pointer-events: bounding-box;
}
.month-point:hover circle {
  stroke-width: 4;
}
.method {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.8;
}
.method summary {
  cursor: pointer;
}
.method p {
  margin-top: 10px;
  max-width: 880px;
}
.distribution-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.distribution-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
}
.donut {
  width: 204px;
  height: 204px;
  display: block;
}
.donut path {
  cursor: pointer;
}
.donut path:hover {
  opacity: 0.7;
}
.donut-value {
  font:
    600 25px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  fill: var(--ink);
}
.donut-caption {
  font:
    11px PortalBody,
    sans-serif;
  fill: var(--muted);
}
.donut-block p {
  font-size: 12px;
  color: var(--ink);
  text-align: center;
  margin-top: 8px;
}
.donut-block p span {
  font-size: 10px;
  color: var(--muted);
}
.legend-head,
.legend-row {
  display: grid;
  grid-template-columns: 1fr 90px 55px 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.legend-head {
  font-size: 10px;
  color: var(--muted);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
}
.legend-head > span:not(:first-child) {
  text-align: right;
}
.legend-row {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0;
  padding: 10px;
  min-height: 42px;
  font-size: 13px;
}
.name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.amount {
  font:
    600 14px/1.5 -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.share {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.row-arrow {
  color: var(--accent);
  font-size: 15px;
  text-align: right;
}
.show-more {
  font-size: 12px;
  margin-top: 16px;
  color: var(--accent) !important;
}
.show-more span {
  font-size: 10px;
  margin-left: 8px;
  color: var(--muted);
}
.overview-bottom,
.detail-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.detail-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.section-top > button {
  font-size: 11px;
  border: 0 !important;
  color: var(--accent) !important;
}
.investigation-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: -8px 0 20px;
  font-size: 11px;
  color: var(--muted);
}
.investigation-actions button {
  color: var(--accent) !important;
  font-size: 12px;
}
.metric-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.metric-switch button {
  font-size: 11px;
  border: 0 !important;
  border-radius: 0;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted) !important;
}
.metric-switch button[aria-pressed="true"] {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}
.ranking-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0 28px 10px 0;
}
.rank-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 110px 18px;
  gap: 10px 20px;
  align-items: center;
  text-align: left;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0;
  width: 100%;
  padding: 15px 2px 14px;
  background: transparent !important;
}
.rank-row:hover {
  background: var(--soft) !important;
}
.rank-label {
  display: flex;
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.rank-number {
  color: var(--muted);
  font-size: 10px;
  padding-top: 4px;
  min-width: 16px;
}
.rank-label strong {
  font:
    400 14px/1.6 PortalBody,
    sans-serif;
}
.rank-label small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 3px;
}
.rank-value {
  text-align: right;
}
.rank-value strong {
  display: block;
  font:
    600 14px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
.rank-value span {
  font-size: 10px;
  color: var(--muted);
}
.rank-bar {
  grid-column: 1 / 3;
  grid-row: 2;
  height: 3px;
  margin-left: 30px;
  background: var(--soft);
  max-width: 100%;
}
.rank-bar i {
  display: block;
  height: 3px;
  background: #9caedd;
  border-radius: 1px;
}
.rank-row > .row-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
}
.model-strip {
  display: flex;
  height: 13px;
  border-radius: 3px;
  overflow: hidden;
  gap: 2px;
}
.model-strip button {
  background: var(--model-color) !important;
  min-height: 0;
  height: 13px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
}
.model-key {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.model-key button {
  border: 0 !important;
  padding: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  color: var(--muted) !important;
  background: transparent !important;
}
.model-key strong {
  color: var(--ink);
  font:
    600 11px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--ink);
}
th {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
td button {
  border: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  text-align: left;
  min-height: 24px;
  line-height: 1.6;
  background: transparent !important;
  font-size: 12px;
  white-space: normal;
  color: var(--ink) !important;
}
td button:hover {
  text-decoration: underline;
}
td p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.session-table td:first-child {
  min-width: 250px;
  max-width: 430px;
  width: 45%;
}
.session-table td:first-child button {
  font-size: 13px;
}
.session-table .person-link {
  font-size: 11px;
  min-width: 90px;
}
.date-cell {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
  padding-top: 16px;
}
.usage-cell {
  font-size: 11px;
  white-space: nowrap;
  text-align: right;
}
.usage-cell span {
  color: var(--muted);
  font-size: 10px;
}
.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.model-table th:not(:first-child),
.model-table td:not(:first-child) {
  text-align: right;
}
.model-table {
  margin-top: 24px;
}
.model-table td:first-child button {
  font-size: 14px;
}
.accounting {
  margin: 20px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
}
.accounting summary {
  cursor: pointer;
  min-height: 30px;
  color: var(--accent);
}
.accounting > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 10px 0 18px;
  max-width: 780px;
}
.daily-table {
  max-height: 440px;
  overflow: auto;
}
.ledger-search {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
}
.ledger-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 4px;
  font-size: 13px;
}
.ledger-search span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.session-intro > p {
  font-size: 14px;
  line-height: 1.9;
  max-width: 950px;
}
.session-intro dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 22px 0;
  background: var(--soft);
  padding: 18px 20px;
}
.session-intro dt {
  font-size: 10px;
  color: var(--muted);
}
.session-intro dd {
  margin: 4px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.session-facts {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 16px 0 22px;
  font-size: 11px;
  color: var(--muted);
}
.session-facts strong {
  font:
    600 13px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
}
.scope-warning {
  font-size: 12px !important;
  background: var(--accent-soft);
  padding: 12px 16px;
  margin: 20px 0;
}
.scope-warning button {
  font-size: 11px;
  border: 0 !important;
  background: transparent !important;
  text-decoration: underline;
}
.task-card {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.task-card:first-of-type {
  border-top: 0;
}
.task-card-head {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: start;
}
.task-card-head .amount {
  font-size: 17px !important;
}
.task-card > p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 12px;
  max-width: 900px;
}
.task-card .deliverable {
  background: var(--soft);
  padding: 10px 14px;
}
.deliverable > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.task-metadata {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0;
}
.task-tokens,
.task-models {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 11px;
  margin-top: 12px;
}
.task-tokens span {
  color: var(--muted);
}
.task-tokens strong,
.task-models strong {
  font:
    500 12px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  margin-left: 6px;
}
.task-models {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}
.flow-intro {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.flow-intro p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 600px;
}
.flow-intro button {
  font-size: 11px;
  flex-shrink: 0;
}
.flow-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.flow-toolbar label {
  font-size: 10px;
  color: var(--muted);
  display: grid;
  gap: 5px;
}
.flow-toolbar select {
  margin: 0;
  font-size: 12px;
}
.flow-toolbar button {
  font-size: 12px;
}
.flow-expand {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.flow-total {
  padding-left: 12px;
  font-size: 11px;
  color: var(--muted);
}
.flow-total strong {
  display: block;
  font:
    600 22px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
}
.flow-page-scope {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.flow-context {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink);
  padding: 12px 0 !important;
}
.flow-context button {
  font-size: 11px;
}
.flow-scroll {
  overflow-x: auto;
  background: var(--surface) !important;
  border: 0 !important;
  padding: 10px 0 !important;
}
.sankey {
  width: 100%;
  min-width: 800px;
  display: block;
}
.flow-node {
  cursor: pointer;
}
.flow-node-bg {
  fill: var(--soft) !important;
  stroke: var(--line) !important;
}
.flow-name {
  font:
    15px PortalBody,
    sans-serif !important;
  fill: var(--ink) !important;
}
.flow-value {
  font:
    600 15px -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  fill: var(--accent) !important;
}
.flow-column {
  font:
    12px PortalBody,
    sans-serif;
  fill: var(--muted) !important;
}
.flow-link {
  opacity: 0.3;
  cursor: pointer;
}
.flow-link:hover {
  opacity: 0.65;
}
.flow-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}
.flow-table {
  font-size: 11px;
  margin-top: 20px;
}
.flow-table summary {
  cursor: pointer;
  min-height: 32px;
}
.flow-fullview .report-head,
.flow-fullview .report-toolbar,
.flow-fullview #report-controls,
.flow-fullview #view-heading,
.flow-fullview #headline,
.flow-fullview .flow-intro,
.flow-fullview footer {
  display: none !important;
}
.flow-fullview main {
  padding: 0 !important;
  max-width: none;
}
.flow-fullview .report-paper {
  padding: 20px !important;
  border-radius: 0 !important;
}
.flow-fullview .sankey {
  min-width: 1000px;
}
.settings-intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0 24px;
  max-width: 900px;
}
.settings-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px;
  background: var(--soft);
  margin: 24px 0;
}
.settings-bar label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.settings-bar strong {
  font-size: 12px;
}
.group-create {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.group-create input {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
}
.groups-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.group-item button {
  font-size: 10px;
  min-height: 28px;
  padding: 3px 6px;
}
#groups,
#controls {
  padding: 8px 0;
}
#controls select,
#groups select {
  font-size: 11px;
  margin: 0;
  max-width: 180px;
}
.status {
  font-size: 10px;
  background: #edf5ef;
  color: #28593c;
  padding: 4px 7px;
  border-radius: 3px;
}
.status.off {
  background: var(--soft);
  color: var(--muted);
}
.audit {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  max-height: 220px;
  overflow: auto;
  margin-top: 24px;
}
.empty {
  padding: 36px 16px;
  line-height: 1.9;
  text-align: left;
  color: var(--muted);
}
.empty button {
  margin-top: 16px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .report-controls {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .filter-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .financial-head {
    gap: 28px;
  }
  .coverage-note {
    display: none;
  }
  .top-tabs {
    gap: 16px;
  }
  .distribution-grid {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
  .donut {
    width: 180px;
    height: 180px;
  }
  .report-paper,
  html.paper .report-paper {
    padding: 0 22px 20px !important;
  }
  .header-tools {
    font-size: 10px;
  }
  .rank-row {
    gap: 8px 12px;
  }
}
@media (max-width: 650px) {
  main {
    padding: 12px 10px 20px !important;
  }
  .report-head {
    gap: 8px;
    flex-wrap: wrap;
  }
  .report-head h1 {
    font-size: 21px !important;
    padding: 14px 18px 10px !important;
  }
  .header-tools {
    width: 100%;
    justify-content: flex-end;
    padding: 4px 0 10px;
    gap: 10px;
  }
  .report-paper,
  html.paper .report-paper {
    padding: 0 16px 20px !important;
  }
  .report-toolbar {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .top-tabs {
    gap: 18px;
    flex: 1;
    min-width: 0;
  }
  .top-tabs button {
    font-size: 11px;
    min-height: 46px;
  }
  .settings-menu summary {
    font-size: 10px;
  }
  .report-controls {
    margin-bottom: 20px;
  }
  .filter-controls {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .filter-controls select {
    min-width: 0;
    max-width: 62%;
    font-size: 10px;
  }
  #people-picker {
    min-width: 0;
    max-width: 40%;
  }
  #people-picker summary {
    font-size: 10px;
    max-width: 100%;
  }
  .people-options {
    left: 0;
    right: auto;
    width: 280px;
  }
  .title-line {
    gap: 12px;
  }
  .title-line h2 {
    font-size: 22px !important;
  }
  .title-line p {
    font-size: 10px;
  }
  .clear-button {
    font-size: 9px;
    padding: 5px 7px;
    min-height: 30px;
  }
  .financial-head {
    gap: 20px;
    flex-wrap: wrap;
    margin: 22px 0;
    padding-bottom: 20px;
  }
  .financial-head > div:first-child {
    flex-basis: 100%;
  }
  .financial-head .spend-amount {
    font-size: 34px;
  }
  .financial-head strong {
    font-size: 22px;
  }
  .metric-caption {
    font-size: 10px;
  }
  .section-top {
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-top h3 {
    font-size: 17px !important;
  }
  .muted {
    font-size: 11px;
  }
  .chart-key {
    font-size: 10px;
  }
  .trend-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .trajectory {
    min-width: 700px;
    max-height: none;
  }
  .distribution-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .donut-block {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
  }
  .donut-block p {
    text-align: left;
    max-width: 100px;
  }
  .donut {
    width: 165px;
    height: 165px;
  }
  .legend-head,
  .legend-row {
    grid-template-columns: 1fr 70px 37px 12px;
    gap: 6px;
  }
  .legend-row {
    font-size: 11px;
    padding: 10px 2px;
    min-height: 44px;
  }
  .legend-row .amount {
    font-size: 12px !important;
  }
  .share {
    font-size: 10px;
  }
  .name {
    gap: 7px;
  }
  .rank-row {
    grid-template-columns: minmax(140px, 1fr) 74px 14px;
    gap: 8px;
  }
  .rank-label {
    gap: 7px;
  }
  .rank-number {
    min-width: 14px;
  }
  .rank-label strong {
    font-size: 12px;
  }
  .rank-label small {
    font-size: 10px;
  }
  .rank-value strong {
    font-size: 12px;
  }
  .rank-bar {
    margin-left: 22px;
  }
  .investigation-actions {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .metric-switch button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .session-table td:first-child {
    min-width: 220px;
  }
  .session-intro dl {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .task-card-head {
    gap: 16px;
  }
  .task-card-head h4 {
    font-size: 14px;
  }
  .task-card-head .amount {
    font-size: 14px !important;
  }
  .session-intro > p {
    font-size: 12px;
  }
  .task-card > p {
    font-size: 11px;
  }
  .ledger-search {
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }
  .flow-intro {
    align-items: start;
    flex-direction: column;
  }
  .flow-toolbar {
    gap: 12px;
  }
  .flow-expand {
    margin-left: 0;
  }
  .flow-total {
    margin-left: auto;
  }
  .settings-bar {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .group-create input {
    min-width: 0;
    flex: 1;
  }
  .group-create button {
    font-size: 12px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
  #breadcrumbs button {
    max-width: 180px;
  }
  .title-line h2 {
    overflow-wrap: anywhere;
  }
}

.investigation-flow { padding: 16px 0 24px; border-bottom: 1px solid var(--line); }
.flow-fullview .investigation-actions,
.flow-fullview #content > .detail-section { display:none!important; }
.flow-fullview .investigation-flow { border:0; padding:0; }

/* Keep the selected person's flow within the first viewport. */
.investigation-actions { display:none; }
.investigation-flow .flow-page-scope { display:none; }
.flow-fullview .flow-page-scope { display:block; }
.flow-toolbar { border-color:var(--line)!important; padding:12px 0!important; margin-bottom:0; }
.flow-total span { color:var(--muted)!important; }
.investigation-flow { padding-top:0; }
.financial-head { margin:20px 0 16px; padding-bottom:18px; }

/* The unfiltered overview starts with useful period and financial context. */
.overview-period { margin:0; color:var(--muted); font-size:12px; }
.organization-overview .financial-head { margin:8px 0 16px; padding-bottom:16px; }
.organization-overview .trend-layout { padding-bottom:12px; }
.organization-overview .distribution-section { padding-top:16px; }
.organization-overview .distribution-section .section-top { margin-bottom:12px; }

.active-context { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.organization-overview .active-context { margin-top:0; }
.context-label { font-size:12px; color:var(--ink); font-weight:600; margin-right:4px; }
.period-chip, .scope-chip { display:inline-block; padding:7px 12px; border-radius:4px; font:600 14px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; }
.period-chip { color:#fff; background:#344eb5; }
.scope-chip { color:var(--ink); background:var(--accent-soft); border:1px solid var(--accent); overflow-wrap:anywhere; }
html:not(.paper) .period-chip { background:#dce4ff; color:#111e63; }

@media (min-width: 901px) {
  .distribution-grid { grid-template-columns:minmax(320px, 38%) minmax(0, 1fr); gap:32px; align-items:start; }
  .donut-block { align-self:start; width:100%; }
  .donut { width: min(100%, 380px); height:auto; aspect-ratio:1; margin:0 auto; }
}
.organization-overview #view-heading { height:0; }
.organization-overview .report-controls { margin-bottom:8px; }
.organization-overview #breadcrumbs { flex:1; }
.organization-overview .financial-head { margin-top:8px; }
/* Person inspection keeps the monthly chart and people list mounted. */
.context-label { font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.person-explorer .distribution-grid { grid-template-columns:260px minmax(0,1fr); gap:28px; align-items:start; }
.person-explorer .donut-block { display:none; }
.person-explorer .people-list { min-width:0; align-self:start; }
.person-explorer .legend-head, .person-explorer .legend-row { grid-template-columns:minmax(0,1fr) 76px; gap:8px; }
.person-explorer .legend-head > :nth-child(n+3), .person-explorer .legend-row .share, .person-explorer .legend-row .row-arrow { display:none; }
.person-explorer .legend-row { padding:12px 8px; }
.person-explorer .legend-row .name { font-size:13px; }
.person-explorer .legend-row.person-selected { background:var(--accent-soft)!important; border-left:3px solid var(--accent)!important; }
.person-explorer .legend-row.person-selected .name { font:650 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); }
#person-detail { min-width:0; border-left:1px solid var(--line); padding-left:24px; }
.person-detail-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.person-detail-heading h2 { font-size:22px!important; }
.person-detail-heading > span { font:500 12px/1.5 -apple-system,BlinkMacSystemFont,sans-serif; color:var(--muted); }
.person-explorer .distribution-section { padding-top:16px; }
.person-explorer .flow-scroll { overflow-x:auto; }
.person-explorer.flow-fullview .trend-layout, .person-explorer.flow-fullview .people-list, .person-explorer.flow-fullview .person-detail-heading { display:none!important; }
.person-explorer.flow-fullview .distribution-grid { display:block; }
.person-explorer.flow-fullview #person-detail { border:0; padding:0; }
@media(max-width:900px) {
 .person-explorer .distribution-grid { grid-template-columns:190px minmax(0,1fr); gap:16px; }
 .person-explorer .legend-row { grid-template-columns:1fr; }
 .person-explorer .legend-head { display:none; }
 #person-detail { padding-left:16px; }
}
@media(max-width:650px) {
 .person-explorer .distribution-grid { display:block; }
 .person-explorer .people-list { display:flex; gap:8px; overflow-x:auto; margin-bottom:16px; padding-bottom:8px; }
 .person-explorer .legend-row { flex:0 0 160px; border:1px solid var(--line)!important; }
 .person-explorer #person-detail { padding-left:0; border-left:0; }
}
@media(prefers-reduced-motion:reduce) { .people-list, #person-detail { animation:none!important; transition:none!important; } }

.person-explorer.flow-fullview #person-detail > .detail-section { display:none!important; }

@media(min-width:901px) {
  .trend-layout .section-top > div:first-child { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 16px; }
  .trend-layout .section-top .muted { margin-top:0; }
}
.organization-overview .trend-layout { padding-bottom:8px; }

/* The annual dollar estimate concludes the chart, with the strongest hierarchy. */
.chart-story { display:grid; grid-template-columns:minmax(0,1fr) 224px; gap:24px; align-items:center; }
.chart-story .trend-scroll { min-width:0; }
.chart-ending { border-left:1px solid var(--line); padding-left:24px; display:flex; flex-direction:column; gap:6px; }
.chart-ending > span { font:500 13px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; color:var(--ink); }
.chart-ending > strong { font:650 38px/1.15 -apple-system,BlinkMacSystemFont,sans-serif; letter-spacing:-1px; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.chart-ending > small { font-size:11px; line-height:1.5; color:var(--muted); }
.organization-overview .financial-head .spend-amount { font-size:28px; letter-spacing:-.5px; }
.organization-overview .financial-head > div:not(:first-child) > strong { font-size:20px; color:var(--muted); }
.flow-value .flow-share { fill:var(--muted); font-weight:400; font-size:13px; }
.flow-value .flow-dollars { fill:var(--ink); font-weight:650; font-size:16px; }
@media(max-width:1100px) {
 .chart-story { grid-template-columns:minmax(0,1fr) 190px; gap:16px; }
 .chart-ending { padding-left:16px; }
 .chart-ending > strong { font-size:32px; }
}
@media(max-width:800px) {
 .chart-story { grid-template-columns:minmax(0,1fr); gap:12px; }
 .chart-ending { border-left:0; padding:0; align-items:flex-end; text-align:right; }
 .chart-story .trend-scroll { overflow-x:auto; }
 .chart-story .trajectory { min-width:700px; }
}

.chart-footer { display:flex; justify-content:flex-end; align-items:baseline; flex-wrap:wrap; gap:8px 20px; margin-top:8px; }
.chart-footer .chart-key { gap:12px; }
.chart-footer .method { display:contents; }
.chart-footer .method summary { font-size:12px; color:var(--muted); }
.chart-footer .method p { flex-basis:100%; max-width:none; margin:0; font-size:12px; line-height:1.6; color:var(--muted); }
.chart-footer .method:not([open]) p { display:none; }

/* Footer belongs to the monthly plot column, excluding the annual estimate. */
.chart-footer { margin-right:248px; }
@media(max-width:1100px) { .chart-footer { margin-right:206px; } }
@media(max-width:800px) {
 .chart-story { display:contents; }
 .trend-layout { display:flex; flex-direction:column; }
 .trend-layout > .section-top { order:0; }
 .chart-story > .trend-scroll { order:1; }
 .chart-footer { order:2; margin-right:0; }
 .chart-story > .chart-ending { order:3; margin-top:12px; }
}

/* One pair of prominent controls replaces duplicated filter badges. */
.report-controls { justify-content:flex-start; flex-wrap:wrap; gap:12px 20px; }
.report-controls .filter-controls { order:0; flex-wrap:wrap; gap:8px; min-width:0; }
.report-controls #breadcrumbs { order:1; flex:1; }
#breadcrumbs:empty { display:none; }
#range.period-chip { order:-1; max-width:100%; min-height:40px; margin:0; padding:8px 32px 8px 12px; background-color:var(--soft)!important; color:var(--ink)!important; border-color:var(--line)!important; font:600 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; border-radius:4px; cursor:pointer; }
#range.period-chip option { background:var(--surface); color:var(--ink); }
#people-picker #people-selection { min-height:40px; display:flex; align-items:center; gap:8px; max-width:260px; padding:8px 12px; background:var(--soft); color:var(--ink); border:1px solid var(--line); font:600 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; border-radius:4px; }
#people-picker .people-options { left:0; right:auto; }
@media(max-width:650px) {
 .report-controls .filter-controls { width:100%; }
 #range.period-chip { width:100%; }
 #people-picker .people-options { max-width:calc(100vw - 72px); }
}
/* October product review: financial summary, compact monthly context, inline flow. */
.financial-head { align-items:center; gap:32px; }
.financial-head .forecast-summary { margin-left:auto; text-align:right; }


.chart-story { display:block; }
.chart-story .trajectory { max-height:170px; }
.chart-footer { position:relative; margin:8px 0 0!important; justify-content:flex-end; }
.chart-key { align-items:center; gap:16px; }
.chart-key > span { display:inline-flex; align-items:center; gap:7px; }
.legend-square { display:inline-block; width:18px; height:18px; border-radius:2px; flex-shrink:0; }
.actual-square { background:var(--bar-actual); }
.projected-square { background:repeating-linear-gradient(135deg,var(--bar-forecast) 0 6px,var(--bar-hatch) 6px 8px); border:1px solid var(--bar-hatch); }
button.projection-info { width:28px; height:28px; min-height:28px; padding:4px; border-radius:50%; display:grid; place-items:center; margin-left:-8px; align-self:flex-start; transform:translateY(-4px); }
.projection-tooltip { position:absolute; right:0; bottom:calc(100% + 10px); z-index:70; width:420px; max-width:calc(100vw - 72px); padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 32px #10204025; text-align:left; }
.projection-tooltip h4 { padding-right:24px; margin-bottom:10px; }
.projection-tooltip p { font-size:13px; line-height:1.6; margin-top:10px; color:var(--muted); }
.projection-close { position:absolute; top:8px; right:8px; border:0!important; min-height:28px; padding:0 8px; font-size:20px; }
.trajectory .month-change { font:650 12px -apple-system,BlinkMacSystemFont,sans-serif; pointer-events:none; }
.trajectory :is(.partial-month, .forecast-month) .month-change { stroke:var(--projected-text-outline); stroke-width:2px; stroke-linejoin:round; paint-order:stroke fill; vector-effect:non-scaling-stroke; }
.trajectory .month-change.increase { fill:#a32416!important; }
.trajectory .month-change.decrease { fill:#176142!important; }
.trajectory .month-change.neutral { fill:#536174!important; }
.person-crumb { font:600 13px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; }
.person-explorer .report-controls { align-items:center; }
.person-explorer #breadcrumbs { flex-basis:100%; order:-1; margin-bottom:4px; }
.person-explorer #breadcrumbs .clear-button { margin-left:auto; }
.flow-topline { display:flex; justify-content:space-between; align-items:start; gap:20px; padding:8px 0 16px; }
.flow-breadcrumbs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding-top:4px; font-size:12px; }
.flow-breadcrumbs button { border:0!important; padding:4px 0; background:transparent!important; text-align:left; min-height:28px; max-width:300px; overflow-wrap:anywhere; color:var(--muted)!important; }
.flow-breadcrumbs button[aria-current="location"] { font-weight:600; color:var(--ink)!important; }
.flow-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; }
.flow-actions .flow-total { text-align:right; padding:0; }
.flow-actions .flow-expand { width:32px; min-height:32px; height:32px; display:grid; place-items:center; padding:5px; margin:0; }
.flow-column-headings { display:grid; align-items:center; gap:0; margin:0 0 4px; }
.flow-column-headings .flow-column { font:500 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; color:var(--muted); text-transform:uppercase; }
.flow-column-headings select { border:0!important; font:inherit; text-transform:inherit; background:transparent!important; padding:4px 0; color:var(--muted)!important; min-height:28px; max-width:100%; cursor:pointer; }
.flow-fullview .person-detail-heading { display:none!important; }
.flow-fullview .flow-topline { padding-top:0; }
.flow-scroll .sankey { min-width:780px; }
@media(max-width:800px) {
 .financial-head { flex-wrap:wrap; gap:16px; }

 .financial-head .forecast-summary { margin-left:auto; }
 .chart-story { display:block; }
 .chart-footer { order:initial; }
 .flow-topline { gap:12px; }
 .flow-breadcrumbs button { max-width:200px; }
 .projection-tooltip { max-width:calc(100vw - 60px); }
}
@media(max-width:450px) {
 .financial-head .forecast-summary { flex-basis:100%; }

}

.financial-head .spend-amount,
.financial-head .forecast-summary > strong {
  font:600 28px/1.3 -apple-system,BlinkMacSystemFont,sans-serif!important;
  color:var(--ink)!important;
  letter-spacing:-.5px!important;
  font-variant-numeric:tabular-nums;
  display:block;
}

.flow-actions .flow-expand {
  order:-1;
  width:26px;
  height:26px;
  min-height:26px;
  padding:4px;
}
.flow-actions .flow-expand svg { width:16px; height:16px; }
.flow-actions { gap:4px; }

/* Keep each flow stage readable; deeper stages extend the canvas horizontally. */
.flow-scroll-frame { position:relative; min-width:0; }
.flow-scroll-frame::before, .flow-scroll-frame::after { content:""; position:absolute; top:0; bottom:14px; width:24px; pointer-events:none; z-index:2; opacity:0; transition:opacity .15s; }
.flow-scroll-frame::before { left:0; background:linear-gradient(to right,var(--surface),transparent); }
.flow-scroll-frame::after { right:0; background:linear-gradient(to left,var(--surface),transparent); }
.flow-scroll-frame.can-scroll-left::before, .flow-scroll-frame.can-scroll-right::after { opacity:1; }
.flow-scroll { scrollbar-width:none; overscroll-behavior-x:contain; }
.flow-scroll::-webkit-scrollbar { display:none; width:0; height:0; }
.flow-scroll:focus-visible { outline:2px solid var(--muted); outline-offset:3px; }
.flow-pan { display:flex; align-items:center; gap:12px; margin:0 0 12px; padding:7px 8px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.flow-pan[hidden] { display:none; }
.flow-pan button { flex:0 0 30px; width:30px; height:30px; min-height:30px; padding:5px; display:grid; place-items:center; border:0!important; border-radius:5px; background:transparent!important; color:var(--ink)!important; }
.flow-pan button:hover:not(:disabled) { background:color-mix(in srgb,var(--ink) 8%,transparent)!important; }
.flow-pan button:disabled { opacity:.25; cursor:default; }
.flow-pan svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; }
.flow-pan-position { appearance:none; -webkit-appearance:none; flex:1; min-width:0; width:100%; height:24px; margin:0; padding:0!important; border:0!important; border-radius:12px; background:transparent!important; cursor:ew-resize; }
.flow-pan-position::-webkit-slider-runnable-track { height:10px; border-radius:8px; background:color-mix(in srgb,var(--ink) 10%,transparent); }
.flow-pan-position::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:var(--thumb-width,80px); height:10px; border-radius:8px; background:var(--muted); box-shadow:0 0 0 2px var(--surface); }
.flow-pan-position::-moz-range-track { height:10px; border-radius:8px; background:color-mix(in srgb,var(--ink) 10%,transparent); }
.flow-pan-position::-moz-range-thumb { width:var(--thumb-width,80px); height:10px; border:0; border-radius:8px; background:var(--muted); }
.flow-pan-position:hover::-webkit-slider-thumb { background:var(--ink); }
.flow-pan-position:focus-visible { outline:2px solid var(--muted); outline-offset:2px; }

.flow-view-tools { order:-1; display:flex; align-items:center; gap:4px; }
.flow-view-tools .flow-expand { order:0; margin-left:4px; }
.flow-view-tools .flow-zoom, .flow-view-tools .flow-zoom-reset { display:grid; place-items:center; height:26px; min-height:26px; padding:4px; border:1px solid var(--line)!important; border-radius:3px; background:transparent!important; color:var(--ink)!important; }
.flow-view-tools .flow-zoom { width:26px; }
.flow-view-tools .flow-zoom svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; }
.flow-view-tools .flow-zoom-reset { min-width:43px; font:500 11px/1 -apple-system,BlinkMacSystemFont,sans-serif; font-variant-numeric:tabular-nums; }
.flow-view-tools button:hover:not(:disabled) { background:var(--soft)!important; }
.flow-view-tools button:disabled { opacity:.3; cursor:default; }
.flow-column-headings .flow-column { font-size:var(--flow-heading-size,12px); }

/* The eye belongs to Projected, rather than being a third legend item. */
.chart-key .projection-legend { position:relative; padding-right:21px; }
.projection-legend button.projection-info { position:absolute; top:-5px; right:0; width:18px; height:18px; min-height:18px; margin:0; padding:2px; transform:none; border:1px solid var(--line)!important; background:transparent!important; color:var(--muted)!important; cursor:help; }
.projection-legend .projection-info svg { width:12px; height:12px; }
.projection-legend button.projection-info:hover, .projection-legend button.projection-info[aria-expanded="true"] { color:var(--accent)!important; border-color:var(--accent)!important; background:var(--soft)!important; }
.flow-node-active .flow-node-bg { stroke:var(--accent)!important; stroke-width:1.5; fill:var(--accent-soft)!important; }
.flow-node-active .flow-name { font:650 16px -apple-system,BlinkMacSystemFont,sans-serif!important; }
.flow-node-active .flow-dollars { font-size:18px!important; font-weight:700!important; }
.flow-node-active .flow-share { font-size:14px!important; font-weight:600!important; }

/* Match the native period selector to the member selector across browsers. */
#range.period-chip, #people-picker #people-selection { box-sizing:border-box; height:44px; min-height:44px; line-height:22px; padding-top:10px; padding-bottom:10px; }
#range.period-chip { appearance:none; -webkit-appearance:none; }

/* A single control row: filters stay left, Settings stays right. */
#report-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 12px; padding-top:16px; margin-bottom:12px; }
#report-controls #breadcrumbs { grid-column:1 / -1; grid-row:1; min-width:0; margin:0 0 12px; }
#report-controls #breadcrumbs:empty, #report-controls [hidden] { display:none!important; }
#report-controls .filter-controls { grid-column:1; grid-row:2; display:flex; flex-flow:row nowrap; justify-content:flex-start; align-items:center; gap:8px; width:auto; min-width:0; }
.header-tools .settings-menu { margin:0; }
.header-tools .settings-menu summary { display:flex; gap:6px; align-items:center; min-height:44px; padding:10px 0 10px 8px; font-size:12px; white-space:nowrap; }
#report-controls #settings-back { grid-column:1; grid-row:2; justify-self:start; border:0!important; padding-left:0; }
#report-controls #range { width:auto; min-width:0; max-width:200px; flex:0 1 auto; }
#report-controls #people-picker { min-width:0; max-width:200px; flex:0 1 auto; }
#report-controls #people-selection { position:relative; display:block; max-width:100%; padding-right:28px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#report-controls #people-selection::after { content:none; }
@media(max-width:600px) {
 #report-controls { column-gap:8px; }
 #report-controls .filter-controls { gap:6px; }
 #report-controls #range, #report-controls #people-selection { font-size:12px; padding-left:9px; }
 #report-controls #range, #report-controls #people-selection { padding-right:29px; }
 .header-tools .settings-menu summary { font-size:11px; gap:3px; padding-left:0; }
}
/* Dollar amounts lead; selected month labels are visibly emphasized. */
.trajectory .bar-amount { font:600 12px -apple-system,BlinkMacSystemFont,sans-serif; fill:var(--ink)!important; font-variant-numeric:tabular-nums; }
.trajectory .bar-amount.projected-amount { font-style:italic; font-weight:300!important; fill:var(--projected-label)!important; }
.trajectory .month-point[aria-pressed="true"] .month-label { font:700 16px -apple-system,BlinkMacSystemFont,sans-serif; fill:var(--ink)!important; }
.trajectory .month-point[aria-pressed="true"] .bar-amount { font-size:14px; font-weight:700; }
.flow-pan { margin:12px 0 0; }

.trajectory .month-point[aria-pressed="true"] .month-bar { stroke:#2b65c5; stroke-width:1.5; }

/* Both selectors share one chevron asset, sizing, placement, and surface. */
:root { --filter-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23536684' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html:not(.paper) { --filter-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23dde5ff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#report-controls #range, #report-controls #people-selection {
 background-color:var(--soft)!important;
 color:var(--ink)!important;
 border:1px solid var(--line)!important;
 background-image:var(--filter-chevron)!important;
 background-repeat:no-repeat!important;
 background-position:right 12px center!important;
 background-size:12px 12px!important;
 padding-right:32px;
}
#report-controls #range:hover, #report-controls #people-selection:hover { background-color:var(--accent-soft)!important; }
#people-selection::-webkit-details-marker { display:none; }

.collection-search { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 16px; }
#collection-search { flex:0 1 340px; width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font-size:14px; }
#collection-search::placeholder { color:var(--muted); }
#collection-search-count { color:var(--muted); font-size:12px; }
#controls .collection-search [hidden], #collection-people tr[hidden] { display:none!important; }
#collection-no-results td { padding:24px 12px; color:var(--muted); }

/* Header actions sit together above the filter row. */
.header-tools { flex-wrap:nowrap; gap:8px; }
.header-tools .settings-menu summary { padding:8px 10px; min-height:40px; color:#eef0ff; border:1px solid #8089b4; border-radius:4px; }
.header-tools .settings-menu summary::-webkit-details-marker { display:none; }
