    * { box-sizing: border-box; }
    body { font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; background-color: #f1f5f9; color: #0f172a; margin: 0; padding: 0; overflow-x: hidden; }
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    
    .a4-paper-sheet { width: 210mm; min-height: 297mm; background: #ffffff; color: #000000; box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.16); position: relative; overflow: hidden; display: flex; flex-direction: column; margin-bottom: 20px; }
    .question-block-atomic { break-inside: avoid; page-break-inside: avoid; }
    
    .rich-editable:focus { outline: none; }
    .rich-editable:empty:before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }

    @media print {
      @page { size: A4 portrait; margin: 0 !important; }
      html, body { background: #ffffff !important; margin: 0 !important; padding: 0 !important; width: 210mm !important; height: auto !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
      .no-print { display: none !important; }
      #print-root { display: block !important; width: 210mm !important; }
      .a4-paper-sheet { width: 210mm !important; height: 297mm !important; min-height: 297mm !important; max-height: 297mm !important; box-shadow: none !important; margin: 0 !important; border: none !important; overflow: hidden !important; break-after: page !important; page-break-after: always !important; }
      .a4-paper-sheet:last-child { break-after: auto !important; page-break-after: auto !important; }
    }
  
    .diagram-thumb svg, .diagram-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; }
    .pdf-stage { position: fixed; left: -99999px; top: 0; }
    .scroll-col { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    @media print {
      html, body, #root, .app-shell { height: auto !important; overflow: visible !important; }
      .pdf-stage { position: static !important; }
    }
