.portal-notify {
    position: relative;
}

.portal-notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line, #bbcabc);
    border-radius: 12px;
    background: #fff;
    color: var(--ink, #131b2e);
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
}

.portal-notify-btn:hover {
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(0,0,0,.04));
    transform: translateY(-1px);
}

.portal-notify-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.portal-notify-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 60;
    width: min(380px, calc(100vw - 24px));
    max-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: none;
}

.portal-notify-panel.is-open {
    display: flex;
    flex-direction: column;
}

.portal-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line, #e5e7eb);
}

.portal-notify-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.portal-notify-mark {
    border: 0;
    background: none;
    color: var(--brand, #006d3d);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    padding: 0;
}

.portal-notify-list {
    overflow-y: auto;
    max-height: 340px;
}

.portal-notify-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line, #e5e7eb);
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.portal-notify-item:hover {
    background: #f8fafc;
}

.portal-notify-item.unread {
    background: #f0fdf4;
}

.portal-notify-item.unread:hover {
    background: #ecfdf5;
}

.portal-notify-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 203, 123, 0.14);
    color: var(--brand-dark, #00502b);
}

.portal-notify-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.portal-notify-item span {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.portal-notify-time {
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.portal-notify-empty {
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

body.partner-stitch .partner-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav .portal-notify {
    margin-left: 4px;
}
