 * { box-sizing: border-box; margin: 0; padding: 0; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f9fafb; color: #1a202c; line-height: 1.5; }
        
        .pdf-preview-container { position: relative; margin: 1rem 0; border: 1px solid #e2e8f0; border-radius: 0.75rem; overflow: hidden; background: #f1f5f9; display: flex; justify-content: center; min-height: 400px; }
        #pdfPreviewCanvas { max-width: 100%; height: auto; display: block; }
        .signature-overlay { position: absolute; cursor: move; background: transparent; border: 2px dashed #4299e1; box-sizing: border-box; display: flex; align-items: center; justify-content: center; z-index: 10; user-select: none; }
        .signature-overlay img { max-width: 100%; max-height: 100%; pointer-events: none; display: block; transform-origin: center center; }
        .overlay-controls { position: absolute; top: -28px; left: 0; background: #2d3748; border-radius: 6px; padding: 2px 6px; display: flex; gap: 8px; opacity: 0; transition: opacity 0.2s; z-index: 20; pointer-events: auto; }
        .signature-overlay:hover .overlay-controls { opacity: 1; }
        .overlay-controls button { background: none; border: none; color: white; cursor: pointer; font-size: 14px; padding: 2px 4px; }
        .resize-handle { position: absolute; bottom: -6px; right: -6px; width: 12px; height: 12px; background: #4299e1; cursor: nw-resize; border-radius: 2px; pointer-events: auto; z-index: 15; }
        .rotate-handle { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; background: #ed8936; border-radius: 50%; cursor: grab; pointer-events: auto; z-index: 15; }
        .preview-controls { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
        .rotation-slider { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
        .spinner { width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top-color: #4299e1; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .progress-bar { width: 100%; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin: 1rem 0; }
        .progress-fill { width: 0%; height: 100%; background: #4299e1; transition: width 0.3s; }
        .success-icon, .error-icon { text-align: center; margin-bottom: 1rem; }
        .success-icon svg { stroke: #48bb78; }
        .error-icon svg { stroke: #f56565; }
        .action-buttons { text-align: center; margin: 1rem 0; }
        .success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
        .breadcrumb a { color: #4299e1; text-decoration: none; }
        .pdf-info-card { background: #edf2f7; border-radius: 0.75rem; padding: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
        @media (max-width: 640px) { .coord-group { flex-direction: column; align-items: flex-start; } }