/* Unread bubbles on the taskbar entries. Same shape for every counter, one
   colour per counter (mail = red, chat = blue), matching the favicon dots. */
#taskmenu a.mail,
#taskmenu a.button-officechat {
    /* The bubble is absolutely positioned, so its anchor MUST be positioned
       too -- nothing else in #taskmenu is, so without this the bubble escapes
       to the page and lands nowhere near the icon. */
    position: relative;
}

#taskmenu a span.unread-badge {
    position: absolute;
    top: .15rem;
    /* Offset from the right edge of the 64px labelled rail so the bubble sits
       on the icon's top-right corner, not out in the empty margin beside it. */
    right: 1rem;
    min-width: 1.15em;
    padding: 0 .3em;
    border-radius: 1em;
    color: #fff;
    font-size: .7rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}

#taskmenu a span.unread-badge.mail {
    background: #d32f2f;
}

#taskmenu a span.unread-badge.chat {
    background: #1a73e8;
}

/* Narrow screens: the taskbar collapses to a left-aligned list, so pin the
   bubble to the right edge of the row instead of over the icon. */
@media screen and (max-width: 480px) {
    #taskmenu a span.unread-badge {
        top: 50%;
        right: .75rem;
        transform: translateY(-50%);
    }
}
