.ht-report-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  height: min(940px, calc(100dvh - 32px));
  max-height: none;
  overflow: hidden;
}
.ht-report-dialog[open] { display: flex; flex-direction: column; }
.ht-report-dialog > header { flex: none; gap: 16px; }
.ht-report-project { margin: 4px 0 0; font: var(--type-caption); color: var(--text-secondary); overflow-wrap: anywhere; }
.ht-report-controls { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-default); }
.ht-report-controls p { margin: 0; font: var(--type-caption); color: var(--text-secondary); }
.ht-report-controls label { display: flex; align-items: center; gap: 8px; flex: none; font: var(--type-caption); }
.ht-report-controls select { height: 44px; max-width: 260px; border: 1px solid var(--line-default); background: var(--surface-card); color: var(--text-primary); border-radius: var(--radius-1); padding: 0 8px; font: var(--type-caption); }
.ht-report-pages { flex: 1; min-height: 0; overflow: auto; background: var(--surface-canvas); padding: 20px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.ht-report-sheet { margin: 0 auto 24px; max-width: 794px; scroll-margin-top: 12px; }
.ht-report-sheet:last-child { margin-bottom: 0; }
.ht-report-sheet figcaption { margin-bottom: 8px; font: var(--type-mono); color: var(--text-secondary); }
.ht-report-sheet img { display: block; width: 100%; height: auto; background: var(--surface-card); border: 1px solid var(--line-default); box-shadow: var(--shadow-1); }
.ht-report-feedback { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; border-top: 1px solid var(--line-default); }
.ht-report-message { margin: 0; font: var(--type-caption); color: var(--text-secondary); }
.ht-report-dialog > footer { flex: none; display: block; padding: 12px 20px; }
.ht-report-allowance-block p { margin: 0 0 4px; font: var(--type-caption); color: var(--text-secondary); }
.ht-report-allowance-block .ht-report-quota { color: var(--text-primary); font: var(--type-mono); }
.ht-report-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ht-report-print-frame { position: fixed; width: 1px; height: 1px; border: 0; bottom: 0; right: 0; }
@media (max-width: 600px) {
  .ht-report-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .ht-report-dialog > header, .ht-report-dialog > footer, .ht-report-feedback { padding: 8px 12px; }
  .ht-report-controls { padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
  .ht-report-controls label { width: 100%; }
  .ht-report-controls select { flex: 1; max-width: none; min-width: 0; }
  .ht-report-pages { padding: 12px 8px; }
  .ht-report-actions .ht-btn--primary { flex: 1; }
}
