#apro-announce-bell{
  position:fixed;
  left:16px;
  /* Keep above adaptive bottom navigation if the page defines --mobile-nav-height */
  bottom:calc(var(--mobile-nav-height, 0px) + 16px + env(safe-area-inset-bottom));
  z-index:99999;
  width:52px;
  height:52px;
  border-radius:999px;
  background:rgba(0,0,0,0.72);
  border:1px solid rgba(255,255,255,0.16);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select:none;
}

#apro-announce-bell:focus{outline:2px solid rgba(122,162,255,0.8); outline-offset:2px}

.apro-announce-ico{font-size:20px; line-height:1}

.apro-announce-badge{
  position:absolute;
  top:8px;
  right:8px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ff3b3b;
  box-shadow:0 0 0 2px rgba(0,0,0,0.65);
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:18px;
  text-align:center;
  display:none;
}

.apro-announce-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  background:rgba(0,0,0,0.45);
}

.apro-announce-drawer{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:min(380px, 92vw);
  background:rgba(15,20,35,0.98);
  border-right:1px solid rgba(255,255,255,0.12);
  color:rgba(230,232,238,1);
  transform:translateX(-100%);
  transition:transform 180ms ease;
  display:flex;
  flex-direction:column;
}

.apro-announce-overlay.apro-open .apro-announce-drawer{transform:translateX(0)}

.apro-announce-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:16px 16px 10px 16px;
  border-bottom:1px solid rgba(255,255,255,0.10);
}

.apro-announce-title{font-weight:900; font-size:18px; margin-bottom:2px}
.apro-announce-subtitle{font-size:12px; color:rgba(185,192,212,1)}

.apro-announce-close{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(230,232,238,1);
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
}

.apro-announce-list{
  padding:10px 12px;
  overflow:auto;
  flex:1;
}

.apro-announce-item{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  margin-bottom:10px;
  cursor:pointer;
}

.apro-announce-item:hover{background:rgba(255,255,255,0.08)}

.apro-announce-item-top{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.apro-announce-item-title{font-weight:800; font-size:14px; line-height:1.2}
.apro-announce-item-meta{font-size:12px; color:rgba(185,192,212,1); display:flex; gap:10px; white-space:nowrap}

.apro-tag{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  border:1px solid rgba(255,255,255,0.16);
}
.apro-tag.critical{background:rgba(255,204,0,0.14); border-color:rgba(255,204,0,0.24); color:#ffd56a}

.apro-announce-unread{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#4c7dff;
  margin-right:8px;
  vertical-align:middle;
}

.apro-announce-detail{
  padding:12px 14px 16px 14px;
  overflow:auto;
  flex:1;
}

.apro-announce-back{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(230,232,238,1);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  margin-bottom:10px;
}

.apro-announce-detail h1,.apro-announce-detail h2,.apro-announce-detail h3,.apro-announce-detail h4{margin:10px 0 8px 0}
.apro-announce-detail p{margin:8px 0}
.apro-announce-detail a{color:#7aa2ff}
.apro-announce-detail code,.apro-announce-detail pre{background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:2px 6px}
.apro-announce-detail pre{padding:12px; overflow:auto}

.apro-critical-banner{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:99997;
  padding:10px 12px;
  background:rgba(255,204,0,0.95);
  color:#1c1c1c;
  font-family:Arial, sans-serif;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.apro-critical-banner strong{font-weight:900}

.apro-critical-actions{display:flex; gap:8px; align-items:center}

.apro-critical-btn{
  background:rgba(0,0,0,0.1);
  border:1px solid rgba(0,0,0,0.15);
  border-radius:12px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:800;
}

.apro-hidden{display:none}

@media (max-width: 420px){
  #apro-announce-bell{width:50px; height:50px}
}
