.ib-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
}

.ib-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
}

.ib-bell-btn:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.ib-bell-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1rem;
  font-weight: 600;
  text-align: center;
}

.ib-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  width: 22rem;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 50;
  overflow: hidden;
}

html.dark .ib-dropdown {
  background: #1f2937;
  border-color: #374151;
}

.ib-dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

html.dark .ib-dropdown-head {
  border-color: #374151;
}

.ib-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
}

html.dark .ib-dropdown-item {
  border-color: #374151;
}

.ib-dropdown-item.is-unread {
  background: color-mix(in srgb, var(--color-primary-600, #4f46e5) 8%, transparent);
}

.ib-dropdown-title {
  font-weight: 600;
  font-size: 0.85rem;
}

.ib-dropdown-preview {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ib-dropdown-empty,
.ib-empty {
  padding: 1.25rem 1rem;
  color: #6b7280;
}

.ib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

html.dark .ib-list {
  border-color: #374151;
}

.ib-item-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
}

.ib-item.is-unread .ib-item-link {
  background: color-mix(in srgb, var(--color-primary-600, #4f46e5) 7%, transparent);
}

.ib-item-icon {
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.ib-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.ib-item-title {
  font-weight: 600;
}

.ib-item-preview {
  color: #6b7280;
  font-size: 0.85rem;
}

.ib-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-top: 0.4rem;
}

.ib-mark-all-form {
  margin: 0;
}

.ib-mark-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--color-primary-600, #4f46e5);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.ib-mark-all-btn:hover {
  filter: brightness(0.95);
}

html.dark .ib-mark-all-btn {
  color: #fff;
}

.card-unread-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1rem;
  font-weight: 600;
  text-align: center;
  border: 0;
  box-shadow: none;
  animation: none;
}

.nav-right-count.is-unread {
  background: #ef4444;
  color: #fff;
}
