/* Central de notificações — sininho da rail                          */
/* ------------------------------------------------------------------ */

.notif-wrap {
  position: relative;
}

.notif-pop {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  width: 340px;
  max-width: calc(100vw - 300px);
  max-height: min(62vh, 480px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 60;
  overflow: hidden;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  flex-shrink: 0;
}

.notif-clear {
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
}

.notif-clear:hover {
  color: var(--text-soft);
  background: var(--panel-soft);
}

.notif-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
}

.notif-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--faint);
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.notif-item:hover {
  background: var(--panel-soft);
}

.notif-item.unread {
  background: var(--accent-soft);
}

.notif-item.unread:hover {
  background: rgba(211, 173, 120, 0.18);
}

.notif-item-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.notif-kind {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notif-kind.ok {
  background: rgba(131, 191, 157, 0.14);
  color: var(--green);
}

.notif-kind.err {
  background: rgba(224, 146, 130, 0.14);
  color: var(--red);
}

.notif-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.notif-item-body {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-meta {
  font-size: 0.66rem;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item.no-link {
  cursor: default;
}

@media (max-width: 900px) {
  .notif-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    max-height: 68dvh;
  }
}
