/* ── Notifications panel ── */

.notif-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 190;
}
.notif-backdrop.open { display: block; }

.notif-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--canvas-mid);
  border-left: 1px solid var(--hairline);
  z-index: 210;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel.open { right: 0; }

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.notif-panel-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.notif-mark-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.notif-mark-btn:hover { color: var(--primary); }

.notif-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.notif-item {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: var(--surface-soft); }
.notif-unread { border-left: 2px solid var(--primary); }

.notif-actor {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2px;
}
.notif-desc {
  font-size: 12px;
  color: var(--body);
  line-height: 1.4;
}
.notif-desc em { font-style: normal; color: var(--ink); }
.notif-body {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-style: italic;
}
.notif-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Bell icon + badge ── */
.notif-bell-btn {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--error);
  color: #0f0d15;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .notif-panel {
    top: auto;
    bottom: -100vh;
    right: 0;
    width: 100vw;
    height: 80vh;
    border-left: none;
    border-top: 1px solid var(--hairline);
    transition: bottom 0.3s ease;
  }
  .notif-panel.open { bottom: 0; }
}
