.section-box{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:18px;
  margin-bottom:18px;
}

.label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:12px;
}

.thumb{
  aspect-ratio:1;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #ddd;
  background:#f8f8f8;
  position:relative;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.add{
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px dashed #ccc;
  cursor:pointer;
  font-size:13px;
  color:#555;
  background:#fff;
}

/* PROCESSING */
.processing{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  z-index:5;
}

.dots span{
  animation:blink 1s infinite;
}

.dots span:nth-child(2){
  animation-delay:.2s;
}

.dots span:nth-child(3){
  animation-delay:.4s;
}

@keyframes blink{
  0%,100%{opacity:.2;}
  50%{opacity:1;}
}

.progress{
  width:80%;
  height:6px;
  background:rgba(255,255,255,0.2);
  border-radius:20px;
  overflow:hidden;
  margin-top:10px;
}

.progress-bar{
  height:100%;
  width:0%;
  background:#00d084;
}

/* BUTTON */
.btns{
  display:flex;
  justify-content:flex-end;
  margin-top:15px;
}

.app{
  padding:12px 20px;
  background:linear-gradient(135deg,#0a3d62,#07517d);
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
  font-size:14px;
}

/* FORMAT */
.format-box{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.format-btn{
  padding:10px 16px;
  border:1px solid #ccc;
  border-radius:6px;
  cursor:pointer;
  background:#fff;
  font-size:13px;
}

.format-btn.active{
  background:#0a3d62;
  color:#fff;
  border-color:#0a3d62;
}

/* RESULT */
.result-box{
  display:none;
}

.files{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
}

.file-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:10px;
  overflow:hidden;
}

.file-card img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.stats-box{
  padding:10px;
  background:#f7f7f7;
  border-top:1px solid #eee;
  font-size:12px;
  line-height:1.6;
}

.stats-box b{
  color:#0a3d62;
}

.download-btn{
  display:block;
  text-align:center;
  margin:10px;
  padding:10px;
  background:#0a3d62;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  font-size:13px;
}

.download-all{
  width:100%;
  margin-top:15px;
  padding:14px;
  background:#111;
  color:#fff;
  border:none;
  border-radius:6px;
  cursor:pointer;
}

.note{
  margin-top:10px;
  font-size:12px;
  color:#666;
}