/* Brand tokens — adjust these to restyle the page. */
:root {
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-muted: #6b7280;
  --color-border: #d9dde3;
  --color-primary: #2563eb;
  --color-primary-soft: #eff4ff;
  --color-success: #15803d;
  --color-success-soft: #ecfdf3;
  --color-error: #dc2626;
  --color-error-soft: #fef2f2;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 16px/1.5 var(--font);
}

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

.hero {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  /*border-radius: var(--radius);*/
}

h1 {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 650;
}
.lead {
  margin: 0 0 32px;
  color: var(--color-muted);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.dropzone:hover,
.dropzone:focus-within,
.dropzone.is-dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.dropzone > * {
  pointer-events: none;
} /* avoids dragleave flicker over children */
.dropzone-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dropzone-title {
  font-weight: 600;
}
.dropzone-hint,
.dropzone-limits {
  color: var(--color-muted);
  font-size: 0.9rem;
}
.dropzone-limits {
  margin-top: 8px;
  font-size: 0.8rem;
}
.link {
  color: var(--color-primary);
  text-decoration: underline;
}

.error {
  margin: 16px 0 0;
  color: var(--color-error);
  font-size: 0.9rem;
}

.summary {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--color-success-soft);
  color: var(--color-success);
  font-weight: 500;
}
.summary.has-failures {
  background: var(--color-error-soft);
  color: var(--color-error);
}

.file-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.file-status {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.file-progress {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.file-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.1s linear;
}
.file.is-done .file-status {
  color: var(--color-success);
}
.file.is-done .file-progress-bar {
  background: var(--color-success);
}
.file.is-error .file-status {
  color: var(--color-error);
}
.file.is-error .file-progress-bar {
  background: var(--color-error);
}
