.loading,
.empty,
.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 1rem;

  mat-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.5;
  }
}

.error mat-icon {
  color: var(--warn-color, #f44336);
}

.intro {
  margin-bottom: 0.5rem;
}

.warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 152, 0, 0.1);
  border-radius: var(--card-border-radius);
  color: var(--warn-color, #ff9800);

  mat-icon {
    flex-shrink: 0;
  }
}

.restore-points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.restore-point {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  border-radius: var(--card-border-radius);
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;

  &:hover {
    // Migrated to state token: was `var(--hover-bg, rgba(0,0,0,0.04))`
    // (the `--hover-bg` legacy var is never declared in this codebase) —
    // now consumes `--state-hover`, mode-aware and theme-tunable.
    background: var(--state-hover);
  }

  &.selected {
    border-color: var(--primary-color, #3f51b5);
    // Migrated to state token: was a brand-tinted overlay. Switching to
    // `--state-selected` (ink-on-surface) is the convention for selected
    // rows; the brand outline still differentiates this state visually.
    background: var(--state-selected);
  }
}

.type-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.point-info {
  flex: 1;
  min-width: 0;
}

.point-date {
  font-weight: 500;
}

.point-type {
  font-size: 0.875rem;
  opacity: 0.7;
}

.point-desc {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

.selected-icon {
  flex-shrink: 0;
  color: var(--primary-color, #3f51b5);
}

[mat-dialog-actions] {
  button mat-spinner {
    display: inline-block;
  }
}
