/* =========================================================
   Reports (New report / My reports / Respond)
   Theme-first: uses only global :root tokens from index.css
   Standard controls + standard surfaces
   ========================================================= */

/* Shared wrappers → FULL WIDTH */
.myreports-wrap,
.respond-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px;
}

/* New Report page lives inside .settings-wrapper */
.report-new {
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Header rows → SINGLE COLUMN (stacked) */
.report-head,
.myreports-head,
.respond-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 12px;
}

/* New report header highlight */
.report-new .report-head {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56,189,148,.10), rgba(99,102,241,.12));
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* Titles */
.myreports-title,
.respond-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.myreports-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.subtle {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 6px;
}

/* Cards → standardized surface */
.cardish,
.rep-card,
.respond-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}

/* Top area → SINGLE COLUMN */
.rep-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.rep-title {
  font-weight: 900;
  font-size: 16px;
}

/* Details blocks should never be transparent */
.rep-details,
.respond-details {
  margin-top: 10px;
  opacity: .92;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Target pill (new report) — keep it dark + readable */
.target-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,86,86,.10);
  border: 1px solid rgba(255,86,86,.28);
  font-weight: 700;
}

.tt { text-transform: capitalize; }

.hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
}

/* New report form layout → SINGLE COLUMN */
.report-form {
  max-width: none;
  width: 100%;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row > div { flex: 1 1 auto; }

/* Compose */
.compose {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.compose label {
  font-weight: 800;
  font-size: 13px;
}

/* Textareas/inputs/selects already standardized via .account-input in index.css */

/* Actions rows */
.actions,
.rep-actions,
.compose-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.actions { justify-content: space-between; margin-top: 12px; }
.rep-actions { justify-content: flex-end; }
.compose-actions { justify-content: flex-end; }

@media (max-width: 520px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions > div:last-child { display: flex; justify-content: flex-end; }
}

/* Thread/response blocks:
   They are rooted in index.css, but ensure nothing overrides them to transparent */
.thread-empty {
  background: rgba(2,6,23,.22);
  border: 1px dashed var(--surface-border-dashed);
}

.resp {
  background: var(--surface-bg-strong);
  border: 1px solid var(--surface-border);
}

.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
