.app-update-notice {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  color: #17263d;
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 15px;
  box-shadow: 0 12px 38px #07142635;
  font: inherit;
}

.app-update-copy { display: grid; gap: 4px; }
.app-update-copy strong { font-size: 14px; }
.app-update-copy span { color: #64727f; font-size: 12px; line-height: 1.4; }
.app-update-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.app-update-notice button { border: 0; border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.app-update-later { background: #edf1f4; color: #26364a; }
.app-update-reload { background: #17263d; color: #fff; }
.app-update-notice button:focus-visible { outline: 3px solid #6ca0cf; outline-offset: 2px; }

[data-theme="dark"] .app-update-notice { color: #f2f6fa; background: #1d2938; border-color: #3a4a5c; }
[data-theme="dark"] .app-update-copy span { color: #b6c3d0; }
[data-theme="dark"] .app-update-later { color: #eef4fa; background: #2b3b4e; }
[data-theme="dark"] .app-update-reload { color: #fff; background: #315b88; }

@media (max-width: 760px) {
  .app-update-notice { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); align-items: flex-start; flex-direction: column; gap: 12px; }
  .app-update-actions { width: 100%; justify-content: flex-end; }
}

@media (prefers-reduced-motion: no-preference) {
  .app-update-notice { animation: app-update-enter .18s ease-out; }
  @keyframes app-update-enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
}
