:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

main {
  max-width: 900px;
  width: 100%;
}

h1 {
  font-size: 1.5rem;
}

#drop-zone {
  border: 2px dashed #888;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  transition: background-color 0.15s ease;
}

#drop-zone.dragover {
  background-color: rgba(100, 150, 255, 0.15);
  border-color: #4a90d9;
}

#status {
  min-height: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

#status.error {
  color: #d33;
}

#status.ok {
  color: #2a8f2a;
}

#output-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#output-toolbar button {
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

#output {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(128, 128, 128, 0.1);
  border-radius: 8px;
  padding: 1rem;
  max-height: 70vh;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
}

footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.7;
}
