/* PropAI notification panel — the light-workspace twin of the dark app's
   bell popover. Its own `pnotif*` prefix because this stylesheet shares one
   global bundle with the dark app and the marketing site, and `.notif*` is
   already taken by the dark panel. */

/* The topbar must own a stacking context, or page cards paint over the
   open panel. */
.pai .ptop { position: relative; z-index: 60; }

.pai .pop { position: relative; display: inline-flex; }

.pai .pbell {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.pai .pbell:hover,
.pai .pbell.is-open {
  border-color: var(--gold);
  background: var(--gold-wash);
}
.pbell__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(160deg, #e0a955, var(--gold));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

.pnotif {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  width: 372px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 54px -18px rgba(24, 20, 14, 0.3);
  animation: pnotifIn 170ms var(--ease) both;
  text-align: left;
  cursor: default;
}
.pnotif[hidden] { display: none; }

@keyframes pnotifIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.pnotif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--line);
}
.pnotif__head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pnotif__head b {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-wash);
  color: #a07730;
  font-size: 10.5px;
  font-weight: 600;
}
.pnotif__read {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink-3);
  transition: color 160ms var(--ease);
}
.pnotif__read:hover { color: var(--gold); }

.pnotif__scroll { max-height: 390px; overflow-y: auto; padding: 5px 0; }
.pnotif__scroll::-webkit-scrollbar { width: 8px; }
.pnotif__scroll::-webkit-scrollbar-thumb {
  background: #e2e4e6;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.pnotif__group {
  margin: 8px 0 3px;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pnotifrow {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}
.pnotifrow:hover { background: var(--paper-2); }
/* Unread carries a gold rail on the leading edge rather than a tinted row —
   quieter, and still scannable straight down the column. */
.pnotifrow.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--gold);
}

.pnotifrow__i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-2);
}
.pnotifrow__i .icon { width: 15px; }
/* Tone, so a failed render never reads like a finished one at a glance. */
.pnotifrow__i.is-good { color: #2f9e6f; border-color: #cfe9dc; background: #f2faf6; }
.pnotifrow__i.is-warn { color: #b5822c; border-color: #ecdcbc; background: #fdf7ec; }
.pnotifrow__i.is-bad { color: #c4453c; border-color: #f2c9c6; background: #fdf4f3; }
.pnotifrow__i.is-gold { color: #a07730; border-color: #ecdcbc; background: var(--gold-wash); }

.pnotifrow__thumb {
  flex-shrink: 0;
  width: 46px;
  height: 33px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.pnotifrow__x { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pnotifrow__x b { font-size: 13px; font-weight: 600; color: var(--ink); }
.pnotifrow__x i {
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.pnotifrow__x em { font-style: normal; font-size: 11px; color: var(--ink-3); }

.pnotifrow__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
}
.pnotifrow.is-unread .pnotifrow__dot { background: var(--gold); }

.pnotif__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: #a07730;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}
.pnotif__all .icon { width: 13px; }
.pnotif__all:hover { background: var(--gold-wash); }

@media (max-width: 640px) {
  .pnotif { width: min(330px, calc(100vw - 28px)); }
}
