* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: #f6f7fb;
  margin: 0;
  padding: 30px;
  color: #111;
}

h1 {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions .btn {
  font-size: 14px;
  padding: 8px 14px;
}

.btn.active {
  background: #111827;
  color: white;
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: #4f46e5;
  color: white;
}

.btn-secondary {
  background: #e5e7eb;
}

.btn-success {
  background: #16a34a;
  color: white;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.card h3 {
  margin: 0 0 6px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.photo { background: #e0f2fe; color: #0369a1; }
.badge.carousel { background: #ede9fe; color: #5b21b6; }
.badge.reels { background: #fee2e2; color: #991b1b; }

.status {
  font-size: 13px;
  margin-top: 6px;
}

.muted {
  color: #6b7280;
  font-size: 13px;
}

pre {
  background: #f3f4f6;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
