.accent-personal {
  border-left: 4px solid var(--personal);
}
.accent-sport {
  border-left: 4px solid var(--sport);
}
.accent-projects {
  border-left: 4px solid var(--projects);
}
.accent-family {
  border-left: 4px solid var(--family);
}
.accent-books {
  border-left: 4px solid var(--books);
}
.accent-plans {
  border-left: 4px solid var(--plans);
}

.empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
  background: rgba(127, 119, 221, 0.05);
}

.event-badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
}

.badge-competition { background: #ca5a35; }
.badge-trip { background: #378add; }
.badge-meeting { background: #7f77dd; }
.badge-concert { background: #8a5cf6; }
.badge-event { background: #0ea5a8; }
.badge-holiday { background: #d4537e; }
.badge-other { background: #687185; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2px;
}

.card.metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent), var(--card);
  position: relative;
  overflow: hidden;
}

.hero-strip {
  margin-top: 2px;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(125deg, rgba(127, 119, 221, 0.22), rgba(55, 138, 221, 0.2));
  border: 1px solid rgba(127, 119, 221, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-strip strong {
  font-size: 15px;
}

.hero-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-kpi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
}

.hero-kpi i {
  font-size: 0.95em;
  opacity: 0.88;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .section-head .d-flex {
    flex-wrap: wrap;
  }

  .hero-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-kpis {
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }

  .hero-kpi {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
    justify-content: center;
    text-align: center;
  }

  #section-personal .list.list-preview-fixed {
    min-height: 220px;
  }
}

.card.metric-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -30px;
  top: -35px;
  background: radial-gradient(circle, rgba(127, 119, 221, 0.2), transparent 70%);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--icon-accent-bg);
  color: var(--icon-accent);
  font-size: 14px;
}

[data-theme="dark"] .metric-icon {
  color: var(--icon-accent);
  background: var(--icon-accent-bg);
}

/* Главная: «Личные задачи» — минимальная высота как у ~3 карточек канбана, без max-height и скролла */
#section-personal .list.list-preview-fixed {
  min-height: 312px;
  align-content: start;
}
