/* v9.7.4 — notification popup contrast, discoverable messages, Android/mobile chat inbox */
/* Scope the drawer explicitly; old global dark styles were overriding individual text colors. */
html[data-theme="dark"] .hub9-notif-drawer,
html[data-theme="system"] .hub9-notif-drawer,
html:not([data-theme="light"]):not([data-theme="dark"]) .hub9-notif-drawer {
  background:#14251e !important;
  border:1px solid #426652 !important;
  color:#f0f7f1 !important;
  box-shadow:0 18px 55px rgba(0,0,0,.45) !important;
}
html[data-theme="dark"] .hub9-notif-drawer :is(.hub9-drawer-head,.hub9-drawer-head strong,.hub9-item,.hub9-viewall,p,a:not(.hub9-close)) {
  color:#edf6ed !important;
  background:transparent;
}
html[data-theme="dark"] .hub9-notif-drawer .hub9-item {border-bottom:1px solid #345142 !important}
html[data-theme="dark"] .hub9-notif-drawer .hub9-item small {color:#b8d1bf !important}
html[data-theme="dark"] .hub9-notif-drawer .hub9-viewall {color:#b8f0cd !important;font-weight:800}
html[data-theme="dark"] .hub9-notif-drawer .hub9-close {background:#315444 !important;color:#fff !important;border:1px solid #5a876c !important}
html[data-theme="dark"] .hub9-notif-drawer .hub9-item:hover {background:#234033 !important}
/* System appearance, not explicitly light, should follow operating-system preference. */
@media (prefers-color-scheme:dark){
 html:not([data-theme="light"]):not([data-theme="dark"]) .hub9-notif-drawer,
 html[data-theme="system"] .hub9-notif-drawer {background:#14251e!important;border-color:#426652!important;color:#edf6ed!important}
 html:not([data-theme="light"]):not([data-theme="dark"]) .hub9-notif-drawer :is(.hub9-drawer-head,.hub9-drawer-head strong,.hub9-item,p),
 html[data-theme="system"] .hub9-notif-drawer :is(.hub9-drawer-head,.hub9-drawer-head strong,.hub9-item,p){color:#edf6ed!important}
 html:not([data-theme="light"]):not([data-theme="dark"]) .hub9-notif-drawer .hub9-item small,
 html[data-theme="system"] .hub9-notif-drawer .hub9-item small{color:#b8d1bf!important}
 html:not([data-theme="light"]):not([data-theme="dark"]) .hub9-notif-drawer .hub9-viewall,
 html[data-theme="system"] .hub9-notif-drawer .hub9-viewall{color:#b8f0cd!important}
}
/* Light theme intentionally matches a light popup with readable dark text. */
html[data-theme="light"] .hub9-notif-drawer {background:#fbfffc!important;border:1px solid #cedfd2!important;color:#183a2b!important}
html[data-theme="light"] .hub9-notif-drawer :is(.hub9-drawer-head,.hub9-drawer-head strong,.hub9-item,p){color:#183a2b!important}
html[data-theme="light"] .hub9-notif-drawer .hub9-item small{color:#536d5d!important}
html[data-theme="light"] .hub9-notif-drawer .hub9-viewall{color:#175a40!important}
html[data-theme="light"] .hub9-notif-drawer .hub9-close{background:#dceae1!important;color:#183a2b!important}
.hub9-notif-drawer {max-width:calc(100vw - 24px); z-index:10050;}
.hub9-notif-drawer .hub9-item {overflow-wrap:anywhere;line-height:1.55}
.hub9-notif-drawer .hub9-drawer-head {display:flex;justify-content:space-between;gap:10px;align-items:center}
.hub9-notif-drawer .hub9-drawer-head strong {font-size:14px}
/* Always accessible desktop / mobile header shortcut for messages. */
.hcm974-header-chat {display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line,#416251);border-radius:10px;text-decoration:none;color:inherit;font-weight:750;font-size:12px;white-space:nowrap}
.hcm974-header-chat span:first-child {font-size:20px;line-height:1}
.hcm974-header-chat:hover {background:rgba(112,167,135,.13)}
.hcm974-new-message {display:block;margin:10px 0 14px;padding:11px 12px;text-decoration:none;border:1px solid #47745b;color:inherit;border-radius:10px;font-size:12px;font-weight:800}
.hcm974-back-chat {display:none;flex:0 0 auto;align-self:flex-start;text-decoration:none;color:inherit;font-weight:800;font-size:12px;margin-bottom:11px;padding:8px 3px}
@media(max-width:950px){
 /* The previous messenger CSS hid the thread list unconditionally; show it in inbox mode. */
 body.hcm972-messenger-page.hcm974-chat-inbox .threadlist {display:block!important;overflow-y:auto;height:100%;max-height:none!important}
 body.hcm972-messenger-page.hcm974-chat-inbox .conversation {display:none!important}
 body.hcm972-messenger-page.hcm974-chat-active .threadlist {display:none!important}
 body.hcm972-messenger-page.hcm974-chat-active .conversation {display:flex!important}
 body.hcm972-messenger-page.hcm974-chat-active .hcm974-back-chat {display:inline-flex!important}
 .hcm974-header-chat {padding:7px 10px}
 .hcm974-header-chat span:last-child {display:none}
}
@media(max-width:650px){
 .hcm974-header-chat {margin-left:auto;padding:5px 8px;min-width:36px;min-height:36px;justify-content:center}
 .hcm974-header-chat span:first-child {font-size:19px}
 body.hcm972-messenger-page .threadlist .thread {min-height:56px}
}
