#nfn-dashboard-totals {
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: 100%;
  padding: 24px;
  border: 1px solid #dde2de;
  border-radius: 16px;
  background: #fff;
  color: #17211a;
}
#nfn-dashboard-totals h2 { margin: 0 0 20px; font: 600 22px/1.3 Inter, sans-serif; }
.nfn-dashboard-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; }
.nfn-dashboard-metric { min-width: 0; padding: 0 20px; }
.nfn-dashboard-metric:first-child { padding-left: 0; }
.nfn-dashboard-metric + .nfn-dashboard-metric { border-left: 1px solid #dde2de; }
.nfn-dashboard-metric dt { font: 600 15px/1.4 Inter,sans-serif; color: #52645a; }
.nfn-dashboard-metric dd { margin: 4px 0; font: 700 42px/1.1 Inter,sans-serif; color: #183f32; }
.nfn-dashboard-metric p { margin: 0; font: 400 13px/1.4 Inter,sans-serif; color: #667069; }
.nfn-dashboard-detail-link { border: 0; padding: 0; background: none; color: #376b52; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.nfn-dashboard-detail-link:hover { color: #245e50; }
.nfn-stats-overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; background: #10291f99; }
.nfn-stats-dialog { width: min(100%,620px); max-height: min(80vh,760px); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; color: #183f32; box-shadow: 0 25px 80px #10291f40; }
.nfn-stats-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #dde2de; }
.nfn-stats-dialog h2 { margin: 0; font: 700 22px/1.25 Inter,sans-serif; }
.nfn-stats-close { border: 0; padding: 8px 0; background: none; color: #376b52; font: 600 14px/1.3 Inter,sans-serif; cursor: pointer; }
.nfn-stats-dialog-content { overflow: auto; padding: 8px 24px 22px; }
.nfn-stats-list { list-style: decimal; margin: 0; padding: 0 0 0 24px; }
.nfn-stats-list li { padding: 12px 0; border-bottom: 1px solid #e7ebe7; overflow-wrap: anywhere; }
.nfn-stats-list strong { display: block; }
.nfn-stats-list a { color: #376b52; text-decoration: underline; }
@media (max-width: 900px) {
  .nfn-dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 20px; }
  .nfn-dashboard-metric:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .nfn-dashboard-metrics { grid-template-columns: 1fr; gap: 18px; }
  .nfn-dashboard-metric, .nfn-dashboard-metric:first-child { padding: 0; }
  .nfn-dashboard-metric + .nfn-dashboard-metric, .nfn-dashboard-metric:nth-child(3) { padding: 18px 0 0; border-left: 0; border-top: 1px solid #dde2de; }
}
