@layer rc-legacy, rc-system;
@layer rc-system {
.application-update-root {
  position: fixed;
  inset: 0;
  z-index: 1390;
  pointer-events: none;
}

.application-update-root[hidden] {
  display: none;
}

.application-update-card {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px 14px;
  width: min(390px, calc(100vw - 40px));
  padding: 16px;
  color: #edf4eb;
  background: linear-gradient(145deg, rgba(29, 39, 29, 0.98), rgba(16, 22, 17, 0.98));
  border: 1px solid rgba(165, 206, 157, 0.22);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  animation: application-update-enter 180ms ease-out both;
}

.application-update-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #b9e8b2;
  background: rgba(93, 149, 91, 0.16);
  border-radius: 14px;
}

.application-update-mark svg {
  width: 21px;
  height: 21px;
}

.application-update-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 3px;
}

.application-update-copy strong {
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.application-update-copy span {
  color: rgba(224, 234, 221, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.application-update-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.application-update-actions button {
  min-height: 38px;
  padding: 0 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.application-update-later {
  color: rgba(226, 236, 223, 0.72);
  background: transparent;
}

.application-update-later:hover,
.application-update-later:focus-visible {
  color: #f2f7f0;
  background: rgba(255, 255, 255, 0.055);
}

.application-update-accept {
  color: #122013;
  background: #b8d9b2;
  box-shadow: 0 8px 24px rgba(97, 155, 91, 0.16);
}

.application-update-accept:hover,
.application-update-accept:focus-visible {
  background: #c8e8c2;
}

.application-update-actions button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.profile-v3.profile-v3 .profile-legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.profile-v3 .profile-app-version {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0;
  color: rgba(195, 205, 192, 0.48);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
  cursor: default;
}

.profile-v3 .profile-app-version-update {
  color: rgba(173, 218, 165, 0.78);
  cursor: pointer;
}

.profile-v3 .profile-app-version-update:hover,
.profile-v3 .profile-app-version-update:focus-visible {
  color: #c8e8c2;
}

@keyframes application-update-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .application-update-card {
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 74px));
    width: auto;
    padding: 14px;
    border-radius: 18px;
  }

  .application-update-actions button {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-update-card {
    animation: none;
  }
}
}
