/* Report-only styles; shared signing dialogs keep their existing appearance. */
html body.design-refresh #reportDialog {
  width: min(640px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgb(8 20 38 / 28%) !important;
}

#reportDialog::backdrop {
  background: rgb(12 23 40 / 60%);
  backdrop-filter: blur(4px);
}

.report-dialog-content { position: relative; padding: 30px; }
.report-dialog-header { display: flex; align-items: center; gap: 14px; padding-right: 34px; margin-bottom: 24px; }
html body.design-refresh #reportDialogTitle { margin: 0; font-size: 1.4rem; line-height: 1.25; }
.report-dialog-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border: 1px solid var(--ph-line); border-radius: 14px; background: var(--ph-soft); color: var(--ph-muted); }
.report-dialog-close { position: absolute; top: 22px; right: 20px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ph-muted); cursor: pointer; }
.report-dialog-close:hover { background: var(--ph-soft); color: var(--ph-ink); }

.report-dialog-warning { display: flex; align-items: flex-start; gap: 12px; padding: 18px; margin-bottom: 20px; border: 1px solid #efd8aa; border-left: 4px solid #bd791a; border-radius: 12px; background: #fff8eb; color: #704710; }
.report-warning-icon { flex: 0 0 24px; margin-top: 2px; }
.report-dialog-warning strong { display: block; font-size: 1.08rem; font-weight: 800; line-height: 1.4; }
.report-dialog-warning p { margin: 8px 0 0; font-size: .88rem; line-height: 1.6; }
#reportDialogDescription { color: var(--ph-muted); font-size: .88rem; line-height: 1.6; margin: 0 0 24px; }
#reportForm { display: grid; gap: 18px; }
#reportForm > div { margin: 0 !important; min-width: 0; }
#reportFormMessage:empty { display: none; }
html body.design-refresh #reportForm .form-control,
html body.design-refresh #reportForm .form-select { border-radius: 10px; background-color: var(--ph-paper); }
#reportForm textarea { min-height: 116px; resize: vertical; }
#reportForm .form-text { color: var(--ph-muted); font-size: .78rem; margin-top: 7px; }
.report-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ph-line); }
html body.design-refresh .report-dialog-actions .btn { min-height: 46px; padding: 11px 18px; border-radius: 10px; font-size: .86rem; white-space: normal; }
html body.design-refresh #reportSubmitButton { color: #fff; background: #af3838; border-color: #af3838; }
html body.design-refresh #reportSubmitButton:hover { background: #942e2e; border-color: #942e2e; }
html[data-theme="dark"] .report-dialog-warning { background: #362d20; border-color: #6b512d; border-left-color: #e9af51; color: #f6d397; }

@media (max-width: 575.98px) {
  .report-dialog-content { padding: 22px 18px; }
  .report-dialog-header { gap: 10px; margin-bottom: 20px; }
  .report-dialog-icon { flex-basis: 38px; height: 38px; border-radius: 11px; }
  html body.design-refresh #reportDialogTitle { font-size: 1.15rem; }
  .report-dialog-close { top: 17px; right: 12px; }
  .report-dialog-warning { gap: 10px; padding: 14px 12px; }
  .report-dialog-warning strong { font-size: 1rem; }
  .report-dialog-actions { flex-direction: column-reverse; }
  .report-dialog-actions .btn { width: 100%; }
}
