.media-page {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.media-page__dashboard {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .media-page__dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.media-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.media-page__toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.media-page__view-toggle {
  display: flex;
  gap: 2px;
}

.media-page__dropzone {
  border: 2px dashed var(--border-subtle, #e7ece9);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: var(--text-tertiary, #9aa6a2);
  font-size: var(--font-size-sm, 0.8125rem);
}

.media-page__dropzone--active {
  border-color: var(--brand-primary, #1e8a6e);
  background: var(--surface-muted, #eef2f0);
}

.media-page__bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.media-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.media-page__grid--list {
  grid-template-columns: 1fr;
}

.media-page__guide {
  margin: 0;
  font-size: var(--font-size-sm, 0.8125rem);
  color: var(--text-secondary, #5f6e6a);
  text-align: center;
}

.media-page__dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.media-page__error {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--danger, #c0392b);
  font-size: var(--font-size-sm, 0.8125rem);
  margin: 0;
}
