:root{
  --bg: #eef4fa;
  --panel: #ffffff;
  --panel-2: #eaf0f8;
  --line: #d8e1ee;
  --accent: #1d6fa5;
  --accent-soft: #ddedf8;
  --accent-dim: #f0f6fb;
  --text: #16212c;
  --muted: #62717f;
  --muted-2: #93a2b0;
  --good: #2e7d4f;
  --bad: #b3402f;
}

.content{ padding: 22px; }

.section-box{
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}

.dropzone{
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragover{ border-color: var(--accent); background: var(--accent-dim); }
.dropzone .icon{ font-size: 28px; margin-bottom: 8px; }
.dropzone .main{ font-size: 14px; font-weight: 600; }
.dropzone .sub{ font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=file]{ display: none; }

.strip{ display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; }
.frame{
  flex: 0 0 auto;
  width: 92px;
  background: #fdfcf7;
  border-radius: 6px;
  padding: 6px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.frame img{
  width: 100%; height: 60px; object-fit: cover; border-radius: 3px; display: block;
  background:
    linear-gradient(45deg, #e5e2d8 25%, transparent 25%),
    linear-gradient(-45deg, #e5e2d8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e2d8 75%),
    linear-gradient(-45deg, transparent 75%, #e5e2d8 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}
.frame .remove{
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(22,33,44,0.85); color: var(--accent-soft); border: none; font-size: 11px; line-height: 16px; cursor: pointer; padding: 0;
}

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.app{
  padding: 11px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4fa3d1);
  transition: filter .15s ease;
}
.app:hover{ filter: brightness(1.08); }
.app:disabled{ opacity: 0.5; cursor: not-allowed; }
.gray{ background: var(--line); color: var(--text); }

.empty-state{ text-align: center; color: var(--muted-2); padding: 26px 10px; font-size: 13.5px; }
.loading{ text-align: center; padding: 26px 10px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 13px; }

.result-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.result-card{ background: #fdfcf7; border-radius: 8px; overflow: hidden; color: #241e12; }
.result-card img{ width: 100%; height: 130px; object-fit: cover; display: block; }
.result-info{ padding: 10px 12px; }
.result-info .name{ font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-info .stats{ font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #6b5f42; margin-top: 3px; display: flex; justify-content: space-between; }
.result-info .dl-btn{
  width: 100%; margin-top: 8px; padding: 7px; border: none; border-radius: 5px;
  background: var(--accent-dim); color: var(--accent); font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
}
.result-info .dl-btn:hover{ filter: brightness(1.15); }

.note{
  margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px;
}
