#rsx-en-tool { min-width: 0; }
.rsx-list { display: grid; gap: 12px; margin: 12px 0; }
.rsx-row, .rsx-review { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.rsx-row-head, .rsx-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.rsx-row-head { justify-content: space-between; }
.rsx-wide { grid-column: 1 / -1; }
#rsx-en-confirm { padding: 10px; background: #fff7e6; margin-top: 10px; }
#rsx-en-results { display: grid; gap: 10px; margin: 10px 0; }
.rsx-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #e9ecf1; margin: 12px 0; }
.rsx-paper { --rsx-ac: #1d4ed8; width: 210mm; min-height: 297mm; padding: 14mm 15mm; box-sizing: border-box; background: white; color: #202632; transform-origin: 0 0; font-family: Arial, sans-serif; font-size: 10.5pt; line-height: 1.55; overflow-wrap: anywhere; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.rsx-paper.rsx-letter { width: 215.9mm; min-height: 279.4mm; }
.rsx-paper.rsx-green { --rsx-ac: #15803d; }
.rsx-paper.rsx-gray { --rsx-ac: #374151; }
.rsx-paper h2 { font-size: 24pt; line-height: 1.2; margin: 0; color: var(--rsx-ac); }
.rsx-paper h3 { font-size: 12.5pt; color: var(--rsx-ac); border-bottom: .25mm solid #c7cdd8; padding-bottom: 1mm; margin: 5mm 0 2mm; break-after: avoid; }
.rsx-paper p { margin: 1mm 0; }
.rsx-paper ul { padding-left: 5mm; margin: 1mm 0; }
.rsx-paper header { padding-bottom: 4mm; border-bottom: .5mm solid var(--rsx-ac); }
.rsx-paper.rsx-modern header { background: var(--rsx-ac); color: white; margin: -14mm -15mm 0; padding: 12mm 15mm 9mm; }
.rsx-paper.rsx-modern h2 { color: white; }
.rsx-item { margin: 3mm 0; break-inside: avoid; }
.rsx-line { display: flex; justify-content: space-between; gap: 6mm; }
.rsx-date { white-space: nowrap; color: #5b6575; font-size: 9.5pt; }
@media print {
  @page { size: A4; margin: 12mm 0; }
  html, body { margin: 0; background: white; }
  main.wrap { max-width: none; margin: 0; padding: 0; }
  .site-header, .site-footer, .breadcrumb, main.wrap > * { display: none !important; }
  main.wrap > #rsx-en-tool, #rsx-en-preview { display: block !important; }
  #rsx-en-tool { border: 0; padding: 0; margin: 0; background: white; }
  #rsx-en-tool > :not(#rsx-en-preview), #rsx-en-preview > :not(.rsx-wrap) { display: none !important; }
  .rsx-wrap { border: 0; height: auto !important; overflow: visible; margin: 0; }
  .rsx-paper { transform: none !important; min-height: 0 !important; padding-top: 0; padding-bottom: 0; }
  .rsx-paper.rsx-modern header { margin-top: 0; }
}
