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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(91, 173, 194, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(243, 167, 83, 0.2), transparent 30rem),
    #eef4f7;
}

button,
input {
  font: inherit;
}

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

.card {
  width: min(100%, 610px);
  padding: clamp(24px, 6vw, 48px);
  border: 1px solid rgba(58, 86, 101, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(45, 68, 82, 0.14);
}

.eyebrow {
  color: #21728a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 14px;
  color: #172335;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.intro {
  margin: 0;
  color: #536174;
  font-size: 1.05rem;
  line-height: 1.65;
}

.privacy {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 26px 0;
  padding: 15px 17px;
  border-radius: 16px;
  color: #195d4b;
  background: #e8f7f0;
}

.privacy-icon {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #258469;
  font-weight: 900;
}

.privacy strong,
.privacy span {
  display: block;
}

.privacy span {
  margin-top: 2px;
  color: #427464;
  font-size: 0.88rem;
}

.release-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

.release-info div {
  padding: 13px 15px;
  border-radius: 14px;
  background: #f3f6f8;
}

.release-info dt {
  margin-bottom: 4px;
  color: #778294;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.release-info dd {
  margin: 0;
  color: #2d394a;
  font-weight: 750;
}

.file-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
  padding: 17px;
  border: 2px dashed #9ab1bc;
  border-radius: 17px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: #287e96;
  background: #f5fbfd;
}

.file-picker-title {
  color: #344153;
  font-weight: 800;
}

.file-name {
  overflow: hidden;
  color: #6d7888;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choose-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 9px 12px;
  border-radius: 10px;
  color: #17667d;
  background: #e5f3f7;
  font-size: 0.88rem;
  font-weight: 800;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.patch-button {
  width: 100%;
  margin-top: 14px;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: #df6c36;
  box-shadow: 0 10px 24px rgba(184, 76, 27, 0.22);
  font-weight: 850;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.patch-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.patch-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.status {
  min-height: 44px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #586578;
  background: #f5f7f9;
  font-size: 0.92rem;
  line-height: 1.45;
}

.status.busy {
  color: #1e6376;
  background: #eaf6f9;
}

.status.success {
  color: #17634f;
  background: #e6f7ef;
}

.status.error {
  color: #9a352d;
  background: #fdeceb;
}

.download-link {
  display: block;
  margin-top: 13px;
  color: #176b83;
  font-weight: 750;
  text-align: center;
}

.download-link[hidden] {
  display: none;
}

.help {
  margin-top: 24px;
  border-top: 1px solid #e1e7eb;
  padding-top: 17px;
  color: #667386;
  font-size: 0.9rem;
  line-height: 1.55;
}

.help summary {
  color: #465469;
  font-weight: 750;
  cursor: pointer;
}

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

  .file-picker {
    grid-template-columns: 1fr;
  }

  .choose-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
