/* ND Notifications owns notification panel styling. */
.nd-header-notification-panel{position:fixed;top:76px;right:max(24px,calc((100vw - var(--max))/2));z-index:95;width:min(360px,calc(100vw - 32px));display:none;padding-top:8px;}
@media (max-width:700px){.nd-header-notification-panel{top:118px;right:16px;}}
@media (max-width:700px){.nd-header-notification-panel{left:14px;right:14px!important;width:auto!important;}}
.nd-header-notification-panel.open{display:block;}
.nd-header-notification-inner{background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 45px rgba(0,0,0,.4);padding:16px;}
.nd-header-notification-inner{overflow-wrap:anywhere;}
.nd-header-notification-title{font-weight:700;margin-bottom:10px;}
.nd-header-notification-empty{color:var(--muted);font-size:13px;}
.nd-header-notification-item{display:block;padding:11px 13px;margin-top:7px;border-radius:10px;border:1px solid rgba(227,189,87,.22);background:rgba(227,189,87,.07);color:var(--text);text-decoration:none;font-size:12px;}
.nd-header-notification-item:hover{background:rgba(227,189,87,.11);}
.nd-header-notification-item.nd-header-notification-action{display:block;width:100%;font:inherit;font-size:12px;text-align:left;cursor:pointer;color:#fff!important;-webkit-appearance:none;appearance:none;}
.nd-header-notification-item.nd-header-notification-action:hover,.nd-header-notification-item.nd-header-notification-action:active,.nd-header-notification-item.nd-header-notification-action:focus{color:#fff!important;border-color:rgba(227,189,87,.22)!important;outline:none!important;box-shadow:none!important;}
.nd-header-notification-item.nd-header-notification-action:focus-visible{outline:2px solid #fff!important;outline-offset:2px;}

/* Connection state: only one user-facing message, no technical error details. */
.nd-header-notification-offline{width:100%;box-sizing:border-box;text-align:left;font-weight:400;}

/* Member management overlays existing panel padding: no extra panel row or height. */
.nd-header-notification-inner{position:relative;}
.ndn-member-tools{position:absolute;right:8px;top:2px;z-index:3;}
.ndn-member-more{background:transparent;border:0;color:rgba(255,255,255,.75);font-size:21px;line-height:20px;cursor:pointer;padding:2px 7px;border-radius:6px;}
.ndn-member-more:hover,.ndn-member-more:focus-visible{color:#fff;background:transparent;}
.ndn-member-actions{position:absolute;right:0;top:27px;min-width:185px;padding:5px;background:var(--panel,#111322);border:1px solid var(--border,#333);border-radius:9px;box-shadow:0 8px 22px rgba(0,0,0,.35);}
.ndn-member-actions button{display:block;width:100%;text-align:left;background:transparent;border:0;color:var(--text,#fff);font:inherit;font-size:12px;padding:9px;cursor:pointer;border-radius:6px;}
.ndn-member-actions button:hover,.ndn-member-actions button:focus-visible{background:rgba(255,255,255,.09);}
.ndn-notice-wrapper{position:relative;}
.ndn-notice-wrapper>.nd-header-notification-item{box-sizing:border-box;}
.ndn-notice-dismiss{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:0;color:var(--muted,#aaa);font-size:20px;line-height:22px;padding:4px 7px;cursor:pointer;opacity:0;}
.ndn-notice-wrapper:hover .ndn-notice-dismiss,.ndn-notice-dismiss:focus-visible{opacity:1;}
@media(hover:none){.ndn-notice-dismiss{opacity:1;}}

/* v0.1.74: dedicated chat dropdown, matching the bell's existing panel. */
.nd-header-chat-panel{right:max(120px,calc((100vw - var(--max))/2 + 104px));}
.nd-header-chat-conversation{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;}
.nd-header-chat-unread-label{color:var(--muted);font-size:11px;white-space:nowrap;}
@media(max-width:700px){.nd-header-chat-panel{left:14px;right:14px!important;width:auto!important;}}

/* v0.1.74: permanent navigation to the full chat, including empty state. */
.nd-header-chat-footer{margin-top:10px;padding:10px 2px 0;border-top:1px solid rgba(240,196,119,.18);}
.nd-header-chat-all{display:flex;align-items:center;justify-content:space-between;color:#f0c477!important;text-decoration:none;font-weight:600;font-size:13px;padding:8px 10px;border-radius:8px;}
.nd-header-chat-all::after{content:"→";font-size:18px;line-height:1;}
.nd-header-chat-all:hover,.nd-header-chat-all:focus-visible{background:rgba(240,196,119,.09);text-decoration:none;}

/* v0.1.74: compact chat dropdown only; bell remains unchanged. */
.nd-header-chat-panel{width:min(330px,calc(100vw - 32px));padding-top:4px;}
.nd-header-chat-panel .nd-header-notification-inner{padding:10px 12px;border-radius:12px;}
.nd-header-chat-panel .nd-header-notification-item{padding:9px 11px;margin-top:3px;border-radius:9px;}
.nd-header-chat-panel .nd-header-chat-footer{margin-top:7px;padding:6px 0 0;}
.nd-header-chat-panel .nd-header-chat-all{padding:6px 8px;font-size:12px;}
.nd-header-chat-panel .nd-header-notification-empty{padding:4px 2px;}

/* v0.1.74: notification-only chat dropdown, narrower without footer. */
.nd-header-chat-panel{width:min(270px,calc(100vw - 32px))!important;max-width:270px!important;}
.nd-header-chat-panel .nd-header-notification-inner{padding:8px 10px!important;}
.nd-header-chat-panel .nd-header-notification-item{padding:9px 10px!important;}
@media(max-width:320px){.nd-header-chat-panel{max-width:calc(100vw - 24px)!important;}}

/* v0.1.74: bell uses the same compact outer container as the chat dropdown.
   Scope to the bell only; preserve its notification rows and management controls. */
.nd-header-notification-panel:not(.nd-header-chat-panel){
  width:min(270px,calc(100vw - 32px))!important;
  max-width:270px!important;
  padding-top:4px;
}
.nd-header-notification-panel:not(.nd-header-chat-panel) .nd-header-notification-inner{
  padding:8px 10px!important;
  border-radius:12px;
}
.nd-header-notification-panel:not(.nd-header-chat-panel) .nd-header-notification-item{
  padding:9px 10px;
  margin-top:3px;
  border-radius:9px;
}
@media(max-width:320px){
 .nd-header-notification-panel:not(.nd-header-chat-panel){max-width:calc(100vw - 24px)!important;}
}


/* v0.1.74: bell notification rows use the exact same warm pill as chat.
   Do not style the empty-state message as an actual notification. */
.nd-header-notification-panel:not(.nd-header-chat-panel) .ndn-notice-wrapper > .nd-header-notification-item.nd-header-notification-action {
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:9px 10px!important;
  margin:3px 0 0!important;
  border-radius:9px!important;
  border:1px solid rgba(227,189,87,.22)!important;
  background:rgba(227,189,87,.07)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:400!important;
  text-align:left!important;
}
.nd-header-notification-panel:not(.nd-header-chat-panel) .ndn-notice-wrapper > .nd-header-notification-item.nd-header-notification-action:hover {
  background:rgba(227,189,87,.11)!important;
}

/* v0.1.74: bell empty state gets the same warm pill as actual notifications. */
.nd-header-notification-panel:not(.nd-header-chat-panel) .nd-header-notification-empty {
 display:block!important;box-sizing:border-box!important;width:100%!important;
 margin:3px 0 0!important;padding:9px 10px!important;
 border:1px solid rgba(227,189,87,.22)!important;border-radius:9px!important;
 background:rgba(227,189,87,.07)!important;
 color:var(--muted,#aaa)!important;font-size:12px!important;line-height:1.5!important;
}

/* v0.1.74: reserve a dedicated compact toolbar row for the bell's overflow menu.
   The menu must never overlap a notification's warm pill. */
.nd-header-notification-panel:not(.nd-header-chat-panel) .nd-header-notification-inner.ndn-has-management{
  padding-top:27px!important;
}
.nd-header-notification-panel:not(.nd-header-chat-panel) .ndn-member-tools{
  top:2px!important;right:7px!important;
}
.nd-header-notification-panel:not(.nd-header-chat-panel) .ndn-member-more{
  display:flex;align-items:center;justify-content:center;
  min-width:27px;height:22px;padding:0 3px!important;
}

/* v0.1.74: remove obsolete top spacing reserved for the removed overflow menu. */
.nd-header-notification-panel:not(.nd-header-chat-panel) .nd-header-notification-inner.ndn-has-management,
.nd-header-notification-panel:not(.nd-header-chat-panel) .nd-header-notification-inner{padding-top:8px!important;}

/* v0.1.74: dismiss control inside each chat notification pill. */
.nd-header-chat-panel .nd-header-chat-notice-wrapper{position:relative;min-width:0;}
.nd-header-chat-panel .nd-header-chat-conversation{padding-right:30px!important;}
.nd-header-chat-panel .nd-header-chat-notice-dismiss{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:0;border-radius:6px;background:transparent;color:#bcb4c7;font-size:19px;line-height:1;cursor:pointer;z-index:2;}
.nd-header-chat-panel .nd-header-chat-notice-dismiss:hover,.nd-header-chat-panel .nd-header-chat-notice-dismiss:focus-visible{color:#fff;background:rgba(255,255,255,.10);}
