.cash-overview { border-top: 3px solid #7338cb; }
.cash-grid, .release-changes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cash-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e9e1f4;
  border-radius: 14px;
  padding: 14px;
  background: #faf8fe;
}
.cash-tile h3 {
  width: 100%;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
}
.cash-icon {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  height: 28px;
  color: #6323b4;
  border-radius: 8px;
  background: #eee4fa;
}
.cash-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cash-value {
  font-size: clamp(16px, 2vw, 23px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cash-tile p { margin: 6px 0 10px; color: #504668; font-size: 13px; overflow-wrap: anywhere; }
.cash-action {
  min-height: 40px;
  margin-top: auto;
  padding: 0 4px;
  background: none;
  border: 0;
  color: #6323b4;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cash-action:focus-visible, .release-entry summary:focus-visible,
.statement-actions label:focus-within { outline: 2px solid #6323b4; outline-offset: 3px; }
.review-summary {
  padding: 8px 12px;
  background: #f3ecfc;
  color: #453060;
  border-radius: 8px;
  font-weight: 650;
}
.statement-actions label:has(input[type="radio"]) {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
}
.release-entry { border-top: 1px solid #e9e1f4; }
.release-entry summary { cursor: pointer; padding: 12px 4px; }
.release-entry time { margin-inline-start: 8px; color: #504668; white-space: nowrap; }
.release-changes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 8px 14px; }
.release-changes h3 { font-size: 14px; margin: 0; }
.release-changes ul { margin: 6px 0 0; padding-inline-start: 18px; }
@media (max-width: 980px) { .cash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .cash-grid, .release-changes { grid-template-columns: 1fr; } }

.budget-months {
  min-inline-size: 0;
  margin: 0;
  border: 1px solid #ded5eb;
  border-radius: 10px;
  padding: 10px 13px 12px;
}
.budget-months legend { padding: 0 5px; font-weight: 700; }
.budget-months label { display: flex; align-items: center; gap: 7px; min-height: 34px; cursor: pointer; }
.budget-months input { width: auto; accent-color: #7338cb; }
.budget-select-all { font-weight: 700; }
.budget-month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 9px; }
.life-rows { max-height: 280px; overflow: auto; }
.life-blockers { padding-left: 20px; }
.life-blockers li { padding: 4px 0; }
.life-blockers li button { margin-inline-start: 6px; }
main[data-page="nivus"] .topbar { margin-bottom: 10px; }
.financing-toolbar { display: flex; align-items: center; margin: 0 0 14px; }
.due-list { list-style: none; margin: 0; padding: 0; }
.due-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #e9e1f4;
}
.due-item div { overflow-wrap: anywhere; }
.due-marker { color: #504668; }
.due-marker-late { color: #a22138; font-weight: 700; }
.due-counts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; font-weight: 650; }
#tx-due-field[hidden], #tx-card-field[hidden], #tx-due-help[hidden], .statement-row[hidden] { display: none; }
.tx-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; align-items: start; }
.tx-wide { grid-column: span 2; }
.tx-full { grid-column: 1/-1; }
.tx-date input { min-width: 0; font-variant-numeric: tabular-nums; }
.tx-date input::-webkit-calendar-picker-indicator { cursor: pointer; padding: 4px; }
.tx-help { margin: -4px 0 2px; }
.tx-extra { padding: 8px 0; }
.tx-extra summary { cursor: pointer; font-weight: 700; }
.tx-extra .field { margin-top: 10px; }
.budget-comparison { padding: 15px 18px; }
.cash-risk { border-inline-start: 4px solid #a22138; }
.review-batch { padding: 10px 12px; border: 1px solid #e9e1f4; border-radius: 10px; }
.review-batch .chip-row { margin-top: 8px; }
.review-batch p { margin: 5px 0 0; }
@media (max-width: 570px) {
  .tx-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tx-date { grid-column: span 1; }
}
@media (max-width: 540px) {
  .budget-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
