.vuebox-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.vuebox-update-overlay[hidden] {
  display: none !important;
}

.vuebox-update-open {
  overflow: hidden !important;
}

.vuebox-update-panel {
  width: min(760px, 92vw);
  max-height: 88vh;
  padding: clamp(24px, 4vh, 44px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.vuebox-update-panel:focus {
  outline: none;
}

.vuebox-update-kicker {
  margin-bottom: 12px;
  color: #f23b46;
  font-size: clamp(0.88rem, 1.7vh, 1.05rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vuebox-update-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 5.2vh, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.vuebox-update-message {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2.45vh, 1.28rem);
  line-height: 1.45;
}

.vuebox-update-versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.vuebox-update-version {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.vuebox-update-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.78rem, 1.8vh, 0.95rem);
  line-height: 1.2;
}

.vuebox-update-value {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(1.15rem, 2.8vh, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.vuebox-update-progress {
  margin: 2px 0 26px;
}

.vuebox-update-progress[hidden] {
  display: none !important;
}

.vuebox-update-bar {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.vuebox-update-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f23b46, #ff7a45);
  transition: width 180ms ease;
}

.vuebox-update-progress.is-indeterminate .vuebox-update-fill {
  width: 38%;
  animation: vuebox-update-slide 1.15s ease-in-out infinite;
}

.vuebox-update-status {
  min-height: 1.4em;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9rem, 2vh, 1.02rem);
  line-height: 1.35;
}

.vuebox-update-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.vuebox-update-button {
  min-width: 170px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: clamp(1rem, 2.3vh, 1.16rem);
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.vuebox-update-button.is-primary {
  border-color: #f23b46;
  background: #f23b46;
}

.vuebox-update-button:focus,
.vuebox-update-button:hover {
  outline: 3px solid rgba(255, 255, 255, 0.9) !important;
  outline-offset: 4px;
  transform: scale(1.03);
}

.vuebox-update-button[hidden] {
  display: none !important;
}

.vuebox-update-button:disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

@keyframes vuebox-update-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(270%);
  }
}

@media (max-width: 720px) {
  .vuebox-update-overlay {
    align-items: stretch;
    padding: 18px;
  }

  .vuebox-update-panel {
    width: 100%;
    align-self: center;
    padding: 24px;
  }

  .vuebox-update-versions {
    grid-template-columns: 1fr;
  }

  .vuebox-update-button {
    width: 100%;
  }
}
