.imgopt-container{max-width:1100px;margin:24px auto;padding:0 16px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#0f172a}.imgopt-header h1{margin:8px 0 4px;font-size:24px;font-weight:800}.imgopt-header p{margin:0 0 16px;color:#475569}.imgopt-controls{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.control-row{display:flex;flex-wrap:wrap;margin:-6px}.control{display:flex;flex-direction:column;margin:6px;flex:1 1 160px;min-width:140px}.control span{color:#334155;font-size:14px;margin-bottom:6px}.control input[type=number],.control select,.control input[type=range]{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;outline:none;background:#fff}.control input[type=range]{padding:0;height:34px}.control.checkbox{flex-direction:row;align-items:center}.control.checkbox span{margin-left:8px}.control-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.control-actions .divider{width:1px;height:20px;background:#e5e7eb;display:inline-block}.btn{border:1px solid #cbd5e1;background:#fff;padding:10px 14px;border-radius:12px;cursor:pointer;font-weight:600;color:#0f172a}.btn:hover{background:#f1f5f9}.btn[disabled]{opacity:.5;cursor:not-allowed}.btn.primary{background:#0ea5e9;color:#fff;border-color:#0284c7}.btn.primary:hover{background:#0284c7}.btn.success{background:#10b981;color:#fff;border-color:#0b9669}.btn.success:hover{background:#0b9669}.btn.danger{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.btn.danger:hover{background:#fecaca}.btn.ghost{background:0 0;color:#0f172a}.queue{margin-top:10px;background:#fff;border:1px dashed #d1d5db;border-radius:12px;padding:10px}.queue strong{display:inline-block;margin-bottom:6px}#queueList{list-style:none;padding:0;margin:0}#queueList li{font-size:13px;color:#334155;padding:6px 8px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;margin-bottom:6px}#queueEmpty{color:#64748b;font-size:13px}.imgopt-drop{margin:16px 0;border:2px dashed #cbd5e1;border-radius:16px;background:#f8fafc;transition:background-color .2s,border-color .2s;outline:none}.imgopt-drop.dragover{background:#e6f4ff;border-color:#60a5fa}.drop-inner{text-align:center;padding:40px 16px}.drop-icon{font-size:28px}.drop-text{color:#475569}.imgopt-results{display:flex;flex-wrap:wrap;margin:-7px}.card{border:1px solid #e2e8f0;border-radius:16px;padding:10px;background:#fff;display:flex;flex-direction:column;margin:7px;flex:1 1 320px;max-width:100%}.card>*+*{margin-top:10px}.card .thumbs{display:flex}.card .thumbs>.thumb{width:50%}.thumb{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#f8fafc;position:relative;width:100%}.thumb:before{content:"";display:block;padding-top:75%}.thumb img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}.meta{font-size:12px;color:#475569}.meta strong{color:#0f172a}.actions{display:flex;flex-wrap:wrap;gap:8px}.badge{display:inline-flex;align-items:center;font-size:12px;background:#f1f5f9;border:1px solid #e2e8f0;padding:4px 8px;border-radius:999px}.badge.good{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.badge.warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.imgopt-footer{margin:14px 0 30px;display:flex;justify-content:space-between;align-items:center}.summary{font-size:14px;color:#334155}@media (max-width:980px){.card{flex:1 1 48%}}@media (max-width:640px){.card{flex:1 1 100%}.control-row{margin:-6px 0}.control{width:100%}}