:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #202124;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  display: grid;
  gap: 12px;
  margin: 48px auto;
  max-width: 480px;
  padding: 0 16px;
}

p {
  margin: 0;
  line-height: 1.5;
}

.drop-zone {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 2px dashed #bbb;
  border-radius: 6px;
  color: #777;
  cursor: pointer;
  position: relative;
}

.drop-zone strong {
  font-weight: 400;
  font-size: 15px;
}

.drop-zone input {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.drop-zone:focus-within {
  outline: 2px solid #36c;
  outline-offset: 3px;
}

.drop-zone.filled {
  background: #eef8ee;
  border: 2px solid #393;
  color: #202124;
}

.drop-zone.filled strong {
  font-weight: 600;
}

.drop-zone.dragging {
  background: #e8f0ff;
  border-color: #36c;
}

.hint {
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.file-actions .hint {
  margin-left: auto;
}

button,
input,
.download {
  font: inherit;
  border-radius: 5px;
}

button {
  padding: 8px 12px;
  border: 1px solid #bbb;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
}

button:hover:enabled {
  background: #eaeaea;
}

button:disabled {
  cursor: default;
  opacity: 0.5;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #36c;
  outline-offset: 2px;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.run-actions {
  display: flex;
  gap: 8px;
}

.primary {
  background: #36c;
  border-color: #36c;
  color: white;
  flex: 1;
  padding: 11px;
  font-weight: 600;
}

.primary:hover:enabled {
  background: #2854ad;
}

#status {
  font-size: 13px;
  overflow-wrap: anywhere;
}

progress {
  width: 100%;
  height: 6px;
  margin-top: 8px;
  accent-color: #36c;
}

.download {
  display: block;
  padding: 12px;
  background: #eef8ee;
  border: 1px solid #393;
  color: #286428;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
}

#queue {
  display: grid;
  gap: 10px;
}

.audio-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.audio-heading {
  display: flex;
  align-items: start;
  gap: 10px;
}

.audio-heading strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  flex: 1;
}

.remove {
  padding: 0 5px;
  font-size: 18px;
  line-height: 22px;
  background: transparent;
  border: 0;
  color: #777;
}

.audio-details {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  white-space: pre-line;
}

.audio-details.warning {
  color: #8a5700;
}

.audio-details.error {
  color: #b32d24;
}

.players {
  display: grid;
  gap: 6px;
}

.players span {
  display: block;
  font-size: 11px;
  color: #777;
}

audio {
  width: 100%;
  height: 32px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  main {
    margin: 24px auto;
  }
  .file-actions .hint {
    flex-basis: 100%;
    margin-left: 0;
  }
}
