.overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    z-index: 9999; 
}

.overlay--visible {
    opacity: 1;
}

.d-none {
    display: none !important;
}

.overlay__content {
    position: relative;
    width: 525px;
    max-height: 930px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 48px 40px;
    box-shadow: 0px 0px 4px 0px #00000029;
    overflow: hidden;
    transform: translateX(100vw);
    transition: transform 0.3s ease-in-out;
}

.overlay--slide-in .overlay__content {
    transform: translateX(0);
    opacity: 1;
}

.overlay--slide-out .overlay__content {
    transform: translateX(100%);
    opacity: 0;
}

.overlay__story, .overlay__edit{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px !important;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;   
    align-items: stretch;
}

.overlay__badgeframe {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.overlay__badge {
    color:#ffffff; 
    border-radius: 8px;    
    padding: 4px 24px;
    gap: 10px;
    font-size: 24px !important;
    display: flex;
    align-items: center;
}

.overlay__title {
    width: 100%;
    font-size: 48px;
    line-height: 120%;
    font-weight: 700;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;      
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay__description {
    width: 100%;
    font-size: 20px;
    line-height: 120%;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 3;      
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay__title,
.overlay__description {
    overflow-wrap: anywhere;  
    word-break: normal;
    hyphens: auto;            
    white-space: normal;      
    min-width: 0;
    flex: 0 0 auto;  
}

.overlay__content,
.overlay__story,
.overlay__edit {
    min-height: 0;              
    min-width: 0;               
}

.overlay__parameters {
    width: 100%;
    font-size: 20px;
    color: #2A3647;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.overlay__priority--status {
    display: flex;
    align-items: center;
    padding: 4px 18px;
    gap: 10px;
    border-radius: 10px;
}

.overlay__assigned {
    display: flex;
    flex-direction: column;
    gap: 8px;  
    font-size: 20px; 
    color: #2A3647;
    width: 100%;
}

.overlay__credentials {
    display: flex;
    flex-direction: column;
    gap: 4px;  
    width: 100%;
    max-height: 150px;
    overflow: auto;
}

.overlay__credentials--individual {
    gap: 16px; 
    display: flex;
    align-items: center;
    padding: 2px 16px;
}
.overlay__credential--icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay__subtasks {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 20px; 
    color: #2A3647;
    gap: 8px;
}

.overlay__subtasks--frame {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px; 
    max-height: 160px;
    overflow: auto;
}

.overlay__subtask {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 16px;
    gap: 16px;
  }

.overlay__subtask img {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay__subtask img:hover {
    cursor: pointer;
    background-color: #d1d1d1;
    transition: transform 0.2s ease-in-out;
}

.overlay__subtask:hover {
   background-color: #eeeeee;
}

.overlay__action {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
}

.overlay__action--activate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    fill: #2A3647;
    color: #2A3647;
    text-decoration: none;
}

.overlay__action--activate span {
    font-size: 20px;
}

.overlay__action--separator {
    height: 24px;
    border: 1px solid #D1D1D1;
}

.overlay__action--activate:hover {
    color: #29ABE2;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.overlay__action--activate:hover svg path {
    fill: #29ABE2;
    transition: fill 0.2s ease-in-out;
}