#Scan2PDFTool{--primary:#0ea5e9;--primary-hover:#0284c7;--primary-light:#e0f2fe;--secondary:#64748b;--secondary-hover:#475569;--background:#f8fafc;--surface:#ffffff;--surface-hover:#f1f5f9;--text-main:#0f172a;--text-muted:#64748b;--border:#e2e8f0;--danger:#ef4444;--danger-hover:#dc2626;--success:#10b981;--radius-md:0.5rem;--radius-lg:0.75rem;--radius-full:9999px;--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.05);--shadow-md:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--transition-speed:0.3s;font-family:inherit;background-color:var(--background);color:var(--text-main);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden;display:flex;flex-direction:column;min-height:100dvh}#Scan2PDFTool *,#Scan2PDFTool ::after,#Scan2PDFTool ::before{box-sizing:border-box;margin:0;padding:0}#Scan2PDFTool .app-container{flex:1;display:flex;flex-direction:column;width:100%;max-width:1400px;margin:0 auto;position:relative}#Scan2PDFTool .screen{display:none;opacity:0;transition:opacity var(--transition-speed) ease,transform var(--transition-speed) ease;transform:translateY(10px);width:100%}#Scan2PDFTool .screen.active{display:flex;flex-direction:column;opacity:1;transform:translateY(0);animation:fadeIn var(--transition-speed) ease forwards}@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}#Scan2PDFTool #screen-initial{flex:1;justify-content:center;align-items:center;padding:2rem;min-height:max-content}#Scan2PDFTool .hero-container{max-width:600px;text-align:center;background:var(--surface);padding:3rem 2rem;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--border)}#Scan2PDFTool .hero-title{font-size:2.25rem;font-weight:700;margin-bottom:.5rem;color:var(--text-main);letter-spacing:-.025em}#Scan2PDFTool .hero-subtitle{color:var(--text-muted);margin-bottom:2.5rem;font-size:1.125rem}#Scan2PDFTool .action-group{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:2rem}@media (max-width:600px){#Scan2PDFTool .action-group{grid-template-columns:1fr}}#Scan2PDFTool .btn-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1.5rem;background:var(--surface);border:2px solid var(--border);border-radius:var(--radius-lg);cursor:pointer;transition:.2s;color:var(--text-main);text-decoration:none;gap:1rem}#Scan2PDFTool .btn-card:focus-visible,#Scan2PDFTool .btn-card:hover{border-color:var(--primary);background:var(--primary-light);outline:0}#Scan2PDFTool .btn-card svg{width:48px;height:48px;color:var(--primary)}#Scan2PDFTool .btn-card span{font-weight:600;font-size:1.125rem}#Scan2PDFTool .privacy-note{display:flex;align-items:center;justify-content:center;gap:.5rem;color:var(--text-muted);font-size:.875rem}#Scan2PDFTool .privacy-note svg{width:16px;height:16px}#Scan2PDFTool #screen-editing{height:100%;flex:1}#Scan2PDFTool .toolbar{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}#Scan2PDFTool .toolbar-title{font-weight:600;font-size:1.25rem}#Scan2PDFTool .toolbar-actions{display:flex;gap:.75rem}#Scan2PDFTool .btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:var(--radius-md);font-weight:500;font-size:.875rem;cursor:pointer;border:1px solid transparent;background:0 0;transition:.2s;font-family:inherit}#Scan2PDFTool .btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}#Scan2PDFTool .btn:disabled{opacity:.5;cursor:not-allowed}#Scan2PDFTool .btn-primary{background:var(--primary);color:#fff}#Scan2PDFTool .btn-primary:hover:not(:disabled){background:var(--primary-hover)}#Scan2PDFTool .btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text-main)}#Scan2PDFTool .btn-secondary:hover:not(:disabled){background:var(--surface-hover)}#Scan2PDFTool .btn-danger{background:var(--danger);color:#fff}#Scan2PDFTool .btn-danger:hover:not(:disabled){background:var(--danger-hover)}#Scan2PDFTool .btn svg{width:18px;height:18px}#Scan2PDFTool .editor-workspace{display:flex;flex:1;height:calc(100vh - 65px);overflow:hidden}#Scan2PDFTool .pages-sidebar{width:250px;background:var(--surface-hover);border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}#Scan2PDFTool .pages-header{padding:1rem;font-weight:600;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}#Scan2PDFTool .pages-list{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}#Scan2PDFTool .page-thumbnail-card{position:relative;background:var(--surface);border:2px solid transparent;border-radius:var(--radius-md);cursor:pointer;transition:border-color .2s;box-shadow:var(--shadow-sm);flex-shrink:0;width:100%;aspect-ratio:1/1.4;display:flex;align-items:center;justify-content:center;overflow:hidden}#Scan2PDFTool .page-thumbnail-card.selected{border-color:var(--primary)}#Scan2PDFTool .page-thumbnail-card img{max-width:100%;max-height:100%;object-fit:contain}#Scan2PDFTool .page-number{position:absolute;bottom:.5rem;left:.5rem;background:rgba(0,0,0,.6);color:#fff;font-size:.75rem;padding:.125rem .5rem;border-radius:var(--radius-full)}#Scan2PDFTool .btn-delete-page{position:absolute;top:.5rem;right:.5rem;background:rgba(239,68,68,.9);color:#fff;border:none;border-radius:var(--radius-full);width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s}#Scan2PDFTool .page-thumbnail-card:hover .btn-delete-page{opacity:1}#Scan2PDFTool .editor-main{flex:1;display:flex;flex-direction:column;position:relative;background:var(--surface-hover)}#Scan2PDFTool .preview-container{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem;overflow:hidden;position:relative}#Scan2PDFTool .preview-canvas-wrapper{position:relative;max-width:100%;max-height:100%;box-shadow:var(--shadow-lg);background:#fff}#Scan2PDFTool #preview-canvas{display:block;max-width:100%;max-height:calc(100vh - 200px);object-fit:contain}@media (max-width:900px){#Scan2PDFTool .editor-workspace{flex-direction:column-reverse;height:auto;min-height:calc(100vh - 65px)}#Scan2PDFTool .pages-sidebar{width:100%;height:200px;border-right:none;border-top:1px solid var(--border)}#Scan2PDFTool .pages-list{flex-direction:row;overflow-x:auto;overflow-y:hidden}#Scan2PDFTool .page-thumbnail-card{width:auto;height:100%;aspect-ratio:1/1.4}#Scan2PDFTool #preview-canvas{max-height:50vh}}#Scan2PDFTool .adjustments-panel{background:var(--surface);border-top:1px solid var(--border);padding:1.5rem}#Scan2PDFTool .adjustments-grid{display:flex;flex-wrap:wrap;gap:2rem;max-width:800px;margin:0 auto}#Scan2PDFTool .control-group{flex:1;min-width:200px}#Scan2PDFTool .control-header{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.875rem;font-weight:500}#Scan2PDFTool input[type=range]{width:100%;accent-color:var(--primary)}#Scan2PDFTool .filters-group{display:flex;gap:.5rem;flex-wrap:wrap}#Scan2PDFTool .camera-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#000;display:none;flex-direction:column;z-index:50}#Scan2PDFTool #capture-review.active,#Scan2PDFTool .camera-overlay.active,#Scan2PDFTool .loading-overlay.active{display:flex}#Scan2PDFTool .camera-header{padding:1rem;display:flex;justify-content:space-between;color:#fff;background:rgba(0,0,0,.5);position:absolute;top:0;left:0;right:0;z-index:51}#Scan2PDFTool .video-container{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}#Scan2PDFTool #camera-video{width:100%;height:100%;object-fit:cover}#Scan2PDFTool .camera-controls{position:absolute;bottom:0;left:0;right:0;padding:2rem;display:flex;justify-content:center;align-items:center;background:linear-gradient(transparent,rgba(0,0,0,.8));gap:2rem;z-index:51}#Scan2PDFTool .btn-capture{width:72px;height:72px;border-radius:50%;background:#fff;border:4px solid var(--border);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s;box-shadow:var(--shadow-lg)}#Scan2PDFTool .btn-capture:active{transform:scale(.95)}#Scan2PDFTool .btn-capture svg{width:32px;height:32px;color:var(--text-main)}#Scan2PDFTool #capture-review{position:absolute;top:0;left:0;right:0;bottom:0;background:#000;display:none;flex-direction:column;z-index:52}#Scan2PDFTool #review-image{flex:1;object-fit:contain;width:100%;height:calc(100% - 100px)}#Scan2PDFTool .review-controls{height:100px;display:flex;justify-content:center;align-items:center;gap:1rem;background:#111}#Scan2PDFTool #screen-completion{flex:1;justify-content:center;align-items:center;padding:2rem}#Scan2PDFTool .success-card{background:var(--surface);padding:3rem 2rem;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--border);text-align:center;max-width:500px;width:100%}#Scan2PDFTool .success-icon{width:80px;height:80px;color:var(--success);margin:0 auto 1.5rem}#Scan2PDFTool .success-title{font-size:1.5rem;font-weight:700;margin-bottom:.5rem}#Scan2PDFTool .success-meta{color:var(--text-muted);margin-bottom:2rem;font-size:.95rem}#Scan2PDFTool .success-actions{display:flex;flex-direction:column;gap:1rem}#Scan2PDFTool .success-actions .btn{justify-content:center;padding:.75rem 1.5rem;font-size:1rem}#Scan2PDFTool .loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.9);display:none;flex-direction:column;align-items:center;justify-content:center;z-index:100}#Scan2PDFTool .spinner{width:48px;height:48px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:1s linear infinite spin;margin-bottom:1rem}@keyframes spin{100%{transform:rotate(360deg)}}#Scan2PDFTool .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#Scan2PDFTool .empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-muted);text-align:center;padding:2rem}#Scan2PDFTool .empty-state svg{width:64px;height:64px;margin-bottom:1rem;opacity:.5}#Scan2PDFTool .dialog-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:1000;padding:1rem;backdrop-filter:blur(2px)}#Scan2PDFTool .dialog-overlay.active{display:flex;animation:.2s forwards fadeIn}#Scan2PDFTool .dialog-box{background:var(--surface);border-radius:var(--radius-lg);padding:2rem;max-width:420px;width:100%;box-shadow:var(--shadow-lg);transform:scale(.95);opacity:0;transition:.2s;border:1px solid var(--border)}#Scan2PDFTool .dialog-overlay.active .dialog-box{transform:scale(1);opacity:1}#Scan2PDFTool .dialog-title{font-size:1.25rem;font-weight:700;margin-bottom:.75rem;color:var(--text-main)}#Scan2PDFTool .dialog-message{color:var(--text-muted);margin-bottom:2rem;font-size:.95rem;line-height:1.5}#Scan2PDFTool .dialog-actions{display:flex;justify-content:flex-end;gap:.75rem}