#announcementButton {
  position: relative;
}

.announcement-unread {
  position: absolute;
  width: 6px;
  height: 6px;
  top: -3px;
  right: -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px #1b1c1f;
}

#announcementPanel {
  position: fixed;
  inset: auto 12px 38px auto;
  width: min(380px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 70px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #dedee1;
  background: #242529;
  border: 1px solid #414247;
  border-radius: 8px;
  box-shadow: 0 14px 36px #0009;
}

#announcementPanel::backdrop {
  background: transparent;
}

.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.announcement-header strong {
  font-size: 12px;
  color: #f0f0f2;
}

.announcement-header button {
  border: 0;
  padding: 2px 0;
  font-size: 10px;
  color: #aaa;
}

.announcement-list {
  max-height: 440px;
  overflow: auto;
}

.announcement-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #34353a;
  border-radius: 0;
  text-align: left;
}

.announcement-item:last-child {
  border-bottom: 0;
}

.announcement-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8e8ea;
  font-size: 11px;
  font-weight: 600;
}

.announcement-date {
  color: #85878e;
  font-size: 9px;
  white-space: nowrap;
}

.announcement-excerpt {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  color: #aaaeb5;
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.announcement-state {
  margin: 0;
  padding: 24px 14px;
  color: #909198;
  font-size: 10px;
  text-align: center;
}
