.alerts-view {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.alerts-main {
  padding: 1.5rem var(--margin-main) 2rem;
}

.alerts-header {
  margin-bottom: 2rem;
}

.alerts-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.alerts-subtitle {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  font-weight: 400;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.alert-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid transparent;
}

.alert-card--primary { border-color: rgba(0, 69, 13, 0.1); }
.alert-card--tertiary { border-color: rgba(70, 0, 173, 0.1); }

.alert-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-icon--primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.alert-icon--tertiary {
  background: var(--tertiary-container);
  color: var(--on-tertiary);
}

.alert-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}

.alert-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

.alert-badge--primary {
  background: var(--error-container);
  color: var(--on-error-container);
}

.alert-badge--tertiary {
  background: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed-variant);
}

.alert-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.alert-delete {
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--outline);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.alert-delete:hover {
  background: var(--surface-container-high);
}

/* Dark mode adaptations */
[data-theme="dark"] .alert-card {
  background: var(--surface-container);
}

[data-theme="dark"] .alert-badge--primary {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

[data-theme="dark"] .alert-badge--tertiary {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
}

[data-theme="dark"] .alert-icon--primary {
  background: rgba(142, 212, 160, 0.15);
  color: #8ed4a0;
}

[data-theme="dark"] .alert-icon--tertiary {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

[data-theme="dark"] .alert-delete {
  border-color: var(--border);
  color: var(--text-muted);
}

[data-theme="dark"] .alert-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: #f87171;
}

@media (max-width: 400px) {
  .alerts-title {
    font-size: 1.5rem;
  }
}
