  <style>

    :root {
      --popup-z: 2147483647;
      --popup-bg: #0f172a;
      --popup-fg: #e2e8f0;
      --popup-accent: #22c55e;
      --popup-z: 2147483647; /* สูงสุดแล้ว */
    }
    body { font-family: system-ui, sans-serif; background: #f8fafc; margin:0; }

    .update-popup {
      position: fixed; right: 20px; bottom: 20px;
      width: min(92vw, 420px);
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
      background: var(--popup-bg);
      color: var(--popup-fg);
      z-index: var(--popup-z);
      transform: translateY(16px);
      opacity: 0; pointer-events: none;
      transition: opacity .25s ease, transform .25s ease;
    }
    [data-open="true"] .update-popup {
      opacity: 1; transform: translateY(0); pointer-events: auto;
    }

    .update-popup__header { display:flex; align-items:center; gap:10px; padding:14px 16px 0 16px; }
    .badge {
      display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700;
      background:#0b6b3a; color:#eafff2; border-radius:999px; padding:6px 10px;
    }
    .dot { width:10px; height:10px; border-radius:50%; background: var(--popup-accent); }

    .update-popup__title { font-size:16px; font-weight:700; margin:10px 16px 0 16px; }
    .update-popup__body { font-size:14px; line-height:1.55; opacity:.95; padding:8px 16px 16px 16px; }
    .update-popup__actions { display:flex; gap:8px; padding:0 16px 16px 16px; }
    .btn { border:0; border-radius:12px; padding:10px 14px; font-weight:700; cursor:pointer; }
    .btn-primary { background: var(--popup-accent); color:#06220f; }
    .btn-ghost { background: transparent; color: var(--popup-fg); outline: 1px solid rgba(226,232,240,.25); }

    .update-popup__close {
      position:absolute; top:8px; right:8px; width:36px; height:36px; border-radius:10px;
      border:0; background: rgba(255,255,255,.06); color: var(--popup-fg);
      cursor:pointer; display:grid; place-items:center;
    }
    .update-popup__close:hover { background: rgba(255,255,255,.12); }

</style>