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

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(160deg, #edf3f9 0%, #f6f7fb 48%, #e7edf4 100%);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 28px 80px rgba(34, 52, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #69798c;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.subtitle {
  margin: 18px 0 30px;
  color: #677486;
  font-size: 1rem;
}

.drop-button {
  width: 100%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px;
  border: 1.5px dashed #9aa9bb;
  border-radius: 22px;
  color: #17202a;
  background: rgba(247, 250, 253, 0.9);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.drop-button:hover,
.drop-button:focus-visible,
.drop-button.is-dragging {
  border-color: #3f6fff;
  background: #f3f6ff;
  box-shadow: 0 14px 36px rgba(63, 111, 255, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.drop-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 16px;
  color: white;
  background: #315ee8;
  box-shadow: 0 10px 25px rgba(49, 94, 232, 0.28);
}

.icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-title {
  font-size: 1.08rem;
  font-weight: 760;
}

.button-hint {
  color: #718094;
  font-size: 0.9rem;
}

.selection {
  margin-top: 16px;
  color: #667487;
  font-size: 0.9rem;
}

.progress-panel {
  margin-top: 24px;
  text-align: left;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  color: #526174;
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ef;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #315ee8, #6b8cff);
  transition: width 120ms linear;
}

.progress-track.is-processing .progress-fill {
  width: 100% !important;
  background-size: 200% 100%;
  animation: processing 1.1s linear infinite;
}

.status {
  min-height: 24px;
  margin-top: 20px;
  color: #3e4c5e;
  font-size: 0.92rem;
  font-weight: 650;
}

.status.success {
  color: #18794e;
}

.status.error {
  color: #b42318;
}

@keyframes processing {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f4f7fb;
    background: #0c1118;
  }

  body {
    background:
      radial-gradient(circle at top, rgba(42, 58, 80, 0.8), transparent 45%),
      linear-gradient(160deg, #111821 0%, #0b1017 100%);
  }

  .card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 25, 35, 0.8);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  }

  .eyebrow,
  .subtitle,
  .button-hint,
  .selection,
  .progress-copy,
  .status {
    color: #aeb9c8;
  }

  .drop-button {
    border-color: #56657a;
    color: #f4f7fb;
    background: rgba(27, 37, 50, 0.9);
  }

  .drop-button:hover,
  .drop-button:focus-visible,
  .drop-button.is-dragging {
    border-color: #7f9cff;
    background: #1b2638;
  }

  .progress-track {
    background: #2a3545;
  }

  .status.success {
    color: #58d69d;
  }

  .status.error {
    color: #ff8c83;
  }
}
