/* 画像の一括リサイズ・圧縮ツール 専用スタイル */

.highlight {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 2px;
}

/* ---------- ファイルの受け口 ---------- */

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 36px 20px;
  text-align: center;
  transition: border-color .15s, background .15s;
}

.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }

.drop-icon { font-size: 2.2rem; line-height: 1; }
.drop-main { font-size: 1.05rem; font-weight: 700; margin: 10px 0 4px; }
.drop-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.drop-note { font-size: .78rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- 進捗 ---------- */

.bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width .2s;
}

/* ---------- 合計の表示 ---------- */

.verdict {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 16px;
}

.verdict-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }

.verdict-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 4px 0;
}

.verdict-sub { font-size: .88rem; color: var(--text-muted); }

/* ---------- 変換結果のサムネイル ---------- */

.res-title { font-size: 1.1rem; margin-top: 32px; border: 0; padding: 0; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.thumb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 0;
}

.thumb.err { border-color: var(--danger); }

.thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 4px;
  display: block;
}

.th-name {
  font-size: .8rem;
  font-weight: 600;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-sub, .th-size {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.th-cut {
  color: var(--ok);
  font-weight: 700;
  margin-left: 4px;
}

.th-dl {
  width: 100%;
  margin-top: 8px;
  padding: 5px;
  font-size: .8rem;
}

@media (max-width: 600px) {
  .dropzone { padding: 26px 14px; }
  .verdict-value { font-size: 1.3rem; }
  .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
