:root {
  --ink: #1f2733;
  --muted: #5b6472;
  --bg: #f6f4ef;
  --card: #ffffff;
  --accent: #2b6e5b;
  --accent-dark: #1f5245;
  --warn: #e08a2b;
  --border: #e3e0d8;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 18px 96px;
}

header.site-header {
  text-align: center;
  margin-bottom: 20px;
}

header.site-header h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

header.site-header p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.04);
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.disclaimer-text {
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 0.95rem;
}

button {
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-primary:disabled {
  background: #a9b3ac;
  cursor: not-allowed;
}

.btn-primary:not(:disabled):hover {
  background: var(--accent-dark);
}

.btn-secondary {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 600;
}

.hint-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hint-card img {
  width: 110px;
  height: auto;
  flex-shrink: 0;
}

.hint-card p {
  margin: 0;
  font-size: 0.95rem;
}

.hint-card strong {
  color: var(--warn);
}

#upload-section {
  display: none;
}

#upload-section.visible {
  display: block;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dropzone {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  color: var(--accent-dark);
  background: #f2f8f5;
  margin-bottom: 18px;
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone .pick-label {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 10px;
}

.queue-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.queue-item .name {
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
  margin-bottom: 6px;
}

.queue-item .bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.queue-item .bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s;
}

.queue-item.error .bar-fill { background: #c0392b; }
.queue-item.done .bar-fill { background: var(--accent); }

.queue-item .status {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.queue-item.error .status { color: #c0392b; }
.queue-item.done .status { color: var(--accent-dark); }

.keep-banner {
  position: sticky;
  bottom: 0;
  margin: 18px -18px -96px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
}

.keep-banner.hidden { display: none; }

footer.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 30px;
}
