.home-overview-page .hero-row {
  align-items: flex-start;
  margin-bottom: 18px;
}

.home-overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.home-system-overview {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.home-overview-heading,
.home-fiscal-heading,
.home-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.home-overview-heading > div,
.home-fiscal-heading > div,
.home-card-heading > div {
  display: grid;
  gap: 4px;
}

.home-overview-heading > div > span,
.home-fiscal-heading > div > span,
.home-card-heading > div > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-overview-heading h3,
.home-fiscal-heading h3,
.home-card-heading h3 {
  margin: 0;
  color: #111827;
}

.home-overview-heading p,
.home-fiscal-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-interest-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-interest-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #cbd5e1;
}

.home-interest-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.home-interest-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-interest-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 24px;
}

.home-interest-card small {
  color: var(--muted);
  line-height: 1.4;
}

.home-interest-card.leads::before { background: #7c3aed; }
.home-interest-card.urgent::before { background: #ef4444; }
.home-interest-card.connection::before { background: #22c55e; }
.home-interest-card.fiscal::before { background: #f59e0b; }

.home-interest-card.connection strong {
  font-size: 18px;
}

.home-interest-card.connection strong i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}
.home-interest-card.connection strong i.waiting { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.12); }
.home-interest-card.connection strong i.unstable { background: #ef4444; box-shadow: 0 0 0 5px rgba(239,68,68,.12); }
.home-interest-card.connection strong i.offline { background: #94a3b8; box-shadow: 0 0 0 5px rgba(148,163,184,.14); }

.home-attendance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 14px;
}

.home-priority-card,
.home-attendance-summary {
  padding: 20px;
}

.home-card-heading {
  margin-bottom: 15px;
}

.home-card-heading a {
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.home-priority-lead {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid #fee2e2;
  border-radius: 15px;
  background: #fffafa;
  color: inherit;
  text-decoration: none;
}

.home-priority-lead > b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
}

.home-priority-lead > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-priority-lead p,
.home-priority-lead small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.home-priority-lead > span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.home-summary-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.home-summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.home-summary-list > div:last-child {
  border-bottom: 0;
}

.home-summary-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #374151;
}

.home-summary-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.home-summary-list i.active { background: #22c55e; }
.home-summary-list i.waiting { background: #f59e0b; }
.home-summary-list i.recovered { background: #3b82f6; }

.home-overview-page > .metrics,
.home-overview-page > .card {
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .home-interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-attendance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-overview-actions,
  .home-overview-heading,
  .home-fiscal-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .home-overview-actions .button {
    justify-content: center;
  }

  .home-interest-grid {
    grid-template-columns: 1fr;
  }

  .home-priority-lead {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .home-priority-lead > span {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
