.thraid-alerts {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 1.25rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .24), transparent 35%),
    linear-gradient(135deg, rgba(24, 24, 27, .98), rgba(9, 9, 11, .98));
  color: #fff;
  overflow: hidden;
}

html.light .thraid-alerts {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .12), transparent 35%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  color: #050505;
  border-color: #cbd5e1;
}

.alerts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.alerts-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #60a5fa;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html.light .alerts-kicker { color: #1d4ed8; }

.alerts-title {
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.12;
}

.alerts-note {
  color: #a1a1aa;
  font-size: .74rem;
  margin-top: .15rem;
}

html.light .alerts-note { color: #475569; }

.alerts-refresh {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  cursor: pointer;
}

html.light .alerts-refresh { background: #f8fafc; border-color: #cbd5e1; }

.alerts-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin: .9rem 0;
}

.alerts-stat {
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: .85rem;
  padding: .55rem;
  background: rgba(255, 255, 255, .06);
  font-size: .68rem;
  color: #a1a1aa;
}

html.light .alerts-stat {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
}

.alerts-stat strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: .2rem;
}

html.light .alerts-stat strong { color: #050505; }

.alerts-list {
  display: grid;
  gap: .5rem;
}

.alert-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: .9rem;
  padding: .62rem;
  background: rgba(0, 0, 0, .16);
  text-decoration: none;
  color: inherit;
}

html.light .alert-row {
  background: #fff;
  border-color: #e2e8f0;
}

.alert-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  color: #050505;
  background: #fcbf06;
}

.alert-label {
  font-weight: 900;
  line-height: 1.12;
}

.alert-detail {
  color: #a1a1aa;
  font-size: .72rem;
  margin-top: .12rem;
}

html.light .alert-detail { color: #475569; }

.alert-count {
  min-width: 1.75rem;
  height: 1.75rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: .76rem;
  font-weight: 950;
}

.alerts-empty {
  border: 1px dashed rgba(148, 163, 184, .28);
  border-radius: .9rem;
  padding: .8rem;
  color: #a1a1aa;
  font-size: .8rem;
}

html.light .alerts-empty { color: #475569; border-color: #cbd5e1; }
