.top-actions {
  position: relative;
}
.notice-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.notice-bell:hover,
.notice-bell[aria-expanded="true"] {
  background: #eaf5f2;
}
.notice-bell-icon {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
  margin: auto;
}
.notice-bell-count {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  font-weight: 800;
}
.notice-popover {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(340px, calc(100vw - 30px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px #19302a1f;
  z-index: 20;
}
.notice-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.notice-popover-head a {
  color: var(--teal);
  font-size: 12px;
}
.notice-popover-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.notice-popover-item:hover {
  background: #f5faf8;
}
.notice-popover-item.is-unread b { font-weight: 800; }
.notice-popover-item.is-read { opacity: .72; }
.notice-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: var(--coral);
}
.notice-popover-item b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-popover-item small {
  color: var(--soft);
  font-size: 11px;
}
.notice-popover-empty {
  padding: 20px 16px;
  color: var(--soft);
  font-size: 13px;
}
.notice-popover-all {
  display: block;
  padding: 12px 16px;
  color: var(--teal);
  font-size: 12px;
}
.announcement-dialog {
  position: relative;
  width: min(620px, calc(100vw - 28px));
  max-height: 80vh;
  overflow: auto;
  border: 0;
  padding: 30px;
  background: #fff;
  box-shadow: 0 24px 70px #10171938;
}
.announcement-dialog::backdrop {
  background: #10171980;
}
.announcement-dialog .dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.announcement-dialog h2 {
  margin: 12px 0 22px;
}
.announcement-dialog .markdown-content {
  color: var(--soft);
  line-height: 1.85;
}
.notice-detail-image,
.announcement-detail-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 0 20px;
  background: #f5f8f7;
}
