:root{--surface:#ffffff;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--primary:#ef6c00}
@media(prefers-color-scheme:dark){:root{--surface:#0b0f14;--text:#e6edf3;--muted:#94a3b8;--border:#1f2937}}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;background:#0b0c0f;color:var(--text)}
.container{max-width:980px;margin:0 auto;padding:1rem}
.header h1{display:flex;gap:.5rem;align-items:center;margin:.5rem 0}
.subtitle{color:var(--muted)}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem;margin:1rem 0}
.row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:space-between}
.tools{display:flex;gap:.75rem;align-items:center}
.btn{border:1px solid var(--border);background:transparent;color:inherit;border-radius:10px;padding:.6rem .95rem;cursor:pointer}
.btn:hover{border-color:var(--primary);color:var(--primary)}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem}
label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}
input[type="number"],input[type="text"],select{padding:.6rem;border:1px solid var(--border);border-radius:8px;background:transparent;color:inherit}
input:focus,select:focus,button:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(239,108,0,.2)}
.file-list{list-style:none;padding:0;margin:.5rem 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.5rem}
.file-list li{border:1px solid var(--border);border-radius:8px;padding:.5rem;display:flex;gap:.5rem;align-items:center}
.file-list img{width:48px;height:48px;object-fit:cover;border-radius:6px;border:1px solid var(--border)}
.file-list .meta{display:flex;flex-direction:column;font-size:.9rem}
.drop{border:1px dashed var(--border);border-radius:8px;padding:1rem;text-align:center}
.preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}
.card{border:1px solid var(--border);border-radius:12px;padding:.75rem}
.card .thumb{display:flex;justify-content:center;align-items:center;min-height:160px}

