body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
  color: #1a1a1a;
}

h1 {
  text-align: center;
  font-size: 1.6rem;
}

.disclaimer {
  background: #fff8e1;
  border: 1px solid #f0d878;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #5c4a00;
  margin-bottom: 24px;
}

/* --- loading panel / progress bar --- */
#loading-panel {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
}

#loading-text {
  margin-bottom: 12px;
  color: #444;
}

#progress-track {
  background: #eee;
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
}

#progress-fill {
  background: linear-gradient(90deg, #4a7dfc, #2ba84a);
  height: 100%;
  width: 0%;
  transition: width 0.15s ease;
}

#progress-pct {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}

/* --- side-by-side main panel --- */
#main-panel {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

#left-col,
#right-col {
  flex: 1;
  min-width: 0;
}

#drop-area {
  width: 100%;
  min-height: 280px;
  border: 2px dashed #999;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s;
  text-align: center;
}

#drop-area:hover {
  border-color: #555;
}

#drop-text {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

#preview {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
}

#status {
  text-align: center;
  color: #666;
  margin-top: 12px;
  font-size: 0.9rem;
}

#right-col h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 14px;
}

#bars-placeholder {
  color: #999;
  font-size: 0.9rem;
}

.bar-row {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.bar-row .bar-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bar-track {
  background: #eee;
  border-radius: 6px;
  height: 18px;
  overflow: hidden;
}

.bar-fill {
  background: #4a7dfc;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

.bar-row.top .bar-fill {
  background: #2ba84a;
}

.bar-row.top {
  font-weight: 600;
}

/* --- responsive: stack on narrow screens --- */
@media (max-width: 640px) {
  #main-panel {
    flex-direction: column;
  }
}