.fund-card { background: white; padding: 1rem; border-radius: 1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.fund-totals { display: grid; gap: 1rem; margin: 1rem 0; }
.fund-totals dt { color: #64748b; }
.fund-totals dd { font-weight: 600; }
.fund-card summary { cursor: pointer; min-height: 44px; padding: .75rem 0; }
.fund-contribution { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.fund-contribution strong { flex-shrink: 0; }
.fund-contribution-form { display: grid; gap: .75rem; margin-top: 1rem; }
.fund-contribution-form fieldset { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.fund-contribution-form input[type=text] { width: 100%; min-width: 0; border: 1px solid #cbd5e1; border-radius: .5rem; padding: .75rem; }
.fund-payment-source { margin-bottom: .75rem; }
.settlement-pay-button:disabled { opacity: .6; cursor: not-allowed; }
@media (min-width: 640px) { .fund-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fund-section { border-top: 1px solid #e2e8f0; margin-top: 1rem; padding-top: 1rem; }
.fund-section-title { font-size: 1.125rem; font-weight: 600; margin-bottom: .75rem; }
.fund-empty-note { color: #64748b; font-size: .875rem; margin: 0; }
.fund-contributions { padding-top: 0; }
.fund-card .expense-card { border: 1px solid #e2e8f0; box-shadow: none; }
.fund-totals dd { margin: .25rem 0 0; }
@media (max-width: 639px) {
  .fund-totals { gap: .5rem; }
  .fund-totals > div { display: flex; justify-content: space-between; gap: .75rem; }
  .fund-totals dd { text-align: right; margin: 0; }
}

.fund-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: .5rem .75rem; border-radius: .75rem; }
.fund-card > .fund-overview { display: flex; align-items: center; gap: 1rem; padding: .25rem 0; }
.fund-overview::after { content: "⌄"; margin-left: auto; }
.fund-title { font-size: .95rem; font-weight: 600; margin: 0; }
.fund-overview .fund-totals { flex: 1; margin: 0; font-size: .875rem; gap: .75rem; }
@media (max-width: 639px) {
  .fund-card > .fund-overview { flex-wrap: wrap; gap: .25rem; }
  .fund-overview .fund-totals { flex-basis: 100%; order: 1; }
}
