.portal-notifications {
  position: relative;
  margin: 12px 16px;
}
.portal-notifications-button {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gw-border);
  border-radius: 8px;
  background: #fff;
  color: var(--gw-primary);
}
.portal-notifications-button:hover { border-color: var(--gw-accent); }
.portal-notifications-icon { font-size: 18px; }
.portal-notifications-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--gw-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}
.portal-notifications-panel {
  position: absolute;
  z-index: 1000;
  left: 0;
  top: 46px;
  width: 340px;
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 10px;
  box-shadow: 0 14px 35px #0f172a26;
}
.portal-notifications-title {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: #fff;
  border-bottom: 1px solid var(--gw-border);
  color: var(--gw-primary);
  font-size: 14px;
}
.portal-notifications-close {
  background: none;
  color: var(--gw-muted);
  font-size: 21px;
  line-height: 1;
}
.portal-notifications-list { display: flex; flex-direction: column; }
.portal-notification-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gw-border);
}
.portal-notification-item:hover { background: var(--gw-surface); }
.portal-notification-item-title {
  color: var(--gw-primary);
  font-size: 13px;
  font-weight: 600;
}
.portal-notification-preview {
  color: var(--gw-fg);
  font-size: 12px;
  line-height: 1.4;
}
.portal-notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.portal-notification-action,
.requires-action-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.portal-notification-unread,
.unread-comments-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}
.portal-notifications-empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--gw-muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .portal-notifications { margin: 0 8px 0 auto; }
  .portal-notifications-button { width: 42px; min-height: 36px; }
  .portal-notifications-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 58px;
    width: auto;
    max-height: 70vh;
  }
}
