.notification-header {
  align-items: flex-start;
}

.notification-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.notification-summary-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.notification-summary-card span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-summary-card strong {
  font-size: 28px;
  line-height: 1;
}

.notification-summary-card.is-critical strong,
.notification-summary-card.is-danger strong {
  color: var(--danger);
}

.notification-summary-card.is-warning strong {
  color: var(--amber);
}

.notification-summary-card.is-info strong {
  color: var(--blue);
}

.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.notification-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-tab {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 900;
  cursor: pointer;
}

.notification-tab.is-active {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary);
}

.notification-count {
  color: var(--text-muted);
  font-weight: 800;
  white-space: nowrap;
}

.notification-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.notification-list {
  display: grid;
}

.notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(96px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: var(--surface-muted);
}

.notification-type {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
}

.notification-type svg {
  width: 18px;
  height: 18px;
}

.type-critical,
.type-danger {
  color: var(--danger);
  background: #fef2f2;
}

.type-warning {
  color: var(--amber);
  background: #fffbeb;
}

.type-info {
  color: var(--blue);
  background: #eff6ff;
}

.notification-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-label {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.label-critical,
.label-danger {
  background: #fef2f2;
  color: var(--danger);
}

.label-warning {
  background: #fffbeb;
  color: var(--amber);
}

.label-info {
  background: #eff6ff;
  color: var(--blue);
}

.notification-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-copy {
  color: var(--text-muted);
  font-size: 13px;
}

.notification-date {
  display: grid;
  gap: 2px;
  color: var(--text-muted);
  text-align: right;
}

.notification-date strong {
  color: var(--text);
}

.notification-date span {
  font-size: 12px;
  font-weight: 800;
}

.notification-empty {
  padding: 28px 16px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 980px) {
  .notification-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-count {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .notification-summary-grid {
    grid-template-columns: 1fr;
  }

  .notification-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .notification-date {
    grid-column: 2;
    text-align: left;
  }
}
