/* Notification center. */
/* Notification center: same floating card as a dialogue, under the header. */
#notif-center.notif-center {
  display: none;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 8;
  box-sizing: border-box;
  margin: 0;
  padding:
    calc(var(--chat-scroll-top, 76px) + 12px)
    12px
    calc(var(--chat-overlay-bottom, 48px) + 8px);
  background: transparent;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}
#notif-center.notif-center:not(.hidden) {
  display: flex !important;
}
.notif-center-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: 100%;
  margin: 0 auto;
  padding: 8px 18px 14px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(16, 24, 40, .18);
}
.notif-center-head {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  min-width: 0;
}
.notif-center-head > .feature-back { margin: 0 0 0 -8px; }
.notif-center-card > h1 {
  margin: 0;
  font-size: calc(22px * var(--text-scale, 1));
  line-height: 1.2;
}
.notif-center-tabs {
  display: flex;
  gap: 8px;
  flex: none;
  margin: 12px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.notif-center-tabs::-webkit-scrollbar { display: none; }
.notif-center-tab {
  appearance: none;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #5c6270;
  font: inherit;
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}
.notif-center-tab:hover { background: #fff; }
.notif-center-tab.is-active {
  background: #fff;
  color: #1a1d26;
  font-weight: 700;
  border-color: #b7bcc6;
}
.notif-center-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}
.notif-center-empty {
  border: 1px dashed #d0d4dc;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  color: #8b8e98;
  font-size: calc(14px * var(--text-scale, 1));
  background: #fafbfc;
  margin: 4px 0;
}
.notif-center-day {
  display: flex;
  justify-content: center;
  margin: 4px 0 2px;
}
.notif-center-day span {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: calc(12px * var(--text-scale, 1));
  font-weight: 650;
  color: #3f4350;
}
.notif-center-item {
  position: relative;
  width: 100%;
  border: 1px solid #eceef3;
  background: rgba(255, 255, 255, .92);
  border-radius: 14px;
  color: #1a1d26;
}
.notif-center-item-main {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 10px 36px 10px 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.notif-center-item-main:hover { background: #fff; }
.notif-center-dismiss {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #e23b3b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.notif-center-dismiss:hover { color: #b42318; }
.notif-center-star {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: #b9bec9; border-radius: 50%;
  transition: color .12s ease, transform .12s ease;
}
.notif-center-star:hover { color: #9aa1b0; }
.notif-center-star.is-on { color: #f5b301; }
.notif-center-star:active { transform: scale(.88); }
.notif-center-item.is-invite .notif-center-item-main {
  padding-right: 84px;
  cursor: default;
}
.notif-center-item.is-invite .notif-center-item-main:hover { background: transparent; }
.notif-center-invite-actions {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.notif-center-invite-btn {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  background: #f4f6fa;
  color: #3f4350;
}
.notif-center-invite-btn svg { display: block; }
.notif-center-invite-btn.is-approve {
  color: #0f7a3a;
  background: rgba(15, 122, 58, 0.1);
  border-color: rgba(15, 122, 58, 0.22);
}
.notif-center-invite-btn.is-approve:hover {
  background: rgba(15, 122, 58, 0.18);
}
.notif-center-invite-btn.is-reject {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.2);
}
.notif-center-invite-btn.is-reject:hover {
  background: rgba(180, 35, 24, 0.16);
}
.notif-center-foot {
  flex: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
}
.notif-center-foot[hidden] { display: none !important; }
.notif-center-clear,
.notif-center-read-all {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(180, 186, 198, 0.55);
  background: var(--glass-tools-bg, #fff);
  color: #1a1d26;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: calc(14px * var(--text-scale, 1));
  font-weight: 650;
  cursor: pointer;
}
.notif-center-clear svg,
.notif-center-read-all svg { display: block; flex: none; }
.notif-center-item.is-unread { box-shadow: inset 3px 0 0 var(--accent, #1c58d9); }
.notif-center-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
}
.notif-center-avatar.avatar,
.notif-center-avatar .avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.notif-center-avatar.is-mail {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  user-select: none;
}
.notif-center-item.is-mail .notif-center-item-where {
  color: #3b6fd8;
}
.notif-center-item-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.notif-center-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.notif-center-item-who {
  font-size: calc(15px * var(--text-scale, 1));
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-center-item-time {
  flex: none;
  font-size: calc(12px * var(--text-scale, 1));
  color: #8b8e98;
}
.notif-center-item-where {
  font-size: calc(13px * var(--text-scale, 1));
  color: #6b7080;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-center-item-text {
  margin: 2px 0 0;
  font-size: calc(14px * var(--text-scale, 1));
  line-height: 1.35;
  color: #1a1d26;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.notif-center-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.notif-center-react {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f6f8;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: calc(13px * var(--text-scale, 1));
  color: #3f4350;
}
/* A note's reminder in the centre: the alarm on a warm circle. */
.notif-center-avatar.is-note { background: #fff1dc; display: grid; place-items: center; }
.notif-center-avatar.is-note img { width: 64%; height: 64%; object-fit: contain; }
.notif-center-item.is-note .notif-center-item-who { color: #b06a17; }
