.hc-header-actions,
.comm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-notification-button,
.comm-notification-btn {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(10, 61, 145, .08);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 43, 84, .08);
  color: #0a3d91;
  cursor: pointer;
  font-size: 18px;
}

.comm-header-actions {
  margin-left: auto;
}

.comm-notification-btn {
  width: 40px;
  height: 40px;
}

.app-notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f04438;
  color: #fff;
  font: 800 9px var(--font);
}

.app-notification-badge[hidden] {
  display: none;
}

.hc-community-notification {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  backdrop-filter: blur(8px);
}

.hc-community-notification .app-notification-badge {
  border-color: #7b1fa2;
}

.notification-panel {
  width: min(100% - 24px, 520px);
  max-height: min(88vh, 780px);
  overflow: hidden;
  padding: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid #edf0f5;
}

.notification-header h3 {
  margin: 2px 0 0;
  color: #101828;
  font-size: 21px;
}

.notification-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  cursor: pointer;
}

.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  background: #f8faff;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.notification-toolbar button {
  border: 0;
  background: transparent;
  color: #1d5fd0;
  cursor: pointer;
  font: 750 10px var(--font);
}

.notification-toolbar button:disabled {
  cursor: default;
  opacity: .45;
}

.notification-list {
  max-height: calc(min(88vh, 780px) - 124px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0 18px;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid #f0f2f6;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}

.notification-item.is-unread {
  background: #f3f7ff;
}

.notification-item-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f0fe, #efe7fb);
  color: #0a3d91;
  font-size: 18px;
}

.notification-item-copy {
  min-width: 0;
}

.notification-item-title {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-message {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-item-time {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 9px;
  font-weight: 650;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d5fd0;
}

.notification-empty,
.notification-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  color: #667085;
  text-align: center;
}

.notification-empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  color: #1d5fd0;
  font-size: 25px;
}

.notification-empty strong {
  color: #172033;
  font-size: 15px;
}

.notification-empty span,
.notification-loading {
  font-size: 12px;
  line-height: 1.5;
}

.settings-privacy-row {
  position: relative;
  cursor: pointer;
}

.settings-privacy-copy {
  display: grid;
  flex: 1;
  gap: 3px;
  padding-right: 12px;
}

.settings-privacy-copy strong {
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 650;
}

.settings-privacy-copy small {
  color: var(--gray-400);
  font-size: 10px;
  line-height: 1.35;
}

.settings-privacy-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.settings-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background .2s ease;
}

.settings-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(16, 24, 40, .2);
  transition: transform .2s ease;
}

.settings-privacy-row input:checked + .settings-switch {
  background: #1d5fd0;
}

.settings-privacy-row input:checked + .settings-switch::after {
  transform: translateX(18px);
}

.settings-privacy-row input:focus-visible + .settings-switch {
  outline: 3px solid rgba(29, 95, 208, .2);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .hc-community-card {
    gap: 11px;
  }

  .hc-community-notification {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .hc-comm-arrow {
    display: none;
  }
}
