/* NOVA: polished glass back control + compact activity-stage header.
   Presentation only; the offer list, progress nodes and tracking stay intact. */
body.nova-detail-open #overlay #close {
  appearance:none!important; position:absolute!important; z-index:30!important;
  top:18px!important;left:18px!important;right:auto!important;
  width:34px!important;height:34px!important;min-width:34px!important;
  padding:0!important;display:grid!important;place-items:center!important;
  border-radius:50%!important;
  border:1px solid rgba(218,187,255,.76)!important;
  background:linear-gradient(145deg,rgba(172,111,255,.37),rgba(43,31,99,.62))!important;
  color:#f8f2ff!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.32),inset 0 -3px 7px rgba(51,18,117,.36),0 0 0 3px rgba(134,75,241,.12),0 0 17px rgba(148,78,255,.33)!important;
  backdrop-filter:blur(16px) saturate(160%)!important;-webkit-backdrop-filter:blur(16px) saturate(160%)!important;
  font-size:0!important;line-height:0!important;
}
body.nova-detail-open #overlay #close::before {
  content:'';position:absolute;inset:3px;border-radius:50%;
  border:1px solid rgba(237,219,255,.33);pointer-events:none;
}
body.nova-detail-open #overlay #close svg {width:18px;height:18px;display:block;stroke:#fff;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #c9a6ff);}
body.nova-detail-open #overlay #close:hover {background:linear-gradient(145deg,rgba(193,135,255,.5),rgba(73,40,147,.72))!important;box-shadow:0 0 0 3px rgba(134,75,241,.18),0 0 23px rgba(160,85,255,.5)!important;}
body.nova-detail-open #overlay #close:focus-visible {outline:2px solid #e2c6ff!important;outline-offset:4px!important;}

/* Only the final activity/offer stage gets the space-saving layout. */
body.nova-detail-open #overlay .modal:has(.download-milestones) {padding-top:61px!important;}
body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;text-align:left!important;
  gap:13px!important;padding:12px 14px!important;margin:0 0 13px!important;
  border:1px solid rgba(159,125,244,.32)!important;border-radius:18px!important;
  background:linear-gradient(125deg,rgba(105,77,185,.23),rgba(36,35,78,.5))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.09)!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top .icon-img {
  width:56px!important;height:56px!important;max-width:56px!important;
  flex:0 0 56px!important;border-radius:13px!important;box-shadow:0 0 14px #8837ff35!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top > div {min-width:0!important;flex:1!important;}
body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top h2 {
  font-size:19px!important;line-height:1.22!important;letter-spacing:-.3px!important;
  margin:0 0 4px!important;overflow-wrap:anywhere!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top p {
  font-size:13px!important;line-height:1.3!important;margin:0!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .tag {
  margin:0 0 6px!important;padding:4px 10px!important;font-size:10px!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) h3 {
  text-align:left!important;font-size:19px!important;line-height:1.25!important;
  margin:0 0 8px!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .notice {
  font-size:14px!important;line-height:1.48!important;
  padding:12px 14px!important;margin:0 0 12px!important;border-radius:15px!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .download-milestones {
  padding:12px 13px!important;margin:0 0 12px!important;
}
body.nova-detail-open #overlay .modal:has(.download-milestones) .download-milestones .progress {margin:7px 0!important;}
body.nova-detail-open #overlay .modal:has(.download-milestones) #offer-list {margin-top:0!important;}
body.nova-detail-open #overlay .modal:has(.download-milestones) #offer-list > h3 {margin:8px 0!important;}
@media(max-width:420px) {
 body.nova-detail-open #overlay .modal:has(.download-milestones) {padding:57px 16px 35px!important;}
 body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top {padding:10px 12px!important;gap:11px!important;}
 body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top .icon-img {width:50px!important;height:50px!important;max-width:50px!important;flex-basis:50px!important;}
 body.nova-detail-open #overlay .modal:has(.download-milestones) .modal-top h2 {font-size:18px!important;}
}
