/* Phase 4 realistic iOS-like overlay; gestures run within the simulated screen. */
#ios-overlay {
  position: absolute;
  inset: 0;
  z-index: 102;
  background: rgba(23, 28, 42, 0.89);
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  color: #fff;
  overflow: hidden;
  animation: iosIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
@keyframes iosIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ios-nc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 650;
}
.ios-nc-top button {
  background: #ffffff25;
  color: white;
  width: 37px;
  height: 37px;
  border-radius: 50%;
}
.ios-nc {
  padding: 70px 18px 30px;
}
.ios-nc h2 {
  text-align: center;
  margin: 38px 0 25px;
  font-size: 23px;
}
.ios-notif {
  display: flex;
  gap: 12px;
  background: #eff1f3dd;
  color: #111;
  border-radius: 18px;
  padding: 14px 13px;
  margin: 9px 0;
  font-size: 22px;
}
.ios-notif span {
  display: grid;
  gap: 5px;
}
.ios-notif strong {
  font-size: 14px;
}
.ios-notif small {
  font-size: 13px;
  color: #454952;
  line-height: 1.4;
}

.ios-top-edge {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52px;
  touch-action: none;
}
.ios-left-edge {
  position: absolute;
  left: 0;
  top: 110px;
  bottom: 110px;
  width: 12px;
  z-index: 90;
  touch-action: none;
}
#phone:has(#lockL[style*='visible']) .ios-left-edge {
  pointer-events: none;
}
.ios-nc {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 60px;
}
.ios-notif time {
  font-size: 11px;
  opacity: 0.7;
}
/* System chrome remains reachable above OS panels. */
#sb {
  z-index: 120;
}
#hb {
  z-index: 125;
}
#island {
  z-index: 130;
}
.ios-top-edge {
  z-index: 121;
}
.ios-notif {
  text-align: left;
}
.ios-notif:disabled {
  opacity: 0.7;
  cursor: default;
}

.ios-notif-icon img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
