.report-file-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line, #d4dde4);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #183f5b);
  box-shadow: 0 16px 48px rgb(10 30 45 / 22%);
}
.report-file-dialog::backdrop { background: rgb(7 22 33 / 48%); touch-action: none; }
.report-file-dialog h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; color: inherit; }
.report-file-dialog p { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.report-file-intro { margin: 0 0 20px; color: var(--muted, #536d80); }
.report-file-status { margin: 0 0 16px; font-weight: 600; }
.report-file-name { margin: 0 0 16px; font-size: 13px !important; color: var(--muted, #536d80); }
.report-file-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-file-dialog .report-file-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong, #9caebb);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text, #183f5b);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.report-file-dialog [hidden] { display: none !important; }
.report-file-dialog .report-file-primary { grid-column: 1 / -1; background: var(--accent-text, #1d4e70); border-color: var(--accent-text, #1d4e70); color: var(--surface, #fff); }
.report-file-dialog .report-file-close { width: 100%; margin-top: 18px; border-color: transparent; background: transparent; }
.report-file-dialog .report-file-action:focus-visible { outline: 3px solid var(--focus, #1683bd); outline-offset: 3px; }
.report-file-dialog .report-file-action:disabled { opacity: .6; cursor: wait; }
.report-file-dialog[data-state="loading"] .report-file-status { border-left: 3px solid var(--accent-text, #1d4e70); padding-left: 12px; }
@media (max-width: 380px) { .report-file-dialog { padding: 18px; } }
@media print { .report-file-dialog, .report-file-dialog::backdrop { display: none !important; } }
