.pnd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1399;
  background: rgba(6, 6, 10, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.pnd-overlay.is-open { opacity: 1; pointer-events: all; }

.pnd {
  --pnd-accent: #4fea9f;
  --pnd-accent-rgb: 79, 234, 159;
  --pnd-w: 420px;
  --pnd-text: #eceef5;
  --pnd-muted: #8f91a6;
  --pnd-line: rgba(255, 255, 255, .07);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  width: min(var(--pnd-w), 100vw);
  background:
    radial-gradient(90% 180px at 100% 0, rgba(var(--pnd-accent-rgb), .1), transparent 70%),
    linear-gradient(180deg, #202028 0%, #19191f 100%);
  border-left: 1px solid var(--pnd-line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
  color: var(--pnd-text);
  font-family: inherit;
  text-align: left;
  transform: translateX(104%);
  visibility: hidden;
  contain: layout style;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .34s;
}
.pnd.is-open { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.pnd[data-side="left"] {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--pnd-line);
  box-shadow: 24px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(-104%);
}
.pnd[data-side="left"].is-open { transform: none; }
.pnd *, .pnd *::before, .pnd *::after { box-sizing: border-box; }
.pnd button { font-family: inherit; }

.pnd__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
}
.pnd__bell {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(var(--pnd-accent-rgb), .14);
  box-shadow: inset 0 0 0 1px rgba(var(--pnd-accent-rgb), .28);
  color: var(--pnd-accent);
  font-size: 21px;
}
.pnd.is-open.has-new .pnd__bell i { animation: pndRing 2.4s ease-in-out 2; transform-origin: 50% 10%; }
.pnd.has-new .pnd__bell::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 0 2px #202028;
}
@keyframes pndRing {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-12deg); }
}
.pnd__titles { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pnd__title { overflow: hidden; color: #fff; font-size: 16.5px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.pnd__sub { color: var(--pnd-muted); font-size: 12px; font-weight: 600; }
.pnd.has-new .pnd__sub { color: var(--pnd-accent); }
.pnd__icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--pnd-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: #a9abbd;
  font-size: 19px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pnd__icon-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.pnd__icon-btn[data-pnd-readall]:hover { background: rgba(var(--pnd-accent-rgb), .16); border-color: rgba(var(--pnd-accent-rgb), .4); color: var(--pnd-accent); }

.pnd__tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin: 0 18px 10px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--pnd-line);
}
.pnd__ink {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 10px;
  background: rgba(var(--pnd-accent-rgb), .16);
  box-shadow: inset 0 0 0 1px rgba(var(--pnd-accent-rgb), .35);
  transition: transform .3s cubic-bezier(.3, .8, .2, 1), width .3s cubic-bezier(.3, .8, .2, 1);
}
.pnd__tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pnd-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease;
}
.pnd__tab span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pnd__tab i { font-size: 17px; }
.pnd__tab:hover { color: var(--pnd-text); }
.pnd__tab.is-active { color: var(--pnd-accent); }
.pnd__tab em {
  display: none;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pnd-accent);
  color: #0d1a14;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
}
.pnd__tab em.is-on { display: inline-block; }

.pnd__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.pnd__body::-webkit-scrollbar { width: 5px; }
.pnd__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 4px; }
.pnd__pane { display: none; }
.pnd__pane.is-active { display: block; animation: pndFade .28s ease both; }
@keyframes pndFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pnd__list { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 18px; }

.pnd__foot { padding: 12px 18px 18px; border-top: 1px solid var(--pnd-line); }
.pnd__all {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--pnd-line);
  color: var(--pnd-text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.pnd__all span { flex: 1 1 auto; }
.pnd__all i { color: var(--pnd-accent); font-size: 17px; }
.pnd__all:hover { background: rgba(var(--pnd-accent-rgb), .1); border-color: rgba(var(--pnd-accent-rgb), .35); color: #fff; text-decoration: none; }
.pnd__all:hover .bx-right-arrow-alt { transform: translateX(3px); }
.pnd__all .bx-right-arrow-alt { transition: transform .2s ease; }

.pnd-day {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 6px -14px 0;
  padding: 7px 16px;
  background: #1c1c23;
  color: var(--pnd-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pnd-item {
  --pnd-c: #5ab4ff;
  --pnd-c-rgb: 90, 180, 255;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .025);
  transition: background .15s ease, border-color .15s ease, opacity .25s ease, transform .25s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 72px;
}
.pnd-item--success { --pnd-c: #4fea9f; --pnd-c-rgb: 79, 234, 159; }
.pnd-item--error { --pnd-c: #ff6b6b; --pnd-c-rgb: 255, 107, 107; }
.pnd-item:hover { background: rgba(255, 255, 255, .05); border-color: var(--pnd-line, rgba(255, 255, 255, .07)); }
.pnd-item.is-unread {
  background: linear-gradient(100deg, rgba(var(--pnd-c-rgb), .1), rgba(255, 255, 255, .02) 60%);
  border-color: rgba(var(--pnd-c-rgb), .2);
}
.pnd-item.is-unread::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -1px;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--pnd-c);
  box-shadow: 0 0 10px var(--pnd-c);
}
.pnd-item.is-leaving { opacity: 0; transform: translateX(16px); }
.pnd-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(var(--pnd-c-rgb), .14);
  color: var(--pnd-c);
  font-size: 18px;
}
.pnd-item__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pnd-item__text {
  color: rgba(236, 238, 245, .9);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}
.pnd-item.is-unread .pnd-item__text { color: #fff; font-weight: 600; }
.pnd-item__text a { color: var(--pnd-c); font-weight: 700; text-decoration: none; }
.pnd-item__text a:hover { text-decoration: underline; }
.pnd-item__text img { max-width: 100%; height: auto; border-radius: 8px; }
.pnd-item__date { color: var(--pnd-muted, #8f91a6); font-size: 11px; font-weight: 600; }
.pnd-item__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s ease;
}
.pnd-item:hover .pnd-item__actions, .pnd-item:focus-within .pnd-item__actions { opacity: 1; }
.pnd-item:not(.is-unread) [data-pnd-read] { display: none; }
.pnd-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #b9bbc9;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pnd-item__btn:hover { background: rgba(var(--pnd-c-rgb), .2); color: var(--pnd-c); }
.pnd-item__btn--del:hover { background: rgba(255, 107, 107, .16); color: #ff8a8a; }
@media (hover: none) { .pnd-item__actions { opacity: 1; } }

.pnd-item--page { margin-bottom: 8px; }
.pnd-item--page .pnd-item__actions { opacity: .6; }
.pnd-item--page:hover .pnd-item__actions { opacity: 1; }

.pnd-cards { display: flex; flex-direction: column; gap: 10px; }

.pnd-card {
  --pnd-c: #5ab4ff;
  --pnd-c-rgb: 90, 180, 255;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(160deg, rgba(var(--pnd-c-rgb), .08), rgba(255, 255, 255, .02) 55%);
  transition: border-color .2s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
.pnd-card:hover { border-color: rgba(var(--pnd-c-rgb), .35); }
.pnd-card.is-new {
  border-color: rgba(var(--pnd-c-rgb), .45);
  box-shadow: 0 0 0 1px rgba(var(--pnd-c-rgb), .15), 0 12px 28px -16px rgba(var(--pnd-c-rgb), .8);
}
.pnd-card.is-pinned { background: linear-gradient(160deg, rgba(var(--pnd-c-rgb), .14), rgba(255, 255, 255, .02) 60%); }
.pnd-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 8; background: #15151b; }
.pnd-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pnd-card:hover .pnd-card__media img { transform: scale(1.04); }
.pnd-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(25, 25, 31, .75)); }
.pnd-card__body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 14px; }
.pnd-card__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pnd-card__kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(var(--pnd-c-rgb), .15);
  color: var(--pnd-c);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pnd-card__kind i { font-size: 13px; }
.pnd-card__pin { display: inline-flex; color: var(--pnd-c); font-size: 14px; }
.pnd-card__new {
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--pnd-c);
  color: #111116;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 20px;
  animation: pndPulse 2s ease-in-out 3;
}
@keyframes pndPulse { 50% { box-shadow: 0 0 0 4px rgba(var(--pnd-c-rgb), .18); } }
.pnd-card__date { margin-left: auto; color: var(--pnd-muted, #8f91a6); font-size: 11px; font-weight: 600; white-space: nowrap; }
.pnd-card__title { margin: 0; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.3; }
.pnd-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: rgba(236, 238, 245, .72);
  font-size: 12.5px;
  line-height: 1.55;
  cursor: pointer;
}
.pnd-card.is-expanded .pnd-card__desc { display: block; -webkit-line-clamp: unset; }
.pnd-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin-top: 3px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(var(--pnd-c-rgb), .16);
  border: 1px solid rgba(var(--pnd-c-rgb), .35);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s ease;
}
.pnd-card__btn i { color: var(--pnd-c); font-size: 17px; transition: transform .2s ease; }
.pnd-card__btn:hover { background: rgba(var(--pnd-c-rgb), .28); color: #fff; text-decoration: none; }
.pnd-card__btn:hover i { transform: translateX(3px); }

.pnd-cards--card .pnd-card.has-image { display: grid; grid-template-columns: minmax(0, 1fr) 84px; }
.pnd-cards--card .pnd-card__media { order: 2; aspect-ratio: auto; height: 100%; min-height: 84px; }
.pnd-cards--card .pnd-card__media::after { background: linear-gradient(90deg, rgba(25, 25, 31, .6), transparent 50%); }
.pnd-cards--card .pnd-card__title { font-size: 14px; }
.pnd-cards--card .pnd-card__desc { -webkit-line-clamp: 3; }
.pnd-cards--card .pnd-card__btn { align-self: flex-start; height: 32px; }

.pnd-cards--compact { gap: 6px; }
.pnd-cards--compact .pnd-card { border-radius: 12px; }
.pnd-cards--compact .pnd-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--pnd-c); }
.pnd-cards--compact .pnd-card__media { display: none; }
.pnd-cards--compact .pnd-card__body { gap: 5px; padding: 10px 12px 11px 15px; }
.pnd-cards--compact .pnd-card__title { font-size: 13.5px; }
.pnd-cards--compact .pnd-card__desc { -webkit-line-clamp: 2; font-size: 12px; }
.pnd-cards--compact .pnd-card__btn { align-self: flex-start; height: auto; padding: 0; background: none; border: 0; color: var(--pnd-c); }

.pnd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 46px 20px;
  color: var(--pnd-muted, #8f91a6);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
.pnd-empty b { color: #fff; font-size: 15px; font-weight: 800; }
.pnd-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 20px;
  background: rgba(var(--pnd-accent-rgb, 79, 234, 159), .1);
  box-shadow: inset 0 0 0 1px rgba(var(--pnd-accent-rgb, 79, 234, 159), .22);
  color: var(--pnd-accent, #4fea9f);
  font-size: 30px;
}

.pnd-sk { display: flex; flex-direction: column; gap: 8px; }
.pnd-sk i {
  display: block;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 75%);
  background-size: 200% 100%;
  animation: pndShimmer 1.1s linear infinite;
}
.pnd-sk--cards i { height: 190px; border-radius: 16px; }
@keyframes pndShimmer { to { background-position: -200% 0; } }

.notif-bell-wrap.pnd-has-new .bx-bell { animation: pndRing 2.4s ease-in-out 2; transform-origin: 50% 10%; }

@media (max-width: 480px) {
  .pnd { width: 100vw; }
  .pnd__head { padding: 14px 14px 12px; }
  .pnd__tabs { margin: 0 14px 8px; }
  .pnd__list { padding: 4px 10px 16px; }
  .pnd-day { margin: 6px -10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pnd, .pnd__ink, .pnd-item { transition: none; }
  .pnd.has-new .pnd__bell i, .pnd-card__new, .pnd-sk i, .notif-bell-wrap.pnd-has-new .bx-bell { animation: none; }
}

.pnd:not(.is-open) .pnd-sk i { animation: none; }
