body[data-page="profile-public"] .profile-report-action {
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-panel) 72%, transparent);
  color: rgba(255, 250, 240, 0.82);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

body[data-page="profile-public"] .profile-report-action:hover,
body[data-page="profile-public"] .profile-report-action:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: #fff;
  outline: none;
}

body[data-page="profile-public"] .profile-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 24px;
}

body[data-page="profile-public"] .profile-report-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 10, 0.76);
}

body[data-page="profile-public"] .profile-report-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--surface-panel);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

body[data-page="profile-public"] .profile-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-color);
}

body[data-page="profile-public"] .profile-report-header h2,
body[data-page="profile-public"] .profile-report-header p,
body[data-page="profile-public"] .profile-report-hint,
body[data-page="profile-public"] .profile-report-field-error,
body[data-page="profile-public"] .profile-report-form-error {
  margin: 0;
}

body[data-page="profile-public"] .profile-report-header h2 {
  font-size: 1.3rem;
}

body[data-page="profile-public"] .profile-report-header p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

body[data-page="profile-public"] .profile-report-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-primary);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

body[data-page="profile-public"] .profile-report-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

body[data-page="profile-public"] .profile-report-hint {
  color: var(--text-secondary);
  line-height: 1.55;
}

body[data-page="profile-public"] .profile-report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-page="profile-public"] .profile-report-reasons legend,
body[data-page="profile-public"] .profile-report-details-label {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 800;
}

body[data-page="profile-public"] .profile-report-reasons label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--surface-input);
  cursor: pointer;
}

body[data-page="profile-public"] .profile-report-reasons label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

body[data-page="profile-public"] .profile-report-details-label {
  margin-bottom: -8px;
}

body[data-page="profile-public"] .profile-report-form textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--surface-input);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.5;
}

body[data-page="profile-public"] .profile-report-form textarea:focus,
body[data-page="profile-public"] .profile-report-close:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
}

body[data-page="profile-public"] .profile-report-details-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

body[data-page="profile-public"] .profile-report-field-error,
body[data-page="profile-public"] .profile-report-form-error,
body[data-page="profile-public"] .profile-report-counter-overflow {
  color: var(--danger);
}

body[data-page="profile-public"] .profile-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 640px) {
  body[data-page="profile-public"] .profile-report-overlay {
    place-items: end center;
    padding: 0;
  }

  body[data-page="profile-public"] .profile-report-dialog {
    width: 100%;
    max-height: 90vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  body[data-page="profile-public"] .profile-report-reasons {
    grid-template-columns: 1fr;
  }

  body[data-page="profile-public"] .profile-report-actions {
    flex-wrap: wrap-reverse;
  }

  body[data-page="profile-public"] .profile-report-actions button {
    flex: 1 1 180px;
  }
}
