* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 40px 16px;
}

.container { max-width: 640px; margin: 0 auto; }

header { text-align: center; margin-bottom: 32px; }
header h1 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
header p { color: #6e6e73; }
header a { color: #0071e3; text-decoration: none; }

.error-box {
  background: #fff2f2; color: #ff3b30; text-align: center;
  padding: 16px; border-radius: 12px; margin-bottom: 20px; font-size: 14px;
}

.dropzone {
  border: 2px dashed #c7c7cc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  transition: border-color .2s, background .2s;
  margin-bottom: 20px;
}
.dropzone.dragover { border-color: #0071e3; background: #f0f7ff; }
.dropzone p { margin-bottom: 12px; color: #6e6e73; }
.dropzone .hint { font-size: 13px; margin-top: 12px; margin-bottom: 0; }

.btn {
  display: inline-block;
  background: #0071e3;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: #0077ed; }
.btn-primary { width: 100%; margin-top: 16px; padding: 12px; font-size: 15px; }
.btn:disabled { background: #c7c7cc; cursor: not-allowed; }

.quality-control { background: #fff; padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; }
.quality-control label { display: block; margin-bottom: 8px; font-size: 14px; }
.quality-control input[type="range"] { width: 100%; }

.card { background: #fff; padding: 20px; border-radius: 12px; margin-bottom: 20px; }

.file-list, .results-list { list-style: none; margin-top: 12px; }
.file-list li, .results-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; gap: 12px; text-align: left;
}
.file-list li:last-child, .results-list li:last-child { border-bottom: none; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: #6e6e73; font-size: 13px; white-space: nowrap; }
.file-error { color: #ff3b30; font-size: 13px; white-space: nowrap; }

.summary { background: #f0f7ff; padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }

.result-status-failed { color: #ff3b30; font-size: 12px; white-space: nowrap; }
.download-link { color: #0071e3; font-size: 13px; text-decoration: none; white-space: nowrap; }
