
:root{
  --zw-pwa-safe-top:env(safe-area-inset-top,0px);
  --zw-pwa-safe-right:env(safe-area-inset-right,0px);
  --zw-pwa-safe-bottom:env(safe-area-inset-bottom,0px);
  --zw-pwa-safe-left:env(safe-area-inset-left,0px);
  --zw-pwa-brand:#00BFA5;
  --zw-pwa-ink:#0B1B2D;
}

html.zw-pwa-standalone body{overscroll-behavior-y:none}
html.zw-pwa-standalone .zw-app{min-height:100dvh}
html.zw-pwa-launch-pending{background:#0B1B2D}
html.zw-pwa-launch-pending::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:2147482999;
  background:#0B1B2D
}

.zw-pwa-install-fab{
  position:fixed;
  left:max(16px,calc(16px + var(--zw-pwa-safe-left)));
  bottom:max(20px,calc(20px + var(--zw-pwa-safe-bottom)));
  z-index:9994;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:#0B1B2D;
  color:#fff;
  padding:10px 14px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  box-shadow:0 12px 34px rgba(11,27,45,.24);
  cursor:pointer
}
.zw-pwa-install-fab[hidden]{display:none!important}
.zw-pwa-install-fab>span:first-child{
  width:23px;height:23px;border-radius:50%;
  display:grid;place-items:center;background:#00BFA5;
  color:#062b27;font-size:15px
}

.zw-pwa-install-dialog{
  width:min(440px,calc(100vw - 28px));
  border:0;border-radius:22px;padding:0;background:transparent
}
.zw-pwa-install-dialog::backdrop{
  background:rgba(4,15,28,.58);
  backdrop-filter:blur(4px)
}
.zw-pwa-install-dialog__card{
  background:#fff;color:#0B1B2D;border-radius:22px;padding:20px;
  box-shadow:0 28px 80px rgba(11,27,45,.32)
}
.zw-pwa-install-dialog__card header{
  display:flex;justify-content:space-between;gap:16px;
  align-items:flex-start;padding-bottom:14px;border-bottom:1px solid #e5eaee
}
.zw-pwa-install-dialog__card header div{display:grid;gap:4px}
.zw-pwa-install-dialog__card header strong{font-size:16px}
.zw-pwa-install-dialog__card header span{font-size:11px;color:#64748b}
.zw-pwa-install-dialog__card header button{
  border:0;background:#f1f5f9;border-radius:10px;width:34px;height:34px;
  font-size:22px;color:#334155;cursor:pointer
}
.zw-pwa-install-dialog__card ol{
  margin:18px 0;padding-right:22px;display:grid;gap:12px;
  line-height:1.8;font-size:13px
}
.zw-pwa-install-dialog__card p{
  margin:0;padding:12px;border-radius:12px;background:#f0fdfa;
  color:#0f766e;font-size:12px;line-height:1.8
}
html.zw-pwa-offline .zw-pwa-install-fab{display:none!important}

/* ACG PWA V8 — premium launch */
.zw-pwa-launch{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 38%,rgba(0,191,165,.12),transparent 29%),
    radial-gradient(circle at 50% 110%,rgba(255,255,255,.055),transparent 34%),
    #0B1B2D;
  color:#fff;
  opacity:0;
  transition:opacity .24s ease;
  isolation:isolate
}
.zw-pwa-launch::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:radial-gradient(circle at center,#000 0,transparent 72%)
}
.zw-pwa-launch.is-visible{opacity:1}
.zw-pwa-launch.is-leaving{opacity:0;pointer-events:none}
.zw-pwa-launch__inner{
  position:relative;
  z-index:2;
  width:min(360px,calc(100vw - 48px));
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  direction:ltr
}
.zw-pwa-launch__mark{
  width:236px;
  height:96px;
  display:grid;
  place-items:center;
  background:transparent;
  transform:translateY(8px) scale(.96);
  opacity:0;
  animation:zwPwaLaunchMark .52s cubic-bezier(.2,.8,.2,1) .04s forwards
}
.zw-pwa-launch__mark img{
  width:228px;
  height:auto;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.20))
}
.zw-pwa-launch__eyebrow{
  margin-top:24px;color:rgba(255,255,255,.45);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:9px;font-weight:700;letter-spacing:.24em;text-transform:uppercase
}
.zw-pwa-launch__title{
  margin:8px 0 0;
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:28px;line-height:1.2;font-weight:760;letter-spacing:-.025em
}
.zw-pwa-launch__company{
  margin-top:7px;color:#7ce8d8;
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:11px;font-weight:650;letter-spacing:.16em;text-transform:uppercase
}
.zw-pwa-launch__progress{
  position:relative;width:156px;height:2px;margin-top:30px;overflow:hidden;
  border-radius:999px;background:rgba(255,255,255,.10)
}
.zw-pwa-launch__progress::after{
  content:"";
  position:absolute;inset:0;width:54%;border-radius:inherit;background:#00BFA5;
  transform:translateX(-150%);
  animation:zwPwaLaunchProgress 1.05s cubic-bezier(.45,0,.2,1) infinite
}
.zw-pwa-launch__foot{
  position:absolute;left:0;right:0;
  bottom:max(26px,calc(18px + var(--zw-pwa-safe-bottom)));
  z-index:2;text-align:center;direction:ltr;color:rgba(255,255,255,.26);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:8px;font-weight:600;letter-spacing:.18em;text-transform:uppercase
}
@keyframes zwPwaLaunchMark{
  to{transform:translateY(0) scale(1);opacity:1}
}
@keyframes zwPwaLaunchProgress{
  0%{transform:translateX(-150%)}
  55%{transform:translateX(90%)}
  100%{transform:translateX(210%)}
}
@media(max-width:640px){
  .zw-pwa-install-fab{
    bottom:max(84px,calc(84px + var(--zw-pwa-safe-bottom)))
  }
  .zw-pwa-launch__mark{width:204px;height:84px}
  .zw-pwa-launch__mark img{width:196px;height:auto}
  .zw-pwa-launch__title{font-size:25px}
}
@media(prefers-reduced-motion:reduce){
  .zw-pwa-launch,
  .zw-pwa-launch__mark,
  .zw-pwa-launch__progress::after{
    animation:none!important;
    transition:none!important
  }
  .zw-pwa-launch__mark{opacity:1;transform:none}
}
