:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101218;
  color: #eceef5;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

main {
  width: min(100%, 850px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9b91f5;
}

h1 {
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -.045em;
  margin: 12px 0;
}

p {
  color: #a5aaba;
  line-height: 1.65;
}

header {
  margin-bottom: 30px;
}

header p {
  max-width: 640px;
}

.panel {
  background: #191c25;
  border: 1px solid #303440;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 16px 55px #0003;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.drop {
  border: 1px dashed #53586b;
  border-radius: 12px;
  background: #20232e;
  padding: 26px 18px;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: .15s;
  position: relative;
}

.drop:hover,
.drop.drag {
  border-color: #a89cff;
  background: #28283b;
}

.drop.selected {
  border-style: solid;
  border-color: #6ba989;
  background: #202c2b;
}

.drop:focus-visible {
  outline: 2px solid #b4a9ff;
  outline-offset: 3px;
}

.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.icon {
  font-size: 29px;
  color: #b8aefa;
  margin-bottom: 13px;
}

.drop strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.drop small {
  color: #9298aa;
  margin-top: 9px;
  font-size: 12px;
}

.label {
  font-weight: 700;
  color: #dce0eb;
  margin: 0 0 11px;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 23px;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
}

button.primary {
  background: #a999ff;
  color: #151323;
}

button.primary:hover:not(:disabled) {
  background: #c0b7ff;
}

button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

button.secondary {
  background: transparent;
  color: #c2c6d5;
  border-color: #424657;
}

button.secondary:hover {
  background: #272b38;
}

.status {
  margin-top: 20px;
  border-top: 1px solid #343847;
  padding-top: 17px;
  color: #bbc0d0;
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: .55em;
  border-radius: 50%;
  background: #9fa6b8;
}

.status.ready::before {
  background: #b8aefa;
}

.status.working::before {
  background: #f2cf7a;
}

.status.complete::before {
  background: #8ed6ad;
}

.status.error {
  color: #ffaea9;
}

.status.error::before {
  background: #ff8f89;
}

.results {
  margin-top: 17px;
  display: none;
}

.results.show {
  display: block;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.stat {
  background: #222633;
  border: 1px solid #363c4d;
  border-radius: 10px;
  padding: 12px 15px;
  color: #9fa6b8;
  font-size: 13px;
}

.stat strong {
  display: block;
  color: #f3f2fa;
  font-size: 23px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 245px;
  overflow: auto;
  background: #11141c;
  border: 1px solid #323745;
  border-radius: 10px;
  padding: 16px;
  color: #c5d3e5;
  font-size: 12px;
  line-height: 1.6;
}

footer {
  font-size: 12px;
  color: #777f91;
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 17px;
  }

  .drop {
    min-height: 155px;
  }
}
