.notifications-dropdown {
    width: min(390px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(12, 15, 22, 0.11);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(12, 15, 22, 0.18);
}

.notifications-menu__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.78rem;
    border-bottom: 1px solid rgba(12, 15, 22, 0.08);
    background: #fffdfb;
}

.notifications-menu__header-icon,
.notifications-menu__item-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(228, 130, 64, 0.12);
    color: #ad5723;
}

.notifications-menu__header-icon {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
}

.notifications-menu__heading {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.notifications-menu__heading strong {
    color: #0c0f16;
    font-size: 0.82rem;
    line-height: 1.2;
}

.notifications-menu__heading span {
    overflow: hidden;
    color: #76716d;
    font-size: 0.66rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifications-menu__mark-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 30px;
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(180, 92, 39, 0.3);
    border-radius: 9px;
    background: #fff;
    color: #9b4c20;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.notifications-menu__mark-all:hover,
.notifications-menu__mark-all:focus-visible {
    border-color: rgba(180, 92, 39, 0.48);
    background: #fff6ef;
    color: #7d3817;
}

.notifications-menu__mark-all:focus-visible,
.notifications-menu__action:focus-visible,
.notifications-menu__footer:focus-visible,
.notifications-menu__content:focus-visible {
    outline: 2px solid rgba(228, 130, 64, 0.52);
    outline-offset: -2px;
}

.notifications-menu__badge {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 0.3rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d93c32;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
}

.notifications-menu__list {
    max-height: min(350px, calc(100vh - 165px));
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(12, 15, 22, 0.2) transparent;
}

.notifications-menu__project + .notifications-menu__project {
    border-top: 1px solid rgba(12, 15, 22, 0.08);
}

.notifications-menu__project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.5rem 0.72rem 0.36rem;
    background: #f8f6f3;
    color: #77716b;
    font-size: 0.61rem;
    font-weight: 800;
}

.notifications-menu__project-head a {
    min-width: 0;
    overflow: hidden;
    color: #5d4435;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifications-menu__project-head a:hover,
.notifications-menu__project-head a:focus-visible {
    color: #9b4c20;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.notifications-menu__project-head > span {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #fff;
    color: #69635d;
    font-size: 0.57rem;
}

.notifications-menu__project-head > .notifications-menu__project-unread {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0.25rem 0.4rem;
    background: #fff0e5;
    color: #934719;
    white-space: nowrap;
}

.notifications-menu__project-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notifications-menu__item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.58rem;
    min-height: 72px;
    padding: 0.66rem 0.72rem;
    border-bottom: 1px solid rgba(12, 15, 22, 0.07);
    background: #fff;
}

.notifications-menu__item:last-child {
    border-bottom: 0;
}

.notifications-menu__item.is-unread {
    background: #fffaf6;
}

.notifications-menu__item.is-unread::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #e48240;
    content: "";
}

.notifications-menu__item:hover {
    background: #faf9f7;
}

.notifications-menu__item-icon {
    width: 32px;
    height: 32px;
    background: rgba(93, 115, 138, 0.11);
    color: #4b657d;
    font-size: 0.78rem;
}

.notifications-menu__item-icon--comentario,
.notifications-menu__item-icon--mencao {
    background: rgba(43, 109, 195, 0.1);
    color: #245f9f;
}

.notifications-menu__item-icon--status,
.notifications-menu__item-icon--etapa {
    background: rgba(228, 130, 64, 0.12);
    color: #ad5723;
}

.notifications-menu__item-icon--atribuicao {
    background: rgba(22, 142, 78, 0.1);
    color: #147141;
}

.notifications-menu__content {
    display: grid;
    min-width: 0;
    gap: 0.14rem;
    color: inherit;
    text-decoration: none;
}

.notifications-menu__content:hover {
    color: inherit;
}

.notifications-menu__title-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.35rem;
}

.notifications-menu__title-row strong {
    overflow: hidden;
    color: #17202b;
    font-size: 0.75rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifications-menu__unread {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e48240;
}

.notifications-menu__meta {
    display: flex;
    min-width: 0;
    gap: 0.28rem;
    color: #807b76;
    font-size: 0.61rem;
    line-height: 1.3;
}

.notifications-menu__meta > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifications-menu__meta time {
    flex: 0 0 auto;
}

.notifications-menu__message {
    display: -webkit-box;
    overflow: hidden;
    color: #646469;
    font-size: 0.66rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.notifications-menu__actions {
    display: flex;
    align-items: center;
    gap: 0.24rem;
}

.notifications-menu__actions form {
    margin: 0;
}

.notifications-menu__action {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(12, 15, 22, 0.1);
    border-radius: 8px;
    background: #fff;
    color: #68645f;
    font-size: 0.72rem;
}

.notifications-menu__action:hover,
.notifications-menu__action:focus-visible {
    border-color: rgba(228, 130, 64, 0.38);
    background: #fff6ef;
    color: #9b4c20;
}

.notifications-menu__empty {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    padding: 1.8rem 1rem;
    color: #76716d;
    text-align: center;
}

.notifications-menu__empty i {
    color: #b8b2ac;
    font-size: 1.2rem;
}

.notifications-menu__empty strong {
    color: #292d35;
    font-size: 0.78rem;
}

.notifications-menu__empty span {
    font-size: 0.67rem;
}

.notifications-menu__feedback {
    padding: 0.42rem 0.75rem;
    border-top: 1px solid rgba(12, 15, 22, 0.07);
    background: #f3faf5;
    color: #23653d;
    font-size: 0.66rem;
}

.notifications-menu__feedback[hidden],
.notifications-menu__list[hidden],
.notifications-menu__empty[hidden] {
    display: none !important;
}

.notifications-menu__action:disabled,
.notifications-menu__mark-all:disabled {
    cursor: wait;
    opacity: 0.6;
}

.notifications-menu__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 42px;
    padding: 0.62rem 0.78rem;
    border-top: 1px solid rgba(12, 15, 22, 0.08);
    background: #fbfaf8;
    color: #5d4435;
    font-size: 0.69rem;
    font-weight: 800;
    text-decoration: none;
}

.notifications-menu__footer:hover {
    background: #fff6ef;
    color: #8f451f;
}

@media (max-width: 575.98px) {
    .notifications-dropdown {
        width: calc(100vw - 0.75rem);
        max-width: calc(100vw - 0.75rem);
        border-radius: 14px;
    }

    .notifications-menu__header {
        gap: 0.5rem;
        padding: 0.68rem;
    }

    .notifications-menu__mark-all span {
        display: none;
    }

    .notifications-menu__mark-all {
        width: 30px;
        padding: 0;
    }

    .notifications-menu__list {
        max-height: min(390px, calc(100vh - 150px));
    }

    .notifications-menu__item {
        gap: 0.48rem;
        min-height: 68px;
        padding: 0.58rem 0.62rem;
    }

    .notifications-menu__item-icon {
        width: 30px;
        height: 30px;
    }
}
