/* Notifications refresh: visual only, keeps existing behavior/handlers intact */
#notf .chat_pane__container#notficse {
  padding: 10px 8px 18px;
}

#notf #notficse .notification.notif-card {
  position: relative;
  margin: 10px 6px !important;
  padding: 12px 12px 10px !important;
  border: 1px solid #cfc8bf !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f2ef 100%) !important;
  box-shadow: 0 8px 18px rgba(38, 31, 28, 0.12) !important;
  color: #1d1a18 !important;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#notf #notficse .notification.notif-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(38, 31, 28, 0.16) !important;
  border-color: #b79bab !important;
}

#notf #notficse .notification.notif-card:focus {
  outline: none;
  border-color: #8b3a52 !important;
  box-shadow: 0 0 0 3px rgba(139, 58, 82, 0.2), 0 10px 22px rgba(38, 31, 28, 0.16) !important;
}

#notf .notif-card__badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 3px 12px 4px;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #8b3a52 0%, #b94a68 100%) !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
}

#notf .notif-card__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#notf .notif-card__avatar-col {
  flex: 0 0 auto;
}

#notf .notif-card__avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  object-fit: cover;
  background: #ddd;
}

#notf .notif-card__avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d6cfc7;
  background: #ece8e4;
  color: #7a6f66;
}

#notf .notif-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

#notf .notif-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

#notf .notif-card__icon {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: 0 0 auto;
}

#notf .notif-card__topic {
  max-width: 100%;
  padding: 1px 8px !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, var(--cm-primary) 0%, var(--cm-primary-2) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

#notf .notif-card__time {
  margin-inline-start: auto;
  color: #7e746c;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

#notf .notif-card__msg {
  display: block;
  color: #241f1c;
  font-size: 14px !important;
  line-height: 1.45 !important;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Cancel old heavy gradient block inside notifications without touching other areas */
#notf #notficse .notification.notif-card .break.fl {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
}

/* Dark theme */
html[data-theme="dark"] #notf #notficse .notification.notif-card {
  border-color: #2f2f2f !important;
  background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%) !important;
  color: #f2efe9 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] #notf #notficse .notification.notif-card:hover {
  border-color: #4e3b44 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48) !important;
}

html[data-theme="dark"] #notf #notficse .notification.notif-card:focus {
  border-color: #b94a68 !important;
  box-shadow: 0 0 0 3px rgba(185, 74, 104, 0.3), 0 12px 24px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] #notf .notif-card__time {
  color: #b9afa7;
}

html[data-theme="dark"] #notf .notif-card__msg {
  color: #ece7df;
}

html[data-theme="dark"] #notf .notif-card__avatar--empty {
  border-color: #383838;
  background: #272727;
  color: #b9afa7;
}
