.app-update-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 15px 14px 17px;
  border: 1px solid #cdd4b9;
  border-radius: 16px;
  background: #fffef8;
  box-shadow: 0 16px 40px #3035282b;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.app-update-notice[hidden] { display: none; }
.app-update-notice.visible { opacity: 1; transform: translateY(0); }

.app-update-notice > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.app-update-notice b { color: #30362b; font-size: 14px; }
.app-update-notice small { color: #7b826f; font-size: 11px; line-height: 1.35; }

.app-update-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.app-update-actions button { min-height: 38px; padding: 0 12px; font-size: 11px; }

.whats-new-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  border: 1px solid var(--ig-line, #dde1cf);
  border-radius: 26px;
  background: #fffef8;
}

.whats-new-dialog::backdrop {
  background: #252a208c;
  backdrop-filter: blur(4px);
}

.whats-new-panel { padding: 30px; }

.whats-new-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.whats-new-head .eyebrow { margin-bottom: 4px; }
.whats-new-head h2 { font-size: clamp(28px, 5vw, 38px); line-height: 1; }
.whats-new-head .icon { align-self: start; min-width: 46px; min-height: 46px; }

.whats-new-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: var(--ig-olive-dark, #464b38);
  color: var(--ig-lime, #dce7a5);
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 9px 24px #464b3830;
}

.whats-new-intro {
  margin: 24px 0 18px;
  color: var(--ig-muted, #717766);
  font-size: 16px;
  line-height: 1.55;
}

.whats-new-list { display: grid; gap: 10px; }

.whats-new-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--ig-line, #dde1cf);
  border-radius: 17px;
  background: #f8f8ef;
}

.whats-new-list article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e7ecd4;
  color: var(--ig-olive-dark, #464b38);
  font-size: 20px;
  font-weight: 900;
}

.whats-new-list b { color: #30362b; font-size: 15px; }
.whats-new-list p { margin-top: 4px; color: var(--ig-muted, #717766); font-size: 13px; line-height: 1.45; }

.whats-new-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.whats-new-footer small { max-width: 260px; color: #858b7b; line-height: 1.4; }
.whats-new-footer button { white-space: nowrap; }

@media (max-width: 600px) {
  .app-update-notice {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    max-width: none;
  }

  .app-update-actions { width: 100%; }
  .app-update-actions button { flex: 1; }

  .whats-new-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .whats-new-panel { padding: 20px; }
  .whats-new-head { grid-template-columns: auto 1fr auto; gap: 11px; }
  .whats-new-mark { width: 46px; height: 46px; border-radius: 14px; }
  .whats-new-head .icon { min-width: 40px; min-height: 40px; padding: 0 6px; }
  .whats-new-list article { grid-template-columns: 40px 1fr; padding: 14px; gap: 12px; }
  .whats-new-list article > span { width: 38px; height: 38px; }
  .whats-new-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .whats-new-footer small { max-width: none; }
  .whats-new-footer button { width: 100%; }
}
