.media-picker {
  display: grid;
  gap: 14px;
}

.media-picker__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.media-picker__preview {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md, 6px);
  background: var(--bg-secondary, #f4f4f5);
  margin-bottom: 6px;
}

.media-picker__preview--file {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--text-secondary, #6b7280);
  text-align: center;
  padding: 6px;
}

.media-picker__error {
  color: var(--color-danger, #d9433c);
  font-size: var(--font-size-sm, 0.8125rem);
  margin: 0;
}

.media-picker__card--focused {
  outline: 2px solid var(--brand-primary, #1e8a6e);
  outline-offset: 2px;
}

.media-picker__filename {
  display: block;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-primary, #1f322d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
