/* Private automation notifications remain available from every authenticated page. */
.global-notifications {
    position: relative;
}

.global-notifications > summary {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--interface-border);
    border-radius: 8px;
    background: #fff;
    color: var(--navy-800);
    cursor: pointer;
    list-style: none;
}

.global-notifications > summary::-webkit-details-marker {
    display: none;
}

.global-notifications > summary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.global-notifications > summary i {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #12a594;
}

.global-notification-menu {
    position: absolute;
    z-index: 130;
    top: 45px;
    right: 0;
    width: min(330px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid var(--interface-border);
    border-radius: var(--interface-tile-radius);
    background: #fff;
    box-shadow: 0 14px 36px rgba(7, 23, 39, 0.18);
}

.global-notification-menu header {
    display: grid;
    gap: 2px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--interface-divider);
    background: var(--interface-view-surface);
}

.global-notification-menu header strong {
    font-size: var(--interface-tile-heading-size);
    line-height: 1.25;
}

.global-notification-menu header small {
    color: var(--muted);
    font-size: var(--interface-helper-size);
    line-height: 1.5;
}

.global-notification-menu form {
    margin: 0;
    border-bottom: 1px solid #e8eef0;
}

.global-notification-menu form:last-child {
    border: 0;
}

.global-notification-menu :is(button, a) {
    display: grid;
    grid-template-columns: 7px 1fr;
    justify-content: stretch;
    gap: 2px 8px;
    width: 100%;
    min-height: 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: var(--navy-900);
    text-align: left;
}

.global-notification-menu :is(button, a):hover {
    background: #f3f8fa;
    box-shadow: none;
    color: var(--navy-900);
    transform: none;
}

.global-notification-menu :is(button, a) > span {
    grid-row: 1 / 3;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: #c4d0d5;
}

.global-notification-menu :is(button, a).is-unread > span {
    background: #12a594;
    box-shadow: 0 0 0 3px #e3f6f2;
}

.global-notification-menu :is(button, a) b {
    font-size: 9px;
}

.global-notification-menu :is(button, a) small {
    color: var(--muted);
    font-size: 8px;
}
