/* Shared portal/forum notification controls, scoped to their own markup. */
.athos-global-tools { display:flex; align-items:center; gap:4px; flex:none; position:relative; letter-spacing:0; font:600 12px/1.45 'Segoe UI',system-ui,sans-serif; }
.athos-global-tools [hidden] { display:none!important; }
.athos-global-tools .athos-global-icon { position:relative; display:grid; place-items:center; box-sizing:border-box; width:36px; height:40px; padding:0!important; border:0; border-radius:4px; box-shadow:none; background:transparent; color:#c0cbd3!important; text-decoration:none!important; cursor:pointer; }
.athos-global-tools .athos-global-icon:hover,.athos-global-tools .athos-global-icon[aria-expanded=true] { color:#fff!important; background:#ffffff0d; }
.athos-global-tools .athos-global-icon svg { width:18px;height:18px;display:block;fill:currentColor; }
.athos-global-tools .athos-global-count { position:absolute; top:1px; right:0; min-width:16px; height:16px; padding:0 3px; border-radius:8px; background:#d6a04d; color:#131f2b; font:700 10px/16px 'Segoe UI',sans-serif; text-align:center; box-shadow:0 0 0 2px #101d29; }
.athos-global-tools .athos-global-panel { position:absolute; right:0; top:calc(100% + 8px); width:384px; max-width:calc(100vw - 24px); background:#fff; color:#204c5c; border:1px solid #cbd6da; border-radius:4px; box-shadow:0 12px 24px #101d2926; overflow:hidden; z-index:100; font-weight:400; text-align:left; }
.athos-global-tools .athos-global-head,.athos-global-tools .athos-global-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:8px 12px; background:#e4eef0; }
.athos-global-tools .athos-global-head strong {font-size:13px;font-weight:700;}
.athos-global-tools .athos-global-foot {background:#fff;border-top:1px solid #d6e0e3;}
.athos-global-tools .athos-global-panel a,.athos-global-tools .athos-global-panel button { color:#285b6b!important; text-decoration:none!important; font:600 12px/1.45 'Segoe UI',system-ui,sans-serif; box-shadow:none; }
.athos-global-tools .athos-global-panel button {border:0;background:transparent;padding:0;cursor:pointer;}
.athos-global-tools .athos-global-panel a:hover,.athos-global-tools .athos-global-panel button:hover {text-decoration:underline!important;}
.athos-global-tools .athos-global-list { max-height:min(480px,65vh); overflow:auto; overscroll-behavior:contain; }
.athos-global-tools .athos-global-list a { display:flex; align-items:flex-start; gap:8px; width:100%; padding:8px 12px!important; border-bottom:1px solid #e1e7e8; border-radius:0; white-space:normal; overflow-wrap:anywhere; background:#fff; text-align:left; box-sizing:border-box; }
.athos-global-tools .athos-global-list a:last-child {border-bottom:0;}
.athos-global-tools .athos-global-list a[data-unread=true] {background:#edf4f5;box-shadow:inset 2px 0 #d6a04d;}
.athos-global-tools .athos-global-list a:hover {background:#f2f6f7;text-decoration:none!important;}
.athos-global-tools .athos-global-source {display:grid;place-items:center;flex:none;width:28px;height:28px;background:#e4eef0;border:1px solid #d4e1e4;border-radius:50%;font-size:12px;font-weight:700;color:#285b6b;}
.athos-global-tools .athos-global-source[data-source=system] {background:#faf1e0;border-color:#ecd8b5;color:#79531b;}
.athos-global-tools .athos-global-text {flex:1;min-width:0;display:grid;gap:2px;}
.athos-global-tools .athos-global-reference {font-weight:400;}
.athos-global-tools .athos-global-date,.athos-global-tools .athos-global-status {font-size:11px;font-weight:400;color:#647780;}
.athos-global-tools .athos-global-status {padding:8px 12px;}
.athos-global-tools .athos-global-panel :focus-visible,.athos-global-tools .athos-global-icon:focus-visible {outline:2px solid #b77929;outline-offset:-2px;}
body.athos-global-forum-ready #nav-main .athos-forum-pm,body.athos-global-forum-ready #nav-main .athos-forum-notifications {display:none!important;}
/* On narrow screens the script moves the controls next to the burger, outside the menu. */
.topbar > .athos-global-tools,.athos-topbar-inner > .athos-global-tools {margin-left:auto;}
.topbar > .athos-global-tools .athos-global-panel,.athos-topbar-inner > .athos-global-tools .athos-global-panel {position:fixed;top:64px;right:12px;}
@media(max-width:420px){.topbar:has(>.athos-global-tools),.athos-topbar-inner:has(>.athos-global-tools){gap:4px;}.athos-global-tools{gap:0;}.athos-global-tools .athos-global-icon{width:32px;}}
