:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(20, 30, 44, 0.08);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
}

p {
  margin: 0 0 24px;
  color: #596575;
}

.drop-zone {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  border: 2px dashed #8b9aae;
  border-radius: 8px;
  background: #f8fafc;
  color: #405064;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: #0f766e;
  background: #eefcf9;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.remove-button {
  margin-left: 10px;
  background: #d9534f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button,
.download-link {
  min-height: 42px;
  border-radius: 6px;
  border: 0;
  padding: 0 18px;
  background: #0f766e;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  background: #9aa7b5;
  cursor: wait;
}

#status {
  color: #405064;
}

.file-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.file-list li {
  padding: 10px 12px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  color: #263445;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.download-link {
  margin-top: 18px;
  background: #263445;
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 760px);
    padding: 20px 0;
  }

  .panel {
    padding: 18px;
  }

  button,
  .download-link {
    width: 100%;
  }
}
