:root {
  --bg: #15110f;
  --panel: #1f1a17;
  --ink: #ece4df;
  --muted: #a99c93;
  --line: #3a312c;
  --accent: #e8703a;
  --accent-ink: #15110f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.lede {
  color: var(--ink);
  font-size: 1.05rem;
}

.step,
#supported,
#output {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

p {
  color: var(--muted);
  margin: 0.5rem 0;
}

code {
  background: #000a;
  padding: 0.05em 0.35em;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

#drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  margin-top: 0.75rem;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  padding: 1rem;
}

#drop.over {
  border-color: var(--accent);
  color: var(--ink);
}

#drop input {
  display: none;
}

#file-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

#file-list li {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}

button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#reset-key {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  font-weight: 500;
}

.opt {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

summary {
  cursor: pointer;
  color: var(--muted);
}

details input[type="file"] {
  display: block;
  margin: 0.4rem 0 0.75rem;
  color: var(--muted);
}

#download {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
}

pre {
  background: #000a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

#status {
  color: var(--muted);
  min-height: 1.5rem;
  font-size: 0.9rem;
}

footer p {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2rem;
}
