#staff-alerts{position:relative;flex:none}
#staff-alerts[hidden],.staff-alert-panel[hidden],.staff-alert-count[hidden]{display:none}
#staff-alerts .iconbutton{position:relative}
#staff-alerts .iconbutton[aria-expanded=true]{background:var(--panel2);color:var(--accent-light)}
.staff-alert-count{position:absolute;top:-3px;right:-5px;min-width:16px;padding:0 3px;border-radius:10px;border:1px solid var(--panel);background:var(--accent-light);color:var(--bg);font-size:9px;font-weight:800;line-height:15px;text-align:center}
.staff-alert-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(350px,calc(100vw - 24px));padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 34px #0007;color:var(--text)}
.staff-alert-panel header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px 8px}
.staff-alert-panel h2{font-size:15px;margin:0}
.staff-alert-panel :is([data-read-all],[data-alert-more]){font:inherit;color:var(--accent-light);font-size:11px;padding:6px 2px}
.staff-alert-panel [data-read-all]:disabled{color:var(--muted);cursor:default}
.staff-alert-panel [data-alert-more]{display:block;margin:4px auto 0}
.staff-alert-panel [data-alert-more][hidden]{display:none}
.staff-alert-list{list-style:none;max-height:min(385px,48dvh);overflow:auto;padding:0;margin:0;overscroll-behavior:contain}
.staff-alert-row{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;padding:9px 12px 9px 5px;border-radius:7px;color:var(--text)}
.staff-alert-row:is(:hover,:focus-visible),.staff-alert-row[data-unread]{background:var(--panel2)}
.staff-alert-row[data-unread]::after{content:"";position:absolute;top:13px;right:6px;width:5px;height:5px;border-radius:50%;background:var(--accent-light)}
.staff-alert-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--bg);color:var(--accent-light)}
.staff-alert-row strong{font-size:12px}
.staff-alert-row small,.staff-alert-subject{display:block;margin-top:2px;overflow-wrap:anywhere;font-size:11px}
.staff-alert-row small{color:var(--muted)}
.staff-alert-panel p{font-size:12px;margin:4px 2px}
.staff-alert-panel p:empty{display:none}
.staff-alert-target{outline:1px solid var(--accent-light);scroll-margin-top:90px}
@media(max-width:700px){.staff-alert-panel{position:fixed;top:var(--alert-top);right:12px}}
