*{box-sizing:border-box;margin:0;padding:0}html{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#333;background-color:#f5f5f5}body{min-height:100vh;display:flex;flex-direction:column}.container{max-width:800px;margin:0 auto;padding:2rem;flex:1 1}.header{text-align:center;margin-bottom:3rem}.header h1{font-size:2.5rem;color:#2563eb;margin-bottom:.5rem}.header p{color:#666;font-size:1.1rem}.settings{margin-bottom:2rem;display:flex;justify-content:center}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.checkbox-label span{-webkit-user-select:none;-moz-user-select:none;user-select:none}.upload-area{border:2px dashed #2563eb;border-radius:8px;padding:3rem;text-align:center;cursor:pointer;transition:all .3s ease;background-color:white;margin-bottom:2rem;width:100%;font-family:inherit;font-size:inherit;color:inherit;display:block}.upload-area:hover{border-color:#1d4ed8;background-color:#f0f7ff}.upload-area svg{color:#2563eb;margin-bottom:1rem}.upload-text{font-size:1.2rem;color:#333;margin-bottom:.5rem}.upload-subtext{color:#666;font-size:.9rem}.pdf-list{background-color:white;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px rgba(0,0,0,.1)}.pdf-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.pdf-list h2{margin:0;color:#333}.download-all-btn{padding:.5rem 1rem;background-color:#059669;color:white;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .3s ease;display:flex;align-items:center;gap:.5rem}.download-all-btn:hover{background-color:#047857}.pdf-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;border:1px solid #e5e5e5;border-radius:6px;margin-bottom:.75rem;transition:all .3s ease;min-width:0}.pdf-item:hover{box-shadow:0 2px 4px rgba(0,0,0,.1)}.pdf-item.failed{background-color:#fee;border-color:#fcc}.pdf-item.unlocked{background-color:#f0fdf4;border-color:#bbf7d0}.pdf-info{display:flex;align-items:center;gap:1rem;flex:1 1;min-width:0;overflow:hidden}.pdf-icon svg{color:#666}.pdf-details{flex:1 1;min-width:0;overflow:hidden}.pdf-name{font-weight:500}.pdf-name,.pdf-suggested-name{margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-suggested-name{font-size:.9rem;color:#2563eb}.pdf-status{font-size:.85rem;color:#666}.pdf-error{font-size:.85rem;color:#dc2626}.pdf-actions{gap:.75rem;flex-shrink:0}.pdf-actions,.status-icon{display:flex;align-items:center}.status-icon{justify-content:center;width:24px;height:24px}.status-icon svg{color:#10b981}.pdf-item.failed .status-icon svg{color:#dc2626}.spinner{animation:spin 1s linear infinite;color:#2563eb}.spinner-circle{stroke-dasharray:62.83185307179586;stroke-dashoffset:47.12388980384689}@keyframes spin{to{transform:rotate(1turn)}}.download-btn{padding:.5rem 1rem;background-color:#2563eb;color:white;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .3s ease}.download-btn:hover{background-color:#1d4ed8}.remove-btn{width:32px;height:32px;border:none;background-color:transparent;color:#999;font-size:1.5rem;cursor:pointer;border-radius:4px;transition:all .3s ease}.remove-btn:hover{background-color:#fee;color:#dc2626}.pdf-item.needs_password{background-color:#fffbeb;border-color:#fbbf24}.password-input-container{display:flex;gap:.5rem;margin-top:.5rem}.password-input{flex:1 1;padding:.4rem .75rem;border:1px solid #e5e5e5;border-radius:4px;font-size:.9rem;transition:border-color .3s ease}.password-input:focus{outline:none;border-color:#2563eb}.unlock-btn{padding:.4rem 1rem;background-color:#2563eb;color:white;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .3s ease}.unlock-btn:hover:not(:disabled){background-color:#1d4ed8}.unlock-btn:disabled{background-color:#9ca3af;cursor:not-allowed}.footer{text-align:center;padding:2rem;color:#666;font-size:.9rem;background-color:white;border-top:1px solid #e5e5e5}.github-link{display:inline-flex;align-items:center;color:#2563eb;text-decoration:none;transition:color .3s ease;font-weight:500}.github-link:hover{color:#1d4ed8;text-decoration:underline}.info-section{margin:3rem 0;background-color:white;border-radius:8px;padding:2rem;box-shadow:0 1px 3px rgba(0,0,0,.1)}.info-section h2{text-align:center;color:#2563eb;margin-bottom:2rem;font-size:1.8rem}.info-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));grid-gap:1.5rem;gap:1.5rem;margin-bottom:2rem}.info-card{padding:1.5rem;border:1px solid #e5e5e5;border-radius:6px;background-color:#fafafa}.info-card h3{margin-bottom:.75rem;color:#333;font-size:1.1rem}.info-card p{color:#666;line-height:1.6;margin:0}.common-passwords{border:1px solid #e5e5e5;border-radius:6px;background-color:#f9f9f9}.common-passwords summary{padding:1rem;cursor:pointer;font-weight:500;color:#2563eb;border-radius:6px;transition:background-color .3s ease}.common-passwords summary:hover{background-color:#f0f7ff}.common-passwords[open] summary{border-bottom:1px solid #e5e5e5;border-radius:6px 6px 0 0}.password-list{padding:1rem}.password-list p{margin-bottom:1rem;color:#666}.password-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));grid-gap:.5rem;gap:.5rem}.password-grid span{background-color:#f3f4f6;padding:.5rem;border-radius:4px;font-family:monospace;font-size:.9rem;text-align:center;border:1px solid #e5e5e5}@media (max-width:640px){.container{padding:1rem}.header h1{font-size:2rem}.pdf-item{flex-direction:column;align-items:flex-start;gap:1rem}.pdf-actions{align-self:flex-end}.password-input-container{flex-direction:column;width:100%}.pdf-list-header{flex-direction:column;align-items:flex-start;gap:1rem}.download-all-btn{align-self:stretch;justify-content:center}.info-section{margin:2rem 0;padding:1.5rem}.info-section h2{font-size:1.5rem}.info-content{grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}.info-card{padding:1rem}.password-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.4rem}.password-grid span{padding:.4rem;font-size:.8rem}}.pdf-worker-loading{flex-direction:column;min-height:100vh;gap:1rem;color:#666}.loading-spinner,.pdf-worker-loading{display:flex;align-items:center;justify-content:center}.pdf-worker-error{background-color:#fef2f2;border:1px solid #fecaca;color:#dc2626;padding:1rem;border-radius:6px;margin-bottom:1rem;text-align:center}