.hidden{display:none!important}.tool{width:min(100%, var(--content-width));padding:var(--space-lg) 0;margin-inline:auto}.tool-header{margin-bottom:var(--space-lg)}.tool-header h1{margin:0 0 .5rem}.tool-header p{margin:0}.drop-zone{border-radius:var(--radius);text-align:center;cursor:pointer;border:2px dashed #ccc;padding:2.5rem 1.5rem;transition:border-color .15s,background .15s}.drop-zone.drag-active{background:#f0f6ff;border-color:#0d6efd}.drop-zone-text{margin:0}.file-label{color:#0d6efd;cursor:pointer;text-decoration:underline}.file-info{color:#555;margin:.75rem 0 0;font-size:.9rem}.options-panel{margin-top:var(--space-lg)}.options-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;display:grid}.option-field label{color:#444;margin-bottom:.4rem;font-size:.85rem;font-weight:600;display:block}.option-field select,.option-field input[type=text]{width:100%;font:inherit;border-radius:var(--radius);border:1px solid #ccc;padding:.6rem .7rem}.option-field input[type=range]{width:100%}.option-field input[type=color]{border-radius:var(--radius);cursor:pointer;border:1px solid #ccc;width:100%;height:2.5rem;padding:.25rem}#pageRange{margin-top:.6rem}.tool-actions{flex-wrap:wrap;gap:.75rem;margin-top:1.5rem;display:flex}.tool-actions button,.results-header button{font:inherit;border-radius:var(--radius);cursor:pointer;background:#fff;border:1px solid #ccc;padding:.6rem 1.2rem;font-size:.9rem;transition:background .15s,border-color .15s}.tool-actions button:hover,.results-header button:hover{background:#f0f0f0;border-color:#999}.primary-button{color:#fff;background:#0d6efd!important;border-color:#0d6efd!important}.primary-button:hover{background:#0b5ed7!important}.primary-button:disabled{opacity:.6;cursor:not-allowed}.progress-wrap{margin-top:var(--space-lg)}.progress-bar{background:#eee;border-radius:999px;height:10px;overflow:hidden}.progress-fill{background:#0d6efd;width:0;height:100%;transition:width .2s}.progress-label{color:#555;margin:.5rem 0 0;font-size:.85rem}.results-panel{margin-top:var(--space-xl)}.results-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.results-header h2{margin:0;font-size:1.15rem}.results-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem;display:grid}.result-card{border-radius:var(--radius);background:#fafafa;border:1px solid #ddd;overflow:hidden}.result-card img{object-fit:contain;background:#fff;border-bottom:1px solid #eee;width:100%;height:160px;display:block}.result-meta{justify-content:space-between;align-items:center;padding:.5rem .75rem;font-size:.85rem;display:flex}.download-link{color:#0d6efd;font-weight:600;text-decoration:none}.download-link:hover{text-decoration:underline}.status-message{min-height:1.2rem;margin-top:1rem;font-size:.9rem}.status-message.error{color:#c62828}@media (width<=600px){.tool-actions{flex-direction:column}.tool-actions button{width:100%}.results-header{flex-direction:column;align-items:stretch}}
