.oai-apify-dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
  color: #1f2937;
}
.oai-apify-header h2 {
  margin: 0 0 6px;
  font-size: 30px;
}
.oai-apify-header p {
  margin: 0 0 22px;
  color: #6b7280;
}
.oai-apify-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.oai-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 22px;
}
.oai-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 22px;
}
.stat-card { min-height: 110px; display: flex; flex-direction: column; justify-content: center; }
.stat-label { color: #6b7280; font-size: 14px; }
.stat-value { font-size: 34px; line-height: 1.1; }
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.section-title-row h3 { margin: 0; font-size: 22px; }
.section-hint { color: #6b7280; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.oai-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.oai-table th, .oai-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}
.oai-table th { color: #4b5563; font-weight: 700; }
.is-deficit { color: #b91c1c; font-weight: 700; }
.is-excess { color: #1d4ed8; font-weight: 700; }
.priority-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.priority-alta { background: #fee2e2; color: #b91c1c; }
.priority-media { background: #fef3c7; color: #b45309; }
.priority-baixa { background: #dbeafe; color: #1d4ed8; }
.insights-list { display: flex; flex-direction: column; gap: 10px; }
.insight-item {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.insight-high { background: #fff7ed; color: #9a3412; }
.insight-low { background: #eff6ff; color: #1e40af; }
.category-details {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 0 0 6px;
  margin-bottom: 12px;
}
.category-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 700;
}
.category-details summary::-webkit-details-marker { display: none; }
.muted-count { color: #6b7280; font-size: 13px; font-weight: 500; }
.nested-table { padding: 0 14px 8px; }
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.categoria-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  background: #fcfcfd;
}
.categoria-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.categoria-card h4 { margin: 0; font-size: 20px; }
.categoria-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
}
.hashtags-input {
  width: 100%;
  min-height: 115px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 14px;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.inline-fields label,
.categoria-card label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}
.inline-fields input,
.inline-fields select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: #166534; color: #fff; }
.btn-secondary { background: #111827; color: #fff; }
@media (max-width: 1024px) {
  .oai-apify-cards, .inputs-grid, .oai-grid-2 { grid-template-columns: 1fr; }
}
