/* =====================================================================
   "Update available" and "Install app" prompts
   ===================================================================== */
.app-prompt {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 1060;
  width: min(460px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ncosha-ink); border: 1px solid var(--ncosha-border); border-radius: 16px;
  padding: 12px 12px 12px 14px; box-shadow: 0 18px 44px rgba(15, 30, 20, .2); animation: appPromptIn .22s ease-out;
}
.app-prompt[hidden] { display: none; }
.app-prompt.is-top { bottom: auto; top: 14px; }
@keyframes appPromptIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.app-prompt-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--rf-tint-green, #e8f6ee); color: var(--rf-ink-green, #0f7a44); overflow: hidden; }
.app-prompt-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.app-prompt-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.app-prompt-text b { display: block; font-size: 14.5px; }
.app-prompt-text span { color: var(--ncosha-muted, #6b7a72); }
.app-prompt-actions { display: flex; gap: 6px; flex-shrink: 0; }
.app-prompt-btn { border: 0; border-radius: 10px; padding: 8px 13px; font-weight: 700; font-size: 13.5px; cursor: pointer; background: var(--ncosha-green, #14904f); color: #fff; white-space: nowrap; }
.app-prompt-btn:hover { background: var(--ncosha-green-dark, #0d6b3a); }
.app-prompt-btn.ghost { background: transparent; color: var(--ncosha-muted, #6b7a72); padding: 8px 9px; }
.app-prompt-btn.ghost:hover { background: var(--ncosha-bg, #f4f6f5); color: var(--ncosha-ink, #1b2320); }
@media (max-width: 991.98px) { .app-prompt { bottom: auto; top: calc(64px + env(safe-area-inset-top)); } }
@media (max-width: 420px) { .app-prompt { flex-wrap: wrap; } .app-prompt-actions { width: 100%; justify-content: flex-end; } }
[data-theme="dark"] .app-prompt { background: var(--ncosha-sidebar); }
@media print { .app-prompt { display: none !important; } }
