.nav-unread, .notice-count {
  background: var(--im-accent, #087a52);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  min-width: 1.4rem;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.4rem;
}

.notice-bell {
  position: relative;
}

.notice-bell .notice-count {
  position: absolute;
  min-width: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
  top: 0;
  right: -3px;
}

.public-app[data-theme] .notice-panel[data-slot="popover-content"], .staff-app .notice-panel[data-slot="popover-content"] {
  z-index: 80;
  max-height: var(--radix-popover-content-available-height);
  overflow: auto;
  border: 1px solid var(--line, #dfe4ec);
  background: var(--surface, #fff);
  color: var(--ink, #17212f);
  border-radius: 14px;
  width: min(360px, 100vw - 32px);
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 36px #0000001f;
}

.notice-heading {
  display: flex;
  border-bottom: 1px solid var(--line, #dfe4ec);
  justify-content: space-between;
  align-items:  center;
  gap: 16px;
  padding: 8px 12px 8px 20px;
}

.notice-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.notice-toolbar {
  padding: 4px 8px;
}

.notice-toolbar button {
  color: var(--muted, #526176);
  gap: 8px;
  font-size: 13px;
}

.notice-empty {
  display: grid;
  color: var(--muted, #526176);
  justify-items: center;
  gap: 12px;
  padding: 24px 20px 32px;
}

.notice-empty p {
  margin: 0;
}

.notice-empty-icon {
  display: grid;
  background: var(--subtle, #f3f5f7);
  border-radius: 50%;
  place-items:  center;
  width: 48px;
  height: 48px;
}

.notice-panel ul {
  list-style: none;
  overflow-y: auto;
  max-height: 300px;
  margin: 0;
  padding: 0 8px 8px;
}

.notice-panel li a {
  display: grid;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 8px;
  gap: 4px;
  padding: 12px;
}

.notice-panel li[data-unread="true"] a {
  background: var(--accent-soft, #e6f3ed);
}

.notice-panel li + li {
  margin-top: 4px;
}

.notice-panel li a:hover {
  background: var(--subtle, #f3f5f7);
}

.notice-panel li strong {
  font-weight: 600;
}

.notice-panel li span, .notice-panel time {
  color: var(--muted, #526176);
}

.notice-panel time {
  font-size: 12px;
}

.notice-panel .notice-footer {
  display: flex;
  border-top: 1px solid var(--line, #dfe4ec);
  color: var(--accent-ink, #087a52);
  text-decoration: none;
  justify-content: space-between;
  align-items:  center;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 600;
}

.notice-panel .notice-footer:hover {
  background: var(--subtle, #f3f5f7);
}

.notice-panel a:focus-visible {
  outline: 2px solid var(--accent, #087a52);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .notice-panel[data-slot="popover-content"] {
    animation: none;
  }
}

.nav-unread {
  margin-left: 6px;
}
