/* Version-update sheet — rendered by `_version_update_banner.html.slim`.
   Built on the shared `.bottom-sheet` shell so open/close animations match
   the chat / knock / settings sheets. Panel is content-sized (auto height),
   not the 75% default. */
.version-update-sheet {
  z-index: 2147483646;
}

/* Override the generic 75% panel height: this sheet is short. */
.version-update-sheet__panel {
  height: auto !important;
  bottom: 0 !important;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 24px);
  background: linear-gradient(180deg, #0a421b 0%, #053018 100%);
}

.version-update-sheet__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 0;
  text-align: center;
}

.version-update-sheet__icon {
  width: 40px;
  height: 40px;
  color: #a6d90f;
  stroke-width: 1.8;
}

.version-update-sheet__title {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fbfcfc;
  line-height: 1.2;
}

.version-update-sheet__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(251, 252, 252, 0.85);
  max-width: 280px;
}

.version-update-sheet__actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-top: 6px;
}

.version-update-sheet__btn {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.version-update-sheet__btn:active {
  transform: scale(0.98);
}

.version-update-sheet__btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.version-update-sheet__btn--primary {
  background: linear-gradient(180deg, #a6d90f 0%, #5fa70c 100%);
  color: #001f0c;
  box-shadow: 0 4px 12px rgba(166, 217, 15, 0.35);
}

.version-update-sheet__btn--secondary {
  background: transparent;
  color: #fbfcfc;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.version-update-sheet__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 31, 12, 0.3);
  border-top-color: #001f0c;
  border-radius: 50%;
  animation: version-update-sheet-spin 0.7s linear infinite;
}

.version-update-sheet__spinner.hidden {
  display: none;
}

@keyframes version-update-sheet-spin {
  to { transform: rotate(360deg); }
}
