:root {
  --ink: #14171c;
  --ink-soft: #1d2229;
  --paper: #eef0f2;
  --paper-dim: #a7adb6;
  --line: #2a303a;
  --accent: #4fb8a0;
  --accent-dim: #2f6d5f;
  --danger: #e07856;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100dvh;
}

h1, h2, .btn {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
}

.wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.head {
  max-width: 420px;
  text-align: center;
  margin-bottom: 24px;
}

.head h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.sub {
  color: var(--paper-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-label {
  font-size: 0.85rem;
  color: var(--paper-dim);
  margin-bottom: -8px;
}

.text-input {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--paper);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.text-input:focus {
  border-color: var(--accent);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 16px;
  border: 1.5px dashed var(--line);
  border-radius: calc(var(--radius) - 4px);
  color: var(--paper-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dropzone svg { color: var(--accent); }

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--accent);
  color: var(--paper);
  background: rgba(79, 184, 160, 0.06);
}

.dropzone small { color: var(--paper-dim); font-weight: 400; }

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.file-list .thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}

.file-list .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--paper);
}

.file-list .size {
  color: var(--paper-dim);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.file-list .remove {
  background: none;
  border: none;
  color: var(--paper-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.file-list .remove:hover { color: var(--danger); }

.btn {
  appearance: none;
  border: none;
  background: var(--accent);
  color: #08130f;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  background: var(--line);
  color: var(--paper-dim);
  cursor: not-allowed;
}

.btn:not(:disabled):hover { background: #63c9b1; }
.btn:not(:disabled):active { background: var(--accent-dim); }

.status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  text-align: center;
}
.status.ok { color: var(--accent); }
.status.err { color: var(--danger); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
