.pwa-update-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  margin: 0;
  background: rgba(0, 0, 0, 0.92);
  color: #f8fafc;
  text-align: center;
}

.pwa-update-gate[hidden] {
  display: none !important;
}

.pwa-update-card {
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #0b0b0b;
}

.pwa-update-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 14px;
}

.pwa-update-card strong {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.pwa-update-card p {
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}

.pwa-update-card button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #c9a227;
  color: #111;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pwa-update-card button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pwa-splash-skip .pwa-splash {
  display: none !important;
}

.pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  margin: 0;
  background: #000;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pwa-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pwa-splash img {
  width: min(148px, 36vw);
  height: auto;
  display: block;
}

.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 10px 10px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #fff;
  color: #1a1b20;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.pwa-install[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .admin-body .pwa-install {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

.pwa-install-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.pwa-install-copy {
  min-width: 0;
  flex: 1;
}

.pwa-install-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.pwa-install-copy p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.pwa-install-go,
.pwa-install-close {
  flex: 0 0 auto;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.pwa-install-go {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: #1a468c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pwa-install-go[hidden] {
  display: none;
}

.pwa-install-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.pwa-install-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
