.social-reporting-module {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-reporting-client-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.social-reporting-client-picker select {
  min-width: 190px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 34px 0 12px;
}

.social-reporting-summary,
.social-reporting-kpis,
.social-reporting-coverage,
.social-reporting-visual-assets,
.social-reporting-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.social-reporting-summary article,
.social-reporting-kpi,
.social-reporting-coverage article,
.social-reporting-visual-assets article,
.social-reporting-sources article,
.social-reporting-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.social-reporting-summary span,
.social-reporting-kpi span,
.social-reporting-coverage span,
.social-reporting-visual-assets span,
.social-reporting-sources span,
.social-reporting-list span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.social-reporting-summary strong,
.social-reporting-kpi strong,
.social-reporting-coverage strong,
.social-reporting-visual-assets strong,
.social-reporting-sources strong,
.social-reporting-list strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.social-reporting-summary small,
.social-reporting-kpi small,
.social-reporting-coverage small,
.social-reporting-visual-assets small,
.social-reporting-sources small,
.social-reporting-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.social-reporting-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.social-reporting-visual-assets p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.social-reporting-capture-state {
  margin-top: 10px;
  border: 1px dashed color-mix(in srgb, var(--blue) 38%, var(--line));
  border-radius: 8px;
  padding: 9px 10px;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}

.social-reporting-capture-state span {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: none;
}

.social-reporting-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.social-reporting-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  object-fit: cover;
}

.social-reporting-list ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.social-reporting-list li + li {
  margin-top: 3px;
}

.social-reporting-metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.social-reporting-metric-chips span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: none;
}

.social-reporting-metric-chips b {
  color: var(--muted);
  font-size: 0.72rem;
}

.social-reporting-kpi strong {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.75rem);
}

.social-reporting-kpi b {
  color: var(--teal);
  margin-right: 8px;
}

.social-reporting-kpi mark,
.social-reporting-coverage mark,
.social-reporting-visual-assets mark,
.social-reporting-chart-column mark,
.social-reporting-list mark {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.social-reporting-kpi.estimated mark,
.social-reporting-coverage article.partial mark,
.social-reporting-coverage article.estimated mark,
.social-reporting-chart-column mark {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
}

.social-reporting-coverage article.complete mark {
  background: color-mix(in srgb, var(--teal) 16%, transparent);
}

.social-reporting-coverage article.missing mark,
.social-reporting-coverage article.needs_review mark {
  background: color-mix(in srgb, var(--red) 14%, transparent);
}

.social-reporting-layout,
.social-reporting-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.social-reporting-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  min-height: 230px;
}

.social-reporting-chart-column {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.social-reporting-bars {
  height: 140px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--line);
}

.social-reporting-bars span {
  width: 100%;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
}

.social-reporting-bars .reach {
  background: #2563eb;
}

.social-reporting-bars .interactions {
  background: #16a34a;
}

.social-reporting-chart-column strong {
  color: var(--text);
}

.social-reporting-chart-column small {
  color: var(--muted);
}

.social-reporting-quality {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.social-reporting-quality-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.social-reporting-quality-row div {
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}

.social-reporting-quality-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #16a34a);
}

.social-reporting-list {
  display: grid;
  gap: 10px;
}

.social-reporting-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.social-reporting-data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.social-reporting-data-table th,
.social-reporting-data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.social-reporting-data-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-reporting-data-table td:nth-child(n+5),
.social-reporting-data-table th:nth-child(n+5) {
  text-align: right;
}

.social-reporting-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.social-reporting-list h4 {
  margin: 0;
  color: var(--text);
}

.social-reporting-report {
  display: grid;
  gap: 12px;
}

.social-reporting-copy-editor {
  display: grid;
  gap: 12px;
}

.social-reporting-section-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.social-reporting-section-tab {
  flex: 0 0 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.social-reporting-section-tab.active {
  border-color: color-mix(in srgb, var(--teal) 65%, var(--line));
  background: color-mix(in srgb, var(--teal) 12%, var(--surface));
}

.social-reporting-section-tab span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-reporting-section-tab strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.social-reporting-copy-editor article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.social-reporting-section-editor {
  display: grid;
  gap: 12px;
}

.social-reporting-section-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.social-reporting-section-data article {
  padding: 12px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.social-reporting-section-data article span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-reporting-section-data article strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  line-height: 1.25;
}

.social-reporting-section-data article p,
.social-reporting-section-data article small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.social-reporting-section-data .social-reporting-data-table.compact {
  min-width: 620px;
}

.social-reporting-section-mini-item + .social-reporting-section-mini-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.social-reporting-copy-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.social-reporting-copy-header span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.social-reporting-copy-header strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.social-reporting-copy-editor textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.45;
}

.social-reporting-copy-editor small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.social-reporting-copy-editor .text-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.social-reporting-copy-editor .text-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.social-reporting-report-cover {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, #2563eb 12%);
}

.social-reporting-report-cover span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.social-reporting-report-cover h3 {
  margin: 8px 0;
  color: var(--text);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
}

.social-reporting-report-cover p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.social-reporting-report article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.social-reporting-report article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.social-reporting-report h4 {
  margin: 0;
  color: var(--text);
}

.social-reporting-report article span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.social-reporting-report article p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .social-reporting-layout,
  .social-reporting-two-columns {
    grid-template-columns: 1fr;
  }

  .social-reporting-client-picker {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .social-reporting-client-picker select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .social-reporting-report article div {
    display: block;
  }

  .social-reporting-copy-header {
    display: block;
  }

  .social-reporting-copy-header .text-button {
    margin-top: 10px;
  }

  .social-reporting-report article span {
    display: block;
    margin-top: 6px;
    white-space: normal;
  }
}
