/* ─────────────────────────────────────────────────────────────────────────
   Notifications Panel · Phase N styles
   Standalone .aku-notif-* selectors so the panel can be lifted out cleanly.
   Uses existing CSS variables for theme consistency.
   ───────────────────────────────────────────────────────────────────────── */

.aku-notif-panel {
  position: fixed;
  top: 56px;
  right: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.2);
  z-index: 9001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 13px;
}

.aku-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2, var(--surface));
}
.aku-notif-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.aku-notif-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aku-notif-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  cursor: pointer;
}
.aku-notif-btn:hover { border-color: var(--accent); }
.aku-notif-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  line-height: 1;
}
.aku-notif-close:hover { color: var(--text); }

.aku-notif-body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}
.aku-notif-empty {
  color: var(--muted);
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
}
.aku-notif-group {
  display: flex;
  flex-direction: column;
}
.aku-notif-group-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.aku-notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  align-items: stretch;
}
.aku-notif-item:hover {
  background: var(--surface2, var(--surface));
}
.aku-notif-item:last-child { border-bottom: none; }

.aku-notif-bar {
  width: 3px;
  border-radius: 2px;
  flex: 0 0 3px;
  background: var(--border);
}
.aku-notif-item--unread .aku-notif-bar {
  /* keeps the priority colour set inline */
}
.aku-notif-item--unread {
  background: linear-gradient(90deg, var(--accent-bg, rgba(88,166,255,.06)) 0%, transparent 60%);
}

.aku-notif-body-col {
  flex: 1;
  min-width: 0;
}
.aku-notif-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.aku-notif-headline {
  font-weight: 500;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
}
.aku-notif-item--unread .aku-notif-headline {
  font-weight: 600;
}
.aku-notif-dismiss {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  flex: 0 0 auto;
  line-height: 1;
  border-radius: 4px;
}
.aku-notif-dismiss:hover {
  color: var(--text);
  background: var(--border);
}
.aku-notif-text {
  color: var(--text);
  margin-top: 4px;
  line-height: 1.4;
  font-size: 12px;
  opacity: .85;
}
.aku-notif-meta {
  color: var(--muted);
  margin-top: 6px;
  font-size: 11px;
  display: flex;
  gap: 4px;
}

@media (max-width: 600px) {
  .aku-notif-panel {
    top: 52px;
    right: 8px;
    left: 8px;
    width: auto;
  }
}
