:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242b;
  background: #f5f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body { min-width: 320px; min-height: 100vh; margin: 0; }
.page { width: min(100% - 32px, 600px); margin: 0 auto; }
.main-content { margin: 18vh auto 0; }
h1 { margin: 0; font-size: clamp(25px, 6vw, 32px); letter-spacing: -.04em; }
.intro { margin: 10px 0 28px; color: #626a76; font-size: 14px; }

.download-card {
  padding: 22px;
  border: 1px solid #e0e3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(22 31 44 / 5%);
}
.download-card label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.input-row { display: flex; gap: 9px; }
input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #ccd1d9;
  border-radius: 7px;
  outline: none;
  color: inherit;
  background: #fff;
  font: inherit;
  font-size: 13px;
}
input:focus { border-color: #3978d4; box-shadow: 0 0 0 3px rgb(57 120 212 / 13%); }
input::placeholder { color: #9299a4; }
button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #2867c7;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #1f56ab; }
button:disabled { cursor: wait; opacity: .65; }
.card-hint { margin: 10px 0 0; color: #747c88; font-size: 11px; }

.progress-panel { margin-top: 24px; }
.progress-panel[hidden], .status[hidden] { display: none; }
.progress-heading { display: flex; justify-content: space-between; margin-bottom: 8px; color: #4a515c; font-size: 12px; }
progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 99px; appearance: none; }
progress::-webkit-progress-bar { border-radius: 99px; background: #e8ebf0; }
progress::-webkit-progress-value { border-radius: 99px; background: #2867c7; transition: width .25s ease; }
progress::-moz-progress-bar { border-radius: 99px; background: #2867c7; }
.status { margin-top: 18px; color: #4a515c; font-size: 12px; line-height: 1.6; }
.status.error { color: #b42318; }
.status.success { color: #18794e; }

footer { margin: 50px 0 24px; color: #858c97; text-align: center; font-size: 10px; line-height: 1.7; }

@media (max-width: 520px) {
  .main-content { margin-top: 12vh; }
  .download-card { padding: 17px; }
  .input-row { flex-direction: column; }
  button { width: 100%; }
}
